:root {
  --bg: #08080c;
  --panel: #111118;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --muted: #9b9bab;
  --dim: #6c6c7c;
  --accent: #d4ff3a;
  --accent-ink: #0c0f02;
  --pink: #ff4fd8;
  --danger: #ff5470;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .9, .25, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 500 15px/1.4 "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- background ---------- */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-glow .g1 { width: 320px; height: 320px; left: -120px; top: -120px; background: #6d28d9; }
.bg-glow .g2 { width: 260px; height: 260px; right: -110px; top: 140px; background: #0ea5e9; opacity: .28; }
.bg-glow .g3 { width: 240px; height: 240px; left: 30%; bottom: -160px; background: var(--accent); opacity: .12; }
.bg-glow::after {
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(var(--bg) 40%, rgba(8, 8, 12, 0));
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  background: conic-gradient(from 0deg, var(--accent), var(--pink), #6366f1, var(--accent));
  animation: spin 8s linear infinite;
  box-shadow: 0 0 18px rgba(212, 255, 58, .35);
}
.brand-name { font: 700 15px/1 var(--display); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.icon-btn svg, .cart-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-pill {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s var(--ease);
}
.cart-pill:active { transform: scale(.94); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 9px;
  display: grid; place-items: center; font: 700 12px/1 var(--display);
  background: var(--surface-2); color: var(--muted);
  transition: background .25s, color .25s;
}
.cart-pill.has-items .cart-count { background: var(--accent); color: var(--accent-ink); }
.cart-pill.bump { animation: bump .45s var(--ease); }

/* ---------- views ---------- */
.view { position: relative; z-index: 1; padding: 4px 16px calc(120px + var(--safe-b)); animation: viewIn .4s var(--ease); }
.view-title { font: 700 26px/1.1 var(--display); margin: 8px 0 18px; }

/* ---------- hero ---------- */
.hero { padding: 18px 2px 22px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212, 255, 58, .6); animation: pulse 2s infinite; }
.hero-title { font: 800 min(38px, 7.4vw)/1.08 var(--display); letter-spacing: -.02em; margin: 0; }
.hero-title span { white-space: nowrap; }
.hero-title span {
  background: linear-gradient(90deg, var(--accent), #7dffb3 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span {
  padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- search & chips ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: rgba(212, 255, 58, .45); background: var(--surface-2); }
.search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 13px; white-space: nowrap;
  font-weight: 700; font-size: 14px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:active { transform: scale(.95); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips-inline { padding: 0 0 10px; margin: 0; flex-wrap: wrap; }
.chips-inline .chip { height: 34px; padding: 0 13px; font-size: 13px; }

/* ---------- grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  text-align: left; display: flex; flex-direction: column;
  animation: rise .5s var(--ease) both;
  transition: transform .2s var(--ease), border-color .2s;
}
.card:active { transform: scale(.97); }
.card-art {
  position: relative; height: 150px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 60%),
    rgba(255, 255, 255, .02);
}
.card-art .bottle { height: 124px; width: auto; animation: float 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-name { font: 700 13.5px/1.2 var(--display); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { color: var(--muted); font-size: 12.5px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.price { font: 700 15px/1 var(--display); }
.price small { font: 600 11px "Manrope", sans-serif; color: var(--muted); margin-left: 2px; }
.price-alt { display: block; white-space: nowrap; font-size: 11.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.add-btn {
  width: 34px; height: 34px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 700 20px/1 var(--display);
  box-shadow: 0 6px 18px rgba(212, 255, 58, .25);
}
.in-cart-mark {
  position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 9px;
  background: rgba(8, 8, 12, .7); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 800; color: var(--accent);
}
.badge-out {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 9px;
  background: rgba(8, 8, 12, .75); border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .02em;
}
.card.is-out .card-art { filter: grayscale(1); opacity: .45; }
.card.is-out .add-btn { background: var(--surface-2); color: var(--dim); box-shadow: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- bottle svg ---------- */
.bottle .glass { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.bottle .cap { fill: #1b1b24; stroke: rgba(255, 255, 255, .16); }
.bottle .label { fill: rgba(8, 8, 12, .62); }
.bottle .shine { fill: rgba(255, 255, 255, .28); }

/* ---------- sheet ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border-top: 1px solid var(--line-2);
  border-radius: 30px 30px 0 0;
  transform: translateY(105%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
  padding-bottom: calc(100px + var(--safe-b));
}
.sheet.open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.sheet.dragging { transition: none; }
.sheet-handle { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; height: 26px; touch-action: none; }
.sheet-handle i { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet-hero {
  position: relative; height: 210px; margin: -26px 0 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 55%),
    radial-gradient(circle at 78% 75%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 55%);
}
.sheet-hero .bottle { height: 172px; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); }
.sheet-emoji {
  position: absolute; right: 22%; top: 26%; font-size: 34px;
  animation: float 3.6s ease-in-out infinite reverse; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4));
}
.sheet-content { padding: 8px 20px 0; }
.sheet-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sheet-title { font: 800 26px/1.08 var(--display); margin: 8px 0 4px; letter-spacing: -.01em; }
.sheet-sub { color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.sheet-desc { margin: 0 0 6px; color: #d6d6de; }

.opt { margin-top: 20px; }
.opt-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 14px;
  background: var(--surface-2); border: 1px solid rgba(212, 255, 58, .5);
  box-shadow: 0 0 22px rgba(212, 255, 58, .12) inset;
  transition: transform .35s var(--ease);
}
.seg[data-value="bottle"] .seg-thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; padding: 11px 8px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); transition: color .2s; }
.seg button b { font-weight: 800; font-size: 15px; }
.seg button small { font-size: 12px; font-weight: 600; }
.seg button.active { color: var(--text); }
.seg button.active small { color: var(--accent); }
.opt .chips { padding: 0; margin: 0; flex-wrap: wrap; }

.stepper { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 5px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stepper button {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); font: 600 22px/1 var(--display); transition: transform .15s, opacity .2s;
}
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .3; }
.stepper output { font: 700 20px/1 var(--display); }
.stepper output small { font-size: 13px; color: var(--muted); margin-left: 3px; }
.presets { margin-bottom: 10px !important; }

/* ---------- cart ---------- */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  animation: rise .4s var(--ease) both;
}
.line.removing { animation: out .3s var(--ease) forwards; }
.line-icon {
  width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, transparent), color-mix(in srgb, var(--c2) 55%, transparent));
}
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-info b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.line-price { font: 700 14px/1.2 var(--display); margin-top: 2px; }
.stepper.sm { height: 44px; padding: 4px; gap: 2px; border-radius: 14px; }
.stepper.sm button { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.stepper.sm button svg { width: 16px; height: 16px; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stepper.sm output { font-size: 13px; min-width: 52px; text-align: center; }
.stepper.sm output small { font-size: 11px; margin-left: 2px; }

.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart-empty-icon { font-size: 54px; margin-bottom: 8px; }
.ghost-btn {
  height: 48px; padding: 0 22px; border-radius: 15px; font-weight: 800;
  background: var(--surface); border: 1px solid var(--line-2);
}
.ghost-btn:active { transform: scale(.97); }

.summary { margin: 16px 0 6px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; padding: 4px 0; }
.summary-row.total { color: var(--text); border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; align-items: baseline; }
.summary-row.total b { font: 800 22px/1 var(--display); }

.section-title { font: 700 18px/1.2 var(--display); margin: 26px 0 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.field em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: var(--r-sm); font-size: 16px; resize: none;
  background: var(--surface); border: 1px solid var(--line); outline: 0;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: rgba(212, 255, 58, .5); background: var(--surface-2); }
.field.error textarea, .field.error input { border-color: var(--danger); }
.field.error { animation: shake .4s; }
.hint { color: var(--muted); font-size: 13.5px; text-align: center; margin: 8px 10px 0; }

/* ---------- checkout blocks ---------- */
.cart-head { display: flex; align-items: baseline; justify-content: space-between; }
.link-btn { color: var(--muted); font-weight: 700; font-size: 14px; padding: 6px 2px; }
.link-btn:active { color: var(--danger); }
.block { margin-top: 14px; padding: 18px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.block.error { animation: shake .4s; border-color: rgba(255, 84, 112, .5); }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.block-head h3 { font: 700 17px/1.2 var(--display); margin: 0; }
.block-num {
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font: 700 12px/1 var(--display); background: var(--accent); color: var(--accent-ink);
}
.block .field-last { margin-bottom: 0; }
.block .field input, .block .field textarea { background: rgba(0, 0, 0, .25); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  position: relative; text-align: left; padding: 14px 14px 13px; border-radius: var(--r-md);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .25s, background .25s, transform .15s;
}
.mode:active { transform: scale(.97); }
.mode-ico { font-size: 22px; margin-bottom: 6px; }
.mode b { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.mode small { font-size: 12px; color: var(--muted); font-weight: 600; }
.mode::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); transition: border-color .2s, background .2s, box-shadow .2s;
}
.mode.active { border-color: rgba(212, 255, 58, .55); background: rgba(212, 255, 58, .06); }
.mode.active::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #15170b; }

.schedule { margin-top: 16px; animation: viewIn .35s var(--ease); }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day {
  padding: 10px 6px; border-radius: 15px; text-align: center;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.day:active { transform: scale(.96); }
.day b { font-size: 14px; font-weight: 800; }
.day small { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.day.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.active small { color: rgba(12, 15, 2, .7); }
.day:disabled { opacity: .35; }
.slots-label { margin: 16px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot {
  height: 44px; border-radius: 13px; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line); white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.slot:active { transform: scale(.95); }
.slot.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(212, 255, 58, .22); }

/* ---------- calendar ---------- */
.backdrop-top { z-index: 65; }
.cal-sheet { z-index: 70; padding-bottom: calc(22px + var(--safe-b)); }
.cal { padding: 4px 18px 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-head .icon-btn:disabled { opacity: .3; }
.cal-title { font: 700 18px/1 var(--display); text-transform: capitalize; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 800; color: var(--dim); text-transform: uppercase; padding-bottom: 6px; }
.cal-week span:nth-child(n+6) { color: rgba(255, 79, 216, .7); }
.cal-day {
  position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  font: 600 15px/1 var(--display); background: var(--surface); border: 1px solid transparent;
  transition: background .2s, color .2s, transform .15s;
}
.cal-day:active { transform: scale(.9); }
.cal-day:disabled { background: none; color: var(--dim); opacity: .45; }
.cal-day.today { border-color: rgba(212, 255, 58, .5); }
.cal-day.today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-day.active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(212, 255, 58, .28); }
.cal-day.active::after { background: var(--accent-ink); }
.cal-day.pad { visibility: hidden; }
.cal-note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* ---------- CTA ---------- */
.cta-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 18px 16px calc(14px + var(--safe-b));
  background: linear-gradient(rgba(8, 8, 12, 0), var(--bg) 45%);
  transform: translateY(130%); transition: transform .4s var(--ease);
  pointer-events: none;
}
.cta-wrap.show { transform: translateY(0); pointer-events: auto; }
.sheet-open .cta-wrap { background: linear-gradient(rgba(17, 17, 24, 0), var(--panel) 45%); }
.cta {
  width: 100%; height: 58px; padding: 0 22px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 30px rgba(212, 255, 58, .28), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.cta:active { transform: scale(.98); }
.cta:disabled { background: #2a2a34; color: var(--dim); box-shadow: none; }
.cta-price { font: 800 16px/1 var(--display); }
.cta.loading .cta-label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
.cta-static { justify-content: center; }

/* ---------- success ---------- */
.view-success { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-ring { border-radius: 50%; box-shadow: 0 0 60px rgba(212, 255, 58, .22); }
.success-ring svg { width: 128px; height: 128px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-ring circle { stroke: var(--accent); stroke-width: 6; stroke-dasharray: 330; stroke-dashoffset: 330; animation: draw .8s var(--ease) .1s forwards; }
.success-ring path { stroke: var(--text); stroke-width: 8; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s var(--ease) .7s forwards; }
.success-title { font: 800 26px/1.1 var(--display); margin: 26px 0 10px; }
.success-text { color: var(--muted); max-width: 300px; margin: 0 0 28px; }
.success-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 14px; z-index: 80; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: rgba(30, 30, 40, .92); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  transform: translate(-50%, -150%); transition: transform .4s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 84, 112, .5); }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes out { to { opacity: 0; transform: translateX(-30px); height: 0; padding: 0; margin: 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes bump { 30% { transform: scale(1.14); } 60% { transform: scale(.96); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 359px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 560px) {
  .view, .topbar { max-width: 560px; margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet, .cta-wrap { max-width: 560px; margin: 0 auto; }
}
