/* ============================================================
   JinnChat — Main Stylesheet
   Dark Ghost Theme | Glassmorphism | Neon Glow
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg: #06060f;
    --bg2: #0d0d1a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-h: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-h: rgba(168, 85, 247, 0.4);

    --purple: #a855f7;
    --purple-d: #7c3aed;
    --purple-g: linear-gradient(135deg, #a855f7, #ec4899);
    --pink: #ec4899;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;

    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #475569;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', sans-serif;
    --nav-height: 64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--pink);
}

/* ── Particle canvas ────────────────────────────────────────── */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 3px;
}

/* ── Glass card ─────────────────────────────────────────────── */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ── Navigation ─────────────────────────────────────────────── */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    min-height: var(--nav-height);
    background: rgba(6, 6, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
}

.ghost-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.brand-name {
    background: var(--purple-g);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.user-menu-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.user-menu-caret {
    font-size: 0.76rem;
    color: var(--text-dim);
    transition: transform .2s ease;
}

.user-menu.open .user-menu-caret {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 190px;
    background: rgba(10, 10, 20, 0.96);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 120;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.86rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.user-menu-item:hover {
    background: rgba(168, 85, 247, 0.12);
    color: var(--text);
}

.user-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
}

.avatar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.star-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.55);
    color: #fef3c7;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.premium-chip i {
    font-size: 0.7rem;
    color: #facc15;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-ghost-sm {
    padding: 7px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all .2s;
}

.btn-ghost-sm:hover {
    border-color: var(--purple);
    color: var(--text);
}

.btn-primary-sm {
    padding: 7px 16px;
    background: var(--purple-g);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.btn-primary-sm:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ghost-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius);
    color: var(--purple);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
}

.btn-ghost-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: var(--glow-purple);
}

.register-perk {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: .01em;
}

.register-perk i {
    color: var(--amber);
    font-size: 0.72rem;
}

.register-perk strong {
    color: var(--purple);
    font-weight: 600;
}

.btn-start-chat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--purple-g);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), var(--shadow);
}

.btn-start-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.6), var(--shadow);
    color: #fff;
}

.btn-horror-vibe {
    margin-top: 10px;
    background: linear-gradient(135deg, #050506, #15151b);
    border: 1px solid #2c121a;
    color: #f7f2f2;
    letter-spacing: 0.03em;
    text-shadow: 0 0 10px rgba(255, 45, 85, 0.35);
    box-shadow: 0 0 18px rgba(255, 45, 85, 0.35), 0 0 45px rgba(0, 0, 0, 0.8), var(--shadow);
}

.btn-horror-vibe i {
    color: #ff2d55;
}

.btn-horror-vibe:hover {
    background: linear-gradient(135deg, #0a0a10, #1b1b24);
    border-color: #5a1a28;
    box-shadow: 0 0 28px rgba(255, 45, 85, 0.6), 0 0 70px rgba(0, 0, 0, 0.85), var(--shadow);
    color: #fff;
}

.btn-android-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: none;
    border-radius: var(--radius);
    color: #052e1a;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 0 26px rgba(16, 185, 129, 0.35), var(--shadow);
}

.btn-android-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.55), var(--shadow);
    color: #052e1a;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Hero ───────────────────────────────────────────────────── */
.home-page {
    overflow-y: auto;
}

body.home-embed {
    --nav-height: 0px;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 26px) 20px 200px;
    text-align: center;
}

body.home-embed .hero {
    min-height: auto;
    padding: 24px 16px 120px;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc, #ec4899, #818cf8);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-purpose-card {
    max-width: 720px;
    margin: -16px auto 28px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px rgba(2, 8, 23, 0.35);
    text-align: left;
}

.hero-purpose-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #e9d5ff;
}

.hero-purpose-title i {
    color: #67e8f9;
}

.hero-purpose-copy {
    margin: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.64;
}

.hero-avatar-card {
    max-width: 560px;
    margin: -6px auto 28px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(2, 8, 23, 0.35);
}

.hero-avatar-media {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-avatar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-avatar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-avatar-title i {
    color: #86efac;
}

.hero-avatar-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: #ecfdf5;
    margin-bottom: 2px;
}

