/* ==========================================================================
   ModVault — storefront design system
   Dark technical marketplace: graphite surfaces, molten accent, HUD details.
   Colours are tokens; admin-configured accents override --accent/--accent-2.
   ========================================================================== */

:root {
  --bg: #06070a;
  --bg-2: #0a0c11;
  --surface-1: #0d1016;
  --surface-2: #11151d;
  --surface-3: #171c26;
  --surface-4: #1e2431;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #eceef3;
  --text-2: #a9afbd;
  --text-3: #6f7688;
  --accent: #ff7a1a;
  --accent-rgb: 255, 122, 26;
  --accent-ink: #120700;
  --accent-2: #38d6ff;
  --accent-2-rgb: 56, 214, 255;
  --success: #2fd47a;
  --warning: #ffb21a;
  --danger: #ff4d6d;
  --info: #38d6ff;

  --font-display: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --chamfer: 10px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 0 28px -4px rgba(var(--accent-rgb), 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(var(--accent-2-rgb), 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-color: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 700; border-radius: var(--radius-sm); transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Background stack (layers 1–5) ---------- */
.bg-stack { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 75%);
}
.bg-circuit {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M0 64h48l16 16h64l16-16h48M64 80v64l-16 16v96M144 64V0M192 64l32 32v64h32M128 256v-48l32-32h48'/%3E%3Ccircle cx='48' cy='64' r='2.5'/%3E%3Ccircle cx='144' cy='64' r='2.5'/%3E%3Ccircle cx='224' cy='160' r='2.5'/%3E%3Ccircle cx='160' cy='176' r='2.5'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: opacity; animation: breathe 14s ease-in-out infinite; }
.bg-glow-a { width: 520px; height: 520px; left: -160px; top: 60px; background: rgba(var(--accent-rgb), 0.16); }
.bg-glow-b { width: 460px; height: 460px; right: -140px; top: 280px; background: rgba(var(--accent-2-rgb), 0.1); animation-delay: -7s; }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.6; } }
.bg-off .bg-canvas { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.container-tight { max-width: 560px; }
main { display: block; min-height: 60vh; }
.section { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.section-sm { padding-block: clamp(28px, 4vw, 48px); }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--grid-gap, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); text-transform: uppercase; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: uppercase; }
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.05rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0.01em; }
.accent { color: var(--accent); }
.accent-2 { color: var(--accent-2); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8); }
.eyebrow .idx { color: var(--accent); }
.text-gradient { background: linear-gradient(92deg, #fff 10%, #ffd0ad 45%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kbd, kbd { font: 500 0.75rem/1 var(--font-mono); padding: 3px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--text-2); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-3); --btn-fg: var(--text); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  font: 600 0.84rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, filter 0.2s;
  white-space: nowrap; user-select: none; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-3); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  --btn-bg: linear-gradient(180deg, #ff9142, var(--accent) 55%, #e8630a); --btn-fg: var(--accent-ink); --btn-bd: transparent;
  background: var(--btn-bg); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 200, 150, 0.25) inset, 0 12px 30px -10px rgba(var(--accent-rgb), 0.75);
}
.btn-primary:hover { filter: brightness(1.08) saturate(1.05); box-shadow: 0 0 0 1px rgba(255, 220, 190, 0.35) inset, 0 14px 40px -8px rgba(var(--accent-rgb), 0.9); }
.btn-outline { --btn-bg: rgba(255, 255, 255, 0.02); --btn-bd: var(--line-3); }
.btn-outline:hover { --btn-bd: rgba(var(--accent-rgb), 0.7); color: #fff; box-shadow: inset 0 0 20px -6px rgba(var(--accent-rgb), 0.35); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; clip-path: none; border-radius: var(--radius-sm); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.05); }
.btn-signal { --btn-bg: rgba(var(--accent-2-rgb), 0.1); --btn-fg: var(--accent-2); --btn-bd: rgba(var(--accent-2-rgb), 0.4); }
.btn-danger { --btn-bg: rgba(255, 77, 109, 0.12); --btn-fg: #ff8aa0; --btn-bd: rgba(255, 77, 109, 0.4); }
.btn-success { --btn-bg: rgba(47, 212, 122, 0.12); --btn-fg: #6ff0a8; --btn-bd: rgba(47, 212, 122, 0.4); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 0.72rem; --chamfer: 7px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 0.92rem; --chamfer: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; clip-path: none; border-radius: var(--radius-sm); }
.btn[disabled], .btn.is-loading { opacity: 0.55; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); transition: color 0.2s, gap 0.2s; }
.link-arrow:hover { color: var(--accent); gap: 12px; }

/* ---------- Icons ---------- */
.icon { display: inline-block; vertical-align: -0.2em; width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.92), rgba(6, 7, 10, 0.72));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent); opacity: 0.6; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand img { max-height: 34px; width: auto; }
.brand-name { font: 700 1.1rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.brand-name b { color: var(--accent); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { position: relative; padding: 10px 14px; font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-search {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; min-width: 220px;
  color: var(--text-3); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.88rem; transition: border-color 0.2s, color 0.2s;
}
.header-search:hover { border-color: var(--line-2); color: var(--text-2); }
.header-search .kbd { margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--text-2); border: 1px solid transparent; background: none; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 10px/16px var(--font-mono); text-align: center; box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8); }
.currency-select { height: 40px; padding: 0 28px 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9afbd' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font: 500 0.78rem/1 var(--font-mono); color: var(--text-2); cursor: pointer; }
.currency-select option { background: var(--surface-2); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-2-rgb), 0.25)); border: 1px solid var(--line-2); font: 700 0.75rem/1 var(--font-display); letter-spacing: 0.05em; color: #fff; }
.menu-toggle { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; z-index: 60;
  background: rgba(15, 18, 25, 0.98); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.16s, transform 0.16s var(--ease);
}
.dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-2); background: none; border: 0; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); animation: fade 0.2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface-1); border-left: 1px solid var(--line-2); padding: 18px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; animation: slideIn 0.25s var(--ease); }
.drawer-panel nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-bottom: 1px solid var(--line); font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1024px) {
  .header-search { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .header-search span, .header-search .kbd { display: none; }
}
@media (max-width: 860px) {
  .main-nav, .header-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-grid; }
}

