/* ─────────────────────────────────────────
   ChartSense AI — Premium Trading UI
───────────────────────────────────────── */

:root {
  --bg:          #020617; /* Elite Deep Slate */
  --bg-darker:   #01040a;
  --surface:     rgba(15, 23, 42, 0.65);
  --surface-top: rgba(30, 41, 59, 0.5);
  --border:      rgba(255, 255, 255, 0.06);
  --border-neon: rgba(16, 185, 129, 0.35); /* Neon Green Border */
  --border-pro:  rgba(139, 92, 246, 0.35); /* Pro Purple Border */

  --green:       #00e5a0;
  --green-dim:   rgba(0,229,160,0.15);
  --red:         #ff4d6a;
  --red-dim:     rgba(255,77,106,0.15);
  --yellow:      #ffd166;
  --yellow-dim:  rgba(255,209,102,0.15);
  --blue:        #4a9eff;
  --blue-dim:    rgba(74,158,255,0.15);
  --purple:      #a78bfa;

  --text:        #e8edf5;
  --text-muted:  #7a8499;
  --text-dim:    #4a5568;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Market Pulse Ticker */
.ticker-bar {
  background: var(--green-dim);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding: 6px 0;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 40s linear infinite;
  color: var(--green);
}
.ticker-item { margin-right: 40px; }
.ticker-item span { color: #fff; font-weight: 800; }
@keyframes ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-100%,0,0); } }

/* Elite Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { 
  font-size: 13px; 
  font-weight: 600; 
  color: #94a3b8; 
  text-decoration: none; 
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: #fff; }
.nav-link i { font-size: 10px; opacity: 0.5; }

.btn-cta {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5); }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 50%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* ─── UTILITIES ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

.glass-card {
  background: rgba(13, 18, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 10px 40px -10px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border 0.3s ease;
}
.glass-card:hover { border-color: rgba(255,255,255,0.12); }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #7a8499 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface2); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; }
.logo-text span { 
  background: linear-gradient(135deg, #ec4899, #8b5cf6); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  margin-left: 2px;
}

/* Institutional Side-Bar (V4) */
.dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}
.sidebar-stats {
  background: #020617; /* Solid background to prevent overlap bleed */
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 120px;
  width: 280px; 
  z-index: 100;
  align-self: start;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 1100px) {
  .sidebar-stats { position: relative; width: 100%; top: 0; left: 0; margin-bottom: 24px; box-shadow: none; border-radius: 20px; }
}

/* Institutional Side-Bar (V5 Final Stable) */
.dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}

@media (max-width: 1100px) {
  .dashboard-container { display: block; margin: 20px auto; padding: 0 20px; }
}
.stat-item { margin-bottom: 24px; }
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.stat-value { font-size: 20px; font-weight: 700; color: #fff; }
.stat-trend { font-size: 12px; color: var(--green); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
/* Health Dot (Diagnostics) */
.health-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 5px var(--text-dim);
  margin-left: 2px;
  transition: all 0.4s;
}
.health-dot.ok { background: var(--green); box-shadow: 0 0 10px var(--green); }
.health-dot.err { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse-red 1s infinite; }

@keyframes pulse-red {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Settings button */
.btn-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-settings:hover { color: var(--text); border-color: var(--blue); background: rgba(74,158,255,0.1); }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74,158,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.3);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px); /* Reduced from 76px to fit 2-pane */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 auto 24px;
  max-width: 800px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.free-badge {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.hero-trust {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.trust-separator { color: var(--border); opacity: 0.5; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.stat { text-align: center; padding: 0 32px; }
.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border2); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(37,99,235,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { font-size: 17px; padding: 14px 32px; border-radius: 10px; }
.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-full { width: 100%; }

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

/* ─── ANALYZER ─── */
.analyzer-section { padding: 40px 0 80px; }

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

.input-panel, .results-panel { padding: 28px; }

.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Drop zone */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-dim);
}
.dropzone.has-image { border-style: solid; border-color: var(--green); }
.dropzone-inner { text-align: center; padding: 32px 20px; pointer-events: none; }
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-text { font-weight: 500; color: var(--text); margin-bottom: 6px; }
.drop-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.drop-link { color: var(--blue); text-decoration: underline; }
.drop-formats { font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  padding: 8px;
  border-radius: var(--radius);
}

/* Meta inputs */
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.input-group input, .input-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 10px 12px;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input-group input:focus, .input-group select:focus { border-color: var(--blue); }
.input-group select option { 
  background: #0a0a0f; 
  color: #e0e0e0; 
  padding: 10px;
}

/* Credits bar */
.credits-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.credits-label { color: var(--text-muted); }
.credits-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--green);
  font-size: 15px;
}
.credits-count.out { color: var(--red); }