.hero-avatar-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.guest-trial-card {
    max-width: 560px;
    margin: -10px auto 24px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12));
    box-shadow: 0 16px 30px rgba(2, 8, 23, 0.35);
    text-align: left;
}

.guest-trial-card.is-empty {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(30, 41, 59, 0.7));
}

.guest-trial-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.guest-trial-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.guest-trial-title i {
    color: #38bdf8;
}

.guest-trial-card.is-empty .guest-trial-title i {
    color: #f87171;
}

.guest-trial-count {
    font-size: 0.84rem;
    color: var(--text-dim);
}

.guest-trial-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.guest-trial-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    transition: width 0.3s ease;
}

.guest-trial-card.is-empty .guest-trial-fill {
    background: linear-gradient(90deg, #f87171, #fbbf24);
}

.guest-trial-note {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.5;
}

.guest-trial-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #e0f2fe;
    text-decoration: none;
}

.guest-trial-cta:hover {
    color: #ffffff;
}

.gender-status-card {
    max-width: 640px;
    margin: -6px auto 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(236, 72, 153, 0.12));
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.35);
    text-align: left;
}

.gender-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.gender-status-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.gender-status-title i {
    color: #a5b4fc;
}

.gender-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.gender-status-chip.is-jinn {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.5);
}

.gender-status-chip.is-pori {
    background: rgba(236, 72, 153, 0.18);
    color: #fbcfe8;
    border-color: rgba(236, 72, 153, 0.45);
}

.gender-status-chip.is-unknown {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
}

.gender-status-message {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.gender-status-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-gender-request {
    font-size: 0.82rem;
    padding: 6px 12px;
}

.community-score-card {
    max-width: 640px;
    margin: -4px auto 26px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.35);
    text-align: left;
}

.community-score-card.is-positive {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(34, 197, 94, 0.12));
}

.community-score-card.is-warning {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(251, 191, 36, 0.12));
}

.community-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.community-score-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.community-score-title i {
    color: #38bdf8;
}

.community-score-net {
    font-size: 0.85rem;
    font-weight: 700;
    color: #bbf7d0;
    letter-spacing: 0.02em;
}

.community-score-card.is-warning .community-score-net {
    color: #fde68a;
}

.community-score-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.community-score-message {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.hero-avatar-actions {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.hero-avatar-link {
    color: #a7f3d0;
}

.hero-avatar-link:hover {
    color: #ffffff;
}

.hero-avatar-sep {
    color: rgba(255, 255, 255, 0.35);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.premium-spotlight {
    max-width: 560px;
    margin: -12px auto 22px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, 0.2), transparent 60%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.7));
    box-shadow: 0 16px 30px rgba(2, 8, 23, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    flex-wrap: wrap;
}

.premium-spotlight-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fef3c7;
}

.premium-spotlight-title i {
    color: #fbbf24;
}

.premium-spotlight-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.premium-spotlight-link {
    font-size: 0.82rem;
    color: #fde68a;
}

.premium-spotlight-link:hover {
    color: #ffffff;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.hero-legal-links {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero-legal-links a {
    color: #d8b4fe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-legal-links a:hover {
    color: #ffffff;
}

.hero-legal-links .sep {
    opacity: 0.55;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.chat-disabled-notice {
    padding: 14px 28px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: var(--red);
}

/* ── Home intro section ────────────────────────────────────── */
.home-intro {
    position: relative;
    z-index: 1;
    padding: 0 20px calc(56px + 80px + env(safe-area-inset-bottom, 0));
}

body.home-embed .home-intro {
    padding: 0 16px 32px;
}

.home-intro-inner {
    max-width: 860px;
    margin: 0 auto;
}

.home-intro-card {
    padding: 22px 26px;
    text-align: left;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.45);
}

.home-intro-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e9d5ff;
}

.home-intro-copy {
    margin: 0 0 12px;
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.7;
}

.home-intro-list {
    margin: 8px 0 0 18px;
    color: var(--text-dim);
    display: grid;
    gap: 8px;
}

.home-intro-list strong {
    color: #c7d2fe;
    font-weight: 600;
}

/* ── Ghost mascot (CSS art) ─────────────────────────────────── */
.floating-ghost {
    display: inline-block;
    position: relative;
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
}