/* Announcement bar */
.announce { position: relative; z-index: 51; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.12)); border-bottom: 1px solid var(--line); font-size: 0.85rem; text-align: center; padding: 8px var(--gutter); color: var(--text); }
.announce a { color: var(--accent); font-weight: 600; margin-left: 6px; }

/* ---------- Search overlay (command palette) ---------- */
.palette { position: fixed; inset: 0; z-index: 120; display: none; padding: 10vh 16px 16px; }
.palette.is-open { display: block; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, 0.72); backdrop-filter: blur(6px); animation: fade 0.15s; }
.palette-box { position: relative; max-width: 680px; margin: 0 auto; background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-2), 0 0 80px -20px rgba(var(--accent-rgb), 0.35); overflow: hidden; animation: pop 0.18s var(--ease); }
@keyframes pop { from { transform: translateY(-8px) scale(0.985); opacity: 0; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; height: 62px; background: none; border: 0; outline: none; font-size: 1.08rem; }
.palette-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 4px; font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.palette-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); }
.palette-item.is-active, .palette-item:hover { background: rgba(var(--accent-rgb), 0.1); }
.palette-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; color: var(--text-3); }
.palette-item .t { font-weight: 600; }
.palette-item .s { font-size: 0.82rem; color: var(--text-3); }
.palette-empty { padding: 36px 16px; text-align: center; color: var(--text-3); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--text-3); }

