/* Babi Meet Web App — flat, responsive, no shadows/gradients */
:root {
    --orange: #DC143C;
    --orange-hover: #B91032;
    --orange-soft: #FDE8EC;
    --yellow: #E8355A;
    --yellow-soft: #FDE8EC;
    --bg: #F8F8F8;
    --surface: #ffffff;
    --border: #E5E7EB;
    --border-dark: #D1D5DB;
    --text: #1a1a1a;
    --muted: #78716c;
    --white: #fff;
    --dark: #1a1a1a;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --sidebar-w: 260px;
    --topbar-h: 58px;
    --bottomnav-h: 64px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* Logo officiel BabiMeet (format horizontal avec texte) */
.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    border: none !important;
    border-radius: 0 !important;
}
.brand-logo-sm { height: 36px; max-width: 130px; }
.brand-logo-auth { height: 56px; max-width: 190px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28)); }

/* Wordmark texte — babimeet */
.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    text-transform: lowercase;
}
.brand-wordmark-sm { font-size: 1.15rem; }
.brand-wordmark-auth { font-size: 1.65rem; }
.brand-babi { color: var(--text, #000); }

.brand-meet { color: var(--orange, #DC143C); }

.brand-wordmark-link {
    text-decoration: none;
    color: inherit;
}

/* Logo Babi Meet — format horizontal (icône + wordmark) */
.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(100%, 200px);
    object-fit: contain;
    object-position: left center;
    border: none !important;
    border-radius: 0 !important;
}
.brand-logo-sm { height: 34px; max-width: 130px; }
.brand-logo-auth { height: 56px; max-width: 220px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28)); }
.brand-logo-footer { height: 48px; max-width: 180px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Logo horizontal Babi Meet */
.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(100%, 200px);
    object-fit: contain;
    border: none !important;
    border-radius: 0 !important;
}
.brand-logo-sm { height: 36px; max-width: 130px; }
.brand-logo-auth { height: 56px; max-width: 220px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28)); }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); }
button { font-family: inherit; cursor: pointer; }
.hidden, [hidden] { display: none !important; }
.mobile-only { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
    background: #1A0F12;
    color: #fff;
    border: 1.5px solid #1A0F12;
}

.btn-outline:hover {
    border-color: #000;
    color: #fff;
    background: #000;
}
.btn-outline:active { transform: scale(0.98); }

.btn-text {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0.5rem;
    font-size: 0.875rem;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
.btn-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    font-size: 1.1rem;
}

.btn-pass { color: #dc2626; }
.btn-like { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-star { background: var(--yellow); color: var(--white); border-color: var(--yellow); }

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    z-index: 9999;
    max-width: 90vw;
}

.toast-error { background: #991b1b; }
.toast-success { background: #166534; }

/* ── Auth pages (split : image gauche · formulaire droite) ── */
.auth-body {
    background: var(--bg);
    min-height: 100vh;
    overflow-x: clip;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-split-visual {
    position: relative;
    flex: 1.05;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(145deg, #1A0F12 0%, #DC143C 55%, #E8355A 100%);
    isolation: isolate;
}

.auth-split-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(26, 15, 18, 0.42);
    border-radius: inherit;
    pointer-events: none;
}

.auth-split-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    z-index: 0;
}

.auth-split-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(
        180deg,
        rgba(26, 15, 18, 0.55) 0%,
        rgba(26, 15, 18, 0.38) 35%,
        rgba(26, 15, 18, 0.45) 65%,
        rgba(26, 15, 18, 0.72) 100%
    );
    color: #fff;
    border-radius: inherit;
}

.auth-split-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

.auth-split-brand img.brand-logo,
.auth-split-brand img {
    width: auto;
    height: 56px;
    max-width: 190px;
    border: none;
    border-radius: 0;
    object-fit: contain;
}

.auth-split-copy {
    max-width: 420px;
    margin-top: auto;
    padding-bottom: 1rem;
}

.auth-split-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.85rem;
}

.auth-split-headline {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.auth-split-tagline {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.5rem;
}

.auth-split-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
}

.auth-split-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-split-trust i { color: #FFB3C1; font-size: 0.85rem; }

.auth-split-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg);
}

.auth-split-form-wrap {
    width: min(440px, 100%);
}

