/* ═══════════════════════════════════════════════════
   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;
}

.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);
}

/* 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;
    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;
}
.btn-ctrl:active { transform: scale(0.96); }

.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); }
.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-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; }

.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 { 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(5, 1fr);
    gap: 12px;
    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); }

/* ── 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(3, 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; }
}