/* ---------- Surfaces ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)), var(--surface-1);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card-pad { padding: clamp(18px, 2.5vw, 28px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card-body { padding: 20px; }
/* HUD corner ticks */
.hud { position: relative; }
.hud::before, .hud::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: rgba(var(--accent-rgb), 0.75); border-style: solid; transition: width 0.25s var(--ease), height 0.25s var(--ease); }
.hud::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: var(--radius); }
.hud::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--radius); }
.panel-chamfer { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 4px; font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); white-space: nowrap; }
.chip-accent { color: #ffc49b; background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.35); }
.chip-signal { color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.08); border-color: rgba(var(--accent-2-rgb), 0.3); }
.chip-success { color: #6ff0a8; background: rgba(47, 212, 122, 0.1); border-color: rgba(47, 212, 122, 0.35); }
.chip-danger { color: #ff8aa0; background: rgba(255, 77, 109, 0.1); border-color: rgba(255, 77, 109, 0.35); }
.chip-warn { color: #ffd27a; background: rgba(255, 178, 26, 0.1); border-color: rgba(255, 178, 26, 0.35); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.status { --c: #8b93a7; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.pulse::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.rating { display: inline-flex; align-items: center; gap: 6px; font: 600 0.82rem/1 var(--font-mono); color: #ffd27a; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; fill: #ffb21a; }
.stars svg.off { fill: rgba(255, 255, 255, 0.15); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.label { font: 600 0.78rem/1.2 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.label .req { color: var(--accent); margin-left: 3px; }
.label .opt { color: var(--text-3); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.help { font-size: 0.82rem; color: var(--text-3); }
.help a { color: var(--accent-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: rgba(0, 0, 0, 0.35); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(var(--accent-rgb), 0.8); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16); background: rgba(0, 0, 0, 0.45); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.14); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9afbd' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.select option { background: var(--surface-2); }
.input-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { clip-path: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.field-error { font-size: 0.82rem; color: #ff8aa0; display: flex; gap: 6px; align-items: center; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.93rem; color: var(--text-2); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--line-3); border-radius: 5px; background: rgba(0, 0, 0, 0.35); display: grid; place-items: center; transition: 0.15s; cursor: pointer; }
.check input[type='radio'] { border-radius: 50%; }
.check input:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type='radio']:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-4); border: 1px solid var(--line-2); position: relative; transition: 0.2s; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: 0.2s var(--ease); }
.switch input:checked { background: rgba(var(--accent-rgb), 0.3); border-color: rgba(var(--accent-rgb), 0.7); }
.switch input:checked::after { transform: translateX(18px); background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9); }
.file-drop { position: relative; display: grid; place-items: center; gap: 6px; padding: 22px; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--radius); background: rgba(0, 0, 0, 0.25); color: var(--text-2); transition: 0.2s; cursor: pointer; }
.file-drop:hover, .file-drop.is-drag { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.05); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .file-name { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }

/* Option cards (plans, networks) */
.option-grid { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.option:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.035); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; transition: 0.18s; }
.option:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.85); background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.02)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 10px 30px -15px rgba(var(--accent-rgb), 0.6); }
.option:has(input:checked) .radio { border-color: var(--accent); }
.option:has(input:checked) .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.option .opt-title { font: 600 1rem/1.2 var(--font-display); letter-spacing: 0.04em; }
.option .opt-sub { font-size: 0.82rem; color: var(--text-3); }
.option .opt-price { margin-left: auto; text-align: right; }
.option .opt-price b { display: block; font: 700 1.2rem/1 var(--font-display); }
.option .opt-price s { font-size: 0.8rem; color: var(--text-3); }
.option .opt-tag { position: absolute; top: -10px; left: 50px; }
.option.is-disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Alerts ---------- */
.alert { --c: var(--info); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--surface-1)); font-size: 0.93rem; }
.alert .icon { color: var(--c); margin-top: 2px; }
.alert-success { --c: var(--success); }
.alert-error, .alert-danger { --c: var(--danger); }
.alert-warning { --c: var(--warning); }
.flash-stack { position: fixed; z-index: 130; right: 16px; top: calc(var(--header-h) + 12px); display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow-2); animation: toastIn 0.35s var(--ease); background: color-mix(in srgb, var(--c) 10%, #0e1118); }
.flash-stack .alert.is-leaving { animation: toastOut 0.3s forwards; }
.alert-close { margin-left: auto; background: none; border: 0; color: var(--text-3); padding: 0 2px; font-size: 1.2rem; line-height: 1; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

/* ---------- Breadcrumbs / section heads ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 0.74rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 12px; }
.section-head p { margin: 10px 0 0; color: var(--text-2); max-width: 56ch; }
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.page-head .h1 { margin-top: 14px; }
.page-head .lead { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 22px; white-space: pre-line; }
.hero h1 .hl { color: var(--accent); text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.45); }
.hero .lead { margin-top: 22px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-search { margin-top: 30px; max-width: 540px; position: relative; }
.hero-search .input { min-height: 56px; padding-left: 50px; padding-right: 110px; font-size: 1rem; background: rgba(8, 10, 14, 0.75); backdrop-filter: blur(6px); }
.hero-search > .icon { position: absolute; z-index: 1; left: 18px; top: 18px; color: var(--text-3); pointer-events: none; }
.hero-search .btn { position: absolute; right: 6px; top: 6px; min-height: 44px; }
.hero-stats { margin-top: 36px; display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.stat b { display: block; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--font-display); }
.stat span { display: block; margin-top: 8px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; perspective: 1400px; }
.hv-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), 0.28); animation: spin 80s linear infinite; }
.hv-ring.r2 { inset: 16%; border-style: solid; border-color: rgba(255, 255, 255, 0.06); animation-duration: 120s; animation-direction: reverse; }
.hv-ring.r3 { inset: 0; border: 1px solid rgba(var(--accent-2-rgb), 0.12); border-left-color: rgba(var(--accent-2-rgb), 0.6); animation-duration: 24s; }
.hv-ring::after { content: ''; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hv-stack { position: absolute; inset: 14% 18%; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-18deg); transition: transform 0.6s var(--ease); }
.hv-card { position: absolute; width: 58%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--surface-3); transition: transform 0.6s var(--ease); }
.hv-card img { width: 100%; height: 100%; object-fit: cover; }
.hv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75)); }
.hv-card .hv-label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font: 700 1rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.hv-card .hv-label small { display: block; margin-top: 4px; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--accent); }
.hv-card.c1 { left: 0; top: 10%; transform: translateZ(-60px) rotate(-8deg); opacity: 0.75; }
.hv-card.c2 { right: 0; top: 0; transform: translateZ(-20px) rotate(7deg); opacity: 0.85; }
.hv-card.c3 { left: 21%; top: 22%; transform: translateZ(40px); box-shadow: var(--shadow-2), 0 0 60px -10px rgba(var(--accent-rgb), 0.55); border-color: rgba(var(--accent-rgb), 0.5); }
.hero-visual:hover .hv-stack { transform: rotateX(4deg) rotateY(-8deg); }
.hv-hud { position: absolute; font: 500 0.66rem/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; border: 1px solid var(--line-2); background: rgba(8, 10, 14, 0.75); backdrop-filter: blur(6px); border-radius: 6px; }
.hv-hud b { color: var(--success); font-weight: 600; }
.hv-hud.h1 { left: 0; bottom: 14%; }
.hv-hud.h2 { right: 2%; top: 8%; }
.hv-hud.h2 b { color: var(--accent); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-visual { max-width: 420px; order: -1; margin-bottom: -10px; } }
@media (max-width: 560px) { .hero-visual { max-width: 320px; } .hv-hud { display: none; } }
.scanlines::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }

/* ---------- Game cards ---------- */
.games-grid { --min: 220px; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr)); }
@media (max-width: 520px) { .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --min: 0; gap: 12px; } }
.game-card {
  --gc: var(--accent);
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: saturate(0.9) brightness(0.92); }
.game-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 7, 10, 0) 35%, rgba(6, 7, 10, 0.65) 62%, rgba(6, 7, 10, 0.96)); }
.game-card::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); transition: box-shadow 0.3s; }
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gc) 60%, transparent); box-shadow: var(--shadow-2), 0 24px 60px -24px color-mix(in srgb, var(--gc) 70%, transparent); }
.game-card:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.game-card:hover::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 45%, transparent); }
.gc-top { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.gc-count { font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; background: rgba(6, 7, 10, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.gc-count b { color: var(--gc); }
.gc-fav { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 7, 10, 0.6); border: 1px solid var(--line-2); color: var(--text-2); backdrop-filter: blur(6px); transition: 0.2s; }
.gc-fav:hover, .gc-fav.is-on { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.6); }
.gc-fav.is-on svg { fill: var(--accent); }
.gc-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 18px; }
.gc-title { font: 700 clamp(1.05rem, 1.6vw, 1.3rem)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
.gc-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.gc-meta .chip { height: 20px; font-size: 0.6rem; padding: 0 6px; background: rgba(6, 7, 10, 0.6); }
.gc-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gc); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--ease), opacity 0.3s, margin 0.3s; margin-top: 0; }
.game-card:hover .gc-cta, .game-card:focus-visible .gc-cta { max-height: 24px; opacity: 1; margin-top: 14px; }
@media (hover: none) { .gc-cta { max-height: 24px; opacity: 1; margin-top: 12px; } }

