:root {
  --navy: #14254a;
  --blue: #1d5d8f;
  --teal: #1aa59a;
  --ink: #2b3a55;
  --muted: #5b6b85;
  --line: #d9e1ec;
  --bg: #f6f9fb;
  --card: #ffffff;
  --err: #b42318;
  --grad: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--teal));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(26,165,154,.10), transparent 40%),
    repeating-linear-gradient(-55deg, transparent 0 38px, rgba(26,165,154,.05) 38px 39px) right top / 40% 420px no-repeat,
    var(--bg);
  min-height: 100vh;
}
.topbar { height: 8px; background: var(--grad); }
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px 24px; }

.hero { text-align: center; margin-bottom: 24px; }
.hero h1 { color: var(--navy); font-size: clamp(20px, 4.6vw, 27px); line-height: 1.25; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.dates { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--teal); font-weight: 700; letter-spacing: .18em; font-size: 13px; }
.dates span { width: 36px; height: 2px; background: var(--teal); flex: none; }
@media (max-width: 420px) { .dates { font-size: 11px; letter-spacing: .12em; gap: 10px; white-space: nowrap; } .dates span { width: 20px; } }
.daypill { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; letter-spacing: .2em; font-size: 12px; }

.card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(20,37,74,.06), 0 12px 32px rgba(20,37,74,.08); overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tab { font: inherit; font-weight: 600; font-size: 14px; padding: 16px 8px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tab.active { color: var(--navy); border-bottom-color: var(--teal); }
.pane { padding: 24px; }
.hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--navy); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,165,154,.15); }
input.filled { background: #f1faf9; }
.note { display: block; margin-top: 6px; color: var(--teal); font-size: 12px; font-weight: 500; }

.ac { position: relative; }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(20,37,74,.14); max-height: 280px; overflow: auto; }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #eef7f6; }
.suggest b { color: var(--navy); font-weight: 600; display: block; }
.suggest small { color: var(--muted); font-size: 12px; }
.suggest mark { background: none; color: var(--teal); font-weight: 700; }

.btn { width: 100%; font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .02em; padding: 15px; border: 0; border-radius: 10px; color: #fff; background: var(--grad); cursor: pointer; margin-top: 6px; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: none; color: var(--navy); border: 1.5px solid var(--line); }
.error { color: var(--err); font-size: 14px; margin: 0 0 8px; }
.small { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }

.codeinput { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .5em; text-transform: uppercase; padding-left: calc(14px + .5em); }

.done { text-align: center; padding: 36px 24px; }
.tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.tick svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { color: var(--navy); margin: 0 0 8px; font-size: 24px; }
.done p { line-height: 1.55; }
.codebox { margin: 18px auto; padding: 14px; max-width: 260px; border: 2px dashed var(--teal); border-radius: 12px; }
.codebox small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.codebox strong { display: block; font-size: 36px; letter-spacing: .3em; color: var(--navy); font-weight: 800; padding-left: .3em; }

.logos { margin: 28px auto 0; max-width: 520px; aspect-ratio: 576 / 112; background: url(/badge.png) center bottom / 100% auto no-repeat; border-radius: 12px; }
