:root {
  color-scheme: dark;
  --bg: #050817;
  --surface: #0b1022;
  --surface-2: #0d1428;
  --surface-3: #121a31;
  --line: rgba(121, 141, 181, 0.24);
  --line-strong: rgba(121, 141, 181, 0.38);
  --text: #f4f7ff;
  --muted: #8893ab;
  --muted-2: #6f7a94;
  --green: #48d597;
  --green-deep: #163d35;
  --red: #ff4f78;
  --amber: #f7b318;
  --blue: #58a6ff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 101, 255, 0.16), transparent 32%),
    radial-gradient(circle at 85% 30%, rgba(72, 213, 151, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.terminal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1500px) / 2));
  background: rgba(13, 18, 35, 0.92);
  border-bottom: 1px solid rgba(121, 141, 181, 0.16);
  backdrop-filter: blur(8px);
}

.brand-block,
.brand-line,
.system-strip,
.status-pill,
.account-pill,
.vip-pill,
.chart-head,
.column-title,
.match-summary,
.feature-row,
.hidden-head,
.metric-pair,
.equal-return {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 16px;
  min-width: 360px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #4bd89d, #34b87b);
  box-shadow: 0 14px 36px rgba(72, 213, 151, 0.22);
}

.brand-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #07151a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.brand-line {
  gap: 12px;
}

.brand-line strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
}

.brand-line span {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--green);
  background: rgba(72, 213, 151, 0.12);
  font: 800 13px var(--mono);
}

.brand-block p {
  margin: 7px 0 0;
  color: #aab4ca;
  font-size: 15px;
  font-weight: 700;
}

.system-strip {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill,
.account-pill,
.vip-pill {
  min-height: 36px;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111a33;
  color: #aeb8ce;
  font: 800 13px var(--mono);
  white-space: nowrap;
}

.status-pill .green {
  color: var(--green);
}

.account-pill {
  border-color: rgba(88, 166, 255, 0.38);
}

.account-pill button {
  border: 0;
  border-radius: 6px;
  min-height: 26px;
  padding: 0 10px;
  color: #dbe7ff;
  background: rgba(88, 166, 255, 0.16);
  font-weight: 900;
}

.bolt {
  color: var(--amber);
  font-size: 20px;
}

.db-icon {
  color: var(--blue);
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.status-pill button,
.vip-pill button {
  border: 0;
  border-radius: 6px;
  min-height: 26px;
  padding: 0 10px;
  font-weight: 900;
}

.status-pill button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.vip-pill {
  border-color: rgba(247, 179, 24, 0.42);
  color: #ffd166;
  background: rgba(94, 57, 8, 0.28);
}

.vip-pill button {
  color: #251600;
  background: var(--amber);
}

.terminal-shell {
  width: min(1500px, calc(100vw - 48px));
  margin: 22px auto 42px;
  display: grid;
  gap: 28px;
}

.roi-stage,
.match-summary,
.feature-row,
.vip-lock-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #11192f, #080d1d),
    var(--surface);
  box-shadow: var(--shadow);
}

.roi-stage {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.45fr);
  gap: 30px;
  padding: 30px;
}

.proof-badge,
.competition-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 213, 151, 0.32);
  background: rgba(72, 213, 151, 0.11);
  color: var(--green);
  font-weight: 900;
}

.roi-copy h1 {
  margin: 24px 0 16px;
  max-width: 620px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.roi-copy p {
  max-width: 660px;
  margin: 0;
  color: #aeb8cc;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.return-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.return-cards div {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e162d;
}

.return-cards span,
.return-cards small,
.xg-panel span,
.feature-row p,
.chart-legend,
.bankroll-control span,
.allocation-item small,
.equal-return span,
.factor-stack span {
  color: #9faac1;
}

.return-cards strong {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font: 900 34px var(--mono);
}

.return-cards .loss {
  color: var(--red);
}

.return-cards small {
  font-weight: 700;
}

.chart-panel {
  position: relative;
  min-height: 274px;
  margin: 8px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #081022;
  overflow: hidden;
}

.chart-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.chart-head strong {
  font-size: 15px;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(155, 168, 199, 0.65);
  border-radius: 10px;
  background: rgba(6, 10, 23, 0.9);
}

.segmented button {
  border: 0;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 7px;
  background: transparent;
  color: #929cb4;
  font-weight: 900;
}

.segmented button.active {
  color: #06131a;
  background: var(--green);
}

#roi-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-callout {
  position: absolute;
  right: 82px;
  top: 116px;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #10172d;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.chart-callout strong,
.chart-callout span,
.chart-callout em {
  display: block;
  font-family: var(--mono);
}

.chart-callout strong {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 12px;
}

.chart-callout span {
  color: var(--green);
  font-weight: 900;
}

.chart-callout em {
  margin-top: 9px;
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.55fr) minmax(620px, 1.12fr);
  gap: 32px;
  align-items: start;
}