/* ---------- Product cards ---------- */
.products-grid { --min: 270px; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr)); }
.product-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)), var(--surface-1);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--shadow-2), 0 20px 50px -25px rgba(var(--accent-rgb), 0.6); }
.pc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 16, 22, 0.9)); }
.pc-badges { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pc-badges .chip { background: rgba(6, 7, 10, 0.75); backdrop-filter: blur(6px); }
.pc-wish { position: absolute; z-index: 2; top: 10px; right: 10px; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.pc-brand { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.pc-brand b { color: var(--accent-2); font-weight: 500; }
.pc-title { font: 700 1.12rem/1.2 var(--font-display); letter-spacing: 0.01em; }
.pc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pc-desc { font-size: 0.88rem; color: var(--text-2); }
.pc-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line-2); }
.price { font: 700 1.35rem/1 var(--font-display); letter-spacing: 0.01em; }
.price small { font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; display: block; margin-bottom: 6px; }
.price-local { display: block; margin-top: 4px; font: 500 0.76rem/1 var(--font-mono); color: var(--text-3); }
.price s { font-size: 0.8rem; color: var(--text-3); margin-left: 6px; font-weight: 500; }

/* Brand cards */
.brand-card { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); transition: 0.25s var(--ease); }
.brand-card:hover { border-color: rgba(var(--accent-2-rgb), 0.45); transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(var(--accent-2-rgb), 0.6); }
.brand-logo { width: 56px; height: 56px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line-2); font: 700 1.1rem/1 var(--font-display); color: var(--accent-2); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Category tiles */
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); overflow: hidden; transition: 0.25s var(--ease); }
.cat-tile::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 70%); transition: 0.4s; }
.cat-tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); color: var(--accent); }
.cat-tile h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cat-tile .count { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }

