/* Report Screen High Z-Index */
#report-issue-screen {
    z-index: 99999 !important;
}

/* Ensure Custom Alert is ABOVE Report Screen */
#custom-alert-modal,
#custom-confirm-modal {
    z-index: 100000 !important;
}

/* --- Global Modal Styles (If missing) --- */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-modal.active {
    opacity: 1;
    pointer-events: all;
}

.custom-modal.hidden {
    display: none;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure icon is hidden when image is present */
.modal-icon.hidden,
.modal-img.hidden {
    display: none !important;
}

.modal-img {
    max-width: 130px !important;
    /* Balanced size */
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important;
    /* Block any rotation */
}

.custom-modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffca28, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    /* visual-perfection: REMOVED YELLOW GLOW */
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffca28, #ff6f00);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    color: #000;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.95);
}