.ghost-body {
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.ghost-eyes {
    display: flex;
    justify-content: space-around;
    padding: 22px 14px 0;
}

.ghost-eye {
    width: 14px;
    height: 14px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--purple);
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.ghost-mouth {
    width: 20px;
    height: 8px;
    border: 2px solid rgba(236, 72, 153, 0.7);
    border-radius: 0 0 10px 10px;
    border-top: none;
    margin: 6px auto 0;
}

.ghost-bottom {
    display: flex;
    justify-content: space-around;
    margin-top: -2px;
    width: 80px;
    margin: 0 auto;
}

.ghost-wave {
    width: 26px;
    height: 16px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), transparent);
    border-radius: 0 0 50% 50%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-top: none;
}

.ghost-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }
}

/* ── Live stats bar ─────────────────────────────────────────── */
.live-stats {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.83rem;
    color: var(--text-dim);
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item .stat-icon-jinn {
    color: var(--cyan);
}

.stat-item .stat-icon-pori {
    color: var(--pink);
}

.stat-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 6px var(--green);
    }

    50% {
        box-shadow: 0 0 14px var(--green);
    }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(6, 6, 15, 0.6);
    border-top: 1px solid var(--border);
}

.footer-sep {
    margin: 0 8px;
}

/* ── Static/Legal pages ────────────────────────────────────── */
.static-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 8% -12%, rgba(129, 140, 248, 0.16), transparent 58%),
        radial-gradient(900px 500px at 96% 6%, rgba(236, 72, 153, 0.14), transparent 58%),
        linear-gradient(180deg, rgba(6, 6, 15, 0.96), rgba(10, 12, 24, 0.98));
}

