/* ============================================================
   ZP GAME SHOP - Neon violet design system
   Palette derived from the logo: deep violet + neon glow
   ============================================================ */
:root {
  --bg: #0a0518;
  --bg-2: #100a2a;
  --panel: rgba(24, 14, 56, 0.72);
  --panel-solid: #160e36;
  --line: rgba(139, 43, 246, 0.28);
  --line-strong: rgba(139, 43, 246, 0.55);

  --neon: #8b2bf6;          /* primary violet (logo) */
  --neon-2: #a855f7;
  --neon-soft: rgba(139, 43, 246, 0.16);
  --accent: #22d3ee;        /* electric cyan */
  --accent-2: #34f5c5;
  --pink: #ff3fd1;
  --gold: #ffd166;

  --text: #ece7ff;
  --muted: #a79fd0;
  --dim: #7c74ab;

  --ok: #34f5a0;
  --warn: #ffd166;
  --danger: #ff5c7a;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --nav-h: 66px;
  /* Gaming/tech type system: Chakra Petch for UI text, Saira for headings,
     Noto Sans Myanmar carries the Burmese glyphs (Latin falls back per char). */
  --font: 'Chakra Petch', 'Noto Sans Myanmar', 'Padauk', system-ui, sans-serif;
  --display: 'Saira', 'Noto Sans Myanmar', 'Padauk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* animated background glow orbs */
#bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% -5%, rgba(139, 43, 246, 0.35), transparent 60%),
    radial-gradient(520px 380px at 95% 12%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 115%, rgba(168, 85, 247, 0.22), transparent 65%),
    var(--bg);
  animation: glowShift 18s ease-in-out infinite alternate;
}
@keyframes glowShift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(-12deg) brightness(1.08); }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }

.container { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 28px 0 64px; }

.dim { color: var(--dim); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.small { font-size: 12.5px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ------------------------- navbar ------------------------- */
#navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 5, 24, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1180px, 100% - 32px);
  margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; box-shadow: 0 0 14px rgba(139, 43, 246, 0.75); }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  letter-spacing: 1.5px; color: #fff; text-transform: uppercase;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--neon-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a {
  color: var(--muted); padding: 8px 13px; border-radius: 9px;
  font-weight: 600; font-size: 14.5px; transition: 0.18s;
}
.nav-links a:hover { color: #fff; background: var(--neon-soft); text-shadow: none; }
.nav-links a.active {
  color: #fff; background: var(--neon-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 12px rgba(139, 43, 246, 0.35);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.balance-pill {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  color: var(--accent-2); padding: 7px 13px; border-radius: 999px;
  background: rgba(34, 245, 197, 0.08);
  border: 1px solid rgba(34, 245, 197, 0.35);
  box-shadow: 0 0 12px rgba(34, 245, 197, 0.25);
  white-space: nowrap;
}
.hamburger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 20px; border-radius: 9px; padding: 4px 10px; cursor: pointer;
}

.user-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); min-width: 180px; padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(139, 43, 246, 0.3);
  display: flex; flex-direction: column; z-index: 60;
}
.dropdown a, .dropdown button {
  background: none; border: 0; color: var(--text); text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: var(--font);
}
.dropdown a:hover, .dropdown button:hover { background: var(--neon-soft); text-shadow: none; }
.dropdown button { color: var(--danger); }

.banner {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.16), rgba(255, 92, 122, 0.16));
  color: var(--warn); text-align: center; font-size: 13.5px;
  padding: 7px 12px; border-top: 1px solid rgba(255, 209, 102, 0.3);
}

