/* ============================================================
   IndTraders.in — Institutional Option Analyzer
   Global CSS Design System — Dark Professional Theme
   ============================================================ */

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

/* ── CSS Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #0a0e1a;
  --bg-surface:    #0f1629;
  --bg-card:       #111827;
  --bg-card2:      #162030;
  --bg-input:      #1a2235;
  --bg-hover:      #1e2d45;

  /* Borders */
  --border:        #1e2d45;
  --border-light:  #253350;
  --border-focus:  #00d4ff;

  /* Accent Colors */
  --accent-cyan:   #00d4ff;
  --accent-green:  #00ff88;
  --accent-amber:  #fbbf24;
  --accent-red:    #ff4757;
  --accent-purple: #7c3aed;
  --accent-orange: #f97316;

  /* Text */
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --text-dim:      #334155;

  /* Signal Colors */
  --bullish:       #00ff88;
  --bearish:       #ff4757;
  --neutral:       #fbbf24;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #0a0e1a 0%, #0f1629 100%);
  --grad-card:     linear-gradient(145deg, #0f1629 0%, #111827 100%);
  --grad-accent:   linear-gradient(90deg, #00d4ff, #00ff88);
  --grad-bullish:  linear-gradient(90deg, #00ff8820, #00ff8808);
  --grad-bearish:  linear-gradient(90deg, #ff475720, #ff475708);

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.7);
  --shadow-glow-cyan:  0 0 20px rgba(0,212,255,0.15);
  --shadow-glow-green: 0 0 20px rgba(0,255,136,0.15);

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Spacing */
  --nav-h: 64px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.7; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  gap: 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #0a0e1a;
}
.navbar-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.navbar-links a {
  padding: 6px 14px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent-green);
}
.nav-live-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.nav-cta {
  background: var(--grad-accent);
  color: #0a0e1a !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--r-sm) !important;
}
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--r-md);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent);
  color: #0a0e1a;
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card:hover { border-color: var(--border-light); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--accent-cyan); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--accent-red); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.75rem; color: var(--accent-red); margin-top: 6px; display:none; }

