/* ═══════════════════════════════════════════════════
   SynFus — Complete Design System
   Dark Violet Theme / Premium SaaS
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ────────────────────────────────────── */

:root {
    --bg:         #08090d;
    --bg-dark:    #0d1117;
    --bg-card:    #12151e;
    --bg-card2:   #161b26;
    --bg-input:   #1a1f2e;
    --bg-hover:   #1e2538;
    --bg-elevated:#181d28;
    --border:     #232b3b;
    --border-dim: #1a2030;
    --border-focus:#7c3aed;
    --text:       #eaedf3;
    --text-dim:   #8b949e;
    --text-muted: #5c6370;
    --accent:     #7c3aed;
    --accent2:    #6d28d9;
    --accent-light:#a78bfa;
    --accent-glow: rgba(124,58,237,0.25);
    --success:    #22c55e;
    --success-dim:#16a34a;
    --error:      #ef4444;
    --error-dim:  #dc2626;
    --warning:    #f59e0b;
    --warning-dim:#d97706;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-sm:  8px;
    --shadow:     0 2px 16px rgba(0,0,0,0.3);
    --font:       'Inter', -apple-system, 'Segoe UI', sans-serif;
    --mono:       'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset & Base ─────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

/* ── Buttons ──────────────────────────────────────── */

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: all 0.25s;
    text-decoration: none;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: var(--accent2); color: #fff;
    box-shadow: 0 0 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-weight: 500; font-family: var(--font);
    cursor: pointer; transition: all 0.25s;
    text-decoration: none;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--text-dim); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-discord {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: #5865F2;
    color: white;
    border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: all 0.25s;
    text-decoration: none;
}
.btn-discord:hover { background: #4752C4; transform: translateY(-1px); }
.btn-discord svg { flex-shrink: 0; }

/* ── Navbar ───────────────────────────────────────── */

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0;
    background: rgba(8,9,13,0.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(8,9,13,0.92);
}

.nav-container {
    max-width: 1140px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700;
    color: var(--text); text-decoration: none;
}
.nav-brand span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    border-radius: 1px; transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--text-dim);
    border-radius: 1px; transition: all 0.3s;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative;
}

.hero-content { max-width: 540px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 24px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 20px;
    font-size: 13px; font-weight: 500; color: var(--accent-light);
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 52px; font-weight: 800; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, #818cf8 50%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px; line-height: 1.7; color: var(--text-dim);
    margin-bottom: 32px; max-width: 460px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero screenshot */
.hero-visual { position: relative; }

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 60px rgba(124,58,237,0.1);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    background: var(--bg-card);
}

.hero-screenshot {
    width: 100%; height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Stats Bar ────────────────────────────────────── */

.stats-bar {
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: var(--bg-card);
    padding: 32px 0;
}

.stats-bar-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.stat-bar-item { text-align: center; }
.stat-bar-num {
    display: block; font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-variant-numeric: tabular-nums;
}
.stat-bar-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-bar-sep { width: 1px; height: 40px; background: var(--border); }

/* ── Section shared ───────────────────────────────── */

.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-block; padding: 4px 14px;
    background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
    border-radius: 20px; font-size: 12px; font-weight: 600;
    color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.section-header p { font-size: 16px; color: var(--text-dim); max-width: 500px; margin: 0 auto; }

/* ── Features ─────────────────────────────────────── */

.features { padding: 100px 0; }

.features-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-card2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.08);
}

.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 10px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }

/* Feature Tabs */
.feature-tabs {
    display: flex; justify-content: center; gap: 6px;
    margin-bottom: 40px; flex-wrap: wrap;
}

.feature-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 30px;
    font-size: 14px; font-weight: 600; font-family: var(--font);
    color: var(--text-dim); cursor: pointer;
    transition: all 0.25s;
}
.feature-tab:hover { background: var(--bg-card2); color: var(--text); border-color: var(--border); }
.feature-tab.active {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.3);
    color: var(--accent-light);
}
.feature-tab svg { flex-shrink: 0; }

/* Tab Content */
.feature-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}
.feature-tab-content.active { display: block; }

.ftc-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
    align-items: center;
}

.ftc-info h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.ftc-desc { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-bottom: 28px; }

.ftc-list {
    list-style: none; display: flex; flex-direction: column; gap: 18px;
}
.ftc-list li {
    display: flex; align-items: flex-start; gap: 14px;
}
.ftc-check {
    width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
    border-radius: 50%;
    background: rgba(34,197,94,0.12);
    position: relative;
}
.ftc-check::after {
    content: ''; position: absolute; top: 6px; left: 5px;
    width: 12px; height: 6px;
    border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}
.ftc-list li strong {
    display: block; font-size: 14px; font-weight: 700; color: var(--text);
    margin-bottom: 2px;
}
.ftc-list li span {
    font-size: 13px; line-height: 1.5; color: var(--text-dim);
}

/* Highlight card (right side) */
.ftc-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex; flex-direction: column; gap: 28px;
}
.fhc-stat { text-align: center; }
.fhc-num {
    display: block; font-size: 36px; font-weight: 800;
    font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.fhc-label {
    display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px;
}

/* ── How It Works ─────────────────────────────────── */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-dark);
}

.steps-grid {
    display: flex; align-items: flex-start; justify-content: center; gap: 0;
}

.step-card {
    flex: 1; max-width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.step-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.step-num {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%;
    font-size: 18px; font-weight: 800; color: white;
    margin-bottom: 16px;
}

.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.step-connector {
    width: 60px; height: 2px; margin-top: 52px; flex-shrink: 0;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
    border-radius: 1px;
}

/* ── Pricing ──────────────────────────────────────── */

.pricing { padding: 100px 0; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 20px;
    max-width: 750px; margin: 0 auto;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

.pricing-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 32px;
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(239,68,68,0.12));
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(124,58,237,0.03) 10px, rgba(124,58,237,0.03) 20px);
}
.promo-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
}
.promo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    position: relative;
}
.promo-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    position: relative;
}
.promo-subtitle strong {
    color: var(--accent-light);
}
.price-old {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s;
    position: relative;
}
.pricing-card:hover { border-color: var(--border); transform: translateY(-2px); }

.pricing-card.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, var(--bg-card) 40%);
    box-shadow: 0 0 40px rgba(124,58,237,0.1);
}

.popular-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    padding: 4px 18px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 11px; font-weight: 700; color: white;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.pricing-header { margin-bottom: 28px; }
.pricing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.price-amount { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.price-currency { font-size: 20px; font-weight: 700; color: var(--text-dim); }
.price-period { font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.pricing-desc { font-size: 13px; color: var(--text-muted); }

.pricing-features {
    list-style: none; margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text-dim);
}
.check {
    width: 18px; height: 18px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(34,197,94,0.12);
    position: relative;
}
.check::after {
    content: ''; position: absolute; top: 5px; left: 4px;
    width: 10px; height: 5px;
    border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

/* ── FAQ ──────────────────────────────────────────── */

.faq {
    padding: 100px 0;
    background: var(--bg-dark);
}

.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--accent); }

.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    background: none; border: none; cursor: pointer;
    font-size: 15px; font-weight: 600; font-family: var(--font);
    color: var(--text); text-align: left;
}
.faq-question:hover { color: var(--accent-light); }

.faq-chevron { transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent-light); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 22px 18px;
}
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--text-dim); }

/* ── CTA Section ──────────────────────────────────── */

.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.15), transparent 70%);
    pointer-events: none;
}

.cta-inner { position: relative; }
.cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 16px; color: var(--text-dim); margin-bottom: 28px; }

/* ── Footer ───────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border-dim);
    padding: 64px 0 32px;
    background: var(--bg);
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 12px; max-width: 280px; }

.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-logo span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    text-align: center; padding-top: 32px;
    border-top: 1px solid var(--border-dim);
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ═══════════════════════════════════════════════════ */

.auth-page { background: var(--bg); }

.auth-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    position: relative;
}

.auth-glow {
    position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.1), transparent 70%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    width: 100%; max-width: 420px;
    text-align: center;
}

.auth-brand {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 24px; text-decoration: none;
}
.auth-brand span {
    font-size: 20px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo { width: 40px; height: 40px; border-radius: 10px; }

.auth-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }

