/* ==========================================================
   Clean light premium — storefront + admin design system
   ========================================================== */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --ink: #0E1424;
  --ink-2: #3A4256;
  --muted: #6B7489;
  --line: #E6E9F0;
  --line-2: #D9DEE8;

  --accent: #F26B1D;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFF1E8;
  --accent-hover: #DB5A10;

  --ok: #0F9F6E;   --ok-soft: #E7F7F0;
  --warn: #B4690E; --warn-soft: #FFF4E2;
  --bad: #D92D20;  --bad-soft: #FDECEA;
  --info: #2F6FEB; --info-soft: #EAF1FE;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .04), 0 24px 48px -16px rgba(16, 24, 40, .16);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.page { padding: 24px 0 calc(var(--tabbar-h) + 32px); min-height: 70vh; }
@media (min-width: 900px) { .page { padding: 36px 0 64px; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #FF8F3F, #F26B1D); color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(242,107,29,.7);
}
.brand img { height: 34px; width: auto; border-radius: 8px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { background: var(--surface-2); color: var(--ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 14px;
}
.wallet-chip .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
}
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar a.active { color: var(--accent); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font: 650 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -10px rgba(242,107,29,.9); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E2638; color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: #FBD9D5; color: var(--bad); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; display: block; font-weight: 500; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 500 15px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #A0A7B8; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.input-group { display: flex; gap: 10px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
@media (min-width: 640px) { .card-pad { padding: 24px; } }
.card-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- alerts / pills ---------- */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 550; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: #08694A; border-color: #BFE9D7; }
.alert-bad { background: var(--bad-soft); color: #A1221A; border-color: #F6C9C4; }
.alert-warn { background: var(--warn-soft); color: #8A4E06; border-color: #F6DFB8; }
.alert-info { background: var(--info-soft); color: #1F4FB4; border-color: #CFE0FC; }
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-muted { background: #EEF0F4; color: var(--muted); }
.announce { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(1200px 400px at 110% -20%, rgba(242,107,29,.16), transparent 60%),
    radial-gradient(600px 300px at -10% 120%, rgba(15,159,110,.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); padding: 28px 22px; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .hero { padding: 48px 48px; } }
.hero p.lead { margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 520px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.hero-trust svg { width: 16px; height: 16px; color: var(--ok); }
.search-wrap { position: relative; margin-top: 22px; max-width: 460px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-wrap input { padding-left: 42px; height: 50px; border-radius: 14px; box-shadow: var(--shadow-sm); }

.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-lg); scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banners img { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: var(--r-lg); scroll-snap-align: start; }
@media (min-width: 900px) { .banners { grid-auto-columns: calc(50% - 6px); } }

/* ---------- game grid ---------- */
.game-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }
.game-card { display: block; color: var(--ink); }
.game-card:hover { color: var(--ink); }
.game-thumb {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card:hover .game-thumb { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-name { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-pub { font-size: 12px; color: var(--muted); font-weight: 500; }
.badge-hot { position: absolute; top: 8px; left: 8px; background: rgba(14,20,36,.82); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .04em; }

.steps { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }

/* ---------- game page ---------- */
.game-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .game-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } }
.game-hero { display: flex; gap: 16px; align-items: center; }
.game-hero img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); flex: none; }
@media (min-width: 640px) { .game-hero img { width: 92px; height: 92px; border-radius: 22px; } }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-title .n { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.ign-result { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.ign-result.ok { background: var(--ok-soft); color: #08694A; }
.ign-result.bad { background: var(--bad-soft); color: #A1221A; }
.ign-result.warn { background: var(--warn-soft); color: #8A4E06; }

.packs { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack {
  position: relative; text-align: left; cursor: pointer; padding: 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.pack:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pack.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(242,107,29,.12); }
.pack-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.pack-price { font-weight: 800; font-size: 16px; }
.pack-mrp { font-size: 12px; color: var(--muted); text-decoration: line-through; font-weight: 600; margin-left: 6px; }
.pack-badge { position: absolute; top: -9px; right: 10px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; }
.pack-badge.combo { background: var(--accent); }
.pack-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.pack.selected .pack-check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.6 10l1.2-1.2 2.4 2.4 6-6 1.2 1.2z'/%3E%3C/svg%3E") center/16px no-repeat; }

.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; background: var(--surface); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt.disabled { opacity: .55; cursor: not-allowed; }
.pay-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.pay-icon svg { width: 20px; height: 20px; color: var(--ink-2); }

.summary { position: sticky; top: 84px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.sum-line span:first-child { color: var(--muted); }
.sum-line span:last-child { font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.sum-total { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; font-size: 16px; }
.sum-total span:last-child { font-size: 22px; font-weight: 800; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 44;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16,24,40,.18);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
}
.buybar .amt { font-size: 20px; font-weight: 800; }
@media (min-width: 960px) { .buybar { display: none; } }
@media (max-width: 959px) { .summary .buy-desktop { display: none; } .summary { position: static; } }

/* ---------- lists / tables ---------- */
.list { display: grid; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--ink); }
.list-item:first-child { border-top: 0; }
a.list-item:hover { background: var(--surface-2); color: var(--ink); }
.list-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); flex: none; background: var(--surface-2); }
.list-title { font-weight: 700; font-size: 14px; }
.list-sub { font-size: 12.5px; color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: #B6BCCB; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FBFCFE; }
.table input[type=text], .table input[type=number] { height: 36px; border-radius: 9px; font-size: 14px; padding: 0 10px; }

/* ---------- wallet ---------- */
.balance-card {
  border-radius: var(--r-xl); padding: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #2D49F0 0%, #1A2BA8 100%);
  box-shadow: 0 20px 40px -20px rgba(45,73,240,.7);
}
.balance-card .label { font-size: 13px; opacity: .8; font-weight: 600; }
.balance-card .amount { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chip { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: 650 14px var(--font); color: var(--ink); cursor: pointer; }
.amount-chip:hover { border-color: var(--accent); color: var(--accent); }
.txn-amt.credit { color: var(--ok); font-weight: 750; }
.txn-amt.debit { color: var(--ink); font-weight: 750; }

/* ---------- order detail ---------- */
.timeline { display: grid; gap: 0; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; z-index: 1; }
.tl.done .tl-dot { border-color: var(--ok); background: var(--ok); }
.tl.done .tl-dot::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.tl.now .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl.fail .tl-dot { border-color: var(--bad); background: var(--bad); }
.tl-title { font-weight: 700; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 400px at 50% -10%, rgba(242,107,29,.12), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 24px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-title { font-size: 24px; font-weight: 800; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); margin-top: 6px; margin-bottom: 20px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.input-prefix { position: relative; }
.input-prefix b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 650; color: var(--ink-2); font-size: 15px; }
.input-prefix input { padding-left: 50px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 calc(var(--tabbar-h) + 28px); margin-top: 40px; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.footer a { color: var(--ink-2); font-weight: 600; }

/* ==========================================================
   Admin
   ========================================================== */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 1000px) { .admin { grid-template-columns: 248px minmax(0, 1fr); } }
.side { background: var(--ink); color: #C9CFDD; padding: 18px 14px; display: none; }
@media (min-width: 1000px) { .side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.side.open { display: block; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; overflow-y: auto; }
.side .brand { color: #fff; padding: 6px 8px 18px; }
.side .brand:hover { color: #fff; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6E7891; padding: 14px 10px 6px; }
.side a.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #C9CFDD; font-weight: 600; font-size: 14px; }
.side a.nav-link svg { width: 18px; height: 18px; opacity: .85; }
.side a.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.admin-main { padding: 22px 16px 48px; max-width: 1240px; width: 100%; }
@media (min-width: 700px) { .admin-main { padding: 28px 28px 60px; } }
.menu-btn { display: inline-flex; }
@media (min-width: 1000px) { .menu-btn { display: none; } }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { padding: 18px; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; height: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 12px; border-radius: 10px; font-weight: 650; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.thumb-sm { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
details.raw summary { cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 600; }
details.raw pre { max-height: 240px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.backdrop { position: fixed; inset: 0; background: rgba(14,20,36,.45); z-index: 55; }