/* ==========================================
   Amoura Dating Platform - CSS Design System
   ========================================== */

@font-face {
    font-family: "Font Awesome 7 Jelly Fill";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/webfonts/fa-jelly-fill-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("/assets/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Gasoek One";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("/assets/webfonts/gasoek-one-latin.woff2") format("woff2"),
         url("/assets/webfonts/GasoekOne-Regular.ttf") format("truetype");
}

.fa-jelly-fill {
    font-family: "Font Awesome 7 Jelly Fill" !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-jelly-fill.fa-video:before,
.fa-jelly-fill.fa-regular.fa-video:before {
    content: "\f03d" !important;
}

.fa-camera-movie,
.fa-solid.fa-camera-movie {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-camera-movie:before,
.fa-solid.fa-camera-movie:before {
    content: "\f8a9" !important;
}

:root, [data-theme="dark"] {
    --bg-main: #0f0f13;
    --bg-card: #181820;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.07);
    
    --text-main: #f8f9fa;
    --text-muted: #a0a0b0;
    --text-dark: #1e1e24;

    --primary: #ff416c;
    --primary-hover: #ff2b58;
    --secondary: #ff4b2b;
    --gradient-brand: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --gradient-super: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --gradient-pass: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --input-bg: rgba(255, 255, 255, 0.04);
    --ring-bg-stroke: rgba(255, 255, 255, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.35);
    --shadow-btn: 0 8px 20px rgba(255, 65, 108, 0.3);

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 64px;
    --header-height: 63px;
    --header-bg: #181820;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --header-bg: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.04);
    --border-color: #e2e8f0;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    --primary: #e11d48;
    --primary-hover: #be123c;
    --secondary: #f43f5e;
    --gradient-brand: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);

    --input-bg: #f1f5f9;
    --ring-bg-stroke: rgba(0, 0, 0, 0.08);

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 15px 35px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M 20 28 C 14 15, 6 22, 20 34 C 34 22, 26 15, 20 28 Z'/%3E%3Cpath d='M 90 20 h 20 a 8 8 0 0 1 8 8 v 10 a 8 8 0 0 1 -8 8 h -12 l -6 6 v -6 h -2 a 8 8 0 0 1 -8 -8 v -10 a 8 8 0 0 1 8 -8 z'/%3E%3Cpath d='M 140 72 v 16 M 132 80 h 16 M 135 75 l 10 10 M 145 75 l -10 10'/%3E%3Cpath d='M 30 92 a 7 7 0 0 1 7 7 c 0 6 -7 13 -7 13 s -7 -7 -7 -13 a 7 7 0 0 1 7 -7 z'/%3E%3Ccircle cx='30' cy='99' r='2.5'/%3E%3Cpath d='M 85 115 l 25 -10 l -10 25 l -5 -10 l -10 -5 z M 95 115 l 10 5'/%3E%3Cpath d='M 55 58 a 5 5 0 0 1 10 0 C 65 64 60 67 60 67 S 55 64 55 58 z'/%3E%3Cpath d='M 125 130 l 7 10 h -14 l 7 -10 v -10 h -8 l 8 -10 h 16 l 8 10 h -8 v 10 z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
}

[data-theme="light"] body {
    background-color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(15,23,42,0.045)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M 20 28 C 14 15, 6 22, 20 34 C 34 22, 26 15, 20 28 Z'/%3E%3Cpath d='M 90 20 h 20 a 8 8 0 0 1 8 8 v 10 a 8 8 0 0 1 -8 8 h -12 l -6 6 v -6 h -2 a 8 8 0 0 1 -8 -8 v -10 a 8 8 0 0 1 8 -8 z'/%3E%3Cpath d='M 140 72 v 16 M 132 80 h 16 M 135 75 l 10 10 M 145 75 l -10 10'/%3E%3Cpath d='M 30 92 a 7 7 0 0 1 7 7 c 0 6 -7 13 -7 13 s -7 -7 -7 -13 a 7 7 0 0 1 7 -7 z'/%3E%3Ccircle cx='30' cy='99' r='2.5'/%3E%3Cpath d='M 85 115 l 25 -10 l -10 25 l -5 -10 l -10 -5 z M 95 115 l 10 5'/%3E%3Cpath d='M 55 58 a 5 5 0 0 1 10 0 C 65 64 60 67 60 67 S 55 64 55 58 z'/%3E%3Cpath d='M 125 130 l 7 10 h -14 l 7 -10 v -10 h -8 l 8 -10 h 16 l 8 10 h -8 v 10 z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
}

.app-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--bg-main);
    box-shadow: none;
    border: none;
    border-radius: 0;
}



/* ==========================================
   GLOBAL LOADING OVERLAY
   ========================================== */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.loader-spinner-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 65, 108, 0.2);
    border-top: 4px solid var(--primary, #ec4899);
    border-radius: 50%;
    animation: spinRing 0.9s linear infinite;
    box-sizing: border-box;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: var(--primary, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    pointer-events: none;
    animation: heartbeatPulse 1.6s ease-in-out infinite;
}

.loader-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heartbeatPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    14% {
        transform: translate(-50%, -50%) scale(1.15);
    }
    28% {
        transform: translate(-50%, -50%) scale(1);
    }
    42% {
        transform: translate(-50%, -50%) scale(1.12);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner-ring {
        animation: none;
    }
    .loader-logo {
        animation: none;
    }
}

/* ==========================================
   AUTHENTICATION & ONBOARDING VIEWS
   ========================================== */
#view-auth {
    position: relative;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    width: 100%;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 65, 108, 0.12), transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(255, 75, 145, 0.1), transparent 50%),
        var(--bg-main);
    overflow-y: auto;
    box-sizing: border-box;
}

#view-auth::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff416c' fill-opacity='0.45'%3E%3Cpath d='M20 15c-2.5 0-4.5 2-4.5 4.5 0 3.5 6.5 8.5 6.5 8.5s6.5-5 6.5-8.5c0-2.5-2-4.5-4.5-4.5-1.5 0-2.8.8-3.5 2-.7-1.2-2-2-3.5-2z'/%3E%3Cpath d='M85 70c-2.2 0-4 1.8-4 4 0 3.2 5.8 7.6 5.8 7.6s5.8-4.4 5.8-7.6c0-2.2-1.8-4-4-4-1.3 0-2.5.7-3.1 1.8-.6-1.1-1.8-1.8-3.1-1.8z'/%3E%3Ccircle cx='95' cy='25' r='2'/%3E%3Ccircle cx='25' cy='95' r='2'/%3E%3Cpath d='M55 40h12v9h-3l-3 3v-3h-6z'/%3E%3Cpath d='M70 105l2 4 4 2-4 2-2 4-2-4-4-2 4-2z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

#view-auth > * {
    position: relative;
    z-index: 1;
}

.onboarding-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    width: 100%;
    background: radial-gradient(circle at top right, rgba(255, 65, 108, 0.15), transparent 60%);
    overflow-y: auto;
    box-sizing: border-box;
}

.auth-hero {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo-large {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

.auth-card, .onboarding-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: auto 0;
}

.onboarding-card.wide {
    max-width: 520px;
}

.onboarding-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.onboarding-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.onboarding-card p.sub-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
}

.auth-form, .onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.auth-recovery-link {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-recovery-link:hover {
    color: var(--primary-hover, #ff416c);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Google Sign-In Disclaimer
   ========================================================================== */
.auth-google-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 14px;
    margin: 2px 0 14px 0;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--radius-md, 14px);
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: left;
    box-sizing: border-box;
}

.auth-google-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-google-disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f59e0b;
    text-transform: uppercase;
}

.auth-google-disclaimer-badge i {
    font-size: 0.88rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.auth-google-disclaimer-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
    word-break: break-word;
}

.auth-google-disclaimer-text .auth-disclaimer-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-google-disclaimer-text .auth-disclaimer-link:hover {
    color: var(--primary-hover);
}

/* Light Theme Disclaimer Styling */
[data-theme="light"] .auth-google-disclaimer {
    background: #fffbeb;
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .auth-google-disclaimer-badge {
    color: #b45309;
}

[data-theme="light"] .auth-google-disclaimer-badge i {
    color: #d97706;
}

[data-theme="light"] .auth-google-disclaimer-text {
    color: #475569;
}

[data-theme="light"] .auth-google-disclaimer-text .auth-disclaimer-link {
    color: #e11d48;
}

[data-theme="light"] .auth-google-disclaimer-text .auth-disclaimer-link:hover {
    color: #be123c;
}

/* Google SSO Button Enhancements */
.btn-google-sso {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-google-sso:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.22) !important;
}

[data-theme="light"] .btn-google-sso {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .btn-google-sso:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive Disclaimer Breakpoints */
@media (max-width: 480px) {
    .auth-google-disclaimer {
        padding: 9px 12px;
        margin: 0 0 12px 0;
        border-radius: 10px;
        gap: 4px;
    }

    .auth-google-disclaimer-badge {
        font-size: 0.74rem;
        gap: 5px;
    }

    .auth-google-disclaimer-badge i {
        font-size: 0.8rem;
    }

    .auth-google-disclaimer-text {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .btn-google-sso {
        font-size: 0.94rem !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 360px) {
    .auth-google-disclaimer {
        padding: 8px 10px;
    }

    .auth-google-disclaimer-badge {
        font-size: 0.71rem;
    }

    .auth-google-disclaimer-text {
        font-size: 0.75rem;
    }

    .btn-google-sso {
        font-size: 0.88rem !important;
        padding: 11px 12px !important;
        gap: 8px !important;
    }
}

/* Availability Feedback Indicators */
.availability-feedback {
    display: block;
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 600;
}

.availability-feedback.available {
    color: var(--success);
}

.availability-feedback.unavailable {
    color: var(--danger);
}

.code-input {
    font-size: 1.6rem;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
}

.resend-box {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Verification Processing Full-Viewport Overlay */
.verify-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.verify-processing-card {
    background: var(--bg-card, #1e1e2d);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-lg, 20px);
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.verify-processing-text .processing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin: 12px 0 6px 0;
}

.verify-processing-text .processing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #a0a0b0);
    margin: 0;
    line-height: 1.45;
}

.verify-processing-logout .btn-onboarding-logout {
    color: var(--text-muted, rgba(255, 255, 255, 0.75));
    transition: color 0.2s ease;
    cursor: pointer;
}

.verify-processing-logout .btn-onboarding-logout:hover {
    color: var(--primary, #ff416c);
}
    color: var(--text-muted, #a0a0b0);
    margin: 0;
}

.sub-text.small {
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    text-decoration: underline;
}

/* Photo Studio Interface */
.studio-header {
    text-align: center;
    margin-bottom: 20px;
}

.photo-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 65, 108, 0.15);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 10px;
}

.photo-progress-badge.complete {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: #ffffff;
}

.studio-dropzone-box {
    text-align: center;
    margin-bottom: 20px;
}

.upload-studio-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.studio-photo-card {
    aspect-ratio: 280/360;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.studio-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.studio-photo-actions {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 25 !important;
    pointer-events: none;
}

.studio-photo-actions button,
.studio-photo-actions .btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 26 !important;
    touch-action: manipulation;
}

.studio-photo-actions button i,
.studio-photo-actions button svg,
.studio-photo-actions .btn i,
.studio-photo-actions .btn svg {
    pointer-events: none !important;
}

.studio-badge-primary {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient-brand);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* Crop Modal Studio Viewport & Draggable Image */
.crop-preview-frame {
    width: 280px;
    height: 360px;
    max-width: 100%;
    aspect-ratio: 280 / 360;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px dashed var(--primary);
    background: #000000;
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}

.crop-preview-frame:active {
    cursor: grabbing;
}

.crop-preview-frame img {
    position: absolute;
    pointer-events: auto;
    will-change: transform;
}

/* Protected Photo Image Display Layer */
.protected-photo-container {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.protected-photo-img,
.protected-photo-container img,
img,
.user-avatar,
.avatar-sm,
.conversation-avatar,
.match-avatar,
.preview-card-img,
.photo-cell img,
.like-card-image-box img,
.badoo-avatar-box img,
.preview-gallery-item img,
.studio-photo-card img,
.card-image-blur-bg,
.photo-protection-overlay,
.mod-target-user-avatar,
.blocked-user-info img,
#gallery-main-image,
#overview-avatar-img,
#chat-user-photo,
#match-photo-me,
#match-photo-them {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.protected-photo-img,
.protected-photo-container img,
.conversation-avatar,
.avatar-sm,
.match-avatar,
.mod-target-user-avatar,
.blocked-user-info img {
    pointer-events: none !important;
}

.photo-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.crop-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.crop-controls-row label {
    width: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    white-space: nowrap;
}

.crop-controls-row #crop-zoom-val {
    display: inline-block;
    width: 42px;
    text-align: left;
}

.crop-controls-row input[type="range"] {
    flex: 1;
    max-width: 200px;
}

/* Profile Setup & Completeness Bar */
.completeness-bar-container {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 12px;
}

.completeness-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.completeness-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.location-setup-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.location-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================
   MAIN LAYOUT & HEADER
   ========================================== */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    width: 100%;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg, #181820);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
    flex-shrink: 0;
}

.header-brand {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ff3333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand span,
.header-brand .mobile-brand-name {
    color: #ff3333;
    -webkit-text-fill-color: #ff3333;
    font-weight: 800;
}

.mobile-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.header-brand i {
    font-size: 1.65rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header .icon-btn {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* Block Filters & Discovery button interaction when Messaging interface is active */
#btn-open-settings.chat-active-disabled,
#btn-desktop-settings.chat-active-disabled,
.btn-open-settings.chat-active-disabled,
#btn-desktop-discovery-toggle.chat-active-disabled,
#btn-open-settings:disabled,
#btn-desktop-settings:disabled,
.btn-open-settings:disabled,
#btn-desktop-discovery-toggle:disabled,
body.body-chat-open #btn-open-settings,
body.body-chat-open #btn-desktop-settings,
body.body-chat-open .btn-open-settings,
body.body-chat-open #btn-desktop-discovery-toggle {
    pointer-events: none !important;
    cursor: default !important;
}

#btn-open-settings.chat-active-disabled *,
#btn-desktop-settings.chat-active-disabled *,
.btn-open-settings.chat-active-disabled *,
#btn-desktop-discovery-toggle.chat-active-disabled *,
#btn-open-settings:disabled *,
#btn-desktop-settings:disabled *,
.btn-open-settings:disabled *,
#btn-desktop-discovery-toggle:disabled *,
body.body-chat-open #btn-open-settings *,
body.body-chat-open #btn-desktop-settings *,
body.body-chat-open .btn-open-settings *,
body.body-chat-open #btn-desktop-discovery-toggle * {
    pointer-events: none !important;
}

.content-area {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--nav-height) + 16px);
}

.app-section {
    display: none;
    height: 100%;
    width: 100%;
}

.app-section.active {
    display: flex;
    flex-direction: column;
}

/* Mobile Fixed Container Isolation (<=1024px)
   Pins each view strictly between fixed header and bottom nav
   so each section scrolls independently with zero position bleed. */
@media (max-width: 1024px) {
    .content-area {
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .app-section {
        position: fixed;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        z-index: 10;
    }

    #sec-discovery {
        min-height: 0 !important;
        padding-bottom: 28px !important;
        overflow-x: hidden !important;
    }
}

/* ==========================================
   BOTTOM NAVIGATION BAR
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: var(--nav-height);
    background: rgba(24, 24, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
}

.nav-items-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding: 6px 0;
    height: 100%;
    text-align: center;
    transition: color 0.2s ease, transform 0.1s ease;
}

.nav-item i {
    /*font-size: 1.25rem;*/
    font-size: 1.5rem;
}

.nav-item span {
    font-size: 0.72rem;
    line-height: 1;
    margin-top: 2px;
}

.nav-item.active {
    color: var(--primary);
    background: transparent;
}

/* Mobile Bottom Navigation Item Layout (<= 1024px) - Enforce vertical icon-above-label layout & ellipsis truncation */
@media (max-width: 1024px) {
    .bottom-nav {
        height: var(--nav-height, 64px);
        padding: 0 2px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .nav-items-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        height: 100%;
        gap: 1px;
        padding: 0;
        margin: 0;
    }

    .bottom-nav .nav-item,
    .bottom-nav .nav-item-moderation {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        text-align: center !important;
        padding: 4px 1px !important;
        box-sizing: border-box !important;
    }

    .bottom-nav .nav-item:not([style*="display: none"]):not([style*="display:none"]),
    .bottom-nav .nav-item-moderation:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
    }

    .bottom-nav .nav-item i,
    .bottom-nav .nav-item-moderation i {
        display: block !important;
        margin: 0 auto !important;
        font-size: 1.3rem !important;
        flex-shrink: 0 !important;
    }

    .bottom-nav .nav-item > span:not(.badge-count),
    .bottom-nav .nav-item-moderation > span:not(.badge-count) {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 1px !important;
        line-height: 1.15 !important;
        font-size: 0.69rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
        padding: 0 1px !important;
    }
}

@media (max-width: 380px) {
    .bottom-nav .nav-item,
    .bottom-nav .nav-item-moderation {
        padding: 3px 0 !important;
        gap: 1px !important;
    }
    .bottom-nav .nav-item i,
    .bottom-nav .nav-item-moderation i {
        font-size: 1.2rem !important;
    }
    .bottom-nav .nav-item > span:not(.badge-count),
    .bottom-nav .nav-item-moderation > span:not(.badge-count) {
        font-size: 0.62rem !important;
        letter-spacing: -0.02em !important;
    }
}

@media (max-width: 330px) {
    .bottom-nav .nav-item i,
    .bottom-nav .nav-item-moderation i {
        font-size: 1.1rem !important;
    }
    .bottom-nav .nav-item > span:not(.badge-count),
    .bottom-nav .nav-item-moderation > span:not(.badge-count) {
        font-size: 0.56rem !important;
    }
}

.badge-count {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(14px);
    /*background: var(--primary);*/
    background: rgba(225, 29, 72, 0.72);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-count:empty,
.badge-count[data-count="0"],
.badge-count.is-zero-count {
    display: none !important;
}

.unread-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    /*background-color: #f43f5e;*/
    background-color: #ceff00;
    box-shadow: 0 0 0 1.5px rgba(15, 23, 42, 0.85);
    flex-shrink: 0;
}

/* Profile Navigator Badges - Mobile / Compact Layout */
@media (max-width: 1024px) {
    #nav-profile-completion-badge {
        display: none !important;
    }
}

#nav-profile-badge.badge-review {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(12px);
    background: #b45309;
    color: #ffffff;
    border: 1.5px solid #fef3c7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 6px rgba(245, 158, 11, 0.6);
    padding: 1px 5px;
    font-size: 0.68rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

#nav-profile-badge.badge-review i {
    font-size: 0.72rem;
    color: #ffffff;
}

#nav-profile-badge.badge-review .unread-dot {
    width: 6px;
    height: 6px;
    background-color: #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #78350f, 0 0 4px #fef08a;
    flex-shrink: 0;
}

#nav-profile-badge.badge-completion {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(12px);
    background: #0284c7;
    color: #ffffff;
    border: 1.5px solid #e0f2fe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 6px rgba(56, 189, 248, 0.5);
    padding: 1px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
}

#nav-profile-badge.badge-completion .unread-dot {
    width: 6px;
    height: 6px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #0369a1, 0 0 4px #38bdf8;
    flex-shrink: 0;
}

