/* Shared design tokens — match login (index.html) */
:root {
    --blue: #0091ff;
    --blue-hover: #007adb;
    --blue-dim: rgba(0, 145, 255, 0.12);
    --bg: #ffffff;
    --ink: #050505;
    --stage: #0a0a0a;
    --text-main: #0a0a0a;
    --text-muted: #71717a;
    --border: #f4f4f5;
    --border-dark: #e4e4e7;
    --input-fill: #f4f4f5;
    --panel-wash: linear-gradient(180deg, rgba(0, 145, 255, 0.06) 0%, transparent 28%);
    --blue-gradient: linear-gradient(135deg, #0091ff 0%, #3b82f6 48%, #0ea5e9 100%);
    --blue-gradient-shine:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.35), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.22), transparent 40%),
        linear-gradient(135deg, #0091ff 0%, #3b82f6 48%, #0ea5e9 100%);
}

/* Fanderly wordmark — shared navbar / header branding */
.logo,
.dash-logo,
.navbar-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main, #0a0a0a);
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background: var(--blue-gradient-shine);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.logo-wordmark {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.045em;
    line-height: 1;
    color: inherit;
}

.logo--on-dark {
    color: #fff;
}

.logo--on-dark .logo-mark {
    background: var(--blue-gradient-shine);
    color: #fff;
}

.feed-top-bar .logo-wordmark {
    font-size: 1.45rem;
    letter-spacing: -0.05em;
}

.stage-brand .logo-wordmark {
    font-size: 1.45rem;
    letter-spacing: -0.055em;
}

.features-brand .logo-wordmark {
    font-size: 1.35rem;
}

.dash-logo {
    padding: 0 0.5rem 1.75rem;
}

.dash-mobile-bar .dash-logo {
    padding: 0;
}

.aura-lang-wrap,
.lang-menu-wrap {
    position: relative;
    display: inline-flex;
}

.aura-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Shared popover surface used by account, language, and chat menus */
.aura-menu,
.aura-lang-menu,
.user-menu,
#conversation-menu-dropdown.post-dropdown {
    --aura-menu-radius: 18px;
    --aura-menu-item-radius: 10px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--aura-menu-radius);
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main, #0a0a0a);
    -webkit-font-smoothing: antialiased;
}

.aura-menu,
.aura-lang-menu,
#conversation-menu-dropdown.post-dropdown {
    background:
        linear-gradient(180deg, rgba(0, 145, 255, 0.055) 0%, transparent 42%),
        #ffffff;
    border: 1px solid var(--border-dark, #e4e4e7);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

.aura-lang-menu {
    position: fixed;
    min-width: 196px;
    max-height: min(70vh, 340px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 400;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d8 transparent;
}

.aura-lang-menu:not([hidden]) {
    animation: aura-menu-in 0.14s ease;
}

.aura-lang-menu[hidden] {
    display: none;
}

@keyframes aura-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.aura-lang-item,
.aura-menu-item,
.user-menu-item,
#conversation-menu-dropdown .post-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--aura-menu-item-radius, 10px);
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #3f3f46;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.aura-lang-item:hover,
.aura-menu-item:hover,
.user-menu-item:hover,
#conversation-menu-dropdown .post-dropdown-item:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main, #0a0a0a);
}

.aura-lang-item:focus-visible,
.aura-menu-item:focus-visible,
.user-menu-item:focus-visible,
#conversation-menu-dropdown .post-dropdown-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--blue-dim, rgba(0, 145, 255, 0.12));
}