.auth-form { text-align: left; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-dim); margin-bottom: 6px;
}
.form-group input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; font-family: var(--font);
    outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }
.form-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-error {
    color: var(--error); font-size: 13px; text-align: center;
    padding: 8px 0; display: none;
}
.form-error.show { display: block; }

.auth-form .btn-primary { margin-top: 8px; }

.auth-footer {
    font-size: 14px; color: var(--text-muted); margin-top: 24px;
}
.auth-footer a { color: var(--accent-light); font-weight: 500; }
.auth-footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════ */

.dash-page { background: var(--bg); }

.dash-nav {
    border-bottom: 1px solid var(--border-dim);
    background: rgba(8,9,13,0.92);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 50;
}

.dash-nav-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Status badge */
.status-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg-card);
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); transition: all 0.3s;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.status-dot.combat { background: var(--warning); box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.status-dot.paused { background: var(--accent-light); box-shadow: 0 0 8px var(--accent-glow); }

.plan-badge {
    padding: 4px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(124,58,237,0.12); color: var(--accent-light);
    border: 1px solid rgba(124,58,237,0.25);
}
.plan-expires {
    padding: 4px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
    background: rgba(255,255,255,0.06); color: var(--text);
    border: 1px solid var(--border);
}

/* User menu */
.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); font-size: 13px; font-family: var(--font);
    cursor: pointer; transition: all 0.2s;
}
.user-btn:hover { background: var(--bg-hover); color: var(--text); }
.user-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px;
    min-width: 160px; box-shadow: var(--shadow); z-index: 60;
}
.user-dropdown.open { display: block; }

.dropdown-item {
    display: block; width: 100%; padding: 8px 14px;
    background: none; border: none; border-radius: 6px;
    font-size: 13px; font-family: var(--font); color: var(--text-dim);
    text-align: left; cursor: pointer; text-decoration: none;
    transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }

/* Bot Selector */
.bot-selector {
    border-bottom: 1px solid var(--border-dim);
    background: rgba(13,14,20,0.85);
    backdrop-filter: blur(8px);
}
.bot-selector-inner {
    max-width: 1140px; margin: 0 auto; padding: 10px 24px;
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
}
.bot-selector-inner::-webkit-scrollbar { display: none; }

.bot-list { display: flex; gap: 8px; flex: 1; min-width: 0; }

.bot-card {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-dim);
    color: var(--text-dim); font-size: 13px; font-family: var(--font);
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.bot-card:hover { border-color: var(--border); color: var(--text); background: var(--bg-card2); }
.bot-card.active {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.08);
    color: var(--accent-light);
}
.bot-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); flex-shrink: 0;
    transition: all 0.3s;
}
.bot-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.bot-dot.offline { background: var(--text-muted); }
.bot-name { font-weight: 600; }
.bot-key { font-family: var(--mono); font-size: 11px; opacity: 0.5; }
.bot-plan-tag {
    padding: 2px 8px; border-radius: 8px;
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
    background: rgba(124,58,237,0.1); color: var(--accent-light);
}

.bot-remove {
    margin-left: 4px; font-size: 16px; line-height: 1;
    color: var(--text-muted); cursor: pointer;
    opacity: 0; transition: opacity 0.2s, color 0.2s;
}
.bot-card:hover .bot-remove { opacity: 1; }
.bot-remove:hover { color: #ef4444; }

.btn-add-bot {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: transparent; border: 1px dashed var(--border);
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    font-family: var(--font); cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
}
.btn-add-bot:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(124,58,237,0.05); }

.bot-add-form {
    max-width: 1140px; margin: 0 auto; padding: 8px 24px 2px;
}
.bot-add-form-inner {
    display: flex; align-items: center; gap: 8px;
}
.bot-add-form-inner input {
    flex: 1; max-width: 340px; padding: 8px 12px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 12px; font-family: var(--mono);
    outline: none; transition: border-color 0.2s;
}
.bot-add-form-inner input:focus { border-color: var(--accent); }
.bot-add-form-inner input::placeholder { color: var(--text-muted); }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-ghost {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); font-family: var(--font); cursor: pointer;
    transition: all 0.2s;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.bot-add-error {
    font-size: 12px; color: var(--error); display: none;
}
.bot-add-error.show { display: inline; }

/* Empty state */
.dash-empty {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 60px); padding: 24px;
}
.dash-empty-card {
    text-align: center; max-width: 480px;
}
.empty-icon { color: var(--text-muted); margin-bottom: 20px; }
.dash-empty-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.dash-empty-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

.link-form {
    display: flex; gap: 10px;
}
.link-form input {
    flex: 1; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 13px; font-family: var(--mono);
    outline: none; transition: border-color 0.2s;
}
.link-form input:focus { border-color: var(--accent); }
.link-form input::placeholder { color: var(--text-muted); }

/* Dashboard main */
.dash-main {
    max-width: 1140px; margin: 0 auto;
    padding: 24px;
}

/* Profile selector */
.profile-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.profile-selector {
    display: flex; align-items: center; gap: 10px;
    flex: 1;
}
.profile-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
    white-space: nowrap;
}
.profile-label svg { color: var(--accent-light); }
.profile-select {
    flex: 1; max-width: 300px; padding: 8px 12px;
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 13px; font-family: var(--font);
    cursor: pointer; outline: none; transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.profile-select:hover { border-color: var(--border); }
.profile-select:focus { border-color: var(--accent); }
.profile-select option { background: var(--bg-card); color: var(--text); }

.controls-row {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px; flex-wrap: wrap;
}

.uptime-card {
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 180px;
}
.uptime-icon { color: var(--accent-light); flex-shrink: 0; }
.uptime-info { display: flex; flex-direction: column; }
.uptime-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.uptime-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.controls-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-ctrl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; min-height: 42px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: var(--font);
    color: var(--text-dim); cursor: pointer; transition: all 0.2s;
    white-space: nowrap; touch-action: manipulation;
    -webkit-user-select: none; user-select: none;
}
.btn-ctrl:active { transform: scale(0.96); opacity: 0.8; }

.btn-ctrl-start { border-color: var(--success-dim); color: var(--success); }
.btn-ctrl-start:hover { background: rgba(34,197,94,0.1); }
.btn-ctrl-stop { border-color: var(--error-dim); color: var(--error); }
.btn-ctrl-stop:hover { background: rgba(239,68,68,0.1); }
.btn-ctrl-pause { border-color: var(--warning-dim); color: var(--warning); }
.btn-ctrl-pause:hover { background: rgba(245,158,11,0.1); }
.btn-ctrl-relaunch { border-color: rgba(124,58,237,0.4); color: var(--accent-light); }
.btn-ctrl-relaunch:hover { background: rgba(124,58,237,0.1); }
.btn-ctrl-bank { border-color: rgba(34,197,94,0.6); color: #22c55e; background: rgba(34,197,94,0.08); }
.btn-ctrl-bank:hover { background: rgba(34,197,94,0.15); }
.btn-ctrl-antibug { border-color: rgba(251,146,60,0.6); color: #fb923c; background: rgba(251,146,60,0.08); }
.btn-ctrl-antibug:hover { background: rgba(251,146,60,0.15); }
.screen-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-ctrl-screen { border-color: var(--border); color: var(--text-muted); }
.btn-ctrl-screen:hover { background: var(--bg-hover); color: var(--text); }

/* Stats grid */
.dash-stats-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 14px; margin-bottom: 20px;
}

.dash-stat-card {
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: border-color 0.2s;
}
.dash-stat-card:hover { border-color: var(--border); }

.dsc-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; flex-shrink: 0;
}
.dsc-icon.accent { background: rgba(124,58,237,0.1); color: var(--accent-light); }
.dsc-icon.success { background: rgba(34,197,94,0.1); color: var(--success); }
.dsc-icon.warning { background: rgba(245,158,11,0.1); color: var(--warning); }

.dsc-info { display: flex; flex-direction: column; }
.dsc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dsc-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Bottom grid */
.dash-bottom-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.dash-panel {
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); overflow: hidden;
}

.dash-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-dim);
}
.dash-panel-header h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--text);
}
.dash-panel-header h2 svg { color: var(--text-muted); }
.panel-info { font-size: 11px; color: var(--text-muted); }

