/* ============================================================
   NeuroPip AI — shared design system
   Dark AI-fintech theme · purple/indigo glow · offline-safe
   ============================================================ */

:root {
  --bg-0: #0A0A1A;
  --bg-1: #120B2E;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(139, 92, 246, 0.18);
  --border-soft: rgba(139, 92, 246, 0.10);
  --accent-1: #8B5CF6;
  --accent-2: #6366F1;
  --accent-3: #A855F7;
  --grad: linear-gradient(135deg, #8B5CF6, #6366F1 55%, #A855F7);
  --profit: #22D3AA;
  --loss: #F43F5E;
  --text: #E7E9F4;
  --muted: #8A8FB0;
  --radius: 16px;
  --sidebar-w: 240px;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0) 55%);
  background-attachment: scroll;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* faint grid + noise backdrop */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 20%, transparent 90%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--profit); }
.neg { color: var(--loss); }
.muted { color: var(--muted); }

/* ---------- layout chrome ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  padding: 20px 14px;
  background: rgba(12, 10, 30, 0.72);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 30;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px;
}
.logo-orb {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55), inset 0 0 8px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.logo-orb svg { width: 20px; height: 20px; }
.logo-name { font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.logo-name .ai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 6px;
  background: var(--grad);
  vertical-align: 2px;
  animation: aiPulse 2.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(139, 92, 246, 0.5); opacity: 1; }
  50%      { box-shadow: 0 0 16px rgba(168, 85, 247, 0.95); opacity: 0.85; }
}

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  padding: 0 12px 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav a svg { width: 17px; height: 17px; opacity: 0.85; flex-shrink: 0; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(99, 102, 241, 0.16));
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.18) inset;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-chip .name { font-size: 12.5px; font-weight: 600; }
.user-chip .tag {
  font-size: 10px;
  color: var(--profit);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--profit); box-shadow: 0 0 6px var(--profit); display: inline-block; flex-shrink: 0; }

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(10, 10, 26, 0.75);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar .spacer { flex: 1; }

.page {
  padding: 26px 28px 40px;
  max-width: 1280px;
  width: 100%;
}

.page-title { font-size: 22px; font-weight: 700; letter-spacing: 0.2px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- topbar widgets ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
  font-weight: 500;
}
.pill .sep { color: var(--muted); font-weight: 400; }

.latency {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 170, 0.35);
  color: var(--profit);
  background: rgba(34, 211, 170, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn.small { padding: 7px 13px; font-size: 12px; }
.btn.wide { width: 100%; justify-content: center; padding: 12px; }

/* ---------- cards & grid ---------- */
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.split-2-1 { grid-template-columns: 2fr 1fr; }
.gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head h3 { margin-bottom: 0; }
.card-head .sub { font-size: 12px; color: var(--muted); }

