/* ============================================================
   NexTrade AI — Main Stylesheet
   ============================================================ */

:root {
  /* Brand */
  --primary: #00c896;
  --primary-dark: #00a87e;
  --primary-glow: rgba(0, 200, 150, 0.15);
  --secondary: #007aff;
  --secondary-glow: rgba(0, 122, 255, 0.15);

  /* Backgrounds */
  --bg: #0a0b0e;
  --bg-2: #0f1117;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --bg-card-solid: #111318;

  /* Text */
  --text: #f0f2f5;
  --text-muted: #8892a4;
  --text-dim: #525c6e;

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);

  /* Status */
  --success: #07bc0c;
  --danger: #e74d3c;
  --warning: #f1c40f;
  --info: #3498db;

  /* Toastify (from spec) */
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74d3c;
  --toastify-color-transparent: #ffffffb3;
  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);
  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px #0000001a;
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;
  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  --toastify-color-progress-bgo: 0.2;

  /* Swiper */
  --swiper-theme-color: #007aff;
  --swiper-navigation-size: 44px;

  /* Typography */
  --main-font-family: 'Inter', 'Space Grotesk', sans-serif;
  --mono-font: 'JetBrains Mono', monospace;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--primary-glow);
}

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

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

body {
  font-family: var(--main-font-family);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

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

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-2);
}

/* ===================== TYPOGRAPHY ===================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', var(--main-font-family);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 200, 150, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(10, 11, 14, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.nav-logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.nav-mobile a {
  font-size: 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
  .nav-container { gap: 0; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 180px 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#particleCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: var(--primary);
}

.hero-glow-2 {
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  background: var(--secondary);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: 100px;
  padding: 6px 16px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--primary);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--primary); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--primary); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 24px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  max-width: 700px;
  margin: 0 auto 60px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Chart */
.hero-chart-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.hero-chart-card {
  background: linear-gradient(135deg, rgba(0,200,150,0.04), rgba(0,122,255,0.04));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 24px 0;
  backdrop-filter: blur(10px);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-asset {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.price-up {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mono-font);
}

.price-change-up {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  background: rgba(7,188,12,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.chart-signals { display: flex; align-items: center; gap: 12px; }

.signal-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.signal-tag.buy {
  background: rgba(7,188,12,0.15);
  color: var(--success);
  border: 1px solid rgba(7,188,12,0.3);
}

.signal-tag.sell {
  background: rgba(231,77,60,0.15);
  color: var(--danger);
  border: 1px solid rgba(231,77,60,0.3);
}

.signal-meta { font-size: 12px; color: var(--text-muted); }

/* ===================== TICKER ===================== */
.ticker-wrap {
  background: rgba(0,200,150,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  border-right: 1px solid var(--border);
  font-size: 13px;
}

.t-name { font-weight: 600; color: var(--text-muted); }
.t-price { font-family: var(--mono-font); font-size: 13px; }
.t-chg { font-size: 12px; font-weight: 600; }
.t-chg.up { color: var(--success); }
.t-chg.down { color: var(--danger); }

/* ===================== WHY GRID ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.why-card-large {
  grid-column: span 2;
}

.why-card-wide {
  grid-column: span 2;
}

.why-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  border: 1px solid rgba(0,200,150,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.why-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.why-feature-list span {
  font-size: 12px;
  font-weight: 500;
  background: var(--secondary-glow);
  border: 1px solid rgba(0,122,255,0.2);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 100px;
}

.code-preview {
  margin-top: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--mono-font);
  font-size: 13px;
  line-height: 1.8;
}

.code-comment { color: #6b7280; }
.code-kw { color: var(--secondary); font-weight: 600; }
.code-str { color: var(--primary); }
.code-obj { color: var(--text-muted); }
.code-num { color: var(--warning); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card-large, .why-card-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card-large, .why-card-wide { grid-column: span 1; }
}

/* ===================== STEPS ===================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: rgba(0,200,150,0.3);
  box-shadow: 0 0 40px rgba(0,200,150,0.06);
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 48px;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(0,200,150,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 24px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px;
}

.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.broker-logos {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.broker-logos span {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--text-muted);
}

.config-preview {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.config-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.config-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.config-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 1s ease;
}

.trade-preview {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.trade-row.buy { background: rgba(7,188,12,0.1); color: var(--success); }
.trade-row.sell { background: rgba(231,77,60,0.1); color: var(--danger); }
.trade-profit { font-family: var(--mono-font); }

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===================== PERFORMANCE ===================== */
.perf-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.perf-stat-card {
  flex: 1;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.perf-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.perf-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.perf-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 6px;
}

.perf-value.green { color: var(--success); }
.perf-value.orange { color: var(--warning); }

.perf-meta { font-size: 11px; color: var(--text-dim); }

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.chart-sub { font-size: 13px; color: var(--text-muted); }

.chart-tabs { display: flex; gap: 4px; }

.chart-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.chart-tab.active, .chart-tab:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: rgba(0,200,150,0.2);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.strategy-card:hover { border-color: var(--border-hover); }

.strategy-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.strat-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.strat-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.strat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 1.2s ease;
}

.strat-bar-wrap span { font-size: 12px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.strategy-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .strategy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .strategy-grid { grid-template-columns: 1fr; } }

/* ===================== PRICING ===================== */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-opt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-opt.active { color: var(--text); }

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid var(--border-hover);
}

.toggle-switch.annual {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition);
}

.toggle-knob.right { transform: translateX(20px); }

.save-badge {
  font-size: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-featured {
  background: linear-gradient(135deg, rgba(0,200,150,0.06), rgba(0,122,255,0.06));
  border-color: rgba(0,200,150,0.3);
  transform: scale(1.02);
}

.pricing-featured:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(0,200,150,0.15);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== SPOTLIGHT GLOW BORDER ===== */
[data-glow] {
  --border-size: calc(var(--border, 1) * 1px);
  --spotlight-size: calc(var(--size, 200) * 1px);
  --hue: calc(var(--base, 45) + (var(--xp, 0) * var(--spread, 18)));
}

[data-glow]::before,
[data-glow]::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius, 20) * 1px);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  mask-image: linear-gradient(white, white), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: exclude;
  -webkit-mask-image: linear-gradient(white, white), linear-gradient(white, white);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: xor;
  z-index: 0;
}

