/* ============================================================
   Road of Billionaire -- trading console
   Design: dark-only operator console (trading-terminal convention).
   Amber "phosphor" accent for brand + the predictive model's voice;
   jade/coral kept strictly for P&L semantics. Sora for UI, JetBrains
   Mono for every number so columns actually align.
   ============================================================ */

:root {
  --bg: #0A0E13;
  --surface: #12181F;
  --surface-2: #1A222B;
  --surface-3: #212B36;
  --border: #232C36;
  --border-soft: #1B232C;
  --text: #EAEEF2;
  --text-dim: #8B97A3;
  --text-faint: #5B6672;

  --accent: #E3A23C;
  --accent-soft: rgba(227, 162, 60, 0.12);
  --accent-line: rgba(227, 162, 60, 0.35);

  --pos: #34C08A;
  --pos-soft: rgba(52, 192, 138, 0.12);
  --neg: #E1566A;
  --neg-soft: rgba(225, 86, 106, 0.12);
  --warn: #F0C94A;
  --warn-soft: rgba(240, 201, 74, 0.12);

  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;

  --font-ui: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body.app-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--accent); }
a { color: inherit; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

button {
  font-family: var(--font-ui);
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- shell ---------- */
.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

/* ---------- top rail ---------- */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

.brand-text .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text .tag {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 1px;
}

.rail-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-chip {
  padding-right: 12px;
  border-right: 1px solid var(--border);
  margin-right: 2px;
  text-align: right;
  line-height: 1.35;
}
.profile-chip .p-name {
  font-size: 12.5px;
  font-weight: 600;
}
.profile-chip .p-meta {
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.clock {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding-right: 4px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
  white-space: nowrap;
}
.clock b { color: var(--text); font-weight: 500; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip.ok { color: var(--pos); border-color: rgba(52,192,138,0.3); background: var(--pos-soft); }
.chip.warn { color: var(--warn); border-color: rgba(240,201,74,0.3); background: var(--warn-soft); }
.chip.danger { color: var(--neg); border-color: rgba(225,86,106,0.3); background: var(--neg-soft); }
.chip .dot.live { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: var(--text-faint); background: var(--surface-3); }
.btn.danger:hover { border-color: var(--neg); color: var(--neg); }

/* ---------- section headings ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 16px 4px 8px;
}
.eyebrow:first-of-type { margin-top: 4px; }

/* ============================================================
   PREDICTIVE OUTLOOK -- the hero. This is the product's thesis,
   so it leads the page: full-width, top of the stack, its own
   visual register (a radial confidence dial) instead of just
   another panel in a stack.
   ============================================================ */
.hero {
  position: relative;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(140% 160% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--accent-line);
  flex-wrap: wrap;
}
.hero-head .title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-head .title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.hero-head .sub { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
}
.hero-call .dir {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-call .dir .arrow { font-size: 20px; line-height: 1; }
.hero-call .dir.up { color: var(--pos); }
.hero-call .dir.down { color: var(--neg); }
.hero-call .dir.neutral { color: var(--text-dim); font-size: 22px; }

/* Watching: the model ran fine, nothing imminent -- calm and intentional,
   not the same visual language as an actual error. */
.hero-call .dir.watching {
  color: var(--text-dim);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.hero-call .dir.watching .watch-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pos);
  margin-right: 10px;
  animation: pulse 2.2s ease-in-out infinite;
}

/* Error: session/network problems -- deliberately distinct (warn tone, icon)
   so it can't be mistaken for "watching, nothing to report yet." */
.hero-call .dir.error {
  color: var(--warn);
  font-size: 20px;
}

/* Executed: today's one trade already fired -- distinct from "watching" so
   it can't be mistaken for a still-pending forecast. Dims once closed. */
.hero-call .dir.executed {
  color: var(--pos);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.hero-call .dir.executed.closed {
  color: var(--text-dim);
}
.hero-call .dir.executed .check-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
}

/* Rejected: a signal fired and an order was sent, but the broker didn't fill
   it -- warn tone like .error, but a distinct label so it isn't mistaken for
   a session/network problem. */
.hero-call .dir.rejected {
  color: var(--neg);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.hero-call .dir.rejected .reject-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
}
.hero-call .meta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
}
.hero-call .meta b { color: var(--text); font-weight: 500; }
/* Broker rejection reason -- overrides the default bold color so it reads as
   a warning, not just emphasis, and gets its own line + breathing room. */
.hero-call .meta b.reject-reason {
  display: inline-block;
  margin-top: 4px;
  color: var(--neg);
  font-size: 14px;
}
.hero-call .method {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-faint);
}
/* Armed: the "will trigger automatically" notice while a crossover forecast is
   live -- this is the one line telling the user the bot is about to act on its
   own, so it needs to read as more than a faint caption, and its color ramps
   with confidence (JS sets --confidence-color) so it visibly "heats up" as the
   trade gets closer to firing. */
.hero-call .method.armed {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--confidence-color, var(--accent));
  transition: color .3s ease;
}
/* Notice: same size/weight bump as .armed for a line that needs to actually be
   read (e.g. "today's trade is closed"), but with a fixed dim tone instead of
   the confidence ramp -- there's no live confidence number once the day's one
   trade has already closed. */
.hero-call .method.notice {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}

.hero-div { width: 1px; align-self: stretch; background: var(--border); }

.gauge {
  --pct: 0;
  --ring-color: var(--accent);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--surface) 62%, transparent 63%),
    conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--surface-3) 0);
  flex: none;
  transition: background .3s ease;
  border: 1px solid transparent;
}
/* High-confidence: a call the model is genuinely behind gets read as "go",
   not just "the brand accent" -- same jade used for profit/CALL elsewhere. */
