/* QuantSignal Research — Core Design System & Styles */
:root {
  --bg: #0a0e17;
  --bg-card: #131826;
  --bg-card-alt: #0d121f;
  --bg-hover: #1a2236;
  --bg-input: #0f1422;
  --border: #1e293b;
  --border-light: #2d3b54;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent: #4a9eff;
  --accent-hover: #388bfd;
  --accent-glow: rgba(74, 158, 255, 0.15);
  --green: #00c853;
  --green-hover: #00e676;
  --green-glow: rgba(0, 200, 83, 0.15);
  --red: #ff3d57;
  --red-hover: #ff5252;
  --red-glow: rgba(255, 61, 87, 0.15);
  --yellow: #ffb300;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* Global Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.nav-brand img, .nav-brand svg { width: 28px; height: 28px; }
.nav-brand span.highlight { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn-login {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.btn-login:hover { color: var(--text); }
.btn-cta {
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(74, 158, 255, 0.3);
  transition: all 0.2s ease;
}
.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* Ticker Bar */
.ticker-bar {
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: scrollTicker 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  font-family: var(--mono);
}
.ticker-symbol { font-weight: 600; color: var(--text); }
.ticker-price { color: var(--text-dim); }
.ticker-change {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}
.ticker-change.up { color: var(--green); background: var(--green-glow); }
.ticker-change.down { color: var(--red); background: var(--red-glow); }
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 span.gradient-accent {
  background: linear-gradient(135deg, #4a9eff 0%, #00c853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.btn-primary {
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.45);
}
.btn-secondary {
  padding: 0.85rem 2rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  color: #fff;
}

/* Dashboard Mockup Component */
.dashboard-preview-container {
  max-width: 1140px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}
.dashboard-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(74, 158, 255, 0.08);
  overflow: hidden;
}
.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 0.45rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.close { background: #ff5f56; }
.dot.minimize { background: #ffbd2e; }
.dot.maximize { background: #27c93f; }

.window-title-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  padding: 0.25rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.window-title-bar .status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.window-actions { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dim); font-size: 0.8rem; }

/* Dashboard Body Grid */
.dashboard-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 520px;
}
.dash-sidebar {
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dash-nav-section { display: flex; flex-direction: column; gap: 0.4rem; }
.dash-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}
.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--bg-hover);
  color: var(--text);
}
.dash-nav-item.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(74, 158, 255, 0.1);
}

.dash-main {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
}

/* Metric Cards Strip */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.metric-change {
  font-size: 0.75rem;
  font-weight: 600;
}
.metric-change.up { color: var(--green); }
.metric-change.down { color: var(--red); }

/* Chart Component (Pure CSS Candlesticks) */
.chart-container {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-pair-info { display: flex; align-items: center; gap: 0.75rem; }
.pair-title { font-weight: 700; font-size: 1.1rem; }
.pair-price { font-family: var(--mono); font-weight: 600; color: var(--green); }
.chart-timeframes { display: flex; gap: 0.25rem; }
.tf-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
.tf-btn.active, .tf-btn:hover { background: var(--bg-hover); color: var(--text); }
.tf-btn.active { color: var(--accent); font-weight: 600; }

/* Candlestick Canvas Simulation */
.candlestick-canvas {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 5px;
  border-bottom: 1px stroke var(--border);
}
.chart-grid-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.grid-line {
  border-top: 1px dashed rgba(255,255,255,0.05);
  width: 100%;
}

.candle-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}
.candle-wick {
  width: 2px;
  position: absolute;
  border-radius: 1px;
}
.candle-body {
  width: 12px;
  border-radius: 2px;
  position: absolute;
  z-index: 3;
}
.candle-col.up .candle-wick, .candle-col.up .candle-body { background: var(--green); }
.candle-col.down .candle-wick, .candle-col.down .candle-body { background: var(--red); }

/* Target & Entry Price Lines */
.chart-price-line {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px dashed var(--accent);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 4;
}
.chart-price-line.entry { top: 35%; border-color: var(--accent); }
.chart-price-line.target { top: 15%; border-color: var(--green); }
.price-tag {
  font-size: 0.65rem;
  font-family: var(--mono);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
}
.price-tag.entry { background: var(--accent); }
.price-tag.target { background: var(--green); }

/* Volume Bars */
.volume-canvas {
  height: 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
}
.vol-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
}
.vol-bar.up { background: var(--green); }
.vol-bar.down { background: var(--red); }