.btn-clear {
    padding: 4px 12px; background: transparent;
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-muted); font-size: 12px; font-family: var(--font);
    cursor: pointer; transition: all 0.2s;
}
.btn-clear:hover { background: var(--bg-hover); color: var(--text); }

.screenshot-body {
    padding: 12px; display: flex; align-items: center; justify-content: center;
    min-height: 280px; background: var(--bg);
}
.screenshot-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 13px;
}
.screenshot-img { width: 100%; height: auto; border-radius: 6px; display: block; cursor: zoom-in; }

/* Screenshot Zoom Modal */
.zoom-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85); cursor: grab;
    overflow: hidden;
}
.zoom-overlay.active { display: block; }
.zoom-overlay.dragging { cursor: grabbing; }
.zoom-overlay img {
    position: absolute; max-width: none; max-height: none;
    user-select: none; pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.zoom-controls {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10000;
}
.zoom-controls button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,30,40,0.9); color: #fff;
    font-size: 18px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.zoom-controls button:hover { background: rgba(60,60,80,0.9); }
.zoom-level {
    display: flex; align-items: center; padding: 0 12px;
    font-size: 13px; color: rgba(255,255,255,0.7);
    background: rgba(30,30,40,0.9); border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.logs-body {
    height: 340px; overflow-y: auto; padding: 10px 14px;
    font-family: var(--mono); font-size: 11px; line-height: 1.7;
}
.log-line { display: flex; gap: 10px; padding: 2px 0; }
.log-time { color: var(--text-muted); flex-shrink: 0; }
.log-msg { color: var(--text-dim); word-break: break-word; }
.log-msg.success { color: var(--success); }
.log-msg.error { color: var(--error); }
.log-msg.warning { color: var(--warning); }
.log-msg.debug { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════ */

.account-main { padding: 40px 0; }
.account-title { font-size: 28px; font-weight: 800; margin-bottom: 32px; }

.account-section { margin-bottom: 32px; }
.account-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-dim); }

.account-card {
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); padding: 4px 0;
}

.account-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-dim);
}
.account-row:last-child { border-bottom: none; }
.account-label { font-size: 14px; color: var(--text-dim); }
.account-value { font-size: 14px; font-weight: 500; }

/* Account form */
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form-row { display: flex; flex-direction: column; gap: 4px; }
.account-form-row label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.account-form-row input {
    padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 13px; font-family: var(--font);
    outline: none; transition: border-color 0.2s;
}
.account-form-row input:focus { border-color: var(--accent); }
.account-form-row input::placeholder { color: var(--text-muted); }

.form-success {
    display: none; padding: 10px 14px;
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-sm); color: var(--success);
    font-size: 13px;
}
.form-success.show { display: block; }

/* License cards */
.account-licenses-list { display: flex; flex-direction: column; gap: 10px; }

.license-card { padding: 16px 20px !important; }
.license-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.license-plan {
    padding: 3px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    background: rgba(124,58,237,0.12); color: var(--accent-light);
}
.license-status { font-size: 12px; font-weight: 600; }
.license-status.valid { color: var(--success); }
.license-status.expired { color: var(--error); }
.license-status.pending { color: var(--warning); }

.license-key-full {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input); border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.license-key-full code {
    flex: 1; font-family: var(--mono); font-size: 12px;
    color: var(--text-dim); user-select: all; word-break: break-all;
}
.btn-copy-sm {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 4px; border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-copy-sm:hover { color: var(--accent-light); background: rgba(124,58,237,0.1); }

.license-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.license-card-actions { display: flex; gap: 8px; }

.btn-xs { padding: 4px 12px; font-size: 11px; }
.btn-danger-text { color: var(--error) !important; border-color: rgba(239,68,68,0.3) !important; }
.btn-danger-text:hover { background: rgba(239,68,68,0.1) !important; }

.btn-reset-hwid {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: 11px;
    background: rgba(245,158,11,0.12); color: var(--warning);
    border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-sm);
    cursor: pointer; transition: background 0.2s, border-color 0.2s;
    font-family: inherit; font-weight: 500;
}
.btn-reset-hwid:hover { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.4); }

.link-license-inline {
    display: flex; gap: 10px; margin-top: 12px;
}
.link-license-inline input {
    flex: 1; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 13px; font-family: var(--mono);
    outline: none; transition: border-color 0.2s;
}
.link-license-inline input:focus { border-color: var(--accent); }
.link-license-inline input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════ */

.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-gif {
    width: 160px; height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

/* Inline button loader (inside submit buttons) */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}
.btn-loading::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

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

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

.connecting .status-dot { animation: pulse 1.5s infinite; }

.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

.dash-stat-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}
.dash-stat-card:nth-child(1) { animation-delay: 0.05s; }
.dash-stat-card:nth-child(2) { animation-delay: 0.1s; }
.dash-stat-card:nth-child(3) { animation-delay: 0.15s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .ftc-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open, .nav-actions.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        padding: 16px 24px; gap: 12px;
    }
    .nav-actions.open { top: 180px; }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }

    .stats-bar-inner { gap: 24px; }
    .stat-bar-num { font-size: 28px; }
    .stat-bar-sep { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 22px; }
    .feature-tabs { gap: 4px; }
    .feature-tab { padding: 8px 14px; font-size: 12px; gap: 6px; }
    .feature-tab svg { width: 14px; height: 14px; }
    .ftc-info h3 { font-size: 20px; }
    .ftc-highlight-card { padding: 24px; gap: 20px; }
    .fhc-num { font-size: 28px; }

    .steps-grid { flex-direction: column; align-items: center; gap: 12px; }
    .step-connector { width: 2px; height: 30px; background: linear-gradient(180deg, var(--border), var(--accent), var(--border)); margin: 0; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
    .pricing-grid-3 { grid-template-columns: 1fr; max-width: 400px; }

    .section-header h2 { font-size: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Dashboard */
    .bot-selector-inner { padding: 8px 16px; gap: 6px; }
    .bot-card { padding: 6px 10px; font-size: 12px; }
    .bot-key { display: none; }
    .btn-add-bot { padding: 6px 10px; font-size: 12px; }
    .bot-add-form { padding: 6px 16px 0; }
    .bot-add-form-inner input { max-width: 200px; }

    .controls-row { flex-direction: column; align-items: stretch; }
    .controls-buttons { justify-content: center; }
    .dash-stats-grid { grid-template-columns: 1fr 1fr; }
    .dash-bottom-grid { grid-template-columns: 1fr; }
    .logs-body { height: 260px; font-size: 10px; }

    .auth-card { padding: 32px 24px; }
    .link-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero { padding: 100px 0 40px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .stat-bar-num { font-size: 24px; }

    .pricing-card { padding: 28px 20px; }
    .price-amount { font-size: 34px; }

    .dash-stats-grid { grid-template-columns: 1fr; }
    .btn-ctrl { padding: 10px 12px; font-size: 12px; }
    .dash-nav-right { gap: 8px; }
    .plan-badge, .plan-expires { display: none; }
    .user-name { display: none; }
}


/* ═══════════════════════════════════════════════════
   Admin Panel — Full rewrite
   ═══════════════════════════════════════════════════ */

.admin-main {
    padding: 28px 32px;
    max-width: 100%;
    margin: 80px auto 0;
}

.admin-main h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

/* ── Stats grid (2 rows) ────────────────────────── */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s;
}

.admin-stat-card:hover {
    border-color: var(--border);
}

.admin-stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.admin-stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.admin-stat-card .stat-value.accent { color: var(--accent-light); }
.admin-stat-card .stat-value.success { color: var(--success); }
.admin-stat-card .stat-value.error { color: var(--error); }
.admin-stat-card .stat-value.warning { color: var(--warning); }
.admin-stat-card .stat-value.info { color: #60a5fa; }

/* ── Tabs ────────────────────────────────────────── */

.admin-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: var(--font);
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* ── Toolbar (search + count) ───────────────────── */

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    max-width: 500px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.admin-search:focus { outline: none; border-color: var(--accent); }
.admin-search::placeholder { color: var(--text-muted); }

.admin-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Table — FULL content, no truncation ─────────── */

.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-dim);
    background: var(--bg-card);
    max-height: 70vh;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: var(--bg-elevated);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-dim);
    color: var(--text);
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--bg-hover); }
.admin-table tr:last-child td { border-bottom: none; }

