:root {
  --bg: #101a28;
  --bg-alt: #14202f;
  --panel: #182636;
  --panel-raised: #1f3044;
  --hairline: #33495f;
  --ink: #f5f8fb;
  --muted: #aebccf;
  --cyan: #2dd8ff;
  --cyan-soft: rgba(45,216,255,0.16);
  --green: #3fe8ab;
  --amber: #ffc164;
  --red: #ff7070;

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win over any component's own `display`
   rule (e.g. `.paywall-overlay { display: flex }`) — without this, elements
   with an explicit `display` set stay visually visible even when JS sets
   `.hidden = true`, since the two rules tie in specificity and the later
   one (ours) wins the cascade. This single rule fixes that everywhere. */
[hidden] { display: none !important; }


body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(45,216,255,0.09), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(63,232,171,0.05), transparent 60%);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.55;
}

#app { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }

/* ---------- nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,10,16,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  margin: 0 -24px 32px;
}
.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand img { height: 60px; display: block; filter: drop-shadow(0 0 8px rgba(45,216,255,0.35)); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
}
.tab-btn:hover { color: var(--ink); border-color: var(--hairline); }
.tab-btn.active {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.35);
  background: var(--cyan-soft);
}

.tab-panel { animation: fade-in 0.25s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- shared type helpers ---------- */
.eyebrow-neon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}
.neon-cyan { color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.45); }
h1 { font-size: clamp(32px, 5vw, 48px); margin: 14px 0 10px; line-height: 1.1; font-weight: 700; }
.hero-sub { color: var(--muted); max-width: 56ch; font-size: 16px; }

/* ---------- home hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0 50px;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 380px; }
.cta-btn {
  margin-top: 22px;
  background: linear-gradient(135deg, #00d4ff, #00a3c9);
  color: #04141b;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(0,212,255,0.35);
}
.cta-btn:hover { filter: brightness(1.08); }
.ghost-btn {
  background: transparent;
  border: 1.5px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.ghost-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-visual { flex: 1 1 320px; display: flex; justify-content: center; }
.bull-hero-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0 10px;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 760px) { .feature-strip { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 22px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--cyan); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- process tab ---------- */
.process-header, .portfolio-wrap > .process-header { padding: 30px 0 10px; }
.section-title { font-size: 20px; margin: 44px 0 8px; color: var(--ink); }
.section-intro { color: var(--muted); max-width: 70ch; margin: 0 0 22px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .metric-grid { grid-template-columns: 1fr; } }
.metric-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px;
}
.metric-card-formula { border-color: rgba(0,212,255,0.35); background: var(--cyan-soft); }
.metric-icon { font-size: 26px; margin-bottom: 6px; }
.metric-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.metric-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

.funnel { display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-width: 640px; }
.funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
}
.funnel-step-final { border-color: rgba(46,230,166,0.4); background: rgba(46,230,166,0.06); }
.funnel-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.funnel-step h4 { margin: 0 0 4px; font-size: 14.5px; }
.funnel-step p { margin: 0; color: var(--muted); font-size: 13px; }
.funnel-arrow { text-align: center; color: var(--cyan); font-size: 16px; opacity: 0.6; }

.verdict-scale { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }
.verdict-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  border: 1.5px solid currentColor;
}
.verdict-chip.strong-buy { color: var(--green); }
.verdict-chip.buy { color: #7fe0b8; }
.verdict-chip.hold { color: var(--amber); }
.verdict-chip.sell { color: #ff9a7f; }
.verdict-chip.strong-sell { color: var(--red); }

.disclaimer { color: var(--muted); font-size: 12.5px; font-style: italic; max-width: 70ch; }

/* ---------- investigator: intake ---------- */
.desk { padding-top: 10px; }
.tab-header-logo { text-align: center; padding: 10px 0 26px; }
.tab-header-logo img {
  height: 110px;
  max-width: 90%;
  filter: drop-shadow(0 0 16px rgba(45,216,255,0.3));
}
.intake label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.intake-row { display: flex; gap: 10px; }
#ticker-input {
  flex: 1;
  background: var(--panel);
  border: 1.5px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#ticker-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.15); }
#submit-btn {
  background: linear-gradient(135deg, #00d4ff, #00a3c9);
  color: #04141b;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 22px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
}
#submit-btn:hover { filter: brightness(1.1); }
#submit-btn:disabled { opacity: 0.5; cursor: wait; }
#submit-btn:focus-visible, #ticker-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.status { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.status.error { color: var(--red); font-weight: 600; }

.file { margin-top: 32px; position: relative; }
.file-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-bottom: none;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
}
#file-ticker { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--cyan); }
.file-name { color: var(--muted); font-style: italic; font-size: 14px; }

.folder {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 0 10px 10px 10px;
  padding: 28px;
  position: relative;
}

.company-profile {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
}
.company-profile-text { flex: 1; }
.company-description { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.company-stats { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.company-stats > span { display: flex; flex-direction: column; gap: 3px; }
.company-stats .label { font-size: 10px; }

.top-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px dashed var(--hairline); }
.price-block { display: flex; flex-direction: column; gap: 6px; }
.label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.big-number { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--ink); }
.big-number.accent { color: var(--cyan); }

.verdict-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  padding: 28px 0;
  border-top: 2px solid var(--hairline);
  flex-wrap: wrap;
}
.composite-block { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.composite-number { font-family: var(--font-mono); font-size: clamp(44px, 7vw, 64px); font-weight: 700; color: var(--cyan); text-shadow: 0 0 24px rgba(0,212,255,0.35); }

.stamp-block { display: flex; align-items: center; gap: 10px; }
.stamp {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 9px 18px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(255,90,90,0.06);
}
.stamp.buy, .stamp.strong-buy { color: var(--green); border-color: var(--green); background: rgba(46,230,166,0.08); }
.stamp.hold { color: var(--amber); border-color: var(--amber); background: rgba(255,181,71,0.08); }

/* ---------- dossiers ---------- */
.dossier-grid { display: grid; grid-template-columns: 1.2fr auto 1fr; gap: 28px; margin-top: 24px; align-items: stretch; }
@media (max-width: 720px) {
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-divider { display: none; }
}
.dossier-divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--hairline) 15%, var(--hairline) 85%, transparent);
  position: relative;
}
.dossier-divider::before {
  content: "VS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 2px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.dossier-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dossier h2 { font-size: 16.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  background: var(--panel-raised);
}
.grade-block { display: flex; align-items: baseline; gap: 10px; }
.grade-pill {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 8px;
  background: var(--panel-raised);
  border: 2px solid currentColor;
}

