:root {
  --bg: #10151c;
  --ice: #8fd4f2;
  --ice-bright: #c5ecff;
  --text: #e7eef4;
  --mute: #9fb4c0;
  --line: rgba(255, 255, 255, 0.12);
  --danger: #ffb1ae;
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid #c5ecff; outline-offset: 3px; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(520px 320px at 50% 0%, rgba(143, 212, 242, 0.14), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--ice); text-decoration: none; }
body:has(.site-header) .show-shell {
  min-height: calc(100dvh - 73px);
}
.show-shell {
  min-height: 100dvh;
  width: min(100% - 48px, 440px);
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 0 max(56px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body:has(#cookie-banner) .show-shell {
  justify-content: flex-start;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: calc(248px + env(safe-area-inset-bottom));
}
.brand { display: inline-flex; line-height: 0; margin-bottom: 22px; }
.brand img { width: 128px; height: auto; display: block; }
.show-card { width: 100%; }
#cookie-banner { left: 20px; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); }
.join-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #1f2a35, #0c1015 70%);
  border: 1px solid rgba(143, 212, 242, 0.45);
  box-shadow: 0 0 0 6px rgba(143, 212, 242, 0.07), 0 18px 40px rgba(0, 0, 0, 0.45);
  color: var(--ice-bright);
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.join-kicker {
  margin: 0;
  color: var(--ice);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2 { font-family: Syne, Manrope, sans-serif; font-weight: 800; letter-spacing: -0.03em; }
h1 {
  margin: 12px 0 0;
  color: var(--ice-bright);
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  line-height: 1.12;
}
.join-on { margin: 12px 0 0; color: var(--mute); font-size: 1rem; }
.lede { margin: 18px auto 0; max-width: 22rem; color: var(--mute); font-size: 1rem; line-height: 1.6; }
form { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
label { display: grid; gap: 6px; color: var(--mute); font-size: 0.82rem; }
input[type="email"], input[type="password"], input[type="text"], input:not([type]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, input:not([type]):focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 212, 242, 0.14); }
.cta {
  appearance: none;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #d7f4ff, #8fd4f2);
  color: #10151c;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cta:disabled { opacity: 0.7; cursor: wait; }
.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.55;
}
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ice); }
.consent a { white-space: nowrap; }
.status { min-height: 1.3em; margin: 0; text-align: center; color: var(--mute); font-size: 0.88rem; }
.status:empty { display: none; }
.status.error { color: var(--danger); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.success-view h2 { margin: 8px 0 8px; color: var(--ice-bright); font-size: 1.7rem; }
.success-view p { margin: 0 0 18px; color: var(--mute); line-height: 1.55; }
.steps {
  list-style: none;
  margin: 22px auto 0;
  padding: 0;
  max-width: 16.5rem;
  text-align: left;
}
.steps li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}
.steps span { color: var(--ice); font-weight: 700; }
#join-panel {
  width: min(100% - 48px, 860px);
  padding-top: max(72px, env(safe-area-inset-top));
  padding-bottom: max(80px, env(safe-area-inset-bottom));
}
#join-panel .brand { margin-bottom: 32px; }
#join-panel h1 { font-size: clamp(2.15rem, 4.4vw, 3.15rem); line-height: 1.05; }
#join-panel .lede { max-width: 40rem; margin-top: 26px; font-size: 1.08rem; line-height: 1.65; }
#join-panel .steps { max-width: none; margin-top: 32px; }
#join-panel .steps li { padding: 8px 0; font-size: 1.05rem; }
#join-panel form { gap: 22px; margin-top: 40px; }
#join-panel .consent { font-size: 0.95rem; line-height: 1.6; gap: 14px; }
#join-panel .login-note { margin-top: 28px; }
.dash {
  display: none;
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: max(72px, env(safe-area-inset-top)) 0 max(88px, env(safe-area-inset-bottom));
  text-align: center;
}
body.is-affiliate .show-shell { display: none; }
body.is-affiliate .dash { display: block; }
.dash .brand { margin-bottom: 28px; }
.dash h1 { margin: 8px 0 0; font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: 0.06em; }
.dash-link { margin: 8px 0 0; color: var(--mute); }
.dash-qr {
  width: 196px;
  height: 196px;
  margin: 22px 0 0;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 36px 0 0;
  text-align: left;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.metrics li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.metrics span { display: block; color: var(--mute); font-size: 0.78rem; }
.metrics strong {
  display: block;
  margin-top: 4px;
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.35rem;
  color: var(--ice-bright);
}
.sales { width: 100%; margin-top: 28px; border-collapse: collapse; text-align: left; }
.sales th, .sales td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.sales th { color: var(--mute); font-weight: 600; }
.dash-note { max-width: 40rem; margin: 22px auto 0; color: var(--mute); line-height: 1.6; }
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}
.fine-print { margin: 32px 0 0; color: rgba(173, 198, 210, 0.55); font-size: 0.76rem; line-height: 1.5; }
.login-note { margin: 22px 0 0; color: var(--mute); font-size: 0.92rem; }
.login-note a { font-weight: 700; }