/* ------------------------- buttons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 14.5px;
  padding: 10px 18px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  color: var(--text); background: rgba(139, 43, 246, 0.14);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-shadow: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--neon), #6d28d9);
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 43, 246, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.08);
}
.btn.primary:hover { box-shadow: 0 0 26px rgba(139, 43, 246, 0.85); }
.btn.accent {
  background: linear-gradient(135deg, #0891b2, #06b6d4); color: #04212a;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { background: var(--neon-soft); }
.btn.danger { background: rgba(255, 92, 122, 0.14); border-color: rgba(255, 92, 122, 0.5); color: #ffb3c2; }
.btn.danger:hover { background: rgba(255, 92, 122, 0.26); box-shadow: 0 0 16px rgba(255, 92, 122, 0.4); }
.btn.success { background: rgba(52, 245, 160, 0.13); border-color: rgba(52, 245, 160, 0.5); color: #9dffcf; }
.btn.success:hover { box-shadow: 0 0 16px rgba(52, 245, 160, 0.4); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }

/* ------------------------- forms ------------------------- */
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 6px; letter-spacing: 0.3px;
}
.field input, .field select, .field textarea, .search-box input {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: var(--font);
  color: var(--text); background: rgba(8, 4, 22, 0.75);
  border: 1px solid var(--line); border-radius: 11px; outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-box input:focus {
  border-color: var(--neon-2);
  box-shadow: 0 0 0 3px rgba(139, 43, 246, 0.22), 0 0 14px rgba(139, 43, 246, 0.35);
}
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
.field select option { background: var(--panel-solid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------- cards / panels ------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card.hover:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 26px rgba(139, 43, 246, 0.35);
  transform: translateY(-3px);
}
.card-title {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--neon-2);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.card-title .sub {
  font-family: var(--font); font-size: 12.5px; color: var(--dim);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}

/* ------------------------- hero ------------------------- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 46px 38px;
  background:
    linear-gradient(120deg, rgba(139, 43, 246, 0.24), rgba(10, 5, 24, 0.2) 55%),
    var(--panel);
  box-shadow: 0 0 44px rgba(139, 43, 246, 0.28);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(26px, 4vw, 42px);
  font-weight: 900; line-height: 1.15; letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 .glow {
  background: linear-gradient(90deg, var(--neon-2), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.7));
}
.hero p { color: var(--muted); margin-top: 12px; max-width: 56ch; font-size: 15.5px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-logo { justify-self: center; }
.hero-logo img {
  width: min(210px, 40vw); border-radius: 26px;
  box-shadow: 0 0 44px rgba(139, 43, 246, 0.85), 0 0 90px rgba(34, 211, 238, 0.25);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* ------------------------- section heads / search ------------------------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 34px 0 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display); font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase;
}
.search-box { position: relative; width: min(380px, 100%); }
.search-box input { padding-left: 40px; }
.search-box::before {
  content: '⌕'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--neon-2); font-size: 19px; pointer-events: none;
}

/* ------------------------- grids & product cards ------------------------- */
.grid { display: grid; gap: 16px; }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.product-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: 0.2s; cursor: pointer;
}
.product-card:hover {
  border-color: var(--line-strong); transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(139, 43, 246, 0.45);
}
.product-card .thumb {
  aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden;
  background: linear-gradient(140deg, #1c1046, #2a1470);
  display: grid; place-items: center;
}
.product-card .thumb img {
  width: 100%; height: 100%;
  /* Every stored picture is a 1:1 (1024x1024) frame, so it fills this square
     card exactly. A copy still in the previous wide frame only has blurred side
     bands trimmed by this crop - the artwork itself is never cut. */
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .name {
  font-weight: 700; font-size: 14.5px; line-height: 1.35; min-height: 39px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price {
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent-2);
  text-shadow: 0 0 10px rgba(52, 245, 197, 0.55);
}
.product-card .from { font-size: 11.5px; color: var(--dim); font-family: var(--font); font-weight: 500; }

/* ------------------------- tables ------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(139, 43, 246, 0.16); }
th {
  font-family: var(--display); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--neon-2); background: rgba(139, 43, 246, 0.1);
}
tbody tr { background: rgba(10, 5, 24, 0.35); transition: background 0.15s; }
tbody tr:hover { background: rgba(139, 43, 246, 0.1); }
tbody tr:last-child td { border-bottom: 0; }
td .btn.sm { margin: 2px; }

/* ------------------------- badges ------------------------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { color: #9dffcf; background: rgba(52, 245, 160, 0.12); border-color: rgba(52, 245, 160, 0.45); }
.badge.warn { color: #ffe1a1; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.45); }
.badge.danger { color: #ffb3c2; background: rgba(255, 92, 122, 0.12); border-color: rgba(255, 92, 122, 0.45); }
.badge.info { color: #a5f3ff; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.45); }
.badge.neutral { color: var(--muted); background: rgba(167, 159, 208, 0.1); border-color: rgba(167, 159, 208, 0.35); }
.badge.violet { color: #d7bbff; background: rgba(139, 43, 246, 0.16); border-color: rgba(139, 43, 246, 0.5); }

/* ------------------------- auth pages ------------------------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 160px);
  display: grid; place-items: center; padding: 30px 0;
}
.auth-card {
  width: min(430px, 100%); padding: 32px 28px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 22px; box-shadow: 0 0 44px rgba(139, 43, 246, 0.3);
  backdrop-filter: blur(14px);
}
.auth-card .logo-row { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card .logo-row img { width: 64px; border-radius: 15px; box-shadow: 0 0 20px rgba(139, 43, 246, 0.8); }
.auth-card h1 {
  font-family: var(--display); font-size: 20px; text-align: center;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px;
}
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ------------------------- tabs / pills ------------------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: rgba(139, 43, 246, 0.1); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; transition: 0.15s; font-family: var(--font);
}
.tab:hover { color: #fff; border-color: var(--line-strong); }
.tab.active {
  color: #fff; background: linear-gradient(135deg, var(--neon), #6d28d9);
  border-color: transparent; box-shadow: 0 0 16px rgba(139, 43, 246, 0.6);
}

/* ------------------------- stat cards ------------------------- */
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 43, 246, 0.4), transparent 70%);
}
.stat .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--dim); font-weight: 700;
}
.stat .value {
  font-family: var(--display); font-size: 26px; font-weight: 800; margin-top: 6px;
  color: #fff; text-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}
.stat .value.cyan { color: var(--accent-2); text-shadow: 0 0 16px rgba(52, 245, 197, 0.7); }
.stat .value.gold { color: var(--gold); text-shadow: 0 0 16px rgba(255, 209, 102, 0.6); }
.stat .value.pink { color: var(--pink); text-shadow: 0 0 16px rgba(255, 63, 209, 0.6); }

/* ------------------------- toasts ------------------------- */
#toast-root {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 36px));
}
.toast {
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 13px; padding: 13px 16px; font-size: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(139, 43, 246, 0.35);
  animation: toastIn 0.28s ease;
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.ok { border-color: rgba(52, 245, 160, 0.55); box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 20px rgba(52,245,160,.35); }
.toast.err { border-color: rgba(255, 92, 122, 0.6); box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 20px rgba(255,92,122,.4); }
.toast.warn { border-color: rgba(255, 209, 102, 0.55); }
.toast .x { margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------- modal ------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4, 2, 12, 0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn 0.2s ease;
}
.modal {
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 0 60px rgba(139, 43, 246, 0.5);
  animation: popIn 0.22s ease;
}
.modal h3 {
  font-family: var(--display); font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--neon-2); margin-bottom: 16px;
}
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------- product detail ------------------------- */
.product-layout { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.product-visual {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, #1c1046, #2a1470);
  box-shadow: 0 0 30px rgba(139, 43, 246, 0.4);
}
/* Same 1:1 shape as the stored picture, so nothing is cropped on the detail page. */
.product-visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.variation-list { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 4px; }
.variation-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(10, 5, 24, 0.5);
  transition: 0.15s; font-size: 14px;
}
.variation-item:hover { border-color: var(--line-strong); background: var(--neon-soft); }
.variation-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.4), inset 0 0 14px rgba(34, 211, 238, 0.08);
}
.variation-item .v-price { font-family: var(--display); font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.price-box {
  background: rgba(34, 211, 238, 0.07); border: 1px dashed rgba(34, 211, 238, 0.5);
  border-radius: 13px; padding: 14px 16px; margin: 14px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price-box .big {
  font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--accent-2);
  text-shadow: 0 0 18px rgba(52, 245, 197, 0.7);
}
.price-box .usd { font-size: 12.5px; color: var(--dim); }

/* ------------------------- wallet / orders ------------------------- */
.balance-hero {
  border-radius: var(--r-lg); padding: 26px;
  background: linear-gradient(135deg, rgba(139, 43, 246, 0.3), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 34px rgba(139, 43, 246, 0.35);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.balance-hero .amount {
  font-family: var(--display); font-size: clamp(28px, 5vw, 40px); font-weight: 900;
  color: #fff; text-shadow: 0 0 24px rgba(168, 85, 247, 0.9);
}
.method-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); background: rgba(10, 5, 24, 0.55);
  border-radius: 11px; padding: 9px 14px; margin: 0 8px 8px 0;
}
.method-chip b { color: var(--accent); font-size: 13.5px; }
.method-chip span { color: var(--muted); font-size: 13px; }

.order-card {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: var(--r-md); padding: 15px 17px; margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center;
}
.order-card .o-title { font-weight: 700; font-size: 15px; }
.order-card .o-meta { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.order-card .o-price { font-family: var(--display); font-weight: 700; color: var(--accent-2); }

/* ------------------------- skeleton loading ------------------------- */
.page-loading { display: grid; place-items: center; gap: 14px; padding: 70px 0; color: var(--muted); }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(139, 43, 246, 0.25); border-top-color: var(--neon-2);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 18px rgba(139, 43, 246, 0.5);
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, rgba(139, 43, 246, 0.1) 25%, rgba(168, 85, 247, 0.25) 50%, rgba(139, 43, 246, 0.1) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------- grouped game cards ------------------------- */
.game-card .name { font-weight: 700; }
.game-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  color: var(--accent-2); background: rgba(34, 245, 197, 0.08);
  border: 1px solid rgba(34, 245, 197, 0.3);
}

/* ------------------------- package tiles ------------------------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack-tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 12px 13px; border-radius: var(--r-md); font-family: var(--font);
  background: rgba(139, 43, 246, 0.08); border: 1px solid var(--line);
  color: var(--text); transition: border 0.15s, background 0.15s, box-shadow 0.15s;
}
.pack-tile:hover {
  border-color: var(--line-strong); background: rgba(139, 43, 246, 0.16);
  box-shadow: 0 0 18px rgba(139, 43, 246, 0.35);
}
.pack-tile:disabled { opacity: 0.45; cursor: not-allowed; }
.pack-tile .p-name { font-size: 13.5px; font-weight: 600; }
.pack-tile .p-price { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-2); }
.pack-tile .p-na { font-size: 11.5px; color: var(--warn); }
.pack-tile.active {
  border-color: var(--accent-2);
  background: rgba(34, 245, 197, 0.14);
  box-shadow: 0 0 22px rgba(34, 245, 197, 0.32);
}

/* ------------------------- inline order panel ------------------------- */
.order-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.25);
}
.order-summary .os-name { font-weight: 700; font-size: 14.5px; }
.order-summary .os-price {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: var(--accent-2); text-align: right; white-space: nowrap;
}
.check-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 4px 0 14px; border-radius: var(--r-sm);
  background: rgba(167, 159, 208, 0.08); border: 1px dashed var(--line);
}
.check-box .ord-actions { width: 100%; margin-top: 4px; }
.ck { font-size: 13.5px; font-weight: 700; }
.ck-msg { font-size: 12.5px; color: var(--dim); }
.ck-ok { color: var(--ok); }
.ck-bad { color: var(--danger); }
.ck-warn { color: var(--warn); }
.ck-busy { color: var(--accent); }
.ck-muted { color: var(--muted); font-weight: 600; }
.ord-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ord-actions .btn { flex: 1 1 180px; }
.warn-text { color: var(--warn); }