/* Mono cells — full content visible, selectable */
.admin-table .mono-cell {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    word-break: break-all;
    white-space: normal;
    min-width: 80px;
    user-select: all;
    cursor: text;
}

.admin-table .mono-cell.accent {
    color: var(--accent-light);
    cursor: pointer;
}

.admin-table .mono-cell.accent:hover {
    text-decoration: underline;
}

/* Wrap long text */
.admin-table .wrap-cell {
    white-space: normal;
    word-break: break-word;
    max-width: 250px;
}

/* Actions column — ALWAYS visible, no overflow */
.admin-table td.actions-cell {
    white-space: nowrap;
    position: sticky;
    right: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-dim);
    z-index: 5;
}

.admin-table tr:hover td.actions-cell {
    background: var(--bg-hover);
}

.admin-table th.actions-th {
    position: sticky;
    right: 0;
    z-index: 11;
    border-left: 1px solid var(--border);
}

/* ── Badges ─────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-yes      { background: rgba(34,197,94,0.12);  color: var(--success); }
.badge-no       { background: rgba(239,68,68,0.12);  color: var(--error); }
.badge-admin    { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.badge-banned   { background: rgba(239,68,68,0.15);  color: var(--error); }
.badge-online   { background: rgba(34,197,94,0.15);  color: var(--success); }
.badge-offline  { background: rgba(91,99,112,0.15);  color: var(--text-muted); }
.badge-monthly  { background: rgba(124,58,237,0.12); color: var(--accent-light); }
.badge-lifetime { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-neutral  { background: rgba(91,99,112,0.12);  color: var(--text-dim); }

/* ── Action buttons ─────────────────────────────── */

.admin-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-danger         { background: rgba(239,68,68,0.12);  color: var(--error); }
.btn-danger:hover   { background: rgba(239,68,68,0.25); }
.btn-warning        { background: rgba(245,158,11,0.12); color: var(--warning); }
.btn-warning:hover  { background: rgba(245,158,11,0.25); }
.btn-info           { background: rgba(124,58,237,0.12); color: var(--accent-light); }
.btn-info:hover     { background: rgba(124,58,237,0.25); }
.btn-success-sm     { background: rgba(34,197,94,0.12);  color: var(--success); }
.btn-success-sm:hover { background: rgba(34,197,94,0.25); }
.btn-neutral        { background: rgba(91,99,112,0.12);  color: var(--text-dim); }
.btn-neutral:hover  { background: rgba(91,99,112,0.25); }
.btn-accent         { background: rgba(59,130,246,0.15); color: #60a5fa; }
.btn-accent:hover   { background: rgba(59,130,246,0.3); }

/* ── Generate license section ───────────────────── */

.admin-generate {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 520px;
}

.admin-generate h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text);
}

.admin-generate .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: end;
}

.admin-generate .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-generate label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.admin-generate select,
.admin-generate input[type="number"] {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
}

.admin-generate select:focus,
.admin-generate input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}

.update-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.update-changelog {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.admin-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    display: none;
}

.admin-result.show { display: block; }

.admin-result .result-key,
.admin-result .result-keys {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-light);
    word-break: break-all;
    margin-bottom: 10px;
    user-select: all;
}

.result-key-row {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: rgba(124,58,237,0.06);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--mono);
    font-size: 12px;
}

.result-key-row:hover {
    background: rgba(124,58,237,0.15);
}

.copy-btn {
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.15s;
}

.copy-btn:hover { background: var(--accent2); }
.copy-btn.copied { background: var(--success); }

/* ── Online panel ───────────────────────────────── */

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

.online-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color 0.2s;
}

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

.online-card .online-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.online-card .online-user {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.online-card .online-key {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    word-break: break-all;
    user-select: all;
}

.online-card .online-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.online-card .online-stats .os-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.online-card .online-stats .os-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.online-card .online-stats .os-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Stats modal (wider, more info) ─────────────── */

.stats-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    backdrop-filter: blur(4px);
}

.stats-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.stats-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-width: 420px;
    max-width: 600px;
    width: 90%;
}

.stats-modal-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.stats-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-modal-section {
    margin-bottom: 20px;
}

.stats-modal-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-light);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-dim);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-item .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.stats-modal-close {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    transition: background 0.15s;
}

.stats-modal-close:hover { background: var(--bg-hover); }

/* ── Edit modal ─────────────────────────────────── */

.edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    backdrop-filter: blur(4px);
}

.edit-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.edit-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    min-width: 360px;
    max-width: 460px;
    width: 90%;
}

.edit-modal-content h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.edit-modal-content .edit-field {
    margin-bottom: 14px;
}

.edit-modal-content .edit-field label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 500;
}

.edit-modal-content .edit-field input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
}

.edit-modal-content .edit-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.edit-modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.edit-modal-btns button {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}

.edit-modal-btns .btn-save {
    background: var(--accent);
    color: white;
}

.edit-modal-btns .btn-save:hover { background: var(--accent2); }

.edit-modal-btns .btn-cancel {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.edit-modal-btns .btn-cancel:hover { background: var(--bg-hover); }

/* ── Extend modal ───────────────────────────────── */

.extend-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    backdrop-filter: blur(4px);
}

.extend-modal.show { opacity: 1; pointer-events: auto; }

/* ── Toast notification ─────────────────────────── */

.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.admin-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast.error {
    border-color: var(--error);
    color: var(--error);
}

/* ── Admin responsive ───────────────────────────── */

@media (max-width: 1200px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .admin-main { padding: 16px; margin-top: 70px; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-tabs { overflow-x: auto; }
    .admin-tab { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
    .admin-generate .form-row { flex-direction: column; }
    .online-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   Download Page — Premium Design
   ═══════════════════════════════════════════════════ */

.dl-hero {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 60px;
    overflow: hidden;
}

.dl-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.dl-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 100%);
    pointer-events: none;
}

.dl-hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.dl-hero-left { position: relative; }

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.dl-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dl-hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.dl-hero-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}

.dl-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.dl-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

.dl-meta-chip svg { color: var(--accent-light); flex-shrink: 0; }

/* Main download button */
.dl-btn-main {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.dl-btn-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}

.dl-btn-main:hover::before { opacity: 1; }

.dl-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

.dl-btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dl-btn-main.downloading {
    background: linear-gradient(135deg, var(--success-dim) 0%, var(--success) 100%);
}

.dl-btn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-btn-text strong {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
}

.dl-btn-text small {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
    font-family: var(--font);
}

/* Changelog */
.dl-changelog {
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
}

.dl-changelog-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dl-changelog p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    white-space: pre-line;
}

/* Right column cards */
.dl-hero-right { display: flex; flex-direction: column; gap: 16px; }

.dl-features-card,
.dl-install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.dl-features-card h3,
.dl-install-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.dl-features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

.dl-features-list li svg { flex-shrink: 0; }

/* Install steps */
.dl-steps { display: flex; flex-direction: column; gap: 14px; }

.dl-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.dl-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--accent-glow);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-step code {
    font-family: var(--mono);
    font-size: 12px;
    background: rgba(124,58,237,0.15);
    color: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Blocked / Unavailable */
.dl-blocked-wrap {
    display: flex;
    justify-content: center;
    padding-top: 80px;
}

.dl-blocked-card {
    text-align: center;
    max-width: 440px;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.dl-blocked-icon { margin-bottom: 20px; opacity: 0.8; }

.dl-blocked-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dl-blocked-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dl-blocked-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .dl-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .dl-hero-left h1 { font-size: 32px; }
    .dl-hero { padding: 80px 0 40px; }
}

@media (max-width: 500px) {
    .dl-hero-left h1 { font-size: 26px; }
    .dl-meta-row { flex-direction: column; }
    .dl-blocked-card { padding: 32px 20px; margin: 0 12px; }
    .dl-blocked-actions { flex-direction: column; }
}

/* ── Changelog Compact (accordion) ────────────────── */

.cl-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.cl-compact:hover,
.cl-compact.open {
    border-color: var(--border);
}

.cl-compact-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    transition: color 0.2s;
}

