/* ============================================================
   PROFILE ONLY
   ============================================================ */

/* ===== PROFILE POPUP ===== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: #fff;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    margin: auto;
}

body.dark .popup-content {
    background: #181825;
    border: 1px solid #2d2d44;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: inherit;
    border-radius: 28px 28px 0 0;
    z-index: 10;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.popup-close {
    background: var(--soft);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.popup-body {
    padding: 20px 24px 24px;
}

.popup-body .input-group {
    margin-bottom: 14px;
}

body.popup-open {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .popup-content {
        border-radius: 20px;
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    .popup-header {
        padding: 14px 16px;
    }
    .popup-header h3 {
        font-size: 16px;
    }
    .popup-body {
        padding: 16px;
    }
    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}