/* FireLoot — public site styles
   Color system, page background, typography, and all section styles.
   Mobile-first, breakpoints: 600 (tablet) / 900 (desktop nav) / 1180 (wide). */

:root {
  --bg-0: #07060f;
  --bg-1: #0d0a1f;
  --bg-2: #14112a;
  --bg-3: #1a1638;
  --card: #16122d;
  --card-2: #1d1840;
  --elev: #251f47;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f1fb;
  --fg-2: #c7c0e0;
  --fg-3: #8a82ac;
  --fg-4: #59537a;

  --brand: #8a6dff;
  --brand-2: #a48bff;
  --brand-deep: #5b3fd6;
  --fire: #ff8a3d;
  --fire-2: #ffb066;
  --diamond: #5cb9ff;
  --success: #5fd9a4;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 36px rgba(138, 109, 255, 0.35);
  --shadow-fire: 0 10px 32px rgba(255, 138, 61, 0.28);

  --tr: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --container: min(100% - 32px, 1180px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Smooth scroll for in-page anchors (#catalog, #how, #faq, etc.) */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; }
/* Reserve space at the bottom on mobile so the sticky CTA doesn't cover content. */
@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: transparent; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.display { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--brand-2); text-transform: uppercase; margin-bottom: 12px; }

.container { width: var(--container); margin: 0 auto; }

/* ─── Page background ───────────────────────────── */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 18% 0%, rgba(138, 109, 255, 0.22), transparent 60%),
    radial-gradient(50% 35% at 95% 10%, rgba(255, 138, 61, 0.14), transparent 55%),
    radial-gradient(40% 30% at 50% 100%, rgba(92, 185, 255, 0.07), transparent 60%),
    var(--bg-0);
}

/* ─── Header ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 6, 15, 0.6); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); }
.logo img { width: 32px; height: 32px; border-radius: 9px; flex: none; }

.nav-links { display: none; gap: 22px; color: var(--fg-2); font-size: 14px; }
.nav-links a { color: var(--fg-2); transition: color var(--tr); }
.nav-links a:hover { color: var(--fg); }

.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 13px; font-weight: 600; color: var(--fg); transition: background var(--tr), border-color var(--tr); }
.header-cta:hover { background: rgba(255,255,255,0.08); }
.header-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

/* Mobile burger (CSS-only via <details>) */
.burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.burger:hover { background: rgba(255,255,255,0.08); }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::marker { display: none; }
.mobile-menu[open] .burger-svg .top { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .burger-svg .mid { opacity: 0; }
.mobile-menu[open] .burger-svg .bot { transform: translateY(-6px) rotate(-45deg); }
.burger-svg line { transition: transform var(--tr), opacity var(--tr); transform-origin: center; }
.mobile-menu .panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px)); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-soft); }
.mobile-menu .panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--fg-2); font-weight: 600; transition: background var(--tr), color var(--tr); }
.mobile-menu .panel a:hover { background: rgba(255,255,255,0.05); color: var(--fg); }

@media (min-width: 900px) {
  .nav-links { display: inline-flex; }
  .mobile-menu { display: none; }
}

