/* ==========================================================================
   Uniqualizer — monochrome glass, mobile-first (Telegram webview ~390px)

   Black / white / grey only. Colour appears in exactly one place: the
   destructive red on error states. Everything else earns its hierarchy from
   luminance, hairlines and blur — which is what makes it read as a tool
   rather than a landing page.
   ========================================================================== */

:root {
  /* surfaces — true black base so OLED panels go dark, like iOS */
  --bg:            #000000;
  --bg-raise:      #0b0b0d;

  --fill-1:        rgba(255, 255, 255, .045);
  --fill-2:        rgba(255, 255, 255, .075);
  --fill-3:        rgba(255, 255, 255, .11);

  /* hairlines — Apple's borders are barely there */
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);
  --line-bright:   rgba(255, 255, 255, .28);

  /* type — Apple's own greys */
  --text:          #f5f5f7;
  --text-2:        #a1a1a6;
  --text-3:        #6e6e73;

  --red:           #ff453a;   /* systemRed (dark). Errors only. */

  --hdr-h: 58px;

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  /* On iOS this resolves to SF Pro. Inter covers everything else. */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
          'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* iOS spring-ish */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Every panel below sets its own `display`, which overrides the UA stylesheet's
   [hidden] { display: none }. Without this, `el.hidden = true` does nothing. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 16px calc(40px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
      stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  letter-spacing: -.02em;
}

