:root {
  --ink: #f7f4ff;
  --ink-dark: #1a1428;
  --muted: #b7a8d4;
  --line: rgba(220, 200, 255, 0.16);
  --accent: #a78bfa;
  --accent-hot: #7c3aed;
  --accent-2: #60a5fa;
  --accent-ink: #1a0b2e;
  --danger: #ff6d7d;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-ink: #1a1428;
  --panel-muted: #6b6280;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tg-bg: #2a1748;
  --tg-text: var(--ink);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--tg-text);
  background: #24133f;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, #5b2d91 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 10%, #3b82f6 0%, transparent 45%),
    linear-gradient(165deg, #3b1d63 0%, #24133f 45%, #1a0f2e 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 12s ease-in-out infinite alternate;
}
.glow-a {
  width: 70vw;
  height: 70vw;
  left: -20%;
  top: -18%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45), transparent 68%);
}
.glow-b {
  width: 55vw;
  height: 55vw;
  right: -18%;
  top: 8%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28), transparent 70%);
  animation-delay: -4s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 40% 0%, #000 15%, transparent 70%);
  opacity: 0.5;
}

.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.35;
  pointer-events: none;
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  from { transform: translateY(0); }
  to { transform: translateY(6px); }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(520px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 14px 18px calc(28px + var(--safe-b));
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}
.lang-btn.active {
  background: rgba(167, 139, 250, 0.28);
  color: #f5f3ff;
}
.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
.brand-lockup {
  display: grid;
  gap: 2px;
  text-align: left;
}
.ps-syms {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #c4b5fd;
  line-height: 1;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.cart-btn:active { transform: scale(0.97); }
.cart-btn b {
  min-width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #4c1d95;
  font-size: 0.72rem;
  transition: transform 0.2s;
}
.cart-btn b.pop { animation: badgePop 0.35s ease; }
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.hero {
  position: relative;
  min-height: 72dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 0 10px;
}

.hero-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 22px 20px 20px;
  background:
    linear-gradient(160deg, rgba(124, 58, 237, 0.35), rgba(36, 19, 63, 0.55) 55%, rgba(26, 15, 46, 0.7)),
    rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(20, 8, 40, 0.35);
  animation: fade 0.55s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ddd6fe;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.8rem, 18vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(88, 28, 135, 0.45);
}
.hero-lead {
  margin: 14px 0 0;
  max-width: 28ch;
  color: #d8cff0;
  font-size: 1.02rem;
  line-height: 1.45;
}
.deal-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(196, 181, 253, 0.45);
  background:
    linear-gradient(120deg, rgba(167, 139, 250, 0.28), rgba(91, 33, 182, 0.18));
}
.deal-banner strong {
  display: block;
  color: #f5f3ff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.deal-banner p {
  margin: 4px 0 0;
  color: #ddd6fe;
  font-size: 0.84rem;
  line-height: 1.4;
}
.deal-banner-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
}
.deal-banner-compact strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.deal-banner-compact p {
  margin: 0;
  font-size: 0.8rem;
}
.help-list {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: #d8cff0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.help-list li + li {
  margin-top: 6px;
}
.deal-help {
  border-color: rgba(196, 181, 253, 0.4);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.22), rgba(255,255,255,0.05));
}
.trust {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #efe9ff;
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.85rem;
}
.hero-actions {
  margin-top: 22px;
}
.hero-actions-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.btn.ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