/* ─── Buttons ────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: transform var(--tr), background var(--tr), border-color var(--tr), filter var(--tr); white-space: nowrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; font-weight: 700;
  box-shadow: var(--shadow-glow);
  padding: 14px 22px;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

/* ─── Hero ───────────────────────────────────── */
.hero { padding: 48px 0 28px; position: relative; }
@media (min-width: 920px) { .hero { padding: 80px 0 48px; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(138,109,255,0.12); border: 1px solid rgba(138,109,255,0.32); color: var(--brand-2); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 22px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(164,139,255,0.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(164,139,255,0.7);} 70% { box-shadow: 0 0 0 8px rgba(164,139,255,0);} 100% { box-shadow: 0 0 0 0 rgba(164,139,255,0);} }

.hero-image-card {
  position: relative;
  min-height: 170px;
  border-radius: var(--r-xl);
  margin-bottom: 28px;
  background-color: #2a1e4e;
  background-image: linear-gradient(180deg, rgba(13,10,31,.10) 0%, rgba(13,10,31,.75) 100%), var(--hero-m, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-image-card {
    min-height: 320px;
    background-image: linear-gradient(180deg, rgba(13,10,31,.10) 0%, rgba(13,10,31,.75) 100%), var(--hero-d, var(--hero-m, none));
  }
}

.hero-title {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 20px;
}
.hero-title .swap-stack {
  display: inline-grid;
  vertical-align: baseline;
  text-align: left;
  /* All swap words occupy the same cell, sized by the widest word */
  justify-items: start;
}
.hero-title .swap-stack > span {
  grid-area: 1 / 1;
  color: var(--brand-2);
  position: relative;
  white-space: nowrap;
  /* Each span sizes to its own content so the underline matches the word, not the cell */
  width: max-content;
  opacity: 0;
  transform: translateY(8px);
  animation: swap 7.5s infinite;
}
.hero-title .swap-stack > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.08em; background: linear-gradient(90deg, var(--brand) 0%, var(--fire) 100%); border-radius: 2px; }
.hero-title .swap-stack > span:nth-child(1) { animation-delay: 0s; }
.hero-title .swap-stack > span:nth-child(2) { animation-delay: 2.5s; }
.hero-title .swap-stack > span:nth-child(3) { animation-delay: 5s; }
@keyframes swap {
  0%, 30%   { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .swap-stack > span { animation: none; }
  .hero-title .swap-stack > span:nth-child(1) { opacity: 1; transform: none; }
  .hero-title .swap-stack > span:nth-child(2),
  .hero-title .swap-stack > span:nth-child(3) { display: none; }
}

.hero-sub { color: var(--fg-2); font-size: 16px; max-width: 600px; line-height: 1.6; margin-bottom: 28px; }
@media (min-width: 768px) { .hero-sub { font-size: 17px; } }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ─── Region row (kept from old design, slimmed) ── */
.region-row { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-top: 18px; font-size: 13px; }
.region-row > div { display: flex; flex-direction: column; gap: 2px; }
.region-row .muted { color: var(--fg-3); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.region-row .accent { color: var(--brand-2); }

/* ─── Live ticker ────────────────────────────── */
.ticker { margin: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.ticker-track { display: inline-flex; gap: 36px; white-space: nowrap; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 13px; }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex: none; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ─── Trust strip ────────────────────────────── */
.trust { padding: 32px 0 16px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.trust-card { padding: 18px; border-radius: var(--r-md); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; transition: border-color var(--tr); }
.trust-card:hover { border-color: var(--line-2); }
.trust-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(138,109,255,0.12); color: var(--brand-2); display: grid; place-items: center; flex: none; font-size: 18px; line-height: 1; }
.trust-card.fire .trust-ico { background: rgba(255,138,61,0.14); color: var(--fire-2); }
.trust-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.trust-lab { color: var(--fg-3); font-size: 12px; line-height: 1.4; }

/* ─── Catalog ────────────────────────────────── */
.catalog { padding: 36px 0 12px; scroll-margin-top: 80px; }
.catalog-head { margin-bottom: 22px; }
.catalog-head h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.catalog-head .sub { color: var(--fg-3); font-size: 14px; max-width: 520px; }

.segments { display: inline-flex; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; gap: 4px; margin-bottom: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segments .seg { padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--fg-3); transition: color var(--tr), background var(--tr); white-space: nowrap; }
.segments .seg:hover { color: var(--fg-2); }
.segments .seg.active { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 6px 18px rgba(138,109,255,0.35); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.product-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 12px 14px; text-align: left; color: var(--fg);
  transition: transform var(--tr), border-color var(--tr), background var(--tr);
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(138,109,255,0.45); background: var(--card-2); }
/* Tap feedback — instant visual response so mobile users know the tap registered. */
.product-card:active { transform: scale(0.97); transition-duration: 80ms; }
.product-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138,109,255,0.18); }
.product-card.selected::after { content: "Выбран ✓"; position: absolute; top: -8px; left: 12px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }

.product-image { aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(80% 80% at 30% 25%, rgba(138,109,255,0.25), transparent 60%), linear-gradient(135deg, #1a1538 0%, #0e0a23 100%); display: grid; place-items: center; margin-bottom: 12px; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image-fallback { font-size: 42px; line-height: 1; }

.product-name { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 10px; line-height: 1.3; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; color: var(--fg); }
.product-buy { width: 32px; height: 32px; border-radius: 9px; background: rgba(138,109,255,0.16); color: var(--brand-2); display: grid; place-items: center; transition: background var(--tr), color var(--tr); flex: none; }
.product-card:hover .product-buy { background: var(--brand); color: #fff; }

/* ─── How it works ───────────────────────────── */
.how { padding: 56px 0 24px; scroll-margin-top: 80px; }
.how h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.how-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color var(--tr); }
.how-step:hover { border-color: var(--line-2); }
.how-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 56px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 12px; opacity: 0.9; letter-spacing: -0.04em; }
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--fg); }
.how-step p { color: var(--fg-3); font-size: 13px; line-height: 1.55; }

/* ─── Game description (collapsible) ─────────── */
.game-desc { padding: 28px 0 8px; }
.collapsible { border-top: 1px solid var(--line); padding-top: 18px; }
.collapsible summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 4px 0; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary h2 { display: inline; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.collapsible .chev { color: var(--fg-3); transition: transform var(--tr); }
.collapsible[open] .chev { transform: rotate(180deg); }
.collapsible-body { color: var(--fg-2); font-size: 14px; line-height: 1.65; padding: 12px 0 4px; }

/* ─── FAQ ────────────────────────────────────── */
.faq { padding: 56px 0 56px; scroll-margin-top: 80px; }
.faq-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
.faq-aside h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.faq-aside p { color: var(--fg-3); font-size: 14px; line-height: 1.6; max-width: 360px; margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--tr); }
.faq-row[open] { border-color: var(--line-2); }
.faq-row summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-icn { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.04); display: grid; place-items: center; transition: transform var(--tr), background var(--tr), color var(--tr); flex: none; color: var(--fg-3); font-size: 16px; line-height: 1; }
.faq-row[open] .faq-icn { background: rgba(138,109,255,0.18); color: var(--brand-2); transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--fg-2); font-size: 14px; line-height: 1.6; }