[data-theme="light"] #nav-profile-badge.badge-review {
    /*background: #b45309;*/
    background:  rgba(180, 83, 9, 0.55);
    /*border-color: #fef3c7;*/
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), 0 0 5px rgba(245, 158, 11, 0.4);
}

[data-theme="light"] #nav-profile-badge.badge-completion {
    background: #0284c7;
    border-color: #e0f2fe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), 0 0 5px rgba(56, 189, 248, 0.4);
}

/* Mobile Wrapper Rules for Desktop Containers */
.discover-desktop-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 100%;
}

.matches-desktop-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.conversations-sidebar-column {
    width: 100%;
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    border-right: none;
}

#profile-overview-view,
#profile-editor-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

/* ==========================================
   DISCOVERY CARD SWIPER STACK
   ========================================== */
#sec-discovery {
    padding: 10px 16px 0;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 100%;
}

.discover-desktop-wrapper {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.card-stack-wrapper {
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--nav-height) - 26px);
    min-height: 310px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
}

.card-deck {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 250px;
    overflow: visible;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    touch-action: pan-y;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: grab;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint;
}

.swipe-card:active {
    cursor: grabbing;
}

.card-image-blur-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(24px) brightness(0.6) saturate(1.2);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: opacity 0.35s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: opacity;
}

.card-image-blur-bg.img-loading {
    opacity: 0.35;
}

.card-image-blur-bg.img-loaded {
    opacity: 1;
}

.card-image-bg.img-loading {
    opacity: 0;
}

.card-image-bg.img-loaded {
    opacity: 1;
}

.card-foreground-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    container-type: size;
}

.card-heartbeat-loader {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50 !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.card-heartbeat-loader.loaded,
.thumbnail-heartbeat-loader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.thumbnail-heartbeat-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}

.card-crop-viewport {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 280 / 360;
    width: min(100cqw, calc(100cqh * (280 / 360)));
    height: min(100cqh, calc(100cqw * (360 / 280)));
}

.card-image-bg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    pointer-events: none;
    z-index: 5;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.card-gradient-overlay > * {
    pointer-events: none;
}

/* Enlarged Direct Message & Block Top Buttons + Photo Indicators */
.card-action-bar-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.card-action-btns {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.photo-indicators-container {
    display: flex;
    gap: 5px;
    flex: 1;
    max-width: 180px;
    align-items: center;
    height: 44px;
    pointer-events: auto;
}

.photo-indicator-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-indicator-bar.active {
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.card-top-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.card-top-btn.msg {
    background: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.6);
}

.card-top-btn.msg:hover {
    background: rgba(59, 130, 246, 0.7);
    color: #ffffff;
    transform: scale(1.08);
}

.card-top-btn.block {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}

.card-top-btn.block:hover {
    background: rgba(239, 68, 68, 0.6);
    color: #ffffff;
    transform: scale(1.08);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
}

.card-title .card-name-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.card-title .card-age-wrap,
.card-title .age {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.card-location-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    overflow: hidden;
}

.card-location-row i,
.card-location-row .location-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
}

.card-location-row .card-location-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-location-row .card-distance-text {
    flex: 0 2 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.card-subtitle .card-job-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.card-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 1;
    min-height: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    flex-shrink: 1;
    min-height: 0;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
}

.tag-pill.brand {
    background: rgba(255, 65, 108, 0.25);
    border: none;
    color: #ffffff;
}

/* Badge Overlays on Swiping */
.swipe-badge {
    position: absolute;
    top: 36px;
    padding: 8px 18px;
    border: 3px solid;
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    background: rgba(15, 15, 20, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.05s linear;
    will-change: opacity;
    contain: layout style;
}

.swipe-badge.badge-like {
    left: 24px;
    color: #10b981;
    border-color: #10b981;
    transform: rotate(-15deg) translateZ(0);
}

.swipe-badge.badge-pass {
    right: 24px;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(15deg) translateZ(0);
}

.swipe-badge.badge-superlike {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    color: var(--info);
    border-color: var(--info);
}

/* Photo Gallery Lightbox Overlay */
.photo-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.photo-gallery-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.photo-gallery-container {
    position: relative;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    padding: 20px;
}

.photo-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.photo-gallery-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.45);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-swipe-hint {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.photo-more-overlay {
    transition: background 0.2s ease;
}

.desktop-photo-item,
.mobile-photo-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.desktop-photo-item:hover .photo-more-overlay,
.mobile-photo-item:hover .photo-more-overlay {
    background: rgba(0, 0, 0, 0.58) !important;
}

.btn-toggle-extra-prompts:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-main) !important;
    transform: translateY(-1px);
}

.btn-toggle-extra-prompts:active {
    transform: translateY(0);
}

.photo-gallery-zoom-bar {
    display: none !important;
}

.photo-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90vw;
    height: 75vh;
    margin: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    container-type: size;
}

.photo-gallery-main.zoomed {
    cursor: grab;
}

.photo-gallery-main.zoomed:active {
    cursor: grabbing;
}

.photo-gallery-touch-zone {
    position: absolute;
    top: 60px;
    bottom: 50px;
    width: calc(50% - 10px);
    z-index: 8;
    cursor: pointer;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.photo-gallery-touch-zone.prev {
    left: 10px;
}

.photo-gallery-touch-zone.next {
    right: 10px;
}

.photo-gallery-main.zoomed ~ .photo-gallery-touch-zone,
.photo-gallery-modal.zoomed .photo-gallery-touch-zone {
    pointer-events: none !important;
    display: none !important;
}

.photo-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
}

.photo-gallery-slide.current-slide {
    pointer-events: auto;
    z-index: 2;
}

.photo-gallery-slide.incoming-slide {
    z-index: 1;
}

.photo-gallery-slide > .card-crop-viewport,
.photo-gallery-slide > .protected-photo-wrapper,
.photo-gallery-slide > img,
.photo-gallery-main > .card-crop-viewport,
.photo-gallery-main > .protected-photo-wrapper,
.photo-gallery-main > img,
#gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    user-select: none;
    transform-origin: center center;
    will-change: transform;
}

.photo-gallery-slide > .protected-photo-wrapper,
.photo-gallery-main > .protected-photo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.photo-gallery-slide > .protected-photo-wrapper > img,
.photo-gallery-main > .protected-photo-wrapper > img {
    max-width: 90vw;
    max-height: 75vh;
    max-width: 100cqw;
    max-height: 100cqh;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.photo-gallery-nav {
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.photo-gallery-nav.prev {
    left: 20px;
}

.photo-gallery-nav.next {
    right: 20px;
}

.photo-gallery-top-hint {
    display: none;
    position: absolute;
    top: max(20px, env(safe-area-inset-top, 20px));
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1010;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1024px) {
    .photo-gallery-modal {
        z-index: 1200 !important;
    }

    .photo-gallery-top-hint {
        display: block !important;
    }

    .photo-gallery-counter {
        display: none !important;
    }

    .photo-gallery-close {
        top: auto !important;
        right: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        left: 16px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        color: #ef4444 !important;
        font-size: 1.6rem !important;
        font-weight: 900 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        z-index: 25 !important;
        cursor: pointer !important;
        transition: transform 0.15s ease, opacity 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .photo-gallery-close i {
        color: #ef4444 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)) !important;
    }

    .photo-gallery-close:active {
        transform: scale(0.9) !important;
        opacity: 0.8 !important;
        background: transparent !important;
    }

    .photo-gallery-caption {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        height: 44px !important;
        min-height: 44px !important;
        width: calc(100% - 120px) !important;
        max-width: 400px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        box-shadow: none !important;
        z-index: 20 !important;
        pointer-events: none !important;
    }

    .photo-gallery-touch-zone {
        top: 60px;
        bottom: 70px;
    }
}

.photo-gallery-caption {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    max-width: 90vw;
    padding: 0 16px;
    box-sizing: border-box;
}

.gallery-caption-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    gap: 6px;
}

.gallery-caption-name {
    max-width: 50vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.gallery-caption-sep,
.gallery-caption-count {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Swipe Controls Slot & Void Dock */
.swipe-controls-slot {
    width: 100%;
    height: 92px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Swipe Controls */
.swipe-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 0;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Floating Action Orbs on Mobile (< 1025px) when vertical scroll begins */
@media (max-width: 1024px) {
    .swipe-controls.is-floating {
        position: fixed !important;
        bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 440px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        z-index: 85 !important;
        pointer-events: none !important;
        animation: floatOrbIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .swipe-controls.is-floating .swipe-btn {
        pointer-events: auto !important;
        background: #171822 !important;
        border: 2px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
        transform: translateZ(0);
        will-change: transform;
    }

    .swipe-controls.is-floating .btn-rewind {
        border-color: rgba(245, 158, 11, 0.6) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.3) !important;
    }

    .swipe-controls.is-floating .btn-pass {
        border-color: rgba(239, 68, 68, 0.6) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(239, 68, 68, 0.3) !important;
    }

    .swipe-controls.is-floating .btn-superlike {
        border-color: rgba(6, 182, 212, 0.6) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(6, 182, 212, 0.3) !important;
    }

    .swipe-controls.is-floating .btn-like {
        border-color: rgba(16, 185, 129, 0.6) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(16, 185, 129, 0.3) !important;
    }

    /* Light Theme Distinct Contrast */
    [data-theme="light"] .swipe-controls.is-floating .swipe-btn {
        background: #ffffff !important;
        border: 2px solid rgba(0, 0, 0, 0.14) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    }

    [data-theme="light"] .swipe-controls.is-floating .btn-rewind {
        border-color: rgba(245, 158, 11, 0.75) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(245, 158, 11, 0.22) !important;
    }

    [data-theme="light"] .swipe-controls.is-floating .btn-pass {
        border-color: rgba(239, 68, 68, 0.75) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(239, 68, 68, 0.22) !important;
    }

    [data-theme="light"] .swipe-controls.is-floating .btn-superlike {
        border-color: rgba(6, 182, 212, 0.75) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(6, 182, 212, 0.22) !important;
    }

    [data-theme="light"] .swipe-controls.is-floating .btn-like {
        border-color: rgba(16, 185, 129, 0.75) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(16, 185, 129, 0.22) !important;
    }

    @keyframes floatOrbIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Void Placeholder (Option A Quad-Dashed Lines in place of floating controls) */
.swipe-controls-void {
    width: 100%;
    height: 100%;
    margin: 20px 0 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

[data-theme="light"] .swipe-controls-void {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.14);
}

.void-dash-strand {
    height: 2.5px;
    border-top: 2.5px dashed;
    margin: 0 5px;
    opacity: 0.9;
}

.void-dash-strand.strand-amber {
    flex: 1;
    border-color: #f59e0b;
}

.void-dash-strand.strand-red {
    flex: 1.4;
    border-color: #ef4444;
}

.void-dash-strand.strand-cyan {
    flex: 1;
    border-color: #06b6d4;
}

.void-dash-strand.strand-green {
    flex: 1.4;
    border-color: #10b981;
}

.void-center-tag {
    position: absolute;
    background: var(--bg-card);
    padding: 4px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

@media (max-height: 640px) {
    .swipe-controls {
        padding: 6px 0 !important;
        gap: 10px !important;
    }
    .swipe-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }
    .btn-rewind,
    .btn-superlike {
        width: 40px !important;
        height: 40px !important;
    }
    .card-title {
        font-size: 1.45rem !important;
    }
    .card-subtitle {
        font-size: 0.82rem !important;
        margin-top: 2px !important;
    }
    .card-gradient-overlay {
        padding: 12px 14px !important;
    }
    .card-tags {
        margin-top: 6px !important;
        gap: 4px !important;
    }
}

@media (max-height: 480px) {
    .card-bio {
        display: none !important;
    }
    .card-tags {
        display: none !important;
    }
}

.swipe-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.swipe-btn:active {
    transform: scale(0.9);
}

.btn-rewind {
    width: 50px;
    height: 50px;
    color: var(--warning);
}

.btn-rewind:hover {
    background: rgba(245, 158, 11, 0.18);
}

.btn-pass { color: var(--danger); }
.btn-pass:hover { background: rgba(239, 68, 68, 0.15); }

.btn-superlike { width: 50px; height: 50px; color: var(--info); }
.btn-superlike:hover { background: rgba(59, 130, 246, 0.15); }

.btn-like { color: var(--primary); }
.btn-like:hover { background: rgba(255, 65, 108, 0.15); }

/* Mobile Candidate Details Section */
#mobile-candidate-details {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 32px;
    min-height: calc(100dvh - var(--header-height) - var(--nav-height));
    box-sizing: border-box;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

@media (min-width: 1025px) {
    #mobile-candidate-details {
        display: none !important;
    }
}

.mobile-candidate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.mobile-candidate-header {
    margin-bottom: 12px;
}

.mobile-candidate-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.mobile-candidate-name .card-name-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-candidate-name .card-age-wrap,
.mobile-candidate-name .age {
    flex-shrink: 0;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.mobile-candidate-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Empty Deck State */
.empty-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-deck i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-deck h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-deck p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ==========================================
   LIKES SECTION VIEW
   ========================================== */
#sec-likes {
    padding: 16px;
    overflow-y: auto;
}

.likes-container {
    width: 100%;
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .likes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.like-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.like-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.like-card-image-box {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-glass);
}

/* Profiles You Have Liked Modal - Compact Grid & Cards */
#liked-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    #liked-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

#liked-profiles-grid .like-card {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

#liked-profiles-grid .like-card-image-box {
    aspect-ratio: 4 / 3;
    max-height: 140px;
    position: relative;
    overflow: hidden;
    background: #000;
}

#liked-profiles-grid .like-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

#liked-profiles-grid .like-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

#liked-profiles-grid .like-card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

#liked-profiles-grid .btn-remove-like {
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

#liked-profiles-grid .btn-remove-like:hover {
    background: rgba(225, 29, 72, 0.15);
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.4);
}

.like-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.like-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.like-card-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}

.like-card-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.like-card-sub {
    display: none !important;
}

.like-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.like-card-actions .btn {
    flex: 1;
    padding: 6px 0;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.like-card-actions .btn-like-pass {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.like-card-actions .btn-like-pass:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .like-card-actions .btn-like-pass {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .like-card-actions .btn-like-pass:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.like-card-actions .btn-like-back,
.like-card-actions .btn-start-chat {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.like-card-actions .btn-like-back:hover,
.like-card-actions .btn-start-chat:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.45);
}

/* Empty Likes Presentation Card */
.empty-likes-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

.empty-likes-card .empty-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.empty-likes-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-likes-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 20px;
}

/* ==========================================
   MATCHES & MESSAGES VIEW
   ========================================== */
#sec-matches {
    padding: 16px;
    overflow-y: auto;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matches-reel-container {
    margin-bottom: 24px;
}

.matches-reel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.matches-reel::-webkit-scrollbar {
    display: none;
}

.match-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.match-avatar-wrapper {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    padding: 3px;
    background: var(--gradient-brand);
    position: relative;
}

.match-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--bg-card);
}

.match-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Conversations List */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conversation-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.conversation-card:hover {
    background: var(--bg-glass);
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    min-width: 0;
}

.conversation-name {
    font-size: 1rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.conversation-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-card.unread .conversation-snippet {
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================
   CHAT MODAL
   ========================================== */
.chat-modal-content {
    width: 100%;
    height: 100%;
    max-width: 480px;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1025px) {
    .chat-modal-content {
        max-width: 600px;
        margin: auto;
        border-radius: var(--radius-lg);
        height: 90vh;
    }
}

.chat-header {
    height: var(--header-height);
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-header-call-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-call-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 65, 108, 0.12);
    border: 1px solid rgba(255, 65, 108, 0.25);
    color: var(--brand-pink, #ff416c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-call-header:hover {
    background: var(--brand-pink, #ff416c);
    color: #fff;
    transform: scale(1.05);
}

/* Call Lightbox / Modal Overlays */
.call-overlay {
    z-index: 1250 !important;
    background: rgba(12, 12, 16, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* =========================================================
   INCOMING CALL OVERLAY (Desktop: Concept B | Mobile: Option 1)
   ========================================================= */

#modal-incoming-call,
#modal-incoming-call.modal-overlay,
#modal-incoming-call.call-overlay,
.incoming-call-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    z-index: 1250 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Clipped Backdrop Wrap to guarantee zero scroll inflation */
.incoming-call-backdrop-wrap {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Blurred Caller Photo Backdrop */
.incoming-call-backdrop {
    position: absolute;
    inset: -30px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.38);
    transform: scale(1.1);
    z-index: 1;
    pointer-events: none;
    transition: background-image 0.3s ease;
}

/* Translucent Dark Glass Tint (Concept B Blur) */
.incoming-call-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2;
    pointer-events: none;
}

/* Top Call Pill with Text & Equalizer */
.incoming-call-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 65, 108, 0.14);
    border: 1px solid rgba(255, 65, 108, 0.32);
    color: #ff758c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.incoming-call-pill .call-type-icon {
    font-size: 0.85rem;
}

.incoming-call-pill .call-type-text {
    display: inline-block;
}

.incoming-call-pill .soundwave-anim {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 14px;
    margin-left: 2px;
}

.incoming-call-pill .soundwave-anim .wave-bar {
    width: 3px;
    height: 5px;
    background: #ff416c;
    border-radius: 2px;
    animation: incomingWaveBounce 1.2s infinite ease-in-out;
}

.incoming-call-pill .soundwave-anim .wave-bar:nth-child(2) { animation-delay: 0.2s; height: 11px; }
.incoming-call-pill .soundwave-anim .wave-bar:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.incoming-call-pill .soundwave-anim .wave-bar:nth-child(4) { animation-delay: 0.1s; height: 8px; }

@keyframes incomingWaveBounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Tight Radiating Squircle Rings */
.incoming-avatar-wrap {
    position: relative;
}

.incoming-pulse-ring {
    position: absolute;
    border: 2px solid #ff416c;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    animation: incomingTightPulse 2s infinite ease-out;
}

.incoming-pulse-ring.ring-1 {
    inset: -6px;
    border-radius: 30px;
}

.incoming-pulse-ring.ring-2 {
    inset: -12px;
    border-radius: 34px;
    border-color: #e11d48;
    opacity: 0.5;
    animation-delay: 0.6s;
}

@keyframes incomingTightPulse {
    0% { transform: scale(0.96); opacity: 0.9; }
    100% { transform: scale(1.06); opacity: 0; }
}

.incoming-verified-badge {
    color: #38bdf8;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Clear icon overrides inside incoming call card */
.incoming-call-card .btn-call-action i {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: inline-block !important;
    color: inherit !important;
    font-size: inherit !important;
    box-shadow: none !important;
    animation: none !important;
}

/* =========================================================
   DESKTOP VIEWPORT (>= 641px): CONCEPT B (Floating Glass Pod)
   ========================================================= */
@media (min-width: 641px) {
    .incoming-call-card {
        position: relative;
        z-index: 10;
        width: 440px;
        max-width: 90vw;
        border-radius: 28px;
        background: rgba(20, 21, 30, 0.88);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 65, 108, 0.15);
        padding: 24px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 20px;
        animation: callCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .incoming-call-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .incoming-call-logo {
        display: none;
    }

    .incoming-call-profile-section {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .incoming-avatar-wrap {
        width: 82px;
        height: 82px;
        flex-shrink: 0;
        margin: 0;
    }

    .incoming-avatar-img {
        width: 100%;
        height: 100%;
        border-radius: 22px !important;
        object-fit: cover;
        border: 2px solid rgba(255, 65, 108, 0.4);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        position: relative;
        z-index: 2;
    }

    .incoming-caller-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .incoming-caller-name-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .incoming-caller-name {
        font-size: 1.35rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px;
        letter-spacing: -0.02em;
    }

    .incoming-call-status-label {
        font-size: 0.85rem;
        color: #ff758c;
        font-weight: 600;
        margin: 4px 0 0 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .incoming-call-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 4px;
    }

    .incoming-call-card .btn-call-action {
        height: 52px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0 16px;
    }

    .incoming-call-card .btn-call-decline {
        background: rgba(239, 68, 68, 0.14) !important;
        border: 1px solid rgba(239, 68, 68, 0.35) !important;
        color: #f87171 !important;
    }

    .incoming-call-card .btn-call-decline:hover {
        background: rgba(239, 68, 68, 0.24) !important;
        transform: translateY(-1px);
    }

    .incoming-call-card .btn-call-accept {
        background: linear-gradient(135deg, #ff416c, #e11d48) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4) !important;
    }

    .incoming-call-card .btn-call-accept:hover {
        box-shadow: 0 8px 26px rgba(255, 65, 108, 0.6) !important;
        transform: translateY(-1px);
    }

    .incoming-call-card .btn-call-action .call-action-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .incoming-call-card .btn-call-action .call-action-label {
        font-size: 0.95rem;
        font-weight: 700;
        text-transform: capitalize;
    }
}

/* =========================================================
   MOBILE VIEWPORT (<= 640px): OPTION 1 (Floating Circle Pods)
   ========================================================= */
@media (max-width: 640px) {
    .incoming-call-card {
        position: relative;
        z-index: 10;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100% !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: calc(20px + env(safe-area-inset-top, 8px)) 20px calc(36px + env(safe-area-inset-bottom, 16px)) 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .incoming-call-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: env(safe-area-inset-top, 8px);
    }

    .incoming-call-logo {
        display: block;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        object-fit: cover;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
        flex-shrink: 0;
    }

    .incoming-call-pill {
        padding: 6px 14px;
        font-size: 0.72rem;
    }

    .incoming-call-profile-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: auto 0;
        width: 100%;
    }

    .incoming-avatar-wrap {
        width: 144px;
        height: 144px;
        margin: 0 auto 18px auto;
    }

    .incoming-avatar-img {
        width: 100%;
        height: 100%;
        border-radius: 26px !important;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.88);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
        position: relative;
        z-index: 2;
    }

    .incoming-caller-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .incoming-caller-name-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        max-width: 290px;
        margin: 0 auto 4px auto;
    }

    .incoming-caller-name {
        font-size: 1.6rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px;
        letter-spacing: -0.02em;
    }

    .incoming-call-status-label {
        display: none;
    }

    .incoming-call-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }

    .incoming-call-card .btn-call-action {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }

    .incoming-call-card .btn-call-action .call-action-icon-wrap {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: transform 0.2s ease;
    }

    .incoming-call-card .btn-call-action:hover .call-action-icon-wrap {
        transform: scale(1.08);
    }

    .incoming-call-card .btn-call-decline .call-action-icon-wrap {
        background: rgba(239, 68, 68, 0.18);
        border: 2px solid rgba(239, 68, 68, 0.45);
        color: #ef4444;
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
    }

    .incoming-call-card .btn-call-accept .call-action-icon-wrap {
        background: linear-gradient(135deg, #10b981, #059669);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
        animation: pulseAcceptGlow 1.8s infinite ease-in-out;
    }

    @keyframes pulseAcceptGlow {
        0%, 100% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4); }
        50% { box-shadow: 0 12px 36px rgba(16, 185, 129, 0.75); }
    }

    .incoming-call-card .btn-call-action .call-action-label {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .incoming-call-card .btn-call-decline .call-action-label {
        color: #f87171 !important;
    }

    .incoming-call-card .btn-call-accept .call-action-label {
        color: #34d399 !important;
    }
}

@keyframes callCardPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.call-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 18px auto;
}

