:root {
  --bg: #09090b;
  --panel: #18181b;
  --line: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #52525b;
  --ok: #22c55e;
  --bad: #f87171;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 60% at 50% -10%, #27272a 0%, transparent 60%),
    var(--bg);
}
.wrap { max-width: 480px; margin: 0 auto; padding: 28px 20px 56px; }
.hidden { display: none !important; }

.brand { font-weight: 800; letter-spacing: .32em; font-size: 13px; color: var(--muted); }
.hero { padding: 56px 0 36px; }
.hero h1 {
  font-family: "Archivo", "Inter", sans-serif; font-weight: 900; font-stretch: 75%;
  font-size: clamp(48px, 15vw, 76px); line-height: .9; letter-spacing: -.01em;
  margin: 14px 0 22px; text-transform: uppercase;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.price { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.price .label { color: var(--muted); font-size: 15px; }
.price .amount { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.price .amount small { font-size: 15px; color: var(--muted); font-weight: 600; margin-right: 4px; }

label.field { display: block; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 8px 2px; }
input[type=text] {
  width: 100%; font: inherit; font-size: 18px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 16px; outline: none; transition: border-color .15s;
}
input[type=text]:focus { border-color: #71717a; }
input::placeholder { color: var(--dim); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; margin-top: 14px; padding: 14px 18px;
  font: inherit; font-size: 18px; font-weight: 700; text-decoration: none;
  color: #09090b; background: #fafafa; border: 0; border-radius: 16px; cursor: pointer;
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn svg { width: 22px; height: 22px; flex: none; }

.fine { color: var(--muted); font-size: 14px; margin: 14px 2px 0; }
.fine.center { text-align: center; }
.error { color: var(--bad); font-size: 15px; margin-top: 12px; min-height: 1.2em; }
.notice {
  border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px;
  background: #1c1917; border: 1px solid #44403c; color: #e7e5e4;
}
.notice.test { background: #172554; border-color: #1e3a8a; color: #bfdbfe; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; color: var(--muted); font-size: 15px; }
.steps b {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px;
}

footer { margin-top: 48px; color: var(--dim); font-size: 13px; text-align: center; }

/* Ticket page */
.state { text-align: center; padding: 64px 0 24px; }
.state h1 { font-size: 30px; line-height: 1.15; margin: 18px 0 8px; letter-spacing: -.01em; }
.state p { color: var(--muted); margin: 0; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tick {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: rgba(34, 197, 94, .12); color: var(--ok);
}
.tick svg { width: 32px; height: 32px; }
.cross { background: rgba(248, 113, 113, .12); color: var(--bad); }

.ticketcard {
  margin-top: 28px; border-radius: 22px; overflow: hidden;
  background: #18181b; border: 1px solid var(--line);
}
.ticketcard .top { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.ticketcard .top .brand { font-size: 12px; }
.ticketcard .top .paid { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.ticketcard .mid { padding: 4px 20px 20px; }
.ticketcard .mid small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ticketcard .mid .guest { font-size: 26px; font-weight: 800; margin-bottom: 14px; word-break: break-word; }
.ticketcard .row { display: flex; gap: 24px; }
.ticketcard .row div { font-weight: 600; }
.ticketcard .row div:last-child { white-space: nowrap; }
.ticketcard .tear { border-top: 1px dashed #3f3f46; margin: 0 14px; }
.ticketcard .actions { padding: 6px 20px 20px; }