/* Tutorial cards */
.tut-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface-1); border: 1px solid var(--line); transition: 0.25s var(--ease); }
.tut-card:hover { border-color: rgba(var(--accent-2-rgb), 0.4); transform: translateY(-2px); }
.tut-media { aspect-ratio: 16 / 8; background: var(--surface-3); position: relative; overflow: hidden; }
.tut-media img { width: 100%; height: 100%; object-fit: cover; }
.tut-media .play { position: absolute; inset: 0; display: grid; place-items: center; }
.tut-media .play span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 7, 10, 0.7); border: 1px solid var(--line-3); }
.tut-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.tut-body h3 { font-size: 1.02rem; line-height: 1.25; }
.tut-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(var(--accent-2-rgb), 0.6); background: radial-gradient(circle at 30% 30%, rgba(var(--accent-2-rgb), 0.12), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 10px, transparent 10px 20px); }

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.4); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); font: 500 1.1rem/1 var(--font-mono); color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text-2); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { background: var(--surface-1); padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.trust-item .ti-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.35); color: var(--accent); background: rgba(var(--accent-rgb), 0.07); }
.trust-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* Marquee strip */
.ticker { border-block: 1px solid var(--line); background: rgba(10, 12, 16, 0.6); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 14px 0; animation: ticker 50s linear infinite; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::before { content: '◆'; color: var(--accent); font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Game page ---------- */
.game-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero-bg { position: absolute; inset: 0; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.game-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 10, 0.96) 25%, rgba(6, 7, 10, 0.55) 70%, rgba(6, 7, 10, 0.75)), linear-gradient(180deg, transparent 40%, var(--bg)); }
.game-hero .container { position: relative; padding-block: 48px 40px; display: flex; gap: 32px; align-items: flex-end; }
.game-poster { width: 168px; flex: none; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-3); box-shadow: var(--shadow-2), 0 0 50px -12px rgba(var(--accent-rgb), 0.5); }
.game-poster img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .game-poster { display: none; } .game-hero { min-height: 300px; } }
.brand-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-tab { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); transition: 0.2s; }
.brand-tab:hover { color: var(--text); border-color: var(--line-3); }
.brand-tab.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 24px -8px rgba(var(--accent-rgb), 0.8); }
.brand-tab .n { font: 500 0.7rem/1 var(--font-mono); opacity: 0.7; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .select, .toolbar .input { min-height: 40px; width: auto; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 3.5vw, 44px); align-items: start; }
@media (max-width: 1080px) { .product-layout { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: 12px; }
.gallery-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.gallery-stage img, .gallery-stage video, .gallery-stage iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.gallery-stage .stage-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 7, 10, 0.65); border: 1px solid var(--line-2); color: #fff; opacity: 0; transition: 0.2s; }
.gallery-stage:hover .stage-btn, .stage-btn:focus-visible { opacity: 1; }
.stage-btn.prev { left: 12px; }
.stage-btn.next { right: 12px; }
.stage-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 150px 14px 18px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)); font-size: 0.88rem; color: var(--text-2); pointer-events: none; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-thumb { position: relative; flex: none; width: 116px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-3); padding: 0; opacity: 0.6; transition: 0.2s; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px -4px rgba(var(--accent-rgb), 0.8); }
.gallery-thumb .vid { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2, 3, 5, 0.94); display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.is-open { display: flex; animation: fade 0.2s; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }

.buy-box { position: sticky; top: calc(var(--header-h) + 20px); }
.buy-box .card-pad > * + * { margin-top: 18px; }
.buy-title { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.08 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.spec-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--text-3); font: 500 0.72rem/1.6 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.spec-row dd { margin: 0; text-align: right; font-weight: 500; }
.total-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.total-line .price { font-size: 2rem; }
.guarantee { display: grid; gap: 10px; font-size: 0.85rem; color: var(--text-2); }
.guarantee div { display: flex; gap: 10px; align-items: center; }
.guarantee .icon { color: var(--success); width: 18px; height: 18px; }

.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(6, 7, 10, 0.88); backdrop-filter: blur(12px); border-block: 1px solid var(--line); margin-block: 36px 0; }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 16px 14px; font: 600 0.76rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); border-bottom: 2px solid transparent; transition: 0.2s; }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.pd-section { padding-block: 44px 8px; }
.pd-section > .eyebrow { margin-bottom: 14px; }
.pd-section h2 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); }
.feature .fi { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); font: 700 0.75rem/1 var(--font-mono); }
.changelog { position: relative; display: grid; gap: 0; }
.changelog::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--line) 30%); }