/* hero stat cards */
.stat .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .value {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.stat .value.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .delta { font-size: 12px; margin-top: 6px; }

/* glow border card (AI insight) */
.glow-card {
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.22), inset 0 0 18px rgba(139, 92, 246, 0.06);
  animation: glowBreathe 4s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.18), inset 0 0 18px rgba(139, 92, 246, 0.05); }
  50%      { box-shadow: 0 0 28px rgba(168, 85, 247, 0.35), inset 0 0 22px rgba(139, 92, 246, 0.09); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge.green { color: var(--profit); border-color: rgba(34, 211, 170, 0.4); background: rgba(34, 211, 170, 0.08); }
.badge.purple { color: #C4B5FD; border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.1); }
.badge.pro { color: #FBBF24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.badge.red { color: var(--loss); border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.08); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07);
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(139, 92, 246, 0.05); }
td.num, th.num { text-align: right; font-family: var(--mono); }
.sym { font-weight: 600; font-family: var(--mono); font-size: 13px; }
.side-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.side-buy { color: var(--profit); background: rgba(34, 211, 170, 0.1); border: 1px solid rgba(34, 211, 170, 0.3); }
.side-sell { color: #FB7185; background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.3); }

/* ---------- svg charts ---------- */
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.axis-label { font-size: 10px; fill: var(--muted); font-family: var(--mono); }
.gridline { stroke: rgba(139, 92, 246, 0.1); stroke-width: 1; }

/* ---------- filter pills ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fpill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.fpill:hover { color: var(--text); border-color: var(--border); }
.fpill.on {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(139, 92, 246, 0.35);
}

/* ---------- strategy cards ---------- */
.scard {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.scard:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.18);
}
.scard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scard .name { font-size: 15px; font-weight: 700; letter-spacing: 0.1px; }
.tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tagchip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
}
.tagchip.market { color: #A5B4FC; background: rgba(99, 102, 241, 0.1); }
.scard .stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.scard .stat-cell .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.scard .stat-cell .v { font-size: 14px; font-weight: 700; font-family: var(--mono); margin-top: 2px; }
.locked .sparkline { opacity: 0.45; filter: grayscale(0.5); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 560px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: #14102B;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.15);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-close {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  border-radius: 8px;
  width: 30px; height: 30px;
  font-size: 16px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal p.desc { color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.modal .note {
  font-size: 12px;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.modal .note svg { flex-shrink: 0; margin-top: 2px; }
.modal .big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.modal .big-stats .cell {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.modal .big-stats .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.modal .big-stats .v { font-size: 18px; font-weight: 700; font-family: var(--mono); margin-top: 4px; }

/* ---------- stepper (demo.html) ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--muted);
  transition: all 0.2s;
}
.step-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.step-node.done .step-dot {
  background: rgba(34, 211, 170, 0.12);
  border-color: rgba(34, 211, 170, 0.5);
  color: var(--profit);
}
.step-node.done .step-label { color: var(--text); }
.step-node.current .step-dot {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}
.step-node.current .step-label { color: var(--text); }
.step-line {
  flex: 1;
  height: 2px;
  margin: 0 14px;
  background: var(--border-soft);
  border-radius: 2px;
  position: relative;
  min-width: 30px;
}
.step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s;
}
.step-line.filled::after { width: 100%; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* forms */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.field select { font-family: var(--font); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.toggle {
  display: inline-flex;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.toggle button {
  padding: 9px 22px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.toggle button.on {
  background: var(--grad);
  color: #fff;
}

.connected-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(34, 211, 170, 0.06);
  border: 1px solid rgba(34, 211, 170, 0.35);
}
.connected-card .facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.connected-card .facts b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* strategy radio cards (demo) */
.pick-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card .card {
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pick-card input:checked + .card {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.3), inset 0 0 14px rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}
.pick-card input:checked + .card::after {
  content: "✓ SELECTED";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--grad);
  padding: 3px 9px;
  border-radius: 999px;
}
.pick-card .card { position: relative; }

/* countdown bar */
.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.bar .fill {
  height: 100%;
  width: 6%;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* success panel */
.success-panel {
  border: 1px solid rgba(34, 211, 170, 0.4);
  background: rgba(34, 211, 170, 0.05);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  display: none;
}
.success-panel.show { display: block; animation: fadeUp 0.3s ease; }
.success-panel .big {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.live-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.live-row span b { color: var(--text); }

/* security strip + disclaimer */
.secure-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
}
.secure-strip svg { flex-shrink: 0; }
.banner {
  font-size: 12.5px;
  color: #FCD34D;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* status rows (server card) */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07);
  font-size: 13px;
}
.status-row:last-child { border-bottom: none; }
.status-row .left { display: flex; align-items: center; gap: 10px; }
.status-row .left .k { color: var(--muted); }
.status-row .right { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }

/* mini bars (monthly returns) */
.minibars { display: flex; align-items: flex-end; gap: 14px; height: 110px; padding-top: 8px; }
.minibar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.minibar .bar-rect {
  width: 100%;
  max-width: 38px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #A855F7, #6366F1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}
.minibar .v { font-size: 11px; font-family: var(--mono); color: var(--profit); font-weight: 600; }
.minibar .m { font-size: 11px; color: var(--muted); }

/* responsive */
@media (max-width: 1180px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split-2-1 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { width: 200px; }
  .main { margin-left: 200px; }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .page { padding: 20px 18px 34px; }
  .topbar { padding: 12px 18px; flex-wrap: wrap; }
}

/* ============================================================
   Mooshai AI — full-site extensions
   ============================================================ */

/* ---------- marketing chrome (landing / pricing) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 5vw;
  background: rgba(10, 10, 26, 0.78);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .nav-links { display: flex; gap: 4px; flex: 1; }
.site-header .nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.site-header .nav-links a:hover { color: var(--text); background: var(--panel); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 5vw; position: relative; z-index: 1; }

.hero { padding: 84px 0 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 18px 0 28px;
  max-width: 520px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lg { padding: 13px 26px; font-size: 14.5px; border-radius: 12px; }

.hero-visual { position: relative; }
.hero-visual .float-card {
  background: rgba(18, 14, 40, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-visual .float-tag {
  position: absolute;
  background: rgba(18, 14, 40, 0.92);
  border: 1px solid rgba(34, 211, 170, 0.45);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.hero-visual .float-tag.t1 { top: -18px; right: -14px; color: var(--profit); }
.hero-visual .float-tag.t2 { bottom: -16px; left: -20px; color: #C4B5FD; border-color: rgba(139, 92, 246, 0.5); }

.trust-strip {
  display: flex;
  gap: 10px 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-strip svg { flex-shrink: 0; }

.section { padding: 64px 0; }
.section.alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(139, 92, 246, 0.08); border-bottom: 1px solid rgba(139, 92, 246, 0.08); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #A5B4FC;
}
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 12px; line-height: 1.6; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-band .cell { text-align: center; padding: 22px 12px; }
.stats-band .cell .v { font-size: 28px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.5px; }
.stats-band .cell .k { font-size: 12px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-card { padding: 24px; position: relative; }
.step-card .n {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--mono);
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
  margin-bottom: 16px;
}
.step-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 22px; }
.feature-card .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-card .ico svg { width: 20px; height: 20px; }
.feature-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color 0.15s;
}
.faq-list details[open] { border-color: rgba(139, 92, 246, 0.4); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 18px; color: var(--accent-1); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { color: var(--muted); font-size: 13.5px; line-height: 1.7; padding: 0 0 18px; }

.final-cta { text-align: center; padding: 72px 5vw; position: relative; z-index: 1; }
.final-cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.final-cta p { color: var(--muted); margin: 14px auto 26px; max-width: 520px; font-size: 15px; line-height: 1.6; }

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 34px 5vw 40px;
  background: rgba(8, 8, 20, 0.6);
  position: relative;
  z-index: 1;
}
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer .fbrand { max-width: 300px; }
.site-footer .fbrand p { color: var(--muted); font-size: 12.5px; margin-top: 12px; line-height: 1.6; }
.site-footer .fcol { font-size: 13px; }
.site-footer .fcol .t { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 12px; }
.site-footer .fcol a { display: block; color: var(--text); opacity: 0.8; padding: 4px 0; }
.site-footer .fcol a:hover { opacity: 1; color: #C4B5FD; }
.site-footer .legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- pricing ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; padding: 26px; position: relative; }
.plan-card.hot { border-color: rgba(168, 85, 247, 0.55); box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }
.plan-card .plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan-card .plan-name { font-size: 15px; font-weight: 700; }
.plan-card .plan-for { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.plan-card .price { font-size: 34px; font-weight: 800; font-family: var(--mono); margin: 18px 0 2px; letter-spacing: -1px; }
.plan-card .price .per { font-size: 13px; color: var(--muted); font-weight: 500; font-family: var(--font); }
.plan-card ul { list-style: none; margin: 18px 0; flex: 1; }
.plan-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text);
}
.plan-card ul li svg { flex-shrink: 0; margin-top: 2.5px; }
.plan-card ul li.off { color: var(--muted); opacity: 0.6; }
.compare-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ---------- app: my bots ---------- */
.bot-card { padding: 22px; }
.bot-card .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.bot-card .row1 .name { font-size: 17px; font-weight: 700; }
.bot-card .row1 .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bot-card .bot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.bot-card .bot-stats .cell { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; text-align: center; }
.bot-card .bot-stats .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.bot-card .bot-stats .v { font-size: 16px; font-weight: 700; font-family: var(--mono); margin-top: 4px; }
.bot-card .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trial-line { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.trial-line .bar { flex: 1; }
.btn.danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FB7185;
  box-shadow: none;
}
.btn.danger:hover { background: rgba(244, 63, 94, 0.2); }
.slot-card {
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.slot-card .plus { font-size: 30px; color: var(--accent-1); font-weight: 300; }

/* ---------- app: settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(139, 92, 246, 0.07); }
.switch-row:last-child { border-bottom: none; }
.switch-row .lbl { font-size: 13.5px; font-weight: 600; }
.switch-row .hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-soft);
  transition: background 0.18s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #8A8FB0;
  transition: transform 0.18s, background 0.18s;
}
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }

/* ---------- app: trade history ---------- */
.th-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.th-summary .cell { text-align: center; padding: 16px 10px; }
.th-summary .v { font-size: 20px; font-weight: 800; font-family: var(--mono); }
.th-summary .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.pagination button {
  min-width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}
.pagination button.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .features-grid, .plans-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .site-header .nav-links { display: none; }
  .th-summary { grid-template-columns: repeat(2, 1fr); }
  .bot-card .bot-stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
}