.call-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-pink, #ff416c);
    position: relative;
    z-index: 2;
}

.call-pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--brand-pink, #ff416c);
    opacity: 0.8;
    animation: pulseRing 1.6s infinite ease-out;
    z-index: 1;
}

.call-pulse-ring.active {
    border-color: #2ed573;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

.call-user-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.call-type-label, .call-status-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px 0;
}

.call-timer-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-pink, #ff416c);
    /*margin: 6px 0 0 0;*/
    margin: 0 0 0;
}

.call-actions-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
}

.btn-call-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.btn-call-action i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: transform 0.2s ease;
}

.btn-call-action:hover i {
    transform: scale(1.1);
}

.btn-call-decline i {
    background: #ff4757;
}

.btn-call-accept i {
    background: #2ed573;
    animation: acceptGlow 1.2s infinite ease-in-out alternate;
}

@keyframes acceptGlow {
    from { box-shadow: 0 0 8px rgba(46, 213, 115, 0.4); }
    to { box-shadow: 0 0 24px rgba(46, 213, 115, 0.9); }
}

/* ========================================================
   ACTIVE CALL MODAL (Option A: "Ambient Studio")
   ======================================================== */
.active-call-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1250 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 16px;
    box-sizing: border-box;
}

.active-call-modal-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

/* Option A Desktop Modal Card (min-width: 641px) */
@media (min-width: 641px) {
    .active-call-modal-box.option-a-box {
        width: 440px;
        height: 720px;
        max-height: 92vh;
        border-radius: 36px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 65, 108, 0.18);
        padding: 24px 20px 32px 20px;
        background: rgba(10, 11, 16, 0.92);
    }
}

/* Top HUD Minimize button & grouping */
.hud-top-left-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.incoming-top-left-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.btn-call-minimize {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 3px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-call-minimize:hover,
.btn-call-minimize:active {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(1px);
}

/* ========================================================
   FLOATING MINIMIZED CALL OVERLAY (Concept 1: Aura Capsule)
   ======================================================== */
.floating-call-capsule {
    position: fixed !important;
    top: calc(var(--header-height, 63px) + 12px);
    right: 14px;
    z-index: 1200 !important;
    background: rgba(18, 21, 33, 0.94) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 65, 108, 0.28) !important;
    border-radius: 999px !important;
    padding: 5px 8px 5px 5px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    max-width: calc(100vw - 24px);
    width: auto;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    animation: fCapsulePop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fCapsulePop {
    0% {
        opacity: 0;
        transform: scale(0.88);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-call-capsule.is-dragging {
    opacity: 0.96 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 0 0 1.5px rgba(255, 65, 108, 0.45) !important;
    transition: none !important;
}

.f-capsule-drag-handle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: grab;
    min-width: 0;
    flex: 1;
}

.floating-call-capsule.is-dragging .f-capsule-drag-handle {
    cursor: grabbing;
}

.f-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

.f-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ff416c;
    display: block;
    background: #202436;
}

.f-live-pulse-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #121521;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.f-call-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.f-call-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85px;
    line-height: 1.2;
}

.f-call-timer-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #34d399;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-top: 1px;
}

.f-call-phone-icon {
    font-size: 0.58rem;
    color: #34d399;
}

.f-call-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.f-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.7rem;
    transition: transform 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.f-action-btn:active {
    transform: scale(0.92);
}

.f-btn-mic {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

.f-btn-mic.is-muted {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.f-btn-expand {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.f-btn-expand:hover {
    background: rgba(255, 255, 255, 0.16);
}

.f-btn-accept {
    background: #10b981 !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
}

.f-btn-accept:hover,
.f-btn-accept:active {
    background: #059669 !important;
    border-color: #059669 !important;
}

.f-btn-end {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.f-btn-end:hover {
    background: #dc2626;
}

@media (max-width: 360px) {
    .f-call-name {
        max-width: 65px;
    }
}

/* Option A Mobile Viewport (<= 640px) */
@media (max-width: 640px) {
    .active-call-overlay {
        padding: 0 !important;
    }

    .active-call-modal-box.option-a-box {
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        padding: calc(16px + env(safe-area-inset-top, 8px)) 16px calc(24px + env(safe-area-inset-bottom, 12px)) 16px;
        background: #090a0f;
    }
}

/* Blurred Ambient Backdrop & Tint */
.opt-a-backdrop {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(32px) brightness(0.32);
    transform: scale(1.12);
    z-index: 1;
    pointer-events: none;
    transition: background-image 0.4s ease;
}

.opt-a-tint {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(255, 65, 108, 0.14) 0%, rgba(10, 11, 16, 0.86) 75%);
    z-index: 2;
    pointer-events: none;
}

/* Top HUD Row */
.hud-top-row {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.hud-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.hud-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hud-brand-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Pre-Call Dialing Pill: Option 2 E2E Encrypted Badge */
.pill-e2e-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
    transition: all 0.3s ease;
}

.pill-e2e-secure i {
    color: #10b981;
    font-size: 0.74rem;
}

/* Status Pill Badge (Connected Active State) */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    margin: 5px 0 0;
}

.pill-badge.is-connecting {
    background: rgba(255, 65, 108, 0.14);
    border-color: rgba(255, 65, 108, 0.35);
    color: #ff758c;
}

.pill-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulseDot 1.4s infinite ease-in-out;
}

.pill-badge.is-connecting .dot {
    background: #ff416c;
    box-shadow: 0 0 6px #ff416c;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.pill-sep {
    opacity: 0.6;
    font-size: 0.62rem;
    margin: 0 1px;
}

.call-timer-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    font-size: 0.70rem;
}

/* Live Equalizer Soundwave */
.wave-anim {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 11px;
}

.wave-item {
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    animation: waveBounce 1.2s infinite ease-in-out;
}
.wave-item:nth-child(2) { animation-delay: 0.2s; height: 9px; }
.wave-item:nth-child(3) { animation-delay: 0.4s; height: 11px; }
.wave-item:nth-child(4) { animation-delay: 0.1s; height: 6px; }

@keyframes waveBounce {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

.pill-badge.is-connecting .wave-anim {
    display: none;
}

/* Audio Center View */
.opt-a-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    width: 100%;
}

.opt-a-avatar-wrap {
    position: relative;
    width: 154px;
    height: 154px;
    margin: 0 auto 20px auto;
}

.opt-a-avatar {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 3;
}

.opt-a-ring-1 {
    position: absolute;
    inset: -8px;
    border-radius: 38px;
    border: 2px solid #10b981;
    opacity: 0.8;
    animation: ringPulse 2.4s infinite ease-out;
    z-index: 2;
}

.opt-a-ring-2 {
    position: absolute;
    inset: -16px;
    border-radius: 44px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    opacity: 0.5;
    animation: ringPulse 2.4s infinite ease-out 0.8s;
    z-index: 2;
}

@keyframes ringPulse {
    0% { transform: scale(0.96); opacity: 0.8; }
    100% { transform: scale(1.12); opacity: 0; }
}

/* Option 3: Avatar Micro Equalizer Badge */
.avatar-equalizer-badge {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3.5px;
    background: rgba(18, 20, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    user-select: none;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.avatar-eq-bar {
    width: 3px;
    height: 10px;
    background: #ff416c;
    border-radius: 2px;
    animation: avatarEqDance 1.2s infinite ease-in-out;
}
.avatar-eq-bar:nth-child(2) { animation-delay: 0.2s; height: 15px; background: #fb7185; }
.avatar-eq-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; background: #38bdf8; }
.avatar-eq-bar:nth-child(4) { animation-delay: 0.1s; height: 13px; background: #10b981; }

@keyframes avatarEqDance {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* User Name Row with Verified Badge & Ellipsis Truncation */
.call-user-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 6px auto;
    max-width: 90%;
    min-width: 0;
}

.call-user-name {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: inline-block;
}

@media (max-width: 480px) {
    .call-user-name {
        font-size: 1.45rem;
        max-width: 220px;
    }
}

.call-verified-badge {
    color: #38bdf8;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Status & Dynamic WebRTC Quality Row */
.call-status-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin: 0;
}

/* Option 2: Ringing Status Badge Pill */
.ringing-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 65, 108, 0.14);
    border: 1px solid rgba(255, 65, 108, 0.32);
    color: #ff758c;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 2px;
    max-width: 290px;
    box-shadow: 0 4px 14px rgba(255, 65, 108, 0.15);
    user-select: none;
    transition: all 0.25s ease;
}

#call-ringing-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: inline-block;
}

@media (max-width: 480px) {
    .ringing-status-badge {
        max-width: 260px;
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    #call-ringing-label {
        max-width: 215px;
    }
}

.ringing-status-badge i {
    font-size: 0.76rem;
    flex-shrink: 0;
    animation: ringingArrowNudge 1.6s infinite ease-in-out;
}

@keyframes ringingArrowNudge {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2px, -2px); }
}

.call-status-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.call-quality-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.call-conn-text {
    color: rgba(255, 255, 255, 0.75);
}

.quality-dot-sep {
    opacity: 0.5;
    font-size: 0.75rem;
}

/* Dynamic Quality Badges */
.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: default;
}

.quality-badge.quality-excellent {
    color: #34d399;
}

.quality-badge.quality-good {
    color: #38bdf8;
}

.quality-badge.quality-fair {
    color: #fbbf24;
}

.quality-badge.quality-poor {
    color: #f87171;
}

.quality-badge.quality-reconnecting {
    color: #fb923c;
    animation: reconnectBlink 1.4s infinite ease-in-out;
}

@keyframes reconnectBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.quality-icon {
    font-size: 0.82rem;
}

/* Video Mode Layout & HUD */
.call-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #000;
    overflow: hidden;
}

