/* SuperTrade — Professional Trading Platform CSS */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-0: #020a05;
  --bg-1: #050f08;
  --bg-2: #081410;
  --bg-card: #0a1a12;
  --bg-card-hover: #0d2018;
  --bg-surface: #0f2218;
  --bg-input: #061009;
  --bg-modal: #0a1a12;

  --green-100: #e6fff2;
  --green-400: #00ff88;
  --green-500: #00cc6a;
  --green-600: #00892a;
  --green-glow: rgba(0,255,136,0.12);
  --green-subtle: rgba(0,255,136,0.06);

  --red-400: #ff4444;
  --red-500: #cc1f1f;
  --red-glow: rgba(255,68,68,0.12);
  --red-subtle: rgba(255,68,68,0.06);

  --yellow-400: #ffd700;
  --blue-400: #00aaff;

  --border: #0f2218;
  --border-accent: rgba(0,255,136,0.18);
  --border-strong: rgba(0,255,136,0.35);

  --text-1: #e8f5ee;
  --text-2: #6b9a7e;
  --text-3: #3d6650;

  --mono: 'JetBrains Mono', monospace;
  --display: 'Rajdhani', sans-serif;
  --body: 'Inter', sans-serif;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-green: 0 0 30px rgba(0,255,136,0.08);
  --shadow-glow: 0 0 60px rgba(0,255,136,0.12);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --sidebar-w: 248px;
  --topbar-h: 56px;
  --ticker-h: 38px;
  --transition: all 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--display); font-weight: 700; letter-spacing: 0.3px; }
h1 { font-size: 2.4rem; } h2 { font-size: 1.8rem; } h3 { font-size: 1.3rem; }
.mono { font-family: var(--mono) !important; }
.g { color: var(--green-400); } .r { color: var(--red-400); }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0;
  height: 100vh; z-index: 200;
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 15px; font-weight: 800; color: #000;
  flex-shrink: 0;
}
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--green-400); letter-spacing: 0.5px; }
.brand-sub  { font-size: 9px; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; }

.nav-section { padding: 16px 0 4px; }
.nav-label { padding: 4px 16px 6px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--text-2); text-decoration: none;
  border-left: 2px solid transparent;
  transition: var(--transition); font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.nav-item:hover  { color: var(--text-1); background: var(--green-subtle); border-left-color: var(--green-600); }
.nav-item.active { color: var(--green-400); background: var(--green-subtle); border-left-color: var(--green-400); font-weight: 600; }
.nav-icon { font-size: 15px; min-width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--green-400); color: #000; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.nav-badge.red { background: var(--red-400); color: #fff; }