/* Analyze button */
.btn-analyze {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green) 0%, #00b37a 100%);
  color: #0a1a12;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,229,160,0.3);
}
.btn-analyze:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,229,160,0.45); }
.btn-analyze:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* AI Scanning Terminal */
.terminal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 32px;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  border-radius: var(--radius);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--green);
  font-size: 14px;
}
.terminal-body {
  flex: 1;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  white-space: pre-wrap;
}
.term-line { margin-bottom: 4px; animation: termFade 0.2s ease-out both; }
@keyframes termFade { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }

.results-content { 
  position: relative;
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; 
  box-shadow: 0 0 80px -20px rgba(16, 185, 129, 0.05); /* Subtle result glow */
  overflow: hidden;
}

.verified-badge-wrap { display: flex; align-items: center; margin-left: auto; }
.verified-badge {
  display: flex; align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.verified-pulse {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: verified-pulse 2s infinite;
}
@keyframes verified-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.reveal-1 { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: 0.1s; }
.reveal-2 { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: 0.2s; }
.reveal-3 { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: 0.3s; }
.reveal-4 { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: 0.4s; }
.reveal-5 { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: 0.5s; }

/* Verdict row */
.verdict-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.verdict-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: 12px;
  letter-spacing: 3px;
  min-width: 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase;
}

.verdict-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: linear-gradient(135deg, white, transparent);
}

.verdict-badge.buy  { 
  background: var(--green-dim); 
  color: var(--green); 
  border: 1px solid var(--green); 
  box-shadow: 0 0 30px rgba(0,229,160,0.4), inset 0 0 15px rgba(0,229,160,0.2);
  text-shadow: 0 0 12px rgba(0,229,160,0.6);
}
.verdict-badge.sell { 
  background: var(--red-dim);   
  color: var(--red);   
  border: 1px solid var(--red);   
  box-shadow: 0 0 30px rgba(255,77,106,0.4), inset 0 0 15px rgba(255,77,106,0.2);
  text-shadow: 0 0 12px rgba(255,77,106,0.6);
}
.verdict-badge.hold { 
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid var(--yellow);
  box-shadow: 0 0 30px rgba(255,209,102,0.4), inset 0 0 15px rgba(255,209,102,0.2);
  text-shadow: 0 0 12px rgba(255,209,102,0.6);
}

.verdict-meta { flex: 1; }
.verdict-ticker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.verdict-tf { font-size: 12px; color: var(--text-muted); }

/* Confidence & RR Gauges */
.confidence-ring-wrap, .rr-ring-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.confidence-ring, .rr-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 4; }
.ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
  filter: drop-shadow(0 0 5px var(--green));
}
.confidence-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

/* Signals */
.section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #71717a; /* Muted Slate */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before { content: ''; width: 3px; height: 12px; background: var(--green); border-radius: 10px; }
.signals-section, .levels-section, .reasoning-section { margin-bottom: 20px; }
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pill:hover { transform: translateY(-1px) scale(1.05); }

