:root {
  --bg-primary: #08080C;
  --bg-secondary: #0E0E14;
  --bg-card: #14141C;
  --bg-card-hover: #1A1A26;
  --bg-glass: rgba(20, 20, 30, 0.6);
  --bg-glass-strong: rgba(12, 12, 20, 0.8);
  --text-primary: #EEEEF0;
  --text-secondary: #A0A0B4;
  --text-muted: #6A6A80;
  --accent: #FF9F0A;
  --accent-hover: #FFB033;
  --accent-dim: rgba(255, 159, 10, 0.12);
  --accent-glow: rgba(255, 159, 10, 0.25);
  --success: #00D68F;
  --success-dim: rgba(0, 214, 143, 0.12);
  --error: #FF4560;
  --error-dim: rgba(255, 69, 96, 0.12);
  --info: #5AC8FA;
  --info-dim: rgba(90, 200, 250, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 159, 10, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(255, 159, 10, 0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(8, 8, 12, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { background: rgba(8, 8, 12, 0.92); box-shadow: 0 1px 0 var(--border); }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.navbar-brand .logo-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--bg-primary); }
.navbar-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.navbar-links a { padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: all var(--transition); }
.navbar-links a:hover { color: var(--text-primary); background: var(--accent-dim); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; font-family: var(--font); border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-card); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); background: transparent; border: none; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.btn-icon:hover { color: var(--text-primary); background: var(--bg-card); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 32px 60px; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: orbFloat 12s ease-in-out infinite; }
.hero-bg .orb-1 { width: 600px; height: 600px; background: var(--accent); top: -10%; right: -5%; opacity: 0.15; }
.hero-bg .orb-2 { width: 400px; height: 400px; background: #5AC8FA; bottom: -10%; left: -5%; opacity: 0.1; animation-delay: -4s; }
.hero-bg .orb-3 { width: 300px; height: 300px; background: #00D68F; top: 40%; left: 30%; opacity: 0.08; animation-delay: -8s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,30px) scale(0.95); } }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: var(--accent-dim); border: 1px solid var(--border-accent); color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; animation: fadeUp 0.6s ease-out; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; animation: fadeUp 0.6s ease-out 0.1s both; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; animation: fadeUp 0.6s ease-out 0.2s both; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease-out 0.3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== GRID ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 24px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; line-height: 1.7; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition); position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-dim), transparent); opacity: 0; transition: opacity var(--transition); }
.card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; color: var(--accent); }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.card-highlight { border-color: var(--border-accent); }
.card-highlight::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* ===== PRICING ===== */
.pricing { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.pricing-card { flex: 1; min-width: 280px; max-width: 360px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: all var(--transition); position: relative; }
.pricing-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.pricing-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg-primary); font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: 100px; letter-spacing: 0.05em; }
.pricing-tier { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price .currency { font-size: 1.2rem; vertical-align: top; }
.pricing-price .period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: 700; }
.pricing-features .cross { color: var(--text-muted); }

/* ===== COMPARISON ===== */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th { text-align: left; padding: 12px 16px; color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--border); }
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.compare-table tr:hover td { background: rgba(255,255,255,0.01); }
.compare-table .check { color: var(--success); font-weight: 700; }
.compare-table .cross { color: var(--text-muted); }
.compare-badge { padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.compare-badge.yes { background: var(--success-dim); color: var(--success); }
.compare-badge.no { background: var(--error-dim); color: var(--error); }

/* ===== BENCHMARKS ===== */
.benchmark-bar { height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.benchmark-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width 1s ease-out; }
.benchmark-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.benchmark-label { width: 120px; font-size: 0.8rem; color: var(--text-secondary); flex-shrink: 0; }
.benchmark-value { width: 60px; font-size: 0.8rem; font-weight: 700; color: var(--accent); text-align: right; flex-shrink: 0; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 0.9rem;
  transition: all var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-dim); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--error); font-size: 0.78rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s ease; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; max-width: 480px; width: 100%; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal h2 { font-size: 1.3rem; margin-bottom: 8px; }
.modal p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ===== ALERT ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(0,214,143,0.2); }
.alert-error { background: var(--error-dim); color: var(--error); border: 1px solid rgba(255,69,96,0.2); }
.alert-info { background: var(--info-dim); color: var(--info); border: 1px solid rgba(90,200,250,0.2); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card { text-align: center; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== VIDEO PREVIEW ===== */
.video-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); }
.video-preview:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.video-preview .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-preview .play-btn svg { width: 64px; height: 64px; opacity: 0.9; transition: all var(--transition); }
.video-preview:hover .play-btn svg { transform: scale(1.1); opacity: 1; }
.video-preview .label { position: absolute; bottom: 12px; left: 12px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 20px 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-secondary); font-size: 0.875rem; transition: all var(--transition); border-left: 3px solid transparent; }
.sidebar-nav li a:hover, .sidebar-nav li a.active { color: var(--text-primary); background: var(--accent-dim); border-left-color: var(--accent); }
.sidebar-nav li a .nav-icon { width: 18px; text-align: center; font-size: 0.9rem; }
.main-content { padding: 32px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; }
.page-header-actions { display: flex; gap: 10px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 12px 16px; background: var(--bg-secondary); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.01); }
.badge { padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-active { background: var(--success-dim); color: var(--success); }
.badge-pending { background: var(--accent-dim); color: var(--accent); }
.badge-rejected { background: var(--error-dim); color: var(--error); }
.badge-suspended { background: var(--error-dim); color: var(--error); }
.badge-free { background: var(--info-dim); color: var(--info); }

/* ===== LOGIN PAGE ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg-primary); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-card .logo { text-align: center; margin-bottom: 32px; }
.auth-card .logo-icon { width: 48px; height: 48px; background: var(--accent); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: var(--bg-primary); margin-bottom: 12px; }
.auth-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: 4px; }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }

/* ===== UTILITY ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 0.4s ease; }
.stagger-children > * { opacity: 0; transform: translateY(20px); animation: fadeUp 0.5s ease-out forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .navbar-links { display: none; }
  .hero { padding: 80px 16px 40px; }
  .section { padding: 60px 16px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .auth-card { padding: 32px 24px; }
}

/* ===== LOADING ===== */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: rgba(8,8,12,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(4px); }
.loading-overlay .spinner { width: 40px; height: 40px; border-width: 3px; }

/* ===== STEP INDICATOR ===== */
.steps { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; position: relative; padding-top: 32px; }
.step::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--border); }
.step::after { content: attr(data-step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); z-index: 1; }
.step.active::after { background: var(--accent); border-color: var(--accent); color: var(--bg-primary); }
.step.done::after { background: var(--success); border-color: var(--success); color: var(--bg-primary); }
.step.active .step-label { color: var(--accent); font-weight: 600; }
.step-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

.feature-icon { display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,rgba(255,159,10,0.15),rgba(90,200,250,0.1));font-size:0.75rem;font-weight:800;color:var(--accent);letter-spacing:0.5px;margin-bottom:12px; }