/* ============================================================
   HOODYRICH — "PRIVATE TERMINAL" DESIGN SYSTEM
   Terminal black · liquid gold · editorial serif · mono data
   ============================================================ */

:root {
  /* Canvas */
  --bg: #0b0d11;
  --bg-deep: #07090c;
  --card: #14171e;
  --card-2: #191d26;
  --panel: #12151b;
  --line: rgba(197, 198, 200, 0.1);
  --line-strong: rgba(212, 168, 67, 0.35);
  --hairline: rgba(197, 198, 200, 0.14);

  /* Ink */
  --ink: #f2f0ea;
  --ink-soft: #c5c6c8;
  --ink-faint: #7d8288;

  /* Liquid gold — the single conviction color */
  --gold: #d4a843;
  --gold-bright: #e9c268;
  --gold-deep: #a37d24;
  --gold-soft: rgba(212, 168, 67, 0.12);
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);
  --accent-soft: var(--gold-soft);

  /* Market colors — reserved strictly for data */
  --buy: #2ee27e;
  --buy-soft: rgba(46, 226, 126, 0.12);
  --sell: #ff4d5e;
  --sell-soft: rgba(255, 77, 94, 0.12);
  --warn: #e8b34b;
  --tp: #9aa7ff;
  --tp-soft: rgba(154, 167, 255, 0.14);

  /* Shape & depth: sharp, flat, precise */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 34px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* Type */
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #0d0f14 0%, #0b0d11 30%, #090b0f 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
::selection { background: var(--gold-soft); color: var(--ink); }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-bright); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 20px; }
.wrap-wide { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Editorial utilities ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.muted { color: var(--ink-soft); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.buy { color: var(--buy); }
.sell { color: var(--sell); }

/* ── Header / public nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topline {
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.topline .wrap-wide {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topline b { color: var(--gold); font-weight: 600; }
.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links > a:not(.btn) {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-links > a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,.04); }

/* Brand: gold monogram plate + serif wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand img { display: none; }
.brand::before {
  content: "HR";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background:
    linear-gradient(140deg, rgba(212,168,67,.16), transparent 55%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(212,168,67,.08), 0 4px 14px rgba(0,0,0,.5);
}
.brand span span { color: var(--gold); }

/* ── Buttons: precise, flat, gold conviction ─────────────────── */
.btn, .nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #14100a !important;
  box-shadow: 0 8px 26px rgba(212, 168, 67, 0.22);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-soft {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--hairline);
}
.btn-soft:hover { border-color: var(--line-strong); color: var(--gold-bright) !important; background: var(--gold-soft); }
.btn-navy { /* legacy alias */
  background: var(--card-2);
  color: var(--ink) !important;
  border-color: var(--line-strong);
}
.btn-danger { background: transparent; color: var(--sell); border-color: rgba(255, 77, 94, 0.4); }
.btn-danger:hover { background: var(--sell-soft); }
.btn-warn { background: transparent; color: var(--warn); border-color: rgba(232, 179, 75, 0.4); }
.btn-warn:hover { background: rgba(232, 179, 75, 0.1); }

/* ── Panels: flat charcoal plates, hairline rules ────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-glow {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgba(212,168,67,.06), transparent 45%),
    var(--panel);
}
.panel-quiet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) {
  .grid-plans { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid2, .grid3, .grid-plans { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .grid4 { grid-template-columns: 1fr; } }

/* ── Ticker tape ─────────────────────────────────────────────── */
.tape {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-deep);
  white-space: nowrap;
}
.tape-track {
  display: inline-flex;
  gap: 0;
  animation: tape 42s linear infinite;
  padding: 9px 0;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 26px;
  border-right: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.tape-item .sym { color: var(--ink-soft); font-weight: 700; }
.tape-item .px { color: var(--ink); }
.tape-item .src { color: var(--gold); font-size: 9px; text-transform: uppercase; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Hero (editorial) ────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 52px 0 56px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 26px; }
}
.hero-copy h1, .hero-h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 20px 0 0;
}
.hero-copy h1 em, .gold-em {
  font-style: italic;
  color: var(--gold);
}
.hero-copy h1 .sub {
  display: block;
  font-family: var(--font);
  font-size: 0.34em;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-top: 18px;
  line-height: 1.6;
}
.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 16px 0 0;
}
.brand-hero span { color: var(--gold); font-style: italic; }
.brand-hero small {
  display: block;
  margin-top: 12px;
  font-family: var(--font);
  font-size: 0.3em;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.legal-mini { margin-top: 16px; font-size: 11px; color: var(--ink-faint); }

/* ── Terminal mock: ledger style ─────────────────────────────── */
.terminal {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #14171e 0%, #0e1116 100%);
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}
.terminal-pair {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.terminal-body { padding: 16px 18px 18px; }
.chart-svg { width: 100%; height: 150px; display: block; margin: 6px 0 14px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.level .k {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.level .v { font-family: var(--mono); font-weight: 600; margin-top: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── Chips & badges ──────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.chip-live { background: var(--gold-soft); color: var(--gold); border-color: rgba(212,168,67,.3); }
.chip-buy { background: var(--buy-soft); color: var(--buy); border-color: rgba(46,226,126,.28); }
.chip-sell { background: var(--sell-soft); color: var(--sell); border-color: rgba(255,77,94,.28); }
.chip-tp { background: var(--tp-soft); color: var(--tp); border-color: rgba(154,167,255,.3); }
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212,168,67,.6);
  animation: pulse 1.8s infinite;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,.06);
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
}
.badge.pro { background: var(--gold-soft); color: var(--gold); border-color: rgba(212,168,67,.4); }
.badge.free { background: var(--buy-soft); color: var(--buy); border-color: rgba(46,226,126,.3); }
.badge.sub { background: var(--tp-soft); color: var(--tp); border-color: rgba(154,167,255,.3); }

/* Tier badges */
.tier-free { border: 1px solid var(--hairline); color: var(--ink-faint); }
.tier-starter { border: 1px solid rgba(46,226,126,.35); color: var(--buy); background: var(--buy-soft); }
.tier-pro { border: 1px solid rgba(212,168,67,.4); color: var(--gold); background: var(--gold-soft); }
.tier-elite { border: 1px solid rgba(154,167,255,.4); color: var(--tp); background: var(--tp-soft); }

/* ── Stats: ledger numerals ──────────────────────────────────── */
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.stat .k {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  font-weight: 700;
}
.stat .v {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Stats strip (marketing) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.stat-strip > div {
  padding: 22px 20px;
  border-right: 1px solid var(--hairline);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .big {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-strip .lbl {
  margin-top: 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  font-weight: 700;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* ── Sections / features ─────────────────────────────────────── */
.section-head { margin: 52px 0 22px; }
.section-head h1, .section-head h2 { margin: 10px 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.features {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-deep);
  margin: 26px -20px 0;
  padding: 52px 20px;
}
.feature-kicker {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.feature h3 { font-size: 1.3rem; margin: 10px 0 8px; }

/* Numbered editorial list */
.ed-list { counter-reset: ed; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.ed-item {
  counter-increment: ed;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.ed-item::before {
  content: "0" counter(ed);
  font-family: var(--mono);
  color: var(--gold);
  font-size: 13px;
  padding-top: 4px;
}
.ed-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ed-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Testimonials: serif pull quotes */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.quote-card figcaption b { color: var(--gold); font-weight: 600; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--gold);
  font-size: 16px;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }

/* ── Pricing ─────────────────────────────────────────────────── */
.price {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
}
.price small {
  font-family: var(--mono);
  font-size: 0.34em;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.plan-card.featured {
  border-color: var(--line-strong);
  background:
    linear-gradient(165deg, rgba(212,168,67,.08), transparent 50%),
    var(--panel);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  flex: 1;
}
.plan-card li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.plan-card li:last-child { border-bottom: 0; }
.plan-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--mono);
}

/* ── Forms ───────────────────────────────────────────────────── */
.field, select, input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
select { appearance: auto; -webkit-appearance: menulist; cursor: pointer; }
select option { background: var(--card); color: var(--ink); }
.phone-row { display: grid; grid-template-columns: 88px 1fr; gap: 8px; margin-top: 6px; }
.phone-row input { margin-top: 0; }
.phone-row #dial {
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
}
label { display: block; font-size: 13.5px; margin-top: 12px; font-weight: 600; color: var(--ink-soft); }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 13.5px; border: 1px solid transparent; }
.flash.ok { background: var(--buy-soft); color: var(--buy); border-color: rgba(46,226,126,.25); }
.flash.error { background: var(--sell-soft); color: var(--sell); border-color: rgba(255,77,94,.25); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tabs a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.tabs a.active { background: var(--gold-soft); color: var(--gold); border-color: var(--line-strong); }

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px;
}
.list-row:last-child { border-bottom: 0; }
.list-row .badge { align-self: center; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 72px;
  background: var(--bg-deep);
}
.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0 30px;
}
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-cols h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-cols a { display: block; color: var(--ink-soft); font-size: 13.5px; padding: 4px 0; }
.foot-cols a:hover { color: var(--gold); }
.foot-legal {
  border-top: 1px solid var(--hairline);
  padding: 18px 0 26px;
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.foot-legal b { color: var(--ink-soft); }

/* ── Dashboard shell ─────────────────────────────────────────── */
.dash-body { background: var(--bg); }
.dash-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 14px 28px;
  background: var(--bg-deep);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
}
.side-profile:hover { color: var(--ink); border-color: var(--line-strong); }
.side-profile strong { display: block; font-size: 13.5px; }
.side-profile small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold);
  font-weight: 600;
  font-family: var(--display);
}
.side-group {
  margin: 16px 10px 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.side-link:hover { background: rgba(255,255,255,.03); color: var(--ink); }
.side-link.active {
  border-left-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}
.side-badge {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--sell);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.side-logout { margin-top: auto; color: var(--ink-faint); }
.dash-main { padding: 22px 26px 100px; max-width: 1120px; }
.dash-content { max-width: 980px; }
.dash-risk { font-size: 11px; margin: 30px 0 0; max-width: 640px; color: var(--ink-faint); }
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  padding: 9px 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-radius: var(--radius-sm);
}
.bottom-nav a.active { color: var(--gold); background: var(--gold-soft); }
@media (max-width: 960px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .bottom-nav { display: grid; }
  .dash-main { padding: 16px 16px 110px; }
}

/* ── Dashboard hero ──────────────────────────────────────────── */
.hero-panel { position: relative; overflow: hidden; }
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 90% at 92% 0%, rgba(212,168,67,.1), transparent 55%);
}
.hero-panel > * { position: relative; }