.pill.bullish { 
  background: rgba(16, 185, 129, 0.1); 
  color: #10b981; 
  border: 1px solid rgba(16, 185, 129, 0.4); 
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.pill.bearish { 
  background: rgba(244, 63, 94, 0.1); 
  color: #f43f5e; 
  border: 1px solid rgba(244, 63, 94, 0.4); 
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}
.pill.neutral { 
  background: rgba(99, 102, 241, 0.1); 
  color: #6366f1; 
  border: 1px solid rgba(99, 102, 241, 0.4); 
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}
.pill.caution { 
  background: rgba(245, 158, 11, 0.1); 
  color: #f59e0b; 
  border: 1px solid rgba(245, 158, 11, 0.4); 
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Price levels */
.levels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.level-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.level-value { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; color: var(--text); }
.level-item.support .level-value { color: var(--green); }
.level-item.resistance .level-value { color: var(--red); }

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
}
.metric-card:hover { border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.02); }
.metric-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #71717a; margin-bottom: 4px; }
.metric-value { font-size: 13px; font-weight: 700; color: #fff; }
.metric-value.bull { color: #10b981; }
.metric-value.bear { color: #f43f5e; }

/* Pricing Section */
.pricing-section { padding: 100px 0; border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
}
.price-card.featured {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}
.price-tag { font-size: 40px; font-weight: 800; margin: 20px 0; font-family: 'Space Grotesk'; }
.price-tag span { font-size: 16px; opacity: 0.5; }
.price-features { list-style: none; padding: 0; margin-bottom: 32px; text-align: left; }
.price-features li { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 800; }
.level-item.target .level-value { color: var(--blue); }
.level-item.stop .level-value { color: var(--yellow); }

/* Reasoning */
.reasoning-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Risk */
.risk-row {
  background: var(--yellow-dim);
  border: 1px solid rgba(255,209,102,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── HOW IT WORKS ─── */
.how-section { padding: 80px 0; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── PRICING ─── */
.pricing-section { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
.pricing-card { padding: 32px; position: relative; transition: transform var(--transition); }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border: 1px solid var(--blue);
  background: rgba(30, 58, 138, 0.1);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
}
.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
}
.price-period { font-size: 14px; color: var(--text-dim); font-weight: normal; }
.money-back { font-size: 11px; color: var(--text-dim); margin-top: 16px; font-style: italic; }
.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-decimal { font-size: 28px; }
.plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; color: var(--text-muted); }
.plan-features li:has(:not(✗)) { color: var(--text); }

/* ─── SCREENER ENHANCEMENTS (V5) ─── */
.screener-table tr { transition: background 0.3s ease; }
.price-flash-up { animation: flash-green 1s ease-out; }
.price-flash-down { animation: flash-red 1s ease-out; }

@keyframes flash-green {
  0% { background: rgba(0, 229, 160, 0.2); }
  100% { background: transparent; }
}
@keyframes flash-red {
  0% { background: rgba(255, 77, 106, 0.2); }
  100% { background: transparent; }
}

.signal-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.signal-badge.buy { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.signal-badge.sell { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.signal-badge.neutral { background: var(--surface-top); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── TRADE ARCHITECT V5 ─── */
.order-ticket {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid var(--border-pro);
  position: relative;
  overflow: hidden;
}
.order-ticket::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

/* ─── MOBILE RESPONSIVENESS (V5) ─── */
@media (max-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sidebar-stats {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 24px;
  }
  
  .analyzer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }
  
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-sub {
    font-size: 16px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .price-card.featured {
    transform: scale(1);
    margin: 20px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

.mobile-toggle {
  display: none;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.modal-form input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 12px;
  outline: none;
  transition: border-color var(--transition);
}
.modal-form input:focus { border-color: var(--blue); }

.modal-footer { font-size: 13px; color: var(--text-muted); }
.modal-footer .link-btn { font-size: 13px; }

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Auth Modal Specifics */
.auth-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.btn-google {
  background: #4285f4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-google:hover { background: #357ae8; }

.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  margin: 20px 0;
}
.auth-separator::before, .auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-separator:not(:empty)::before { margin-right: .5em; }
.auth-separator:not(:empty)::after { margin-left: .5em; }

/* Checkout Modal Specifics */
.billing-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.billing-option {
  flex: 1;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.billing-option.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}
.billing-option.yearly .save-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--green);
  color: #0a1a12;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.price-display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.price-display span { font-size: 24px; opacity: 0.7; }
.price-period-text { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.secure-checkout-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* Success Modal Specifics */
.success-modal-content {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 229, 160, 0.2));
  border: 1px solid var(--border-pro);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}

.success-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ─── PREMIUM ANIMATIONS (V5) ─── */
.loading-redirect {
  overflow: hidden;
}

.loading-redirect::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  backdrop-filter: blur(12px);
  z-index: 99999;
  animation: overlayFadeIn 0.5s ease-out forwards;
}

.loading-redirect::after {
  content: 'ESTABLISHING SECURE GATEWAY...';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  z-index: 100000;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation: premiumPulse 2s infinite ease-in-out;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes premiumPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.98); filter: blur(1px); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0px); }
}

/* Pro Active Shimmer Effect */
.pro-active {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1)) !important;
  background-size: 200% 100% !important;
  animation: shimmer 3s infinite linear !important;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.pro-active::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.3);
  pointer-events: none;
}

