@font-face { font-family: "Unbounded"; src: url("/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --night: #14163A;      /* page */
  --dusk: #1E2152;       /* raised surfaces */
  --dusk-2: #272B63;     /* inputs */
  --line: #363B7A;
  --star: #FFC53D;       /* Telegram Stars gold — the one loud colour */
  --star-deep: #F29F05;
  --sky: #7CC4FF;        /* links, focus */
  --text: #EEF0FF;
  --muted: #A6AAD6;
  --ok: #5FD69A;
  --bad: #FF7A85;
  --radius-lg: 22px;
  --radius: 12px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--night); color: var(--text);
  font: 16px/1.55 var(--body); font-weight: 500;
}
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 38%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 62%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 82%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 88%, #fff6 50%, transparent 51%),
    radial-gradient(60% 45% at 50% -8%, #3A3F9E 0%, transparent 70%);
}
a { color: var(--sky); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 4vw, 40px); max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; fill: var(--star); }
.top-link { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.top-link:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 12px 16px 48px; }
.view { animation: in .35s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

.hero { font: 700 clamp(30px, 8vw, 40px)/1.08 var(--display); letter-spacing: -0.03em; margin: 18px 0 14px; }
.hero-small { font-size: clamp(26px, 6.5vw, 32px); }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 42ch; }

/* The three steps are a real sequence, so they are numbered. */
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 2px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 7px 0; color: var(--muted); }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 600 13px/1 var(--display); border: 1.5px solid var(--line); color: var(--muted);
}
.steps li b { color: var(--text); font-weight: 700; font-size: 15px; }
.steps li span { font-size: 14px; }
.steps li.is-current::before { background: var(--star); border-color: var(--star); color: var(--night); }
.steps li.is-done::before { content: "✓"; background: transparent; border-color: var(--ok); color: var(--ok); }
.steps-compact { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.steps-compact li { grid-template-columns: 1fr; justify-items: start; row-gap: 6px; }
.steps-compact li::before { grid-row: auto; }
.steps-compact li b { font-size: 13px; color: var(--muted); }
.steps-compact li.is-current b { color: var(--text); }

.panel { background: var(--dusk); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.field-label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 8px; color: var(--text); }
.input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--radius);
  background: var(--dusk-2); border: 1.5px solid var(--line); color: var(--text);
  font: 600 17px/1 var(--body);
}
.input::placeholder { color: #7B80B8; font-weight: 500; }
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px #7CC4FF33; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-code { font: 600 clamp(14px, 4.2vw, 18px)/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.input-code::placeholder { text-transform: none; letter-spacing: 0.04em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 54px; margin-top: 16px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--star); color: #1B1600; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #FFD266; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-quiet:hover { background: var(--dusk-2); }

.msg { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--bad); }
.msg a { color: var(--sky); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.track { margin-top: 40px; }
.track h2 { font: 600 16px/1.3 var(--display); margin: 0 0 12px; letter-spacing: -0.01em; }
.track-form { display: flex; gap: 8px; }
.track-form .btn { width: auto; margin: 0; flex: none; }
.track-form .input { height: 54px; font-size: 15px; }

/* Step 2 — the code becomes a ticket stub: the only decorative flourish on the site. */
.ticket { margin-top: 20px; border-radius: var(--radius-lg); background: var(--dusk); border: 1px solid var(--line); overflow: hidden; }
.ticket-top {
  padding: 22px 22px 24px; position: relative;
  background: linear-gradient(135deg, #FFC53D 0%, #F29F05 100%); color: #261A00;
}
.ticket-kicker { margin: 0; font-weight: 700; font-size: 15px; }
.ticket-amount { margin: 2px 0 6px; display: flex; align-items: center; gap: 10px; font: 800 clamp(52px, 15vw, 68px)/1 var(--display); letter-spacing: -0.04em; }
.ticket-amount svg { width: .62em; height: .62em; fill: #261A00; }
.ticket-code { margin: 0; font-size: 14px; font-weight: 600; opacity: .8; }
.ticket-code span { font-family: var(--display); font-weight: 500; letter-spacing: .04em; }
.ticket-tear { height: 0; border-top: 2px dashed var(--line); position: relative; margin: 0 14px; }
.ticket-tear::before, .ticket-tear::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--night);
}
.ticket-tear::before { left: -27px; }
.ticket-tear::after { right: -27px; }
.ticket-bottom { padding: 22px; }
.ticket-title { font: 600 20px/1.25 var(--display); letter-spacing: -0.02em; margin: 0 0 18px; }
.input-at { position: relative; }
.input-at span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 18px; }
.input-at .input { padding-left: 36px; }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.confirm input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--star); flex: none; }
.safety { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.safety svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2; margin-top: 1px; }
.link-back { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--sky); font: 600 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Done */
.done-burst { width: 76px; height: 76px; margin: 26px 0 0; border-radius: 50%; display: grid; place-items: center; background: #FFC53D22; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.done-burst svg { width: 40px; height: 40px; fill: var(--star); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ref-panel .field-label { color: var(--muted); font-weight: 600; }
.ref { font: 600 clamp(18px, 5.4vw, 22px)/1.2 var(--display); letter-spacing: .05em; margin: 0; word-break: break-all; color: var(--star); }
.ref-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-actions .btn { margin-top: 16px; }

/* Order status */
.crumb { margin: 14px 0 0; font-size: 15px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-product { margin: 0; font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; }
.order-to { margin: 6px 0 0; color: var(--muted); }
.order-to b { color: var(--text); }
.status-pill { flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--dusk-2); border: 1px solid var(--line); }
.status-pill[data-s="pending"] { color: var(--star); border-color: #FFC53D66; }
.status-pill[data-s="processing"] { color: var(--sky); border-color: #7CC4FF66; }
.status-pill[data-s="completed"] { color: var(--ok); border-color: #5FD69A66; }
.status-pill[data-s="rejected"], .status-pill[data-s="refunded"] { color: var(--bad); border-color: #FF7A8566; }
.track-line { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.track-line li { position: relative; padding-top: 26px; font-size: 14px; color: var(--muted); }
.track-line li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--night); z-index: 1; }
.track-line li::after { content: ""; position: absolute; top: 8px; left: 16px; right: 0; height: 2px; background: var(--line); }
.track-line li:last-child::after { display: none; }
.track-line li b { display: block; color: var(--muted); font-weight: 700; }
.track-line li span { font-size: 12.5px; }
.track-line li.is-on::before { background: var(--ok); border-color: var(--ok); }
.track-line li.is-on::after { background: var(--ok); }
.track-line li.is-on b { color: var(--text); }
.track-line li.is-now::before { background: var(--star); border-color: var(--star); box-shadow: 0 0 0 5px #FFC53D33; }
.track-line.is-stopped li.is-now::before { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 0 5px #FF7A8533; }
.order-msg { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--dusk-2); font-size: 15px; }
.order-ref { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.order-ref span { font-family: var(--display); letter-spacing: .04em; color: var(--text); word-break: break-all; }

.foot { max-width: 480px; margin: 0 auto; padding: 24px 16px 36px; color: #8287BF; font-size: 13.5px; text-align: center; }
.foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