/* ------------------------- admin: image preview ------------------------- */
.img-preview-box {
  width: min(220px, 100%); margin-bottom: 10px; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, #1c1046, #2a1470);
}
.img-preview-box img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }

/* ------------------------- pagination ------------------------- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.pager .info { color: var(--dim); font-size: 13.5px; }

/* ------------------------- admin ------------------------- */
.admin-layout { display: grid; grid-template-columns: 224px 1fr; gap: 20px; align-items: start; }
.admin-side {
  position: sticky; top: calc(var(--nav-h) + 14px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 4px;
}
.admin-side a {
  padding: 10px 13px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: 0.15s;
}
.admin-side a:hover { background: var(--neon-soft); color: #fff; text-shadow: none; }
.admin-side a.active {
  color: #fff; background: linear-gradient(90deg, rgba(139, 43, 246, 0.55), rgba(139, 43, 246, 0.15));
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.admin-side .side-label {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--dim); padding: 10px 13px 4px; font-weight: 800;
}
.admin-main { min-width: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); word-break: break-all; }

/* ------------------------- footer ------------------------- */
#footer { border-top: 1px solid var(--line); background: rgba(8, 4, 20, 0.8); margin-top: 40px; }
.footer-inner { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 26px 0; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--display); font-weight: 700; letter-spacing: 1px; }
.footer-brand img { border-radius: 8px; }
#footer p { color: var(--muted); font-size: 13.5px; margin-top: 7px; }