[data-glow]::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75)
    at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue) calc(var(--saturation, 35) * 1%) calc(var(--lightness, 82) * 1%) / var(--border-spot-opacity, 0.5)),
    transparent 100%
  );
  filter: brightness(2);
}

[data-glow]::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5)
    at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(0 0% 100% / var(--border-light-opacity, 0.18)),
    transparent 100%
  );
}
/* ===== END SPOTLIGHT GLOW BORDER ===== */

.plan-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 12px;
}

.plan-currency {
  font-size: 22px;
  font-weight: 700;
  padding-top: 6px;
  color: var(--text-muted);
}

.plan-amount {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.plan-period {
  font-size: 16px;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
  min-height: 42px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.plan-features li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.plan-features li.yes {
  color: var(--text);
}

.plan-features li.yes::before {
  background-color: rgba(7,188,12,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307bc0c' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.plan-features li.no {
  color: var(--text-dim);
}

.plan-features li.no::before {
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525c6e' stroke-width='3'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
}

/* ===================== COMPARISON TABLE ===================== */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
}

.compare-table thead tr { background: rgba(255,255,255,0.03); }
.compare-table th { font-size: 13px; font-weight: 700; color: var(--text-muted); }

.compare-table th.ours, .compare-table td.ours {
  background: rgba(0,200,150,0.05);
  color: var(--text);
  font-weight: 600;
}

.compare-table th.ours { color: var(--primary); }

.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table td { color: var(--text-muted); }

.check { color: var(--success); font-weight: 700; }
.cross { color: var(--danger); }

/* ===================== TESTIMONIALS ===================== */
.testimonials-swiper { padding-bottom: 48px !important; }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}

.stars {
  color: var(--warning);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-roi {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: var(--success);
  font-family: 'Space Grotesk', sans-serif;
}

.swiper-button-prev, .swiper-button-next {
  color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: rgba(0,200,150,0.3); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq-q:hover { background: rgba(255,255,255,0.02); }

.faq-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 24px 20px;
}

/* ===================== CTA SECTION ===================== */
.cta-section { padding: 80px 0; }

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0,200,150,0.05), rgba(0,122,255,0.05));
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,150,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta-card > p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 20px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.disclaimer { font-size: 11px; line-height: 1.6; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ===================== MODALS ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #111318;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 18px;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg-card-hover); color: var(--text); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 24px;
}

.modal-logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal h2 {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.modal > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(0,200,150,0.04);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.1);
}