.auth-split-form-wrap.is-wide {
    width: min(520px, 100%);
}

/* Inscription : on masque la colonne visuelle, formulaire seul et centré */
.auth-split--solo .auth-split-visual {
    display: none;
}

.auth-split--solo .auth-split-main {
    flex: 1 1 100%;
}

/* Legacy aliases (complete-profile, etc.) */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 3rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo img { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.auth-card-wide { width: 100%; max-width: none; }

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.auth-sub { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.75rem; line-height: 1.65; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.auth-forgot-link { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.auth-forgot-link a { color: var(--orange); font-weight: 600; text-decoration: none; }
.auth-forgot-link a:hover { text-decoration: underline; }
.auth-switch a { color: var(--orange); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.auth-card .btn-primary.btn-block {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-top: 0.25rem;
}

.auth-card .code-input {
    letter-spacing: 0.45em;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.85rem;
}

@media (max-width: 960px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-split-visual {
        flex: none;
        min-height: 280px;
        max-height: 42vh;
    }

    .auth-split-overlay {
        padding: 1.5rem 1.25rem;
    }

    .auth-split-copy {
        margin-top: 0;
    }

    .auth-split-headline {
        font-size: 1.35rem;
    }

    .auth-split-tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .auth-split-trust {
        display: none;
    }

    .auth-split-main {
        flex: 1;
        padding: 1.5rem 1rem 2.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-split-visual {
        min-height: 220px;
        max-height: 36vh;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }
}

/* Mobile : on masque le panneau visuel (image + texte), formulaire seul plein écran */
@media (max-width: 768px) {
    .auth-split-visual {
        display: none;
    }

    .auth-split-main {
        flex: 1 1 100%;
        min-height: 100vh;
    }
}

.auth-success-icon { text-align: center; margin-bottom: 1rem; font-size: 3rem; color: var(--orange); }
.auth-legal { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.dev-hint { background: #fef3c7; border: 1px solid #fcd34d; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.8rem; margin-bottom: 1rem; }

.field-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    background: var(--white);
}

.field-input:focus { outline: none; border-color: var(--orange); }
.field-textarea { resize: vertical; min-height: 100px; }
.code-input { letter-spacing: 0.3em; text-align: center; font-size: 1.25rem; }

.phone-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.dial-select { width: 110px; flex-shrink: 0; margin-bottom: 0; }
.phone-row .field-input { flex: 1; margin-bottom: 0; }

/* intl-tel-input v23 — champ téléphone unifié (connexion / inscription) */
.phone-intl-wrap {
    margin-bottom: 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-intl-wrap:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.phone-intl-wrap .iti,
.phone-intl-wrap .phone-iti-root {
    width: 100%;
    display: flex !important;
    align-items: stretch;
}

.phone-intl-wrap .iti__country-container {
    position: static !important;
    flex-shrink: 0;
}

.phone-intl-wrap .iti__selected-country {
    height: 100%;
    min-width: 6.25rem;
    border: none;
    border-right: 1.5px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    padding: 0 0.65rem 0 0.5rem;
    gap: 0.35rem;
}

.phone-intl-wrap .iti__selected-country-primary {
    display: flex;
    align-items: center;
}

.phone-intl-wrap .iti__selected-dial-code {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 2.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-left: 0.1rem;
    letter-spacing: 0.01em;
}

.phone-intl-wrap .iti__tel-input,
.phone-intl-wrap .phone-intl {
    flex: 1;
    min-width: 0;
    width: auto !important;
    padding: 0.85rem 1rem !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1rem;
    margin-bottom: 0;
    background: transparent;
    font-family: inherit;
    box-shadow: none !important;
}

.phone-intl-wrap .iti__tel-input:focus,
.phone-intl-wrap .phone-intl:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.phone-intl-wrap .iti__selected-country-primary:hover,
.phone-intl-wrap .iti__selected-country:hover {
    background: var(--orange-soft);
}

.phone-intl-wrap .iti__arrow {
    margin-left: 0.15rem;
    border-top-color: var(--muted);
}

.phone-intl-wrap .iti__dropdown-content,
.iti--container .iti__dropdown-content {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 10060;
}

.phone-intl-wrap .iti__country-list,
.iti--container .iti__country-list {
    max-height: min(280px, 50vh);
    width: min(320px, 92vw);
    font-size: 0.875rem;
}

.phone-intl-wrap .iti__search-input {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 0.5rem;
    width: calc(100% - 1rem);
    font-family: inherit;
    font-size: 0.875rem;
}

.phone-intl-wrap .iti__country.iti__highlight {
    background: var(--orange-soft);
}

.iti--container.iti--inline-dropdown {
    z-index: 10060;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-group .field-input { margin-bottom: 0; }
.field-row { margin-bottom: 1rem; }

.gender-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.chip-radio {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
}

.chip-radio:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.chip-radio input { display: none; }

.chips-select { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.chip {
    padding: 0.4rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.8125rem;
}

.chip.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }

.photo-drop {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.photo-drop.drag-over {
    border-color: var(--orange);
    background: var(--orange-soft);
}

.photo-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1rem;
    text-align: center;
    pointer-events: none;
}

.photo-drop-inner .fa-cloud-arrow-up {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 0.25rem;
}

.photo-drop-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
}

.photo-drop-sub {
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.photo-drop-inner .btn { pointer-events: auto; }

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
}

.photo-preview-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.photo-preview-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-remove:hover { border-color: var(--orange); color: var(--orange); }

.geo-status { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.profile-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.profile-nav .btn-primary { flex: 1; }

html { height: 100%; }

/* ── App layout ── */
.app-body {
    background: var(--bg);
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--white);
    border: none;
}

.app-sidebar {
    width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    flex-shrink: 0;
    background: var(--white);
    min-height: 0;
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.sidebar-logo img.brand-logo,
.sidebar-logo img { width: auto; height: 52px; max-width: 170px; border: none; border-radius: 0; object-fit: contain; }

.sidebar-nav { flex: 1; padding: 0.5rem 0; overflow-y: auto; min-height: 0; }

/* Nav items (sidebar + bottom bar — générés par main.js) */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 1rem);
    margin: 0.15rem 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.sidebar-nav .nav-item:hover { background: var(--bg); color: var(--text); }

.sidebar-nav .nav-item.active {
    color: var(--orange);
    background: var(--orange-soft);
    font-weight: 600;
}

.sidebar-nav .nav-item.active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--orange);
    border-radius: 0 2px 2px 0;
}

.sidebar-nav .nav-item i { width: 20px; text-align: center; font-size: 1rem; }

.nav-item .badge-msg {
    position: absolute;
    top: 6px;
    left: calc(50% + 6px);
    min-width: 16px;
    height: 16px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.sidebar-nav .nav-item .badge-msg {
    position: static;
    margin-left: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover { background: var(--bg); color: var(--text); }
.sidebar-link.active { color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.sidebar-link i { width: 20px; text-align: center; }

.sidebar-footer { padding: 0 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }

.app-main-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.app-topbar {
    height: var(--topbar-h);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: var(--surface);
    flex-shrink: 0;
}

.topbar-logo img { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--border); }

.topbar-actions { display: flex; gap: 0.35rem; margin-left: auto; }

.topbar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.topbar-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

#btn-premium { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
#btn-premium:hover { border-color: var(--yellow); color: var(--text); background: var(--yellow); }

.badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.app-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem 0.5rem 1.5rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 769px) {
    .app-main { padding: 1.25rem 0.75rem 2rem; }
}

/* ── Pages / états communs ── */
.tab-page {
    width: 100%;
    max-width: 720px;
    margin: 0;
    flex-shrink: 0;
}

.tab-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.muted { color: var(--muted); font-size: 0.875rem; }

.loading-state,
.panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.panel-error {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--muted);
}

.panel-error .btn { margin-top: 1rem; }

.empty-state h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.empty-state p { margin-bottom: 0.35rem; }
.empty-state .btn { margin-top: 1rem; }

.app-bottomnav {
    height: var(--bottomnav-h);
    border-top: 1px solid var(--border);
    display: flex;
    background: var(--surface);
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-bottomnav .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0.4rem 0.25rem;
    font-size: 0.625rem;
    text-align: center;
    width: auto;
    margin: 0;
    border-radius: var(--radius-md);
    border-top: 2px solid transparent;
}

.app-bottomnav .nav-item i { font-size: 1.2rem; width: auto; }

.app-bottomnav .nav-item.active {
    color: var(--orange);
    font-weight: 600;
    border-top-color: var(--orange);
    background: var(--orange-soft);
}

.app-bottomnav .nav-item.active::before { display: none; }

/* ── Discovery ── */
.discovery-page {
    max-width: min(400px, 100%);
}

.discovery-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.discovery-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 0.75rem;
}

.discovery-card-photo {
    aspect-ratio: 3/4;
    background: var(--border) center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.discovery-card-info {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: rgba(26, 26, 26, 0.78);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.discovery-card-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.discovery-distance {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.discovery-photo {
    aspect-ratio: 3/4;
    background: var(--border);
    position: relative;
}

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

.discovery-info { padding: 1.25rem; }

.discovery-info h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.discovery-meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.75rem; }

.discovery-bio {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.6;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.discovery-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 1.25rem;
    background: var(--surface);
}

.btn-swipe {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border-dark);
    background: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}

.btn-swipe:active { transform: scale(0.92); }
.btn-swipe:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-swipe.btn-pass { color: #dc2626; width: 50px; height: 50px; font-size: 1.1rem; }
.btn-swipe.btn-pass:hover { border-color: #dc2626; background: #fef2f2; }
.btn-swipe.btn-like { width: 62px; height: 62px; font-size: 1.35rem; background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-swipe.btn-like:hover { background: var(--orange-hover); }
.btn-swipe.btn-super { background: var(--yellow); color: var(--text); border-color: var(--yellow); width: 50px; height: 50px; }

.quota-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--muted);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.quota-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 500;
}

.quota-bar span i { color: var(--orange); }

.empty-state {
    text-align: center;
    padding: 3.9rem 1.5rem;
    min-height: 260px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--orange);
    background: var(--orange-soft);
    border: 1px solid var(--primary-soft);
    border-radius: 50%;
}

/* ── Explore ── */
.section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stories-row,
.stories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.story-ring-new {
    flex-shrink: 0;
    width: 76px;
    text-align: center;
    cursor: pointer;
}

.story-ring-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    outline: 2px solid var(--white);
    outline-offset: -4px;
    margin: 0 auto 0.4rem;
    background: var(--border) center / cover no-repeat;
}

.story-ring-name {
    font-size: 0.6875rem;
    color: var(--muted);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-ring {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
    cursor: pointer;
}

.story-ring img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange);
    margin: 0 auto 0.35rem;
}

.story-ring span { font-size: 0.6875rem; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.85rem;
}

.profile-grid-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
}

.profile-grid-item:hover { border-color: var(--orange); }

.profile-grid-photo {
    aspect-ratio: 3/4;
    background: var(--border) center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.profile-grid-name {
    width: 100%;
    padding: 0.55rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(26, 26, 26, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.profile-tile img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.profile-tile-info { padding: 0.5rem 0.65rem; }
.profile-tile-info strong { font-size: 0.8125rem; display: block; }
.profile-tile-info span { font-size: 0.6875rem; color: var(--muted); }

/* ── Groups ── */
.group-section { margin-bottom: 2rem; }
.group-section h2,
.group-section h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.group-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.15s;
}

.group-card:hover { border-color: var(--border-dark); }

.group-card-photo {
    width: 100px;
    min-height: 100px;
    flex-shrink: 0;
    background: var(--border) center / cover no-repeat;
    position: relative;
}

.group-card-count {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    font-size: 0.6875rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.group-card-body {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.group-card-body { min-width: 0; }
.group-card-body h3 { font-size: 0.9375rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-card-body p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.45; }
.group-card-body .btn { align-self: flex-start; margin-top: 0.25rem; }

/* ── Messages ── */
.conv-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.conv-item:hover { border-color: var(--orange); background: var(--orange-soft); }

.conv-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--border) center / cover no-repeat;
}

.conv-body { flex: 1; min-width: 0; }

.conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.conv-top strong { font-size: 0.9rem; }
.conv-time { font-size: 0.6875rem; color: var(--muted); flex-shrink: 0; }

.conv-preview { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.conv-unread {
    background: var(--orange);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Chat panel ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    background: var(--white);
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.panel > .chat-panel,
.panel > .drawer-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 0;
}

.chat-header,
.drawer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface);
}

.drawer-header h2 {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info strong { display: block; font-size: 0.9375rem; }

.online-dot {
    font-size: 0.6875rem;
    color: #16a34a;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg);
    min-height: 0;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--white);
}

.chat-input input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
}

.chat-input input:focus { outline: none; border-color: var(--orange); }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    background: var(--surface);
}

.drawer-user-card:last-child { margin-bottom: 0; border-bottom: none; }

.drawer-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    flex-shrink: 0;
    background: var(--border) center / cover no-repeat;
}