.sidebar-footer {
  margin-top: auto; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.user-pill {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-card); border-radius: var(--r-md); cursor: pointer;
  transition: var(--transition); border: 1px solid var(--border);
}
.user-pill:hover { border-color: var(--border-accent); }
.user-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 14px; font-weight: 700; color: #000; flex-shrink: 0;
}
.user-name  { font-size: 12px; font-weight: 600; color: var(--text-1); }
.user-plan  { font-size: 10px; color: var(--green-400); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Main ────────────────────────────────────────────────────────────────── */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* ── Ticker Bar ──────────────────────────────────────────────────────────── */
.ticker-bar {
  height: var(--ticker-h); background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; overflow-x: auto; scrollbar-width: none;
}
.ticker-bar::-webkit-scrollbar { display: none; }
.tick { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tick-sym { font-family: var(--mono); font-size: 11px; color: var(--text-2); font-weight: 600; }
.tick-price { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.tick-chg { font-size: 11px; font-weight: 600; }
.tick-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 5px var(--green-400); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h); background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-family: var(--display); font-size: 18px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.session-badge {
  display: flex; align-items: center; gap: 6px; padding: 4px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; font-size: 11px; color: var(--text-2);
}
.session-badge.high { border-color: rgba(0,255,136,.25); color: var(--green-400); }
.session-badge.low  { border-color: rgba(255,68,68,.25);  color: var(--red-400); }

/* ── Page Content ────────────────────────────────────────────────────────── */
.page { padding: 20px; flex: 1; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-accent); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-family: var(--display); font-size: 14px; font-weight: 600; }
.card-sub { font-size: 11px; color: var(--text-2); margin-top: 1px; }

/* ── Stat Cards ──────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-bottom: 20px; }

.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  position: relative; overflow: hidden; transition: var(--transition);
}
.stat::after { content:''; position:absolute; top:0; left:0; right:0; height:2px; }
.stat.green::after { background: linear-gradient(90deg, transparent, var(--green-400), transparent); }
.stat.red::after   { background: linear-gradient(90deg, transparent, var(--red-400),   transparent); }
.stat.blue::after  { background: linear-gradient(90deg, transparent, var(--blue-400),  transparent); }
.stat:hover { border-color: var(--border-accent); transform: translateY(-1px); box-shadow: var(--shadow-green); }

.stat-icon { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.stat-icon.g { background: var(--green-subtle); color: var(--green-400); }
.stat-icon.r { background: var(--red-subtle);   color: var(--red-400); }
.stat-icon.b { background: rgba(0,170,255,.08); color: var(--blue-400); }
.stat-icon.y { background: rgba(255,215,0,.08); color: var(--yellow-400); }

.stat-label { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.stat-value { font-family: var(--mono); font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-value.pos { color: var(--green-400); } .stat-value.neg { color: var(--red-400); }
.stat-sub { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat-sub.up  { color: var(--green-400); } .stat-sub.down { color: var(--red-400); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  padding: 9px 12px; text-align: left; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-3);
  font-weight: 600; background: var(--bg-1); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody td { padding: 10px 12px; color: var(--text-1); }
.td-mono { font-family: var(--mono); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}
.bg { background: var(--green-subtle); color: var(--green-400); border: 1px solid rgba(0,255,136,.2); }
.br { background: var(--red-subtle);   color: var(--red-400);   border: 1px solid rgba(255,68,68,.2); }
.bb { background: rgba(0,170,255,.06); color: var(--blue-400);  border: 1px solid rgba(0,170,255,.2); }
.by { background: rgba(255,215,0,.06); color: var(--yellow-400);border: 1px solid rgba(255,215,0,.2); }
.bk { background: rgba(100,120,110,.1);color: var(--text-2);   border: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-family: var(--body); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--green-400); color: #000; }
.btn-primary:hover { background: #00e07a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,255,136,.25); }
.btn-outline { background: transparent; color: var(--green-400); border: 1px solid var(--green-400); }
.btn-outline:hover { background: var(--green-subtle); }
.btn-danger  { background: var(--red-400); color: #fff; }
.btn-danger:hover { background: var(--red-500); }
.btn-ghost   { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-1); }
.btn-sm { padding: 5px 11px; font-size: 11px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.w-full { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.fg { margin-bottom: 15px; }
.fl { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.fc {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-1);
  font-family: var(--body); font-size: 13px; outline: none;
  transition: var(--transition);
}
.fc:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(0,255,136,.07); }
.fc::placeholder { color: var(--text-3); }
select.fc option { background: var(--bg-card); }
.fhint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Range slider */
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--bg-surface); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--green-400); border-radius: 50%; cursor: pointer; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { display: none; }
.slider { position: absolute; inset: 0; background: var(--bg-surface); border-radius: 22px; cursor: pointer; transition: var(--transition); }
.slider::before { content:''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--text-2); border-radius: 50%; transition: var(--transition); }
.toggle input:checked + .slider { background: var(--green-400); }
.toggle input:checked + .slider::before { transform: translateX(18px); background: #000; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; background: var(--bg-1); padding: 4px; border-radius: var(--r-md); border: 1px solid var(--border); margin-bottom: 18px; }
.tab { flex: 1; padding: 7px 14px; background: transparent; border: none; border-radius: 7px; color: var(--text-2); font-size: 12px; font-weight: 500; cursor: pointer; transition: var(--transition); font-family: var(--body); text-align: center; }
.tab:hover { color: var(--text-1); }
.tab.active { background: var(--green-600); color: #fff; font-weight: 600; }

/* ── PnL Colors ──────────────────────────────────────────────────────────── */
.pnl-p { color: var(--green-400); font-family: var(--mono); font-weight: 600; }
.pnl-n { color: var(--red-400);   font-family: var(--mono); font-weight: 600; }

/* ── Signal Boxes ────────────────────────────────────────────────────────── */
.sig-box { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-md); font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.sig-buy  { background: var(--green-subtle); color: var(--green-400); border: 1px solid rgba(0,255,136,.2); }
.sig-sell { background: var(--red-subtle);   color: var(--red-400);   border: 1px solid rgba(255,68,68,.2); }
.sig-hold { background: rgba(100,120,110,.1);color: var(--text-2);   border: 1px solid var(--border); }

/* ── Score Badge ─────────────────────────────────────────────────────────── */
.score { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.score.hi { background: var(--green-subtle); color: var(--green-400); border: 2px solid var(--green-400); }
.score.md { background: rgba(255,215,0,.07); color: var(--yellow-400); border: 2px solid var(--yellow-400); }
.score.lo { background: var(--red-subtle);   color: var(--red-400);   border: 2px solid var(--red-400); }

/* ── Status Dots ─────────────────────────────────────────────────────────── */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.running { background: var(--green-400); box-shadow: 0 0 6px var(--green-400); animation: blink 2s infinite; }
.dot.stopped { background: var(--text-3); }
.dot.error   { background: var(--red-400); }
.dot.paused  { background: var(--yellow-400); }

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.pbar { height: 5px; background: var(--bg-surface); border-radius: 3px; overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--green-600), var(--green-400)); transition: width .5s ease; }

/* ── Modals ──────────────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: var(--transition); }
.overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--bg-modal); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 26px; width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto; transform: translateY(16px); transition: var(--transition); }
.overlay.open .modal { transform: translateY(0); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-family: var(--display); font-size: 18px; font-weight: 700; }
.modal-x { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px; }
.modal-x:hover { color: var(--text-1); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: var(--r-md); font-size: 12.5px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.alert-g { background: var(--green-subtle); border: 1px solid rgba(0,255,136,.18); color: var(--green-400); }
.alert-r { background: var(--red-subtle);   border: 1px solid rgba(255,68,68,.18); color: var(--red-400); }
.alert-y { background: rgba(255,215,0,.06); border: 1px solid rgba(255,215,0,.18); color: var(--yellow-400); }
.alert-b { background: rgba(0,170,255,.06); border: 1px solid rgba(0,170,255,.18); color: var(--blue-400); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 16px; min-width: 280px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 10px; font-size: 13px; animation: slide-in .25s ease; }
.toast.g { border-left: 3px solid var(--green-400); }
.toast.r { border-left: 3px solid var(--red-400); }
.toast.b { border-left: 3px solid var(--blue-400); }
.toast.y { border-left: 3px solid var(--yellow-400); }
@keyframes slide-in { from{transform:translateX(100px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--green-400); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Grids ───────────────────────────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.flex { display: flex; } .fxb { display: flex; justify-content: space-between; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt8{margin-top:8px} .mt12{margin-top:12px} .mt16{margin-top:16px} .mt20{margin-top:20px}
.mb8{margin-bottom:8px} .mb12{margin-bottom:12px} .mb16{margin-bottom:16px} .mb20{margin-bottom:20px}
.hidden { display: none !important; }

/* ── Auth Pages ──────────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: radial-gradient(ellipse at 25% 50%, rgba(0,80,40,.15) 0%, transparent 60%), var(--bg-0); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 36px; width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-title { font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-sub   { color: var(--text-2); font-size: 13px; text-align: center; margin-bottom: 24px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-3); font-size: 11px; }
.divider::before,.divider::after { content:''; flex:1; height:1px; background: var(--border); }

/* ── Landing ─────────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; background: radial-gradient(ellipse at 20% 50%, rgba(0,100,50,.12) 0%, transparent 55%), radial-gradient(ellipse at 80% 20%, rgba(0,50,25,.08) 0%, transparent 45%), var(--bg-0); display: flex; flex-direction: column; }
.hero-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 60px; border-bottom: 1px solid var(--border); }
.hero-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--green-subtle); border: 1px solid rgba(0,255,136,.2); border-radius: 20px; font-size: 11px; color: var(--green-400); font-weight: 600; letter-spacing: 1px; margin-bottom: 22px; }
.hero-h1 { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: 1.05; margin-bottom: 18px; max-width: 780px; }
.hero-h1 .hl { color: var(--green-400); text-shadow: 0 0 40px rgba(0,255,136,.25); }
.hero-p { font-size: 17px; color: var(--text-2); max-width: 540px; margin-bottom: 36px; line-height: 1.75; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--border); flex-wrap: wrap; justify-content: center; }
.hero-stat-v { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--green-400); }
.hero-stat-l { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ── Bot Cards ───────────────────────────────────────────────────────────── */
.bot-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; transition: var(--transition); }
.bot-card:hover { border-color: var(--border-accent); }
.bot-card.running { border-left: 3px solid var(--green-400); }
.bot-card.stopped { border-left: 3px solid var(--text-3); }
.bot-card.error   { border-left: 3px solid var(--red-400); }
.bot-card.cooling_down { border-left: 3px solid var(--yellow-400); }
.bot-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; padding: 10px; background: var(--bg-1); border-radius: var(--r-md); }
.bst-l { font-size: 10px; color: var(--text-3); text-transform: uppercase; }
.bst-v { font-family: var(--mono); font-size: 13px; font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .g2,.g3,.g4 { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2.5rem; }
  .hero-nav { padding: 16px 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2,1fr); } }
