@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg0: #07080f;
  --bg1: #0c0e1a;
  --card: rgba(22, 26, 46, 0.72);
  --card-solid: #14182b;
  --card-hover: rgba(32, 38, 68, 0.88);
  --text: #f2f4ff;
  --muted: #9aa3c7;
  --faint: #5c658a;
  --accent: #7c6cff;
  --accent2: #22d3ee;
  --accent3: #a78bfa;
  --pink: #f472b6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --border: rgba(124, 108, 255, 0.18);
  --border-strong: rgba(124, 108, 255, 0.35);
  --glow: 0 0 40px rgba(124, 108, 255, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 108, 255, 0.28), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(34, 211, 238, 0.16), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(244, 114, 182, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
}
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.orb-a { width: 280px; height: 280px; background: #7c6cff; top: 10%; left: -60px; }
.orb-b { width: 220px; height: 220px; background: #22d3ee; bottom: 15%; right: -40px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

a { color: var(--accent2); text-decoration: none; transition: color .15s; }
a:hover { color: #67e8f9; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* ─── Header ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text) !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  font-size: 0.95rem;
}
.brand span.grad {
  background: linear-gradient(90deg, #fff, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a.nav-link {
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all .15s;
}
.nav a.nav-link:hover {
  color: var(--text);
  background: rgba(124, 108, 255, 0.12);
}
.nav .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav .user-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), var(--pink));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #6d5efc 0%, #4f46e5 45%, #0891b2 100%);
  background-size: 160% 160%;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  color: var(--text) !important;
}
.btn.secondary:hover {
  background: rgba(124, 108, 255, 0.15);
  box-shadow: none;
}
.btn.ok {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  color: #fff !important;
}
.btn.danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.28);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--muted) !important;
}
.btn.lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn.sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--border-strong); }
.card.flat { box-shadow: none; }
.card.glow {
  border-color: rgba(124, 108, 255, 0.4);
  box-shadow: var(--glow), var(--shadow);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 0.65rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.65rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 36rem; }

.grad-text {
  background: linear-gradient(105deg, #fff 10%, #a5b4fc 45%, #22d3ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Hero ─── */
.hero {
  padding: 2.5rem 0 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(124, 108, 255, 0.1);
  color: #c4b5fd;
}
.pill.live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.hero-panel {
  position: relative;
  padding: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(124,108,255,0.2), rgba(34,211,238,0.08) 50%, rgba(15,18,32,0.9));
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow), var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 70%);
  pointer-events: none;
}
.hero-panel h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.hero-panel .price-lg {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  background: linear-gradient(90deg, #fff, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 1.1rem;
}
.feature-list li {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.feature-list li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
  flex-shrink: 0;
}

/* ─── Stats ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.5rem 0 2rem;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat {
  text-align: center;
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.stat .num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; font-weight: 500; }

/* ─── Section ─── */
.section { margin: 2.25rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.45rem;
  margin: 0;
}
.section-head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ─── Pricing ─── */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}
.price-card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(165deg, rgba(124,108,255,0.22), rgba(20,24,43,0.95) 45%);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.15), var(--glow);
}
.price-card .ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #0a0a12;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 2.2rem;
  transform: rotate(35deg);
  text-transform: uppercase;
}
.price-card .plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.price-card .plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.25rem 0;
}
.price-card .plan-price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.price-card .plan-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; flex: 1; }
.price-card .btn { width: 100%; margin-top: auto; }

.free-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(120deg, rgba(16,185,129,0.12), rgba(22,26,46,0.8));
}
@media (max-width: 640px) {
  .free-card { grid-template-columns: 1fr; }
}

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent2);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}
.faq-item[open] .faq-body { border-top-color: var(--border); padding-top: 0.85rem; }

/* ─── Forms ─── */
.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.6rem;
}
.auth-card h1 { font-size: 1.55rem; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.field { margin-bottom: 0.95rem; }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 20, 0.75);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(124, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.15);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ─── Misc UI ─── */
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.15);
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag.ok { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.tag.warn { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.tag.free { background: rgba(34, 211, 238, 0.12); color: var(--accent2); }

.keybox {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(7, 10, 20, 0.85);
  border: 1px solid var(--border-strong);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  word-break: break-all;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 24px rgba(124, 108, 255, 0.08);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert.err { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); color: #fecdd3; }
.alert.ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); color: #a7f3d0; }
.alert.info { background: rgba(124, 108, 255, 0.12); border-color: rgba(124, 108, 255, 0.3); color: #c7d2fe; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
code { font-family: var(--mono); font-size: 0.85em; color: #c4b5fd; }

.countdown {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--accent2), var(--ok));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0;
}

.steps {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
}
.step-dot {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.step-dot.on {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--accent2);
  background: rgba(34, 211, 238, 0.08);
}
.step-dot.done {
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}

.key-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.key-item:last-child { border-bottom: 0; padding-bottom: 0; }

.pay-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.pay-row:last-child { border-bottom: 0; }
.pay-row .k { color: var(--muted); }
.pay-row .v { font-weight: 700; text-align: right; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.site-footer .links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Floating tip */
.float-tip {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: 280px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,108,255,0.95), rgba(8,145,178,0.9));
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  gap: 0.65rem;
  align-items: flex-start;
}
.float-tip.show { display: flex; }
.float-tip button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
}
.float-tip a { color: #fff !important; text-decoration: underline !important; }

/* Page title bar */
.page-hero {
  padding: 1.75rem 0 0.5rem;
  margin-bottom: 0.5rem;
}
.page-hero h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); }

/* ─── Game / mod catalog ─── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  color: inherit;
}
.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1e1b4b, #0f172a 60%, #164e63);
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
  background: linear-gradient(135deg, rgba(124,108,255,0.45), rgba(34,211,238,0.25));
}
.game-cover-fallback.lg {
  min-height: 220px;
  border-radius: 18px;
  font-size: 4rem;
}
.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 8, 15, 0.75);
  border: 1px solid rgba(124, 108, 255, 0.4);
  color: #c4b5fd;
  backdrop-filter: blur(8px);
}
.game-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.game-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.game-body .muted {
  font-size: 0.82rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--faint);
}
.game-meta span {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.mod-detail {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}
@media (max-width: 720px) {
  .mod-detail { grid-template-columns: 1fr; }
}
.mod-detail-cover {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card-solid);
}
.mod-detail-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ─── Admin panel ─── */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(22, 26, 46, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 64px;
  z-index: 40;
}
.admin-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.admin-tab:hover {
  color: var(--text);
  background: rgba(124, 108, 255, 0.1);
}
.admin-tab.on {
  color: #fff;
  background: linear-gradient(135deg, #6d5efc, #0891b2);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.admin-panel { display: none; }
.admin-panel.on { display: block; animation: adminIn .2s ease; }
@keyframes adminIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 900px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-tabs { border-radius: 16px; top: 56px; }
}
.admin-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.admin-stat .num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}
.admin-stat .lbl {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  font-weight: 500;
}
.admin-filters { margin-bottom: 1rem; }
.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}
.admin-table-wrap table { min-width: 640px; }
.admin-pre {
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  color: var(--muted);
  background: rgba(7, 10, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.admin-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.admin-price-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 20, 0.45);
}
.admin-price-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--accent2);
}
.admin-price-card .field { margin-bottom: 0.65rem; }
.admin-price-card .field:last-child { margin-bottom: 0; }
.wrap { max-width: min(var(--max), 1200px); }
body:has(.admin-tabs) .wrap { max-width: 1200px; }