/* Prose (markdown) */
.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; max-width: 74ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.8em; margin-bottom: 0.2em; }
.prose h2 { font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.02em; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: 0; }
.prose a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-2-rgb), 0.4); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--accent); }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.prose ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 32px; height: 28px; display: grid; place-items: center; border-radius: 6px; font: 600 0.75rem/1 var(--font-mono); color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.prose code { font-family: var(--font-mono); font-size: 0.86em; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--line); color: #ffd0ad; }
.prose pre { padding: 16px 18px; border-radius: var(--radius); background: #05060a; border: 1px solid var(--line-2); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; color: #d6dbe6; }
.prose blockquote { margin: 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line-2); }
.prose table { font-size: 0.92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); font: 600 0.75rem/1.4 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.prose hr { margin: 2em 0; }
.callout { --c: var(--info); display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 7%, var(--surface-1)); color: var(--text-2); }
.callout-icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #06070a; font: 800 0.8rem/1 var(--font-mono); }
.callout-body > * + * { margin-top: 0.5em; }
.callout-title { display: block; color: var(--text); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.callout-tip { --c: var(--success); }
.callout-warning { --c: var(--warning); }
.callout-danger { --c: var(--danger); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-btn { margin-block: 4px; }

/* Reviews */
.review { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review-head { display: flex; gap: 12px; align-items: center; }
.rating-summary { display: flex; gap: 24px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); }
.rating-summary .big { font: 700 3rem/1 var(--font-display); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: rgba(255, 255, 255, 0.2); }
.star-input label svg { width: 28px; height: 28px; fill: currentColor; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffb21a; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } .checkout-layout .summary { order: -1; } }
.step-block { padding: clamp(18px, 2.4vw, 26px); }
.step-block + .step-block { border-top: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.4); font: 700 0.8rem/1 var(--font-mono); color: var(--accent); }
.step-title h2 { font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; }
.summary .sum-product { display: flex; gap: 14px; align-items: center; }
.summary .sum-product img { width: 76px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); flex: none; }
.sum-lines { display: grid; gap: 10px; font-size: 0.93rem; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines .disc { color: #6ff0a8; }
.sum-total { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 16px; border-top: 1px dashed var(--line-3); }
.sum-total .price { font-size: 1.9rem; }
.net-logo { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 0.6rem/1 var(--font-mono); color: #06070a; }
.net-logo.bep20 { background: linear-gradient(135deg, #f3ba2f, #d99a0b); }
.net-logo.trc20 { background: linear-gradient(135deg, #ff4b4b, #c4161c); color: #fff; }
.net-logo.wallet { background: linear-gradient(135deg, var(--accent), #c45200); }

/* ---------- Invoice ---------- */
.invoice { max-width: 980px; margin-inline: auto; }
.invoice-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; }
@media (max-width: 820px) { .invoice-grid { grid-template-columns: minmax(0, 1fr); } }
.invoice-qr { padding: 36px 28px; display: grid; justify-items: center; align-content: start; gap: 26px; border-right: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.08), transparent 70%); }
@media (max-width: 820px) { .invoice-qr { border-right: 0; border-bottom: 1px solid var(--line); } }
.qr-frame { position: relative; padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(var(--accent-rgb), 0.5); }
.qr-frame img { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-frame .net-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 4px solid #fff; }
.countdown { position: relative; width: 112px; height: 112px; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 5; }
.countdown .track { stroke: var(--surface-4); }
.countdown .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.7)); }
.countdown .cd-text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.countdown .cd-text b { display: block; font: 700 1.4rem/1 var(--font-mono); }
.countdown .cd-text small { display: block; margin-top: 4px; font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.countdown.is-low .bar { stroke: var(--danger); }
.invoice-main { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; align-content: start; }
.copy-field { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.copy-field .cf-val { flex: 1; min-width: 0; padding: 14px 16px; font: 500 0.95rem/1.4 var(--font-mono); word-break: break-all; }
.copy-field.big .cf-val { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.copy-field.big .cf-val .tail { color: var(--accent); text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6); }
.copy-field button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-left: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); transition: 0.2s; }
.copy-field button:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.copy-field button.is-copied { color: var(--success); }
.pay-state { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); }
.radar { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid rgba(var(--accent-2-rgb), 0.4); }
.radar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--accent-2-rgb), 0.55), transparent 30%); animation: spin 1.8s linear infinite; }
.radar::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.pay-steps { display: grid; gap: 10px; counter-reset: ps; font-size: 0.9rem; color: var(--text-2); }
.pay-steps li { list-style: none; counter-increment: ps; display: flex; gap: 12px; }
.pay-steps li::before { content: counter(ps); flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-3); font: 600 0.7rem/1 var(--font-mono); color: var(--text); }
.success-burst { display: grid; place-items: center; gap: 14px; padding: 40px 20px; text-align: center; }
.success-burst .ok { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: rgba(47, 212, 122, 0.12); border: 1px solid rgba(47, 212, 122, 0.5); color: var(--success); box-shadow: 0 0 50px -6px rgba(47, 212, 122, 0.6); animation: pop 0.4s var(--ease); }
.success-burst .ok svg { width: 36px; height: 36px; stroke-width: 2.4; }