.pro-active-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--purple);
  color: var(--purple);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  text-transform: uppercase;
}

/* Micro-Interactions */
.btn-primary, .btn-analyze, .btn-cta {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover, .btn-analyze:hover, .btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.glass-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.pro-active-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.pro-badge-inline {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  animation: pulse-pro 2s infinite alternate;
  white-space: nowrap;
}

@keyframes pulse-pro {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.05); opacity: 1; }
}

.infinity-symbol {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px var(--purple), 0 0 20px var(--purple);
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  width: 30px; height: 30px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-desc a { color: var(--blue); }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.api-status {
  margin-top: 14px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.api-status.ok { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,229,160,0.2); }
.api-status.err { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,77,106,0.2); }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-disc {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
}
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ─── EXAMPLES ─── */
.examples-section { padding: 100px 0; background: rgba(0,0,0,0.2); }
.section-badge {
  display: table;
  margin: 0 auto 16px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
}
.examples-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px; 
  margin-top: 40px; 
}
.example-card { padding: 24px; transition: transform var(--transition); border-color: var(--border); }
.example-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.example-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.example-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--text); }
.example-tf { font-size: 11px; color: var(--text-dim); }
.example-badge { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.example-badge.buy { background: var(--green-dim); color: var(--green); }
.example-badge.hold { background: var(--yellow-dim); color: var(--yellow); }
.example-badge.sell { background: var(--red-dim); color: var(--red); }
.example-reason { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-style: italic; margin-top: 12px; border-left: 2px solid var(--border2); padding-left: 12px; }

/* Setup Architect Cards */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.setup-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.setup-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.setup-card.entry { border-top: 4px solid var(--yellow); }
.setup-card.target { border-top: 4px solid var(--green); box-shadow: 0 20px 60px rgba(16, 185, 129, 0.1); }
.setup-card.stop { border-top: 4px solid var(--red); }

.setup-header { display: flex; align-items: center; justify-content: space-between; }
.setup-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); }
.setup-price { font-size: 28px; font-weight: 800; font-family: 'Space Grotesk'; }

.tp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tp-item { 
  display: flex; justify-content: space-between; font-size: 13px; 
  padding: 6px 12px; background: rgba(16, 185, 129, 0.05); border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}
.tp-item span:first-child { font-weight: 700; color: var(--green); }