.legal-nav {
    background: rgba(7, 8, 18, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.static-main {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 34px) 18px 36px;
}

.static-wrap {
    border-radius: 18px;
    padding: 28px 30px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.static-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 2px 0 8px;
}

.static-subtitle {
    color: #a9b6d6;
    font-size: 0.92rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-section {
    padding: 16px 0;
}

.static-section+.static-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.static-section h2 {
    font-family: var(--font-head);
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    color: #f5f7ff;
}

.static-section p,
.static-section li {
    font-size: 0.95rem;
    line-height: 1.78;
    color: #c5d0e8;
}

.static-section ul {
    list-style: none;
    display: grid;
    gap: 7px;
    margin-top: 6px;
}

.static-section li {
    position: relative;
    padding-left: 20px;
}

.static-section li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
}

.static-page .site-footer {
    position: relative;
    background: transparent;
    border-top: 0;
    padding: 14px 12px 22px;
    color: #8fa0c7;
}

.static-page .footer-links a {
    color: #c5d0e8;
}

.static-page .footer-links a:hover {
    color: #ffffff;
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ghost-icon-sm {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.auth-card {
    width: 100%;
    padding: 36px 32px;
}

.auth-title {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--text-dim);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.auth-alert {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.auth-success {
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    color: #6ee7b7;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-group label i {
    margin-right: 4px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-eye-wrap {
    position: relative;
}

.input-eye-wrap .form-input {
    padding-right: 42px;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--purple);
    width: 16px;
    height: 16px;
}

.btn-auth {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 13px;
    background: var(--purple-g);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1.4;
}

.btn-auth:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.oauth-divider {
    position: relative;
    text-align: center;
    margin: 16px 0 12px;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--border);
}

.oauth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(14, 14, 22, 0.92);
}

.btn-google-auth {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.btn-google-auth:hover {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-google-auth i {
    color: #f87171;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-dim);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.auth-disabled-notice {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
}

/* ── CAPTCHA widget ─────────────────────────────────────────── */
.captcha-group {
    margin-bottom: 16px;
}

.captcha-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.captcha-img {
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: block;
    cursor: default;
    width: 160px;
    height: 52px;
}

.captcha-refresh {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 6px;
    color: var(--purple);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 0.9rem;
    line-height: 1;
    transition: background .2s;
}

.captcha-refresh:hover {
    background: rgba(168, 85, 247, 0.3);
}

/* ── Ban overlay ────────────────────────────────────────────── */
.ban-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 6, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ban-card {
    text-align: center;
    padding: 48px 40px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    max-width: 400px;
}

.ban-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ban-card h2 {
    color: var(--red);
    margin-bottom: 12px;
    font-family: var(--font-head);
}

.ban-card p {
    color: var(--text-dim);
    margin-bottom: 8px;
}

.ban-until {
    font-size: 0.9rem;
}

/* ── Utility ────────────────────────────────────────────────── */
.mt-2 {
    margin-top: 16px;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-muted {
    color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    :root {
        --nav-height: 88px;
    }

    .glass-nav {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .nav-brand {
        font-size: 1.05rem;
    }

    .brand-name {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 8px;
    }

    .btn-ghost-sm,
    .btn-primary-sm {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .user-menu-trigger {
        padding: 5px 10px;
        gap: 6px;
    }

    .premium-chip {
        padding: 2px 6px;
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }

    .static-main {
        padding: calc(var(--nav-height) + 26px) 12px 24px;
    }

    .static-wrap {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .static-section {
        padding: 14px 0;
    }

    .static-section p,
    .static-section li {
        font-size: 0.9rem;
        line-height: 1.72;
    }

    .hero {
        padding: calc(var(--nav-height) + 18px) 16px 150px;
    }

    .hero-purpose-card {
        margin: -12px auto 22px;
        padding: 12px 13px;
    }

    .hero-purpose-title {
        font-size: 0.84rem;
    }

    .hero-purpose-copy {
        font-size: 0.9rem;
    }

    .hero-avatar-card {
        margin: -6px auto 22px;
        padding: 12px 14px;
        flex-direction: column;
        text-align: center;
    }

    .hero-avatar-actions {
        justify-content: center;
    }

    .hero-legal-links {
        font-size: 0.82rem;
        gap: 6px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .live-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: fit-content;
        max-width: 100%;
        margin: 20px auto 0;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.75rem;
        padding: 8px 16px;
        gap: 10px;
    }

    .user-menu-name {
        max-width: 90px;
    }

    .user-menu-dropdown {
        right: -6px;
        min-width: 170px;
    }

    .auth-card {
        padding: 28px 20px;
    }
}

/* ── Theme toggle button ────────────────────────────────────── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s, transform .3s;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--purple);
    transform: rotate(20deg);
}

/* ── Light mode variables & overrides ───────────────────────── */
body.light-mode {
    --bg: #f3f4f8;
    --bg2: #e8eaf2;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-h: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.1);
    --border-h: rgba(168, 85, 247, 0.5);
    --text: #1e293b;
    --text-dim: #475569;
    --text-muted: #94a3b8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--bg);
    color: var(--text);
}

body.light-mode #particle-canvas {
    opacity: 0.25;
}

body.light-mode .glass-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .live-stats {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dim);
}

body.light-mode .site-footer {
    background: rgba(255, 255, 255, 0.75);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .static-page {
    background:
        radial-gradient(1200px 560px at 8% -12%, rgba(129, 140, 248, 0.14), transparent 58%),
        radial-gradient(960px 500px at 96% 6%, rgba(244, 114, 182, 0.13), transparent 58%),
        linear-gradient(180deg, #f7f8fe, #eef1fa);
}

body.light-mode .legal-nav {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .static-wrap {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
    border-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0 18px 34px rgba(18, 32, 60, 0.12);
}

body.light-mode .static-subtitle {
    color: #4c5e86;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .static-section+.static-section {
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .static-section h2 {
    color: #1f2c48;
}

body.light-mode .static-section p,
body.light-mode .static-section li {
    color: #425277;
}

body.light-mode .static-page .site-footer {
    color: #4e5f86;
    background: transparent;
    border-top: 0;
}

body.light-mode .static-page .footer-links a {
    color: #2c3f69;
}

body.light-mode .static-page .footer-links a:hover {
    color: #1f2c48;
}

body.light-mode .ban-overlay {
    background: rgba(243, 244, 248, 0.97);
}

body.light-mode .ban-card {
    background: rgba(239, 68, 68, 0.04);
}

body.light-mode .btn-ghost-sm {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-dim);
}

body.light-mode .user-badge {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .user-menu-trigger {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1f2c48;
}

body.light-mode .user-menu-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .premium-chip {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(245, 158, 11, 0.45);
    color: #92400e;
    box-shadow: none;
}

body.light-mode .user-menu-item {
    color: #30425f;
}

body.light-mode .feature-pill {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .hero-purpose-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

body.light-mode .hero-purpose-title {
    color: #4338ca;
}

body.light-mode .hero-purpose-title i {
    color: #0891b2;
}

body.light-mode .hero-purpose-copy {
    color: #334264;
}

body.light-mode .hero-avatar-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(99, 102, 241, 0.12));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

body.light-mode .hero-avatar-media {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .hero-avatar-title {
    color: #475569;
}

body.light-mode .hero-avatar-title i {
    color: #10b981;
}

body.light-mode .hero-avatar-name {
    color: #0f172a;
}

body.light-mode .hero-avatar-meta {
    color: #475569;
}

body.light-mode .gender-status-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .gender-status-title {
    color: #1f2c48;
}

body.light-mode .gender-status-title i {
    color: #6366f1;
}

body.light-mode .gender-status-message {
    color: #334155;
}

body.light-mode .gender-status-chip.is-jinn {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-mode .gender-status-chip.is-pori {
    background: rgba(236, 72, 153, 0.12);
    color: #be185d;
    border-color: rgba(236, 72, 153, 0.28);
}

body.light-mode .gender-status-chip.is-unknown {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.3);
}

body.light-mode .community-score-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .community-score-card.is-positive {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.1));
    border-color: rgba(14, 116, 144, 0.25);
}

body.light-mode .community-score-card.is-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(244, 63, 94, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

body.light-mode .community-score-title {
    color: #1f2c48;
}

body.light-mode .community-score-title i {
    color: #0ea5e9;
}

body.light-mode .community-score-net {
    color: #15803d;
}

body.light-mode .community-score-card.is-warning .community-score-net {
    color: #b45309;
}

body.light-mode .community-score-message {
    color: #334155;
}

body.light-mode .hero-avatar-link {
    color: #0f766e;
}

body.light-mode .hero-avatar-link:hover {
    color: #0f172a;
}

body.light-mode .hero-avatar-sep {
    color: rgba(15, 23, 42, 0.35);
}

body.light-mode .hero-legal-links {
    color: #5e6f97;
}

body.light-mode .premium-spotlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

body.light-mode .premium-spotlight-title {
    color: #7c2d12;
}

body.light-mode .premium-spotlight-meta {
    color: #6b7280;
}

body.light-mode .premium-spotlight-link {
    color: #b45309;
}

body.light-mode .guest-trial-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(14, 116, 144, 0.25);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

body.light-mode .guest-trial-card.is-empty {
    border-color: rgba(248, 113, 113, 0.35);
}

body.light-mode .guest-trial-title {
    color: #0f172a;
}

body.light-mode .guest-trial-count {
    color: #475569;
}

body.light-mode .guest-trial-bar {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.3);
}

body.light-mode .guest-trial-note {
    color: #334155;
}

body.light-mode .guest-trial-cta {
    color: #0369a1;
}

body.light-mode .hero-legal-links a {
    color: #4f46e5;
}

body.light-mode .hero-legal-links a:hover {
    color: #312e81;
}

body.light-mode .gender-gate-overlay {
    background: radial-gradient(circle at 18% 20%, rgba(139, 92, 246, 0.18), transparent 52%),
        radial-gradient(circle at 82% 82%, rgba(14, 165, 233, 0.18), transparent 56%),
        rgba(244, 246, 252, 0.9);
}

body.light-mode .gender-gate-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.14);
    color: #1f2c48;
}

body.light-mode .gender-gate-sub {
    color: #475569;
}

body.light-mode .gender-gate-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.14);
    color: #1f2c48;
}

body.light-mode .gender-gate-btn:hover {
    border-color: rgba(14, 116, 144, 0.5);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

body.light-mode .gender-gate-btn.is-selected {
    border-color: rgba(14, 116, 144, 0.75);
    box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.18);
}

body.light-mode .gender-gate-note {
    color: #b45309;
}

body.light-mode .gender-gate-feedback {
    color: #dc2626;
}

/* Auth pages in light mode */
body.light-mode .auth-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text);
}

body.light-mode .form-input:focus {
    border-color: var(--purple);
}

body.light-mode .form-input::placeholder {
    color: var(--text-muted);
}

body.light-mode .oauth-divider span {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .btn-google-auth {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1f2c48;
}

body.light-mode .btn-google-auth:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

/* ── Bottom Navigation Bar ───────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 56px;
    background: rgba(6, 6, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 2px;
    padding: 6px 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--font-body);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 1px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--purple);
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.bottom-nav-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(9px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    pointer-events: none;
}

.bottom-nav-sup {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(12px);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fde68a;
    pointer-events: none;
}

.bottom-nav-item.has-badge i {
    transform: translateX(-4px);
}

/* Adjust existing elements for bottom nav space */
.home-page .site-footer {
    bottom: 56px;
}

.home-page .live-stats {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 20px auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .bottom-nav-sup {
    color: #a16207;
}

/* ── Notifications Page ────────────────────────────────────── */
.notifications-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 90px 20px 88px;
}

.notifications-embed .notifications-main {
    min-height: auto;
    padding: 16px 14px 18px;
}

.notifications-container {
    max-width: 680px;
    margin: 0 auto;
}

.notifications-title {
    font-family: var(--font-head);
    font-size: 1.42rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-title i {
    color: var(--purple);
}

.notif-push-prompt {
    position: sticky;
    top: 76px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(99, 102, 241, 0.12));
}

.notif-push-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.93rem;
}

.notif-push-copy p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notif-push-prompt.is-success {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.16));
}

.notif-push-prompt.is-error {
    border-color: rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.14));
}