.remote-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-video-floating-info {
    position: absolute;
    top: 76px;
    /*left: 18px;*/
    right: 18px;
    z-index: 20;
    background: rgba(12, 14, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 8px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.floating-quality-text {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.floating-quality-text.quality-excellent { color: #34d399; }
.floating-quality-text.quality-good { color: #38bdf8; }
.floating-quality-text.quality-fair { color: #fbbf24; }
.floating-quality-text.quality-poor { color: #f87171; }
.floating-quality-text.quality-reconnecting { color: #fb923c; animation: reconnectBlink 1.4s infinite ease-in-out; }

/* Draggable Local Video Preview */
.local-video-preview {
    position: absolute;
    bottom: 135px;
    right: 20px;
    width: 115px;
    height: 155px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    background: #14151e;
    z-index: 25;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.2s ease;
}

.local-video-preview.is-dragging {
    cursor: grabbing;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.local-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.video-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Floating Frosted Dock Controls */
.opt-a-dock {
    position: relative;
    z-index: 25;
    background: rgba(18, 20, 30, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    padding: 14px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.opt-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    user-select: none;
}

.opt-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    transition: all 0.2s ease;
}

.opt-btn:hover .opt-btn-icon {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.opt-btn.is-off .opt-btn-icon,
.opt-btn-icon.active {
    background: rgba(255, 65, 108, 0.2) !important;
    border-color: rgba(255, 65, 108, 0.5) !important;
    color: #ff758c !important;
}

.opt-btn-icon.end-call {
    width: 58px;
    height: 58px;
    background: #ff2a4b;
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 42, 75, 0.5);
}

.opt-btn:hover .opt-btn-icon.end-call {
    background: #ff4763;
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(255, 42, 75, 0.65);
}

.opt-btn-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: capitalize;
}

.call-end-label {
    color: #ff6b81;
}

@media (max-width: 480px) {
    .opt-a-dock {
        padding: 12px 14px;
        border-radius: 30px;
    }

    .opt-btn-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .opt-btn-icon.end-call {
        width: 54px;
        height: 54px;
    }

    .opt-btn-label {
        font-size: 0.68rem;
    }

    .local-video-preview {
        bottom: 125px;
        right: 16px;
        width: 100px;
        height: 135px;
    }
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.chat-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-info > div:last-child {
    min-width: 0;
    flex: 1;
}

.chat-user-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#chat-user-sub.is-online {
    color: #10b981;
    font-weight: 700;
}

#chat-user-sub.is-offline {
    color: var(--text-muted, #6b7280);
    font-weight: 700;
}

.sub-text {
    font-size: 0.75rem;
    color: var(--success);
}

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.chat-bubble {
    max-width: 75%;
    padding: 7px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
    display: inline-flex;
    flex-direction: column;
    box-sizing: border-box;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #d92652 0%, #d83018 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: var(--input-bg);
    border: none;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.chat-msg-text {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    line-height: 1.35;
}

.chat-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 2px;
    line-height: 1;
    align-self: flex-end;
}

.chat-bubble.mine .chat-meta {
    color: rgba(255, 255, 255, 0.95);
}

.chat-bubble.theirs .chat-meta {
    color: var(--text-main, #374151);
    font-weight: 600;
}

.chat-bubble.has-video .chat-meta,
.chat-bubble.has-photo .chat-meta {
    color: var(--text-main, #1f2937);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.chat-time {
    font-size: 0.65rem;
    line-height: 1;
    display: inline-block;
}

.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    line-height: 1;
}

.chat-status.is-seen {
    color: #a7f3d0;
}

.chat-status.is-sent {
    opacity: 0.85;
}

.chat-attach-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.chat-attach-btn:hover {
    color: var(--primary);
    background: rgba(255, 65, 108, 0.12);
    transform: scale(1.05);
}

.chat-upload-progress {
    padding: 10px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    box-sizing: border-box;
}

.chat-bubble.has-video,
.chat-bubble.has-photo {
    min-width: 220px;
    max-width: min(85%, 320px);
    padding: 8px 10px 6px 10px;
}

.chat-bubble.mine.has-video,
.chat-bubble.mine.has-photo {
    background: rgba(217, 38, 82, 0.03);
}

.chat-bubble.theirs.has-video,
.chat-bubble.theirs.has-photo {
    background: rgba(255, 255, 255, 0.03);
}

.chat-video-wrap,
.chat-photo-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.chat-photo-img {
    width: 100%;
    max-height: 320px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.chat-photo-img:hover {
    opacity: 0.92;
}

.chat-video-player {
    width: 100%;
    max-height: 260px;
    display: block;
    border-radius: 12px;
    background: #000;
    outline: none;
    object-fit: contain;
}

.chat-video-player p {
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    margin: 0;
}

.chat-video-player a {
    color: #38bdf8;
    text-decoration: underline;
}

.chat-video-caption,
.chat-photo-caption {
    margin-top: 6px;
    margin-bottom: 2px;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 480px) {
    .chat-bubble.has-video,
    .chat-bubble.has-photo {
        min-width: 180px;
        max-width: 88%;
    }
    .chat-video-player {
        max-height: 210px;
    }
    .chat-photo-img {
        max-height: 240px;
    }
}

.chat-footer {
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.chat-input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    height: 42px;
    overflow-y: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Dropdown Menu */
.chat-actions {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-item {
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.danger {
    color: var(--danger);
}

/* ==========================================
   PROFILE & PHOTOS VIEW
   ========================================== */
#sec-profile {
    padding: 16px;
    overflow-y: auto;
}

.profile-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.profile-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

@media (max-width: 520px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 280px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }
}

.photo-cell {
    aspect-ratio: 280/360;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-cell .primary-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gradient-brand);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.photo-cell-flagged {
    border: 2px solid #ef4444 !important;
}

.photo-mod-badge.flagged {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

.photo-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    left: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 25 !important;
    pointer-events: none;
}

.photo-cell .photo-actions,
.studio-photo-card .studio-photo-actions {
    z-index: 25 !important;
}

.photo-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: auto !important;
    position: relative;
    z-index: 26 !important;
    touch-action: manipulation;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.photo-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.08);
}

.photo-btn:active {
    transform: scale(0.95);
}

.photo-btn i,
.photo-btn svg {
    pointer-events: none !important;
}

@media (max-width: 600px) {
    .nav-item[data-target="sec-new-matches"] .nav-label-prefix {
        display: none;
    }
}

/* ==========================================
   ADVANCED FILTER & FORM STYLING
   ========================================== */
.modal-card-lg {
    max-width: 520px;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: none;
    transition: background 0.15s ease;
}

.checkbox-group label:hover {
    background: var(--bg-glass);
}

.chip-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--input-bg);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-item input[type="checkbox"] {
    display: none;
}

.chip-item:has(input[type="checkbox"]:checked) {
    background: rgba(255, 65, 108, 0.2);
    color: var(--primary);
    font-weight: 700;
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.blocked-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blocked-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--input-bg);
    border: none;
    border-radius: var(--radius-md);
}

.blocked-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blocked-user-info img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.blocked-user-name {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Auto-Growing Textareas (min: 80px, max: 100px, no manual resize handle) */
textarea, textarea.form-input {
    min-height: 80px !important;
    max-height: 100px !important;
    height: 80px;
    resize: none !important;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    overflow-y: hidden;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Custom Select Component UI */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.custom-select-trigger:focus, .custom-select-trigger.active {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 65, 108, 0.2);
}

.custom-select-trigger.invalid {
    border-color: var(--danger) !important;
}

.custom-select-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Options Picker Modal / Sheet */
.custom-select-picker-card {
    max-width: 440px;
    width: 92%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.custom-select-options-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 60vh;
}

.custom-select-option-item {
    width: 100%;
    padding: 14px 18px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.custom-select-option-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.custom-select-option-item.selected {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.15) 0%, rgba(255, 75, 43, 0.15) 100%);
    border-color: var(--primary);
    color: #ffffff;
}

.custom-select-group-header {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary, #ff416c);
    padding: 10px 8px 4px;
    margin-top: 4px;
    user-select: none;
}

.custom-select-group-header:first-child {
    margin-top: 0;
    padding-top: 4px;
}

/* Form Components */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-row .form-group {
    flex: 1 1 130px;
    min-width: 0;
    box-sizing: border-box;
}

/* Modal Settings Responsive & Non-overflowing Layout */
#modal-settings .modal-card,
#modal-account-settings .modal-card {
    max-width: 520px;
    width: 92%;
    box-sizing: border-box;
    overflow-x: hidden;
}

#modal-settings .modal-body,
#modal-account-settings .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

#modal-settings .form-row,
#modal-account-settings .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

#modal-settings .form-row .form-group,
#modal-account-settings .form-row .form-group {
    flex: 1 1 130px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Preferences Modal Saving Overlay (Heartbeat Processing State - Prompt 2) */
.preferences-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-lg, 20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    animation: fadeIn 0.15s ease-out;
}

[data-theme="light"] .preferences-loader-overlay {
    background: rgba(255, 255, 255, 0.80);
}

/* Sound & Notification Settings Row Alignment (Prompt 3) */
.sound-settings-section .form-row {
    display: flex;
    align-items: stretch;
}

.sound-settings-section .form-row .form-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sound-settings-section .form-row .form-group label {
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
    line-height: 1.25;
}

.sound-settings-section .form-row .form-group .form-input {
    margin-top: auto;
}

.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.45rem;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.icon-btn:hover, .icon-btn:focus-visible {
    background: var(--bg-glass);
    color: var(--primary);
    outline: none;
}

[data-theme="light"] .icon-btn:hover,
[data-theme="light"] .icon-btn:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary);
}

.icon-btn:active {
    transform: scale(0.93);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Alerts & Toasts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success, #10b981);
    color: #6ee7b7;
}

/* Body Lock when Mobile Chat Modal is Open */
body.body-chat-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Global Profile Photo Loading Shimmer Placeholder */
.img-loading {
    background: linear-gradient(110deg, var(--bg-card) 8%, var(--border-color) 18%, var(--bg-card) 33%) !important;
    background-size: 200% 100% !important;
    animation: photoShimmer 1.5s infinite linear !important;
    opacity: 0.7;
    transition: opacity 0.25s ease, background 0.25s ease;
}

@keyframes photoShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img.img-loaded {
    background: transparent !important;
    opacity: 1 !important;
}

/* Modals */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

#modal-report.modal-overlay,
#modal-custom-select.modal-overlay {
    z-index: 1500 !important;
}

@media (max-width: 1024px) {
    #modal-report.modal-overlay,
    #modal-custom-select.modal-overlay,
    #modal-auth-theme.modal-overlay {
        z-index: 1500 !important;
        top: 0 !important;
        height: 100% !important;
        height: 100dvh !important;
        align-items: center !important;
    }

    .modal-overlay:not(#consent-banner-overlay):not(#modal-legal-viewer):not(#modal-photo-gallery):not(#modal-chat):not(#modal-photo-crop):not(#modal-report):not(#modal-custom-select):not(#modal-incoming-call):not(#modal-active-call):not(#modal-auth-theme):not(#modal-settings):not(#modal-account-settings) {
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        height: calc(100% - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        z-index: 900 !important;
        padding: 20px 16px !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
    }

    #modal-photo-crop.modal-overlay[style*="display: none"],
    #modal-photo-crop.modal-overlay[style*="display:none"] {
        display: none !important;
    }

    #modal-photo-crop.modal-overlay {
        position: fixed !important;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100% - var(--header-height) - var(--nav-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        height: calc(100dvh - var(--header-height) - var(--nav-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        z-index: 90 !important;
        padding: 8px 12px !important;
        background: rgba(10, 10, 15, 0.75) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #modal-photo-crop .modal-card {
        width: 100% !important;
        max-width: 380px !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: var(--radius-lg) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #modal-photo-crop .modal-header {
        padding: 8px 14px !important;
        flex-shrink: 0 !important;
    }

    #modal-photo-crop .modal-header h3 {
        font-size: 0.95rem !important;
    }

    #modal-photo-crop .modal-body {
        padding: 8px 14px !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #modal-photo-crop .modal-body > p {
        margin-bottom: 4px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }

    #modal-photo-crop .crop-preview-frame {
        flex: 0 0 auto !important;
        aspect-ratio: 280 / 360 !important;
        height: clamp(180px, calc(100dvh - 340px), 360px) !important;
        width: auto !important;
        max-width: 280px !important;
        margin: 4px auto !important;
    }

    #modal-photo-crop .crop-controls-row {
        margin-top: 6px !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }

    #modal-photo-crop #btn-save-crop {
        margin-top: 8px !important;
        padding: 8px 16px !important;
        flex-shrink: 0 !important;
    }

    #modal-chat.modal-overlay[style*="display: none"],
    #modal-chat.modal-overlay[style*="display:none"] {
        display: none !important;
    }

    #modal-chat.modal-overlay {
        position: fixed !important;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100% - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        padding: 0 !important;
        margin: 0 !important;
        background: var(--bg-main) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 950 !important;
        border: none !important;
        border-radius: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.body-chat-open .app-header {
        border-bottom: none !important;
        box-shadow: none !important;
    }

    body.body-chat-open .app-header #btn-view-profile-preview {
        margin-right: -10px !important;
    }

    body.body-chat-open .app-header #btn-open-settings {
        margin-right: -5px !important;
    }

    #modal-chat .chat-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--bg-main) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #modal-chat .chat-header {
        border-radius: 0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: var(--bg-card) !important;
        padding: 0 10px !important;
        height: 52px !important;
        flex-shrink: 0 !important;
        gap: 4px !important;
    }

    #modal-chat .chat-header #btn-close-chat {
        margin-right: -4px !important;
    }

    #modal-chat .chat-user-info {
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 0% !important;
        max-width: calc(100% - 130px) !important;
    }

    #modal-chat .chat-user-info h4,
    #modal-chat #chat-user-sub {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        max-width: 100% !important;
    }

    body.body-chat-open #modal-chat .chat-user-info h4{
        max-width: 80% !important;
    }

    #modal-chat .chat-header-call-btns {
        gap: 2px !important;
        flex-shrink: 0 !important;
    }

    #modal-chat .chat-actions {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    #modal-chat .chat-body {
        flex: 1 1 0% !important;
        overflow-y: auto !important;
        padding: 16px 14px !important;
        background: var(--bg-main) !important;
    }

    /* Mobile Chat Composer: [Type a message...] on left, [Video] and [Send] stacked on right */
    #modal-chat .chat-footer {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 1px solid var(--border-color) !important;
        background: var(--bg-card) !important;
        display: flex !important;
        align-items: flex-end !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    #modal-chat .chat-attach-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    #modal-chat .chat-input {
        flex: 1 1 auto !important;
        width: auto !important;
        min-height: 74px !important;
        max-height: 120px !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        padding: 9px 14px !important;
        resize: none !important;
    }

    #modal-chat .chat-attach-btn {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 50% !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-main) !important;
        font-size: 0.95rem !important;
    }

    #modal-chat .send-btn {
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        font-size: 1.05rem !important;
    }
}

.modal-card {
    width: 90%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* Hide modal header icons completely to remove unnecessary empty space and deliver clean, sleek headers */
.modal-header h1 i,
.modal-header h2 i,
.modal-header h3 i,
.modal-header h4 i,
.modal-header h5 i,
.modal-header .modal-title i {
    display: none !important;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* Match Celebration Popup */
.match-popup-content {
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.match-actions-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.match-actions-group .btn {
    flex: 1 1 180px;
    max-width: 210px;
    width: auto;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .match-actions-group {
        flex-direction: column;
        gap: 12px;
    }

    .match-actions-group .btn {
        width: 100%;
        max-width: 260px;
        flex: none;
    }
}

.match-title {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.match-subtitle {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 1rem;
}

.match-photos-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.match-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-card);
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.heart-badge {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 -15px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.5);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Persistent Profile Completion Indicator Card */
.profile-completion-card {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.1) 0%, rgba(255, 75, 43, 0.1) 100%);
    border: 1px solid rgba(255, 65, 108, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.completion-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.completion-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.completion-percentage-badge {
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3);
}

.profile-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.profile-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

/* Public Profile Preview Modal */
.profile-preview-card {
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.profile-preview-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(24, 24, 32, 0.95);
}

.header-preview-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.preview-mode-banner {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.15) 0%, rgba(255, 75, 43, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 65, 108, 0.3);
    padding: 10px 18px;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.preview-mode-banner i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-preview-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.public-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.preview-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 280 / 360;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.preview-photo-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    pointer-events: none;
    z-index: 5;
}

.preview-nav-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
}

.preview-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.08);
}

.preview-photo-indicator {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.preview-photo-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.preview-photo-dots .photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-photo-dots .photo-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.preview-card-details {
    padding: 20px;
}

.preview-card-header {
    margin-bottom: 16px;
}

.preview-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.preview-age {
    font-weight: 400;
    color: var(--text-muted);
}

.preview-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preview-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-bio-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.preview-bio-text {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.preview-tags-section {
    margin-bottom: 20px;
}

.preview-gallery-section {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.preview-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.preview-gallery-item {
    aspect-ratio: 280 / 360;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #000;
}

.preview-gallery-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 65, 108, 0.4);
}

.preview-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-primary-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* =========================================================================
   PROGRESSIVE SKELETON & SHIMMER ENGINE
   ========================================================================= */
@keyframes waveShimmer {
    0% { background-position: -250% 0; }
    100% { background-position: 250% 0; }
}

@keyframes boxyTracerAnimation {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -923.63; }
}

@keyframes ringTracerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shimmer-block {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: waveShimmer 1.9s infinite ease-in-out;
    display: block;
}

.shimmer-pill {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: waveShimmer 1.9s infinite ease-in-out;
    border-radius: 9999px;
    display: inline-block;
}

[data-theme="light"] .shimmer-block,
[data-theme="light"] .shimmer-pill {
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    background-size: 200% 100%;
}

[data-theme="light"] .portrait-boxy-inner.shimmer-block {
    background: #e2e8f0;
}

.shimmer-boxy-tracer {
    stroke-dasharray: 180 743.63;
    animation: boxyTracerAnimation 3s linear infinite;
}

.shimmer-ring-tracer {
    animation: ringTracerRotate 2.6s linear infinite;
    transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
    .shimmer-block,
    .shimmer-pill {
        animation: none !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    .shimmer-boxy-tracer,
    .shimmer-ring-tracer {
        animation: none !important;
    }
}

.profile-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

/* Skeleton & Header Viewport Controls (< 1025px default) */
.profile-header-mobile {
    display: block;
}

.profile-header-desktop {
    display: none !important;
}

.profile-skeleton-mobile {
    display: block !important;
}

.profile-skeleton-desktop {
    display: none !important;
}

/* =========================================================================
   DESKTOP PROFILE HEADER CONCEPT A (>= 1025px)
   ========================================================================= */
.updated-concept-a-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 34px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    max-width: 1050px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.updated-concept-a-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: radial-gradient(circle at left center, rgba(255, 65, 108, 0.12), transparent 70%);
    pointer-events: none;
}

/* Shape-following Boxy RGB Progress Border Wrapper */
.portrait-boxy-perimeter-wrapper {
    position: relative;
    width: 248px;
    height: 248px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portrait-boxy-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 248px;
    height: 248px;
    pointer-events: none;
    z-index: 1;
}

.portrait-boxy-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

.portrait-boxy-fill {
    fill: none;
    stroke: url(#rgbProgressGradient);
    stroke-width: 5;
    stroke-linecap: round;
    filter: url(#rgbRingGlow);
    stroke-dasharray: 923.63;
    stroke-dashoffset: 923.63;
    transition: none !important;
}

/* Box-shaped Photo Container */
.portrait-boxy-inner {
    position: relative;
    width: 232px;
    height: 232px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    background: #121218;
    z-index: 2;
}

.portrait-boxy-inner img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    display: block !important;
}

.portrait-boxy-inner .card-heartbeat-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.photo-chip-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 15, 19, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

/* Completion Percentage Indicator INSIDE the Profile Photo */
.photo-percentage-badge-inside {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(255, 65, 108, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.25);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.concept-a-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    min-width: 0;
}

.concept-a-info-col .status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.concept-a-info-col .status-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
}