/* ── ambient ──────────────────────────────────────────────────────────────
   One light source top-centre, plus grain. Grain is what stops large flat
   dark areas from banding and is most of why this reads as a material.
   --------------------------------------------------------------------- */

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.ambient__glow {
  position: absolute; top: -32%; left: 50%;
  width: 150vw; height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(255, 255, 255, .085) 0%,
    rgba(255, 255, 255, .03) 38%,
    transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe {
  to { transform: translateX(-50%) scale(1.12); opacity: .78; }
}

.ambient__grain {
  position: absolute; inset: -50%;
  opacity: .16;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── glass ────────────────────────────────────────────────────────────────
   Fill + hairline + a 1px inset top highlight. That top highlight is the
   whole trick: it implies a lit edge and gives the panel thickness.
   --------------------------------------------------------------------- */

.glass {
  position: relative;
  background: var(--fill-1);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 12px 40px -16px rgba(0, 0, 0, .9);
}
.glass > * { position: relative; }

/* ── header ───────────────────────────────────────────────────────────── */

/* Fixed, not sticky: sticky inherits the scroll container's quirks (body here
   carries overflow-x: hidden) and can drift a pixel or two while scrolling on
   iOS. Fixed pins it outright. left/right match the body's 16px gutter so it
   lines up with the panels underneath. The fill is opaque enough that content
   scrolling past does not read through it. */
.topbar {
  position: fixed; z-index: 30;
  top: calc(10px + env(safe-area-inset-top));
  left: 16px; right: 16px;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px;
  margin: 0;
  border-radius: var(--r-lg);
  background: rgba(12, 12, 14, .86);
}

/* Content clears the fixed header. */
.stack { padding-top: calc(var(--hdr-h) + 24px + env(safe-area-inset-top)); }
.avatar {
  flex: 0 0 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px; letter-spacing: -.02em;
  color: #000;
  background: linear-gradient(180deg, #fff, #c7c7cc);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* No overflow:hidden here — .brand__name clips itself, and clipping the
   parent would cut off the status dot's pulse ring on the left edge. */
.brand { flex: 1 1 auto; min-width: 0; }
.brand__name {
  margin: 0; font-weight: 600; font-size: 16px; letter-spacing: -.025em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-3); letter-spacing: 0;
  padding-left: 1px;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-2);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .3);
  animation: pulse 2.6s ease-out infinite;
}
.dot[data-state="busy"]  { background: #fff; }
.dot[data-state="error"] { background: var(--red); animation: none; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hdr-actions { display: flex; align-items: center; gap: 6px; }

.chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px; border-radius: 999px;
  font: 600 13px/1 var(--font); letter-spacing: -.01em; color: var(--text);
  background: var(--fill-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.chip:active { transform: scale(.94); background: var(--fill-3); }
.chip__gem { width: 12px; height: 12px; color: var(--text); fill: currentColor; stroke: none; }
.chip__plus { color: var(--text-3); font-weight: 400; }

/* ── language switch ──────────────────────────────────────────────────── */

.langswitch {
  display: flex; padding: 2px; border-radius: 999px;
  background: var(--fill-1);
  border: 1px solid var(--line);
}
.langswitch button {
  padding: 4px 8px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 10.5px/1 var(--font); letter-spacing: .02em;
  color: var(--text-3); background: transparent;
  transition: color .22s, background .22s, transform .2s var(--ease);
}
.langswitch button:active { transform: scale(.9); }
.langswitch button[aria-pressed="true"] {
  color: #000;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

/* ── layout ───────────────────────────────────────────────────────────── */

.stack { display: flex; flex-direction: column; gap: 12px; }
.panel { padding: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }

.label {
  margin: 0; font-weight: 600; font-size: 15px; letter-spacing: -.02em;
}
.label--spaced { margin-top: 22px; }
.sublabel { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); letter-spacing: -.005em; }

/* ── dropzone / preview ───────────────────────────────────────────────── */

.dropzone { position: relative; border-radius: var(--r-lg); outline: none; }
.dropzone__empty {
  display: grid; place-items: center; gap: 6px;
  padding: 34px 16px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.dropzone:focus-visible .dropzone__empty,
.dropzone.is-over .dropzone__empty {
  border-color: var(--line-bright);
  background: var(--fill-1);
}
.dropzone__icon { width: 26px; height: 26px; color: var(--text); margin-bottom: 2px; }
.dropzone__title { margin: 0; font-weight: 600; font-size: 16px; letter-spacing: -.022em; }
.dropzone__hint  { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* ── tray: up to N uploaded files ─────────────────────────────────────── */
.tray { display: flex; flex-direction: column; gap: 8px; }
.tray__strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 1px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tray__strip::-webkit-scrollbar { display: none; }
.tray__sub { margin: 0; font-size: 11.5px; color: var(--text-3); }

.trayitem {
  position: relative; flex: 0 0 72px; height: 72px;
  border-radius: var(--r-md); overflow: hidden;
  background: #000; border: 1px solid var(--line);
  animation: pop .22s var(--ease);
}
.trayitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trayitem--up { opacity: .55; }
.trayitem--up::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18), transparent);
  animation: sweep 1.4s linear infinite;
}
.trayitem__x {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; padding: 4px; border-radius: 999px;
  color: #fff; background: rgba(0, 0, 0, .62);
  border: none; cursor: pointer; line-height: 0;
  transition: transform .18s var(--ease);
}
.trayitem__x:active { transform: scale(.85); }
.trayitem__badge {
  position: absolute; left: 4px; bottom: 4px;
  padding: 1px 4px; border-radius: 4px; font-size: 8.5px;
  background: rgba(0, 0, 0, .6); color: var(--text-2);
}

.trayadd {
  flex: 0 0 72px; height: 72px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); background: var(--fill-2);
  border: 1px dashed var(--line); cursor: pointer; font-size: 26px;
  transition: color .2s, border-color .2s;
}
.trayadd:active { color: var(--text); border-color: var(--text-3); }

/* sweeping scanline while the batch renders */
.scanline { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.scanline::after {
  content: ''; position: absolute; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
}
.is-rendering .trayitem { animation: none; }
.is-rendering .trayitem::before {
  content: ''; position: absolute; left: 0; right: 0; height: 45%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: sweep 1.8s linear infinite;
}
@keyframes sweep { from { top: -48%; } to { top: 100%; } }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.uploadbar {
  position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  border-radius: 2px; background: var(--fill-2); overflow: hidden;
}
.uploadbar i {
  display: block; height: 100%; width: 0%;
  background: #fff;
  transition: width .3s var(--ease);
}

/* ── stepper ──────────────────────────────────────────────────────────── */

.stepper {
  display: flex; align-items: center; gap: 1px;
  padding: 2px; border-radius: var(--r-md);
  background: var(--fill-1);
  border: 1px solid var(--line);
}
.stepper button {
  width: 34px; height: 32px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text);
  font: 400 20px/1 var(--font); cursor: pointer;
  transition: background .18s, transform .18s var(--ease);
}
.stepper button:active { transform: scale(.88); background: var(--fill-3); }
.stepper button:disabled { opacity: .25; }
.stepper output {
  min-width: 30px; text-align: center;
  font: 600 16px/1 var(--font); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ── presets ──────────────────────────────────────────────────────────── */

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.preset {
  padding: 12px 8px 11px; border-radius: var(--r-md); cursor: pointer; text-align: center;
  background: var(--fill-1);
  border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .2s var(--ease);
}
.preset:active { transform: scale(.96); }
.preset[aria-checked="true"] {
  background: var(--fill-3);
  border-color: var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.preset__name {
  display: block; font-weight: 600; font-size: 13.5px; letter-spacing: -.02em;
  color: var(--text-2); margin-bottom: 2px;
  transition: color .25s;
}
.preset[aria-checked="true"] .preset__name { color: var(--text); }
.preset__cost { display: block; font-size: 10.5px; color: var(--text-3); }
.preset[aria-checked="true"] .preset__cost { color: var(--text-2); }
.preset__bars { display: flex; gap: 3px; justify-content: center; margin-top: 8px; }
.preset__bars i {
  width: 11px; height: 2px; border-radius: 1px;
  background: rgba(255, 255, 255, .12);
  transition: background .25s;
}
.preset .preset__bars i.on { background: rgba(255, 255, 255, .3); }
.preset[aria-checked="true"] .preset__bars i.on { background: #fff; }
.preset__note {
  margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-3);
  min-height: 36px;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */

.cta {
  position: relative; width: 100%; padding: 16px;
  border: 0; border-radius: var(--r-md); cursor: pointer;
  font: 600 16px/1 var(--font); letter-spacing: -.022em; color: #000;
  background: #fff;
  overflow: hidden;
  transition: transform .2s var(--ease), opacity .25s, background .25s;
}
.cta:active:not(:disabled) { transform: scale(.975); background: #d9d9de; }
.cta:disabled {
  background: var(--fill-2); color: var(--text-3); cursor: default;
}
/* specular top edge rather than a sweeping rainbow */
.cta__sheen {
  position: absolute; inset: 0 0 auto; height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent);
  pointer-events: none;
}
.cta:disabled .cta__sheen { display: none; }
.cta__label { position: relative; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 14px; border-radius: var(--r-md); cursor: pointer;
  font: 600 14.5px/1 var(--font); letter-spacing: -.02em; color: var(--text);
  background: var(--fill-2);
  border: 1px solid var(--line);
  text-decoration: none;   /* .btn is also used on <a> (e.g. the gate screen) */
  transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.98); background: var(--fill-3); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: #fff; color: #000; border-color: #fff; }
.btn--primary svg { color: rgba(0, 0, 0, .55); }
.btn--primary:active { background: #d9d9de; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions .btn { padding: 13px 10px; font-size: 13.5px; }
.actions .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn svg { width: 15px; height: 15px; color: var(--text-2); }

/* ── disclaimer ───────────────────────────────────────────────────────── */

.disclaimer {
  display: flex; gap: 8px; margin: 2px 0 0; padding: 0 4px;
  font-size: 11.5px; line-height: 1.5; color: var(--text-3);
}
.disclaimer svg { flex: 0 0 13px; width: 13px; height: 13px; color: var(--text-3); margin-top: 1px; }

/* ── results ──────────────────────────────────────────────────────────── */

.results { display: flex; flex-direction: column; gap: 11px; }
.results__head { padding: 0 4px; }
.results__more {
  margin: 0; padding: 0 4px; text-align: center;
  font-size: 11.5px; line-height: 1.5; color: var(--text-3);
}
.queue-note {
  margin: 0; padding: 8px 10px; border-radius: var(--r-md);
  background: var(--fill-2); border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.4; color: var(--text-2); text-align: center;
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }

.card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--fill-1);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: pop-in .55s var(--ease) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.card__thumb { position: relative; aspect-ratio: 1 / 1; background: #000; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the one memorable motif — variant cards only, never decoration */
.card__fingerprint {
  position: absolute; right: 6px; top: 6px;
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 3px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card__fingerprint canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.card__foot { display: flex; align-items: center; gap: 6px; padding: 9px; }
.card__hash {
  flex: 1 1 auto; min-width: 0;
  font: 500 10.5px/1 var(--font-mono); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__size { font: 400 9.5px/1 var(--font-mono); color: var(--text-3); }
.card__dl {
  flex: 0 0 26px; height: 26px; padding: 5px; border-radius: 999px;
  color: var(--text); background: var(--fill-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .2s;
}
.card__dl:active { background: #fff; color: #000; }

.card--ghost {
  border-style: dashed; border-color: rgba(255, 255, 255, .08);
  background: transparent; box-shadow: none; animation: none;
}
.card--ghost .card__thumb {
  background: linear-gradient(100deg,
    rgba(255,255,255,.02) 25%, rgba(255,255,255,.06) 37%, rgba(255,255,255,.02) 63%);
  background-size: 300% 100%;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { to { background-position: -180% 0; } }
.card--ghost .card__foot { opacity: .3; }

/* ── buy sheet ────────────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet__scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .3s var(--ease);
}
.sheet__panel {
  position: relative; width: 100%;
  padding: 9px 16px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  border-bottom: 0;
  background: rgba(20, 20, 22, .82);
  animation: slide-up .42s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(100%); } }

/* Closing: reverse the entrance — panel slides back down, scrim fades out.
   `forwards` holds the off-screen end state until JS flips `hidden`. */
@keyframes slide-down { to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
.sheet--closing .sheet__panel { animation: slide-down .32s var(--ease) forwards; }
.sheet--closing .sheet__scrim { animation: fade-out .3s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) {
  .sheet--closing .sheet__panel, .sheet--closing .sheet__scrim { animation-duration: .01ms; }
}

.sheet__grip {
  width: 36px; height: 4px; border-radius: 2px; margin: 0 auto 16px;
  background: rgba(255, 255, 255, .2);
}
.sheet__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.sheet__sub   { margin: 3px 0 18px; font-size: 13px; color: var(--text-3); }
.sheet__note  { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

.methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 3px; margin-bottom: 14px;
  border-radius: var(--r-md);
  background: var(--fill-1); border: 1px solid var(--line);
}
.method {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  font: 600 13px/1 var(--font); letter-spacing: -.02em;
  color: var(--text-3); background: transparent;
  transition: color .22s, background .22s;
}
.method__ic { font-size: 12px; line-height: 1; }
.method.is-on { color: #000; background: #fff; }

.packs { display: flex; flex-direction: column; gap: 8px; }
.pack {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--r-md); cursor: pointer; text-align: left;
  /* Without an explicit colour a <button> inherits the UA default, which on
     iOS is system blue — the labels came out blue instead of white. */
  color: var(--text);
  background: var(--fill-1);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.pack:active { transform: scale(.985); background: var(--fill-2); }
.pack--best { border-color: var(--line-bright); background: var(--fill-2); }

/* the one-off leads the sheet — solid white, the way a primary action reads */
.pack--oneoff {
  background: #fff; border-color: #fff;
  box-shadow: 0 8px 28px -14px rgba(255, 255, 255, .5);
}
.pack--oneoff:active { background: #d9d9de; }
.pack--oneoff .pack__name  { color: #000; }
.pack--oneoff .pack__sub   { color: rgba(0, 0, 0, .55); }
.pack--oneoff .pack__price { color: #000; }

.pack--off { opacity: .45; cursor: default; }

/* Action rows describe an action rather than quoting a price, so their
   subtitle uses the body face instead of mono. */
.pack--action .pack__sub { font-family: var(--font); font-size: 12px; }
.pack--off .pack__price { color: var(--text-3); }

.packs__divider {
  margin: 6px 0 2px; padding-left: 2px;
  font-size: 11.5px; color: var(--text-3); letter-spacing: -.01em;
}
.pack__body { flex: 1 1 auto; }
.pack__name { display: block; font: 600 15px/1.2 var(--font); letter-spacing: -.022em; }
.pack__sub  { display: block; margin-top: 3px; font: 400 11.5px/1 var(--font-mono); color: var(--text-3); }
.pack__price {
  display: flex; align-items: center; gap: 3px;
  font: 600 15px/1 var(--font); letter-spacing: -.02em; color: var(--text);
}

/* ── toast ────────────────────────────────────────────────────────────── */

.toast {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90; padding: 13px 15px; border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.4; letter-spacing: -.015em;
  background: rgba(28, 28, 30, .9);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 14px 44px -12px rgba(0, 0, 0, .95);
  transform: translateY(150%); opacity: 0;
  transition: transform .42s var(--ease), opacity .3s;
}
.toast.is-open { transform: none; opacity: 1; }
.toast[data-kind="error"] { border-color: rgba(255, 69, 58, .55); }
.toast[data-kind="ok"]    { border-color: var(--line-bright); }

/* ── reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ambient__glow { animation: none; }
  .scanline::after { animation: none; top: 28%; }
}

/* ── ban screen ────────────────────────────────────────────────────────────
   Shown when the API returns 403 "banned" on boot. A full opaque overlay so
   nothing of the app renders behind it — a blocked user sees only this. */
.banscreen {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 32px; text-align: center;
  background: var(--bg);
  animation: banIn .4s var(--ease) both;
}
@keyframes banIn { from { opacity: 0; transform: translateY(6px); } }
.banscreen__box { max-width: 320px; }
.banscreen__icon {
  width: 66px; height: 66px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.banscreen__icon svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round;
}
.banscreen__title {
  margin: 0 0 10px; font: 700 21px/1.2 var(--font);
  letter-spacing: -.02em; color: var(--text);
}
.banscreen__msg { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.banscreen__support:not(:empty) { margin: 18px 0 0; font-size: 12.5px; color: var(--text-3); }