.notif-push-prompt.is-muted {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.58);
}

.notif-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.notif-unread-meta {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.notifications-list {
    display: grid;
    gap: 10px;
}

.notif-card {
    padding: 13px 14px;
}

.notif-card.is-unread {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 10px 22px rgba(168, 85, 247, 0.12);
}

.notif-card.is-read {
    opacity: 0.92;
}

.notif-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notif-card-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-family: var(--font-head);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-card-head h3 i {
    color: var(--purple);
}

.notif-pill {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid transparent;
}

.notif-pill.unread {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.38);
    color: #d8b4fe;
}

.notif-pill.read {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
}

.notif-desc {
    margin: 8px 0 10px;
    line-height: 1.5;
    color: var(--text-dim);
    font-size: 0.87rem;
    white-space: pre-wrap;
}

.notif-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notif-time {
    color: var(--text-muted);
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-open-link {
    text-decoration: none;
    font-size: 0.78rem;
    color: #a5b4fc;
    border-bottom: 1px dashed rgba(165, 180, 252, 0.45);
}

.notif-open-link:hover {
    color: #c7d2fe;
    border-bottom-color: rgba(199, 210, 254, 0.72);
}

body.light-mode .notif-push-prompt.is-muted {
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 700px) {
    .notif-push-prompt {
        top: 66px;
        align-items: flex-start;
        flex-direction: column;
    }

    .notif-unread-meta {
        margin-left: 0;
    }

    .notif-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ── History Page ────────────────────────────────────────────── */
.history-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 90px 20px 80px;
}

.history-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 18px 16px 22px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background:
        radial-gradient(900px 220px at 50% -18%, rgba(168, 85, 247, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(10, 12, 24, 0.74), rgba(8, 10, 20, 0.9));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.history-retention-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.history-retention-note i {
    color: #fbbf24;
    margin-top: 2px;
}

body.history-embed .history-main {
    min-height: auto;
    padding: 16px 14px 22px;
}

body.history-embed .history-container {
    max-width: 100%;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    padding: 10px 8px 14px;
    background: transparent;
}

body.history-embed .history-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

body.history-embed .history-guest-notice {
    padding: 14px 16px;
    margin-bottom: 14px;
}

@media (max-width: 820px) {
    .history-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .history-container {
        width: 100%;
        max-width: 100%;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        padding: 12px 8px 14px;
        background: transparent;
    }
}

.history-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-title i {
    color: var(--purple);
}

.history-guest-notice {
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.history-guest-notice i.fa-lock {
    font-size: 1.6rem;
    color: var(--purple);
    margin-bottom: 8px;
    display: block;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
}

.history-card:hover {
    border-color: var(--purple);
    transform: translateY(-1px);
}

.history-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple);
    font-size: 1rem;
    flex-shrink: 0;
}

.history-card-body {
    flex: 1;
    min-width: 0;
}

.history-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.history-card-top strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.history-badge.one-on-one {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple);
}