/* ─── RESPONSIVE STABILITY (V4.3) ─── */
@media (max-width: 1150px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .sidebar-stats {
    position: relative;
    top: 0;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-item { margin-bottom: 0; }
  .hero-title { font-size: 38px; }
}

@media (max-width: 768px) {
  .sidebar-stats { grid-template-columns: 1fr; }
  .analyzer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ─── FAQ ─── */
.faq-section { padding: 80px 0; }
.faq-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  max-width: 900px; 
  margin: 40px auto 0; 
}
.faq-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── DIAGNOSTICS ─── */
.advanced-diagnostics {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.link-btn-sm {
  background: none; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0;
}
.link-btn-sm:hover { color: var(--text-muted); }
.diag-note { font-size: 11px; color: var(--text-dim); margin: 10px 0; }
.diag-actions { display: flex; gap: 8px; }
.btn-ghost-sm {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; padding: 4px 10px; border-radius: 4px; cursor: pointer;
}
.btn-ghost-sm:hover { border-color: var(--text-dim); color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .analyzer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 20px 24px; }
  .stat { padding: 0 16px; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero-title { letter-spacing: -1px; }
  .nav-links { gap: 6px; }
  .nav-link { font-size: 13px; padding: 4px 8px; }
  .btn-settings { padding: 5px 8px; font-size: 12px; }
  .verse-row { flex-direction: column; }
  .meta-row { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60%; height: 1px; }
}

/* ─── PRO ENHANCEMENTS ─── */
.credits-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn-pro {
  background: none; border: none; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 4px 8px; border-radius: 6px; transition: all var(--transition);
}
.link-btn-pro:hover { background: var(--blue-dim); color: #fff; text-decoration: none; }

.btn-export-pro {
  display: flex; align-items: center; gap: 6px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: 11px; font-weight: 600; padding: 5px 10px; cursor: pointer; transition: all var(--transition);
}
.btn-export-pro:hover { background: var(--surface); color: var(--text); border-color: var(--blue); }

.results-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* Checkout Modal Specifics */
.checkout-box { max-width: 440px; padding: 0 !important; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.checkout-header { padding: 32px 32px 24px; background: linear-gradient(to bottom, rgba(74,158,255,0.05), transparent); border-bottom: 1px solid var(--border); }
.checkout-form { padding: 24px 32px 32px; }

.plan-toggle {
  display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 4px; margin-bottom: 24px;
}
.toggle-option {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; border-radius: 100px; cursor: pointer; color: var(--text-dim); transition: all var(--transition);
}
.toggle-option.active { background: var(--blue); color: #fff; }
.save-tag { font-size: 9px; background: rgba(0,229,160,0.2); color: var(--green); padding: 2px 6px; border-radius: 4px; margin-left: 4px; }

.price-display { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; justify-content: center; }
.price-display .currency { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.price-display .amount { font-size: 44px; font-weight: 800; font-family: 'Space Grotesk'; }
.price-display .period { font-size: 14px; color: var(--text-dim); }

.card-input-wrap { position: relative; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; }

.btn-pro {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  box-shadow: 0 10px 30px rgba(139,92,246,0.3) !important;
  border: none !important;
}
.btn-pro:hover { box-shadow: 0 15px 40px rgba(139,92,246,0.5) !important; transform: translateY(-1px); }
.checkout-trust { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 16px; }

@media (max-width: 480px) {
  .modal-box { padding: 24px; }
  .checkout-form { padding: 20px; }
}

/* ─── AUTH & SaaS ENHANCEMENTS ─── */
.auth-box { max-width: 400px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 8px 0; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-switch a { color: var(--blue); text-decoration: none; font-weight: 600; }

.user-profile { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-avatar {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; border: 2px solid var(--border); box-shadow: 0 8px 20px rgba(74, 158, 255, 0.18);
}
.user-menu {
  position: absolute; top: calc(100% + 12px); right: 0; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-sm); width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden;
}
.menu-header { padding: 12px 16px; font-size: 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); word-break: break-all; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: var(--text-muted); text-decoration: none; transition: background var(--transition); }
.menu-item:hover { background: var(--surface2); color: var(--text); }

/* Analyzer Controls Wrapper & Paywall Overlay */
.analyzer-controls-wrap { position: relative; }
.paywall-overlay {
  position: absolute; inset: -1px; background: rgba(8,12,20,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 50; border-radius: var(--radius-sm); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.paywall-content { max-width: 280px; }
.paywall-icon { font-size: 32px; margin-bottom: 12px; }
.paywall-content h3 { font-family: 'Space Grotesk'; font-size: 18px; margin-bottom: 8px; }
.paywall-content p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.paywall-btns { display: flex; flex-direction: column; gap: 10px; }

.nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 8px; }

/* ──────────────────────────────────────────────────
   ELITE MODULES (V5) 
   Screener, TradeGPT, and Trade Architect
────────────────────────────────────────────────── */

.screener-section {
  margin-bottom: 40px;
}

.terminal-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.terminal-header-bar {
  background: rgba(255,255,255,0.02);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.7); }
  70% { transform: scale(1.1); opacity: 0.5; box-shadow: 0 0 0 8px rgba(0, 229, 160, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}

.screener-table-wrap {
  overflow-x: auto;
}

.screener-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.screener-table th {
  text-align: left;
  padding: 16px 24px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}

.screener-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ticker-name {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-symbol { color: var(--text-muted); font-weight: 400; font-size: 11px; }

.price-up { color: var(--green); }
.price-down { color: var(--red); }

.signal-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
}

.signal-badge.buy { color: var(--green); background: rgba(0, 229, 160, 0.1); border: 1px solid rgba(0, 229, 160, 0.2); }
.signal-badge.sell { color: var(--red); background: rgba(255, 77, 106, 0.1); border: 1px solid rgba(255, 77, 106, 0.2); }

/* ─── TRADE GPT ─── */
.trade-gpt-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.chat-container {
  background: rgba(1, 4, 10, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 380px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.chat-input-wrap {
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--purple); }

.btn-send {
  background: var(--purple);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-send:hover { background: #8b5cf6; transform: scale(1.05); }

/* ─── TRADE ARCHITECT ─── */
.order-ticket {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.order-ticket::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  opacity: 0.5;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ticket-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ticket-field {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.field-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff; }

.tp-container {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tp-box {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.1);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.tp-box span { display: block; font-size: 9px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; }
.tp-box strong { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--green); }

.risk-reward-calculator {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.rr-gauge-wrap {
  width: 64px;
  height: 64px;
}

.rr-meta {
  flex: 1;
}

.rr-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Coming Soon Polishing */
.coming-soon-box {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.status-msg {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
  text-align: left;
}

.status-msg:hover { color: var(--green); }

/* ─── HISTORY PANEL (V5 ELITE) ─── */
.history-panel {
  padding: 24px;
  animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 40px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 8px;
}

.history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.history-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item .item-date {
  font-size: 11px;
  color: var(--text-dim);
}

.history-item .item-verdict {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.history-item .item-verdict.buy { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.history-item .item-verdict.sell { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.history-item .item-verdict.hold { background: rgba(245, 158, 11, 0.1); color: var(--yellow); }

.history-item .item-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
}

.empty-history {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-size: 13px;
}

/* ─── TICKET ACTIONS ─── */
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-copy-setup {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--purple);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-copy-setup:hover {
  background: var(--purple);
  color: white;
  transform: scale(1.1);
}

.btn-copy-setup.copied {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

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

/* ��� SETTINGS MODAL (V5 ELITE) ��� */
#settingsModal {
  z-index: 2000;
}

.settings-box {
  width: 100%;
  max-width: 480px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 20px;
  position: relative;
}

.settings-header {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.settings-group {
  margin-bottom: 20px;
}

.settings-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8499;
  margin-bottom: 8px;
  font-weight: 600;
}

.settings-value {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.settings-status-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.settings-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  color: #4a5568;
  display: flex;
  justify-content: space-between;
}

.settings-footer p { margin: 0; }

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ��� PRO ACTIVE STATES ��� */
.btn-primary.pro-active, .btn-ghost.pro-active, .link-btn-pro.pro-active { background: var(--purple-glow) !important; color: white !important; border: 1px solid var(--purple) !important; cursor: default !important; pointer-events: none; opacity: 0.8; }
.status-badge.pro { background: var(--purple-glow); color: var(--purple); border: 1px solid var(--purple); }