.concept-a-info-col .status-chip-active .pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.concept-a-name-age {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.concept-a-location {
    font-size: 0.98rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.concept-a-bio-snippet {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 600px;
    background: var(--bg-glass, rgba(255, 255, 255, 0.03));
    border-left: 3px solid #ff416c;
    padding: 10px 14px;
    border-radius: 8px;
}

[data-theme="light"] .concept-a-bio-snippet {
    background: #f1f5f9;
}

.concept-a-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-discovery-feed {
    background: var(--bg-glass, rgba(255, 255, 255, 0.05));
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-discovery-feed:hover {
    background: rgba(255, 65, 108, 0.08);
    border-color: rgba(255, 65, 108, 0.35);
    color: var(--primary);
}

[data-theme="light"] .btn-discovery-feed {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .btn-discovery-feed:hover {
    background: #f1f5f9;
    border-color: #ff416c;
    color: #ff416c;
}

/* Desktop Skeleton Container */
.desktop-skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 34px;
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 36px;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto 24px auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.desktop-summary-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 28px;
    max-width: 1050px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   BADOO-INSPIRED PROFILE OVERVIEW DESIGN SYSTEM
   ========================================== */
.profile-overview-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.badoo-profile-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.badoo-profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    background: radial-gradient(circle at top, rgba(255, 65, 108, 0.25), transparent 70%);
    pointer-events: none;
}

.badoo-avatar-ring-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badoo-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.badoo-ring-bg {
    fill: none;
    stroke: var(--ring-bg-stroke, rgba(255, 255, 255, 0.08));
    stroke-width: 8;
}

.badoo-ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: none !important;
}

.badoo-avatar-box {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badoo-avatar-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.badoo-avatar-box .card-heartbeat-loader,
.badoo-avatar-box .thumbnail-heartbeat-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.badoo-ring-badge {
    position: absolute;
    bottom: 2px;
    right: 12px;
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4);
    border: 2px solid var(--bg-card);
}

.badoo-name-age {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.25;
    max-width: 100%;
}

.badoo-name-age.is-single-word,
.concept-a-name-age.is-single-word {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
}

.badoo-name-age.is-single-word {
    justify-content: center;
}

.badoo-name-age.is-single-word .profile-name-text,
.concept-a-name-age.is-single-word .profile-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
}

.badoo-name-age.is-single-word .profile-age-text,
.concept-a-name-age.is-single-word .profile-age-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.badoo-name-age.is-multi-word,
.concept-a-name-age.is-multi-word {
    display: block;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.25;
    max-height: 2.65em;
    overflow: hidden;
}

.badoo-name-age.is-multi-word .profile-name-text,
.concept-a-name-age.is-multi-word .profile-name-text {
    display: inline;
}

.badoo-name-age.is-multi-word .profile-age-text,
.concept-a-name-age.is-multi-word .profile-age-text {
    white-space: nowrap;
    display: inline;
}

.badoo-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.badoo-status-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.style-edit-profile-btn {
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badoo-summary-card, .badoo-prompts-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.badoo-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badoo-bio-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    position: relative;
}

.quote-icon {
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
}

.badoo-bio-text {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.badoo-details-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badoo-detail-item {
    background: var(--input-bg);
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badoo-detail-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.badoo-detail-item i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.badoo-prompts-header {
    margin-bottom: 14px;
}

.badoo-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prompt-card-item {
    background: var(--input-bg);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prompt-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.badoo-all-complete-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.badoo-all-complete-card i {
    font-size: 1.5rem;
}

.editor-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.badoo-prompts-answers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badoo-prompt-answer-card {
    background: rgba(255, 65, 108, 0.05);
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badoo-prompt-answer-card .prompt-q {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badoo-prompt-answer-card .prompt-a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

/* Overview Action Row Layout (Edit Profile ~80% + Account Settings Cog) */
.overview-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.overview-action-row .style-edit-profile-btn {
    flex: 1 1 80%;
    min-width: 0;
}

.overview-action-row .icon-only-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

/* Account Settings Bottom Action Row (Delete Account | Discovery Visibility | Logout) */
.account-settings-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}

.account-settings-bottom-actions .btn {
    width: 100%;
    margin: 0;
}

/* Light Theme Component Overrides */
[data-theme="light"] .app-header {
    background: var(--header-bg, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .badoo-detail-item,
[data-theme="light"] .prompt-card-item,
[data-theme="light"] .badoo-bio-box,
[data-theme="light"] .blocked-user-item,
[data-theme="light"] .checkbox-group label,
[data-theme="light"] .chip-item {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .conversation-card:hover {
    background: #f1f5f9;
}

[data-theme="light"] .badoo-prompt-answer-card {
    background: rgba(225, 29, 72, 0.05);
}

[data-theme="light"] .tag-pill {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .custom-select-trigger,
[data-theme="light"] .custom-select-option-item {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .modal-card {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* SweetAlert2 Glassmorphic Theme Integration */
.swal2-container {
    z-index: 200000 !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Ensure toast container rules ONLY apply when there is no active modal */
.swal2-container.swal2-bottom:not(:has(.swal2-modal)),
.swal2-container.swal2-top:not(:has(.swal2-modal)),
.swal2-container:has(.swal2-toast):not(:has(.swal2-modal)),
body.swal2-toast-shown .swal2-container:not(:has(.swal2-modal)) {
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* SweetAlert Modal Containers & Backdrops MUST ALWAYS have pointer-events: auto */
.swal2-container:has(.swal2-modal:not(.swal2-hide)),
.swal2-container.swal2-backdrop-show:not(.swal2-backdrop-hide),
body.swal2-shown:not(.swal2-toast-shown) .swal2-container:not(.swal2-backdrop-hide) {
    pointer-events: auto !important;
}

.swal2-container.swal2-backdrop-hide {
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.15s ease-out !important;
}

/* ========================================================
   PART 1: MOBILE NATIVE AUTO-DISMISSING FLOATING PILL TOAST
   50px above mobile bottom navigation bar, frosted glass pill
   ======================================================== */
.swal2-container.swal2-bottom {
    /* 50px above bottom-nav (64px) on mobile + safe-area */
    padding-bottom: calc(var(--nav-height, 64px) + 50px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
}

@media (min-width: 1025px) {
    /* On desktop where bottom-nav is a left sidebar, float 50px above screen bottom */
    .swal2-container.swal2-bottom {
        padding-bottom: 50px !important;
    }
}

.swal2-toast {
    position: fixed !important;
    bottom: calc(var(--nav-height, 64px) + 50px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    pointer-events: auto !important;
    background: rgba(22, 25, 38, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    border-radius: 999px !important;
    padding: 7px 18px 7px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: calc(100vw - 32px) !important;
    width: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    z-index: 200001 !important;
}

@media (min-width: 1025px) {
    /* On desktop where bottom-nav is a left sidebar, float 50px above screen bottom */
    .swal2-toast {
        bottom: 50px !important;
    }
}

.swal2-toast.swal2-show {
    animation: swalToastSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.swal2-toast.swal2-hide {
    animation: swalToastFadeOut 0.25s ease-out forwards !important;
}

@keyframes swalToastSlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 16px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes swalToastFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px) scale(0.92);
    }
}

[data-theme="light"] .swal2-toast {
    background: rgba(30, 35, 52, 0.96) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.swal2-toast .swal2-title {
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.01em !important;
}

[data-theme="light"] .swal2-toast .swal2-title {
    color: #ffffff !important;
}

/* Toast micro icon badges */
.swal2-toast .swal2-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    line-height: 1 !important;
}

.swal2-toast .swal2-icon * {
    display: none !important; /* Hide giant SVG sub-lines and fix containers */
}

/* Toast Icon Glyphs via pseudo-elements */
.swal2-toast .swal2-icon.swal2-success {
    background: rgba(16, 185, 129, 0.22) !important;
}
.swal2-toast .swal2-icon.swal2-success::after {
    content: "✓" !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #34d399 !important;
    display: block !important;
    line-height: 1 !important;
}

.swal2-toast .swal2-icon.swal2-error {
    background: rgba(239, 68, 68, 0.22) !important;
}
.swal2-toast .swal2-icon.swal2-error::after {
    content: "✕" !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #f87171 !important;
    display: block !important;
    line-height: 1 !important;
}

.swal2-toast .swal2-icon.swal2-warning {
    background: rgba(245, 158, 11, 0.22) !important;
}
.swal2-toast .swal2-icon.swal2-warning::after {
    content: "!" !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: #fbbf24 !important;
    display: block !important;
    line-height: 1 !important;
}

.swal2-toast .swal2-icon.swal2-info,
.swal2-toast .swal2-icon.swal2-question {
    background: rgba(59, 130, 246, 0.22) !important;
}
.swal2-toast .swal2-icon.swal2-info::after,
.swal2-toast .swal2-icon.swal2-question::after {
    content: "ℹ" !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    color: #60a5fa !important;
    display: block !important;
    line-height: 1 !important;
}

/* ========================================================
   PART 2: MODAL DIALOG (RESPONSIVE, SCROLLABLE, FULLY CLICKABLE)
   No giant built-in SVG circles, micro glyph badge, responsive layout
   ======================================================== */
.swal2-popup.swal2-modal {
    background: #181b2a !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    color: var(--text-main) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75) !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    width: 92% !important;
    max-width: 440px !important;
    max-height: min(88dvh, 720px) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-align: center !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

.swal2-popup.swal2-modal.swal2-show {
    animation: swalModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.swal2-popup.swal2-modal.swal2-hide {
    animation: swalModalPopOut 0.15s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}

[data-theme="light"] .swal2-popup.swal2-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25) !important;
}

@keyframes swalModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes swalModalPopOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.92);
    }
}

/* Hide SweetAlert2 modal icons completely to reclaim space and maintain clean, modern dialogs */
.swal2-popup.swal2-modal .swal2-icon {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    border: none !important;
}

/* Modal Title & Body Typography */
.swal2-popup.swal2-modal .swal2-title {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 24px 20px 6px 20px !important;
    padding: 0 !important;
    letter-spacing: -0.015em !important;
    flex-shrink: 0 !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-title {
    color: #0f172a !important;
}

/* Scrollable HTML container so options and text are NEVER clipped */
.swal2-popup.swal2-modal .swal2-html-container {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin: 0 18px 14px 18px !important;
    padding: 2px 4px 6px 4px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(88dvh - 210px) !important;
    pointer-events: auto !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-html-container {
    color: #475569 !important;
}

/* Input labels inside SweetAlert */
.swal2-popup.swal2-modal .swal2-input-label {
    color: var(--text-main, #ffffff) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    margin: 8px 18px 6px 18px !important;
    text-align: left !important;
    display: block !important;
    flex-shrink: 0 !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-input-label {
    color: #0f172a !important;
}

/* Modal Input (e.g. Prompt Dialogs) */
.swal2-popup.swal2-modal .swal2-input,
.swal2-popup.swal2-modal .swal2-textarea,
.swal2-popup.swal2-modal .swal2-select {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
    margin: 0 18px 14px 18px !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    width: calc(100% - 36px) !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
}

.swal2-popup.swal2-modal .swal2-input:focus,
.swal2-popup.swal2-modal .swal2-textarea:focus,
.swal2-popup.swal2-modal .swal2-select:focus {
    border-color: var(--primary, #ff416c) !important;
    box-shadow: 0 0 0 2px rgba(255, 65, 108, 0.25) !important;
    outline: none !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-input,
[data-theme="light"] .swal2-popup.swal2-modal .swal2-textarea,
[data-theme="light"] .swal2-popup.swal2-modal .swal2-select {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
}

/* Validation Message */
.swal2-popup.swal2-modal .swal2-validation-message {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 8px !important;
    margin: 4px 18px 12px 18px !important;
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    flex-shrink: 0 !important;
}

/* Integrated Button Row */
.swal2-popup.swal2-modal .swal2-actions {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 20px 20px !important;
    background: transparent !important;
    gap: 0 !important;
    justify-content: stretch !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.swal2-popup.swal2-modal .swal2-actions button {
    flex: 1 1 50% !important;
    margin: 0 !important;
    padding: 14px 10px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    transition: background 0.15s ease !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.swal2-popup.swal2-modal .swal2-actions button:active {
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-actions button:active {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Dividers between horizontal buttons regardless of reverseButtons order */
.swal2-popup.swal2-modal:not(:has(.swal2-deny:not([style*="display: none"]))) .swal2-actions button + button {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .swal2-popup.swal2-modal:not(:has(.swal2-deny:not([style*="display: none"]))) .swal2-actions button + button {
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Cancel Button: Neutral */
.swal2-popup.swal2-modal .swal2-cancel {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-cancel {
    color: #64748b !important;
}

/* Confirm Button: Destructive or Primary */
.swal2-popup.swal2-modal .swal2-confirm {
    color: #ff416c !important;
    font-weight: 700 !important;
}

/* Deny Button: Destructive or Alternate Choice */
.swal2-popup.swal2-modal .swal2-deny {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .swal2-popup.swal2-modal .swal2-deny {
    color: #e11d48 !important;
}

/* Multi-button (3 buttons) vertical stacked iOS layout */
.swal2-popup.swal2-modal:has(.swal2-deny:not([style*="display: none"])) .swal2-actions {
    flex-direction: column !important;
}

.swal2-popup.swal2-modal:has(.swal2-deny:not([style*="display: none"])) .swal2-actions button {
    flex: 1 1 100% !important;
    width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 13px 12px !important;
}

[data-theme="light"] .swal2-popup.swal2-modal:has(.swal2-deny:not([style*="display: none"])) .swal2-actions button {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.swal2-popup.swal2-modal:has(.swal2-deny:not([style*="display: none"])) .swal2-actions button:last-child {
    border-bottom: none !important;
}

/* Clickable list options for interactive SweetAlert selection dialogs */
.swal-reason-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 14px 0;
    text-align: left;
    pointer-events: auto !important;
}

.swal-reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.swal-reason-item:hover, .swal-reason-item:active, .swal-reason-item:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    outline: none;
}

.swal-reason-item.active {
    background: rgba(225, 29, 72, 0.16) !important;
    border-color: #ff416c !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px #ff416c;
}

.swal-reason-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    pointer-events: none;
}

.swal-reason-text {
    pointer-events: none;
    flex: 1;
}

.swal-reason-item.active .swal-reason-dot {
    border-color: #ff416c;
    background: #ff416c;
}

.swal-reason-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    display: none;
}

.swal-reason-item.active .swal-reason-dot::after {
    display: block;
}

[data-theme="light"] .swal-reason-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .swal-reason-item:hover, [data-theme="light"] .swal-reason-item:active, [data-theme="light"] .swal-reason-item:focus {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .swal-reason-item.active {
    background: rgba(225, 29, 72, 0.08) !important;
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    box-shadow: 0 0 0 1px #e11d48;
}

[data-theme="light"] .swal-reason-dot {
    border-color: #cbd5e1;
}

[data-theme="light"] .swal-reason-item.active .swal-reason-dot {
    border-color: #e11d48;
    background: #e11d48;
}

/* ========================================================
   Redesigned Delete Account Step 1 Choice Grid & Action Cards
   ======================================================== */
.swal-choice-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 16px 0 6px 0 !important;
    text-align: left !important;
    pointer-events: auto !important;
}

.swal-choice-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    border-radius: 14px !important;
    padding: 12px 12px 14px 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    outline: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.swal-choice-card:hover,
.swal-choice-card:focus-visible {
    transform: translateY(-2px) !important;
}

.swal-choice-card:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Card A: Hide Profile (Primary / Recommended) */
.swal-choice-hide {
    background: rgba(225, 29, 72, 0.08) !important;
    border: 1.5px solid var(--primary, #e11d48) !important;
}

.swal-choice-hide:hover,
.swal-choice-hide:focus-visible {
    background: rgba(225, 29, 72, 0.16) !important;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25) !important;
}

/* Card B: Continue Deletion (Destructive / Danger) */
.swal-choice-delete {
    background: rgba(239, 68, 68, 0.05) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.3) !important;
}

.swal-choice-delete:hover,
.swal-choice-delete:focus-visible {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2) !important;
}

.swal-choice-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    gap: 6px !important;
}

.swal-choice-badge {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.swal-choice-badge-recommended {
    background: rgba(255, 65, 108, 0.2) !important;
    color: #ff416c !important;
    border: 1px solid rgba(255, 65, 108, 0.4) !important;
}

.swal-choice-badge-danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.swal-choice-btn-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
}

.swal-choice-hide .swal-choice-btn-label {
    color: #ffffff !important;
}

.swal-choice-delete .swal-choice-btn-label {
    color: #fca5a5 !important;
}

.swal-choice-desc {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    color: #94a3b8 !important;
    display: block !important;
    flex-grow: 1 !important;
}

[data-theme="light"] .swal-choice-hide {
    background: rgba(225, 29, 72, 0.05) !important;
}
[data-theme="light"] .swal-choice-hide .swal-choice-btn-label {
    color: #0f172a !important;
}
[data-theme="light"] .swal-choice-delete {
    background: rgba(239, 68, 68, 0.04) !important;
}
[data-theme="light"] .swal-choice-delete .swal-choice-btn-label {
    color: #dc2626 !important;
}
[data-theme="light"] .swal-choice-desc {
    color: #64748b !important;
}

/* Responsive adjustment for narrow mobile viewports (< 400px) */
@media (max-width: 400px) {
    .swal-choice-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .swal-choice-card {
        padding: 10px 12px !important;
    }
}

/* Custom Hide Profile Recommendation Card */
#swal-card-hide-profile {
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
}

#swal-card-hide-profile:hover, #swal-card-hide-profile:focus {
    background: rgba(225, 29, 72, 0.14) !important;
    border-color: #ff416c !important;
    outline: none !important;
}

/* Destructive confirms like logout, unmatch, block, delete */
.swal2-popup.swal2-modal.swal2-icon-warning .swal2-confirm,
.swal2-popup.swal2-modal.swal2-icon-error .swal2-confirm {
    color: #fb7185 !important;
}

.swal2-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 65, 108, 0.2) !important;
}

/* ==========================================
   DESKTOP WEB APPLICATION LAYOUT (>= 1024px)
   ========================================== */

/* Mobile Default Styles for Desktop-Only Elements */
.desktop-sidebar-header,
.desktop-sidebar-footer,
.desktop-keyboard-hints,
#desktop-candidate-details,
.desktop-chat-pane {
    display: none !important;
}

@media (min-width: 1025px) {
    /* Default flexible desktop container wrapper for authentication & onboarding flow */
    .app-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
        border: none;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    /* Clean desktop container wrapper for application */
    .app-container:has(#view-main:not([style*="display: none"])),
    .app-container.app-authenticated {
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    #view-main.main-layout {
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        flex: 1 0 auto;
        min-height: calc(100vh - 120px);
        height: auto;
        position: relative;
        overflow: visible;
        margin-bottom: 40px;
    }

    #view-main[style*="display: none"],
    #view-main[style*="display:none"],
    .main-layout[style*="display: none"],
    .main-layout[style*="display:none"] {
        display: none !important;
    }

    .app-header {
        display: none !important;
    }

    /* Persistent Left Sidebar Navigation (Desktop) */
    .bottom-nav {
        position: sticky;
        top: 0;
        align-self: flex-start;
        transform: none;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 100vh;
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--bg-card);
        border-right: 1px solid var(--border-color);
        border-top: none;
        display: flex;
        flex-direction: column;
        padding: 20px 16px;
        gap: 12px;
        z-index: 50;
        order: 1;
        box-sizing: border-box;
    }

    .desktop-sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 4px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .desktop-brand {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .desktop-header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    #btn-desktop-moderation {
        display: none !important;
    }

    .nav-items-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .nav-item {
        flex: 0 0 auto;
        height: 42px;
        min-height: 42px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        padding: 8px 14px;
        border-radius: var(--radius-md);
        font-size: 0.92rem;
        font-weight: 700;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        position: relative;
    }

    .bottom-nav .nav-item:not([style*="display: none"]):not([style*="display:none"]),
    .bottom-nav .nav-item-moderation:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .nav-item i {
        font-size: 1.2rem;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-item span {
        font-size: 0.92rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .nav-item.active {
        background: var(--bg-glass);
        color: var(--primary);
    }

    .nav-item:hover {
        background: var(--bg-glass);
    }

    .badge-count {
        position: static;
        margin-left: auto;
        transform: none !important;
        flex-shrink: 0;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: var(--radius-full);
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .nav-item[data-target="sec-profile"] {
        padding: 8px 8px;
        gap: 8px;
    }

    #nav-profile-badge.badge-review {
        position: static !important;
        transform: none !important;
        margin-left: auto !important;
        background: rgba(245, 158, 11, 0.15) !important;
        color: #f59e0b !important;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
        padding: 1px 5px !important;
        font-size: 0.60rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
        border-radius: var(--radius-full) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #nav-profile-badge.badge-review .unread-dot {
        width: 5px !important;
        height: 5px !important;
        background-color: #f59e0b !important;
        border-radius: 50% !important;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6) !important;
        flex-shrink: 0 !important;
    }

    #nav-profile-badge.badge-completion {
        position: static !important;
        transform: none !important;
        margin-left: auto !important;
        background: rgba(56, 189, 248, 0.15) !important;
        color: #38bdf8 !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        padding: 1px 5px !important;
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        border-radius: var(--radius-full) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #nav-profile-badge.badge-completion .unread-dot {
        width: 5px !important;
        height: 5px !important;
        background-color: #38bdf8 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6) !important;
        flex-shrink: 0 !important;
    }

    #nav-profile-completion-badge:empty,
    #nav-profile-completion-badge[style*="display: none"] {
        display: none !important;
    }

    #nav-profile-completion-badge {
        position: static !important;
        transform: none !important;
        margin-left: 4px !important;
        background: rgba(56, 189, 248, 0.15) !important;
        color: #38bdf8 !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        padding: 1px 5px !important;
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        border-radius: var(--radius-full) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #nav-profile-completion-badge .unread-dot {
        width: 5px !important;
        height: 5px !important;
        background-color: #38bdf8 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6) !important;
        flex-shrink: 0 !important;
    }

    .desktop-sidebar-footer {
        display: flex !important;
        gap: 8px;
        padding-top: 14px;
        border-top: 1px solid var(--border-color);
        width: 100%;
        margin-top: auto;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .desktop-footer-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 9px 12px;
        font-weight: 700;
        font-size: 0.85rem;
        border-radius: var(--radius-md);
    }

    /* Main Content Area */
    .content-area {
        flex: 1;
        min-width: 0;
        height: auto;
        overflow: visible;
        padding-top: 0;
        padding-bottom: 32px;
        order: 2;
        background: var(--bg-main);
    }

    /* Natural Page Flow for Desktop Views (Eliminate internal scroll containers) */
    .app-section {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .app-section.active {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    /* 1. DISCOVER SECTION ON DESKTOP */
    #sec-discovery {
        padding: 24px;
        align-items: center;
        justify-content: center;
        height: auto;
        overflow: visible;
    }

    .discover-desktop-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 24px;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        max-width: 1100px;
        height: auto;
        min-height: calc(100vh - 160px);
        margin: 0 auto;
    }

    .card-stack-wrapper {
        width: 100%;
        max-width: 460px;
        flex: 1 1 0%;
        min-width: 0;
        height: 640px;
        min-height: 520px;
        max-height: none;
        flex-shrink: 1;
    }

    .desktop-keyboard-hints {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 600;
    }

    .desktop-keyboard-hints kbd {
        background: var(--input-bg);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 2px 6px;
        font-family: monospace;
        font-size: 0.75rem;
        color: var(--text-main);
    }

    #desktop-candidate-details {
        display: flex !important;
        flex-direction: column;
        width: 400px;
        max-width: 440px;
        flex-shrink: 0;
        min-height: 520px;
        height: auto;
        max-height: none;
        overflow: visible;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-soft);
    }

    .desktop-candidate-header h2 {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .desktop-candidate-header .location {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-top: 4px;
    }

    /* 2. LIKES SECTION ON DESKTOP */
    #sec-likes {
        padding: 32px;
        height: auto;
        overflow: visible;
    }

    .likes-container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .likes-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }

    /* 3. MATCHES & MESSAGING SECTION ON DESKTOP */
    #sec-matches {
        padding: 32px;
        height: auto;
        overflow: visible;
    }

    #sec-matches:not(.active),
    #sec-matches[style*="display: none"] {
        display: none !important;
    }

    .matches-desktop-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 1150px;
        margin: 0 auto;
    }

    .conversations-sidebar-column {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 0;
        background: transparent;
        border-right: none;
        height: auto;
        overflow: visible;
    }

    .conversations-container {
        width: 100%;
    }

    .desktop-chat-pane {
        display: none !important;
    }

    .desktop-chat-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 40px;
        text-align: center;
        color: var(--text-muted);
        width: 100%;
    }

    .placeholder-icon-circle {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: var(--bg-glass);
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        margin-bottom: 20px;
        box-shadow: var(--shadow-soft);
    }

    .desktop-chat-placeholder h3 {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 8px;
    }

    .desktop-chat-placeholder p {
        font-size: 0.95rem;
        max-width: 380px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .placeholder-tag {
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: var(--radius-full);
        background: var(--bg-glass);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
    }

    /* WhatsApp Web Style Desktop Chat Modal Overlay */
    #modal-chat.modal-overlay {
        background: rgba(15, 15, 19, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .chat-modal-content {
        width: 90vw;
        max-width: 880px;
        height: 85vh;
        max-height: 780px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        background: var(--bg-card);
    }

    /* 4. PROFILE SECTION ON DESKTOP */
    #sec-profile {
        padding: 32px 24px;
        max-width: 1050px;
        margin: 0 auto;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    #profile-overview-view {
        display: flex;
        flex-direction: column;
        width: 100%;
        /*max-width: 680px;*/
        margin: 0 auto;
        gap: 40px;
        height: auto;
        overflow: visible;
    }

    #profile-overview-view[style*="display: none"] {
        display: none !important;
    }

    /* Desktop switches for Profile Header and Skeletons (>= 1025px) */
    .profile-header-mobile {
        display: none !important;
    }

    .profile-header-desktop {
        display: grid !important;
    }

    .profile-skeleton-mobile {
        display: none !important;
    }

    .profile-skeleton-desktop {
        display: grid !important;
    }

    .desktop-summary-skeleton.profile-skeleton-desktop {
        display: block !important;
    }

    @media (max-width: 1140px) {
        .updated-concept-a-card,
        .desktop-skeleton-card {
            padding: 22px 24px;
            gap: 20px;
            grid-template-columns: 240px 1fr;
        }

        .portrait-boxy-perimeter-wrapper {
            width: 240px;
            height: 240px;
        }

        .portrait-boxy-svg {
            width: 240px;
            height: 240px;
        }

        .portrait-boxy-inner {
            width: 224px;
            height: 224px;
        }
    }

    .badoo-profile-header-card {
        padding: 32px 28px;
    }

    .overview-action-row {
        justify-content: center;
        max-width: 380px;
        margin: 0 auto;
    }

    .overview-action-row .style-edit-profile-btn {
        flex: 1;
        max-width: 280px;
    }

    .badoo-summary-card,
    .badoo-prompts-card {
        padding: 24px;
    }

    .badoo-details-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .badoo-detail-item.full-width {
        grid-column: 1 / -1;
    }

    #profile-editor-view {
        display: grid;
        grid-template-columns: 360px 1fr;
        grid-template-areas:
            "nav nav"
            "left right";
        gap: 24px;
        align-items: start;
        height: auto;
        overflow: visible;
    }

    #profile-editor-view[style*="display: none"] {
        display: none !important;
    }

    .editor-header-bar { grid-area: nav; }
    .editor-left-column { grid-area: left; display: flex; flex-direction: column; gap: 20px; }
    #form-profile { grid-area: right; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; }

    /* 5. MODERATION SECTION ON DESKTOP */
    #sec-moderation {
        padding: 32px 24px;
        max-width: 1250px;
        margin: 0 auto;
        width: 100%;
        height: auto;
        overflow: visible;
        min-width: 0;
        box-sizing: border-box;
    }

    .mod-workspace-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* ==========================================
   MATCHES & CONVERSATIONS EMPTY STATES
   ========================================== */
.empty-matches-reel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-reel-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.empty-reel-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.empty-reel-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

.empty-matches-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.empty-matches-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
    width: 100%;
    max-width: 300px;
}

.empty-graphic-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.empty-graphic-circle i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.empty-graphic-circle .step-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-graphic-line {
    color: var(--border-color);
    font-size: 0.75rem;
    margin-bottom: 14px;
}

.empty-matches-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.empty-matches-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0;
}

.empty-conversations-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   NEW MATCHES SECTION & LIKED PROFILES OVERLAY
   ========================================== */
#sec-new-matches {
    padding: 16px;
}

.new-matches-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.new-matches-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.empty-matches-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    grid-column: 1 / -1;
    box-shadow: var(--shadow-soft);
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    margin-bottom: 4px;
}