/* ─── Footer ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 70px; color: var(--fg-3); font-size: 13px; margin-top: 24px; }
.footer-row { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { color: var(--fg-2); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--fg-3); font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h4 { color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
/* Each link on its own line (display:flex on the column ensures vertical stacking) */
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); padding: 5px 0; transition: color var(--tr); }
.footer-col a:hover { color: var(--fg); }
.footer-col a svg { color: var(--fg-3); transition: color var(--tr); flex: none; }
.footer-col a:hover svg { color: var(--brand-2); }

.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--fg-4); font-size: 12px; }
.pay-row { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pay-mark { padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,0.06); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--fg-2); }

/* ─── Support FAB ────────────────────────────── */
.support-fab { position: fixed; right: 20px; bottom: 20px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow-glow); font-weight: 700; font-size: 13px; z-index: 50; transition: transform var(--tr); }
.support-fab:hover { transform: translateY(-2px); }
/* On mobile the sticky bottom CTA is anchored at the bottom — push FAB up to avoid overlap. */
@media (max-width: 767px) { .support-fab { bottom: 80px; padding: 10px 14px; font-size: 12px; } }

/* ─── Sticky bottom CTA (mobile only) ─────────── */
/* Always-visible "В Telegram-бот" pill at the bottom of the viewport on phones,
   so the path-to-purchase is one tap from anywhere on the page.
   Hidden on desktop where the regular CTAs are visible above the fold. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px;
  background: linear-gradient(180deg, rgba(7,6,15,0) 0%, rgba(7,6,15,0.85) 30%, rgba(7,6,15,0.95) 100%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.sticky-cta a {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-glow);
}
.sticky-cta a:active { transform: scale(0.98); }
@media (max-width: 767px) { .sticky-cta { display: block; } }

/* ─── Cookie info banner ─────────────────────
   Informational only — Russian 152-FZ requires notification, not opt-in,
   so the user can dismiss it but cookies are already set. Sits above the
   sticky CTA on mobile, bottom-right pill on desktop. */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(7,6,15,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.85); font-size: 13px; line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cookie-banner a { color: var(--brand); text-decoration: underline; }