/* Quick actions & shortcuts */
.action-card, .shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  transition: border-color .2s ease, transform .15s ease;
}
.action-card:hover, .shortcut:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.action-card div, .shortcut div { display: flex; flex-direction: column; gap: 2px; }
.action-card strong, .shortcut strong { font-size: 14px; }
.action-card .muted, .shortcut .muted { font-size: 11.5px; }
.action-fast { border-color: var(--line-strong); background: linear-gradient(150deg, rgba(212,168,67,.1), transparent 60%), var(--card); }
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(212,168,67,.25);
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}
.shortcut { box-shadow: var(--shadow); }
.fast-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-color: var(--line-strong);
  color: var(--ink);
}
.fast-banner:hover { color: var(--ink); border-color: var(--gold); }

/* ── Market board ────────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (max-width: 1000px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote-tile { background: var(--card); padding: 13px 14px; }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; }
.quote-symbol { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; }
.quote-src {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.quote-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 7px;
}
.quote-price.tick { animation: quoteTick .8s ease; }
.quote-class {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-top: 5px;
}
@keyframes quoteTick {
  0% { color: var(--gold); text-shadow: 0 0 12px rgba(212,168,67,.5); }
  100% { color: var(--ink); text-shadow: none; }
}

/* ── Signal cards ────────────────────────────────────────────── */
.signal-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.signal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
}
.sig-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sig-symbol { font-family: var(--mono); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; margin-right: auto; }
.sig-status {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
}
.sig-status.hit { background: var(--buy-soft); color: var(--buy); border-color: rgba(46,226,126,.35); }
.sig-status.stopped { background: var(--sell-soft); color: var(--sell); border-color: rgba(255,77,94,.35); }
.sig-conf-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sig-conf-row strong { color: var(--ink); }
.sig-meter {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.sig-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
}
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sig-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin: 16px 0 7px;
  font-weight: 700;
}
.sig-levels { display: flex; flex-direction: column; gap: 5px; }
.sig-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .2s ease, background .2s ease;
}
.sig-level.tp span:first-child { color: var(--tp); font-weight: 700; }
.sig-level.stop span:first-child { color: var(--sell); font-weight: 700; }
.sig-level.is-hit { border-color: rgba(46,226,126,.45); background: var(--buy-soft); }
.sig-level.is-stopped { border-color: rgba(255,77,94,.5); background: var(--sell-soft); }