.form-group select option { background: #111318; color: var(--text); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input { accent-color: var(--primary); }
.checkbox-label a { color: var(--primary); }

.forgot-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-switch a { color: var(--primary); font-weight: 600; }

/* Checkout */
.checkout-plan-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(7,188,12,0.06);
  border: 1px solid rgba(7,188,12,0.15);
  border-radius: var(--radius-sm);
  color: var(--success);
}

.checkout-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  top: var(--toastify-toast-top);
  right: var(--toastify-toast-right);
  z-index: var(--toastify-z-index);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1a1d24;
  border: 1px solid var(--border);
  border-radius: var(--toastify-toast-bd-radius);
  padding: var(--toastify-toast-padding);
  min-height: var(--toastify-toast-min-height);
  width: var(--toastify-toast-width);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  pointer-events: auto;
  animation: slideIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  animation: toastProgress 4s linear forwards;
}

.toast.success::after { background: var(--toastify-color-success); border-left-color: var(--success); }
.toast.error::after { background: var(--toastify-color-error); }
.toast.info::after { background: var(--toastify-color-info); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.4; }

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ===================== DASHBOARD STYLES ===================== */
/* (Used in dashboard.html) */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.sidebar-logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-item:hover, .sidebar-item.active {
  background: var(--bg-card-hover);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(0,200,150,0.15);
}

.sidebar-item svg { flex-shrink: 0; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 12px 4px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user:hover { background: var(--bg-card-hover); }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info strong { display: block; font-size: 13px; }
.user-info span { font-size: 11px; color: var(--text-muted); }

.plan-chip {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 2px 8px;
  border-radius: 100px;
}

.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(10,11,14,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h1 { font-size: 20px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(7,188,12,0.1);
  border: 1px solid rgba(7,188,12,0.2);
  color: var(--success);
}

.bot-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.bot-status.paused {
  background: rgba(241,196,15,0.1);
  border-color: rgba(241,196,15,0.2);
  color: var(--warning);
}

.bot-status.paused .bot-status-dot { background: var(--warning); }

.page-content { padding: 32px; flex: 1; }

/* Dashboard Widgets */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.widget:hover { border-color: var(--border-hover); }

.widget-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-value {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.widget-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.widget-change.up { color: var(--success); }
.widget-change.down { color: var(--danger); }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

/* Bot control */
.bot-controls {
  display: flex;
  gap: 10px;
}

.bot-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.bot-toggle.start {
  background: rgba(7,188,12,0.1);
  border: 1px solid rgba(7,188,12,0.2);
  color: var(--success);
}

.bot-toggle.stop {
  background: rgba(231,77,60,0.1);
  border: 1px solid rgba(231,77,60,0.2);
  color: var(--danger);
}

.bot-toggle:hover { filter: brightness(1.2); }

/* Positions Table */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.pnl-positive { color: var(--success); font-weight: 600; }
.pnl-negative { color: var(--danger); font-weight: 600; }

.pos-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pos-badge.long {
  background: rgba(7,188,12,0.1);
  color: var(--success);
  border: 1px solid rgba(7,188,12,0.2);
}

.pos-badge.short {
  background: rgba(231,77,60,0.1);
  color: var(--danger);
  border: 1px solid rgba(231,77,60,0.2);
}

/* Signal feed */
.signal-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.signal-dot.buy { background: var(--success); box-shadow: 0 0 6px var(--success); }
.signal-dot.sell { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.signal-dot.info { background: var(--info); }

.signal-content strong { font-size: 13px; display: block; }
.signal-content span { font-size: 11px; color: var(--text-muted); }

/* Settings form */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.settings-section h3 {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.setting-row:last-child { border-bottom: none; }

.setting-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.setting-info span { font-size: 12px; color: var(--text-muted); }

/* Toggle switch for settings */
.toggle-pill {
  position: relative;
  width: 40px; height: 22px;
  cursor: pointer;
}

.toggle-pill input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-pill-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: background var(--transition);
}

.toggle-pill input:checked + .toggle-pill-track {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-pill-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition);
}

.toggle-pill input:checked ~ .toggle-pill-thumb { transform: translateX(18px); }

/* Range slider */
.range-slider {
  width: 100%;
  accent-color: var(--primary);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 20px 16px; }
  .settings-grid { grid-template-columns: 1fr; }

  .hero-stats { padding: 20px 24px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-divider { display: none; }
  .hero-stat { border-bottom: 1px solid var(--border); padding: 12px 0; width: 50%; }
}

@media (max-width: 480px) {
  .widget-grid { grid-template-columns: 1fr; }
  .hero-stat { width: 100%; }
}
