:root {
  --bg: #111318;
  --bg-2: #15181f;
  --panel: #1a1d25;
  --panel-2: #222631;
  --line: #2a2f3b;
  --line-2: #363c4a;
  --text: #eceef3;
  --muted: #9097a6;
  --faint: #6b7282;
  --accent: #ffc93c;
  --accent-2: #ffb21f;
  --accent-ink: #1d1600;
  --hot: #ff5a5f;
  --ok: #3ccb7f;
  --warn: #ff8a3d;
  --danger: #ff5d63;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1240px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .75);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 15% -120px, rgba(255, 201, 60, .10), transparent 70%),
    radial-gradient(700px 360px at 95% -80px, rgba(255, 90, 95, .07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3, h4 { font-stretch: 112%; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 780; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head > a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.section-head > a:hover { color: var(--accent); }

/* Announcement */
.announce { background: linear-gradient(90deg, #2a2210, #1b1810 40%, #2a1517); border-bottom: 1px solid #3a3020; font-size: .9rem; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; text-align: center; }
.announce a { color: var(--accent); font-weight: 700; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(17, 19, 24, .86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(42, 47, 59, .8); }
.topbar-inner { display: flex; align-items: center; gap: 10px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.18rem; margin-right: auto; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #ffd666, var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 900; box-shadow: 0 6px 18px -6px rgba(255, 201, 60, .55); }
.brand small { display: block; font-size: .72rem; font-weight: 600; font-stretch: 100%; color: var(--ok); letter-spacing: 0; }
.nav-links { display: none; gap: 4px; margin-right: 10px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 9px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.btn.account-btn { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (min-width: 640px) { .btn.account-btn { display: inline-flex; } .account-icon { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px -12px rgba(255, 201, 60, .7); }
.btn-primary:hover { background: #ffd666; }
.btn-ghost { background: var(--panel); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--panel-2); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: .9rem; }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 0 28px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Flash */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-weight: 500; }
.flash-ok { border-color: rgba(60, 203, 127, .35); background: rgba(60, 203, 127, .08); }
.flash-error { border-color: rgba(255, 93, 99, .35); background: rgba(255, 93, 99, .08); }

/* Hero */
.hero { padding: 28px 0 8px; display: grid; gap: 26px; align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lead { color: var(--muted); font-size: 1.12rem; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 960px) { .hero { grid-template-columns: .95fr 1.05fr; padding: 56px 0 24px; gap: 44px; } }

.promo { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); isolation: isolate; }
.promo-media { aspect-ratio: 16 / 9; position: relative; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.promo:hover .promo-media img { transform: scale(1.03); }
.promo-body { position: absolute; inset: auto 0 0 0; padding: 22px; display: flex; align-items: end; justify-content: space-between; gap: 14px; background: linear-gradient(180deg, transparent, rgba(10, 11, 15, .92) 55%); }
.promo-body h2 { margin: 6px 0 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.promo-price { text-align: right; flex: none; }
.promo-price strong { display: block; font-size: 1.6rem; font-stretch: 110%; color: var(--accent); }
.ribbon { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--hot); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 20px -8px rgba(255, 90, 95, .8); }
@media (prefers-reduced-motion: reduce) { .promo-media img { transition: none; } }

/* Benefits */
.benefits { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 26px; }
.benefit { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.benefit-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 201, 60, .12); color: var(--accent); flex: none; }
.benefit-icon svg { width: 20px; height: 20px; }
.benefit strong { display: block; font-size: .98rem; }
.benefit span { color: var(--muted); font-size: .86rem; }

/* The in-game menu panel (fallback hero art) */
.menu-panel { background: linear-gradient(180deg, #1f2330, #191c25); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); max-width: 440px; width: 100%; justify-self: center; }
.menu-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-panel-head strong { font-stretch: 125%; }
.menu-tabs { display: flex; gap: 6px; padding: 6px 0 10px; overflow-x: auto; }
.menu-tabs span { padding: 6px 12px; border-radius: 8px; font-size: .85rem; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.menu-tabs span.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 6px; border-bottom: 1px solid rgba(42, 46, 57, .6); font-size: .97rem; }
.toggle-row:last-child { border-bottom: 0; }
.switch { width: 42px; height: 24px; border-radius: 12px; background: #353a48; position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9ccd6; transition: transform .25s, background .25s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); background: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

/* Status */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 650; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status-online { color: var(--ok); }
.status-maintenance { color: var(--warn); }
.notice { border: 1px solid rgba(255, 138, 61, .35); background: rgba(255, 138, 61, .07); border-radius: var(--radius); padding: 14px 16px; }
.notice strong { color: var(--warn); }

/* Category tiles */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 150px; padding: 16px; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); background: var(--panel); isolation: isolate; }
.cat-tile img, .cat-tile .media-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 15, .15), rgba(10, 11, 15, .9)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile strong { font-size: 1.2rem; font-stretch: 112%; }
.cat-tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: .86rem; color: #c9cdd6; }

/* Product grid + cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 9; background: var(--panel-2); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(12, 13, 17, .82); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 700; }
.tag-hot { background: var(--hot); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-summary { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-stats { display: flex; gap: 12px; color: var(--faint); font-size: .8rem; font-weight: 600; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.28rem; font-stretch: 110%; line-height: 1.1; }
.price-from { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; font-stretch: 100%; }
.price-note { display: block; font-size: .76rem; color: var(--ok); font-weight: 600; }
.price-old { color: var(--faint); text-decoration: line-through; font-size: .88rem; font-weight: 500; }
.discount { color: var(--ok); font-weight: 700; font-size: .85rem; }
.card-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: .85rem; }
.card:hover .card-cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-stretch: 125%; font-size: 2.2rem; color: #333949; background: radial-gradient(120% 90% at 20% 10%, #2a2f3d, #191c24); }
@media (prefers-reduced-motion: reduce) { .card, .card-media img, .cat-tile img { transition: none; } .card:hover { transform: none; } }

/* Product page */
.product-layout { display: grid; gap: 24px; padding: 20px 0 32px; grid-template-areas: "media" "buy" "info"; }
.product-media { grid-area: media; }
.product-info { grid-area: info; }
.buy-box { grid-area: buy; }
@media (min-width: 980px) {
  .product-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "media buy" "info buy"; align-items: start; gap: 32px; }
  .buy-box { position: sticky; top: 88px; }
}
.gallery-main { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--panel-2); position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 96px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--panel-2); cursor: pointer; flex: none; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.buy-box h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 10px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-sm { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 650; color: #c9cdd6; }
.chip-sm.ok { color: var(--ok); border-color: rgba(60, 203, 127, .3); background: rgba(60, 203, 127, .08); }
.chip-sm.warn { color: var(--warn); border-color: rgba(255, 138, 61, .3); background: rgba(255, 138, 61, .08); }
.big-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.big-price strong { font-size: 2rem; font-stretch: 110%; }
.plans { display: grid; gap: 8px; margin: 14px 0 16px; border: 0; padding: 0; }
.plans legend { color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.plan { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.plan:hover { border-color: var(--line-2); }
.plan input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.plan:has(input:checked) { border-color: var(--accent); background: rgba(255, 201, 60, .07); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-info { flex: 1; min-width: 0; }
.plan-info strong { display: block; }
.plan-info span { color: var(--muted); font-size: .84rem; }
.plan-price { text-align: right; }
.plan-price strong { display: block; font-stretch: 110%; font-size: 1.05rem; }
.plan-off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 90, 95, .15); color: #ff8a8e; font-size: .74rem; font-weight: 800; }
.plan.is-off { opacity: .5; cursor: not-allowed; }
.buy-actions { display: grid; gap: 10px; }
.assurances { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.assurances div { display: flex; gap: 10px; align-items: flex-start; }
.assurances svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.pay-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--faint); font-size: .82rem; }
.pay-row svg { width: 16px; height: 16px; flex: none; color: var(--ok); }

.rich { max-width: 72ch; }
.rich > h3 { margin: 1.6em 0 .6em; }
.rich .rt-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.rich .rt-block h3 { margin: 0 0 .7em; font-size: 1.05rem; }
.rich .rt-block p:last-child, .rich .rt-block ul:last-child { margin-bottom: 0; }
.rich .rt-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 9px; }
.rich .rt-list li { padding-left: 28px; position: relative; }
.rich .rt-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 201, 60, .14); }
.rich .rt-list li::after { content: ""; position: absolute; left: 5px; top: .48em; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 760px) { .rich .rt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .rich .rt-cols .rt-block { margin: 0; } }

/* Reviews */
.reviews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review p { margin: 0; }
.review-quote { color: #d6d9e0; }
.stars { color: var(--accent); letter-spacing: 2px; }
.review-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--muted); }
.review-who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 800; font-size: .85rem; color: var(--accent); flex: none; }
.rating-summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.rating-summary strong { font-size: 2.4rem; font-stretch: 110%; line-height: 1; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 201, 60, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hint { color: var(--muted); font-size: .85rem; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; min-width: 0; }

/* Panels / summaries */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.two-col { display: grid; gap: 20px; padding: 24px 0 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.line-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.thumb { width: 72px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel-2); flex: none; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .media-fallback { font-size: .9rem; }
.line-item .grow { flex: 1; min-width: 0; }
.line-item .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 34px; background: var(--panel-2); border: 0; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.totals { display: grid; gap: 8px; padding-top: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.25rem; font-weight: 800; font-stretch: 110%; padding-top: 10px; border-top: 1px solid var(--line); }
.pay-options { display: grid; gap: 8px; margin-bottom: 16px; }

/* Order / Pix */
.order-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.state-pending { background: rgba(255, 201, 60, .12); color: var(--accent); }
.state-paid { background: rgba(60, 203, 127, .12); color: var(--ok); }
.state-expired, .state-cancelled, .state-refunded { background: rgba(255, 93, 99, .1); color: var(--danger); }
.pix-box { display: grid; gap: 20px; }
@media (min-width: 700px) { .pix-box { grid-template-columns: 240px 1fr; align-items: start; } }
.qr { width: 240px; max-width: 100%; aspect-ratio: 1; background: #fff; border-radius: var(--radius); padding: 12px; justify-self: center; box-shadow: 0 0 0 6px rgba(255, 201, 60, .12); }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .85rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.steps { padding-left: 1.2em; margin: 0; color: var(--muted); display: grid; gap: 4px; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.key { font-family: var(--mono); font-size: 1.08rem; font-weight: 700; letter-spacing: .06em; flex: 1; min-width: 200px; word-break: break-all; color: var(--accent); }
.license-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.license-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.license-meta strong { color: var(--text); }
.group-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.group-head .thumb { width: 64px; }

/* Login code boxes */
.auth-box { max-width: 460px; margin: 40px auto 64px; }
.code-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
.code-inputs input { width: 100%; min-width: 0; height: 58px; padding: 0; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.code-inputs input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 201, 60, .15); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(8, 9, 12, .6); backdrop-filter: blur(2px); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.close { background: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.close svg { width: 20px; height: 20px; }
.close:hover { background: var(--panel-2); color: var(--text); }
.menu-pop { position: absolute; right: 16px; top: 8px; width: 270px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); z-index: 50; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 550; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel-2); }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.sale-pop { position: fixed; left: 16px; bottom: 16px; z-index: 55; display: flex; align-items: center; gap: 12px; max-width: min(340px, calc(100% - 32px)); padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(26, 29, 37, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .86rem; transform: translateY(140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.sale-pop.show { transform: none; opacity: 1; }
.sale-pop .thumb { width: 54px; }
.sale-pop small { display: block; color: var(--muted); font-size: .76rem; }
@media (prefers-reduced-motion: reduce) { .sale-pop { transition: none; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 44px; color: var(--muted); font-size: .92rem; margin-top: 32px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; padding-top: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Page header */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .2em; }
.page-head p { color: var(--muted); max-width: 60ch; }

/* Tables (admin + account) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; color: var(--accent); }

/* Chips (admin nav + filters) */
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* FAQ */
.faq-list { max-width: 820px; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1.02rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