/* ── Badge / Pills ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-bullish { background: rgba(0,255,136,0.12); color: var(--bullish); border: 1px solid rgba(0,255,136,0.3); }
.badge-bearish { background: rgba(255,71,87,0.12); color: var(--bearish); border: 1px solid rgba(255,71,87,0.3); }
.badge-neutral { background: rgba(251,191,36,0.12); color: var(--neutral); border: 1px solid rgba(251,191,36,0.3); }
.badge-premium { background: linear-gradient(90deg,rgba(0,212,255,0.15),rgba(0,255,136,0.15)); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.3); }
.badge-live { background: rgba(0,255,136,0.1); color: var(--accent-green); border: 1px solid rgba(0,255,136,0.3); }

/* ── Tables ──────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.data-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th:first-child { text-align: center; }
.data-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.data-table td:first-child { text-align: center; font-weight: 700; }
.data-table tbody tr:hover td { background: var(--bg-hover); }
.data-table .atm-row td { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.2); }
.data-table .atm-row td:first-child { color: var(--accent-cyan); }
.flow-buildup { color: var(--bullish); }
.flow-unwind  { color: var(--bearish); }
.flow-neutral { color: var(--text-muted); }
.oi-up   { color: var(--bullish); }
.oi-down { color: var(--bearish); }

/* ── Alert Banners ───────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: var(--neutral); }
.alert-danger  { background: rgba(255,71,87,0.1);  border: 1px solid rgba(255,71,87,0.3);  color: var(--bearish); animation: blink 1s step-start infinite; }
.alert-success { background: rgba(0,255,136,0.1);  border: 1px solid rgba(0,255,136,0.3);  color: var(--bullish); }
.alert-info    { background: rgba(0,212,255,0.1);  border: 1px solid rgba(0,212,255,0.3);  color: var(--accent-cyan); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ── Progress / Score Bars ───────────────────────────────────── */
.score-bar-wrap { margin-bottom: 8px; }
.score-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.score-bar-label { font-size: 0.75rem; color: var(--text-secondary); }
.score-bar-val   { font-size: 0.75rem; font-weight: 700; }
.score-bar-track {
  height: 6px; background: var(--bg-surface);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.score-high   { background: linear-gradient(90deg, #00ff8880, #00ff88); color: var(--bullish); }
.score-medium { background: linear-gradient(90deg, #fbbf2480, #fbbf24); color: var(--neutral); }
.score-low    { background: linear-gradient(90deg, #ff475780, #ff4757); color: var(--bearish); }

/* ── Signal Card ─────────────────────────────────────────────── */
.signal-card {
  background: linear-gradient(145deg, #0d1829, #111827);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.signal-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,212,255,0.04), transparent 60%);
  pointer-events: none;
}
.signal-card.bullish { border-color: rgba(0,255,136,0.2); }
.signal-card.bearish { border-color: rgba(255,71,87,0.2); }
.signal-card.animate {
  animation: card-pulse 3s ease-in-out infinite;
}
@keyframes card-pulse {
  0%,100% { box-shadow: none; }
  50%      { box-shadow: 0 0 20px rgba(0,212,255,0.1); }
}

/* ── Metric Cells (4-up grid) ────────────────────────────────── */
.metric-cell {
  background: rgba(15,22,41,0.8);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
}
.metric-cell-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.metric-cell-value { font-size: 0.9rem; font-weight: 700; }
.metric-cell-value.bullish-text { color: var(--bullish); }
.metric-cell-value.bearish-text { color: var(--bearish); }
.metric-cell-value.cyan-text    { color: var(--accent-cyan); }
.metric-cell-value.amber-text   { color: var(--neutral); }

/* ── Stats/Metrics Panel ─────────────────────────────────────── */
.metric-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.metric-stat-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-stat-value { font-size: 1.2rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.metric-stat-delta { font-size: 0.72rem; font-weight: 600; }
.delta-up   { color: var(--bullish); }
.delta-down { color: var(--bearish); }

/* ── Key Level Pills ─────────────────────────────────────────── */
.level-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 0.8rem;
}
.level-resistance { background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.2); }
.level-support    { background: rgba(0,255,136,0.08); border-color: rgba(0,255,136,0.2); }
.level-emrg-res   { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.2); }
.level-emrg-sup   { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.2); }
.level-label { font-weight: 600; color: var(--text-secondary); }
.level-value { font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn {
  padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  background: none; cursor: pointer;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 480px; width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-hover); border: none;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed; top: 80px; right: 16px;
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--bullish); }
.toast.error   { border-left: 3px solid var(--bearish); }
.toast.info    { border-left: 3px solid var(--accent-cyan); }
@keyframes toast-in { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(10,14,26,0.6);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit;
  z-index: 10;
}

/* ── Layout helpers ──────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(12px,3vw,32px); }
.page-content { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.flex    { display: flex; }
.flex-1  { flex: 1; }
.gap-2   { gap: 8px; }
.gap-3   { gap: 12px; }
.gap-4   { gap: 16px; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ── Section separators ──────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Pricing Cards ───────────────────────────────────────────── */
.pricing-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0,212,255,0.12);
}
.pricing-card.popular::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,212,255,0.05), transparent 60%);
  pointer-events: none;
}
.popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--grad-accent);
  color: #0a0e1a;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.price-amount {
  font-size: 2.5rem; font-weight: 800;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-striked {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.price-period { font-size: 0.8rem; color: var(--text-secondary); }
.price-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.price-features li::before {
  content: '✓';
  width: 18px; height: 18px;
  background: rgba(0,255,136,0.12);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 50%;
  font-size: 0.65rem; font-weight: 800; color: var(--bullish);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── UPI Payment section ─────────────────────────────────────── */
.upi-container {
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 28px;
  text-align: center;
}
.upi-qr-wrap {
  width: 180px; height: 180px;
  margin: 16px auto;
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.upi-qr-wrap img { width: 100%; height: 100%; }
.upi-id-copy {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer; transition: border-color 0.2s;
}
.upi-id-copy:hover { border-color: var(--accent-cyan); }

/* ── Landing page Hero ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(0,255,136,0.05) 0%, transparent 45%),
              var(--bg-base);
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}
.hero-title { margin-bottom: 20px; }
.hero-title .gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; }
.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-item { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-val { font-size: 1.5rem; font-weight: 800; background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); }
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Counter section ─────────────────────────────────────────── */
.counter-section { padding: 60px 0; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.counter-item { text-align: center; }
.counter-val {
  font-size: 2.5rem; font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.counter-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Feature Grid ────────────────────────────────────────────── */
.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-icon.cyan   { background: rgba(0,212,255,0.1); }
.feature-icon.green  { background: rgba(0,255,136,0.1); }
.feature-icon.amber  { background: rgba(251,191,36,0.1); }
.feature-icon.red    { background: rgba(255,71,87,0.1); }
.feature-icon.purple { background: rgba(124,58,237,0.1); }
.feature-icon.orange { background: rgba(249,115,22,0.1); }

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.testimonial-quote {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  position: relative;
}
.testimonial-quote::before { content: '"'; font-size: 3rem; color: var(--accent-cyan); opacity: 0.3; line-height: 0; vertical-align: -1rem; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: #0a0e1a;
  flex-shrink: 0;
}
.testimonial-name   { font-weight: 600; font-size: 0.85rem; }
.testimonial-handle { font-size: 0.75rem; color: var(--text-muted); }

/* ── Ticker tape ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 8px 0;
}
.ticker-inner {
  display: flex; gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.ticker-sym { color: var(--text-secondary); }
.ticker-price { color: var(--text-primary); }
.ticker-chg.pos { color: var(--bullish); }
.ticker-chg.neg { color: var(--bearish); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── User count badge ────────────────────────────────────────── */
.user-count-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-cyan);
}

/* ── Sticky CTA ──────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(9,13,24,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,212,255,0.06), transparent 50%), var(--bg-base);
  padding: 20px;
  padding-top: calc(var(--nav-h) + 20px);
}
.auth-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h2 { margin-bottom: 6px; }
.auth-header p { font-size: 0.88rem; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent-cyan); font-weight: 600; }

/* ── Dashboard layout ────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-section { margin-top: 16px; margin-bottom: 4px; padding: 0 8px; }
.sidebar-section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-item.active { background: rgba(0,212,255,0.08); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.15); }
.sidebar-item .icon { font-size: 16px; width: 20px; text-align: center; }
.dashboard-main { padding: 20px; overflow-x: auto; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { flex-direction: column; align-items: stretch; }
  .auth-card { padding: 24px; }
  .pricing-card { padding: 20px; }
  h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero-mockup { display: none; }
  .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .counter-item { padding: 0 8px; }
}

/* ── Anim utilities ──────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