/* ==========================================
   PROMPT 2 & 3: DESKTOP ONLY OVERRIDES (>= 1025px)
   ========================================== */
@media (min-width: 1025px) {
    /* Desktop Unconstrained Layout Shell for Authentication & Onboarding Flow */
    #view-auth,
    .onboarding-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 48px 24px;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
        overflow-y: visible;
        box-sizing: border-box;
    }

    #view-auth .auth-hero {
        margin-bottom: 28px;
        text-align: center;
    }

    #view-auth .brand-logo-large {
        /*font-size: 3.2rem;*/
        font-size: 5.5rem;
    }

    #gateway-app-logo{
        width: 85px !important;
        height: 85px !important;
    }

    #view-auth .brand-tagline {
        font-size: 1.05rem;
    }

    .auth-card,
    .onboarding-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 36px 40px;
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--border-color);
        background: var(--bg-card);
    }

    .onboarding-card.wide {
        max-width: 720px;
    }

    #sec-new-matches {
        padding: 32px;
        height: auto;
        overflow: visible;
    }

    .new-matches-container {
        max-width: 1150px;
        margin: 0 auto;
    }

    #new-matches-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }


    .swipe-controls-void{
        display: none !important;
    }
}

/* ==========================================
   Upload Progress Card Indicator
   ========================================== */
.upload-progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 14px 0;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.upload-progress-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-progress-percent {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.upload-progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.upload-progress-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.15s ease-out;
}

.upload-progress-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

[data-theme="light"] .upload-progress-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .upload-progress-track {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ==========================================
   Legal & Consent Modal Styles
   ========================================== */
.consent-banner-overlay {
    z-index: 10000 !important;
    backdrop-filter: blur(8px) !important;
    background: rgba(15, 23, 42, 0.85) !important;
}

#modal-legal-viewer.modal-overlay {
    z-index: 10050 !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(15, 23, 42, 0.92) !important;
}

[data-theme="light"] .consent-banner-overlay {
    background: rgba(248, 250, 252, 0.88) !important;
}

.consent-card {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-main, #f8fafc);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.legal-viewer-card {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.legal-document {
    color: var(--text-main, #e2e8f0);
    font-size: 0.95rem;
}

.legal-doc-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #334155);
}

.legal-doc-header h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.legal-doc-header .legal-doc-app-name {
    color: #ff3333;
    font-weight: 800;
    margin-left: 2px;
}

.legal-doc-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

.legal-doc-section {
    margin-bottom: 22px;
}

.legal-doc-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--border-color, #334155);
}

.legal-doc-section p {
    margin-bottom: 10px;
    line-height: 1.65;
}

.legal-doc-section ul {
    margin: 8px 0 14px 20px;
    padding-left: 10px;
}