.column-title {
  gap: 12px;
  margin-bottom: 16px;
}

.column-title h2 {
  margin: 0;
  color: #a5afc5;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.column-title span {
  min-width: 36px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #202b43;
  color: #c0cae0;
  font: 900 13px var(--mono);
}

.fixture-list {
  max-height: 614px;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding-right: 6px;
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.fixture-row {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090f20;
  color: var(--text);
  display: grid;
  grid-template-columns: 145px 1fr 138px;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 22px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.fixture-row:hover,
.fixture-row.active {
  transform: translateX(4px);
  border-color: rgba(72, 213, 151, 0.55);
  background: #101936;
}

.fixture-row.locked {
  box-shadow: inset 110px 0 90px rgba(255, 255, 255, 0.03);
}

.fixture-row.locked strong {
  justify-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(247, 179, 24, 0.85);
  border-radius: 9px;
  color: #f8ce46;
  font-weight: 900;
}

body.vip-unlocked .fixture-row.locked strong {
  border-color: rgba(72, 213, 151, 0.78);
  color: var(--green);
  background: rgba(72, 213, 151, 0.1);
}

body.vip-unlocked .fixture-row.locked small {
  color: var(--green);
}

.fixture-row.free strong {
  justify-self: end;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--green);
  background: rgba(72, 213, 151, 0.12);
  font-size: 13px;
}

.fixture-row small {
  color: #d6a629;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.league {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #202a41;
  color: #c5cee2;
  font: 800 13px var(--mono);
}

.match-workspace {
  display: grid;
  gap: 28px;
}

.match-summary {
  min-height: 250px;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.match-summary h2 {
  margin: 26px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.match-summary h2 b {
  color: var(--green);
  font-weight: 900;
}

.match-summary p {
  margin: 0;
  color: #aeb8cc;
  font-size: 17px;
  font-weight: 700;
}

.xg-panel {
  min-width: 202px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111a33;
}

.xg-panel > span {
  display: block;
  margin-bottom: 12px;
  font: 800 13px var(--mono);
}

.xg-panel strong {
  color: var(--green);
  font: 900 23px var(--mono);
}

.xg-panel strong span:last-child {
  display: inline;
  margin: 0;
  color: #6fb4ff;
  font: inherit;
}

.feature-row {
  min-height: 108px;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
}

.feature-row p {
  margin: 0 0 8px;
  font-weight: 800;
}

.feature-row strong {
  color: #edf2ff;
  font-style: italic;
  line-height: 1.5;
}

.feature-row button,
.lock-core button {
  border: 0;
  border-radius: 11px;
  min-height: 48px;
  padding: 0 24px;
  color: #07151a;
  background: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.vip-lock-panel {
  position: relative;
  min-height: 460px;
  padding: 34px;
  overflow: hidden;
}

.vip-lock-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(247, 179, 24, 0.08), transparent 15%),
    linear-gradient(180deg, transparent, rgba(3, 6, 16, 0.48));
  pointer-events: none;
}

.lock-core {
  position: absolute;
  z-index: 2;
  inset: 58px 36px 44px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 13, 29, 0.52), rgba(8, 13, 29, 0.86));
}

.lock-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(247, 179, 24, 0.34);
  border-radius: 50%;
  background: rgba(247, 179, 24, 0.09);
}

.lock-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #f7c64b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lock-core h2 {
  margin: 0 0 18px;
  color: #e8eefc;
  font-size: 26px;
}

.lock-core p {
  max-width: 660px;
  margin: 0 0 34px;
  color: #a3adc2;
  line-height: 1.8;
  font-weight: 700;
}

