/* ============================================
   KlaraAI · 18+ ERP Discord Bot
   Modern redesign — glassmorphism + gradients
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,500;1,700&display=swap');

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

:root {
    /* Brand */
    --brand: #ec4899;
    --brand-2: #a855f7;
    --brand-3: #6366f1;
    --accent-hot: #f43f5e;
    --accent-gold: #fbbf24;

    /* Surfaces (dark) */
    --bg-0: #0a0612;
    --bg-1: #120822;
    --bg-2: #1a0d2e;
    --bg-3: #221038;

    /* Text */
    --text: #f5f3ff;
    --text-muted: #a8a3bd;
    --text-faint: #6b6783;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-strong: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-strong: rgba(255, 255, 255, 0.14);

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Effects */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 8px 40px rgba(236, 72, 153, 0.35);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Layout */
    --nav-height: 72px;
    --container: 1200px;

    /* Compatibility (legacy variables some inline styles still reference) */
    --primary: var(--brand);
    --primary-dark: #be185d;
    --secondary: var(--accent-hot);
    --dark: var(--bg-0);
    --darker: var(--bg-1);
    --darkest: var(--bg-2);
    --light: var(--accent-hot);
    --card-bg: var(--glass-bg);
    --card-border: var(--glass-border);
    --bg-body: var(--bg-0);
    --bg-nav: rgba(10, 6, 18, 0.72);
    --bg-card: var(--glass-bg);
    --bg-section-alt: var(--bg-1);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Light theme overrides */
[data-theme="light"] {
    --bg-0: #fafafe;
    --bg-1: #ffffff;
    --bg-2: #f4f1fb;
    --bg-3: #ece6f6;
    --text: #1a1530;
    --text-muted: #5e5a7a;
    --text-faint: #9590ad;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(26, 21, 48, 0.08);
    --glass-border-strong: rgba(26, 21, 48, 0.14);
    --bg-nav: rgba(255, 255, 255, 0.78);
    --shadow-color: rgba(120, 80, 200, 0.12);
    --bg-body: var(--bg-0);
    --darker: var(--bg-1);
    --bg-section-alt: var(--bg-1);
    --bg-card: var(--bg-1);
    --card-bg: var(--bg-1);
    --card-border: var(--glass-border);
}

/* ============================================
   Base
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(at 12% 8%, rgba(236, 72, 153, 0.18) 0px, transparent 50%),
        radial-gradient(at 88% 12%, rgba(168, 85, 247, 0.15) 0px, transparent 45%),
        radial-gradient(at 78% 92%, rgba(99, 102, 241, 0.13) 0px, transparent 50%),
        radial-gradient(at 18% 88%, rgba(244, 63, 94, 0.12) 0px, transparent 45%);
    pointer-events: none;
}

[data-theme="light"] body::before {
    background:
        radial-gradient(at 12% 8%, rgba(236, 72, 153, 0.10) 0px, transparent 50%),
        radial-gradient(at 88% 12%, rgba(168, 85, 247, 0.08) 0px, transparent 45%),
        radial-gradient(at 78% 92%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
        radial-gradient(at 18% 88%, rgba(244, 63, 94, 0.06) 0px, transparent 45%);
}

::selection {
    background: var(--brand);
    color: white;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand), var(--brand-2));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============================================
   Age Verification Modal
   ============================================ */
#age-verify {
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#age-verify.hidden { display: none; }

.age-modal {
    background: linear-gradient(145deg, var(--bg-2), var(--bg-1));
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 480px;
    border: 1px solid var(--glass-border-strong);
    box-shadow: var(--shadow-glow), 0 0 80px rgba(168, 85, 247, 0.2);
    animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-modal h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand), var(--accent-hot));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.age-modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.age-modal .btn-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: box-shadow 0.3s, background 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-left { display: flex; align-items: center; gap: 2.5rem; }
.nav-right { display: flex; align-items: center; gap: 0.85rem; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(236, 72, 153, 0.12);
}

.nav-links a.active {
    color: var(--text);
    background: rgba(236, 72, 153, 0.18);
}

.nav-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45);
}

/* ============================================
   User Dashboard (logged-in panel)
   ============================================ */