.legal-doc-section li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.legal-doc-section code {
    background: rgba(236, 72, 153, 0.15);
    color: var(--primary-color, #ec4899);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
}

.btn-link-inline {
    text-decoration: underline;
    transition: color 0.2s ease;
}

.btn-link-inline:hover {
    color: var(--primary-hover, #db2777) !important;
}

/* Legal Document Navigation & Table Styles */
.legal-doc-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.legal-doc-meta-pills .pill {
    background: var(--bg-surface-secondary, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, #334155);
    padding: 4px 10px;
    border-radius: var(--radius-full, 20px);
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}

.legal-toc {
    background: var(--bg-surface-secondary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 12px);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.legal-toc h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main, #f8fafc);
}

.legal-toc ol, .legal-toc ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.legal-toc li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.legal-toc li.toc-sub {
    padding-left: 16px;
    font-size: 0.85rem;
}

.legal-toc a {
    color: var(--primary-color, #ec4899);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-toc a:hover {
    text-decoration: underline;
    color: var(--primary-hover, #db2777);
}

.legal-table-responsive {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-color, #334155);
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
    table-layout: fixed;
}

.legal-table th, .legal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color, #334155);
    vertical-align: top;
    line-height: 1.45;
}

.legal-table th {
    background: var(--bg-surface-secondary, rgba(255, 255, 255, 0.06));
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

/* Cookie Policy Table Proportions & Text Wrapping Rules */
.legal-table .col-storage-name {
    width: 17%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-table .col-type {
    width: 12%;
    overflow-wrap: break-word;
}

.legal-table .col-classification {
    width: 12%;
}

.legal-table .col-party {
    width: 10%;
    overflow-wrap: break-word;
}

.legal-table .col-duration {
    width: 13%;
    overflow-wrap: break-word;
}

.legal-table .col-purpose {
    width: 36%;
    overflow-wrap: break-word;
}

.legal-table td code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.badge-essential {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-preference {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.legal-viewer-tabs-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color, #334155);
    background: var(--bg-surface-secondary, rgba(15, 23, 42, 0.4));
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    flex-shrink: 0 !important;
    min-height: 64px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Single Unified Segmented Control for Legal Navigation */
.legal-segmented-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .legal-segmented-control {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legal-tab-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .legal-tab-divider {
    background: #cbd5e1;
}

.legal-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 26px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text-muted, #a0a0b0) !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    outline: none !important;
}

.legal-nav-tab .tab-label-full {
    display: inline;
}

.legal-nav-tab .tab-label-compact {
    display: none;
}

@media (max-width: 640px) {
    .legal-nav-tab .tab-label-full {
        display: none !important;
    }
    .legal-nav-tab .tab-label-compact {
        display: inline !important;
    }
    .legal-nav-tab {
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
        gap: 6px !important;
    }
}

@media (max-width: 380px) {
    .legal-nav-tab {
        padding: 6px 4px !important;
        font-size: 0.8rem !important;
        gap: 4px !important;
    }
    .legal-nav-tab i {
        font-size: 0.85rem;
    }
}

[data-theme="light"] .legal-nav-tab {
    color: #475569 !important;
}

.legal-nav-tab i {
    transition: color 0.2s ease;
}

.legal-nav-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main, #f8fafc) !important;
}

[data-theme="light"] .legal-nav-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

.legal-nav-tab:hover:not(.active) i {
    color: var(--primary, #ff416c) !important;
}

.legal-nav-tab.active {
    background: var(--gradient-brand, linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%)) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(255, 65, 108, 0.4) !important;
}

.legal-nav-tab.active i {
    color: #ffffff !important;
}

.legal-nav-tab:focus-visible {
    outline: 2px solid var(--primary, #ff416c) !important;
    outline-offset: 2px !important;
}

/* ==========================================
   FULL-PAGE BROWSER COMPATIBILITY BLOCKING OVERLAYS
   (JavaScript & Cookies Required Screen)
   ========================================== */
html.cookies-disabled .app-container,
html.cookies-disabled #global-loader,
html.cookies-disabled #verify-processing-overlay,
html.cookies-disabled .modal-overlay {
    display: none !important;
}

html.cookies-disabled body {
    overflow: hidden !important;
    height: 100% !important;
}

html.cookies-disabled #cookie-blocking-overlay {
    display: flex !important;
}

.blocking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-main, #0f0f13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    box-sizing: border-box;
}

.blocking-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card, #181820);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 24px);
    padding: 32px 28px;
    box-shadow: var(--shadow-card, 0 20px 40px rgba(0, 0, 0, 0.35));
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[data-theme="light"] .blocking-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.blocking-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.blocking-icon-box.danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger, #ef4444);
    border-color: rgba(239, 68, 68, 0.25);
}

.blocking-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main, #f8f9fa);
    line-height: 1.3;
    margin: 0;
}

.blocking-lead {
    font-size: 0.92rem;
    color: var(--text-muted, #a0a0b0);
    line-height: 1.55;
    margin: 0;
}

.blocking-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.blocking-item {
    background: var(--input-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 16px);
    padding: 14px 16px;
}

[data-theme="light"] .blocking-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.blocking-item.error {
    border-left: 4px solid var(--danger, #ef4444);
}

.blocking-item.warning {
    border-left: 4px solid var(--warning, #f59e0b);
}

.blocking-item.success {
    border-left: 4px solid var(--success, #10b981);
}

.blocking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.blocking-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main, #f8f9fa);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blocking-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blocking-badge.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.blocking-badge.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.blocking-badge.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.blocking-item-text {
    font-size: 0.85rem;
    color: var(--text-muted, #a0a0b0);
    line-height: 1.45;
    margin: 0;
}

.blocking-actions {
    margin-top: 8px;
}

/* ==========================================
   MODERATION & SAFETY MANAGEMENT SYSTEM CSS
   ========================================== */
#sec-moderation {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mod-workspace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mod-tab-content,
.mod-panel,
.mod-review-card,
.mod-search-results-wrapper,
.mod-staff-workspace {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mod-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mod-title-box h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.mod-role-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.mod-search-input-wrapper {
    position: relative;
    width: 320px;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.mod-search-input {
    width: 100%;
    padding: 8px 38px 8px 14px;
    font-size: 0.86rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full, 9999px);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mod-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
    background: var(--bg-card);
}

.mod-search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.mod-search-submit-btn:hover {
    color: var(--primary);
    background: rgba(225, 29, 72, 0.12);
}

.mod-search-submit-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.mod-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.mod-search-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.mod-search-item:hover {
    background: var(--surface-bg);
}

/* ==========================================================================
/* ==========================================================================
   EXPANDABLE COMPACT ICON NAVIGATION CONTROL CENTER
   ========================================================================== */
.mod-nav-control-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .mod-nav-control-center {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Base Card Style (Collapsed State Default) */
.mod-nav-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 12px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #94a3b8;
    cursor: pointer;
    outline: none;
    user-select: none;
    box-sizing: border-box;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    flex-shrink: 0;
}

[data-theme="light"] .mod-nav-card {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
}

.mod-nav-card:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(255, 65, 108, 0.4);
    color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .mod-nav-card:hover {
    background: #ffffff;
    border-color: rgba(255, 65, 108, 0.5);
    color: #0f172a;
}

/* Icon Sizing & High Visibility */
.mod-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.28s ease, color 0.28s ease;
}

[data-theme="light"] .mod-nav-icon {
    color: #64748b;
}

.mod-nav-card:hover .mod-nav-icon {
    color: #ff416c;
    transform: scale(1.1);
}

/* Collapsed Text Label Styling */
.mod-nav-text {
    display: flex;
    flex-direction: column;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    margin-left: 0;
    transition: max-width 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.22s ease, 
                margin-left 0.28s ease;
}

.mod-nav-title {
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    color: #f8fafc;
}

[data-theme="light"] .mod-nav-title {
    color: #0f172a;
}

.mod-nav-subtitle {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1;
    margin-top: 2px;
}

[data-theme="light"] .mod-nav-subtitle {
    color: #64748b;
}

/* EXPANDED ACTIVE STATE */
.mod-nav-card.active {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.25) 0%, rgba(255, 75, 43, 0.18) 100%) !important;
    border-color: #ff416c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 65, 108, 0.3) !important;
    padding: 0 16px !important;
}

[data-theme="light"] .mod-nav-card.active {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.14) 0%, rgba(255, 75, 43, 0.08) 100%) !important;
    border-color: #ff416c !important;
    color: #ff416c !important;
}

.mod-nav-card.active .mod-nav-icon {
    color: #ff416c;
    transform: scale(1.08);
}

/* Expanded Text Visibility */
.mod-nav-card.active .mod-nav-text {
    max-width: 180px;
    opacity: 1;
    margin-left: 10px;
}

.mod-nav-card.active .mod-nav-title {
    color: #ffffff !important;
}

[data-theme="light"] .mod-nav-card.active .mod-nav-title {
    color: #ff416c !important;
}

.mod-nav-card.active .mod-nav-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] .mod-nav-card.active .mod-nav-subtitle {
    color: #e11d48 !important;
}

/* Integrated Count Badges (Visible on both Collapsed & Expanded states) */
.mod-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 10px;
    background: #ff416c;
    color: #ffffff;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(255, 65, 108, 0.4);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mod-nav-card:hover .mod-card-badge {
    transform: scale(1.1);
}

/* Dynamic Context Cards */
.mod-nav-card.mod-dynamic-card {
    border-style: dashed;
    border-color: rgba(255, 65, 108, 0.4);
}

/* Legacy Fallbacks */
.mod-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-tabs-nav::-webkit-scrollbar {
    display: none;
}

.mod-tab-btn {
    padding: 8px 16px;
    min-height: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mod-tab-btn:hover {
    color: var(--text-main);
    background: var(--surface-bg);
}

.mod-tab-btn.active {
    background: rgba(255, 65, 108, 0.12);
    color: var(--primary-color, #ff416c);
    font-weight: 700;
}

.mod-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mod-kpi-card.danger { border-left: 4px solid #ef4444; }
.mod-kpi-card.danger .kpi-icon { color: #ef4444; }

.mod-kpi-card.warning { border-left: 4px solid #f59e0b; }
.mod-kpi-card.warning .kpi-icon { color: #f59e0b; }

.mod-kpi-card.critical { border-left: 4px solid #e11d48; }
.mod-kpi-card.critical .kpi-icon { color: #e11d48; }

.mod-kpi-card.success { border-left: 4px solid #10b981; }
.mod-kpi-card.success .kpi-icon { color: #10b981; }

.mod-kpi-card.dark { border-left: 4px solid #64748b; }
.mod-kpi-card.dark .kpi-icon { color: #64748b; }

.mod-kpi-card.info { border-left: 4px solid #3b82f6; }
.mod-kpi-card.info .kpi-icon { color: #3b82f6; }

.kpi-icon {
    font-size: 1.5rem;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mod-dash-panels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1025px) {
    .mod-dash-panels-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.mod-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
}

/* System Settings Panel Loading Overlay */
.admin-settings-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 100;
    color: #ffffff;
    font-weight: 600;
    animation: fadeInAdminOverlay 0.2s ease-out;
}

[data-theme="light"] .admin-settings-loading-overlay {
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
}

.admin-settings-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(244, 63, 94, 0.2);
    border-top-color: #f43f5e;
    border-radius: 50%;
    animation: spinAdminSettings 0.8s linear infinite;
}

@keyframes spinAdminSettings {
    to { transform: rotate(360deg); }
}

@keyframes fadeInAdminOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mod-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-panel-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.mod-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--surface-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    align-items: flex-end;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-filter-bar .form-group {
    margin-bottom: 0;
    min-width: 140px;
}

.mod-table-responsive-wrapper,
.mod-mini-table-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.mod-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.mod-table th, .mod-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.mod-table th {
    background: var(--surface-bg);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mod-table tr:last-child td {
    border-bottom: none;
}

.badge-priority {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-priority.critical { background: rgba(225, 29, 72, 0.15); color: #e11d48; border: 1px solid rgba(225, 29, 72, 0.3); }
.badge-priority.high { background: rgba(217, 119, 6, 0.15); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-priority.normal { background: rgba(2, 132, 199, 0.15); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); }
.badge-priority.low { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.3); }

.badge-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-status.new { background: rgba(37, 99, 235, 0.15); color: #2563eb; }
.badge-status.pending_review { background: rgba(217, 119, 6, 0.15); color: #d97706; }
.badge-status.under_review { background: rgba(79, 70, 229, 0.15); color: #4f46e5; }
.badge-status.escalated { background: rgba(225, 29, 72, 0.15); color: #e11d48; }
.badge-status.resolved { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-status.dismissed { background: rgba(100, 116, 139, 0.15); color: #64748b; }

.mod-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 8px 4px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-buttons .page-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.mod-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .mod-case-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mod-section-box {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.mod-section-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mod-notes-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.mod-note-item {
    background: var(--surface-card);
    border-left: 3px solid var(--primary-color);
    padding: 10px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
}

.mod-note-item .note-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mod-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.mod-staff-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mod-staff-card .staff-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.mod-staff-card .staff-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.mod-staff-card .staff-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-bars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.metric-bar-label {
    width: 140px;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.metric-bar-count {
    width: 30px;
    text-align: right;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================
   EXPANSIVE CASE REVIEW & INVESTIGATION WORKSPACE
   ========================================== */
.mod-review-header-bar,
.mod-investigation-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.review-header-left,
.investigation-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.review-case-identifiers,
.investigation-user-title-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.review-case-title,
.investigation-user-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.review-meta-badges,
.investigation-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mod-review-workspace-layout,
.mod-user-investigation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.mod-review-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.mod-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.mod-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mod-review-card-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-target-user-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.mod-target-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.mod-target-user-meta {
    flex: 1;
    min-width: 0;
}

.mod-target-user-meta h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.mod-target-user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.mod-detail-item {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.mod-detail-item .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.mod-detail-item .value {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

.mod-reports-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-report-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    position: relative;
}

.mod-report-card.critical {
    border-left: 4px solid var(--danger);
}

.mod-report-card.high {
    border-left: 4px solid var(--warning);
}

.mod-report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.mod-report-details-body {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.5;
    background: var(--bg-card);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 6px;
}

.mod-actions-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.mod-actions-toolbar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    padding: 10px 14px;
    font-size: 0.82rem;
}

/* ==========================================
   MODERATION SEARCH & RESULTS TAB
   ========================================== */
.mod-search-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mod-search-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-search-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mod-search-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    box-sizing: border-box;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.mod-search-user-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.mod-search-user-card .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.mod-search-user-card .user-info {
    flex: 1;
    min-width: 0;
}

.mod-search-user-card .user-name {
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-search-user-card .user-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-search-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.mod-search-empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

.mod-search-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.mod-search-empty-state p {
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================
   STAFF & PERMISSIONS MANAGEMENT
   ========================================== */
.mod-staff-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mod-staff-role-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.mod-staff-role-banner.info {
    border-left: 4px solid var(--info);
}

#mod-staff-admin-header {
    border-left: 4px solid var(--warning);
}

.mod-staff-role-banner .banner-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.mod-staff-role-banner .banner-text h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.mod-staff-role-banner .banner-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.staff-search-results-box {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.staff-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

.staff-search-item:last-child {
    border-bottom: none;
}

/* ==========================================
   INCIDENT NOTIFICATIONS BELL & DROPDOWN
   ========================================== */
.mod-notif-bell-wrapper,
.mod-notif-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mod-notif-bell-btn,
.mod-notif-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mod-notif-bell-btn:hover,
.mod-notif-bell:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
    color: var(--primary);
}

.mod-notif-bell-btn .badge-count,
.mod-notif-bell .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mod-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    z-index: 1200;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
}

.notif-dropdown-header h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-list-container {
    max-height: 380px;
    overflow-y: auto;
}

.mod-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.mod-notif-item:hover {
    background: var(--bg-glass);
}

.mod-notif-item.unread {
    background: rgba(255, 65, 108, 0.08);
}

.mod-notif-item .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.mod-notif-item .notif-content {
    flex: 1;
    min-width: 0;
}

.mod-notif-item .notif-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.mod-notif-item .notif-msg {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 4px;
}

.mod-notif-item .notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================
   MODERN GAVANA FOOTER COMPONENT
   ========================================== */
.gavana-footer {
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    z-index: 10;
    transition: background 0.25s ease;
    overflow: hidden;
    padding-bottom: 0;
}

.gavana-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 28px 24px;
}

.gavana-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-logo i {
    color: var(--primary);
    -webkit-text-fill-color: initial;
    font-size: 1.4rem;
}

.footer-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.footer-mission {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.trust-badge i {
    color: var(--primary);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0.8;
    width: 16px;
    text-align: center;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-blog-link-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link-desc {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
    padding-left: 24px;
    opacity: 0.88;
}

/* ==========================================
   SETTINGS: DEDICATED BLOG ENTRY CARD
   ========================================== */
.settings-blog-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin-bottom: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    min-height: 52px;
    box-sizing: border-box;
}

.settings-blog-card:hover,
.settings-blog-card:focus-visible {
    background: rgba(255, 65, 108, 0.08);
    border-color: rgba(255, 65, 108, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 65, 108, 0.12);
    outline: none;
    text-decoration: none;
}

[data-theme="light"] .settings-blog-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .settings-blog-card:hover,
[data-theme="light"] .settings-blog-card:focus-visible {
    background: rgba(225, 29, 72, 0.05);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.1);
}

.settings-blog-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
}

.settings-blog-card-content {
    flex: 1;
    min-width: 0;
}

.settings-blog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.settings-blog-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.settings-blog-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 65, 108, 0.14);
    color: var(--primary);
    border: 1px solid rgba(255, 65, 108, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-theme="light"] .settings-blog-tag {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.22);
}

.settings-blog-card-desc {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   SETTINGS: CREATOR & PARTNER PROGRAMME SHOWCASE CARD
   High-converting financial incentive banner placed in Settings
   ========================================================================== */
.settings-creator-card {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.09) 50%, rgba(16, 185, 129, 0.08) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.38);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-creator-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .settings-creator-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 50%, #f0fdf4 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
}

.settings-creator-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-creator-icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.settings-creator-header-text {
    flex: 1;
    min-width: 0;
}

.settings-creator-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.settings-creator-tag {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .settings-creator-tag {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.settings-creator-money-badge {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="light"] .settings-creator-money-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.settings-creator-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.settings-creator-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 10px 0 12px 0;
}

.settings-creator-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.settings-creator-perk {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

[data-theme="light"] .settings-creator-perk {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settings-creator-cta-wrap button,
.btn-open-creator-program {
    cursor: pointer;
}

#btn-settings-creator-apply {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

#btn-settings-creator-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45) !important;
}

/* Footer Creator Program Link & Badge */
.footer-creator-link-item {
    margin-top: 2px;
}

.footer-partner-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   CREATOR APPLICATION MODAL STYLING
   ========================================================================== */
.creator-app-modal-card {
    max-width: 600px;
    width: 95vw;
}

.creator-app-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

[data-theme="light"] .creator-app-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    border-color: rgba(139, 92, 246, 0.25);
}

.creator-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    margin-bottom: 8px;
}

.creator-hero-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.creator-hero-sub {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 500px;
    margin: 0 auto 14px auto;
}

.creator-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.creator-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
}

[data-theme="light"] .creator-stat-box {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.creator-stat-box .stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.creator-stat-box .stat-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

/* Mobile Money & Payout Method Row Horizontal Alignment */
.creator-payout-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.creator-payout-col {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.creator-payout-col label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-creator-mobile-rate-preview {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 2px;
}

.settings-creator-mobile-rate-preview .preview-usd {
    color: #10b981;
    font-weight: 700;
}

/* Minimalist Partner Programme Banner on Mobile Viewports (< 640px) */
@media (max-width: 640px) {
    .settings-creator-card {
        padding: 12px 14px;
        margin-top: 10px;
        margin-bottom: 14px;
        border-radius: var(--radius-md);
    }

    .settings-creator-top {
        gap: 10px;
        align-items: center;
    }

    .settings-creator-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .settings-creator-badge-row {
        gap: 4px;
        margin-bottom: 2px;
    }

    .settings-creator-tag,
    .settings-creator-money-badge {
        font-size: 0.60rem;
        padding: 1px 6px;
    }

    .settings-creator-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .settings-creator-mobile-rate-preview {
        display: block;
    }

    /* Collapse bulky paragraphs & badges on mobile to keep pane minimal */
    .settings-creator-desc,
    .settings-creator-perks {
        display: none !important;
    }

    .settings-creator-cta-wrap {
        margin-top: 10px;
    }

    #btn-settings-creator-apply {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }

    .creator-payout-row {
        flex-direction: row; /* Strict horizontal alignment */
        gap: 8px;
    }

    .creator-payout-col label {
        font-size: 0.78rem;
    }

    .creator-payout-col .form-input {
        font-size: 0.84rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .creator-hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.gavana-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.gavana-footer-bottom .footer-bottom-left {
    flex: 1 1 250px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gavana-footer-bottom .footer-bottom-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gavana-footer-bottom .footer-bottom-right {
    flex: 1 1 250px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Modern Tinder-Grade Footer Language Selector */
.footer-bottom-center,
.modern-footer-lang-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-lang-pill,
.footer-language-selector-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px 0 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

.modern-lang-pill:hover,
.modern-lang-pill:focus-within,
.footer-language-selector-wrap:hover,
.footer-language-selector-wrap:focus-within {
    border-color: rgba(255, 65, 108, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 18px rgba(255, 65, 108, 0.2), 0 0 0 1px rgba(255, 65, 108, 0.25);
    transform: translateY(-1px);
}

.modern-lang-globe,
.footer-lang-globe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #ff416c;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
    pointer-events: none;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.modern-lang-pill:hover .modern-lang-globe,
.footer-language-selector-wrap:hover .footer-lang-globe-icon {
    transform: rotate(15deg) scale(1.05);
}

.modern-lang-label,
.footer-lang-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 170px;
    margin-right: 18px;
    pointer-events: none;
    user-select: none;
}

[data-theme="light"] .modern-lang-label,
[data-theme="light"] .footer-lang-label {
    color: #0f172a;
}

.modern-lang-select,
.footer-language-select {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

.modern-lang-pill.active {
    border-color: #ff416c !important;
    box-shadow: 0 4px 18px rgba(255, 65, 108, 0.3), 0 0 0 2px rgba(255, 65, 108, 0.35) !important;
}

.modern-lang-chevron,
.footer-lang-chevron-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Settings Modal Custom Select Integration */
.language-settings-section .custom-select-wrapper {
    margin-top: 4px;
}

.modern-lang-pill:hover .modern-lang-chevron,
.modern-lang-pill:focus-within .modern-lang-chevron,
.footer-language-selector-wrap:hover .footer-lang-chevron-icon,
.footer-language-selector-wrap:focus-within .footer-lang-chevron-icon {
    color: #ff416c;
    transform: translateY(-40%);
}

.modern-lang-select optgroup,
.footer-language-select optgroup {
    background: #1e293b;
    color: #ff416c;
    font-weight: 700;
    padding: 6px 4px;
}

.modern-lang-select option,
.footer-language-select option {
    background: #0f172a;
    color: #f8fafc;
    font-weight: 500;
    padding: 8px 12px;
}

/* Light Theme */
[data-theme="light"] .modern-lang-pill,
[data-theme="light"] .footer-language-selector-wrap {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modern-lang-pill:hover,
[data-theme="light"] .modern-lang-pill:focus-within,
[data-theme="light"] .footer-language-selector-wrap:hover,
[data-theme="light"] .footer-language-selector-wrap:focus-within {
    border-color: #ff416c;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 65, 108, 0.15), 0 0 0 1px rgba(255, 65, 108, 0.2);
}

[data-theme="light"] .modern-lang-select,
[data-theme="light"] .footer-language-select {
    color: #0f172a;
}

[data-theme="light"] .modern-lang-chevron,
[data-theme="light"] .footer-lang-chevron-icon {
    color: #64748b;
}

[data-theme="light"] .modern-lang-select optgroup,
[data-theme="light"] .footer-language-select optgroup {
    background: #ffffff;
    color: #ff416c;
}

[data-theme="light"] .modern-lang-select option,
[data-theme="light"] .footer-language-select option {
    background: #ffffff;
    color: #0f172a;
}

/* RTL Support */
[dir="rtl"] .modern-lang-pill,
[dir="rtl"] .footer-language-selector-wrap {
    padding: 0 14px 0 16px;
}

[dir="rtl"] .modern-lang-globe,
[dir="rtl"] .footer-lang-globe-icon {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .modern-lang-select,
[dir="rtl"] .footer-language-select {
    padding: 0 0 0 22px;
}

[dir="rtl"] .modern-lang-chevron,
[dir="rtl"] .footer-lang-chevron-icon {
    right: auto;
    left: 14px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-meta-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-meta-divider {
    color: var(--border-color);
}

/* ==========================================
   EDGE-TO-EDGE GIANT BRAND WATERMARK (DESKTOP)
   ========================================== */
.footer-brand-watermark-wrap {
    width: 100%;
    margin: 28px 0 0 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    display: block;
}

.footer-brand-watermark-wrap svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
}

.watermark-text-thick {
    font-family: 'Gasoek One', 'Arial Black', -apple-system, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .footer-brand-watermark-wrap {
        display: none !important;
    }
}

/* Clean placement: don't obstruct swipe cards while in discover view */
/* Mobile / Tablet footer suppression while in discover swipe view */
@media (max-width: 1024px) {
    #sec-discovery.active ~ .gavana-footer,
    #sec-discovery.active ~ #gavana-global-footer,
    .discover-active .gavana-footer,
    .discover-active #gavana-global-footer {
        display: none !important;
    }
}

/* ==========================================
   GAVANA FOOTER: DESKTOP ONLY (>= 1025px)
   Hidden on mobile / tablet (< 1025px)
   ========================================== */
@media (max-width: 1024px) {
    .gavana-footer,
    #gavana-global-footer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .gavana-footer-grid {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .gavana-footer,
    #gavana-global-footer {
        display: block;
        height: auto;
        visibility: visible;
        overflow: visible;
        opacity: 1;
        pointer-events: auto;
        margin-top: auto;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 640px) {
    .gavana-footer-inner {
        padding: 32px 16px 20px 16px;
    }

    .gavana-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-brand-col {
        text-align: center;
        align-items: center;
    }

    .footer-mission {
        max-width: 100%;
        text-align: center;
    }

    .footer-trust-badges {
        justify-content: center;
    }

    .gavana-footer-col {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .gavana-footer-col:last-child {
        border-bottom: none;
    }

    .footer-heading {
        margin-bottom: 10px;
    }

    .footer-links-list {
        gap: 8px;
    }

    .gavana-footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .gavana-footer-bottom .footer-bottom-left,
    .gavana-footer-bottom .footer-bottom-center,
    .gavana-footer-bottom .footer-bottom-right {
        flex: none !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .gavana-footer-bottom .footer-bottom-center {
        order: 1 !important;
    }

    .gavana-footer-bottom .footer-bottom-left {
        order: 2 !important;
    }

    .gavana-footer-bottom .footer-bottom-right {
        order: 3 !important;
        justify-content: center !important;
    }
}

/* =======================================================
   RESPONSIVE REBUILD FOR MODERATION INTERFACE (320px - 1440px)
   ======================================================= */

/* Tablet Landscape / Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .mod-workspace-container {
        padding: 16px 12px;
    }

    .mod-dash-panels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mod-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .mod-filter-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .mod-filter-bar .form-group {
        min-width: 0;
        width: 100%;
    }

    .mod-review-workspace-layout,
    .mod-user-investigation-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mod-actions-toolbar {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
}

/* Tablet Portrait & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .mod-workspace-container {
        padding: 12px 8px;
    }

    .mod-header-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .mod-title-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mod-title-box h2 {
        font-size: 1.15rem;
    }

    .mod-header-actions {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mod-search-input-wrapper {
        flex: 1;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .mod-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mod-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .mod-filter-bar .form-group {
        min-width: 0;
        width: 100%;
    }

    .mod-filter-bar .form-group:nth-child(5) {
        grid-column: span 2;
    }

    .mod-filter-bar .filter-actions {
        grid-column: span 2;
        width: 100%;
    }

    .mod-filter-bar .filter-actions .btn {
        width: 100%;
        min-height: 40px;
    }

    .mod-review-header-bar,
    .mod-investigation-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

    .review-header-left,
    .investigation-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .review-case-identifiers,
    .investigation-user-title-box {
        width: 100%;
    }

    .review-header-right,
    .investigation-header-right {
        align-self: flex-start;
    }

    .mod-target-user-hero {
        padding: 12px;
        gap: 12px;
    }

    .mod-target-user-avatar {
        width: 56px;
        height: 56px;
    }

    .mod-target-user-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mod-actions-toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mod-actions-toolbar .btn {
        min-height: 42px;
        width: 100%;
        font-size: 0.82rem;
    }

    .mod-search-users-grid {
        grid-template-columns: 1fr;
    }

    .staff-search-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Medium Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .mod-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mod-kpi-card {
        padding: 10px 12px;
        gap: 8px;
        min-width: 0;
    }

    .kpi-icon {
        font-size: 1.25rem;
    }

    .kpi-value {
        font-size: 1.15rem;
    }

    .kpi-label {
        font-size: 0.7rem;
    }

    .mod-pagination-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .pagination-buttons {
        width: 100%;
        justify-content: center;
    }

    .mod-actions-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mod-actions-toolbar .btn {
        width: 100%;
        min-height: 44px;
    }

    .mod-notif-dropdown {
        width: min(340px, calc(100vw - 20px));
        right: 0;
        left: auto;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .mod-workspace-container {
        padding: 8px 4px;
    }

    .mod-header-card {
        padding: 12px 10px;
    }

    .mod-title-box h2 {
        font-size: 1.05rem;
    }

    .mod-role-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .mod-search-input {
        font-size: 0.82rem;
        padding: 7px 34px 7px 12px;
    }

    .mod-filter-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .mod-filter-bar .form-group:nth-child(5),
    .mod-filter-bar .filter-actions {
        grid-column: span 1;
    }

    .mod-tab-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-height: 40px;
    }

    .mod-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .mod-kpi-card {
        padding: 10px 8px;
        gap: 8px;
    }

    .kpi-icon {
        font-size: 1.2rem;
    }

    .kpi-value {
        font-size: 1.15rem;
    }

    .kpi-label {
        font-size: 0.68rem;
    }

    .mod-target-user-hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 10px;
    }

    .mod-target-user-details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mod-actions-toolbar {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mod-actions-toolbar .btn {
        min-height: 42px;
        font-size: 0.82rem;
    }

    .mod-table th, .mod-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .mod-notif-dropdown {
        width: min(320px, calc(100vw - 16px));
        right: 0;
        left: auto;
    }
}

/* Extra Small / 320px Viewport (max-width: 360px) */
@media (max-width: 360px) {
    .mod-workspace-container {
        padding: 6px 2px;
    }

    .mod-header-card {
        padding: 10px 8px;
    }

    .mod-title-box h2 {
        font-size: 0.95rem;
    }

    .mod-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .mod-kpi-card {
        padding: 8px 6px;
        gap: 6px;
    }

    .kpi-icon {
        font-size: 1.1rem;
    }

    .kpi-value {
        font-size: 1.05rem;
    }

    .mod-review-card {
        padding: 12px 10px;
    }

    .review-case-title,
    .investigation-user-name {
        font-size: 1.05rem;
    }

    .mod-target-user-hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mod-target-user-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mod-table th, .mod-table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}

/* ==========================================
   Real-Time WebSocket Typing Indicator
   ========================================== */
.typing-bubble {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 16px !important;
    border-bottom-left-radius: 4px !important;
    background: var(--input-bg, #f1f5f9) !important;
    color: var(--text-muted, #64748b) !important;
    font-size: 0.85rem !important;
    font-style: italic !important;
    width: fit-content !important;
    max-width: 80% !important;
    margin-top: 4px;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.typing-dots span {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--text-muted, #64748b);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.2);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   USER APPROVALS & AUTO-MODERATION STYLING
   ========================================== */
.switch-toggle input:checked + .slider-round {
    background-color: var(--primary-color, #ff416c) !important;
}
.switch-toggle input:focus + .slider-round {
    box-shadow: 0 0 1px var(--primary-color, #ff416c) !important;
}
.switch-toggle input:checked + .slider-round:before {
    transform: translateX(26px) !important;
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: .3s ease;
    border-radius: 50%;
}

.mod-approval-review-body-wrap {
    width: 100%;
    min-width: 0;
}

.mod-approval-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    width: 100%;
    min-width: 0;
}

/* Candidate Profile Overview Card */
.mod-profile-overview-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.mod-profile-overview-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.mod-profile-identity-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mod-profile-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mod-profile-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
    text-transform: uppercase;
}

.mod-profile-name-area {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mod-profile-name-area h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-profile-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    background: var(--bg-main);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mod-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mod-spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.mod-spec-value {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
}

.mod-profile-bio-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mod-profile-bio-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mod-profile-bio-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-profile-bio-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
    white-space: pre-wrap;
    flex: 1;
    overflow-y: auto;
    max-height: 120px;
}

/* Uploaded Photos Showcase Card */
.mod-photos-showcase-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.mod-photos-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.mod-photos-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mod-photos-title-group h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-photo-count-pill {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mod-photo-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mod-photo-summary-chip.live {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mod-photo-summary-chip.flagged {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mod-approval-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    width: 100%;
}

/* Modern Photo Card */
.mod-approval-photo-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.mod-approval-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mod-approval-photo-card.is-flagged {
    border: 2px solid #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.mod-approval-photo-card.is-flagged:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

.mod-approval-photo-item {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #09090b;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.mod-approval-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-approval-photo-card:hover .mod-approval-photo-item img {
    transform: scale(1.04);
}

.mod-photo-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.mod-photo-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mod-photo-badge.primary {
    background: rgba(14, 165, 233, 0.9);
    color: #ffffff;
}

.mod-photo-badge.live {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

.mod-photo-badge.flagged {
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.mod-photo-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mod-approval-photo-card:hover .mod-photo-overlay-bottom {
    opacity: 1;
}

.mod-photo-index-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 7px;
    border-radius: 4px;
}

.mod-photo-zoom-hint {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Flag breakdown tag container inside photo card */
.mod-photo-card-flags-feed {
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.06);
    border-top: 1px solid rgba(239, 68, 68, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mod-photo-flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.25;
    box-sizing: border-box;
}

/* Photo card action bar */
.mod-photo-card-actions {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.mod-photo-card-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Bottom Split Section: AI Safety & Decision */
.mod-approval-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* Dedicated Moderation Inspection Lightbox (Uncropped, Full Image) */
.mod-lightbox-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.mod-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.mod-lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
}

.mod-lightbox-topbar,
.mod-lightbox-stage,
.mod-lightbox-bottombar {
    pointer-events: auto;
}

.mod-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    flex-shrink: 0;
}

.mod-lightbox-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mod-lightbox-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.mod-lightbox-counter-badge {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.mod-lightbox-status-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mod-lightbox-status-pill.live {
    background: #10b981;
    color: #ffffff;
}

.mod-lightbox-status-pill.flagged {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.mod-lightbox-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-lightbox-icon-btn,
.mod-lightbox-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.mod-lightbox-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.mod-lightbox-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.mod-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 0;
    margin: 12px 0;
    overflow: hidden;
    gap: 14px;
}

.mod-lightbox-viewport {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.mod-lightbox-viewport.zoomed {
    cursor: zoom-out;
}

#mod-gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.mod-lightbox-viewport.zoomed #mod-gallery-main-image {
    transform: scale(1.85);
}

.mod-lightbox-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mod-lightbox-arrow-btn:hover {
    background: rgba(99, 102, 241, 0.8);
    border-color: rgba(99, 102, 241, 0.9);
    transform: scale(1.08);
}

.mod-lightbox-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mod-lightbox-flags-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.mod-lightbox-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .mod-lightbox-container {
        padding: 10px 12px !important;
    }
    .mod-lightbox-arrow-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    .mod-lightbox-bottombar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .mod-lightbox-actions-group {
        justify-content: stretch !important;
    }
    .mod-lightbox-actions-group .btn {
        flex: 1 !important;
    }
}

.mod-approval-review-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}

.mod-approval-photo-item .primary-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mod-approval-flags-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
}

.mod-approval-clean-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
}

.badge-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.manual_review {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status.auto_approved {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-status.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.rejected {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

@media (max-width: 1024px) {
    #sec-moderation {
        padding: 10px 10px 24px 10px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    .mod-nav-control-center {
        gap: 6px !important;
        padding: 4px !important;
        margin-bottom: 14px !important;
    }

    .mod-nav-card {
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
    }

    .mod-nav-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 1rem !important;
    }

    .mod-nav-title {
        font-size: 0.78rem !important;
    }

    .mod-nav-subtitle {
        display: none !important;
    }

    /* Active Expanded Tab Badge: Keep neatly inline after the tab label, preventing text overlap */
    .mod-nav-card.active .mod-card-badge {
        position: static !important;
        transform: none !important;
        margin-left: 8px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

    .mod-approval-review-layout {
        grid-template-columns: 1fr !important;
    }

    .mod-profile-overview-content {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .mod-approval-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .mod-approval-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 12px !important;
    }

    .mod-header-card {
        padding: 12px 14px !important;
    }
}

/* AI Evaluation Full-Workspace Loading Overlay */
.mod-scan-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 1050 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
}

.mod-scan-overlay.active {
    display: flex !important;
}

.mod-scan-overlay-card {
    background: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    border-radius: 16px !important;
    padding: 30px 24px !important;
    text-align: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    max-width: 380px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1051 !important;
}

.mod-scan-pulse-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseRing 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.mod-scan-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--input-bg, #334155);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.mod-scan-progress-fill {
    width: 40%;
    height: 100%;
    background: var(--gradient-brand, linear-gradient(135deg, #ff416c, #ff4b2b));
    border-radius: 4px;
    animation: indeterminateScan 1.6s infinite ease-in-out;
}

@keyframes indeterminateScan {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(300%);
    }
}




/* Standalone Public Legal Page Layout Rules */
body.legal-standalone-page {
    background: var(--bg-main, #0f172a);
    color: var(--text-main, #f8fafc);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.legal-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.standalone-legal-main {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.standalone-legal-card {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Mobile & Tablet Full-Screen Scaling for Standalone Legal Pages */
@media (max-width: 768px) {
    body.legal-standalone-page {
        overflow: auto;
    }

    .legal-page-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        height: 100vh;
    }

    .standalone-legal-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        height: 100vh !important;
    }

    .standalone-legal-card .modal-header {
        padding: 14px 16px;
    }

    .standalone-legal-card .legal-viewer-body {
        padding: 16px;
    }

    .standalone-legal-card .modal-footer {
        padding: 12px 16px;
    }
}

/* Auth Theme Switcher Control */
#btn-auth-theme-toggle.auth-theme-toggle-btn {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    /*z-index: 1000 !important;*/
    z-index: 1200 !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: var(--radius-full) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.2s ease !important;
}

.auth-theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-theme-option {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-theme-option:hover,
.btn-theme-option.active {
    background: var(--bg-card);
    border-color: var(--primary);
}


/* Re-authentication Overlay Visibility */
.is-visible-reauth {
    display: flex !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background-color: rgba(15, 23, 42, 0.88) !important;
    z-index: 99999 !important;
}

.is-hidden-reauth {
    display: none !important;
}

/* ==========================================================================
   Call Log UI Components & Options (Restored)
   ========================================================================== */

.chat-call-log-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 2px 0;
}

.call-log-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #3c7500;
    border: 2px solid #b0f369;
    box-shadow: 0 0 0 3px rgba(0, 250, 0, 0.4);
    transition: all 0.2s ease;
}

.call-log-icon-wrap svg,
.call-log-icon-wrap .call-dir-svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

/* Call Log Danger / Missed / Cancelled (Option 3 Approved Design: Solid Red + Glow Ring) */
.chat-call-log-box.call-log-danger .call-log-icon-wrap {
    background: #e11d48 !important;
    border: 2px solid #fda4af !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25) !important;
}

.chat-call-log-box.call-log-danger .call-log-icon-wrap svg,
.chat-call-log-box.call-log-danger .call-log-icon-wrap .call-dir-svg {
    stroke: #ffffff !important;
}

.call-log-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.call-log-title {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--text-main);
}

.btn-call-back-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--input-bg, #f1f5f9);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-call-back-action:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-call-back-action i {
    font-size: 0.95rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .call-log-title {
    color: #f8fafc;
}

[data-theme="dark"] .btn-call-back-action {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .btn-call-back-action:hover {
    background: var(--primary);
    color: #ffffff;
}


/* Call Log Specific Bubble Overrides */
.chat-bubble.is-call-log {
    min-width: 260px;
    padding: 10px 14px;
}

.chat-bubble.mine.is-call-log {
    background: #ffffff !important;
    border: 1.5px solid rgba(225, 29, 72, 0.32) !important;
    color: var(--text-main) !important;
}

.chat-bubble.theirs.is-call-log {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.chat-bubble.mine.is-call-log .call-log-title {
    color: var(--text-main) !important;
}

.chat-bubble.mine.is-call-log .chat-meta {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .chat-bubble.mine.is-call-log,
[data-theme="dark"] .chat-bubble.theirs.is-call-log {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .chat-bubble.mine.is-call-log {
    border-color: rgba(225, 29, 72, 0.45) !important;
}

[data-theme="dark"] .chat-bubble.theirs.is-call-log {
    border-color: #334155 !important;
}

[data-theme="dark"] .chat-bubble.mine.is-call-log .call-log-title,
[data-theme="dark"] .chat-bubble.theirs.is-call-log .call-log-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .chat-bubble.mine.is-call-log .chat-meta {
    color: #94a3b8 !important;
}

/* ==========================================================================
   ONLINE PRESENCE INDICATORS (PROMPT 5: LIKES, MATCHES, MESSAGES LIST)
   Subtle emerald online indicators; offline = nothing rendered
   ========================================================================== */

/* Likes & Matches Cards Online Badge */
.like-card-online-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .like-card-online-badge {
    background: rgba(255, 255, 255, 0.90);
    color: #0f172a;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.like-card-online-badge .presence-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .like-card-online-badge {
        width: 22px;
        height: 22px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(16, 185, 129, 0.55);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }
    .like-card-online-badge .online-label {
        display: none !important;
    }
    .like-card-online-badge .presence-dot {
        width: 8px;
        height: 8px;
    }
}

/* Messages List Conversation Card Online Dot Indicator */
.conversation-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.conversation-online-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 13px;
    height: 13px;
    background-color: #10b981;
    border: 2px solid var(--bg-card, #181820);
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

[data-theme="light"] .conversation-online-indicator {
    border-color: #ffffff;
}

/* ==========================================================================
   MOBILE AUTH BLOG ENTRY BANNER (< 1025px only)
   Subtle, modern card below the login/registration card on mobile viewports.
   Hidden completely on desktop (>= 1025px) where the desktop footer is visible.
   ========================================================================== */
.auth-mobile-blog-banner {
    display: none;
}

@media (max-width: 1024px) {
    .auth-mobile-blog-banner {
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 16px auto 24px auto;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .auth-mobile-blog-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: var(--bg-card);
        background: color-mix(in srgb, var(--bg-card) 92%, var(--primary) 8%);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        text-decoration: none;
        color: var(--text-main);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        box-sizing: border-box;
    }

    .auth-mobile-blog-link:hover,
    .auth-mobile-blog-link:focus-visible {
        border-color: var(--primary);
        box-shadow: 0 6px 20px rgba(255, 65, 108, 0.18);
        transform: translateY(-1px);
        outline: none;
    }

    .auth-mobile-blog-link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .auth-mobile-blog-link:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .auth-mobile-blog-icon {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
        background: linear-gradient(135deg, rgba(255, 65, 108, 0.15) 0%, rgba(255, 75, 43, 0.12) 100%);
        border: 1px solid rgba(255, 65, 108, 0.28);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .auth-mobile-blog-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        gap: 2px;
    }

    .auth-mobile-blog-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text-main);
        line-height: 1.3;
    }

    .auth-mobile-blog-badge {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        padding: 2px 7px;
        border-radius: 9999px;
        background: rgba(255, 65, 108, 0.14);
        color: var(--primary);
        border: 1px solid rgba(255, 65, 108, 0.25);
    }

    .auth-mobile-blog-sub {
        font-size: 0.74rem;
        color: var(--text-muted);
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .auth-mobile-blog-arrow {
        color: var(--text-muted);
        font-size: 0.82rem;
        flex-shrink: 0;
        transition: transform 0.18s ease, color 0.18s ease;
        padding-right: 2px;
    }

    .auth-mobile-blog-link:hover .auth-mobile-blog-arrow {
        transform: translateX(3px);
        color: var(--primary);
    }

    /* Light Theme Refinements */
    [data-theme="light"] .auth-mobile-blog-link {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    [data-theme="light"] .auth-mobile-blog-link:hover,
    [data-theme="light"] .auth-mobile-blog-link:focus-visible {
        border-color: var(--primary);
        box-shadow: 0 6px 18px rgba(225, 29, 72, 0.12);
    }

    [data-theme="light"] .auth-mobile-blog-icon {
        background: rgba(225, 29, 72, 0.08);
        border-color: rgba(225, 29, 72, 0.2);
    }

    [data-theme="light"] .auth-mobile-blog-badge {
        background: rgba(225, 29, 72, 0.08);
        border-color: rgba(225, 29, 72, 0.2);
    }
}

/* ==========================================================================
   HIDE ALL SCROLLBARS ON MOBILE / TABLET (< 1025px)
   Keeps full native touch & mouse scrolling functionality while hiding visual scrollbars
   ========================================================================== */
@media (max-width: 1024px) {
    html,
    body,
    *,
    *::before,
    *::after {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
}

/* ==========================================================================
   RTL (RIGHT-TO-LEFT) LOCALISATION STYLES (e.g. Arabic, Hebrew)
   ========================================================================== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .auth-hero,
[dir="rtl"] .auth-google-disclaimer,
[dir="rtl"] .form-group,
[dir="rtl"] .settings-group-title,
[dir="rtl"] .footer-brand-col {
    text-align: right;
}

[dir="rtl"] .auth-google-disclaimer-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-lang-globe-icon {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .footer-lang-chevron-icon {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
}

[dir="rtl"] .fa-arrow-left {
    transform: scaleX(-1);
}

[dir="rtl"] .fa-chevron-left {
    transform: scaleX(-1);
}

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-items-group {
    text-align: right;
}

[dir="rtl"] .nav-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-label-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .desktop-sidebar-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom-right,
[dir="rtl"] .footer-bottom-left {
    text-align: right;
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .chat-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .chat-user-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .chat-footer {
    flex-direction: row-reverse;
}

/* ==========================================================================
   SETTINGS REDESIGN: OPTION 1 VIBRANT COLOR-CODED CARDS & FULL-BLEED MOBILE
   ========================================================================== */

/* Color-Coded Section Cards */
.settings-color-card {
    background: var(--bg-card, #131b2e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 20px);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .settings-color-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.settings-color-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .settings-color-card:hover {
    border-color: #cbd5e1;
}

/* Color Card Header & Meta */
.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-card-meta {
    flex: 1;
    min-width: 0;
}

.settings-card-meta h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card-meta p {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.35;
}

/* 38x38px Rounded Category Icon Badges */
.settings-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.settings-color-card:hover .settings-icon-badge {
    transform: scale(1.06);
}

.badge-rose {
    background: rgba(255, 65, 108, 0.15);
    color: #ff416c;
    border: 1px solid rgba(255, 65, 108, 0.25);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-teal {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-crimson {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Tactile Pill Selectors (iOS / Tinder Style) */
.settings-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .settings-pill-item {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.settings-pill-item:hover {
    border-color: rgba(255, 65, 108, 0.4);
    color: var(--text-main, #ffffff);
}

.settings-pill-item input[type="checkbox"] {
    display: none;
}

.settings-pill-item .pill-check-icon {
    font-size: 0.75rem;
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.settings-pill-item:has(input[type="checkbox"]:checked) {
    background: rgba(255, 65, 108, 0.16);
    border-color: #ff416c;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 65, 108, 0.2);
}

[data-theme="light"] .settings-pill-item:has(input[type="checkbox"]:checked) {
    background: rgba(255, 65, 108, 0.1);
    color: #ff416c;
    border-color: #ff416c;
}

.settings-pill-item:has(input[type="checkbox"]:checked) .pill-check-icon {
    opacity: 1;
    color: #ff416c;
    transform: scale(1.15);
}

/* Custom Styled Range Slider */
.settings-range-wrap {
    margin-top: 10px;
}

.settings-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main, #ffffff);
    margin-bottom: 8px;
}

.settings-range-val {
    color: #ff416c;
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(255, 65, 108, 0.12);
    padding: 3px 10px;
    border-radius: 9999px;
}

/* Full-bleed Mobile Architecture for Settings Modals (<= 1024px) */
@media (max-width: 1024px) {
    #modal-settings.modal-overlay,
    #modal-account-settings.modal-overlay {
        position: fixed !important;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100% - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px)) !important;
        padding: 0 !important;
        margin: 0 !important;
        background: var(--bg-main, #0b1120) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 950 !important;
        border: none !important;
        border-radius: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #modal-settings .modal-card,
    #modal-account-settings .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--bg-main, #0b1120) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #modal-settings .modal-header,
    #modal-account-settings .modal-header {
        border-radius: 0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
        background: var(--bg-card, #131b2e) !important;
        padding: 0 16px !important;
        height: 52px !important;
        min-height: 52px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 10 !important;
    }

    #modal-settings .modal-body,
    #modal-account-settings .modal-body {
        flex: 1 1 0% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 14px 24px !important;
        background: var(--bg-main, #0b1120) !important;
        box-sizing: border-box !important;
    }

    [data-theme="light"] #modal-settings .modal-body,
    [data-theme="light"] #modal-account-settings .modal-body {
        background: #f8fafc !important;
    }

    .settings-color-card {
        padding: 16px 14px;
        margin-bottom: 14px;
        border-radius: 16px;
    }

    .settings-color-card .form-row {
        gap: 8px !important;
    }
}

/* Google Translate Silent Integration */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.skiptranslate:not(.modern-footer-lang-wrap) {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

font[style] {
    background: transparent !important;
    box-shadow: none !important;
}