.gauge.high { --ring-color: var(--pos); }
.gauge.high .gauge-num { color: var(--pos); }
.gauge.error {
  --ring-color: var(--warn);
  border-color: rgba(240,201,74,0.35);
}
.gauge.error .gauge-num { color: var(--warn); }
.gauge-inner { text-align: center; }
.gauge-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.gauge-lbl {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Idle mini-game (WATCHING state only) ---------- */
.watch-game {
  border-top: 1px solid var(--accent-line);
  padding: 10px 22px 14px;
}
.watch-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.watch-game-score { font-family: var(--font-mono); }
.watch-game-score b { color: var(--text-dim); font-weight: 600; }
#watch_game_canvas {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}

/* ---------- KPI strip ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kpi {
  background: var(--surface);
  padding: 9px 14px;
  min-width: 0;
}
.kpi .label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.kpi .value {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .value.accent { color: var(--accent); }

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.panel-head .title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head .title .swatch {
  width: 7px; height: 7px; border-radius: 2px;
  flex: none;
}
.panel-body { padding: 10px 14px; }
.panel-body.flush { padding: 0; }

.tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag.live { color: var(--pos); border-color: rgba(52,192,138,0.3); background: var(--pos-soft); }
.tag.model { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- execution row: budget + options ---------- */
.exec-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 10px;
  margin-top: 10px;
}

.budget-box-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.budget-box {
  padding: 8px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  transition: all .15s ease;
}
.budget-box:hover { border-color: var(--text-faint); color: var(--text); }
.budget-box.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.budget-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.budget-note b { color: var(--text); font-weight: 500; }

.opt-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt-side {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: var(--surface-2);
}
.opt-side-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.opt-side.ce .opt-side-head { color: var(--pos); }
.opt-side.pe .opt-side-head { color: var(--neg); }
.opt-side-head .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.opt-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 12.5px;
}
.opt-fields .k { color: var(--text-faint); }
.opt-fields .v { text-align: right; }

.alert-bar {
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(240,201,74,0.3);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12.5px;
}
.alert-bar.show { display: flex; }
.alert-bar .btn { border-color: rgba(240,201,74,0.4); color: var(--warn); background: transparent; flex: none; }
.alert-bar .btn:hover { background: rgba(240,201,74,0.12); }

/* ---------- main grid: signal rail + positions ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.rail-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* An .eyebrow nested inside a rail-stack (e.g. the Log section heading under
   Live positions & P&L) already gets top spacing from the flex gap above --
   its own 28px margin-top would double up on that. */
.rail-stack > .eyebrow { margin-top: 0; }

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  font-size: 12.5px;
  line-height: 1.25;
}
.kv .k { color: var(--text-faint); }
.kv .v { text-align: right; }
.kv .v.pos { color: var(--pos); }
.kv .v.neg { color: var(--neg); }