.user-dashboard {
    padding: calc(var(--nav-height) + 1.5rem) 1.25rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.dash-card {
    background: linear-gradient(135deg, #1f1340 0%, #18102e 100%);
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.15);
    position: relative;
}

[data-theme="light"] .dash-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
    border-color: rgba(236, 72, 153, 0.3);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(236, 72, 153, 0.55);
    background: var(--bg-2);
    flex-shrink: 0;
}

.dash-greeting {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dash-hello {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.dash-greeting strong {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dash-spacer { flex: 1; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dash-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

[data-theme="light"] .dash-stat {
    background: rgba(26, 21, 48, 0.04);
    border-color: rgba(26, 21, 48, 0.08);
}

.dash-stat-primary {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(168, 85, 247, 0.12));
    border-color: rgba(236, 72, 153, 0.45);
}

[data-theme="light"] .dash-stat-primary {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.08));
}

.dash-stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.dash-stat-value {
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dash-stat-primary .dash-stat-value {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dash-stat-sub {
    color: var(--text-faint);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.dash-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dash-history {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.85rem;
}

.dash-history summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}

.dash-history summary::-webkit-details-marker { display: none; }

.dash-history summary::before {
    content: "▸ ";
    color: var(--brand);
    margin-right: 0.3rem;
    transition: transform 0.2s;
    display: inline-block;
}

.dash-history[open] summary::before {
    transform: rotate(90deg);
}

.dash-history summary:hover { color: var(--text); }

.dash-history-list {
    list-style: none;
    padding: 0.65rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-history-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.85rem;
}

.dash-history-list li .h-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-history-list li .h-amount.up { color: #34d399; }
.dash-history-list li .h-amount.down { color: #fbbf24; }

.dash-history-list li .h-label {
    color: var(--text-muted);
    flex: 1;
    margin-left: 0.6rem;
    font-size: 0.82rem;
}

.dash-history-list li .h-date {
    color: var(--text-faint);
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .dash-stats { grid-template-columns: 1fr; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Live activity counter */
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 100px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
    animation: livePulse 1.6s ease-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.live-count {
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
    transition: color 0.4s;
}

.live-count.bump-up { color: #34d399; }
.live-count.bump-down { color: #fbbf24; }

.live-label {
    color: var(--text-muted);
}

.live-delta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(-4px);
}

.live-delta.show {
    opacity: 1;
    transform: translateX(0);
}

.live-delta.up { color: #34d399; }
.live-delta.down { color: #fbbf24; }

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text) 20%, var(--brand) 55%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-tip {
    margin-top: 1.75rem;
    color: var(--text-faint);
    font-size: 0.88rem;
}

.hero-tip strong {
    color: var(--text-muted);
}

.hero-tip code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.85em;
    color: var(--brand);
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme="light"] .hero-tip code {
    background: rgba(26, 21, 48, 0.05);
    border-color: rgba(26, 21, 48, 0.08);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.5);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(36, 24, 56, 0.65);
    color: var(--text);
    border: 1px solid var(--glass-border-strong);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(26, 21, 48, 0.15);
}

.btn-secondary:hover {
    background: rgba(236, 72, 153, 0.18);
    border-color: var(--brand);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.18);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(236, 72, 153, 0.12);
    color: var(--brand);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover { background: #059669; transform: translateY(-2px); }

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5);
}

.btn-lg {
    padding: 1.05rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, var(--text) 30%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.05rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Feature cards
   ============================================ */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.feature-card {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

[data-theme="light"] .feature-card {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: 14px;
    border: 1px solid var(--glass-border-strong);
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ============================================
   Character Gallery
   ============================================ */
.characters {
    background: transparent;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.char-card {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .char-card {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.char-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.22);
}

/* Per-character accent border (top) */
.char-lilith { border-top: 3px solid #a855f7; }
.char-isabelle { border-top: 3px solid #ec4899; }
.char-chloe { border-top: 3px solid #f97316; }

.char-portrait {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    border: 1px solid var(--glass-border-strong);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.char-lilith .char-portrait {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.1));
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.25);
}

.char-isabelle .char-portrait {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(244, 63, 94, 0.1));
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.25);
}

.char-chloe .char-portrait {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(251, 191, 36, 0.1));
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.25);
}

[data-theme="light"] .char-portrait {
    background: rgba(26, 21, 48, 0.04);
}

.char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.char-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

[data-theme="light"] .char-tag {
    background: rgba(26, 21, 48, 0.05);
    border-color: rgba(26, 21, 48, 0.1);
    color: var(--text-muted);
}

.char-tag-hot {
    background: rgba(236, 72, 153, 0.12);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.35);
}

[data-theme="light"] .char-tag-hot {
    background: rgba(236, 72, 153, 0.1);
    color: var(--brand);
    border-color: rgba(236, 72, 153, 0.3);
}

.char-card h3 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.char-bio {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.char-quote {
    margin: 0;
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--brand);
    border-radius: 0 12px 12px 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
    font-style: italic;
}

[data-theme="light"] .char-quote {
    background: rgba(26, 21, 48, 0.04);
}

.quote-action {
    display: block;
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 500;
    margin: 0.2rem 0;
}

.char-cta {
    align-self: flex-start;
    margin-top: auto;
}

.characters-footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2.5rem;
    font-size: 0.95rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.characters-footer strong {
    color: var(--text);
    font-weight: 700;
}

/* ============================================
   Rewards (streak + referral)
   ============================================ */
.rewards {
    background: transparent;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.reward-card {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

[data-theme="light"] .reward-card {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.reward-streak {
    border-top: 3px solid #f97316;
}

.reward-referral {
    border-top: 3px solid var(--brand);
}

.reward-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.22);
}

.reward-streak:hover {
    border-color: #f97316;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.22);
}

.reward-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border-strong);
    border-radius: 18px;
    margin-bottom: 1.25rem;
    position: relative;
}

[data-theme="light"] .reward-icon {
    background: rgba(26, 21, 48, 0.06);
    border-color: rgba(26, 21, 48, 0.1);
}

.reward-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    position: relative;
}

.reward-card > p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    position: relative;
}

.reward-card code {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    color: var(--brand);
}

.reward-fineprint {
    color: var(--text-faint);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.reward-fineprint strong {
    color: var(--text-muted);
    font-weight: 600;
}

/* Streak milestones row */
.reward-milestones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    position: relative;
}

.milestone {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border-strong);
    border-radius: 14px;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

[data-theme="light"] .milestone {
    background: rgba(26, 21, 48, 0.04);
    border-color: rgba(26, 21, 48, 0.1);
}

.milestone:hover {
    transform: translateY(-2px);
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.milestone .day {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.milestone .prize {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.milestone-big {
    border-color: #f97316;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.25);
}

.milestone-big .prize {
    font-size: 1.4rem;
}

/* Referral 3-step flow */
.reward-flow {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

[data-theme="light"] .flow-step {
    background: rgba(26, 21, 48, 0.04);
    border-color: rgba(26, 21, 48, 0.08);
}

.flow-step:hover {
    border-color: var(--brand);
    transform: translateX(2px);
    background: rgba(236, 72, 153, 0.08);
}

.flow-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

.flow-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.4;
}

.flow-text strong {
    color: var(--text);
    font-weight: 700;
    font-size: 0.94rem;
}

.flow-text span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.flow-text strong:last-child {
    color: var(--brand);
}

@media (max-width: 600px) {
    .reward-milestones { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FAQ accordion
   ============================================ */
.faq {
    background: transparent;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .faq-item {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.faq-item[open] {
    border-color: rgba(236, 72, 153, 0.45);
    background: rgba(36, 24, 56, 0.85);
}

[data-theme="light"] .faq-item[open] {
    background: #fdf7fb;
    border-color: rgba(236, 72, 153, 0.35);
}

.faq-item summary {
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: var(--brand);
}

.faq-answer {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.94rem;
}

.faq-answer code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 0.05rem 0.35rem;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--brand);
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme="light"] .faq-answer code {
    background: rgba(26, 21, 48, 0.05);
    border-color: rgba(26, 21, 48, 0.08);
}

.faq-answer a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 72, 153, 0.3);
}

.faq-answer strong {
    color: var(--text);
    font-weight: 700;
}

/* ============================================
   Legal pages (terms / privacy / legal)
   ============================================ */
.legal-page {
    padding: calc(var(--nav-height) + 4rem) 1.25rem 5rem;
    max-width: 820px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 30%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-page .legal-meta {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.5rem 0 0.85rem;
    letter-spacing: -0.015em;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.6rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.96rem;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.45rem;
}

.legal-page a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 72, 153, 0.3);
    transition: border-color 0.2s;
}

.legal-page a:hover {
    border-bottom-color: var(--brand);
}

.legal-page strong {
    color: var(--text);
    font-weight: 600;
}

.legal-page .placeholder {
    background: rgba(245, 158, 11, 0.12);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    color: #fcd34d;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-size: 0.92em;
    font-weight: 600;
}

.legal-page .legal-note {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin: 2rem 0;
    color: var(--text);
    font-size: 0.92rem;
}

.legal-page .legal-note strong {
    color: #a5b4fc;
}

/* ============================================
   How it Works (steps)
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .step {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    color: white;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.step h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.step p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
    background: transparent;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.pricing-card {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .pricing-card {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.25);
}

.pricing-card.featured {
    border: 1.5px solid var(--brand);
    background: linear-gradient(180deg, #2a1450 0%, #18102e 60%);
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.18);
}

[data-theme="light"] .pricing-card.featured {
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 60%);
}

.pricing-card.featured::before {
    content: '⭐ MOST POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.5);
}

.pricing-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 2.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pricing-card .price small,
.pricing-card .price span:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card .credits {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.75rem;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    padding: 0.55rem 0;
    color: var(--text);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-faint);
    text-decoration: line-through;
    text-decoration-color: var(--text-faint);
}

.pricing-features li.disabled::before {
    content: '✕';
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
}

/* ============================================
   Shop (credit packs)
   ============================================ */
.shop {
    background: transparent;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.shop-card {
    background: #18102e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .shop-card {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.08);
}

.shop-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.22);
}

.shop-card h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.shop-card .shop-price {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.shop-card .shop-credits {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.shop-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem !important;
    flex: 1;
}

.shop-card .btn {
    margin-top: auto;
}

/* ============================================
   Discord Bot card
   ============================================ */
.bot-card {
    background: linear-gradient(145deg, #1f1340, #18102e);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

[data-theme="light"] .bot-card {
    background: linear-gradient(145deg, #ffffff, #f9f6ff);
    border-color: rgba(26, 21, 48, 0.1);
}

.bot-card h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
}

.bot-card p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    position: relative;
}

.bot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
}

.bot-feature {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    color: var(--text);
    transition: all 0.2s ease;
}

[data-theme="light"] .bot-feature {
    background: rgba(26, 21, 48, 0.04);
    border-color: rgba(26, 21, 48, 0.1);
}

.bot-feature:hover {
    border-color: var(--brand);
    background: rgba(236, 72, 153, 0.08);
    color: var(--brand);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-1);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: var(--container);
    margin: 0 auto 3rem;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s;
    font-size: 0.92rem;
}

.footer-section a:hover { color: var(--brand); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-faint);
    font-size: 0.85rem;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-warning {
    color: var(--accent-hot);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* ============================================
   Misc components
   ============================================ */
/* Language selector — styled like theme-toggle, without rotate-on-hover */
.lang-selector {
    height: 38px;
    background: rgba(36, 24, 56, 0.7);
    color: var(--text);
    border: 1px solid var(--glass-border-strong);
    border-radius: 10px;
    padding: 0 2rem 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a8a3bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 10px 7px;
}

[data-theme="light"] .lang-selector {
    background-color: #ffffff;
    border-color: rgba(26, 21, 48, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235e5a7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}

.lang-selector:hover {
    border-color: var(--brand);
    color: var(--brand);
}

[data-theme="light"] .lang-selector:hover {
    background-color: rgba(236, 72, 153, 0.06);
}

.lang-selector option {
    background: #18102e;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem;
}

[data-theme="light"] .lang-selector option {
    background: #ffffff;
    color: #1a1530;
}

.theme-toggle {
    background: rgba(36, 24, 56, 0.7);
    border: 1px solid var(--glass-border-strong);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s, transform 0.3s;
    color: var(--text);
}

[data-theme="light"] .theme-toggle {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.1);
}

.theme-toggle:hover {
    border-color: var(--brand);
    transform: rotate(20deg);
    background: rgba(236, 72, 153, 0.12);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(236, 72, 153, 0.08);
}

/* Container utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Alerts */
.alert {
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem auto;
    border: 1px solid var(--glass-border-strong);
    backdrop-filter: blur(10px);
    font-size: 0.92rem;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border-strong);
    background: var(--glass-bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-content {
    background: linear-gradient(145deg, var(--bg-2), var(--bg-1));
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    border: 1px solid var(--glass-border-strong);
    box-shadow: var(--shadow-md);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.modal-close {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--brand);
}

/* Credits info pill */
.credits-info {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.credits-info strong {
    color: var(--brand);
    font-weight: 700;
}

/* Commands modal grid */
.commands-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.command-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    transition: border-color 0.2s;
}

.command-item:hover { border-color: var(--brand); }

.command-item h4 {
    color: var(--brand);
    margin-bottom: 0.4rem;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 600;
}

.command-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Discord auth — logged out state (icon-style button) */
.discord-auth {
    display: flex;
    align-items: center;
}

.discord-auth #login-btn {
    height: 38px;
    padding: 0 0.95rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-family: inherit;
}

.discord-auth #login-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a8);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.45);
    transform: none;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Discord auth — logged in state (avatar pill) */
.discord-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 38px;
    background: rgba(36, 24, 56, 0.7);
    border: 1px solid var(--glass-border-strong);
    border-radius: 10px;
    padding: 0 0.5rem 0 0.3rem;
    transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .discord-user {
    background: #ffffff;
    border-color: rgba(26, 21, 48, 0.1);
}

.discord-user:hover {
    border-color: var(--brand);
}

[data-theme="light"] .discord-user:hover {
    background: rgba(236, 72, 153, 0.06);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(236, 72, 153, 0.55);
    flex-shrink: 0;
    background: var(--bg-2);
}

.user-name {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-faint);
    cursor: pointer;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

[data-theme="light"] .btn-logout {
    background: rgba(26, 21, 48, 0.05);
    border-color: rgba(26, 21, 48, 0.1);
}

.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

/* User credits banner */
.user-credits-bar {
    text-align: center;
    padding: calc(var(--nav-height) + 1.5rem) 2rem 1rem !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.06), rgba(168, 85, 247, 0.04));
    border-bottom: 1px solid var(--glass-border);
}

.user-credits-bar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.user-credits-bar strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   Cookie consent banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 720px;
    margin: 0 auto;
    z-index: 1500;
    background: #1a0f33;
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 1.5rem;
    color: var(--text);
    font-size: 0.92rem;
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

[data-theme="light"] .cookie-banner {
    background: #ffffff;
    border-color: rgba(236, 72, 153, 0.3);
}

.cookie-banner.visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner .ck-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.cookie-banner p {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.cookie-banner p a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 72, 153, 0.4);
}

.cookie-banner .ck-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.cookie-banner .ck-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.cookie-banner .ck-accept {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.cookie-banner .ck-accept:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
}

.cookie-banner .ck-reject {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--glass-border-strong);
}

[data-theme="light"] .cookie-banner .ck-reject {
    background: rgba(26, 21, 48, 0.05);
    border-color: rgba(26, 21, 48, 0.12);
}

.cookie-banner .ck-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand);
    color: var(--brand);
}

[data-theme="light"] .cookie-banner .ck-reject:hover {
    background: rgba(236, 72, 153, 0.08);
}

.cookie-prefs-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: none;
    font-family: inherit;
    transition: color 0.2s;
}

.cookie-prefs-link:hover { color: var(--brand); }

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    .cookie-banner .ck-actions {
        justify-content: stretch;
    }
    .cookie-banner .ck-btn { flex: 1; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    section { padding: 4rem 1.25rem; }
    .hero { padding: calc(var(--nav-height) + 1rem) 1.25rem 3rem; }
    .pricing-grid, .features-grid, .shop-grid { grid-template-columns: 1fr; }
    .bot-card { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    nav { padding: 0 1rem; }
    .nav-left { gap: 1rem; }
}
