/* ============================================
   AI Gateway — Claude Code Unlimited
   Modern Dark Theme with Video BG
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-h: rgba(255,255,255,0.15);
    --text: #f0f0f5;
    --text2: #9999aa;
    --text3: #555566;
    --accent: #6366f1;
    --accent2: #8b5cf6;
    --accent3: #06b6d4;
    --glow: rgba(99,102,241,0.3);
    --green: #10b981;
    --grad: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    --grad-card: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --ease: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* Gradient text utility */
.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 75%);
}

.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--ease);
}
.nav.scrolled {
    padding: 10px 0;
    background: rgba(10,10,15,0.95);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}
.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    transition: var(--ease);
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
}
.nav-cta:hover { background: var(--accent2); }
.nav-cta::after { display: none; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    z-index: 1;
}

/* Hero Video */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
}
.hero-video-grain {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(6,182,212,0.1) 0%, transparent 50%);
}

/* Glow effects */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.35), transparent);
    top: -200px; right: -100px;
    animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.25), transparent);
    bottom: -100px; left: -100px;
    animation: floatGlow 8s ease-in-out infinite -4s;
}
.hero-glow-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: floatGlow 8s ease-in-out infinite -2s;
}
@keyframes floatGlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title-line { display: block; }
.hero-title-gradient {
    display: block;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-h);
}
.btn-outline-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    transition: var(--ease);
    font-family: inherit;
}
.btn-outline-full:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.hero-stat-sfx {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent3);
}
.hero-stat-inf {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 2px;
}
.hero-stat-sep {
    width: 1px; height: 40px;
    background: var(--border);
}

/* ============================================
   TERMINAL
   ============================================ */