.badge-dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
}
.badge-dir.call { background: var(--pos-soft); color: var(--pos); }
.badge-dir.put { background: var(--neg-soft); color: var(--neg); }
.badge-dir.neutral { background: var(--surface-3); color: var(--text-dim); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
/* Bounded tables: the trade log (and live positions) grow over the course of
   a trading day and would otherwise keep pushing the page taller -- capping
   height and scrolling internally (header stays pinned via thead's sticky
   top:0) is the only way "fits in one window" holds up all day, not just
   when the log happens to be short. */
.tbl-wrap-bounded { max-height: 220px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  text-align: left;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th.num, tbody td.num { text-align: right; }
tbody td {
  padding: 7px 14px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { font-family: var(--font-mono); }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge.active { background: var(--pos-soft); color: var(--pos); }
.status-badge.closed { background: var(--surface-3); color: var(--text-dim); }
.status-badge.failed { background: var(--neg-soft); color: var(--neg); }
/* Hover target for a broker rejection reason -- the log table has no spare
   column for the full message, so this is the discoverable affordance. */
.status-reason-icon {
  color: var(--neg);
  cursor: help;
  font-size: 12px;
}

.exit-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(225,86,106,0.35);
  background: transparent;
  color: var(--neg);
  font-size: 11.5px;
  font-weight: 600;
}
.exit-btn:hover { background: var(--neg-soft); }

.pnl-strip {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pnl-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.pnl-chip .lbl { font-family: var(--font-ui); font-weight: 500; color: var(--text-faint); font-size: 11px; margin-right: 6px; }
.pnl-chip.pos-tone { color: var(--pos); }
.pnl-chip.neg-tone { color: var(--neg); }

.empty-row td {
  padding: 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  white-space: normal;
}

/* ---------- tabbed log panel ---------- */
.tabs {
  display: flex;
  gap: 4px;
}
.tab-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- footer note ---------- */
.foot-note {
  margin-top: 28px;
  padding: 4px;
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .main-grid { grid-template-columns: 1fr; }
  .exec-row { grid-template-columns: 1fr; }
  .hero-body { grid-template-columns: 1fr; gap: 18px; }
  .hero-div { display: none; }
  .gauge { justify-self: start; }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .opt-sides { grid-template-columns: 1fr; }
  .rail { flex-wrap: wrap; }
  .clock { display: none; }
}

/* ============================================================
   AUTH GATE -- landing.html. This is the one page in the app that's
   a pitch, not a console -- a returning trader's first impression
   before the tool proves itself. Two-column: the case for the bot
   on the left, the one action that matters (connect Fyers) on the
   right, raised on its own card against a layered glow instead of
   flat ground.
   ============================================================ */
body.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(52,192,138,0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.auth-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 28px;
}

.auth-copy .eyebrow-lead {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.auth-copy h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.auth-copy .lead {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 0 26px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.feature-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.feature-list .check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pos-soft);
  color: var(--pos);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; gap: 36px; padding: 40px 20px; }
  .auth-card { justify-self: stretch; max-width: 100%; }
  .auth-copy h1 { font-size: 30px; }
}

.auth-card h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.auth-card .sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 20px;
  line-height: 1.5;
}

.info-box {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  margin-bottom: 22px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.info-box strong { color: var(--accent); font-weight: 600; }
.info-box a { color: var(--accent); font-weight: 500; text-decoration: none; }
.info-box a:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  transition: border-color .15s ease, background .15s ease;
}
.form-input::placeholder { color: var(--text-faint); font-family: var(--font-ui); }
.form-input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-input.invalid { border-color: rgba(225,86,106,0.5); }
.form-help {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 5px;
}

.btn-primary {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #14100A;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 4px;
  transition: filter .15s ease, transform .1s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }

.alert-line {
  display: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.alert-line.show { display: block; }
.alert-line.error { background: var(--neg-soft); border: 1px solid rgba(225,86,106,0.3); color: var(--neg); }
.alert-line.success { background: var(--pos-soft); border: 1px solid rgba(52,192,138,0.3); color: var(--pos); }

.auth-divider {
  text-align: center;
  position: relative;
  margin: 22px 0 18px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 10px;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-signup { text-align: center; }
.auth-signup p { font-size: 12.5px; color: var(--text-dim); margin: 0 0 10px; }
