/* FunExtension Mini App — премиальная тёмная дизайн-система (BLACK/GRAPHITE/ORANGE).
   Тот же визуальный язык, что на сайте, адаптирован под Telegram Mobile. */

:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #141414;
  --surface-3: #181818;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #F5F5F5;
  --muted: #9A9A9A;
  --faint: #6B6B6B;
  --accent: #FF6A00;
  --accent-2: #FF8A33;
  --accent-soft: rgba(255, 106, 0, 0.13);
  --accent-line: rgba(255, 106, 0, 0.35);
  --ok: #34C759;
  --ok-soft: rgba(52, 199, 89, 0.12);
  --ok-line: rgba(52, 199, 89, 0.3);
  --err: #FF453A;
  --warn: #FFD60A;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 64px;

  /* Liquid Glass (iOS-стиль) */
  --glass-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.045) 38%, rgba(255, 255, 255, 0.11) 78%, rgba(255, 255, 255, 0.06)),
    rgba(16, 16, 16, 0.45);
  --glass-blur: blur(24px) saturate(1.7);
  --glass-line: rgba(255, 255, 255, 0.18);
  --glass-spec:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
  --glass-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overscroll-behavior-y: none;
}

/* --- Дорогой технологичный фон: слои, точки, световые пятна, тонкая геометрия --- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    /* мягкое оранжевое свечение сверху по центру */
    radial-gradient(ellipse 90% 34% at 50% -6%, rgba(255, 106, 0, 0.10), transparent 62%),
    /* холодное графитовое пятно справа */
    radial-gradient(ellipse 70% 40% at 108% 30%, rgba(255, 255, 255, 0.035), transparent 60%),
    /* тёплое пятно снизу слева */
    radial-gradient(ellipse 80% 30% at -10% 96%, rgba(255, 106, 0, 0.05), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    /* мелкая точечная текстура */
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 26px 26px,
    /* редкие оранжевые точки-акценты */
    radial-gradient(circle, rgba(255, 106, 0, 0.16) 1.2px, transparent 1.8px) 13px 60px / 118px 118px,
    /* тонкая диагональная геометрия, едва заметная */
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.012) 46px 47px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.55) 60%, rgba(0,0,0,.8));
  pointer-events: none;
}

.mono { font-family: "JetBrains Mono", monospace; }
.muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); font-size: 12px; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px calc(12px + env(safe-area-inset-top) * 0);
  padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 60%), rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px;
  color: #fff;
  background: linear-gradient(145deg, #FF7A1A, #E55D00);
  box-shadow: 0 6px 18px -6px rgba(255, 106, 0, 0.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; }
.balance-pill {
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 13.5px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)), rgba(20, 20, 20, 0.5);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

#view {
  padding: 16px 14px calc(var(--nav-h) + 26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
  max-width: 560px; margin: 0 auto;
}

.loader {
  width: 34px; height: 34px; margin: 70px auto;
  border: 3px solid var(--line-2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.card-title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 10px 2px -4px;
}
.section-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.section-link { font-size: 12.5px; color: var(--accent-2); font-weight: 600; cursor: pointer; }

/* ---------- Hero (главная) ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.045)),
    linear-gradient(160deg, rgba(22, 22, 22, 0.75), rgba(13, 13, 13, 0.75) 60%);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-spec);
  border-radius: 24px;
  padding: 20px 18px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.3px) 0 0 / 22px 22px,
    radial-gradient(ellipse 80% 60% at 90% -10%, rgba(255, 106, 0, 0.16), transparent 55%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.hero > * { position: relative; }
.hero-name { font-size: 23px; font-weight: 900; letter-spacing: -0.02em; margin: 10px 0 8px; }
.hero-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.hero-stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.hero-stat b { display: block; font-family: "JetBrains Mono", monospace; font-size: 17px; letter-spacing: -0.01em; }
.hero-stat span { font-size: 10.5px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.hero-img {
  width: calc(100% + 28px); margin: -16px -14px 6px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  aspect-ratio: 21/9; object-fit: cover; display: block;
}

/* ---------- Quick actions ---------- */

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 11px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; transition: border-color 0.15s, transform 0.1s;
}
.quick button:active { transform: scale(0.95); border-color: var(--accent-line); }
.quick .q-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}

/* ---------- Search / chips ---------- */

.search {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--text); font-size: 14.5px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.search:focus { border-color: var(--accent-line); }
.search::placeholder { color: var(--faint); }

.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  border-radius: 999px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.chip.active {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2);
}
.chip:active { transform: scale(0.95); }

/* ---------- Product cards — крупные, многоуровневые ---------- */

.grid { display: flex; flex-direction: column; gap: 14px; }

.product {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: var(--glass-shadow);
}
.product:active { transform: scale(0.985); border-color: var(--accent-line); }

/* «жидкий» блик, скользящий по стеклу карточек */
.product, .card, .hero { position: relative; }
.product::before, .card::before {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.12) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: glass-sheen 6.5s ease-in-out infinite;
}
.card::before { animation-delay: 2.1s; }
@keyframes glass-sheen {
  0%, 55% { transform: translateX(-70%); }
  85%, 100% { transform: translateX(70%); }
}
@media (prefers-reduced-motion: reduce) {
  .product::before, .card::before { animation: none; opacity: 0.4; transform: none; }
}
.product > *, .card > * { position: relative; z-index: 1; }

.p-cover { position: relative; aspect-ratio: 16/9; background: #0C0C0C; overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-cover-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.3px) 0 0 / 20px 20px,
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255, 106, 0, 0.09), transparent 60%),
    #0C0C0C;
}
.p-cover-empty .p-logo {
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 30px;
  color: var(--accent); opacity: 0.9;
  text-shadow: 0 0 30px rgba(255, 106, 0, 0.4);
}
.p-cover-empty .p-tag { font-size: 10.5px; color: var(--faint); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }

.p-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; }
.p-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(8, 8, 8, 0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); color: var(--text);
}
.p-badge.accent { background: rgba(255, 106, 0, 0.16); border-color: var(--accent-line); color: var(--accent-2); }
.p-badge.ok { background: rgba(52, 199, 89, 0.16); border-color: var(--ok-line); color: var(--ok); }

.p-body { padding: 14px 16px 15px; }
.p-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.015em; margin-bottom: 3px; }
.p-name .p-ver { color: var(--faint); font-weight: 600; font-size: 12.5px; font-family: "JetBrains Mono", monospace; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.p-tag-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 7px;
}
.p-desc {
  color: var(--muted); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.p-price { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 17px; color: var(--text); }
.p-price small { color: var(--faint); font-size: 11px; font-weight: 500; margin-left: 6px; }
.p-cta {
  font-size: 12.5px; font-weight: 700; color: var(--accent-2);
  display: flex; align-items: center; gap: 5px;
}
.p-sales { font-size: 11.5px; color: var(--faint); }

/* ---------- Buttons ---------- */

.btn {
  width: 100%; border: none; cursor: pointer;
  background: linear-gradient(180deg, #FF7A1A, #F06100);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 18px; border-radius: var(--r-md);
  font-family: inherit;
  box-shadow: 0 10px 26px -10px rgba(255, 106, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.1s, filter 0.15s;
}
.btn:active { transform: scale(0.975); filter: brightness(1.08); }
.btn.secondary {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  box-shadow: none; color: var(--text); font-weight: 700;
}
.btn.secondary:active { border-color: var(--accent-line); }
.btn.disabled {
  background: var(--surface-2); color: var(--faint);
  border: 1px dashed var(--line-2); box-shadow: none; font-weight: 600;
}
.btn.sm { width: auto; padding: 10px 16px; font-size: 13.5px; }

/* ---------- Qty stepper ---------- */

.qty {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 8px;
}
.qty button {
  width: 44px; height: 40px; border: none; border-radius: 10px;
  background: var(--surface-3); color: var(--text);
  font-size: 20px; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.qty button:active { background: var(--accent-soft); color: var(--accent-2); }
.qty b { font-family: "JetBrains Mono", monospace; font-size: 14.5px; }

/* ---------- Badges / statuses ---------- */

.badge-status {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge-status.on { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.badge-status.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge-status.off { background: rgba(255, 69, 58, 0.1); color: var(--err); border: 1px solid rgba(255, 69, 58, 0.28); }
.badge-status.accent { background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line); }

/* ---------- Key box / licenses ---------- */

.key-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #0A0A0A; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 11px 12px; margin-top: 10px;
}
.key-box span {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.key-box button {
  flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--accent-line); border-radius: 8px;
  padding: 7px 13px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.key-box button:active { transform: scale(0.94); }

/* ---------- Transactions / orders ---------- */

.tx {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 13.5px;
}
.tx .plus { color: var(--ok); font-family: "JetBrains Mono", monospace; font-weight: 700; white-space: nowrap; }
.tx .minus { color: var(--muted); font-family: "JetBrains Mono", monospace; font-weight: 700; white-space: nowrap; }

/* ---------- Cart rows ---------- */

.cart-item { display: flex; gap: 13px; }
.cart-thumb {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: var(--r-md);
  overflow: hidden; background: #0C0C0C; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--accent); font-size: 18px;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-remove {
  align-self: flex-start;
  background: none; border: none; color: var(--faint);
  font-size: 12px; cursor: pointer; padding: 2px 0; font-family: inherit;
}
.cart-remove:active { color: var(--err); }

/* ---------- Empty states ---------- */

.empty {
  text-align: center; color: var(--muted);
  padding: 44px 22px; font-size: 14px; line-height: 1.7;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.empty .e-ico {
  font-size: 34px; display: block; margin-bottom: 12px;
  filter: grayscale(0.2); opacity: 0.85;
}
.empty b { color: var(--text); display: block; font-size: 15.5px; margin-bottom: 4px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)), rgba(27, 27, 27, 0.6);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--text);
  padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; z-index: 50;
  border: 1px solid var(--glass-line);
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  max-width: calc(100vw - 32px); text-align: center;
  animation: toast-in 0.22s ease-out;
}
.toast.err { border-color: rgba(255, 69, 58, 0.45); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ---------- Bottom nav ---------- */

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%), rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border-top: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.bottomnav button {
  position: relative;
  flex: 1; max-width: 86px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  font-family: inherit; border-radius: var(--r-md);
  transition: color 0.15s;
}
.bottomnav button .ico {
  font-size: 19px; line-height: 1;
  width: 44px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.12s;
  filter: grayscale(1) opacity(0.75);
}
.bottomnav button.active { color: var(--accent-2); }
.bottomnav button.active .ico {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  filter: none;
}
.bottomnav button:active .ico { transform: scale(0.88); }
.bottomnav .badge {
  position: absolute; top: 2px; right: calc(50% - 24px);
  background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 800; font-family: "JetBrains Mono", monospace;
  border-radius: 999px; padding: 2px 6px;
  box-shadow: 0 3px 10px -2px rgba(255, 106, 0, 0.7);
}

/* ---------- Product detail ---------- */

.detail-cover {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 16/10; background: #0C0C0C;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover .p-cover-empty { height: 100%; }
.detail-title { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; }
.detail-price {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 16px 18px;
  box-shadow: 0 12px 34px -18px rgba(255, 106, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.detail-price b { font-family: "JetBrains Mono", monospace; font-size: 23px; }
.spec-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 600; text-align: right; }

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