.cookie-banner button {
  flex: 0 0 auto;
  padding: 8px 18px;
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.cookie-banner button:hover { background: var(--brand-deep, var(--brand)); }
@media (min-width: 768px) {
  .cookie-banner { left: auto; max-width: 480px; bottom: 18px; right: 18px; }
}
/* Lift cookie banner above sticky CTA on mobile so they don't overlap */
@media (max-width: 767px) {
  .cookie-banner { bottom: 84px; }
}

/* ─── Modal ──────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,6,15,0.78); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: 100%; max-width: 460px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px; max-height: 90vh; overflow-y: auto; animation: rise .3s cubic-bezier(0.2,0.7,0.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.05); color: var(--fg-2); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--fg); }

.modal-product { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 18px; }
.modal-product .mp-thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); display: grid; place-items: center; font-size: 22px; flex: none; }
.modal-product .mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-product .mp-text { flex: 1; min-width: 0; }
.modal-product .mp-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-product .mp-price { margin-left: auto; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; color: var(--fg); }

.uid-field { display: block; margin-bottom: 14px; }
.uid-field input { width: 100%; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--fg); font-size: 15px; font-family: ui-monospace, monospace; letter-spacing: 0.04em; transition: border-color var(--tr), box-shadow var(--tr); }
.uid-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(138,109,255,0.15); }
.uid-field input::placeholder { color: var(--fg-4); letter-spacing: 0.06em; }

.pay-methods-label { font-size: 13px; color: var(--fg-3); margin-bottom: 8px; font-weight: 600; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pay-btn { padding: 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--fg-3); font-size: 13px; font-weight: 700; transition: all var(--tr); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-btn:hover { border-color: var(--line-2); background: var(--bg-3); color: var(--fg-2); }
.pay-btn.active { border-color: var(--brand); background: rgba(138,109,255,0.08); color: var(--fg); box-shadow: 0 0 0 3px rgba(138,109,255,0.12); }

.pay-submit { width: 100%; }
.modal-hint { color: var(--fg-4); font-size: 11px; text-align: center; margin-top: 10px; line-height: 1.5; }

@media (min-width: 768px) {
  .modal { align-items: center; }
  .modal-card { border-radius: var(--r-xl); }
}

/* ─── Doc pages (offer / policy / refund) ────── */
.doc-page { padding: 32px 0 56px; }
.doc-page h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc-page h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; margin-top: 24px; margin-bottom: 10px; color: var(--fg); }
.doc-page p { color: var(--fg-2); font-size: 14px; margin-bottom: 10px; line-height: 1.65; }
.doc-page ul, .doc-page ol { margin-left: 20px; margin-bottom: 10px; color: var(--fg-2); }
.doc-page li { font-size: 14px; line-height: 1.65; margin-bottom: 4px; list-style: disc; }
.doc-page ol li { list-style: decimal; }
.doc-page .muted { color: var(--fg-3); font-size: 12px; margin-bottom: 20px; }
.doc-page a { color: var(--brand-2); }
.doc-page a:hover { text-decoration: underline; }
.doc-page code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--brand-2); }