.cl-compact-toggle:hover {
    color: var(--text);
}

.cl-compact-toggle svg:first-child {
    color: var(--accent-light);
    flex-shrink: 0;
}

.cl-chevron {
    margin-left: auto;
    transition: transform 0.3s;
    opacity: 0.5;
}

.cl-compact.open .cl-chevron {
    transform: rotate(180deg);
}

.cl-compact-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cl-compact.open .cl-compact-list {
    max-height: 320px;
    overflow-y: auto;
}

.cl-compact-list::-webkit-scrollbar {
    width: 4px;
}

.cl-compact-list::-webkit-scrollbar-track {
    background: transparent;
}

.cl-compact-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.cl-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 18px;
    border-top: 1px solid var(--border-dim);
    font-size: 12px;
    transition: background 0.2s;
}

.cl-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cl-row.cl-latest {
    background: rgba(124, 58, 237, 0.04);
}

.cl-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-ver {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text);
    font-size: 12px;
    flex-shrink: 0;
    min-width: 48px;
}

.cl-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(167, 139, 250, 0.15));
    color: var(--accent-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.cl-desc {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
}

.cl-changes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-changes li {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.4;
    padding-left: 16px;
    position: relative;
}

.cl-changes li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.cl-date {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 11px;
    flex-shrink: 0;
    margin-left: auto;
}


/* ══════════════════════════════════════════════════════
   ADMIN - Analytics, Logs, Outils
   ══════════════════════════════════════════════════════ */

/* ── Analytics ─────────────────────────────── */
.analytics-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.analytics-period-btns { display: flex; gap: 6px; }
.btn-period {
    padding: 6px 14px; font-size: 12px; border-radius: 6px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
.btn-period:hover { border-color: var(--accent); color: var(--text); }
.btn-period.active { background: rgba(124,58,237,0.15); border-color: var(--accent); color: var(--accent-light); }

.analytics-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .analytics-grid { grid-template-columns: 1fr; } }

.chart-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.chart-card h4 {
    margin: 0 0 12px; font-size: 13px; font-weight: 600;
    color: var(--text-dim);
}
.chart-card canvas { width: 100% !important; max-height: 250px; }

/* ── Logs ──────────────────────────────────── */
.logs-toolbar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.logs-select {
    padding: 6px 10px; font-size: 12px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-dark);
    color: var(--text); cursor: pointer;
}
.logs-count { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.logs-ws-status {
    font-size: 11px; padding: 4px 10px; border-radius: 4px;
    margin-bottom: 8px; display: inline-block;
    background: rgba(251,146,60,0.1); color: #fb923c;
}
.logs-ws-status.connected { background: rgba(34,197,94,0.1); color: #22c55e; }
.logs-ws-status.disconnected { background: rgba(239,68,68,0.1); color: #ef4444; }

.logs-container {
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px; height: 500px;
    overflow-y: auto; font-family: var(--mono); font-size: 12px;
    line-height: 1.6;
}
.log-entry {
    display: flex; gap: 8px; padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.log-time { color: var(--text-muted); flex-shrink: 0; width: 65px; }
.log-key { color: var(--accent-light); flex-shrink: 0; width: 70px; opacity: 0.7; cursor: pointer; }
.log-level {
    flex-shrink: 0; width: 60px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; padding: 1px 4px; border-radius: 3px;
    text-align: center;
}
.log-level.info { color: #60a5fa; }
.log-level.success { color: #22c55e; }
.log-level.warning { color: #fb923c; }
.log-level.error { color: #ef4444; }
.log-level.status { color: #a78bfa; }
.log-msg { color: var(--text); word-break: break-word; }

/* ── Tools ─────────────────────────────────── */
.tools-grid { display: flex; flex-direction: column; gap: 20px; }

.tool-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.tool-section h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.tool-desc { font-size: 12px; color: var(--text-dim); margin: 0 0 12px; }

.announce-form, .blacklist-form, .promo-form {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

/* Health grid */
.health-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 768px) { .health-grid { grid-template-columns: repeat(2, 1fr); } }

.health-item {
    background: var(--bg-dark); border-radius: 8px; padding: 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.health-label { font-size: 11px; color: var(--text-muted); }
.health-value { font-size: 18px; font-weight: 700; color: var(--text); }

/* Revenue grid */
.revenue-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 768px) { .revenue-grid { grid-template-columns: repeat(2, 1fr); } }

.revenue-item {
    background: var(--bg-dark); border-radius: 8px; padding: 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.revenue-item .rev-label { font-size: 11px; color: var(--text-muted); }
.revenue-item .rev-value { font-size: 18px; font-weight: 700; color: var(--accent-light); }

/* Expiring list */
.expiring-list { font-size: 13px; }
.expiring-item {
    display: flex; align-items: center; gap: 12px; padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.expiring-days {
    font-weight: 700; min-width: 40px; text-align: center;
    padding: 2px 6px; border-radius: 4px; font-size: 12px;
}
.expiring-days.urgent { background: rgba(239,68,68,0.15); color: #ef4444; }
.expiring-days.soon { background: rgba(251,146,60,0.15); color: #fb923c; }
.expiring-days.ok { background: rgba(34,197,94,0.15); color: #22c55e; }

/* Blacklist entries */
.blacklist-entries .bl-entry {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
    border-bottom: 1px solid var(--border); font-size: 12px;
}
.bl-entry .bl-type {
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    border-radius: 3px; text-transform: uppercase;
    background: rgba(124,58,237,0.15); color: var(--accent-light);
}
.bl-entry .bl-value { font-family: var(--mono); color: var(--text); }
.bl-entry .bl-reason { color: var(--text-muted); flex: 1; }

/* Promo entries */
.promo-entries .promo-entry {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-size: 12px;
}
.promo-entry .promo-code-tag {
    font-family: var(--mono); font-weight: 700; padding: 2px 8px;
    border-radius: 4px; background: rgba(124,58,237,0.15);
    color: var(--accent-light);
}
.promo-entry .promo-discount { font-weight: 700; color: #22c55e; }
.promo-entry .promo-info { color: var(--text-dim); flex: 1; }

/* ═══════════════════════════════════════════════════
   Legal & Changelog Pages
   ═══════════════════════════════════════════════════ */

.legal-page { background: var(--bg); }

.legal-main {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}
.legal-main h1 {
    font-size: 36px; font-weight: 800;
    margin-bottom: 4px;
}
.legal-updated {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 40px;
}
.legal-content {
    max-width: 720px;
}
.legal-content section {
    margin-bottom: 32px;
}
.legal-content h2 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 12px; color: var(--accent-light);
}
.legal-content p {
    font-size: 14px; line-height: 1.8;
    color: var(--text-dim); margin-bottom: 10px;
}
.legal-content ul {
    list-style: none; padding: 0; margin: 8px 0;
}
.legal-content ul li {
    position: relative; padding-left: 20px;
    font-size: 14px; line-height: 1.8; color: var(--text-dim);
}
.legal-content ul li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}

/* ── Changelog Page ──────────────────────────────── */

/* ── Changelog Page ─────────────────────────────── */

.cl-page {
    padding-top: 100px; padding-bottom: 60px;
    min-height: 100vh;
}

.cl-hero {
    text-align: center; margin-bottom: 56px;
}
.cl-hero h1 {
    font-size: 40px; font-weight: 800; margin: 12px 0 16px;
}
.cl-hero > p {
    font-size: 16px; color: var(--text-dim); max-width: 520px; margin: 0 auto 32px;
    line-height: 1.7;
}

.cl-hero-stats {
    display: inline-flex; gap: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden;
}
.cl-hero-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 32px; gap: 4px;
    border-right: 1px solid var(--border);
}
.cl-hero-stat:last-child { border-right: none; }
.cl-hero-stat-value {
    font-size: 20px; font-weight: 800; color: var(--text);
    font-family: var(--mono);
}
.cl-hero-stat-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 500;
}

/* Timeline */
.cl-timeline {
    max-width: 760px; margin: 0 auto;
}

.cl-date-sep {
    display: flex; align-items: center; gap: 16px;
    margin: 32px 0 20px; padding: 0 4px;
}
.cl-date-sep:first-child { margin-top: 0; }
.cl-date-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.cl-date-label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
    padding: 4px 16px; background: var(--bg-darker);
    border: 1px solid var(--border); border-radius: 20px;
}

/* Cards */
.cl-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 28px;
    margin-bottom: 12px; transition: all 0.25s ease;
    animation: clFadeIn 0.4s ease both;
}
.cl-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cl-card.cl-latest {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,0.04) 100%);
}
.cl-card.cl-latest:hover {
    box-shadow: 0 0 40px var(--accent-glow), 0 12px 40px rgba(0,0,0,0.2);
}

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

.cl-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 12px;
}
.cl-card-left {
    display: flex; align-items: center; gap: 14px;
}
.cl-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--text-muted); flex-shrink: 0;
}
.cl-card-icon.latest {
    background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3);
    color: var(--accent-light);
}
.cl-card-info {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cl-version {
    font-family: var(--mono); font-size: 17px; font-weight: 700;
    color: var(--text);
}
.cl-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px; border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), #9333ea); color: #fff;
}
.cl-time {
    font-size: 12px; color: var(--text-muted);
    font-family: var(--mono);
}
.cl-count {
    font-size: 11px; color: var(--text-muted);
    padding: 4px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    white-space: nowrap;
}

/* Changes list */
.cl-changes {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.cl-changes li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; line-height: 1.7; color: var(--text-dim);
    padding: 4px 0 4px 4px; border-radius: 6px;
    transition: background 0.15s;
}
.cl-changes li:hover {
    background: rgba(255,255,255,0.02);
}
.cl-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    margin-top: 7px;
}
.cl-dot.update { background: var(--accent-light); }
.cl-dot.fix { background: #22c55e; }
.cl-dot.new { background: #3b82f6; }
.cl-dot.remove { background: #ef4444; }

/* Loading & empty */
.cl-loading {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; padding: 60px 0; color: var(--text-muted);
    font-size: 14px;
}
.cl-loader {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: clSpin 0.8s linear infinite;
}
@keyframes clSpin { to { transform: rotate(360deg); } }

.cl-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 60px 0; color: var(--text-muted);
    text-align: center;
}
.cl-empty svg { opacity: 0.4; }
.cl-empty p { font-size: 14px; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
    .cl-hero h1 { font-size: 28px; }
    .cl-hero-stats { flex-direction: column; }
    .cl-hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 24px; }
    .cl-hero-stat:last-child { border-bottom: none; }
    .cl-card { padding: 18px 20px; }
    .cl-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cl-count { align-self: flex-start; }
    .cl-page { padding-top: 80px; }
}

/* ── Password Strength Meter ─────────────────────── */

.pwd-strength {
    display: none; align-items: center; gap: 10px;
    margin-top: 8px;
}
.pwd-strength-bar {
    display: flex; gap: 4px; flex: 1;
}
.pwd-strength-bar span {
    flex: 1; height: 4px; border-radius: 2px;
    background: var(--border); transition: background 0.25s;
}
.pwd-strength-text {
    font-size: 12px; font-weight: 600;
    min-width: 50px; text-align: right;
    transition: color 0.25s;
}

/* ── Live Dot ────────────────────────────────────── */

.live-dot {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
    animation: pulse 2s infinite;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Testimonials ────────────────────────────────── */

.testimonials {
    padding: 100px 0;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}
.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.08);
}

.testimonial-stars {
    color: #f59e0b; font-size: 16px;
    margin-bottom: 16px; letter-spacing: 2px;
}

.testimonial-text {
    font-size: 14px; line-height: 1.7;
    color: var(--text-dim); font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex; align-items: center; gap: 12px;
}

.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}