.drawer-premium-upsell {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
}

.drawer-premium-upsell i {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.drawer-premium-upsell .btn { margin-top: 1rem; }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    background: var(--surface);
}

.notif-item:last-child { margin-bottom: 0; border-bottom: none; }

.notif-item.unread {
    border-color: var(--primary-soft);
    background: var(--orange-soft);
    margin: 0 0 0.5rem;
    padding: 0.9rem;
}

.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--border) center / cover no-repeat;
}

.notif-body { flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.45; }
.notif-body time { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; }

.plans-list { display: flex; flex-direction: column; gap: 0.75rem; }

.plan-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    background: var(--surface);
    transition: border-color 0.15s;
}

.plan-card:hover { border-color: var(--orange); }

.plan-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.25rem; }
.plan-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--orange); margin: 0.35rem 0; }

.premium-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--orange-soft);
    border: 1px solid var(--orange);
    border-radius: var(--radius-md);
    color: var(--orange);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.panel-header strong { flex: 1; font-size: 0.9375rem; }

.panel-close {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--muted);
    transition: border-color 0.15s, color 0.15s;
}

.panel-close:hover { border-color: var(--orange); color: var(--orange); }

.panel-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-bubble time {
    display: block;
    font-size: 0.625rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.chat-bubble-me,
.chat-bubble.me {
    align-self: flex-end;
    background: var(--orange);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-bubble-them,
.chat-bubble.them {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-image {
    max-width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

.chat-video {
    max-width: min(100%, 320px);
    max-height: 240px;
    border-radius: var(--radius-md);
    display: block;
    background: #000;
}

/* ── Lecteurs média style WhatsApp ── */

.chat-bubble-media {
    padding: 0.4rem 0.5rem 0.35rem !important;
    overflow: visible;
    width: fit-content;
    max-width: min(calc(100% - 1.5rem), 320px);
    flex-shrink: 0;
}

.chat-bubble-media.chat-bubble-video,
.chat-bubble-media.chat-bubble-image {
    padding: 0.25rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
    border-radius: 14px;
}

.chat-bubble-media.chat-bubble-video.chat-bubble-me,
.chat-bubble-media.chat-bubble-image.chat-bubble-me {
    background: transparent !important;
    box-shadow: none !important;
}

.chat-bubble-media.chat-bubble-audio.chat-bubble-me {
    background: var(--orange, #dc143c);
}

.chat-bubble-media.chat-bubble-audio.chat-bubble-them {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8e8e8);
}

.chat-media-body {
    display: block;
    width: 100%;
    min-width: 0;
}

.chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.625rem;
    opacity: 0.85;
    line-height: 1.2;
}

.chat-bubble-meta time {
    display: inline;
    margin: 0;
    font-size: inherit;
    opacity: 1;
}

.chat-bubble-media.chat-bubble-video .chat-bubble-meta {
    padding: 0 0.15rem;
    color: var(--text-muted, #666);
}

.chat-bubble-media.chat-bubble-audio.chat-bubble-me .chat-bubble-meta {
    color: rgba(255, 255, 255, 0.92);
}

.wa-media-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-media-btn i {
    font-size: 1.45rem;
    pointer-events: none;
}

.wa-audio-player {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 220px;
    max-width: 300px;
    min-height: 44px;
    padding: 0.15rem 0.1rem;
    box-sizing: border-box;
}

.chat-bubble-me .wa-audio-player { color: #fff; }
.chat-bubble-them .wa-audio-player { color: var(--text-primary, #1a1a1a); }

.wa-audio-track {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.wa-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.wa-wave-bar {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.32;
    align-self: center;
    flex-shrink: 0;
}

.wa-wave-bar.filled { opacity: 1; }

.wa-audio-track .wa-media-seek {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.wa-media-seek {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
}

.wa-media-seek::-webkit-slider-runnable-track {
    height: 3px;
    background: rgba(127, 127, 127, 0.35);
    border-radius: 999px;
}

.wa-media-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    margin-top: -3.5px;
}

.wa-media-seek::-moz-range-track {
    height: 3px;
    background: rgba(127, 127, 127, 0.35);
    border-radius: 999px;
}

.wa-media-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: currentColor;
}

.wa-media-time {
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 2.1rem;
    text-align: right;
    flex-shrink: 0;
    opacity: 0.95;
}

.wa-audio-el { display: none; }

.wa-video-player {
    position: relative;
    width: 280px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.wa-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}

.wa-video-center-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 50%;
    z-index: 2;
    transition: opacity 0.2s;
}

.wa-video-center-play i { font-size: 1.65rem; }

.wa-video-player.is-playing .wa-video-center-play {
    opacity: 0;
    pointer-events: none;
}

.wa-video-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    z-index: 3;
}

.wa-video-bar .wa-media-btn { color: #fff; width: 1.75rem; height: 1.75rem; }
.wa-video-bar .wa-media-btn i { font-size: 1.25rem; }

.wa-video-bar .wa-media-seek {
    flex: 1;
    min-width: 0;
    height: 3px;
    accent-color: #fff;
    position: static;
    opacity: 1;
}

.wa-video-bar .wa-media-time { color: #fff; min-width: auto; font-size: 0.68rem; }

.chat-media-body {
    display: block;
    width: auto;
    max-width: 280px;
    min-width: 0;
}

.chat-bubble-media .chat-image,
.chat-image-open .chat-image {
    display: block;
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.04);
}

.chat-image-open {
    display: block;
    position: relative;
    width: auto;
    max-width: 280px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    line-height: normal;
    border-radius: 14px;
    overflow: hidden;
}

.chat-image-open .chat-image {
    border-radius: 0;
    vertical-align: top;
}

.chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}

.chat-image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    cursor: default;
}

.chat-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.chat-view-once-pending,
.chat-view-once-expired,
.chat-view-once-card {
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
}

.chat-view-once-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 240px;
    max-width: 100%;
    min-height: 148px;
    aspect-ratio: 4 / 3;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    text-align: center;
}

.chat-view-once-pending.chat-view-once-card {
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(160deg, #454545 0%, #2e2e2e 42%, #1c1c1c 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.chat-view-once-pending.chat-view-once-card:hover {
    filter: brightness(1.06);
}

.chat-view-once-pending.chat-view-once-card:active {
    transform: scale(0.98);
}

.chat-view-once-expired.chat-view-once-card {
    cursor: default;
    color: var(--text-muted, #666);
    background: var(--surface-2, #f3f4f6);
    border: 1px dashed var(--border, #d1d5db);
    opacity: 1;
}

.chat-view-once-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-view-once-pending .chat-view-once-card-icon {
    background: rgba(255, 255, 255, 0.14);
}

.chat-view-once-expired .chat-view-once-card-icon {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted, #888);
}

.chat-view-once-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
}

.chat-view-once-card-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.3;
}

.chat-view-once-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand, #dc143c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.chat-view-once-badge-sm {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.chat-bubble-media.chat-bubble-image .chat-bubble-meta,
.chat-bubble-media.chat-bubble-video .chat-bubble-meta,
.chat-bubble-view-once-pending .chat-bubble-meta,
.chat-bubble-view-once-expired .chat-bubble-meta {
    color: var(--text-muted, #666);
    padding: 0 0.2rem;
}

.chat-bubble-view-once-pending,
.chat-bubble-view-once-expired {
    max-width: min(88%, 280px);
}

.chat-view-once-label {
    font-size: 0.65rem;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.chat-selection-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: rgba(220, 20, 60, 0.08);
    border-top: 1px solid var(--border, #eee);
}

.msg-view-once-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #666);
    cursor: pointer;
    user-select: none;
    padding: 0 0.25rem;
}

.msg-view-once-toggle input { accent-color: var(--brand, #dc143c); }

.chat-bubble.is-selected {
    outline: 2px solid var(--brand, #dc143c);
    outline-offset: 2px;
}

.chat-bubble {
    touch-action: pan-y;
    transition: transform 0.15s ease;
}

.chat-audio {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 200px;
}

.chat-audio audio {
    display: none;
}

.chat-media-dur {
    font-size: 0.7rem;
    opacity: 0.85;
}

.chat-capture-panel {
    position: relative;
    margin: 0 0.75rem 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-2, #f5f5f5);
    border: 1px solid var(--border);
    text-align: center;
}

.chat-capture-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.chat-capture-title i {
    margin-right: 0.35rem;
    color: var(--brand, #dc143c);
}

.chat-video-preview {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0.5rem auto;
    background: #000;
    display: block;
}

.chat-capture-timer {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    font-variant-numeric: tabular-nums;
}

.chat-capture-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    margin: 0 0 0.25rem;
}

.chat-capture-record.recording {
    background: #dc143c;
    color: #fff;
}

.chat-capture-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
}

.chat-capture-status {
    font-size: 0.82rem;
    color: var(--text-muted, #666);
    margin: 0 0 0.35rem;
}

.chat-capture-status.recording {
    color: #dc143c;
    font-weight: 600;
}

.chat-capture-timer.recording {
    color: #dc143c;
}

.chat-capture-progress {
    height: 5px;
    background: var(--border, #e0e0e0);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.25rem auto 0.75rem;
    max-width: 240px;
}

.chat-capture-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand, #dc143c);
    border-radius: 999px;
    transition: width 0.2s linear;
}

.chat-capture-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.chat-capture-cancel {
    flex: 1;
    max-width: 120px;
}

.chat-capture-panel.is-recording .chat-capture-record {
    flex: 2;
}

.chat-capture-panel.is-sending {
    opacity: 0.85;
    pointer-events: none;
}

.msg-input-btn.active {
    color: var(--brand, #dc143c);
    background: rgba(220, 20, 60, 0.08);
}

.panel-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-footer input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.panel-footer input:focus { outline: none; border-color: var(--orange); }

/* ── Profile ── */
.profile-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--orange);
}

.profile-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.profile-photos {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.profile-photo {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--border) center / cover no-repeat;
}

.profile-photos img {
    width: 100px; height: 130px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 1rem;
}

.stat-cell,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1rem;
    text-align: center;
}

.stat-cell strong,
.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--orange);
    line-height: 1.1;
}

.stat-cell span,
.stat-card span {
    font-size: 0.6875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.85rem;
}

.profile-section h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.profile-bio-edit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-bio-edit textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 90px;
}

.profile-bio-edit textarea:focus { outline: none; border-color: var(--orange); }

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-logout-main {
    width: 100%;
    margin-top: 0.5rem;
}

/* ── Drawer lists ── */
.drawer-list { overflow-y: auto; flex: 1; }

.drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.drawer-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.drawer-item-body { flex: 1; }
.drawer-item-body strong { display: block; font-size: 0.875rem; }
.drawer-item-body span { font-size: 0.75rem; color: var(--muted); }

/* ── Modal / Match ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.modal-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    width: min(400px, 100%);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-box h2 { font-size: 1.125rem; margin-bottom: 1rem; }

.match-popup {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
}

.match-popup-inner {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--orange);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
    max-width: 340px;
    width: 100%;
}

.match-popup-inner .panel-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.match-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
    font-size: 2rem;
    color: var(--orange);
    background: var(--orange-soft);
    border: 1px solid var(--primary-soft);
    border-radius: 50%;
}

.match-popup-inner h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--orange);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.match-popup-inner p { color: var(--muted); margin-bottom: 1rem; }

.match-popup-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--orange);
}

.match-box {
    background: var(--white);
    border: 2px solid var(--orange);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    max-width: 340px;
    width: 100%;
}

.match-box h2 { font-size: 1.5rem; color: var(--orange); margin-bottom: 0.5rem; }
.match-box img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 1rem auto; border: 2px solid var(--orange); }

.premium-plan {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.premium-plan.featured { border-color: var(--orange); background: var(--orange-soft); }

.page-header { margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.25rem; font-weight: 700; }

.search-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.field-input:focus,
.field-input:focus-visible {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

.step-label {
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    background: var(--orange-soft);
    border: 1px solid var(--primary-soft);
    border-radius: 999px;
}

#btn-boost { color: var(--primary); border-color: var(--primary-soft); background: var(--primary-soft); }
#btn-boost:hover { border-color: var(--orange); background: var(--orange-soft); }

/* ── New features UI ── */
.discovery-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.discovery-tools { display: flex; gap: 0.35rem; flex-shrink: 0; }

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-bar .search-input { margin-bottom: 0; flex: 1; }

.story-ring-add { border: none; background: none; cursor: pointer; padding: 0; font: inherit; }

.story-ring-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-soft) !important;
    border: 2px dashed var(--orange) !important;
    outline: none !important;
    color: var(--orange);
    font-size: 1.25rem;
}

button.story-ring-new {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

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

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-body { max-height: 70vh; overflow-y: auto; }

.profile-modal-photos {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.profile-modal-photo {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--border) center / cover no-repeat;
    border: 1px solid var(--border);
}

.profile-modal-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.profile-modal-bio { margin-bottom: 0.85rem; line-height: 1.55; }
.profile-modal-interests { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.profile-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.story-viewer { margin-bottom: 0.75rem; }

.story-media {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.story-text {
    min-height: 200px;
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.5;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-caption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.story-nav { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.story-comments { max-height: 120px; overflow-y: auto; margin-bottom: 0.75rem; font-size: 0.8125rem; }
.story-comment { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.story-comment-form { display: flex; gap: 0.5rem; }
.story-comment-form input { flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius); font: inherit; }

.settings-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 1rem 0 0.65rem;
    font-weight: 700;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.boost-modal { text-align: center; }
.boost-desc { color: var(--muted); margin-bottom: 0.75rem; }

.matches-row-section { margin-bottom: 1.25rem; }

.matches-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.match-chip {
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--muted);
    padding: 0;
}

.match-chip-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: var(--border) center / cover no-repeat;
    margin-bottom: 0.25rem;
}

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-page-header .tab-title { margin-bottom: 0; }

.profile-photo-wrap { position: relative; flex-shrink: 0; }

.btn-add-photo { margin-top: 0.75rem; cursor: pointer; }

.highlights-row {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.highlight-card {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    font-size: 0.6875rem;
}

.highlight-cover {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--border) center / cover no-repeat;
    margin: 0 auto 0.25rem;
}

.btn-del-highlight {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 0.75rem;
    cursor: pointer;
}

.chat-attach-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--muted);
    flex-shrink: 0;
}

.chat-attach-btn:hover { border-color: var(--orange); color: var(--orange); }

.btn-danger { color: #dc2626; border-color: #dc2626; }
.btn-danger:hover { background: #fef2f2; }

button.drawer-user-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mobile-only { display: flex; }
    .app-sidebar { display: none; }
    .app-layout { border: none; max-width: none; }
    .app-main {
        padding: 1rem 0.375rem calc(var(--bottomnav-h) + 0.75rem);
    }
    .panel { width: 100%; border-left: none; }
    .field-row { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-split-main { padding: 1rem 0.85rem 2rem; }
    .auth-card { padding: 1.35rem 1.1rem; }
    .phone-intl-wrap .iti__tel-input,
    .phone-intl-wrap .phone-intl { font-size: 16px; }
}

@media (min-width: 769px) {
    .app-topbar .topbar-logo { display: none; }
}

/* ── Auth : mode sombre ── */
.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .auth-body,
[data-theme="dark"] .auth-split-main {
    background: #0a0a0a;
    color: #f5f5f5;
}

[data-theme="dark"] .auth-card {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .field-input,
[data-theme="dark"] .phone-intl-wrap {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .phone-intl-wrap .iti__selected-country {
    background: var(--bg);
    border-color: var(--border);
}

[data-theme="dark"] .phone-intl-wrap .iti__tel-input {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f5 !important;
}

[data-theme="dark"] .field-label,
[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-switch {
    color: #e5e5e5;
}

[data-theme="dark"] .auth-sub,
[data-theme="dark"] .auth-legal {
    color: #a3a3a3;
}

[data-theme="dark"] .dev-hint {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

[data-theme="dark"] .dial-select {
    background: #1a1a1a;
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.12);
}
