.co { width: min(480px, 100%); margin: 0 auto; padding: 22px 16px 56px; }
.co-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 0.88rem; font-weight: 600; }
.co-secure svg { width: 14px; height: 14px; }
.co-head { margin-bottom: 22px; text-align: center; }
.co-head h1 { margin: 0 0 6px; font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 700; }
.co-head p { margin: 0 auto; max-width: 36ch; color: var(--muted); text-wrap: balance; }

.ticket {
  --cut: 92px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background-color: var(--surface);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask: radial-gradient(circle 11px at 0 var(--cut), transparent 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), transparent 98%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--cut), transparent 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), transparent 98%, #000) 100% 0 / 51% 100% no-repeat;
  transition: border-color 0.5s ease;
}
.ticket.active { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); }
.ticket-top { display: flex; align-items: center; gap: 14px; height: var(--cut); padding: 0 22px; }
.ticket-logo { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ticket-logo img { width: 28px; height: auto; }
.ticket-name b { display: block; font: 700 1.15rem/1.2 var(--font-display); }
.ticket-name span { color: var(--muted); font-size: 0.88rem; }
.ticket-price { margin-left: auto; text-align: right; }
.ticket-price b { display: block; font: 700 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ticket-price s { color: var(--faint); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.ticket-bottom { display: flex; align-items: center; gap: 10px; margin: 0 16px; padding: 16px 6px 18px; border-top: 1.5px dashed var(--line-strong); }
.ticket-bottom small { display: block; margin-bottom: 2px; color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket-key { color: var(--muted); font-family: var(--font-code); font-size: 1.02rem; white-space: nowrap; transition: color 0.4s ease; }
.ticket.active .ticket-key { color: var(--fg); }
.ticket-bottom .pill { margin-left: auto; }
.ticket-bottom .icon-btn { width: 32px; height: 32px; margin-right: -4px; }

.flow { margin-top: 16px; padding: 20px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress i { position: relative; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.progress i.on::after { transform: none; }
.progress-label { margin: 10px 0 22px; color: var(--faint); font-size: 0.85rem; font-weight: 600; }
.progress-label b { color: var(--fg); }
.flow .pay-section { margin-bottom: 22px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.tile:hover { border-color: var(--line-strong); }
.tile:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.tile:has(input:disabled):hover { border-color: var(--line); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--fg); transition: background-color 0.2s ease, color 0.2s ease; }
.tile-icon svg { width: 19px; height: 19px; }
.tile b { display: block; font-size: 0.98rem; }
.tile small { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.tile .tick { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--on-accent); transition: background-color 0.2s ease, border-color 0.2s ease; }
.tile .tick svg { width: 11px; height: 11px; stroke-width: 3.4; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s ease; }
.tile:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg-deep)); }
.tile:has(input:checked) .tile-icon { background: var(--accent-soft); color: var(--accent); }
.tile:has(input:checked) .tick { border-color: var(--accent); background: var(--accent); }
.tile:has(input:checked) .tick svg { opacity: 1; transform: none; }
.tile input:focus-visible ~ .tick { outline: 2px solid var(--accent); outline-offset: 2px; }

.mini-review { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg-deep); color: var(--muted); font-size: 0.92rem; }
.mini-review b { overflow: hidden; color: var(--fg); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mini-review .link-btn { flex-shrink: 0; margin-left: auto; }
.flow .invoice { grid-template-columns: 132px minmax(0, 1fr); background: var(--bg-deep); }
.flow .qr { width: 132px; height: 132px; }
.flow .coin-pick { display: flex; width: 100%; }
.flow .coin-pick button { flex: 1; padding: 0 6px; }
.flow .back-step { margin-top: 16px; }

.done-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.done-head .done-icon { width: 48px; height: 48px; margin: 0; }
.done-head .done-icon svg { width: 24px; height: 24px; }
.done-head h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.done-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.flow .next { margin-bottom: 24px; }
.flow .done-actions .button { flex: 1; }

.co-perks { display: none; }

.co-help { margin: 18px 0 0; color: var(--faint); font-size: 0.9rem; text-align: center; }
.co-help a { color: var(--muted); transition: color 0.2s ease; }
.co-help a:hover { color: var(--fg); }

@media (min-width: 940px) {
  .co { width: min(980px, 100%); padding: 22px 24px 48px; }
  .co-top { margin-bottom: 44px; }
  .co-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 480px); justify-content: center; align-items: start; gap: 48px; }
  .co-side { position: sticky; top: 28px; }
  .co-head { margin-bottom: 26px; text-align: left; }
  .co-head p { margin: 0; }
  .co-perks { display: grid; margin-top: 26px; padding-left: 4px; }
  .flow { margin-top: 0; }
}
@media (max-width: 420px) {
  .co-top { margin-bottom: 26px; }
  .ticket-top { gap: 12px; padding: 0 16px; }
  .ticket-bottom { margin: 0 12px; }
  .ticket-key { font-size: 0.88rem; }
  .flow { padding: 18px 16px 20px; }
  .flow .invoice { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
#coinPick { justify-self: start; }
.flow .qr svg { display: block; width: 100%; height: 100%; }