.testimonial-name {
    display: block; font-size: 14px;
    font-weight: 600; color: var(--text);
}

.testimonial-info {
    display: block; font-size: 12px;
    color: var(--text-muted);
}

/* ── Contact Page ────────────────────────────────── */

.contact-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 960px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--border); }

.contact-icon {
    color: var(--accent-light);
    margin-bottom: 16px;
}

.contact-card h2 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px; line-height: 1.7;
    color: var(--text-dim); margin-bottom: 16px;
}

.contact-info-list {
    display: flex; flex-direction: column; gap: 10px;
}

.contact-info-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-dim);
}
.contact-info-item svg { color: var(--accent-light); flex-shrink: 0; }
.contact-info-item strong { color: var(--text); }

.contact-bug-list {
    list-style: none; padding: 0; margin: 0;
}
.contact-bug-list li {
    position: relative; padding-left: 18px;
    font-size: 13px; line-height: 1.9; color: var(--text-dim);
}
.contact-bug-list li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
}

/* ── Status Page ─────────────────────────────────── */

.status-global {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 16px; font-weight: 600;
}
.status-global.operational {
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.06);
    color: var(--success);
}
.status-global.degraded {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.06);
    color: var(--error);
}
.status-global-icon { flex-shrink: 0; }

.status-grid {
    display: flex; flex-direction: column; gap: 8px;
    max-width: 720px; margin-bottom: 32px;
}

.status-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius);
}

.status-item-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0; transition: all 0.3s;
}
.status-item-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.status-item-dot.offline { background: var(--error); box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.status-item-dot.checking { background: var(--text-muted); animation: pulse 1.5s infinite; }

.status-item-name { font-size: 14px; font-weight: 600; flex: 1; }
.status-item-status { font-size: 13px; font-weight: 500; }
.status-item-ping {
    font-size: 12px; color: var(--text-muted);
    font-family: var(--mono); min-width: 50px; text-align: right;
}

.status-stats {
    display: flex; gap: 20px; max-width: 720px;
}

.status-stat {
    flex: 1; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); padding: 20px;
}
.status-stat-value {
    display: block; font-size: 24px; font-weight: 800;
    color: var(--accent-light); margin-bottom: 4px;
}
.status-stat-label {
    display: block; font-size: 12px; color: var(--text-muted);
}

/* ── Docs Page ───────────────────────────────────── */

.docs-content {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 40px; max-width: 900px;
}

.docs-nav {
    position: sticky; top: 100px; align-self: start;
    background: var(--bg-card); border: 1px solid var(--border-dim);
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.docs-nav h3 {
    font-size: 13px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.docs-nav a {
    font-size: 13px; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s;
    padding: 4px 0;
}
.docs-nav a:hover { color: var(--accent-light); }

.docs-sections section {
    margin-bottom: 48px;
}
.docs-sections h2 {
    font-size: 22px; font-weight: 700;
    margin-bottom: 16px; color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-dim);
}
.docs-sections p {
    font-size: 14px; line-height: 1.8;
    color: var(--text-dim); margin-bottom: 16px;
}

.docs-step {
    display: flex; gap: 16px;
    margin-bottom: 16px; align-items: flex-start;
}
.docs-step-num {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%; color: white;
    font-size: 14px; font-weight: 700;
}
.docs-step h4 {
    font-size: 15px; font-weight: 600;
    margin-bottom: 4px;
}
.docs-step p {
    font-size: 13px; line-height: 1.7;
    color: var(--text-dim); margin-bottom: 0;
}
.docs-step code {
    background: var(--bg-input); padding: 2px 6px;
    border-radius: 4px; font-family: var(--mono);
    font-size: 12px; color: var(--accent-light);
}

.docs-callout {
    padding: 16px 20px; border-radius: var(--radius-sm);
    font-size: 13px; line-height: 1.7; color: var(--text-dim);
    margin: 16px 0;
}
.docs-callout.warning {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
}
.docs-callout.info {
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.2);
}
.docs-callout strong { color: var(--text); }

.docs-list {
    list-style: none; padding: 0; margin: 12px 0;
}
.docs-list li {
    position: relative; padding-left: 18px;
    font-size: 13px; line-height: 2; color: var(--text-dim);
}
.docs-list li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
}
.docs-list li strong { color: var(--text); }

