/* WHY Trading Bot × Yellow — front-end prototype styles
   Brand: WHY molten gradient (ember → orange → gold), Bricolage Grotesque / Inter / JetBrains Mono. */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: #10131a;
  --panel-2: #141821;
  --panel-3: #1a1f2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eceef2;
  --text-2: #c9cdd6;
  --muted: #9aa1ae;
  --dim: #6b7280;

  --gold: #f3c76a;
  --gold-2: #ffe6ae;
  --orange: #f0852a;
  --ember: #c2381a;
  --molten: linear-gradient(115deg, #c2381a 0%, #f0852a 38%, #f3c76a 72%, #ffe6ae 100%);

  --venue: #f8d34a;           /* Yellow venue marker */
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --red: #f2616b;
  --red-bg: rgba(242, 97, 107, 0.1);
  --amber: #f5b84b;
  --amber-bg: rgba(245, 184, 75, 0.1);
  --blue: #7aa2f7;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(243, 199, 106, 0.3); }

/* ---------- views ---------- */
.view { display: none; }
.view.is-active { display: block; animation: viewIn 0.5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.brand .brand-name { font-size: 17px; }
.brand .brand-name b { font-weight: 800; }
.brand .brand-x { color: var(--dim); font-weight: 500; margin: 0 2px; }
.venue-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 10px; border-radius: 99px;
  background: rgba(248, 211, 74, 0.07); border: 1px solid rgba(248, 211, 74, 0.2);
}
.venue-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--venue); box-shadow: 0 0 0 3px rgba(248, 211, 74, 0.15); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #1a1206;
  background: linear-gradient(180deg, #f7d488 0%, #f0b955 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 8px 24px -8px rgba(240, 133, 42, 0.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #fadd9a 0%, #f3c160 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 30px -8px rgba(240, 133, 42, 0.7); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.btn-quiet { color: var(--muted); height: 36px; padding: 0 12px; }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-danger { color: #ffd6d9; background: rgba(242, 97, 107, 0.12); border: 1px solid rgba(242, 97, 107, 0.3); }
.btn-danger:hover { background: rgba(242, 97, 107, 0.18); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--gold); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn { color: var(--gold); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--gold-2); }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 99px;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255, 255, 255, 0.03);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green { color: var(--green); background: var(--green-bg); border-color: rgba(52, 211, 153, 0.25); }
.pill-red { color: var(--red); background: var(--red-bg); border-color: rgba(242, 97, 107, 0.25); }
.pill-amber { color: var(--amber); background: var(--amber-bg); border-color: rgba(245, 184, 75, 0.28); }
.pill-gold { color: var(--gold); background: rgba(243, 199, 106, 0.08); border-color: rgba(243, 199, 106, 0.25); }
.pill-muted { color: var(--muted); }
.pill .dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 5px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.side { font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; padding: 5px 8px; border-radius: 6px; }
.side-long { color: var(--green); background: var(--green-bg); }
.side-short { color: var(--red); background: var(--red-bg); }
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--font-body); color: var(--dim); letter-spacing: 0.04em;
  padding: 5px 8px; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 6px;
}

/* ============================================================
   LANDING
   ============================================================ */
.landing { position: relative; }
.glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.glow::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -220px; top: -380px;
  background: radial-gradient(closest-side, rgba(240, 133, 42, 0.16), transparent 70%);
}
.glow::after {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; top: 120px;
  background: radial-gradient(closest-side, rgba(243, 199, 106, 0.06), transparent 70%);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%);
}