/* ── Fast bot terminal ───────────────────────────────────────── */
.wl-bar { height: 6px; border-radius: 3px; overflow: hidden; background: var(--sell-soft); border: 1px solid rgba(255,77,94,.2); }
.wl-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--buy), #57eda0);
  transition: width .6s ease;
}
.clock {
  font-family: var(--mono);
  font-size: 3.2rem;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.countdown-panel .clock { margin: 20px 0 8px; text-shadow: 0 0 30px rgba(212,168,67,.3); }
.cycle-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}
.cycle-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 1s linear;
}
.reason-log {
  margin: 12px auto 0;
  max-width: 540px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212,168,67,.22);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  letter-spacing: 0.03em;
}

/* Trade log */
.trade-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.trade-row:last-child { border-bottom: 0; }
.trade-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; }
.trade-reason {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-row strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Bell */
.bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--card);
  font-size: 16px;
  flex: 0 0 42px;
  transition: border-color .2s ease;
}
.bell:hover { border-color: var(--line-strong); }
.bell em {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--sell);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── Misc components carried over ────────────────────────────── */
.pref-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.pref-list a:last-child { border-bottom: 0; }
.pref-list a span { color: var(--ink-faint); font-weight: 500; font-size: 12.5px; font-family: var(--mono); }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lang-grid button {
  text-align: left; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.lang-grid button.active { border-color: var(--line-strong); background: var(--gold-soft); color: var(--gold); }
.code-block {
  font-family: var(--mono); font-size: 12px; white-space: pre-wrap;
  background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 14px; color: var(--gold-bright); overflow-x: auto;
}
.medal { font-size: 1.05rem; }
.tool-card.locked { opacity: .8; }
.channel-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Motion ──────────────────────────────────────────────────── */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,168,67,.5); }
  70% { box-shadow: 0 0 0 9px rgba(212,168,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s cubic-bezier(.22,1,.36,1) both; }
.rise-2 { animation: rise .7s cubic-bezier(.22,1,.36,1) .08s both; }
.rise-3 { animation: rise .75s cubic-bezier(.22,1,.36,1) .16s both; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: dash 1.6s ease forwards .4s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
