:root {
  --cyan: #00d2ff;
  --ink: #f4f4f5;
  --mute: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --font: Inter, system-ui, sans-serif;
  --display: Syne, Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.skip { position: absolute; left: 1rem; top: -3rem; }
.skip:focus { top: 1rem; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(0.9rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) 0.9rem max(1.25rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(0,0,0,.9); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 800; }
.brand img { height: 36px; width: 27px; object-fit: contain; flex-shrink: 0; display: block; }
.brand b { color: var(--cyan); }
.read { color: var(--cyan); text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wrap { max-width: 640px; margin: 0 auto; padding: 2rem max(1.15rem, env(safe-area-inset-right, 0px)) 4rem max(1.15rem, env(safe-area-inset-left, 0px)); }
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
h1 { font-family: var(--display); font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.05; margin: 0.35rem 0 0.8rem; }
.lede { color: var(--mute); line-height: 1.55; margin: 0 0 1.5rem; }
.lede strong { color: #fff; }
.skus { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .skus { grid-template-columns: 1fr 1fr; } }
.sku {
  text-align: left; background: #0d0d0d; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 0.25rem;
}
.sku:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sku.active { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.sku-kicker { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.sku-name { font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.sku-price { font-weight: 800; color: var(--cyan); }
.sku-price small { color: var(--mute); font-weight: 600; }
.sku-note { font-size: 0.8rem; color: var(--mute); line-height: 1.4; }
.meter { margin-bottom: 1.5rem; }
.meter-row { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.bar { height: 8px; background: #1a1a1a; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), #d4af37); transition: width 0.4s ease; }
.meter-sub { color: var(--mute); font-size: 0.78rem; margin: 0.45rem 0 0; }
.card {
  background: #0d0d0d; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem;
}
.card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.card-sub { color: var(--mute); font-size: 0.85rem; line-height: 1.45; margin: 0 0 1rem; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--mute); margin-bottom: 0.75rem; }
input {
  background: #000; border: 1px solid var(--line); border-radius: 10px; color: #fff;
  padding: 0.7rem 0.8rem; font: inherit; font-size: 16px;
}
input:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.opt { font-weight: 500; opacity: 0.7; }
.grid2 { display: grid; gap: 0.75rem; }
@media (min-width: 520px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.pay-btn {
  display: block; width: 100%; text-align: center; text-decoration: none; border: 0; border-radius: 12px;
  background: var(--cyan); color: #001016; font-weight: 800; font-size: 1rem; padding: 0.9rem; cursor: pointer;
  margin-top: 0.4rem;
}
.pay-btn.ghost { background: transparent; color: var(--cyan); border: 1px solid rgba(0,210,255,0.35); }
.pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fine { color: var(--mute); font-size: 0.75rem; line-height: 1.4; margin: 0.7rem 0 0; }
.err { color: #ff6b6b; font-size: 0.85rem; margin: 0 0 0.5rem; }
.qr { width: 220px; height: 220px; margin: 0.5rem auto 0.8rem; background: #fff; border-radius: 12px; padding: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.to { color: var(--mute); font-size: 0.72rem; word-break: break-all; text-align: center; }
.status { display: flex; align-items: center; justify-content: center; gap: 0.45rem; color: var(--mute); font-size: 0.85rem; margin-top: 0.9rem; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.2s infinite; }
.status.ok { color: #38e08a; }
.status.ok i { background: #38e08a; animation: none; }
.status.err { color: #ff6b6b; }
.status.err i { background: #ff6b6b; animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }
.back { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 0 0 0.6rem; }
.done h2 { color: var(--cyan); }
.foot { text-align: center; color: var(--mute); font-size: 0.75rem; padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) calc(3rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); line-height: 1.5; }
.foot a { color: var(--cyan); }
.foot strong { color: #fff; }
.foot .social { margin: 0.85rem 0; }
.foot .social a { font-weight: 700; }
[hidden] { display: none !important; }
