/* CnC website: one stylesheet for every page. Brand from the game's cy-theme: police blue, crime red, night violet. */

@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Heebo'; src: url('../fonts/heebo-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Heebo'; src: url('../fonts/heebo-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Heebo'; src: url('../fonts/heebo-hebrew.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Arabic'; src: url('../fonts/notosansarabic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07060f;
  --bg-2: #0d0b1d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eeedfb;
  --muted: #a9a7c8;
  --faint: #6f6c92;
  --police: #4d8dff;
  --crime: #ff4766;
  --violet: #8b5cf6;
  --ems: #ff9f43;
  --online: #27e07a;
  --gold: #ffd166;
  --silver: #dfe7ea;
  --bronze: #e09a5f;
  --brand-gradient: linear-gradient(100deg, var(--police) 0%, var(--violet) 52%, var(--crime) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --display: 'Orbitron', 'Heebo', system-ui, sans-serif;
  --body: 'Heebo', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 8% -5%, rgba(77, 141, 255, 0.13), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 71, 102, 0.10), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: #9cc0ff; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--police); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 1.3em; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--b); color: var(--text); font: 700 0.95rem/1 var(--body); letter-spacing: 0.02em;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-play {
  background: var(--brand-gradient); border: 0; color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-play:hover { box-shadow: 0 10px 36px rgba(139, 92, 246, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.05rem; border-radius: 14px; }
.btn-discord { --b: #5865f2; border-color: transparent; }
.btn-discord:hover { --b: #6d78ff; }
.btn-ghost { --b: transparent; }
.btn-police { --b: rgba(77, 141, 255, 0.16); border-color: rgba(77, 141, 255, 0.5); }
.btn-crime { --b: rgba(255, 71, 102, 0.16); border-color: rgba(255, 71, 102, 0.5); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 6, 15, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 900 1.2rem/1 var(--display); letter-spacing: 0.06em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font: 600 0.62rem/1.2 var(--body); letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 10px; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: #fff; background: var(--surface); }
.nav a[aria-current='page'] { color: #fff; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--violet); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.status[hidden] { display: none; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(39, 224, 122, 0.6); animation: pulse 2s infinite; }
.status.offline .dot { background: var(--faint); animation: none; }
.status b { color: var(--text); font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 224, 122, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(39, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 224, 122, 0); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 920px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 20px;
    background: rgba(9, 8, 20, 0.97); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .status { display: none; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .header-right .btn-play { padding: 0 1em; }
}

/* ---------------------------------------------------------------- sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 0.75rem/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--brand-gradient); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.grad-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cop { color: var(--police); }
.crim { color: var(--crime); }
.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; padding: 0; min-height: min(86vh, 780px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url('../img/hero.jpg') center right / cover no-repeat; transform: scale(1.04); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 6, 15, 0.96) 0%, rgba(7, 6, 15, 0.82) 38%, rgba(7, 6, 15, 0.25) 70%, rgba(7, 6, 15, 0.45) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-inner { padding: 72px 0 96px; max-width: 640px; }
.hero h1 { margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d6d4ee; max-width: 540px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.hero-note a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.stat b { display: block; font: 900 1.7rem/1 var(--display); }
.stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-bg { background-position: 78% center; opacity: 0.55; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 6, 15, 0.55), rgba(7, 6, 15, 0.92) 55%, var(--bg)); }
  .hero-inner { padding: 56px 0 64px; }
  .stats { gap: 20px 28px; }
}

/* ---------------------------------------------------------------- sides */
.side { overflow: hidden; padding: 28px; min-height: 100%; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s; }
.side::before { content: ''; position: absolute; inset: 0; opacity: 0.9; z-index: -1; }
.side { isolation: isolate; }
.side:hover { transform: translateY(-3px); }
.side.police { border-color: rgba(77, 141, 255, 0.35); }
.side.police::before { background: radial-gradient(500px 260px at 0% 0%, rgba(77, 141, 255, 0.22), transparent 70%); }
.side.criminal { border-color: rgba(255, 71, 102, 0.35); }
.side.criminal::before { background: radial-gradient(500px 260px at 100% 0%, rgba(255, 71, 102, 0.22), transparent 70%); }
.side.civil { border-color: rgba(139, 92, 246, 0.35); }
.side.civil::before { background: radial-gradient(500px 260px at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%); }
.side-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.side-icon svg { width: 28px; height: 28px; }
.police .side-icon { background: rgba(77, 141, 255, 0.16); color: var(--police); }
.criminal .side-icon { background: rgba(255, 71, 102, 0.16); color: var(--crime); }
.civil .side-icon { background: rgba(139, 92, 246, 0.18); color: #b49bff; }
.side h3 { font-size: 1.45rem; }
.side p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: #d8d6ef; font-size: 0.97rem; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--online); }
.side .btn { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; }
.step { padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 20px; left: 24px; font: 900 2.2rem/1 var(--display);
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- features */
.feature { padding: 22px; transition: border-color 0.2s, background 0.2s; }
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--surface-2); color: #c9c2ff; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.quote { font: 600 clamp(1.2rem, 2.2vw, 1.6rem)/1.45 var(--body); color: #fff; border-left: 3px solid var(--violet); padding-left: 22px; margin: 0 0 18px; }
.quote-by { color: var(--muted); font-size: 0.92rem; padding-left: 25px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- updates */
.update { display: flex; flex-direction: column; gap: 10px; }
.update .tag { align-self: flex-start; font: 700 0.7rem/1 var(--display); letter-spacing: 0.16em; padding: 6px 10px; border-radius: 999px; background: rgba(139, 92, 246, 0.16); color: #c7b6ff; }
.update h3 { margin: 0; }
.update ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.update ul li { margin-bottom: 4px; }
.update .more { margin-top: auto; font-weight: 600; }

/* ---------------------------------------------------------------- VIP */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { text-align: center; padding: 28px 24px; display: flex; flex-direction: column; }
.tier .name { font: 900 1.5rem/1 var(--display); letter-spacing: 0.12em; margin: 4px 0 10px; }
.tier .price { font: 800 2.4rem/1 var(--display); margin: 8px 0 2px; }
.tier .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.tier .ticks { text-align: left; margin-bottom: 26px; }
.tier .btn { margin-top: auto; }
.tier.bronze .name { color: var(--bronze); }
.tier.silver .name { color: var(--silver); }
.tier.gold .name { color: var(--gold); }
.tier.featured { border: 1px solid transparent; background:
  linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
  var(--brand-gradient) border-box; transform: scale(1.04); box-shadow: 0 24px 60px rgba(139, 92, 246, 0.28); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--brand-gradient);
  font: 800 0.68rem/1 var(--display); letter-spacing: 0.16em; color: #fff; white-space: nowrap; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.5); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .tier.featured { transform: none; order: -1; } }

/* ---------------------------------------------------------------- discord band */
.band { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--border);
  background: radial-gradient(600px 300px at 0% 0%, rgba(88, 101, 242, 0.35), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(255, 71, 102, 0.22), transparent 70%), var(--bg-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin-bottom: 8px; }
.band p { color: var(--muted); margin: 0; max-width: 560px; }

/* ---------------------------------------------------------------- page head (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border);
  background: radial-gradient(700px 260px at 15% 0%, rgba(77, 141, 255, 0.14), transparent 70%), radial-gradient(700px 260px at 85% 0%, rgba(255, 71, 102, 0.1), transparent 70%); }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0; }

/* ---------------------------------------------------------------- docs (rules, notes, legal) */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.toc a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 0.93rem; border-left: 2px solid transparent; }
.toc a:hover { color: #fff; background: var(--surface); }
.toc a.active { color: #fff; border-left-color: var(--violet); background: var(--surface); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #d3d1ea; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: #fff; }
.prose code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.1em 0.4em; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.callout { border: 1px solid rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.08); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.4em; color: #d9d0ff; }
.rule-num { font: 800 0.8rem/1 var(--display); color: var(--violet); margin-right: 8px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--border); } }

/* release notes */
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-top: 22px; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: 700 0.85rem/1 var(--body); padding: 10px 14px; border-radius: 9px; cursor: pointer; }
.lang-switch[hidden], .lang-switch button[hidden] { display: none; }
.lang-switch button[aria-pressed='true'] { background: var(--surface-2); color: #fff; box-shadow: inset 0 -2px 0 var(--violet); }
.note { margin-bottom: 22px; }
.note h2 { font-size: 1.25rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.note h2 .build { font: 700 0.72rem/1 var(--display); letter-spacing: 0.12em; color: #c7b6ff; background: rgba(139, 92, 246, 0.16); padding: 6px 9px; border-radius: 999px; }
.note ul { margin: 0; padding-left: 1.2em; }
.note li { color: #d3d1ea; margin-bottom: 0.5em; }
[dir='rtl'] .note ul { padding-left: 0; padding-right: 1.2em; }
[dir='rtl'].prose, [dir='rtl'] .prose { font-family: 'Heebo', 'Noto Sans Arabic', sans-serif; }
.load-more { margin-top: 10px; }

/* ---------------------------------------------------------------- store */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--online); }
.store-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 0.92rem/1 var(--body); padding: 11px 16px; border-radius: 999px; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected='true'] { color: #fff; border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--brand-gradient) border-box; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; gap: 24px; }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s; }
.product:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product .media { aspect-ratio: 3 / 4; background: #120f26; overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%; }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product:hover .media img { transform: scale(1.04); }
.product .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { margin: 0; font-size: 1.05rem; }
.product .price { font: 800 1.35rem/1.1 var(--display); }
.product .price small { font: 500 0.8rem var(--body); color: var(--muted); }
.product .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.product .actions .btn { flex: 1; min-height: 42px; padding: 0 0.9em; font-size: 0.9rem; }
.product.featured { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--brand-gradient) border-box; box-shadow: 0 18px 50px rgba(139, 92, 246, 0.3); }
@media (min-width: 760px) { .product.featured { transform: translateY(-10px); } .product.featured:hover { transform: translateY(-14px); } }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 420px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* cart button + drawer + dialog */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--crime); color: #fff; font: 800 0.75rem/22px var(--body); text-align: center; }
.cart-count[hidden] { display: none; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 80; background: #0c0a1b; border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer header h2 { font-size: 1.1rem; margin: 0; }
.drawer .lines { flex: 1; overflow: auto; padding: 12px 20px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.line .t { font-weight: 600; }
.line .p { color: var(--muted); font-size: 0.88rem; }
.drawer footer { padding: 18px 20px 22px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.fine { color: var(--faint); font-size: 0.8rem; margin: 0; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
dialog { border: 1px solid var(--border-strong); border-radius: 20px; padding: 0; background: #0d0b1d; color: var(--text); width: min(860px, 100% - 24px); max-height: calc(100% - 24px); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
dialog::backdrop { background: rgba(3, 2, 10, 0.75); backdrop-filter: blur(4px); }
.dlg { display: grid; grid-template-columns: 300px 1fr; }
.dlg .media img { width: 100%; height: 100%; object-fit: cover; }
.dlg .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.dlg .desc { color: #d3d1ea; }
.dlg .desc ul { padding-left: 1.2em; }
.dlg .close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 720px) { .dlg { grid-template-columns: 1fr; } .dlg .media { max-height: 300px; overflow: hidden; } }
.modal-sm { width: min(480px, 100% - 24px); }
.modal-sm .body { padding: 28px; }
.copy-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.copy-row input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); border-radius: 10px; padding: 0 12px; font: 500 0.9rem var(--body); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: #1a1733; border: 1px solid var(--border-strong); box-shadow: var(--shadow); transition: 0.2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; background: rgba(0, 0, 0, 0.25); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 700 0.75rem/1 var(--display); letter-spacing: 0.2em; color: var(--muted); margin: 6px 0 14px; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #cfcde8; }
.foot a:hover { color: #fff; }
.foot p { color: var(--muted); font-size: 0.92rem; }
.legal-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Sign in with Cfx.re */
.account { position: relative; }
.account-btn { min-height: 42px; padding: 0 0.9em; font-size: 0.9rem; gap: 0.45em; }
.account-btn.is-in { border-color: rgba(39, 224, 122, 0.45); background: rgba(39, 224, 122, 0.08); }
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 14px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: #0f0d22; box-shadow: var(--shadow); display: grid; gap: 10px; z-index: 60; }
.account-menu[hidden] { display: none; }
.account-who { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .account-btn span { display: none; }
  .account-btn { padding: 0 0.75em; }
}

/* ---------------------------------------------------------------- my purchases (account/) */
.mine-msg { max-width: 640px; }
.mine-msg p { color: var(--muted); }
.mine-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.mine-stat { display: grid; gap: 4px; }
.mine-stat b { font-size: 1.5rem; }
.mine-stat span, .mine-stat a { color: var(--muted); font-size: 0.92rem; }
.mine-stat.tier-bronze b { color: #e09a5f; }
.mine-stat.tier-silver b { color: #dfe7ea; }
.mine-stat.tier-gold b { color: var(--gold); }
.mine-list { display: grid; gap: 10px; }
.mine-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.mine-main { min-width: 0; }
.mine-label { font-weight: 600; overflow-wrap: anywhere; }
.mine-when { color: var(--faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.mine-chip { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.mine-chip.is-ready { color: var(--online); border-color: rgba(39, 224, 122, 0.45); background: rgba(39, 224, 122, 0.08); }
.mine-chip.is-on { color: #7fb2ff; border-color: rgba(77, 141, 255, 0.45); background: rgba(77, 141, 255, 0.08); }
.mine-chip.is-off { color: #ff6b81; border-color: rgba(255, 71, 102, 0.4); background: rgba(255, 71, 102, 0.07); }
.mine-foot { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
@media (max-width: 560px) {
  .mine-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