.terminal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}
.terminal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.td { width: 10px; height: 10px; border-radius: 50%; }
.td-r { background: #ef4444; }
.td-y { background: #eab308; }
.td-g { background: #22c55e; }
.terminal-title {
    font-size: 0.8rem;
    color: var(--text3);
    font-family: 'JetBrains Mono', monospace;
}
.terminal-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99,102,241,0.15);
    padding: 2px 8px;
    border-radius: 4px;
}
.terminal-body {
    padding: 20px;
    overflow-x: auto;
}
.terminal-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}
.code-line {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}
.ln {
    color: var(--text3);
    user-select: none;
    min-width: 20px;
    text-align: right;
}
.cc { color: #6b7280; }
.ck { color: #c084fc; }
.ct { color: #67e8f9; }
.cp { color: #67e8f9; }
.cs { color: #86efac; }
.cl { color: #fbbf24; }
.cg { color: #22c55e; font-weight: 600; }

.typing-line {
    opacity: 0;
    animation: typeIn 0.6s ease forwards;
}
#typeLine1 { animation-delay: 1.5s; }
#typeLine2 { animation-delay: 2.2s; }
@keyframes typeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.terminal-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    margin-top: 4px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Floating Cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(17,17,24,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}
.float-card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.float-card-2 { bottom: 15%; left: -20px; animation-delay: -3s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.fc-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
}
.fc-green { background: rgba(16,185,129,0.15); color: var(--green); }
.fc-blue { background: rgba(6,182,212,0.15); color: var(--accent3); }
.fc-info { display: flex; flex-direction: column; }
.fc-val { font-size: 0.85rem; font-weight: 700; }
.fc-lbl { font-size: 0.7rem; color: var(--text3); }

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-dot {
    width: 3px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   HERO VISUAL (right side with terminal)
   ============================================ */
.hero-visual {
    position: relative;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.social-proof {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,15,0.5);
}
.social-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.social-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.social-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text3);
    opacity: 0.5;
    transition: var(--ease);
}
.social-logo:hover { opacity: 0.8; }

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-head {
    text-align: center;
    margin-bottom: 60px;
}
.section-badge {
    display: inline-block;
    background: rgba(99,102,241,0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99,102,241,0.2);
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--text2);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: var(--ease);
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-h);
    transform: translateY(-4px);
}
.feature-card-lg {
    grid-column: span 1;
}
.feature-visual {
    margin-bottom: 20px;
}
.model-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.model-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text2);
    transition: var(--ease);
}
.model-pill.active {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
    color: var(--accent);
}
.pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text3);
}
.model-pill.active .pill-dot {
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}
.feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border-radius: var(--r-md);
    margin-bottom: 20px;
    color: var(--accent);
}
.feature-info h3,
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-info p,
.feature-card p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg2);
}
.steps {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    justify-content: center;
}
.step {
    flex: 1;
    max-width: 300px;
}
.step-num-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}
.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 2px;
    min-width: 40px;
}
.step-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-body p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}
.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: var(--ease);
    position: relative;
}
.pricing-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}
.pricing-featured {
    background: var(--grad-card);
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--glow);
    transform: scale(1.02);
}
.pricing-featured:hover {
    transform: scale(1.03) translateY(-4px);
}
.pricing-popular {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-card-head { margin-bottom: 24px; }
.pricing-card-head h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pricing-card-head p {
    color: var(--text3);
    font-size: 0.85rem;
}
.pricing-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.pricing-cur {
    font-size: 1rem;
    color: var(--text2);
    font-weight: 600;
}
.pricing-val {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-per {
    font-size: 0.9rem;
    color: var(--text3);
}
.pricing-custom {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-list {
    margin-bottom: 24px;
}
.pricing-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text2);
}
.pricing-check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg2);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--ease);
}
.faq-item:hover { border-color: var(--border-h); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--bg-card);
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--ease);
    font-family: inherit;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text3);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-a {
    max-height: 300px;
}
.faq-a p {
    padding: 18px 24px;
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    overflow: hidden;
}
.cta-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.cta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
}
.cta-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.15) 0%, var(--bg) 70%);
}
.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.2), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 40px;
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--glow), transparent 70%);
    pointer-events: none;
}
.cta-content .section-title { position: relative; }
.cta-content .section-subtitle { position: relative; margin-bottom: 32px; }
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-desc {
    color: var(--text3);
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text3);
    font-size: 0.85rem;
    transition: var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text3);
    font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features-grid, .pricing-row, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { flex-direction: column; align-items: center; }
    .step-line { display: none; }
    .float-card { display: none; }
    .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
    .showcase-content { text-align: center; }
    .showcase-features { align-items: center; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg2);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.open { display: flex; }
    .nav-burger { display: flex; }
    .features-grid, .pricing-row, .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat-sep { width: 40px; height: 1px; }
    .footer-top { flex-direction: column; }
    .footer-links { gap: 32px; }
    .cta-content { padding: 40px 20px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .hero-visual { order: -1; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
    .social-logos { gap: 24px; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: var(--ease);
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.testimonial-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #f59e0b;
    font-size: 0.85rem;
}
.testimonial-text {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-info { display: flex; flex-direction: column; }
.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.testimonial-role {
    font-size: 0.75rem;
    color: var(--text3);
}

/* ============================================
   CODE SHOWCASE SECTION
   ============================================ */
.showcase {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg2);
}
.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.showcase-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.showcase-content p {
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.showcase-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.showcase-feat-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16,185,129,0.1);
    border-radius: var(--r-sm);
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}
.showcase-feat-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.showcase-feat-text p {
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 0;
    line-height: 1.5;
}

.showcase-terminal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.showcase-term-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.showcase-term-title {
    font-size: 0.8rem;
    color: var(--text3);
    font-family: 'JetBrains Mono', monospace;
}
.showcase-term-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.9;
    overflow-x: auto;
}
.sh-comment { color: #6b7280; }
.sh-cmd { color: #86efac; }
.sh-flag { color: #fbbf24; }
.sh-string { color: #c084fc; }
.sh-output { color: #67e8f9; }
.sh-success { color: #22c55e; font-weight: 600; }

/* ============================================
   MARQUEE BANNER
   ============================================ */
.marquee-section {
    position: relative;
    z-index: 1;
    padding: 24px 0;
    background: rgba(99,102,241,0.05);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text2);
    white-space: nowrap;
}
.marquee-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* Shimmer effect on feature cards */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: none;
    pointer-events: none;
}
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card:hover::after {
    animation: shimmer 0.8s ease forwards;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Glow border on hover for pricing cards */
.pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    background: var(--grad);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.pricing-card:hover::before {
    opacity: 0.3;
}

/* Smooth page load */
@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
body {
    animation: pageIn 0.5s ease;
}

/* Selection color */
::selection {
    background: rgba(99,102,241,0.4);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Button ripple */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:active::after {
    opacity: 1;
}

/* Gradient border glow for featured pricing */
.pricing-featured {
    position: relative;
}
.pricing-featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    background: var(--grad);
    z-index: -1;
    opacity: 0.5;
    filter: blur(1px);
    animation: borderPulse 3s ease-in-out infinite;
}
@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Floating label animation */
.hero-badge {
    animation: badgeIn 0.8s ease forwards;
}
@keyframes badgeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Stats glow on hover */
.hero-stat:hover .hero-stat-val {
    text-shadow: 0 0 20px rgba(99,102,241,0.5);
    transition: text-shadow 0.3s ease;
}

/* Smooth section transitions */
.features, .how, .pricing, .faq, .cta-section, .testimonials, .showcase {
    position: relative;
}
.features::before, .pricing::before, .testimonials::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Navigation active indicator */
.nav-link.active {
    color: var(--text);
}
.nav-link.active::after {
    transform: scaleX(1);
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15), rgba(6,182,212,0.15));
    border-bottom: 1px solid rgba(99,102,241,0.3);
    padding: 8px 0;
    animation: promoSlide 0.5s ease;
}
@keyframes promoSlide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.promo-banner.hidden {
    display: none;
}
.promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.promo-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.promo-text {
    font-size: 0.8rem;
    color: var(--text);
}
.promo-text strong {
    color: var(--accent3);
    font-family: 'JetBrains Mono', monospace;
}
.promo-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid rgba(245,158,11,0.2);
}
.promo-close {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: auto;
}
.promo-close:hover { color: var(--text); }

/* Adjust nav when promo is visible */
.promo-banner + .video-bg + .particle-canvas + .nav,
body:not(.promo-closed) .nav {
    top: 38px;
}
body.promo-closed .nav {
    top: 0;
}
@media (max-width: 640px) {
    .promo-timer { display: none; }
}

/* ============================================
   LOGIN BUTTON IN NAV
   ============================================ */
.nav-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    font-size: 0.8rem !important;
    color: var(--text2) !important;
    transition: var(--ease) !important;
}
.nav-login-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.nav-login-btn::after { display: none !important; }
.nav-login-btn svg { flex-shrink: 0; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text3);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--ease);
}
.modal-close:hover { background: var(--bg-card); color: var(--text); }
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.modal-logo {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border-radius: var(--r-md);
}
.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.modal-header p {
    color: var(--text3);
    font-size: 0.85rem;
}
.modal-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--r-sm);
    padding: 4px;
    margin-bottom: 24px;
}
.modal-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: var(--text3);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--ease);
    font-family: inherit;
}
.modal-tab.active {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--ease);
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group input::placeholder { color: var(--text3); }
.form-error {
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 16px;
}
.input-wrap {
    position: relative;
}
.input-wrap input { padding-right: 44px; }
.input-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text2);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
}
.form-link {
    font-size: 0.8rem;
    color: var(--accent);
    transition: var(--ease);
}
.form-link:hover { color: var(--accent2); text-decoration: underline; }
.form-divider {
    text-align: center;
    position: relative;
    color: var(--text3);
    font-size: 0.8rem;
}
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* Google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--ease);
}
.btn-google:hover { background: var(--bg-card-hover); border-color: var(--border-h); }