/* ---------- Order tracker ---------- */
.tracker { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); position: relative; }
.tracker::before { content: ''; position: absolute; top: 17px; left: calc(100% / var(--steps, 4) / 2); right: calc(100% / var(--steps, 4) / 2); height: 2px; background: var(--surface-4); }
.tracker .progress { position: absolute; top: 17px; left: calc(100% / var(--steps, 4) / 2); height: 2px; background: linear-gradient(90deg, var(--accent), #ffb27a); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7); width: calc((100% - 100% / var(--steps, 4)) * var(--p, 0)); transition: width 0.8s var(--ease); }
.t-step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 6px; }
.t-dot { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface-4); color: var(--text-3); font: 700 0.75rem/1 var(--font-mono); transition: 0.3s; }
.t-step.is-done .t-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.t-step.is-current .t-dot { background: var(--bg); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12), 0 0 24px rgba(var(--accent-rgb), 0.6); }
.t-step.is-current .t-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.t-label { font: 600 0.74rem/1.25 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.t-step.is-done .t-label, .t-step.is-current .t-label { color: var(--text); }
.t-time { font: 500 0.66rem/1 var(--font-mono); color: var(--text-3); }
@media (max-width: 600px) {
  .tracker { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tracker::before, .tracker .progress { display: none; }
  .t-step { grid-template-columns: 36px 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 14px; row-gap: 2px; }
  .t-step .t-dot { grid-row: span 2; }
}
.side-state { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c, var(--warning)) 40%, transparent); background: color-mix(in srgb, var(--c, var(--warning)) 8%, var(--surface-1)); }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-dot { margin-top: 5px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--c, var(--accent)); background: var(--bg); box-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); }
.tl-item .tl-title { font-weight: 600; }
.tl-item .tl-note { margin-top: 4px; font-size: 0.9rem; color: var(--text-2); }
.tl-item .tl-time { font: 500 0.72rem/1.5 var(--font-mono); color: var(--text-3); }

/* Delivery blocks */
.delivery { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), 0.35); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 60%), var(--surface-1); }
.delivery.is-off { border-color: var(--line); background: var(--surface-1); opacity: 0.75; }
.delivery-head { display: flex; align-items: center; gap: 14px; }
.delivery-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.35); color: var(--accent); }
.key-box { display: flex; align-items: stretch; border-radius: var(--radius-sm); border: 1px dashed rgba(var(--accent-rgb), 0.55); background: rgba(0, 0, 0, 0.45); overflow: hidden; }
.key-box code { flex: 1; min-width: 0; padding: 14px 16px; font: 600 1rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: #ffd8b8; word-break: break-all; }
.key-box code.is-hidden { filter: blur(6px); user-select: none; }
.key-box button { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 16px; border: 0; border-left: 1px dashed rgba(var(--accent-rgb), 0.35); background: transparent; color: var(--text-2); font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.key-box button:hover { color: var(--accent); }

/* Thread */
.thread { display: grid; gap: 14px; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; max-width: 86%; }
.msg.is-mine { margin-left: auto; grid-template-columns: minmax(0, 1fr) 36px; }
.msg.is-mine .avatar { order: 2; }
.msg-bubble { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.is-mine .msg-bubble { border-radius: 14px 4px 14px 14px; background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.3); }
.msg.is-staff .msg-bubble { border-color: rgba(var(--accent-2-rgb), 0.3); }
.msg.is-internal .msg-bubble { background: repeating-linear-gradient(135deg, rgba(255, 178, 26, 0.06) 0 8px, transparent 8px 16px), var(--surface-2); border-color: rgba(255, 178, 26, 0.35); }
.msg.is-system { grid-template-columns: 1fr; max-width: 100%; text-align: center; }
.msg.is-system .msg-bubble { background: none; border: 1px dashed var(--line-2); font-size: 0.85rem; color: var(--text-2); border-radius: 999px; padding: 8px 16px; justify-self: center; }
.msg-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 0.78rem; color: var(--text-3); }
.msg-meta b { color: var(--text); font-weight: 600; }
.msg-body { white-space: pre-wrap; word-wrap: break-word; font-size: 0.94rem; }
.msg-attach { margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--accent-2); }
.composer { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-1); }
.composer .textarea { min-height: 84px; background: transparent; border: 0; padding: 4px; box-shadow: none; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-block: 32px 72px; }
@media (max-width: 900px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); }
.side-nav .sn-user { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text-2); transition: 0.15s; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.side-nav a.is-active { background: rgba(var(--accent-rgb), 0.1); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a .count { margin-left: auto; font: 600 0.7rem/1 var(--font-mono); color: var(--accent); }
@media (max-width: 900px) {
  .side-nav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .side-nav .sn-user { display: none; }
  .side-nav a { flex: none; }
  .side-nav a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
}
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 18px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); display: grid; gap: 10px; }
.tile .t-k { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; }
.tile .t-v { font: 700 1.7rem/1 var(--font-display); }
.tile.is-accent { border-color: rgba(var(--accent-rgb), 0.4); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 70%), var(--surface-1); }