.aura-lang-item.is-active {
    background: var(--blue-dim, rgba(0, 145, 255, 0.12));
    color: var(--blue, #0091ff);
    font-weight: 600;
}

.aura-lang-item i,
.aura-menu-item i,
.user-menu-item i,
#conversation-menu-dropdown .post-dropdown-item i {
    width: 18px;
    color: #52525b;
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.aura-lang-item:hover i,
.user-menu-item:hover i,
#conversation-menu-dropdown .post-dropdown-item:hover:not(:disabled) i {
    color: var(--text-main, #0a0a0a);
}

#conversation-menu-dropdown .post-dropdown-item--danger,
#conversation-menu-dropdown .post-dropdown-item--danger i,
.user-menu-item--danger,
.user-menu-item--danger i {
    color: var(--red, #ef4444);
}

#conversation-menu-dropdown .post-dropdown-item--danger:hover:not(:disabled),
.user-menu-item--danger:hover {
    background: #fef2f2;
}

#conversation-menu-dropdown .post-dropdown-item--danger:hover:not(:disabled) i,
.user-menu-item--danger:hover i {
    color: var(--red, #ef4444);
}

#conversation-menu-dropdown .post-dropdown-divider {
    height: 1px;
    background: var(--border, #f4f4f5);
    margin: 5px 8px;
}

.lang-flag {
    display: inline-block;
    width: 1.25em;
    text-align: center;
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}

.settings-lang-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-lang-list .aura-lang-item {
    border: 1px solid var(--border-dark, #e4e4e7);
    background: #fff;
}

.settings-lang-list .aura-lang-item:hover {
    background: var(--input-fill, #f4f4f5);
}

.settings-lang-list .aura-lang-item.is-active {
    border-color: rgba(0, 145, 255, 0.28);
    background: var(--blue-dim, rgba(0, 145, 255, 0.12));
}

@media (max-width: 900px) {
    .stage-brand .logo-wordmark {
        font-size: 1.2rem;
    }

    .stage-brand .logo-mark {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

/* ── Adult content gate ── */
.adult-gate {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse 70% 50% at 18% 85%, rgba(0, 145, 255, 0.22), transparent 60%),
        rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.adult-gate.is-visible {
    opacity: 1;
}

.adult-gate.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.adult-gate-card {
    width: min(420px, 100%);
    padding: 1.75rem 1.5rem 1.4rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(0, 145, 255, 0.06) 0%, transparent 42%),
        #ffffff;
    border: 1px solid var(--border-dark, #e4e4e7);
    box-shadow:
        0 24px 64px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main, #0a0a0a);
    text-align: center;
    -webkit-font-smoothing: antialiased;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}

.adult-gate.is-visible .adult-gate-card {
    transform: translateY(0) scale(1);
}

.adult-gate-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.1rem;
    color: var(--text-main, #0a0a0a);
}

.adult-gate-brand .logo-mark {
    width: 34px;
    height: 34px;
    background: var(--blue-gradient-shine);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.adult-gate-brand .logo-wordmark {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.045em;
    line-height: 1;
}

.adult-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.65rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--blue-dim, rgba(0, 145, 255, 0.12));
    color: var(--blue, #0091ff);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.adult-gate-title {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.adult-gate-text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted, #71717a);
}

.adult-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adult-gate-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    border-radius: 999px;
    padding: 13px 18px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

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

.adult-gate-btn--primary {
    background: var(--blue, #0091ff);
    color: #fff;
}

.adult-gate-btn--primary:hover {
    background: var(--blue-hover, #007adb);
}

.adult-gate-btn--ghost {
    background: #fff;
    color: var(--text-main, #0a0a0a);
    border: 1.5px solid var(--ink, #050505);
}

.adult-gate-btn--ghost:hover {
    background: #fafafa;
}

.adult-gate-legal {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-muted, #71717a);
}

.adult-gate-legal a {
    color: var(--text-main, #0a0a0a);
    font-weight: 600;
    text-decoration: none;
}

.adult-gate-legal a:hover {
    color: var(--blue, #0091ff);
    text-decoration: underline;
}

/* ── Cookie consent banner ── */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner.is-leaving {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(0, 145, 255, 0.06) 0%, transparent 42%),
        #ffffff;
    border: 1px solid var(--border-dark, #e4e4e7);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main, #0a0a0a);
    -webkit-font-smoothing: antialiased;
}

.cookie-banner-copy {
    min-width: 0;
    flex: 1;
}

.cookie-banner-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted, #71717a);
}

.cookie-banner-text a {
    color: var(--text-main, #0a0a0a);
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    color: var(--blue, #0091ff);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    border-radius: 999px;
    padding: 10px 16px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

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

.cookie-banner-btn--ghost {
    background: #fff;
    color: var(--text-main, #0a0a0a);
    border: 1.5px solid var(--ink, #050505);
}

.cookie-banner-btn--ghost:hover {
    background: #fafafa;
}

.cookie-banner-btn--primary {
    background: var(--blue, #0091ff);
    color: #fff;
}

.cookie-banner-btn--primary:hover {
    background: var(--blue-hover, #007adb);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 16px;
        gap: 0.9rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-btn {
        flex: 1;
        justify-content: center;
        display: inline-flex;
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adult-gate,
    .adult-gate-card,
    .cookie-banner {
        transition: none;
    }
}