/* Password strength */
.password-strength {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.password-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* ============================================
   WHY BUY SECTION
   ============================================ */
.why-buy {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    text-align: center;
    transition: var(--ease);
    position: relative;
}
.why-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}
.why-card-best {
    background: var(--grad-card);
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--glow);
    transform: scale(1.02);
}
.why-card-best:hover { transform: scale(1.03) translateY(-4px); }
.why-best-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}
.why-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md);
}
.why-icon-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.why-icon-green { background: rgba(16,185,129,0.1); color: #10b981; }
.why-icon-yellow { background: rgba(245,158,11,0.1); color: #f59e0b; }
.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.why-price {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}
.why-price span { font-size: 0.8rem; font-weight: 400; color: var(--text3); }
.why-price-good {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.why-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.why-list li {
    font-size: 0.85rem;
    padding-left: 24px;
    position: relative;
}
.why-good::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}
.why-bad::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}
.why-cta {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: var(--text2);
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg2);
}
.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    text-align: center;
    transition: var(--ease);
}
.payment-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}
.payment-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border-radius: var(--r-md);
    color: var(--accent);
}
.payment-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.payment-card p {
    font-size: 0.8rem;
    color: var(--text3);
    line-height: 1.5;
    margin-bottom: 12px;
}
.payment-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(16,185,129,0.1);
    padding: 3px 10px;
    border-radius: 100px;
}
.payment-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text2);
}