.site-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-nav nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.site-nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav .nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.hero { position: relative; z-index: 1; padding: 72px 0 96px; }
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.6; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.hero h1 .grad { background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero .proof { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero .proof div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.hero .proof svg { color: var(--gold); flex: none; }

/* hero preview */
.preview-wrap { position: relative; }
.preview-wrap::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: 32px;
  background: var(--molten); filter: blur(70px); opacity: 0.16; z-index: 0;
}
.preview {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.92), rgba(14, 17, 23, 0.96));
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow), 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  padding: 20px; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-head .brand img { width: 22px; height: 22px; }
.preview-head .brand .brand-name { font-size: 14px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.p-stat { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.p-stat .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.p-stat .v { font: 600 21px/1.2 var(--font-mono); margin-top: 6px; letter-spacing: -0.02em; }
.p-stat .v small { font-size: 13px; color: var(--dim); font-weight: 500; }
.p-stat.wide { grid-column: span 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.p-spark { width: 58%; height: 54px; }
.preview-rows { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.p-row { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 0.9fr; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; }
.p-row + .p-row { border-top: 1px solid var(--line); }
.p-row .mk { font-weight: 600; }
.p-row .r { text-align: right; }
.preview-note { position: relative; z-index: 1; margin-top: 14px; text-align: center; font-size: 12px; color: var(--dim); }

/* sections */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.trust-card { padding: 30px 28px 32px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.trust-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(243, 199, 106, 0.08); border: 1px solid rgba(243, 199, 106, 0.18); color: var(--gold);
}
.trust-card h3 { font: 700 13px/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; margin: 24px 0 10px; }
.trust-card p { color: var(--muted); font-size: 15px; }
.trust-card p strong { color: var(--text-2); font-weight: 600; }

.security {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; margin-top: 18px;
}
.security-copy { padding: 48px 48px 44px; }
.security-copy h3 { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 16px; }
.security-copy > p { color: var(--muted); }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 15px; }
.check-list svg { color: var(--green); margin-top: 3px; }
.security-visual {
  position: relative; border-left: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, rgba(240, 133, 42, 0.12), transparent 60%), var(--bg-2);
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.never {
  border-radius: 16px; padding: 22px 22px; border: 1px solid rgba(243, 199, 106, 0.3);
  background: linear-gradient(180deg, rgba(243, 199, 106, 0.09), rgba(243, 199, 106, 0.03));
}
.never .k { font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.never .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-top: 10px; line-height: 1.15; }
.perm-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.perm-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 14px; }
.perm-row + .perm-row { border-top: 1px solid var(--line); }
.perm-row .mono { color: var(--text-2); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step-card { padding: 28px 24px 30px; position: relative; }
.step-card .n { font: 600 13px/1 var(--font-mono); color: var(--gold); letter-spacing: 0.04em; }
.step-card h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 10px; line-height: 1.2; }
.step-card p { color: var(--muted); font-size: 14.5px; }
.step-card .line { position: absolute; top: 34px; left: 64px; right: 24px; height: 1px; background: linear-gradient(90deg, rgba(243, 199, 106, 0.4), transparent); }
.funds-note {
  margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-2); font-size: 15px;
}
.funds-note svg { color: var(--gold); }

.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.spec-strip > div { padding: 24px 26px; }
.spec-strip > div + div { border-left: 1px solid var(--line); }
.spec-strip .k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.spec-strip .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; }
.spec-strip .s { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: 72px 32px;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(70% 120% at 50% 0%, rgba(240, 133, 42, 0.18), transparent 70%), var(--panel);
}
.cta-band h2 { margin: 0 auto; max-width: 720px; }
.cta-band p { color: var(--muted); margin: 16px auto 32px; max-width: 520px; font-size: 17px; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 96px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.disclosure { margin-top: 28px; color: var(--dim); font-size: 12.5px; line-height: 1.7; max-width: 920px; }
.disclosure p + p { margin-top: 8px; }

/* ============================================================
   ONBOARDING
   ============================================================ */
.onb { min-height: 100vh; position: relative; }
.onb-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(7, 8, 11, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.onb-top .left { display: flex; align-items: center; gap: 16px; }
.progress { position: relative; z-index: 1; display: flex; justify-content: center; gap: 0; padding: 36px 24px 8px; }
.progress ol { list-style: none; display: flex; align-items: center; gap: 0; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13.5px; font-weight: 500; }
.progress li + li::before { content: ""; width: 56px; height: 1px; background: var(--line-2); margin: 0 14px; transition: background 0.4s; }
.progress .bullet {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--font-mono); border: 1px solid var(--line-2); color: var(--dim);
  transition: all 0.35s var(--ease);
}
.progress li.is-current { color: var(--text); }
.progress li.is-current .bullet { border-color: var(--gold); color: #1a1206; background: var(--gold); box-shadow: 0 0 0 4px rgba(243, 199, 106, 0.14); }
.progress li.is-done { color: var(--text-2); }
.progress li.is-done .bullet { border-color: rgba(52, 211, 153, 0.5); color: var(--green); background: var(--green-bg); }
.progress li.is-done + li::before, .progress li.is-current::before { background: rgba(243, 199, 106, 0.45); }

.onb-stage { position: relative; z-index: 1; padding: 28px 24px 80px; }
.pane { display: none; }
.pane.is-active { display: block; animation: paneIn 0.45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px) scale(0.995); } to { opacity: 1; transform: none; } }
.onb-card { max-width: 480px; margin: 0 auto; padding: 36px 36px 32px; }
.onb-card.wide { max-width: 980px; }
.onb-card.mid { max-width: 760px; }
.onb-card h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.025em; line-height: 1.15; }
.onb-card .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.step-label { font: 600 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.form { margin-top: 28px; display: grid; gap: 18px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none;
}
.input::placeholder { color: #5b6270; }
.input:hover { border-color: rgba(255, 255, 255, 0.18); }
.input:focus { border-color: rgba(243, 199, 106, 0.6); box-shadow: 0 0 0 4px rgba(243, 199, 106, 0.1); background: rgba(0, 0, 0, 0.36); }
.input.mono { font-size: 14px; }
.input.has-btn { padding-right: 48px; }
.input-btn { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); }
.input-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.field.invalid .input { border-color: rgba(242, 97, 107, 0.6); }
.field .err { display: none; color: var(--red); font-size: 12.5px; margin-top: 7px; }
.field.invalid .err { display: block; }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 7px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; cursor: pointer; margin-top: 1px; transition: all 0.2s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #1a1206; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.invalid input { border-color: var(--red); }
.form-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.onb-actions .right { margin-left: auto; display: flex; gap: 10px; }

.connect-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.connect-grid > div { padding-top: 28px; }
.connect-grid .aside { border-left: 1px solid var(--line); padding-left: 32px; margin-left: 32px; }
.notice {
  border-radius: 14px; padding: 18px 18px 18px 18px; display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  background: rgba(243, 199, 106, 0.06); border: 1px solid rgba(243, 199, 106, 0.24);
}
.notice svg { color: var(--gold); margin-top: 1px; }
.notice .t { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.notice ul { list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.notice ul li::before { content: "—"; color: var(--dim); margin-right: 8px; }
.notice ul li strong { color: var(--text); }
.notice.subtle { background: rgba(255, 255, 255, 0.025); border-color: var(--line); }
.notice.subtle svg { color: var(--muted); }
.notice.amber { background: var(--amber-bg); border-color: rgba(245, 184, 75, 0.28); }
.notice.amber svg { color: var(--amber); }
.notice p { font-size: 14px; color: var(--text-2); }
.privacy { display: grid; gap: 18px; }
.privacy h4 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.privacy-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.privacy-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); }
.privacy-item p { font-size: 14px; color: var(--muted); }
.privacy-item p strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; font-size: 14.5px; }
.schema-note { font-size: 12px; color: var(--dim); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }

