:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #101722;
  --panel-hi: #151e2b;
  --panel-lo: #0b1119;
  --line: rgba(255,255,255,.09);
  --line-hi: rgba(255,255,255,.15);
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.66);
  --soft: rgba(255,255,255,.42);
  --accent: #4ade80;
  --gold: #e8c76a;
  --bad: #f87171;
  --warn: #fbbf24;
  --blue: #93c5fd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 60% -120px, rgba(74,222,128,.12), transparent 65%),
    linear-gradient(180deg, #0b1119, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(8,11,16,.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 24px;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #03120a;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0;
}

.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 1px; color: var(--soft); font-size: 11px; }

.tabs {
  display: grid;
  gap: 6px;
}

.tab, .ghost {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
}

.tab:hover, .ghost:hover { background: rgba(255,255,255,.04); color: var(--text); }
.tab.active { background: rgba(74,222,128,.12); color: var(--accent); border-color: rgba(74,222,128,.24); }

.rail-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
}

.danger { color: var(--bad); }
.main { min-width: 0; }

.paywall {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  padding: 48px;
}

.paywall-copy h1, .topbar h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.notice, .empty, .card, .plan {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-radius: 8px;
}

.notice {
  max-width: 720px;
  margin-top: 26px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
}

.plans {
  display: grid;
  gap: 14px;
}

.plan {
  padding: 18px;
}

.plan.selected {
  border-color: rgba(74,222,128,.35);
  box-shadow: 0 0 0 1px rgba(74,222,128,.16);
}

.plan-name {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.plan h2 {
  margin: 0;
  font-size: 30px;
}

.plan h2 span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

.plan p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.paypal-slot {
  min-height: 48px;
  margin-top: 16px;
}

.fine {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

.app { padding: 30px; }
.hidden { display: none !important; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h1 { font-size: clamp(32px, 5vw, 54px); }

.status-pill, .badge, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-pill { background: rgba(74,222,128,.13); color: var(--accent); border: 1px solid rgba(74,222,128,.25); }
.badge { background: rgba(232,199,106,.13); color: var(--gold); }
.tag { background: rgba(255,255,255,.06); color: var(--muted); }
.tag.long, .good { color: var(--accent); }
.tag.short, .bad { color: var(--bad); }
.warn { color: var(--warn); }

.content { display: grid; gap: 14px; }

.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 16px;
  min-width: 0;
}

.card h2, .card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.metric {
  display: grid;
  gap: 4px;
}

.metric .label {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.metric .value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
}

.signal-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.symbol {
  font-size: 22px;
  font-weight: 900;
}

.levels, .rows {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.level, .row {
  background: rgba(0,0,0,.18);
  padding: 11px;
}

.level small, .row small {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.level strong, .row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--soft); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
td { color: var(--muted); }
td.mono { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.chart {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 8px;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 42px 20px;
}

.empty h2 { margin: 0; }
.empty p { margin: 0; color: var(--muted); }

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: sticky;
    height: auto;
    z-index: 10;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { margin-bottom: 12px; }
  .tabs { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .tab { white-space: nowrap; }
  .rail-foot { position: static; display: flex; margin-top: 8px; }
  .paywall { grid-template-columns: 1fr; padding: 24px; }
  .app { padding: 18px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
}
