:root {
  --brand-red: #ff2600;
  --brand-red-dim: #a81c00;
  --purple-1: #340856;
  --purple-2: #230443;
  --bg-0: #121212;
  --bg-1: #191919;
  --bg-2: #202020;
  --bg-3: #262626;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text: #d6d6d6;
  --text-hi: #f5f5f5;
  --muted: #8f8f8f;
  --ok: #35e08a;
  --warn: #f5b942;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.035"/></svg>');
  pointer-events: none; z-index: 0;
}
::selection { background: var(--brand-red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--text-hi); margin: 0; letter-spacing: -0.01em; }
p { line-height: 1.6; margin: 0; }
a { color: inherit; }
code, .mono { font-family: var(--mono); }
button { font-family: var(--sans); }

/* ===== Shell: fixed-height single screen ===== */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Minimal top bar — trust anchor, present on every funnel page */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; }
.brand-mark { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; background: conic-gradient(from 140deg, var(--brand-red), var(--purple-1), var(--purple-2), var(--brand-red)); }
.topbar-secure { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.topbar-secure svg { flex-shrink: 0; }

/* Step indicator */
.steps { display: flex; align-items: center; gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--muted);
  flex-shrink: 0;
}
.step-dot.done { background: rgba(53,224,138,0.12); border-color: rgba(53,224,138,0.4); color: var(--ok); }
.step-dot.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.step-label { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.step-label.active { color: var(--text-hi); }
.step-line { width: 26px; height: 1px; background: var(--line-strong); }
.step-line.done { background: var(--ok); opacity: 0.5; }

/* Main centered stage */
.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

/* Card */
.panel {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
}
.panel-wide { max-width: 860px; }

.panel-eyebrow { font-family: var(--mono); font-size: 11px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 10px; }
.panel-title { font-size: 23px; margin-bottom: 8px; }
.panel-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* Form */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 13px 14px; color: var(--text-hi); font-size: 14.5px; font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #55555a; }
.field input:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(255,38,0,0.14); }
.field-hint { font-size: 12px; color: #666; margin-top: 6px; }
.field-error { font-size: 12px; color: var(--brand-red); margin-top: 6px; display: none; }
.field.has-error input { border-color: var(--brand-red); }
.field.has-error .field-error { display: block; }

.input-group { display: flex; gap: 10px; }
.input-group .field { flex: 1; margin-bottom: 0; }

/* Buttons */
.btn {
  border: none; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s, opacity .15s;
  font-family: var(--sans); padding: 14px 22px; width: 100%;
}
.btn-primary { background: var(--brand-red); color: #fff; box-shadow: 0 4px 22px rgba(255,38,0,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255,38,0,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--bg-3); color: var(--text-hi); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; width: auto; }

/* Trust row under CTA */
.trust-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.trust-item svg { flex-shrink: 0; opacity: 0.7; }

.divider-h { height: 1px; background: var(--line); margin: 22px 0; }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider-or span { font-family: var(--mono); font-size: 11px; color: #555; }

/* Summary rows (checkout) */
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 14px; }
.summary-row .k { color: var(--muted); }
.summary-row .v { color: var(--text-hi); font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line-strong); }
.summary-total .k { font-family: var(--display); font-weight: 600; color: var(--text-hi); font-size: 15px; }
.summary-total .v { font-family: var(--display); font-weight: 700; color: #fff; font-size: 24px; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; }
.badge-ok { background: rgba(53,224,138,0.1); border: 1px solid rgba(53,224,138,0.3); color: var(--ok); }
.badge-warn { background: rgba(245,185,66,0.1); border: 1px solid rgba(245,185,66,0.3); color: var(--warn); }
.badge-red { background: rgba(255,38,0,0.1); border: 1px solid rgba(255,38,0,0.3); color: #ff7757; }

/* Footer strip */
.footbar {
  padding: 16px 32px; text-align: center; flex-shrink: 0;
  border-top: 1px solid var(--line);
}
.footbar p { font-family: var(--mono); font-size: 11px; color: #555; }
.footbar a { color: #777; text-decoration: underline; text-underline-offset: 2px; }

/* Spinner */
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--brand-red);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(53,224,138,0.7); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }

@media (max-width: 640px) {
  .topbar { padding: 16px 18px; }
  .step-label { display: none; }
  .panel { padding: 26px 22px; }
  .panel-wide { max-width: 440px; }
  .input-group { flex-direction: column; gap: 16px; }
  .input-group .field { margin-bottom: 0; }
}