/* verifying */
.verify { max-width: 520px; margin: 0 auto; text-align: center; padding: 44px 36px 40px; }
.spinner-ring { width: 64px; height: 64px; margin: 0 auto 26px; position: relative; }
.spinner-ring svg { width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.verify h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.verify-steps { list-style: none; margin: 28px auto 0; max-width: 300px; text-align: left; display: grid; gap: 14px; }
.verify-steps li { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 14.5px; transition: color 0.3s; }
.verify-steps .st { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all 0.3s; }
.verify-steps li.run { color: var(--text); }
.verify-steps li.run .st { border-color: var(--gold); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.verify-steps li.ok { color: var(--text-2); }
.verify-steps li.ok .st { background: var(--green-bg); border-color: rgba(52, 211, 153, 0.5); color: var(--green); }

/* connected */
.connected-head { display: flex; align-items: center; gap: 16px; }
.ok-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-bg); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--green); flex: none; animation: pop 0.5s var(--ease); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.connected-head .t { font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.connected-head h2 { margin-top: 6px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv > div { padding: 16px 18px; }
.kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.kv .k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.kv .v { margin-top: 6px; font-size: 16px; font-weight: 600; }
.kv .v.mono { font-size: 15px; }

/* trading setup */
.setup-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-top: 26px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(255, 255, 255, 0.02); }
.tile .k { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .v { font: 600 22px/1.2 var(--font-mono); margin-top: 8px; letter-spacing: -0.02em; }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.lock-ico { color: var(--dim); }
.setup-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.size-label { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.size-label + p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* custom select */
.select { position: relative; margin-top: 18px; }
.select-btn {
  width: 100%; height: 64px; border-radius: 14px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select-btn:hover { border-color: rgba(255, 255, 255, 0.2); }
.select.open .select-btn, .select-btn:focus-visible { border-color: rgba(243, 199, 106, 0.6); box-shadow: 0 0 0 4px rgba(243, 199, 106, 0.1); outline: none; }
.select-btn .val { font: 600 26px/1 var(--font-mono); letter-spacing: -0.02em; }
.select-btn .val small { font: 500 13px/1 var(--font-body); color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.select-btn .chev { color: var(--muted); transition: transform 0.25s var(--ease); }
.select.open .chev { transform: rotate(180deg); }
.select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: #151923; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s var(--ease);
  list-style: none; max-height: 340px; overflow: auto;
}
.select.open .select-list { opacity: 1; transform: none; pointer-events: auto; }
.select-list li {
  padding: 12px 14px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font: 600 16px/1 var(--font-mono);
}
.select-list li small { font: 500 12px/1 var(--font-body); color: var(--dim); }
.select-list li:hover, .select-list li.hl { background: rgba(255, 255, 255, 0.05); }
.select-list li[aria-selected="true"] { background: rgba(243, 199, 106, 0.1); color: var(--gold); }
.select-list li[aria-selected="true"] small { color: rgba(243, 199, 106, 0.7); }
.size-explain { margin-top: 16px; font-size: 14px; color: var(--muted); padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.size-explain b { color: var(--text); font-weight: 600; }
.size-notice { margin-top: 12px; }
.size-notice:empty { display: none; }

.calc { padding: 22px 22px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(243, 199, 106, 0.05), rgba(255, 255, 255, 0.015)); }
.calc-head { display: flex; justify-content: space-between; align-items: center; }
.calc-head .t { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.calc-rows { margin-top: 14px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.calc-row:last-child { border-bottom: 0; }
.calc-row .k { color: var(--muted); }
.calc-row .v { font: 600 16px/1 var(--font-mono); }
.calc-row.em .v { color: var(--gold); font-size: 18px; }
.util { margin-top: 16px; }
.util-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.util-head b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.util-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; position: relative; }
.util-fill { height: 100%; border-radius: 99px; background: var(--molten); width: 0; transition: width 0.6s var(--ease); }
.util-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 6px; font-family: var(--font-mono); }
.util-foot { font-size: 12.5px; color: var(--dim); margin-top: 12px; }
.freedom { margin-top: 18px; }

/* confirm */
.summary { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; font-size: 14.5px; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.risk-box { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.risk-box strong { color: var(--text-2); }
.confirm-check { margin-top: 20px; }

/* activation overlay */
.overlay {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(5, 6, 9, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.overlay.is-open { display: grid; animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.activate-card { width: min(440px, calc(100vw - 32px)); text-align: center; padding: 40px 32px 36px; }
.activate-card .logo-spin { width: 64px; height: 64px; margin: 0 auto 22px; animation: spin 3.5s linear infinite; }
.activate-card h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }

/* ============================================================
   APP / DASHBOARD
   ============================================================ */
.app { display: none; }
.app.is-active { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; animation: viewIn 0.5s var(--ease); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px;
}
.sidebar .brand { padding: 4px 10px 22px; }
.sidebar .brand img { width: 26px; height: 26px; }
.sidebar .brand .brand-name { font-size: 16px; }
.side-nav { display: grid; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.side-nav button svg { flex: none; opacity: 0.8; }
.side-nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.side-nav button.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 2px 0 0 var(--gold); }
.side-nav button.is-active svg { color: var(--gold); opacity: 1; }
.side-section { font: 600 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 18px 12px 10px; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.venue-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, 0.02); }
.venue-card .row { display: flex; justify-content: space-between; align-items: center; }
.venue-card .name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.venue-card .meta { font-size: 12px; color: var(--dim); margin-top: 6px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #1a1206; background: var(--molten); flex: none; }
.user-row .who { font-size: 13px; overflow: hidden; }
.user-row .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .who .e { color: var(--dim); font-size: 12px; }
.user-row button { margin-left: auto; color: var(--dim); padding: 6px; border-radius: 6px; }
.user-row button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar h1 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 700; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mobile-brand { display: none; }
.mobile-only { display: none; }
.page { display: none; padding: 28px 32px 64px; max-width: 1360px; }
.page.is-active { display: block; animation: paneIn 0.4s var(--ease); }

.banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; margin-bottom: 20px;
  border: 1px solid rgba(245, 184, 75, 0.3); background: linear-gradient(90deg, rgba(245, 184, 75, 0.1), rgba(245, 184, 75, 0.03));
}
.banner .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 184, 75, 0.14); color: var(--amber); flex: none; }
.banner .txt { font-size: 14px; color: var(--text-2); }
.banner .txt b { color: var(--text); }
.banner .txt .sm { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.banner .act { margin-left: auto; display: flex; gap: 8px; flex: none; }
.banner.red { border-color: rgba(242, 97, 107, 0.3); background: linear-gradient(90deg, rgba(242, 97, 107, 0.1), rgba(242, 97, 107, 0.02)); }
.banner.red .ico { background: rgba(242, 97, 107, 0.14); color: var(--red); }
.banner.green { border-color: rgba(52, 211, 153, 0.3); background: linear-gradient(90deg, rgba(52, 211, 153, 0.1), rgba(52, 211, 153, 0.02)); }
.banner.green .ico { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.transition-track { display: flex; gap: 6px; margin-top: 8px; }
.transition-track span { width: 22px; height: 4px; border-radius: 4px; background: rgba(245, 184, 75, 0.9); transition: background 0.4s; }
.transition-track span.done { background: rgba(255, 255, 255, 0.12); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 20px 20px 18px; }
.kpi .k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.kpi .v { font: 600 28px/1.15 var(--font-mono); margin-top: 12px; letter-spacing: -0.03em; }
.kpi .s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.status-strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 0; margin-top: 14px; }
.status-strip > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.status-strip > div + div { border-left: 1px solid var(--line); }
.status-strip .k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.status-strip .v { display: flex; align-items: center; gap: 10px; font: 600 20px/1.2 var(--font-mono); letter-spacing: -0.02em; }
.slots { display: flex; gap: 4px; }
.slots span { width: 12px; height: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); transition: background 0.4s; }
.slots span.on { background: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.015em; font-weight: 700; }
.panel-head .sub { font-size: 13px; color: var(--dim); margin-top: 2px; }
.panel-head .tools { display: flex; align-items: center; gap: 10px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }

.chart { position: relative; height: 260px; }
.chart.sm { height: 200px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gridline { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.chart .axis-label { fill: var(--dim); font: 11px var(--font-mono); }
.chart .zero { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: url(#lineGrad); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaGrad); }
.chart .cross { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.chart .dot { fill: var(--gold); stroke: var(--bg); stroke-width: 3; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -110%);
  background: #1a1f2a; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.15s;
}
.chart-tip .d { color: var(--dim); }
.chart-tip .v { font: 600 14px/1.3 var(--font-mono); margin-top: 2px; }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 600 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 0 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr { transition: background 0.2s; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.tbl .mkt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.coin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 9.5px/1 var(--font-body); color: #0b0d12; flex: none; letter-spacing: -0.02em; }
.tbl .strat { font: 500 12px/1 var(--font-mono); color: var(--text-2); padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.res { font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; }
.res-target { color: var(--green); }
.res-stop { color: var(--red); }
.res-time { color: var(--muted); }
.tbl .sub-line { display: block; font-size: 11.5px; color: var(--dim); font-weight: 400; margin-top: 3px; }
.flash-up { animation: flashUp 0.9s; }
.flash-down { animation: flashDown 0.9s; }
@keyframes flashUp { 0% { color: #8ff0c7; } 100% { } }
@keyframes flashDown { 0% { color: #ff9ca3; } 100% { } }
.row-in { animation: rowIn 0.6s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.range-bar { position: relative; width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(242, 97, 107, 0.45), rgba(255, 255, 255, 0.08) 50%, rgba(52, 211, 153, 0.45)); }
.range-bar i { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--text); transform: translateX(-50%); transition: left 0.6s var(--ease); }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); font-size: 14px; }
.empty .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--dim); }

.compact-list { display: grid; }
.compact-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.compact-item:last-child { border-bottom: 0; }
.compact-item .l1 { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.compact-item .l2 { font-size: 12.5px; color: var(--dim); grid-column: 1; }
.compact-item .rv { text-align: right; font: 600 14px/1.2 var(--font-mono); }
.compact-item .rs { text-align: right; font-size: 12px; color: var(--dim); }

.perf-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.strat-card { padding: 20px 22px; }
.strat-card .name { font: 600 14px/1 var(--font-mono); display: flex; justify-content: space-between; align-items: center; }
.strat-card .desc { font-size: 13px; color: var(--muted); margin-top: 8px; }
.strat-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.strat-card .nums .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.strat-card .nums .v { font: 600 18px/1.2 var(--font-mono); margin-top: 6px; }
.winbar { height: 6px; border-radius: 6px; background: rgba(242, 97, 107, 0.35); overflow: hidden; margin-top: 16px; }
.winbar i { display: block; height: 100%; background: var(--green); border-radius: 6px; transition: width 0.6s var(--ease); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip-btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: all 0.2s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.is-active { color: var(--text); border-color: rgba(243, 199, 106, 0.4); background: rgba(243, 199, 106, 0.08); }

.conn-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.conn-status { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.conn-status .big { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
.venue-mark { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(248, 211, 74, 0.08); border: 1px solid rgba(248, 211, 74, 0.25); flex: none; }
.venue-mark span { width: 16px; height: 16px; border-radius: 50%; background: var(--venue); box-shadow: 0 0 0 6px rgba(248, 211, 74, 0.12); }
.detail-rows { display: grid; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; gap: 16px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.detail-row .v { font-weight: 600; display: flex; align-items: center; gap: 8px; text-align: right; }
.detail-row .v.mono { font-size: 14px; }
.btn-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.setting { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.setting:first-of-type { padding-top: 4px; }
.setting:last-child { border-bottom: 0; padding-bottom: 0; }
.setting .t { font-weight: 600; font-size: 15px; }
.setting .d { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 520px; }
.setting .val { display: flex; align-items: center; gap: 12px; font: 600 22px/1 var(--font-mono); }
.toggle { position: relative; width: 46px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2); transition: background 0.25s, border-color 0.25s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d7dbe3; transition: transform 0.25s var(--ease), background 0.25s; }
.toggle[aria-checked="true"] { background: rgba(245, 184, 75, 0.35); border-color: rgba(245, 184, 75, 0.6); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); background: var(--amber); }

/* ---------- modal / drawer ---------- */
.modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
.modal-root.is-open { display: block; }
.scrim { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s; }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 30px 30px 26px; animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal h3 { font-family: var(--font-display); font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.modal .body { color: var(--text-2); font-size: 14.5px; margin-top: 14px; display: grid; gap: 12px; }
.modal .body p { color: var(--muted); }
.modal .body p strong { color: var(--text); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); }
.modal-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.modal-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(243, 199, 106, 0.08); border: 1px solid rgba(243, 199, 106, 0.22); color: var(--gold); }
.modal-ico.red { background: var(--red-bg); border-color: rgba(242, 97, 107, 0.3); color: var(--red); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 4px; }
.flow .box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.flow .box .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.flow .box .v { font: 600 20px/1.2 var(--font-mono); margin-top: 4px; }
.flow .box.new { border-color: rgba(243, 199, 106, 0.4); background: rgba(243, 199, 106, 0.05); }
.flow .arr { color: var(--dim); }
.mini-select { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-select button { height: 34px; padding: 0 12px; border-radius: 8px; font: 600 13px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: all 0.2s; }
.mini-select button:hover { color: var(--text); border-color: var(--line-2); }
.mini-select button.is-active { color: var(--gold); border-color: rgba(243, 199, 106, 0.45); background: rgba(243, 199, 106, 0.08); }
.mini-select button[disabled] { opacity: 0.35; pointer-events: none; }
.steps-mini { list-style: none; display: grid; gap: 10px; counter-reset: m; }
.steps-mini li { counter-increment: m; display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 14px; color: var(--muted); }
.steps-mini li::before { content: counter(m); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px/1 var(--font-mono); color: var(--gold); border: 1px solid rgba(243, 199, 106, 0.3); }
.steps-mini li b { color: var(--text); font-weight: 600; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100vw);
  background: #0e1117; border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; animation: drawerIn 0.4s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 26px 28px 20px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; margin-top: 10px; }
.drawer-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.drawer-body { padding: 24px 28px; overflow: auto; flex: 1; }
.howto { list-style: none; display: grid; gap: 0; counter-reset: h; position: relative; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.howto li::before {
  content: counter(h); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--font-mono); color: var(--gold); background: #0e1117; border: 1px solid rgba(243, 199, 106, 0.35); position: relative; z-index: 1;
}
.howto li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 1px; background: var(--line-2); }
.howto li .t { font-weight: 600; font-size: 15px; padding-top: 6px; }
.howto li .d { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.howto li.warn::before { color: var(--red); border-color: rgba(242, 97, 107, 0.5); background: #1a1013; }
.howto li.warn .t { color: #ffb3b8; }
.drawer-foot { padding: 18px 28px 24px; border-top: 1px solid var(--line); }

/* toasts */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 380px;
  padding: 14px 16px; border-radius: 12px; background: #161a23; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8); font-size: 14px; animation: toastIn 0.4s var(--ease);
}
.toast.out { animation: toastOut 0.3s forwards; }
.toast .ti { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--green-bg); color: var(--green); }
.toast.amber .ti { background: var(--amber-bg); color: var(--amber); }
.toast.gold .ti { background: rgba(243, 199, 106, 0.1); color: var(--gold); }
.toast .tx b { display: block; font-weight: 600; }
.toast .tx span { color: var(--muted); font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.app-foot { color: var(--dim); font-size: 12px; line-height: 1.7; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); max-width: 980px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .kpis, .perf-kpis { grid-template-columns: repeat(2, 1fr); }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > div:nth-child(3) { border-left: 0; }
  .status-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2, .conn-grid, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .preview-wrap { max-width: 560px; }
  .trust-grid { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
  .security-visual { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-strip > div:nth-child(3) { border-left: 0; }
  .spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .connect-grid, .setup-body { grid-template-columns: 1fr; }
  .connect-grid .aside { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .setup-top { grid-template-columns: 1fr 1fr; }
  .app.is-active { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 25; height: auto; flex-direction: row; align-items: center;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; gap: 8px;
    background: rgba(11, 13, 18, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .sidebar .brand, .side-section, .side-foot { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav button { white-space: nowrap; padding: 9px 12px; }
  .side-nav button.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
  .topbar { position: relative; }
  .mobile-brand { display: inline-flex; }
  .mobile-only { display: inline-flex; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .site-nav .container { height: 62px; gap: 12px; }
  .site-nav nav, .site-nav .nav-actions .btn-ghost { display: none; }
  .site-nav .nav-actions .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hero { padding: 40px 0 64px; }
  .hero .lede { font-size: 16px; }
  .hero .ctas .btn { flex: 1; }
  .p-stat .v { font-size: 18px; }
  .p-row { grid-template-columns: 1fr 0.8fr 0.9fr; }
  .p-row .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .security-copy, .security-visual { padding: 30px 24px; }
  .steps { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta-band { padding: 48px 22px; }
  .onb-top { padding: 0 16px; height: 66px; }
  .onb-top .left { min-width: 0; gap: 12px; }
  .onb-top .brand { gap: 8px; flex: none; }
  .onb-top .brand .brand-name { font-size: 15px; white-space: nowrap; }
  .onb-top .venue-chip { display: none; }
  .onb-top .top-right { min-width: 0; margin-left: auto; }
  .onb-top #whoEmail { display: none; }
  .onb-top #signOutBtn { margin-left: 8px; }
  .progress { padding: 22px 12px 4px; }
  .progress li { font-size: 0; gap: 0; }
  .progress li + li::before { width: 28px; margin: 0 8px; }
  .progress li.is-current { font-size: 12.5px; gap: 8px; }
  .onb-stage { padding: 20px 14px 64px; }
  .onb-card { padding: 26px 20px 24px; }
  .onb-card h2 { font-size: 25px; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { border-right: 0; }
  .kv > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .setup-top { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .v { font-size: 18px; }
  .select-list { grid-template-columns: 1fr 1fr; }
  .onb-actions { flex-direction: column-reverse; align-items: stretch; }
  .onb-actions .right { margin-left: 0; flex-direction: column; }
  .onb-actions .btn { width: 100%; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar h1 { display: none; }
  .topbar .right .hide-sm { display: none; }
  .page { padding: 18px 14px 56px; }
  .kpis, .perf-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px 14px; }
  .kpi .v { font-size: 20px; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > div { padding: 14px 14px; }
  .status-strip .v { font-size: 16px; }
  .panel { padding: 18px 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .strat-grid { grid-template-columns: 1fr; }
  .banner { flex-wrap: wrap; }
  .banner .act { margin-left: 52px; }
  .setting { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arr { transform: rotate(90deg); justify-self: center; }
  .modal { padding: 26px 20px 20px; }
  .modal .actions { flex-direction: column-reverse; }
  .modal .actions .btn { width: 100%; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* refinements */
#bannerHost .banner { margin-bottom: 0; }
#bannerHost:not([hidden]) ~ .page { padding-top: 20px; }
.status-strip .v { white-space: nowrap; }
@media (max-width: 1024px) {
  .sidebar .brand { display: inline-flex; padding: 0 6px 0 0; flex: none; }
  .sidebar .brand .brand-name { display: none; }
  .mobile-brand { display: none !important; }
}
@media (max-width: 720px) {
  .status-strip .slots { display: none; }
  #bannerHost:not([hidden]) ~ .page { padding-top: 14px; }
}

/* simple size step */
.pane[data-pane="setup"] .select { margin-top: 26px; }
.pane[data-pane="setup"] .select-list { grid-template-columns: 1fr; max-height: 360px; }
.size-line { margin-top: 14px; color: var(--muted); font-size: 14px; }
.size-line b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