/* Tables (responsive) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); }
.table { font-size: 0.92rem; }
.table th { position: sticky; top: 0; text-align: left; padding: 12px 16px; font: 600 0.7rem/1.3 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { position: relative; }
.row-link a.cover::after { content: ''; position: absolute; inset: 0; }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .table-cards td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .table-cards td::before { content: attr(data-label); font: 500 0.68rem/1.6 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
  .table-cards td.num { text-align: right; }
}

/* Empty state */
.empty { display: grid; justify-items: center; gap: 12px; padding: clamp(36px, 6vw, 64px) 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.01); }
.empty .e-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-3); background: var(--surface-1); }
.empty h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.empty p { color: var(--text-2); max-width: 46ch; margin: 0; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 28px; font: 500 0.8rem/1 var(--font-mono); color: var(--text-3); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; padding: 12px 14px; background: none; border: 0; border-bottom: 2px solid transparent; font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Help center ---------- */
.help-hero { position: relative; text-align: center; padding-block: clamp(48px, 8vw, 100px) clamp(36px, 5vw, 56px); }
.help-hero .h1 { margin-top: 16px; }
.help-search { position: relative; max-width: 680px; margin: 28px auto 0; }
.help-search .input { min-height: 62px; padding-left: 54px; font-size: 1.05rem; border-radius: var(--radius); background: rgba(8, 10, 14, 0.8); }
.help-search > .icon { position: absolute; z-index: 1; left: 20px; top: 21px; color: var(--accent); pointer-events: none; }
.help-suggest { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.help-suggest a { font-size: 0.82rem; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; transition: 0.2s; }
.help-suggest a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { order: -1; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; padding: 16px; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 6px 10px; font-size: 0.86rem; color: var(--text-3); border-left: 2px solid transparent; margin-left: -18px; padding-left: 16px; transition: 0.15s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc a.l3 { padding-left: 28px; font-size: 0.82rem; }
.search-result { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-1); transition: 0.2s; }
.search-result:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.search-result mark { background: rgba(var(--accent-rgb), 0.25); color: #fff; padding: 0 2px; border-radius: 2px; }
.type-tag { font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; height: fit-content; white-space: nowrap; }
.type-game { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.type-product { color: #ffd27a; background: rgba(255, 178, 26, 0.08); border: 1px solid rgba(255, 178, 26, 0.3); }
.type-brand { color: #c7a2ff; background: rgba(160, 110, 255, 0.08); border: 1px solid rgba(160, 110, 255, 0.3); }
.type-tutorial { color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.08); border: 1px solid rgba(var(--accent-2-rgb), 0.3); }
.type-faq { color: #6ff0a8; background: rgba(47, 212, 122, 0.08); border: 1px solid rgba(47, 212, 122, 0.3); }
.helpful { display: flex; gap: 10px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-1); flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-pad { padding: clamp(24px, 4vw, 36px); }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .h2 { margin-top: 14px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-2); }
.otp-input { text-align: center; font: 600 1.6rem/1 var(--font-mono); letter-spacing: 0.5em; padding-left: calc(14px + 0.5em); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-3); font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 12, 17, 0.6), #05060a); }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.footer-about p { color: var(--text-2); font-size: 0.92rem; margin-top: 16px; max-width: 40ch; }
.footer-col h3 { font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-3); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.socials { display: flex; gap: 6px; margin-top: 18px; }

/* ---------- Errors / maintenance ---------- */
.error-page { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.error-code { font: 700 clamp(5rem, 18vw, 11rem)/0.9 var(--font-display); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.7); text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.35); position: relative; }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 1px rgba(var(--accent-2-rgb), 0.5); clip-path: inset(0 0 60% 0); animation: glitch 3.2s steps(2) infinite; }
.glitch::after { -webkit-text-stroke-color: rgba(255, 77, 109, 0.5); clip-path: inset(55% 0 0 0); animation-delay: -1.1s; }
@keyframes glitch { 0%, 90%, 100% { transform: none; } 92% { transform: translate(-4px, 1px); } 95% { transform: translate(3px, -2px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Utility spacing */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.w-full { width: 100%; }
.hide { display: none !important; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 641px) { .show-sm { display: none !important; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