/* ------------------------- scrollbar ------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(10, 5, 24, 0.8); }
::-webkit-scrollbar-thumb { background: rgba(139, 43, 246, 0.55); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.8); }

/* ------------------------- responsive ------------------------- */
@media (max-width: 920px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-side .side-label { width: 100%; }
  .product-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-logo { order: -1; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(12, 6, 30, 0.97); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 16px 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  #login-link, #register-link { padding: 8px 12px; font-size: 13.5px; }
  .balance-pill { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .grid.products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .kv { grid-template-columns: 1fr; }
}







/* ============================================================
   CSP-safe utilities (CSP now sends style-src-attr 'none').
   Every former inline style="" in the SPA maps to one of these
   classes - never write style="..." attributes again.
   ============================================================ */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.accent-text { color: var(--accent); }
.accent2-text { color: var(--accent-2); }
.ok-text { color: var(--ok); }
.danger-text { color: var(--danger); }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.fx-row-12 { display: flex; align-items: center; gap: 12px; }
.fx-wrap-16 { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-wrap-10 { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-wrap-8 { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-click-7 { display: flex; gap: 7px; align-items: center; cursor: pointer; }
.fs-13 { font-size: 13px; }
.fs-18 { font-size: 18px; }
.span-all { grid-column: 1 / -1; }
.u-square { aspect-ratio: 1 / 1; }
.h-18 { height: 18px; }
.h-54 { height: 54px; }
.h-84 { height: 84px; }
.h-120 { height: 120px; }
.h-180 { height: 180px; }
.h-200 { height: 200px; }
.h-240 { height: 240px; }
.h-54-mb10 { height: 54px; margin-bottom: 10px; }
.h-84-mb12 { height: 84px; margin-bottom: 12px; }
.bar-thumb { height: 16px; width: 60%; }
.mb-6 { margin-bottom: 6px; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: 6px; }
.list-18 { padding-left: 18px; line-height: 1.9; }
.tt-none { text-transform: none; }
.tt-upper2 { text-transform: uppercase; letter-spacing: 2px; }
.break-all { word-break: break-all; }
.toast.fade-out { opacity: 0; transition: opacity .3s; }

/* Deposit receipt (payment screenshot) shown in the review modal. */
.receipt-view {
  max-height: 62vh; overflow: auto; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(8, 4, 22, .6); padding: 6px;
}
.receipt-view img { display: block; width: 100%; height: auto; border-radius: 8px; }