.docs-faq { display: flex; flex-direction: column; gap: 12px; }
.docs-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm); padding: 18px;
}
.docs-faq-item h4 {
    font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
.docs-faq-item p {
    font-size: 13px; line-height: 1.7;
    color: var(--text-dim); margin-bottom: 0;
}
.docs-faq-item code {
    background: var(--bg-input); padding: 2px 6px;
    border-radius: 4px; font-family: var(--mono);
    font-size: 12px; color: var(--accent-light);
}

/* ── Admin Pagination ────────────────────────────── */

.admin-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 16px 0; font-size: 13px;
}
.admin-pagination button:disabled {
    opacity: 0.4; cursor: not-allowed;
}
.pagi-info { color: var(--text-muted); }

/* ── Page Transitions ────────────────────────────── */

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

.legal-main,
.account-main,
.admin-main,
.dashboard,
.auth-card,
.dash-empty-card {
    animation: pageIn 0.4s ease-out forwards;
}

/* ── Bot Interface Screenshot ────────────────────── */

.bot-preview {
    padding: 100px 0;
}

.bot-preview-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}

.bot-preview-info h2 {
    font-size: 32px; font-weight: 800;
    margin-bottom: 16px;
}
.bot-preview-info p {
    font-size: 15px; line-height: 1.7;
    color: var(--text-dim); margin-bottom: 24px;
}

.bot-preview-img {
    border-radius: var(--radius-lg);
    overflow: visible;
    border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 40px rgba(124,58,237,0.08);
    max-width: 520px;
    justify-self: center;
    position: relative;
}
.bot-preview-img > img {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius-lg);
}

/* Floating stats card overlay */
.stats-floating-card {
    position: absolute;
    bottom: -28px;
    right: -24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124,58,237,0.12);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 5;
}
.stats-floating-card img {
    display: block;
    border-radius: 10px;
    width: auto;
    max-width: 240px;
    height: auto;
}
.stats-floating-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 0.2px;
}
.stats-floating-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Responsive Additions ────────────────────────── */

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .docs-content { grid-template-columns: 1fr; }
    .docs-nav { position: static; }
    .bot-preview-inner { grid-template-columns: 1fr; gap: 32px; }
    .stats-floating-card { right: -12px; bottom: -20px; }
    .stats-floating-card img { max-width: 200px; }
}

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; }
    .nav-links.open, .nav-actions.open {
        position: static; width: 100%;
    }
    .nav-actions.open {
        top: auto; border-top: none; padding-top: 0;
    }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 22px; }
    .contact-grid { grid-template-columns: 1fr; max-width: 500px; }
    .status-stats { flex-direction: column; }
    .legal-main h1 { font-size: 28px; }
    .legal-main { padding: 100px 0 60px; }
    .bot-preview-info h2 { font-size: 24px; }
    .stats-floating-card { right: -4px; bottom: -16px; }
    .stats-floating-card img { max-width: 160px; }
    .stats-floating-label { font-size: 10px; padding: 6px 8px 2px; }
    .acc-grid { grid-template-columns: 1fr !important; }
}

/* ── Account Page v2 ───────────────────────────── */

.acc-header {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 36px; padding-top: 20px;
}
.acc-avatar {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.acc-title { font-size: 24px; font-weight: 800; margin: 0; }
.acc-subtitle { font-size: 14px; color: var(--text-muted); margin: 2px 0 0; }

.acc-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    align-items: start;
}

.acc-section-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.acc-section-header svg { color: var(--accent-light); flex-shrink: 0; }
.acc-section-header h2 { font-size: 16px; font-weight: 700; margin: 0; }

/* License cards v2 */
.lic-card {
    padding: 20px 24px !important; margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lic-card:hover { border-color: var(--border-focus); }
.lic-card.lic-expired { opacity: 0.6; }

.lic-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.lic-card-top-left { display: flex; align-items: center; gap: 8px; }

.lic-plan-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px;
}
.lic-plan-badge.monthly {
    background: rgba(124,58,237,0.15); color: var(--accent-light);
    border: 1px solid rgba(124,58,237,0.25);
}
.lic-plan-badge.lifetime {
    background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(245,158,11,0.15));
    color: #fbbf24; border: 1px solid rgba(234,179,8,0.25);
}