.lock-core button {
  background: linear-gradient(135deg, #a66d14, #d9941b);
  color: #1c1000;
  min-width: 260px;
}

.hidden-vip {
  filter: blur(3px);
  opacity: 0.32;
  pointer-events: none;
}

.vip-lock-panel.free-mode .lock-core {
  display: none;
}

.vip-lock-panel.unlocked-mode .lock-core {
  display: none;
}

.vip-lock-panel.free-mode .hidden-vip {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.vip-lock-panel.unlocked-mode .hidden-vip {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.vip-lock-panel.free-mode .vip-only {
  display: none;
}

.vip-lock-panel.free-mode {
  min-height: auto;
}

.vip-lock-panel.free-mode::before {
  display: none;
}

.vip-lock-panel.unlocked-mode::before {
  display: none;
}

body.vip-unlocked .vip-pill {
  border-color: rgba(72, 213, 151, 0.58);
  color: var(--green);
  background: rgba(72, 213, 151, 0.12);
}

body.vip-unlocked .vip-pill button {
  color: #062014;
  background: var(--green);
  cursor: default;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 14, 0.72);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #121b34, #080d1d);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c7d1e7;
  background: #0b1226;
  font-size: 20px;
  line-height: 1;
}

.modal-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.modal-head span,
.form-message,
.support-note {
  color: #a5afc6;
  line-height: 1.6;
  font-weight: 700;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #070c1b;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: #9da8bf;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #07151a;
  background: var(--green);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #aeb8ce;
  font-weight: 800;
}

.input-shell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #050a17;
  padding: 0 12px;
}

.input-shell > svg,
.password-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #a8b2c8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-form input {
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.auth-form input::placeholder {
  color: #7d879d;
}

.password-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

.password-toggle .eye-closed,
.password-toggle.showing .eye-open {
  display: none;
}

.password-toggle.showing .eye-closed {
  display: block;
}

.auth-form button,
.support-action {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  color: #07151a;
  background: var(--green);
  font-weight: 900;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #ffd166;
}

.support-card {
  width: min(560px, 100%);
}

.support-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.support-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d152b;
}

.support-list span {
  color: #9faac1;
  font-weight: 800;
}

.support-list strong {
  color: #eef3ff;
  line-height: 1.4;
}

.support-action {
  width: 100%;
  background: linear-gradient(135deg, #48d597, #34b87b);
}

.support-action:disabled {
  cursor: default;
  opacity: 0.7;
}

.support-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.hidden-head {
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font: 900 11px var(--mono);
  text-transform: uppercase;
}

.hidden-head h3 {
  margin: 0;
  font-size: 22px;
}

.metric-pair {
  gap: 12px;
}

.metric-pair span,
.equal-return {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10182f;
  color: #aab4ca;
  font-size: 13px;
}

.metric-pair strong,
.equal-return strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font: 900 22px var(--mono);
}

.bankroll-control {
  display: grid;
  gap: 8px;
  margin: 20px 0 12px;
}

.bankroll-control input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(72, 213, 151, 0.38);
  border-radius: 9px;
  background: #060b18;
  color: var(--text);
  padding: 0 14px;
  font: 900 18px var(--mono);
}

.allocation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.allocation-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10182f;
}

.check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--green);
  color: #04130d;
  font-size: 12px;
  font-weight: 900;
}

.allocation-item strong,
.allocation-item small,
.stake {
  display: block;
}

.stake {
  margin-top: 8px;
  color: var(--green);
  font: 900 18px var(--mono);
}

.equal-return {
  justify-content: space-between;
  margin: 12px 0;
}

.heatmap-wrap {
  margin-top: 16px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 7px;
}

.cell {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 9px;
  text-align: left;
}

.score,
.prob {
  font: 900 14px var(--mono);
}

.prob {
  color: #eef3ff;
}

.cell small {
  color: var(--muted);
  font: 700 10px var(--mono);
}

.top-score {
  outline: 1px solid rgba(247, 179, 24, 0.82);
}

.factor-stack {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .terminal-header {
    position: static;
    height: auto;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-block {
    min-width: 0;
  }

  .terminal-shell {
    width: min(100vw - 28px, 920px);
  }

  .roi-stage,
  .live-layout {
    grid-template-columns: 1fr;
  }

  .chart-callout {
    right: 34px;
  }
}

@media (max-width: 760px) {
  .system-strip,
  .return-cards,
  .match-summary,
  .feature-row,
  .hidden-head,
  .allocation-list {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .roi-stage,
  .chart-panel,
  .match-summary,
  .feature-row,
  .vip-lock-panel {
    padding: 18px;
  }

  .fixture-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .fixture-row.locked strong,
  .fixture-row.free strong,
  .fixture-row small {
    justify-self: start;
    text-align: left;
  }

  .chart-callout {
    display: none;
  }

  .heatmap {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }
}
