/* Live sale page. System fonts only. The banner text comes from the sale description. */
:root {
  --bg: #0c0c0e;
  --card: #151518;
  --inset: #0f0f11;
  --line: #2a2a30;
  --gold: #e8b40f;
  --ink: #121212;
  --cream: #f4f0e8;
  --muted: #a8a49c;
  --green: #8fd9b0;
  --green-bg: #13261c;
  --red: #f0a8a2;
  --red-bg: #2c1616;
  --amber: #e8b40f;
  --amber-bg: #2a220f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 520px at 100% 0%, rgba(232, 180, 15, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; }
.top {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(12, 12, 14, 0.94);
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.product {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a, .nav button {
  background: transparent;
  border: 0;
  color: var(--cream);
  font: inherit;
  text-decoration: none;
  padding: 6px 0;
  cursor: pointer;
}
.nav a[data-route="sign-up"] {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav a[data-route="sign-up"][aria-current="page"] { box-shadow: none; }
.account { position: relative; }
.account summary {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
}
.account summary::-webkit-details-marker { display: none; }
.account summary::after { content: "▾"; color: var(--gold); margin-left: 6px; }
.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2;
  min-width: 260px;
  padding: 8px;
  background: var(--card);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.session-end {
  margin: 0;
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
#session-menu-clock {
  display: block;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-size: 20px;
}
#session-menu-clock.soon { color: var(--red); }
.account-panel button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--cream);
}
.account-panel button[data-action="signout"] { color: var(--red); }
.banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--amber-bg);
  color: var(--gold);
  border: 1px solid #6a5420;
  border-radius: 12px;
}
.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.text-button {
  background: transparent;
  border: 0;
  color: var(--gold);
  padding: 8px 0;
  margin-right: 16px;
}
.links button[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--gold); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 48px;
  align-items: start;
}
.pitch h1 { font-size: 40px; line-height: 1.15; }
.eyebrow, .kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ticks, .steps { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 22px; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.steps li { margin: 0 0 14px; }
.steps b { display: block; }
.steps span, .fine, .tip { color: var(--muted); }
.tip {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--inset);
  border-radius: 10px;
}
.tabs {
  display: flex;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 12px;
}
.tab.on { background: var(--gold); color: var(--ink); font-weight: 700; }
.progress { display: flex; gap: 8px; margin: 0 0 16px; }
.progress span {
  flex: 1;
  color: #6d6a64;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 3px solid #2a2a30;
  padding-top: 8px;
}
.progress span.on { color: var(--gold); border-top-color: var(--gold); }
.progress span.done { color: var(--cream); border-top-color: #6a5420; }
h1, h2 { font-weight: 560; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.form-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.status {
  margin: 0 0 14px;
  padding: 9px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--amber);
  background: var(--amber-bg);
  color: var(--gold);
  line-height: 1.45;
}
.status p { margin: 0; line-height: 1.45; }
.status.ok { background: var(--green-bg); color: var(--green); border-left-color: var(--green); }
.status.bad { background: var(--red-bg); color: var(--red); border-left-color: var(--red); }
label { display: block; font-size: 14px; margin: 12px 0 4px; }
input, select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #34343a;
  border-radius: 12px;
  background: var(--inset);
  color: var(--cream);
}
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw .show {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--gold);
  padding: 6px 8px;
}
.rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rules li {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.rules li.ok { color: var(--green); border-color: #245c40; }
.otp { display: flex; gap: 8px; margin: 8px 0 12px; }
.otp-digit {
  flex: 1 1 36px;
  width: 44px;
  max-width: 48px;
  height: 54px;
  text-align: center;
  padding: 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.otp.bad .otp-digit { border-color: var(--red); }
input.invalid { border-color: var(--red); }
input[type="radio"] { accent-color: var(--gold); }
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  padding: 8px 12px 12px;
}
legend { padding: 0 4px; }
.row { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.row input { width: auto; }
.chain-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  background: var(--inset);
}
.chain-choice input { width: auto; }
.chain-choice:has(input:checked) { border-color: var(--gold); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preset {
  background: var(--inset);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}
.preset.on, .preset:hover { border-color: var(--gold); color: var(--gold); }
button.primary, button.secondary {
  border-radius: 999px;
  padding: 10px 16px;
  margin: 8px 8px 0 0;
}
button.full { display: block; width: 100%; margin-right: 0; }
button.primary { background: var(--gold); color: var(--ink); border: 0; font-weight: 700; }
button.primary:hover { background: #f0c43a; }
button.secondary { background: transparent; color: var(--cream); border: 1px solid var(--line); }
button.secondary:hover { border-color: var(--gold); }
button:disabled { cursor: not-allowed; opacity: 0.55; }
body[data-busy="1"] button { cursor: wait; }
dl { display: grid; grid-template-columns: 220px 1fr; gap: 6px 12px; margin: 0 0 12px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.lines { display: grid; gap: 0; margin: 0 0 12px; }
.lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.lines span { color: var(--muted); }
p, td, th, .choice p, .lines b { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; font-size: 13px; }
code, .mono, .addr { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
.qty { font-variant-numeric: tabular-nums; }
#countdown { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--gold); font-size: 28px; }
#countdown.soon { color: var(--red); }
#session-left { font-variant-numeric: tabular-nums; }
#session-left.soon { color: var(--red); }
#sumsub-websdk { min-height: 480px; margin-top: 12px; position: relative; z-index: 1; }
.links button { padding-left: 0; }
.choice, .wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0;
  background: var(--inset);
}
.choice p, .wallet-row p { margin: 0; min-width: 0; flex: 1; }
.choice button.primary, .choice button.secondary, .wallet-row button { margin: 0; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 18px; }
  .pitch h1 { font-size: 32px; }
}
@media (max-width: 700px) {
  dl, .lines div { grid-template-columns: 1fr; }
  .lines div { display: grid; }
  h1 { font-size: 28px; }
  .top { padding: 14px 16px; }
  .nav { width: 100%; margin-left: 0; }
  button.primary, button.secondary {
    display: block;
    width: 100%;
    margin-right: 0;
    white-space: normal;
  }
  .presets button, .tabs button, .pw .show, .otp-digit, .text-button {
    display: inline-block;
    width: auto;
  }
  .otp { gap: 6px; }
}