/* ============================================
   PRICING ORIGINAL PRICE
   ============================================ */
.pricing-original {
    font-size: 0.85rem;
    color: var(--text3);
    text-decoration: line-through;
    margin-bottom: 16px;
    margin-top: -16px;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}
.dashboard-body .video-bg,
.dashboard-body .particle-canvas {
    display: none;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 4px;
}
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text2);
    transition: var(--ease);
}
.sidebar-link:hover { background: var(--bg-card); color: var(--text); }
.sidebar-link.active {
    background: rgba(99,102,241,0.1);
    color: var(--accent);
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-email {
    font-size: 0.7rem;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text3);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--ease);
}
.sidebar-logout:hover { border-color: #ef4444; color: #ef4444; }

/* Main content */
.dash-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    position: relative;
    z-index: 1;
    background: var(--bg);
    min-height: 100vh;
}
.dash-mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.dash-mobile-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.dash-section { display: none; }
.dash-section.active { display: block; }

.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.dash-subtitle {
    font-size: 0.9rem;
    color: var(--text3);
}
.dash-section-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 16px;
}
.dash-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}
.dash-status-active {
    background: rgba(16,185,129,0.1);
    color: var(--green);
}
.dash-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

/* Stats grid */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dash-stat-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.dash-stat-icon-blue { background: rgba(99,102,241,0.1); color: var(--accent); }
.dash-stat-icon-green { background: rgba(16,185,129,0.1); color: var(--green); }
.dash-stat-icon-purple { background: rgba(139,92,246,0.1); color: var(--accent2); }
.dash-stat-icon-yellow { background: rgba(245,158,11,0.1); color: #f59e0b; }
.dash-stat-info { display: flex; flex-direction: column; }
.dash-stat-label { font-size: 0.75rem; color: var(--text3); margin-bottom: 2px; }
.dash-stat-value { font-size: 1.1rem; font-weight: 700; }

/* Cards */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.dash-card-danger { border-color: rgba(239,68,68,0.3); }
.dash-card-danger p { color: var(--text3); font-size: 0.85rem; margin-bottom: 16px; }
.dash-card-danger .btn-danger { border-color: #ef4444; color: #ef4444; }
.dash-card-danger .btn-danger:hover { background: #ef4444; color: #fff; }
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dash-card-header h3 { font-size: 1rem; font-weight: 700; }

/* Usage chart */
.usage-chart { padding: 20px 0; }
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
}
.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}
.chart-bar {
    width: 100%;
    max-width: 48px;
    background: var(--grad);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}
.chart-bar-group span {
    font-size: 0.7rem;
    color: var(--text3);
}

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.activity-dot-green { background: var(--green); }
.activity-dot-blue { background: var(--accent); }
.activity-dot-yellow { background: #f59e0b; }
.activity-info { display: flex; flex-direction: column; }
.activity-text { font-size: 0.85rem; }
.activity-time { font-size: 0.75rem; color: var(--text3); }

/* Tables */
.dash-table-wrap { overflow-x: auto; }
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.dash-table th, .dash-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.dash-table th {
    font-weight: 600;
    color: var(--text3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-table td { color: var(--text2); }
.table-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}
.table-badge-green { background: rgba(16,185,129,0.1); color: var(--green); }

/* API Keys */
.apikey-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.apikey-card {}
.apikey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.apikey-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.apikey-created { font-size: 0.75rem; color: var(--text3); }
.apikey-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.apikey-status-active { background: rgba(16,185,129,0.1); color: var(--green); }
.apikey-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
}
.apikey-value code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text2);
}
.btn-copy {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 4px;
    transition: var(--ease);
}
.btn-copy:hover { color: var(--accent); }
.btn-copy.copied { color: var(--green); }
.apikey-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text3);
    margin-bottom: 12px;
}
.apikey-actions {
    display: flex;
    gap: 8px;
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { color: #ef4444 !important; border-color: rgba(239,68,68,0.3) !important; }
.btn-danger:hover { background: rgba(239,68,68,0.1) !important; }

.apikey-setup h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.setup-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px;
}
.sh-cmd { color: #86efac; }
.sh-flag { color: #fbbf24; }
.sh-string { color: #c084fc; }

/* Usage bars */
.usage-model-list { display: flex; flex-direction: column; gap: 16px; }
.usage-model-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.usage-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.usage-bar-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Subscription */
.sub-current-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.sub-current-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.sub-current-header p { font-size: 0.85rem; color: var(--text3); }
.sub-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.sub-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text2);
}
.sub-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Saved payment */
.saved-payment { display: flex; flex-direction: column; gap: 12px; }
.saved-payment-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.saved-payment-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1);
    border-radius: var(--r-sm);
    color: var(--accent);
    flex-shrink: 0;
}
.saved-payment-name { font-size: 0.9rem; font-weight: 600; }
.saved-payment-detail { font-size: 0.75rem; color: var(--text3); display: block; }
.saved-payment-default {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(16,185,129,0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

/* Settings */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}
.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text2);
    cursor: pointer;
}
.toggle-input { display: none; }
.toggle-slider {
    width: 44px; height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: var(--ease);
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text3);
    top: 3px; left: 3px;
    transition: var(--ease);
}
.toggle-input:checked + .toggle-slider {
    background: var(--accent);
}
.toggle-input:checked + .toggle-slider::after {
    transform: translateX(20px);
    background: #fff;
}

/* Dashboard responsive */
@media (max-width: 1024px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .payment-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .why-card-best { transform: none; }
    .why-card-best:hover { transform: translateY(-4px); }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; padding: 20px; }
    .dash-mobile-header { display: flex; }
    .dash-stats { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .sub-features { grid-template-columns: 1fr; }
}

/* ── Daily Quota Progress Bar ────────────────── */
.quota-progress-wrap { padding: 4px 0 0; }
.quota-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.quota-percent {
    font-weight: 600;
    color: var(--text);
}
.quota-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    overflow: hidden;
}
.quota-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--gradient);
    transition: width 0.6s ease, background 0.3s;
}
.quota-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.dash-quota-reset {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.plan-card-upgrade {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--surface);
}
.plan-card-upgrade .plan-name { font-weight: 600; font-size: 1rem; }
.plan-card-upgrade .plan-price { font-size: 1.4rem; font-weight: 700; }
.plan-card-upgrade .plan-price span { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.plan-card-upgrade .plan-features { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