.help-card {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}
.help-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.help-card > p {
  margin: 0;
  color: #d8cff0;
  line-height: 1.45;
  font-size: 0.95rem;
}
.help-block {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.help-block:first-of-type { border-top: 0; padding-top: 0; }
.help-block h4 {
  margin: 0 0 6px;
  color: #ede9fe;
  font-size: 0.98rem;
}
.help-block p {
  margin: 0;
  color: #c4b5fd;
  line-height: 1.45;
  font-size: 0.92rem;
}
.help-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.help-steps li {
  display: grid;
  gap: 4px;
  padding-left: 36px;
  position: relative;
}
.help-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
}
.help-steps strong { color: #fff; }
.help-steps span {
  color: #c4b5fd;
  font-size: 0.9rem;
  line-height: 1.4;
}
.help-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  font-size: 0.88rem;
  line-height: 1.4;
}
.help-tier {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.help-tier:first-of-type { border-top: 0; padding-top: 0; }
.help-tier .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}
.help-tier .essential { background: #e5e7eb; }
.help-tier .extra { background: #fbbf24; }
.help-tier .deluxe { background: #111827; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.help-tier strong { color: #fff; display: block; margin-bottom: 2px; }
.help-tier p { margin: 0; color: #c4b5fd; font-size: 0.9rem; line-height: 1.4; }
.help-link {
  display: block;
  color: #c4b5fd;
  text-decoration: none;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-weight: 650;
}
.help-link:first-of-type { border-top: 0; }
.help-link:active { color: #fff; }
.help-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 20px;
}
.help-foot a { color: #ddd6fe; }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed 55%, #4f46e5);
  color: #fff;
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.35);
}
.btn.wide { width: 100%; }

.panel { padding-top: 6px; animation: fade 0.35s ease both; }
.panel.hidden, .hidden { display: none !important; }

.panel-head { margin-bottom: 16px; }
.panel-head.tight { margin-bottom: 8px; }
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  color: #fff;
}
.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.back, .text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  padding: 0;
  margin: 0 0 14px;
  cursor: pointer;
}
.text-btn { margin: 0; color: #ddd6fe; }

.game-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.game-cover {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: #041018;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(61, 255, 194, 0.2);
}

.search-box {
  margin: 0 0 12px;
}
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-radius: 16px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
}
.search-box input::placeholder { color: #6f8494; }
.search-box input:focus {
  outline: 1px solid rgba(167, 139, 250, 0.65);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.fchip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.fchip.active {
  color: #fff;
  background: #7c3aed;
  border-color: transparent;
}

.games { display: grid; gap: 12px; }
.position-hits {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.position-hits.hidden { display: none !important; }
.hit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  animation: fade 0.3s ease both;
}
.hit-row .title { font-weight: 650; }
.hit-row .sub { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.hit-row .add {
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.14);
  color: #ede9fe;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.game-row {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.55);
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(24, 10, 48, 0.18);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  animation: fade 0.4s ease both;
}
.game-row:nth-child(2) { animation-delay: 0.05s; }
.game-row:nth-child(3) { animation-delay: 0.1s; }
.game-row:active { transform: scale(0.985); }
.game-row:hover { border-color: #7c3aed; }

.tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #041018;
  background: linear-gradient(145deg, #5dffc8, #4aa3ff);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tile.has-image { color: transparent; text-shadow: none; }
.tile.t1 { background-image: linear-gradient(145deg, #a78bfa, #4f46e5); }
.tile.t2 { background-image: linear-gradient(145deg, #60a5fa, #7c3aed); }
.tile.t3 { background-image: linear-gradient(145deg, #c4b5fd, #2563eb); }
.tile.t4 { background-image: linear-gradient(145deg, #ddd6fe, #7c3aed); }
.game-cover.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.game-row .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--panel-ink);
}
.game-row .meta {
  color: var(--panel-muted);
  font-size: 0.84rem;
  margin-top: 3px;
}
.game-row .from {
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.positions { display: grid; gap: 0; }

.pos-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 2px;
  animation: fade 0.35s ease both;
}
.pos-row:first-child { border-top: 0; }
.pos-row .pos-name { font-weight: 650; font-size: 1.02rem; }
.pos-row .pos-price { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.slot-hint {
  margin-top: 6px;
  color: #c4b5fd;
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 28ch;
}
.hit-row .slot-hint {
  margin-top: 5px;
  max-width: none;
}
.pos-row .chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8dceb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}
.pos-row .add {
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.12);
  color: #ddd6fe;
  border-radius: 14px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pos-row .add:active { transform: scale(0.97); }
.pos-row .add:hover { background: rgba(124, 58, 237, 0.22); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 10, 0.62);
  backdrop-filter: blur(6px);
  z-index: 20;
  animation: fade 0.2s ease both;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100%);
  max-height: min(78dvh, 640px);
  z-index: 30;
  background: linear-gradient(180deg, #3b2460 0%, #24133f 100%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b));
  display: flex;
  flex-direction: column;
  animation: sheetIn 0.3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheetIn {
  from { transform: translate(-50%, 28px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px auto 12px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sheet-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}
.cart-items {
  overflow: auto;
  flex: 1;
  min-height: 80px;
  padding: 4px 0 12px;
}
.cart-empty {
  color: var(--muted);
  padding: 28px 0;
  text-align: center;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line .title { font-weight: 650; }
.cart-line .sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.cart-line .rm {
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.category-chips {
  margin: 0 0 14px;
  max-height: 9.5rem;
  overflow: auto;
  padding-bottom: 2px;
}
.game-about {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.game-about h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.game-about p {
  margin: 0;
  color: #d8cff0;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.game-about .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.watch-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(124, 58, 237, 0.12);
}
.watch-box h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.watch-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.watch-row select {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.2);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.category-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.2);
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  resize: vertical;
  min-height: 96px;
}
.sheet-footer { padding-top: 8px; }
.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  color: #c4b5fd;
  font-size: 0.88rem;
}
.discount-row strong {
  color: #ddd6fe;
  font-weight: 700;
}
.discount-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.discount-hint.active {
  color: #c4b5fd;
}
.total-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.old-total {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
  opacity: 0.85;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.total-row strong {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(12, 20, 28, 0.96);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  animation: fade 0.25s ease both;
  max-width: min(90vw, 360px);
  text-align: center;
}

.empty-state {
  color: var(--muted);
  padding: 28px 4px;
  line-height: 1.45;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.admin-field { display: grid; gap: 8px; }
.admin-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.console-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 420px) {
  .console-picks { grid-template-columns: 1fr 1fr; }
}
.pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
}
.pick:has(input:checked) {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.18);
  color: #ede9fe;
}
.pick input { accent-color: #7c3aed; }

.price-blocks {
  display: grid;
  gap: 12px;
}
.price-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 10px;
}
.price-block-title {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.price-plaques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plaque {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.plaque-title {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.plaque-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.plaque input {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 1.05rem;
  width: 100%;
}
.plaque input:focus {
  outline: 1px solid rgba(167, 139, 250, 0.65);
}
.admin-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input:not([type]) {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
}
.admin-form input:focus {
  outline: 1px solid rgba(61, 255, 194, 0.45);
}
.file-label input[type="file"] {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.85rem;
}
.admin-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}
.admin-block h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.15rem;
}
.admin-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.admin-list { display: grid; gap: 10px; }
.admin-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 8px;
}
.admin-item .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.admin-item .title { font-weight: 650; }
.admin-item .sub { color: var(--muted); font-size: 0.85rem; }
.admin-item .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-item button,
.admin-item .price-edit {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.admin-item .danger { color: var(--danger); border-color: rgba(255,109,125,0.35); }
.admin-item.off { opacity: 0.5; }

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