.ledger { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; }
.ledger th, .ledger td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--hairline); }
.ledger th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel-raised); }
.ledger td.grade { font-weight: 800; font-size: 15px; }

.figures { margin: 0; font-family: var(--font-mono); font-size: 14px; }
.figures > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.figures dt { color: var(--muted); font-style: italic; }
.figures dd { margin: 0; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.valuation-note { margin: 12px 0 0; font-size: 12px; color: var(--amber); font-style: italic; font-weight: 600; }

.case-note { margin: 24px 0 0; font-size: 12.5px; color: var(--muted); font-style: italic; border-top: 1px dashed var(--hairline); padding-top: 16px; }

/* ---------- supplemental / news / summary ---------- */
.supplemental, .news-section, .summary-section { margin-top: 32px; }
.supplemental h2, .news-section h2, .summary-section h2 { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
#raw-table-container { margin-top: 16px; overflow-x: auto; }
.raw-table { font-size: 12.5px; white-space: nowrap; }
.raw-table th, .raw-table td { padding: 7px 10px; }
.raw-table th.metric-col, .raw-table td.metric-col { position: sticky; left: 0; background: var(--panel); font-weight: 700; text-align: left; white-space: normal; min-width: 150px; }
.raw-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.news-list a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.news-list a:hover { text-decoration: underline; }
.news-meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }

.summary-text {
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
  background: var(--panel-raised); border: 1px solid var(--hairline); border-left: 3px solid var(--cyan);
  padding: 16px 18px; border-radius: 6px; margin: 0;
}

/* ---------- portfolio ---------- */
.privacy-note { color: var(--muted); font-size: 12.5px; font-style: italic; margin-top: 4px; }
.portfolio-table input {
  width: 100%;
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 7px 9px;
  border-radius: 5px;
}
.portfolio-table input:focus { outline: none; border-color: var(--cyan); }
.portfolio-table .remove-row-btn {
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.portfolio-actions { display: flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.portfolio-results { margin-top: 24px; }
.portfolio-results-table td.grade { font-weight: 800; }
.score-meaning {
  text-align: center;
  font-size: 14.5px;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 auto 24px;
}
.score-legend {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.score-legend h3 { font-size: 15px; margin: 0 0 12px; }
.score-legend-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.score-legend-row:last-child { border-bottom: none; }
.score-range {
  flex-shrink: 0;
  width: 90px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
}
.score-legend-row strong { color: var(--ink); }

/* ---------- letterhead ---------- */
.letterhead { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ================= BULL RIG (shared shapes) ================= */
.bull-shadow { fill: rgba(0,0,0,0.35); }
.leg rect { fill: #2a333d; stroke: #00d4ff; stroke-width: 1.2; }
.leg { transform-box: fill-box; transform-origin: 50% 0%; }
.tail { transform-box: fill-box; transform-origin: 100% 0%; }
.head { transform-box: fill-box; transform-origin: 15% 85%; }
.snort circle { opacity: 0; }
.bolt { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.spark circle { fill: #ffcf5c; opacity: 0; }

/* ---------- home hero: idle loop (breathing, tail swish, eye pulse) ---------- */
.bull-rig-idle .body { animation: idle-breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.bull-rig-idle .tail { animation: idle-tail 2.6s ease-in-out infinite; }
.bull-rig-idle .eye { animation: idle-eye-pulse 2.2s ease-in-out infinite; }
@keyframes idle-breathe {
  0%, 100% { scale: 1 1; }
  50%      { scale: 1.02 1.03; }
}
@keyframes idle-tail {
  0%, 100% { rotate: -6deg; }
  50%      { rotate: 6deg; }
}
@keyframes idle-eye-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ---------- investigator: full 6-phase cycle (STRONG BUY only) ---------- */
.bull-charge { width: 110px; height: 50px; flex-shrink: 0; overflow: hidden; }
.bull-stage { width: 100%; height: 100%; display: block; overflow: visible; }

.bull-charge.run .bull-rig { animation: bull-run 4s steps(1, end) infinite; }
.bull-charge.run .leg-back { animation: leg-swing-back 0.3s ease-in-out infinite; animation-play-state: running; }
.bull-charge.run .leg-front { animation: leg-swing-front 0.3s ease-in-out infinite; }
.bull-charge.run .tail { animation: tail-wag 0.45s ease-in-out infinite; }
.bull-charge.run .head { animation: head-cycle 4s ease-in-out infinite; }
.bull-charge.run .snort-1 { animation: snort-puff 0.9s ease-out infinite; animation-delay: 2.2s; }
.bull-charge.run .snort-2 { animation: snort-puff 0.9s ease-out infinite; animation-delay: 2.55s; }
.bull-charge.run .spark-1 { animation: spark-pop 0.5s ease-out infinite; animation-delay: 1.8s; }
.bull-charge.run .spark-2 { animation: spark-pop 0.5s ease-out infinite; animation-delay: 1.95s; }
.bull-charge.run .bolt-1 { animation: bolt-flash 0.9s ease-out infinite; animation-delay: 3.0s; }
.bull-charge.run .bolt-2 { animation: bolt-flash 0.9s ease-out infinite; animation-delay: 3.1s; }

/* 1. Idle 0-0.8s  2. Charge 0.8-1.8s (run)  3. Stop 1.8-2.2s  4. Snort 2.2-3.0s
   5. Horn Toss 3.0-3.5s  6. Return 3.5-4.0s  — percentages of the 4s loop */
@keyframes bull-run {
  0%     { translate: -6px 0; scale: 1 1; }
  20%    { translate: -3px 0; scale: 1 1; }         /* idle, subtle */
  20.01% { translate: -3px 0; scale: 1 1; }
  45%    { translate: 30px 0; scale: 1 1; }          /* charge: running across */
  55%    { translate: 34px 0; scale: 1 1; }          /* stop: braced */
  75%    { translate: 34px 0; scale: 1 1; }          /* snort + horn toss: held */
  87%    { translate: 34px 0; scale: -1 1; }          /* flip to return */
  100%   { translate: -6px 0; scale: 1 1; }          /* back to idle start */
}
@keyframes leg-swing-back { 0%, 100% { rotate: 20deg; } 50% { rotate: -20deg; } }
@keyframes leg-swing-front { 0%, 100% { rotate: -20deg; } 50% { rotate: 20deg; } }
@keyframes tail-wag { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }

@keyframes head-cycle {
  0%   { rotate: 0deg; }     /* idle */
  20%  { rotate: -2deg; }
  45%  { rotate: -6deg; }    /* charge lean */
  55%  { rotate: -2deg; }    /* stop, brace */
  62%  { rotate: 10deg; }    /* snort: head lowers (slight downward-then-up read) */
  75%  { rotate: -32deg; }   /* horn toss: sharp upward tilt */
  85%  { rotate: -6deg; }
  100% { rotate: 0deg; }     /* return to idle */
}
@keyframes snort-puff {
  0%   { opacity: 0; scale: 0.3 0.3; }
  20%  { opacity: 0.85; scale: 0.8 0.8; }
  100% { opacity: 0; scale: 1.7 1.7; }
}
@keyframes spark-pop {
  0%   { opacity: 0; scale: 0.4 0.4; }
  30%  { opacity: 1; scale: 1 1; }
  100% { opacity: 0; scale: 1.3 1.3; }
}
@keyframes bolt-flash {
  0%, 100% { opacity: 0; }
  10%, 40% { opacity: 1; }
  25%      { opacity: 0.2; }
}

/* ---------- auth pages ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 36px 32px;
}
.auth-form { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.auth-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.auth-form input {
  background: var(--panel-raised);
  border: 1.5px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 6px;
  outline: none;
}
.auth-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45,216,255,0.15); }
.field-hint { color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.auth-form .cta-btn { margin-top: 20px; width: 100%; }
.auth-switch { margin-top: 20px; color: var(--muted); font-size: 13.5px; text-align: center; }
.auth-switch a { color: var(--cyan); }
#account-body .cta-btn, #account-body .ghost-btn { display: block; width: 100%; margin-top: 12px; }

/* ---------- nav auth state ---------- */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.trial-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 4px 10px;
  border-radius: 20px;
}
.nav-auth a { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; text-decoration: none; }
.nav-auth a:hover { color: var(--cyan); }

.gated-wrap { position: relative; }

.gated-wrap > .desk.locked,
.gated-wrap > .portfolio-wrap.locked {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16,26,40,0.55);
  backdrop-filter: blur(1px);
}
.paywall-card {
  max-width: 440px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.paywall-card h2 { margin-top: 0; }

/* ---------- section breaks in the Investigator report ---------- */
.section-break {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 34px 0;
}