.lic-status {
    font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
}
.lic-status.valid { background: rgba(34,197,94,0.12); color: #22c55e; }
.lic-status.expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.lic-status.pending { background: rgba(245,158,11,0.12); color: #f59e0b; }

.lic-key {
    margin-bottom: 14px;
}
.lic-key code {
    font-family: var(--mono); font-size: 12px; color: var(--text-dim);
    background: var(--bg-input); padding: 6px 12px; border-radius: 6px;
    display: block; word-break: break-all;
    border: 1px solid var(--border-dim);
}

.lic-details {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
}
.lic-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
}
.lic-detail-label { color: var(--text-muted); }
.lic-detail-value { color: var(--text-dim); }
.lic-detail-value.lic-mono { font-family: var(--mono); font-size: 12px; }
.lic-detail-value.lic-muted { color: var(--text-muted); font-style: italic; }
.lic-detail-value.lic-lifetime { color: #fbbf24; font-weight: 600; }
.lic-detail-value.lic-urgent { color: #ef4444; font-weight: 600; }
.lic-detail-value.lic-warning { color: #f59e0b; }

.lic-card-actions {
    padding-top: 12px; border-top: 1px solid var(--border-dim);
}

/* ── Toast Notifications ───────────────────────── */

#toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 99999; display: flex; flex-direction: column;
    gap: 8px; pointer-events: none;
}

.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-size: 13px; color: var(--text);
    pointer-events: all; min-width: 260px; max-width: 400px;
    transform: translateX(120%); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }

.toast-icon { display: flex; flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.4; }

.toast-success .toast-icon { color: #22c55e; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: var(--accent-light); }

.toast-confirm {
    flex-direction: column; align-items: stretch; gap: 12px;
}
.toast-confirm .toast-msg { font-weight: 600; }
.toast-actions {
    display: flex; gap: 8px; justify-content: flex-end;
}
.toast-btn {
    padding: 6px 16px; border-radius: 6px; border: none;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.15s;
}
.toast-btn-yes {
    background: var(--accent); color: #fff;
}
.toast-btn-yes:hover { background: #6d28d9; }
.toast-btn-no {
    background: rgba(255,255,255,0.06); color: var(--text-dim);
    border: 1px solid var(--border);
}
.toast-btn-no:hover { background: rgba(255,255,255,0.1); }

/* ── Scroll to Top Button ──────────────────────── */

.scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all 0.3s ease; z-index: 999;
}
.scroll-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.scroll-top:hover {
    border-color: var(--accent); color: var(--accent-light);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── 404 Error Page ──────────────────────────────── */

.error-page {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    padding: 80px 0 60px;
}
.error-content {
    text-align: center; max-width: 500px; margin: 0 auto;
}
.error-code {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 24px;
}
.error-code span {
    font-size: 6rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.error-icon svg {
    stroke: var(--accent); opacity: 0.7;
    animation: errorFloat 3s ease-in-out infinite;
}
@keyframes errorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.error-content h1 {
    font-size: 1.75rem; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.error-content p {
    color: var(--text-dim); font-size: 1rem; margin-bottom: 32px;
}
.error-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Roadmap Page ────────────────────────────────── */

.rm-page { padding: 120px 0 80px; }
.rm-hero {
    text-align: center; margin-bottom: 56px;
}
.rm-hero h1 { font-size: 2.25rem; font-weight: 800; margin-top: 16px; }
.rm-hero p { color: var(--text-dim); max-width: 520px; margin: 12px auto 0; }

.rm-timeline {
    max-width: 720px; margin: 0 auto;
    position: relative;
}
.rm-timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: var(--border); border-radius: 1px;
}

.rm-phase {
    position: relative; margin-bottom: 48px;
    padding-left: 56px;
}
.rm-phase-header {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.rm-phase-header h2 {
    font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.rm-phase-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 0.7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.rm-phase-badge.done { background: rgba(34,197,94,0.15); color: #22c55e; }
.rm-phase-badge.current { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.rm-phase-badge.planned { background: rgba(255,255,255,0.06); color: var(--text-dim); }

.rm-phase-status {
    font-size: 0.75rem; color: var(--text-dim); margin-left: auto;
}
.rm-phase-status.done { color: #22c55e; }
.rm-phase-status.current { color: var(--accent-light); }

.rm-items { display: flex; flex-direction: column; gap: 12px; }
.rm-item {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 20px;
    transition: border-color 0.2s;
}
.rm-item:hover { border-color: rgba(255,255,255,0.1); }
.rm-item.done { opacity: 0.7; }
.rm-item.current { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

.rm-check {
    width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
    border: 2px solid var(--border); display: flex; align-items: center;
    justify-content: center; margin-top: 2px;
}
.rm-check.done {
    border-color: #22c55e; background: rgba(34,197,94,0.15); color: #22c55e;
}
.rm-check.current {
    border-color: var(--accent); background: rgba(124,58,237,0.15);
    position: relative;
}

.rm-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light);
    animation: rmPulse 2s ease-in-out infinite;
}
@keyframes rmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.rm-item div:last-child strong {
    display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 4px;
}
.rm-item div:last-child span {
    font-size: 0.8rem; color: var(--text-dim); line-height: 1.4;
}

.rm-cta {
    text-align: center; margin-top: 56px; padding: 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.rm-cta p { color: var(--text-dim); margin-bottom: 20px; }

/* ── Download Prerequisites ───────────────────────── */

.dl-prereq-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
}
.dl-prereq-card h3 {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    margin-bottom: 16px;
}
.dl-prereq-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.dl-prereq-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
}
.dl-prereq-item svg { color: var(--accent-light); min-width: 16px; }
.dl-prereq-item strong {
    display: block; font-size: 0.7rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.dl-prereq-item span { font-size: 0.8rem; color: var(--text); }

.dl-logo-showcase {
    margin-top: 32px; text-align: center;
}
.dl-logo-img {
    max-width: 560px; width: 100%;
    filter: drop-shadow(0 8px 32px rgba(124,58,237,0.3));
    animation: dlLogoFloat 4s ease-in-out infinite;
}
@keyframes dlLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cl-see-all {
    display: block; text-align: center; padding: 12px;
    font-size: 0.8rem; color: var(--accent-light);
    text-decoration: none; border-top: 1px solid var(--border);
    margin-top: 8px; transition: color 0.2s;
}
.cl-see-all:hover { color: var(--text); }

/* ── Stats Page ───────────────────────────────────── */

.st-page { padding: 100px 0 60px; }
.st-hero { text-align: center; margin-bottom: 40px; }
.st-hero h1 { font-size: 2rem; font-weight: 800; }
.st-hero p { color: var(--text-dim); margin-top: 8px; }

.st-period-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.st-tab {
    padding: 8px 20px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim);
    cursor: pointer; transition: all 0.2s;
}
.st-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.st-license-select {
    display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px;
}
.st-license-select label { color: var(--text-dim); font-size: 0.85rem; }
.st-license-select select {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: 6px 12px; border-radius: 8px; font-size: 0.85rem;
}

.st-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.st-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; align-items: center; gap: 14px;
}
.st-card-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.st-card-icon.combat { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.st-card-icon.bank { background: rgba(59,130,246,0.15); color: #60a5fa; }
.st-card-icon.uptime { background: rgba(34,197,94,0.15); color: #22c55e; }
.st-card-icon.avg { background: rgba(251,191,36,0.15); color: #fbbf24; }
.st-card-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.st-card-label { font-size: 0.75rem; color: var(--text-dim); }

/* Objectives */
.st-objectives {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 32px;
}
.st-objectives h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.st-obj-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.st-obj-input-wrap { display: flex; align-items: center; gap: 8px; }
.st-obj-input-wrap input {
    width: 100px; padding: 6px 10px; border-radius: 8px;
    background: var(--bg-main); border: 1px solid var(--border); color: var(--text);
    font-size: 0.85rem;
}
.st-obj-input-wrap span { color: var(--text-dim); font-size: 0.8rem; }
.st-obj-progress { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px; }
.st-obj-bar-wrap {
    flex: 1; height: 10px; background: rgba(255,255,255,0.06);
    border-radius: 5px; overflow: hidden;
}
.st-obj-bar {
    height: 100%; border-radius: 5px; transition: width 0.5s ease;
    background: var(--accent);
}
.st-obj-bar.half { background: #22c55e; }
.st-obj-bar.complete { background: linear-gradient(90deg, #22c55e, #fbbf24); }
.st-obj-text { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }

/* Charts */
.st-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.st-chart-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
}
.st-chart-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.st-chart-card canvas { height: 240px !important; }

/* Sessions table */
.st-sessions-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
}
.st-sessions-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.st-sessions-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th {
    text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-dim); padding: 8px 12px; border-bottom: 1px solid var(--border);
}
.st-table td {
    padding: 10px 12px; font-size: 0.85rem; color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.st-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Leaderboard Page ─────────────────────────────── */

.lb-page { padding: 120px 0 80px; }
.lb-hero { text-align: center; margin-bottom: 48px; }
.lb-hero h1 { font-size: 2.25rem; font-weight: 800; margin-top: 16px; }
.lb-hero p { color: var(--text-dim); max-width: 520px; margin: 12px auto 0; }

.lb-period-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.lb-tab {
    padding: 8px 20px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim);
    cursor: pointer; transition: all 0.2s;
}
.lb-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Podium */
.lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 20px; margin-bottom: 32px; padding: 0 40px;
}
.lb-podium-slot {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
}
.lb-podium-crown {
    position: absolute; top: -30px; animation: crownBounce 2s ease-in-out infinite;
}
@keyframes crownBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.lb-podium-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg-card); border: 3px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800; color: var(--text-dim);
}
.lb-podium-avatar.gold { border-color: #fbbf24; color: #fbbf24; }
.lb-podium-slot.second .lb-podium-avatar { border-color: #94a3b8; color: #94a3b8; }
.lb-podium-slot.third .lb-podium-avatar { border-color: #b45309; color: #b45309; }

.lb-podium-name {
    font-weight: 700; font-size: 0.9rem; color: var(--text); margin-top: 10px;
}
.lb-podium-score { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

.lb-podium-pillar {
    width: 100px; height: 80px; margin-top: 12px;
    background: linear-gradient(180deg, var(--bg-card), rgba(255,255,255,0.03));
    border: 1px solid var(--border); border-bottom: none;
    border-radius: 12px 12px 0 0;
}
.lb-podium-pillar.tall { height: 120px; background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(124,58,237,0.03)); border-color: rgba(124,58,237,0.3); }
.lb-podium-pillar.short { height: 56px; }

/* Reward banner */
.lb-reward {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    padding: 14px 24px; border-radius: var(--radius-lg);
    background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2);
    color: #fbbf24; font-size: 0.85rem; margin-bottom: 32px;
}
.lb-reward strong { color: #fde68a; }

/* Table */
.lb-table-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; max-width: 720px; margin: 0 auto;
}
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
    text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-dim); padding: 8px 14px; border-bottom: 1px solid var(--border);
}
.lb-table td {
    padding: 12px 14px; font-size: 0.9rem; color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lb-table tr:hover td { background: rgba(255,255,255,0.02); }
.lb-table tr.lb-top td { background: rgba(124,58,237,0.04); }

.lb-medal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 0.75rem;
}
.lb-medal.gold { background: rgba(251,191,36,0.2); color: #fbbf24; }
.lb-medal.silver { background: rgba(148,163,184,0.2); color: #94a3b8; }
.lb-medal.bronze { background: rgba(180,83,9,0.2); color: #b45309; }

.lb-loading, .lb-empty {
    text-align: center; padding: 40px; color: var(--text-dim);
}
.lb-spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .st-summary { grid-template-columns: 1fr 1fr; }
    .st-charts { grid-template-columns: 1fr; }
    .lb-podium { gap: 12px; padding: 0; }
    .lb-podium-pillar { width: 70px; }
}
@media (max-width: 640px) {
    .rm-timeline::before { left: 12px; }
    .rm-phase { padding-left: 40px; }
    .rm-hero h1 { font-size: 1.75rem; }
    .error-code span { font-size: 4rem; }
    .error-icon svg { width: 56px; height: 56px; }
    .dl-prereq-grid { grid-template-columns: 1fr; }
    .st-summary { grid-template-columns: 1fr; }
    .lb-podium-slot.second, .lb-podium-slot.third { display: none; }
}