.history-badge.group {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.history-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.history-card-meta i {
    margin-right: 3px;
}

.history-card-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.history-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.history-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.45);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.history-delete-btn:hover {
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(248, 113, 113, 0.15);
    transform: translateY(-1px);
}

.history-delete-btn:active {
    transform: translateY(0);
}

body.light-mode .history-delete-btn {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.45);
    color: #6b7280;
}

body.light-mode .history-delete-btn:hover {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.45);
    background: rgba(248, 113, 113, 0.18);
}

.history-loading,
.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.history-empty i.fa-ghost {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: var(--purple);
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.page-info {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* History message viewer modal */
.history-modal-card {
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.history-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.history-modal-head .v2-game-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
}

.history-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hist-msg {
    max-width: 80%;
}

.hist-msg.mine {
    align-self: flex-end;
}

.hist-msg.theirs {
    align-self: flex-start;
}

.hist-msg.system {
    align-self: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hist-msg-name {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.hist-msg-bubble {
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.hist-msg-bubble.hist-voice {
    padding: 6px 10px;
}

.hist-msg-bubble audio {
    display: block;
    width: 240px;
    max-width: 100%;
}

.hist-msg.mine .hist-msg-bubble {
    background: var(--purple-g);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.hist-msg.theirs .hist-msg-bubble {
    background: var(--surface-h);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.hist-msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hist-msg.mine .hist-msg-time {
    text-align: right;
}

.hist-sticker img {
    border-radius: 8px;
}

/* ── History fullscreen overlay ─────────────────────────────── */
.history-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.history-overlay.is-open {
    transform: translateY(0);
}

body.history-open {
    overflow: hidden;
}

.history-overlay-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: rgba(6, 6, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.hist-drag-handle {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.history-overlay-title {
    flex: 1;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-overlay-title i {
    color: var(--purple);
}

.overlay-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.overlay-reload-btn {
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
}

.overlay-reload-btn:hover {
    color: var(--text);
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(168, 85, 247, 0.12);
}

.history-overlay-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    transition: color .2s;
    flex-shrink: 0;
}

.history-overlay-close:hover {
    color: var(--text);
}

.history-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.more-overlay {
    position: fixed;
    inset: 0;
    z-index: 620;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.more-overlay.is-open {
    transform: translateY(0);
}

.more-overlay-body {
    flex: 1;
    min-height: 0;
    position: relative;
}

.more-overlay-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.overlay-frame-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 15, 0.7);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.overlay-frame-loader.is-active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-frame-loader-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.history-guest-banner {
    text-align: center;
    padding: 16px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius);
    color: var(--text-dim);
}

.history-guest-banner i.fa-lock {
    display: block;
    font-size: 1.4rem;
    color: var(--purple);
    margin-bottom: 8px;
}

/* Message sub-panel slides in from the right */
.history-msg-panel {
    position: absolute;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 10;
}

.history-msg-panel.is-open {
    transform: translateX(0);
}

body.light-mode .history-overlay,
body.light-mode .history-msg-panel,
body.light-mode .more-overlay {
    background: #f3f4f8;
}

body.light-mode .history-overlay-head {
    background: rgba(243, 244, 248, 0.9);
}

body.light-mode .overlay-reload-btn {
    border-color: rgba(148, 163, 184, 0.5);
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .overlay-reload-btn:hover {
    color: #0f172a;
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
}

body.light-mode .overlay-frame-loader {
    background: rgba(241, 245, 249, 0.82);
}

body.light-mode .overlay-frame-loader-card {
    background: rgba(255, 255, 255, 0.96);
    color: #1f2c48;
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .history-guest-banner {
    background: rgba(168, 85, 247, 0.06);
}

.gender-choice-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.gender-choice-pill {
    display: block;
    cursor: pointer;
}

.gender-choice-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-choice-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gender-choice-pill input:checked+span {
    border-color: rgba(124, 255, 225, 0.72);
    box-shadow: 0 0 0 2px rgba(124, 255, 225, 0.2) inset, 0 8px 22px rgba(7, 28, 34, 0.35);
    background: linear-gradient(135deg, rgba(124, 255, 225, 0.15), rgba(61, 99, 247, 0.16));
}

.ghost-avatar-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(7, 12, 24, 0.34);
}

.ghost-avatar-icon svg {
    width: 100%;
    height: 100%;
}

.ghost-avatar-icon .ghost-body {
    fill: currentColor;
}

.ghost-avatar-icon .ghost-eye {
    fill: #fff;
}

.ghost-avatar-icon .ghost-mouth,
.ghost-avatar-icon .ghost-brow {
    stroke: #fff;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
}

.ghost-avatar-icon .ghost-blush {
    fill: rgba(255, 168, 193, 0.9);
}

.ghost-avatar-icon .ghost-bow {
    fill: #ffd9ec;
}

.ghost-avatar-icon .ghost-bow-knot {
    fill: #ffffff;
}

.ghost-avatar-icon.is-jinn {
    color: #58b2ff;
    background: radial-gradient(circle at 28% 24%, rgba(128, 205, 255, 0.32), rgba(10, 35, 78, 0.9));
}

.ghost-avatar-icon.is-pori {
    color: #ff7ec3;
    background: radial-gradient(circle at 28% 24%, rgba(255, 173, 216, 0.34), rgba(82, 19, 73, 0.92));
}

.ghost-avatar-icon.is-any {
    color: #8be7d3;
    background: radial-gradient(circle at 28% 24%, rgba(186, 255, 242, 0.36), rgba(18, 68, 88, 0.92));
}

.gender-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: radial-gradient(circle at 18% 20%, rgba(90, 24, 154, 0.34), transparent 52%),
        radial-gradient(circle at 82% 82%, rgba(15, 127, 182, 0.34), transparent 56%),
        rgba(3, 6, 16, 0.84);
    backdrop-filter: blur(7px);
}

.gender-gate-card {
    width: min(520px, 100%);
    max-height: min(520px, calc(100vh - 2rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 1.5rem 1.15rem;
}

.gender-gate-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.gender-gate-sub {
    margin: 0.35rem auto 1rem;
    opacity: 0.9;
    max-width: 36ch;
}

.gender-gate-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.gender-gate-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0.95rem 0.9rem;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.gender-gate-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 255, 225, 0.64);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.gender-gate-btn.is-selected {
    border-color: rgba(124, 255, 225, 0.88);
    box-shadow: 0 0 0 2px rgba(124, 255, 225, 0.2);
}

.gender-gate-btn.is-loading {
    opacity: 0.75;
}

.gender-gate-note {
    margin: 1rem 0 0;
    color: #ffd47e;
    font-size: 0.92rem;
}

.gender-gate-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gender-gate-feedback {
    margin-top: 0.6rem;
    color: #ff8e8e;
    font-size: 0.95rem;
}

@media (max-width: 600px) {

    .gender-choice-wrap,
    .gender-gate-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gender-gate-options.age-range-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gender-gate-card {
        padding: 1rem 0.9rem;
        max-height: calc(100vh - 1.5rem);
    }

    .gender-gate-icon {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .gender-gate-sub {
        margin-bottom: 0.7rem;
        font-size: 0.88rem;
    }

    .gender-gate-options {
        gap: 0.55rem;
    }

    .gender-gate-btn {
        padding: 0.7rem 0.6rem;
        font-size: 0.86rem;
        letter-spacing: 0.1px;
    }

    .gender-gate-note {
        font-size: 0.82rem;
    }

    .gender-gate-actions {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
}

@media (max-height: 700px) {
    .gender-gate-overlay {
        align-items: flex-start;
        padding-top: 0.75rem;
    }
}

@media (max-height: 760px) {
    .hero {
        justify-content: flex-start;
        padding-top: calc(var(--nav-height) + 34px);
        padding-bottom: 112px;
    }

    .floating-ghost {
        margin-top: 8px;
        margin-bottom: 12px;
        animation: float-compact 4s ease-in-out infinite;
    }

    .live-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@keyframes float-compact {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}