/* Live Signals Table in Dashboard */
.dash-signals-table {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.table-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-title { font-size: 0.9rem; font-weight: 600; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-glow);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
}
.signals-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}
.signals-table th {
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.2);
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.signals-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}
.signals-table tr:last-child td { border-bottom: none; }
.signals-table tr:hover td { background: var(--bg-hover); }

.signal-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.signal-badge.buy { background: var(--green-glow); color: var(--green); border: 1px solid rgba(0, 200, 83, 0.3); }
.signal-badge.sell { background: var(--red-glow); color: var(--red); border: 1px solid rgba(255, 61, 87, 0.3); }

.confidence-bar-bg {
  width: 60px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.confidence-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* Stats Counter Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.stat-label { color: var(--text-dim); font-size: 0.875rem; margin-top: 0.3rem; }

/* Features Section */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.section-desc { color: var(--text-dim); font-size: 1.05rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}
.feature-card:hover {
  border-color: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.5);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  border: 1px solid rgba(74, 158, 255, 0.2);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; font-weight: 600; }
.feature-card p { color: var(--text-dim); font-size: 0.925rem; line-height: 1.6; }

/* Integrations / Trust Logos */
.trust-section {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.trust-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-bottom: 2rem;
  font-weight: 700;
}
.trust-badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.trust-badge:hover { color: var(--text); border-color: var(--accent); }
.trust-badge svg { width: 20px; height: 20px; color: var(--accent); }

/* Code Section */
.code-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.code-block {
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #111624;
}
.code-dots-group { display: flex; align-items: center; gap: 0.5rem; }
.code-title { color: var(--text-dim); font-size: 0.85rem; font-family: var(--mono); }
.code-lang-tabs { display: flex; gap: 0.5rem; }
.code-tab {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}
.code-tab.active { background: var(--bg-hover); color: var(--accent); font-weight: 600; }
.code-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #c9d1d9;
  overflow-x: auto;
}
.code-comment { color: #8b949e; }
.code-key { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-fn { color: #d2a8ff; }
.code-var { color: #79c0ff; }
.code-num { color: #79c0ff; }

/* Testimonials Section */
.testimonials-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.author-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.author-info p { font-size: 0.785rem; color: var(--text-faint); }

/* Pricing Section */
.pricing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.15);
}
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-tier { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.pricing-price-wrap { margin-bottom: 1.5rem; }
.pricing-price { font-size: 2.75rem; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.pricing-period { color: var(--text-dim); font-size: 0.85rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-features li svg { color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }

/* Auth Pages (Login / Register) */
.auth-container {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow), 0 0 40px rgba(74, 158, 255, 0.05);
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-dim); font-size: 0.9rem; }

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-faint); }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.auth-link { color: var(--accent); font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-auth-submit:hover { background: var(--accent-hover); }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span { padding: 0 0.75rem; }

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* API Docs Layout (Stripe Style) */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}
.docs-sidebar {
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.docs-nav-group { margin-bottom: 1.75rem; }
.docs-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.docs-link {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.15s;
  margin-bottom: 0.2rem;
}
.docs-link:hover, .docs-link.active {
  background: var(--bg-hover);
  color: var(--accent);
}
.docs-content-container {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 2rem;
  padding: 2.5rem 2rem;
}
.docs-main-text h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.docs-main-text h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.docs-main-text p { color: var(--text-dim); margin-bottom: 1.25rem; }

.http-method {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--mono);
  margin-right: 0.5rem;
}
.http-method.get { background: var(--green-glow); color: var(--green); border: 1px solid rgba(0,200,83,0.3); }
.http-method.post { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(74,158,255,0.3); }

.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}
.params-table th {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.params-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.param-name { font-family: var(--mono); font-weight: 600; color: var(--text); }
.param-type { font-family: var(--mono); color: var(--text-faint); font-size: 0.75rem; }

/* Legal Pages Styling */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.legal-container h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.legal-date { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.legal-section p { color: var(--text-dim); margin-bottom: 1rem; line-height: 1.7; }
.legal-section ul { margin-left: 1.5rem; color: var(--text-dim); margin-bottom: 1rem; }
.legal-section li { margin-bottom: 0.4rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card-alt);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto 3rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { color: var(--text); margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 600; }
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .dashboard-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .docs-content-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .dash-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
