/* ======================================== */
/* Psaigameshop Design System                 */
/* Rebuilt from P Sai Game Store reference  */
/* ======================================== */

/* ======================================== */
/* TOKENS                                   */
/* ======================================== */

:root {
  --ink: #0B0A14;
  --ink-soft: #121020;
  --surface: #171426;
  --surface-2: #201C33;
  --surface-3: #2B2545;
  --paper: #F7F5FF;
  --muted: #AAA6BD;
  --line: rgba(255, 255, 255, 0.24);
  --violet: #9B5CFF;
  --violet-soft: #C7A9FF;
  --lime: #C8F64C;
  --lime-hover: #D8FF76;
  --cyan: #3CE0F1;
  --coral: #FF9B6A;
  --red: #FF6B6B;

  /* aliases kept for inline JS styles */
  --bg: var(--ink);
  --text: var(--paper);
  --green: var(--lime);
  --green-soft: rgba(200, 246, 76, 0.12);
  --orange: var(--coral);
  --orange-soft: rgba(255, 155, 106, 0.14);
  --blue: var(--cyan);
  --border: var(--line);
  --shadow: 5px 5px 0 rgba(200, 246, 76, 0.14);
  --transition: 0.2s ease;
  --scrollbar-thumb: #2B2545;
  --scrollbar-thumb-hover: #3A3160;
  --search-bg: rgba(255, 255, 255, 0.05);
  --search-bg-focus: rgba(255, 255, 255, 0.07);
  --game-img-bg: #242032;
  --btn-icon-color: var(--paper);
  --placeholder-color-1: #1D1832;
  --placeholder-color-2: #2B2545;
  --hero-title-gradient: linear-gradient(135deg, #FFFFFF 25%, #C8F64C);
}

[data-theme="light"] {
  --ink: #F4F2FA;
  --ink-soft: #ECE9F5;
  --surface: #FFFFFF;
  --surface-2: #F0EDF8;
  --surface-3: #E3DEF1;
  --paper: #16121F;
  --muted: #6E6885;
  --line: rgba(20, 12, 50, 0.30);
  --violet: #7C3AED;
  --violet-soft: #7C3AED;
  --lime: #84CC16;
  --lime-hover: #9BE33B;
  --cyan: #0891B2;
  --coral: #EA580C;
  --red: #DC2626;
  --shadow: 5px 5px 0 rgba(20, 12, 50, 0.15);
  --scrollbar-thumb: #D5CFE6;
  --scrollbar-thumb-hover: #B9B0D4;
  --search-bg: rgba(20, 12, 50, 0.05);
  --search-bg-focus: rgba(20, 12, 50, 0.07);
  --game-img-bg: #ECE8F6;
  --hero-title-gradient: linear-gradient(135deg, #16121F 35%, #7C3AED);
}

/* ======================================== */
/* RESET / BASE                             */
/* ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

body {
  font-family: 'DM Sans', 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

img { display: block; width: 100%; }
button { border: none; outline: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { -webkit-user-select: text; user-select: text; font-family: inherit; }
a { color: inherit; }

.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.app { min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: rgba(155, 92, 255, 0.35); color: #fff; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* ======================================== */
/* BUTTONS                                  */
/* ======================================== */

.btn {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active { transform: translate(2px, 2px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--lime {
  background: var(--lime);
  color: #0B0A14;
}

.btn--lime:hover:not(:disabled) {
  background: var(--lime-hover);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(200, 246, 76, 0.30);
}

.btn--primary {
  background: var(--violet);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: #AD75FF;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(155, 92, 255, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--violet);
  background: rgba(155, 92, 255, 0.12);
}

.btn--wide { width: 100%; }

/* small inline buy button */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--lime);
  color: #0B0A14;
  font-size: 0.74rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-buy:hover { background: var(--lime-hover); box-shadow: 0 8px 18px rgba(200, 246, 76, 0.25); }

/* ======================================== */
/* ICON BUTTON                              */
/* ======================================== */

.icon-button {
  position: relative;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #DFDBEA;
  font-size: 15px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--violet);
  background: rgba(155, 92, 255, 0.14);
  color: #fff;
}

/* theme toggle spin */
.theme-toggle i { transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }
.theme-toggle.switching i { transform: rotate(180deg) scale(0.6); opacity: 0; }

/* ======================================== */
/* SITE HEADER                              */
/* ======================================== */

.site-header {
  position: relative;
  z-index: 500;
  width: min(1260px, calc(100% - 32px));
  min-height: 76px;
  margin: 12px auto 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 104px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--search-bg);
}

.desktop-nav button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 14px;
  color: #C7C3D4;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .desktop-nav button { color: #6E6885; }

.desktop-nav button:hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.desktop-nav button.active { color: #0B0A14; background: var(--lime); }

[data-theme="light"] .desktop-nav button:hover { background: rgba(20, 12, 50, 0.05); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.desktop-nav + .header-actions { margin-left: 8px; }
.header-actions:last-child { margin-left: auto; }

/* menu toggle (mobile) */
.menu-toggle { display: none; }

/* mobile dropdown nav */
.mobile-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 32px));
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1D192D;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] .mobile-nav { background: #FFFFFF; }

.mobile-nav.open { display: block; animation: navIn 0.2s ease; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  color: #C7C3D4;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.18s ease;
}

[data-theme="light"] .mobile-nav button { color: #6E6885; }

.mobile-nav button:hover,
.mobile-nav button.active {
  background: rgba(155, 92, 255, 0.18);
  color: #fff;
}

[data-theme="light"] .mobile-nav button:hover,
[data-theme="light"] .mobile-nav button.active { color: var(--violet); }

.mobile-nav button i:last-child { font-size: 12px; opacity: 0.5; }

@media (max-width: 991px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header { gap: 10px; }
}

/* ======================================== */
/* NOTIFICATION BADGE                       */
/* ======================================== */

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--violet);
  box-shadow: 0 4px 12px rgba(155, 92, 255, 0.45);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ======================================== */
/* ANNOUNCEMENT BAR                         */
/* ======================================== */

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 18px;
  color: #D9CAFF;
  background: #241446;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.announcement i { color: var(--lime); }
.announcement span { color: var(--violet-soft); }

[data-theme="light"] .announcement {
  background: #EFE9FB;
  color: #5B21B6;
  border-bottom-color: rgba(20, 12, 50, 0.08);
}

[data-theme="light"] .announcement span { color: #7C3AED; }

/* ======================================== */
/* HOME HERO (open section, no card)        */
/* ======================================== */

.home-hero {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 22px 24px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--violet-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow i { color: var(--lime); }

.home-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 2px solid rgba(155, 92, 255, 0.45);
  border-radius: 8px;
  background: rgba(155, 92, 255, 0.12);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.hero-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans Myanmar', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 780px;
  color: var(--paper);
}

.hero-title-grad { color: var(--lime); }

.hero-text {
  margin-top: 12px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.hero-text strong { color: var(--paper); font-weight: 700; }
.hero-text-games { color: var(--lime); }

/* feature badges under hero */
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-perk i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 246, 76, 0.12);
  color: var(--lime);
  font-size: 10px;
  flex-shrink: 0;
}

/* ======================================== */
/* PRODUCT PAGE (game hero / server card)   */
/* ======================================== */

.game-hero .hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 8px;
}

.game-hero .hero-title-grad { overflow-wrap: anywhere; }

.game-hero .gh-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.server-selector {
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

[data-theme="light"] .server-selector { background: var(--surface-2); }

/* category chips */
.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.chip {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: transparent;
  color: #AAA5B9;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.chip:hover { border-color: var(--violet-soft); color: #fff; background: rgba(155, 92, 255, 0.08); }

.chip--selected {
  border-color: rgba(200, 246, 76, 0.55);
  background: rgba(200, 246, 76, 0.12);
  color: var(--lime);
}

[data-theme="light"] .chip { border-color: var(--line); color: var(--muted); }

/* ======================================== */
/* SEARCH BOX (standalone)                  */
/* ======================================== */

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 10px 0 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--search-bg);
  color: #90899F;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.22);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
}

.search-box input::placeholder { color: var(--muted); opacity: 0.55; }

.search-box > i { font-size: 13px; flex-shrink: 0; }

.search-clear {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.search-clear:hover { background: var(--surface-3); color: var(--paper); }

/* hero search (large) */
.search-box--hero {
  max-width: 560px;
  height: 52px;
  margin-top: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box--hero input { font-size: 0.9rem; }
.search-box--hero > i { font-size: 15px; color: var(--violet-soft); }

/* ======================================== */
/* STORE SECTIONS / BROWSE TABS             */
/* ======================================== */

.store-section {
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

/* two-column store layout: sticky sidebar + content */
.store-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto 0;
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  scroll-margin-top: 110px;
}

.store-layout--page { padding-bottom: 40px; }

.store-side {
  width: 252px;
  flex-shrink: 0;
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-block {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.side-block.catalog-toolbar { display: block; margin-bottom: 0; }

.store-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.store-content .store-section {
  width: 100%;
  margin: 16px 0 0;
}

.store-content > .catalog-head { margin-top: 6px; }

[data-theme="light"] .store-section,
[data-theme="light"] .side-block { background: var(--surface-2); }

.catalog-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.catalog-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.browse-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.browse-tabs::-webkit-scrollbar { display: none; }

.browse-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #BDB7CA;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.browse-tab:hover { border-color: var(--violet-soft); color: #fff; }

.browse-tab.active {
  border-color: var(--lime);
  background: var(--lime);
  color: #0B0A14;
  box-shadow: 3px 3px 0 rgba(200, 246, 76, 0.30);
}

.browse-tab--link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.browse-tab--link i { font-size: 11px; }

/* catalog heading */
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* sidebar variants */
.search-box--side {
  max-width: none;
  height: 44px;
  margin-top: 0;
}

.browse-tabs--side {
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  gap: 6px;
}

.browse-tabs--side .browse-tab {
  width: 100%;
  justify-content: flex-start;
}

.browse-tabs--side .browse-tab i:first-child {
  width: 16px;
  text-align: center;
  font-size: 0.7rem;
}

.browse-tabs--side .browse-tab--link { margin-left: 0; }
.browse-tabs--side .browse-tab--link .fa-arrow-right { margin-left: auto; }

.browse-tab .bt-count {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.08);
}

.browse-tab.active .bt-count { background: rgba(0, 0, 0, 0.14); }

.result-count {
  margin-left: auto;
  color: #AAA4B5;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ======================================== */
/* SECTION TITLES                           */
/* ======================================== */

.section-header { margin-bottom: 18px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: '';
  width: 6px;
  height: 0.85em;
  border-radius: 2px;
  background: var(--lime);
  flex-shrink: 0;
}

/* ======================================== */
/* GAME CARDS                               */
/* ======================================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #151321;
  border: 2px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
}

[data-theme="light"] .game-card { background: #FFFFFF; box-shadow: 4px 4px 0 rgba(20, 12, 50, 0.08); }

.game-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.game-card:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(200, 246, 76, 0.28); transition: transform 0.05s ease; }

.game-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--game-img-bg);
  flex-shrink: 0;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card:hover .game-image img { transform: scale(1.07); }

/* shimmer while loading */
.game-card.img-loading .game-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quick-view {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(10, 9, 18, 0.77);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.game-card:hover .quick-view { opacity: 1; transform: translateY(0); }

@media (hover: none) { .quick-view { display: none; } }

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 6px;
  color: #0B0A14;
  background: var(--lime);
  box-shadow: 3px 3px 0 rgba(200, 246, 76, 0.30);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.game-content {
  padding: 13px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-content h3 {
  font-family: 'Space Grotesk', 'Noto Sans Myanmar', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.3em;
  transition: color 0.2s ease;
}

[data-theme="light"] .game-content h3 { color: var(--paper); }

.game-card:hover .game-content h3 { color: var(--violet-soft); }
[data-theme="light"] .game-card:hover .game-content h3 { color: var(--violet); }

.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.game-bottom strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ======================================== */
/* SITE FOOTER                              */
/* ======================================== */

.site-footer {
  width: min(1220px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  align-items: center;
  gap: 30px;
  margin: 16px auto;
  padding: 18px 22px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: #8E889B;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand .brand-mark--footer { width: 52px; height: 52px; }

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
}

.footer-tag { margin: 2px 0 0; font-size: 0.7rem; color: var(--muted); }

/* admin contact section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #151321;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="light"] .footer-contact { background: #FFFFFF; box-shadow: 4px 4px 0 rgba(20, 12, 50, 0.08); }

.footer-contact:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.footer-contact-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact-label i { color: var(--lime); font-size: 0.72rem; }

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -2px -6px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
  transition: background 0.15s ease;
}

.footer-tg > i.fa-telegram { color: #2AABEE; font-size: 24px; }

.footer-tg-body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-tg-body b { font-size: 0.8rem; }
.footer-tg-body small { color: var(--muted); font-size: 0.66rem; font-weight: 600; }

.footer-tg-arrow { margin-left: 6px; color: var(--muted); font-size: 0.7rem; transition: transform 0.15s ease, color 0.15s ease; }

.footer-tg:hover { background: rgba(42, 171, 238, 0.12); }

.footer-tg:hover .footer-tg-arrow { transform: translateX(3px); color: #2AABEE; }

.site-footer small { font-size: 0.68rem; text-align: right; }

/* ======================================== */
/* PAGE HEAD (subpages)                     */
/* ======================================== */

.page-head {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head .page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #C7C3D4;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.back-link:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.25);
}

.page-body {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 60px;
  flex: 1;
}

.page-body--narrow { width: min(520px, calc(100% - 32px)); }
.page-body--wide { width: min(1020px, calc(100% - 32px)); }

/* ======================================== */
/* PANELS (cards on subpages)               */
/* ======================================== */

.panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.panel-title i { color: var(--lime); }

/* game header (product pages) */
.game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #151321;
  border: 2px solid var(--line);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .game-header { background: #FFFFFF; box-shadow: 4px 4px 0 rgba(20, 12, 50, 0.08); }

.game-header img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.game-header .gh-info { position: relative; z-index: 1; min-width: 0; }

.game-header .gh-eyebrow {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet-soft);
  font-weight: 800;
  margin-bottom: 3px;
}

.game-header .gh-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.game-header .gh-meta {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.game-header .gh-meta span { display: flex; align-items: center; gap: 5px; }
.game-header .gh-meta i { color: var(--lime); }

/* ======================================== */
/* SERVER / OPTION CHIPS                    */
/* ======================================== */

.server-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.server-chips::-webkit-scrollbar { display: none; }

.server-chip {
  flex-shrink: 0;
  padding: 10px 15px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.server-chip:hover { border-color: var(--violet-soft); color: var(--paper); }

.server-chip.active {
  background: var(--lime);
  color: #0B0A14;
  border-color: var(--lime);
  box-shadow: 0 8px 18px rgba(200, 246, 76, 0.22);
}

.server-chip .sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.server-chip.active .sc-dot { opacity: 1; }

/* ======================================== */
/* CATEGORY TABS (filter pills)             */
/* ======================================== */

.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  background: var(--surface);
  border-radius: 10px;
  border: 2px solid var(--line);
  scrollbar-width: none;
  position: sticky;
  top: 12px;
  z-index: 10;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cat-tab:hover { color: var(--paper); }

.cat-tab.active {
  background: var(--lime);
  color: #0B0A14;
  box-shadow: 0 8px 18px rgba(200, 246, 76, 0.22);
}

.cat-tab .ct-icon { font-size: 12px; width: 15px; text-align: center; }

.cat-tab .ct-count {
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.08);
}

.cat-tab.active .ct-count { background: rgba(0, 0, 0, 0.14); }

/* category section header */
.cat-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  padding: 0 2px;
}

.cat-section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cat-section-label { font-size: 0.85rem; font-weight: 700; }
.cat-section-count { font-size: 0.72rem; color: var(--muted); margin-left: auto; }

/* ======================================== */
/* ITEM LIST (denominations)                */
/* ======================================== */

.item-list { display: flex; flex-direction: column; gap: 8px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #151321;
  border: 2px solid var(--line);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
  animation: fadeUp 0.35s ease both;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="light"] .item-card { background: #FFFFFF; box-shadow: 4px 4px 0 rgba(20, 12, 50, 0.08); }

.item-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.item-card:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(200, 246, 76, 0.28);
}

.item-card .ic-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.item-card .ic-body { min-width: 0; flex: 1; }

.item-card .ic-name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ic-tag {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.item-card .ic-sub {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--muted);
}

.item-card .ic-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.item-card .ic-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--lime);
  white-space: nowrap;
}

.ic-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
}

/* ETA badge */
.eta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.eta-badge i { font-size: 9px; }
.eta-instant  { background: rgba(200, 246, 76, 0.10); color: var(--lime); }
.eta-fast     { background: rgba(200, 246, 76, 0.08); color: var(--lime); }
.eta-normal   { background: rgba(60, 224, 241, 0.08); color: var(--cyan); }
.eta-slow     { background: rgba(255, 155, 106, 0.08); color: var(--coral); }
.eta-unknown  { background: rgba(255, 255, 255, 0.05); color: var(--muted); }

/* ======================================== */
/* PACKAGE GALLERY (top-up tiles)           */
/* ======================================== */

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.package-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #151321;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="light"] .package-item { background: #FFFFFF; box-shadow: 4px 4px 0 rgba(20, 12, 50, 0.08); }

.package-item:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.package-item--selected {
  border-color: var(--lime);
  background: rgba(200, 246, 76, 0.10);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.package-item__visual {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: rgba(155, 92, 255, 0.14);
  color: var(--violet-soft);
  flex-shrink: 0;
}

.package-item--selected .package-item__visual {
  background: var(--lime);
  color: #0B0A14;
}

.package-item__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.package-item__price {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--lime);
}

.package-item__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.package-item__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 10px;
  display: none;
  place-items: center;
}

.package-item--selected .package-item__check { display: grid; }

/* ======================================== */
/* FORM FIELDS                              */
/* ======================================== */

.field { margin-bottom: 14px; }

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.field label .opt { font-weight: 400; opacity: 0.6; text-transform: none; letter-spacing: 0; }

.field .inp-wrap { position: relative; display: flex; align-items: center; }

.field .inp-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.field .inp-wrap input,
.field .inp-wrap select { padding-left: 40px; }

.field textarea { padding-left: 14px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.13);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.5; }

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23AAA6BD' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: rgba(20, 12, 50, 0.04); }

.field-hint { font-size: 0.68rem; color: var(--muted); margin-top: 5px; padding-left: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* verify result */
.verify-result {
  display: none;
  padding: 11px 14px;
  border-radius: 11px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  align-items: flex-start;
  gap: 8px;
}

.verify-result.show { display: flex; }
.verify-result.ok   { background: rgba(200, 246, 76, 0.07); color: var(--lime); border: 1px solid rgba(200, 246, 76, 0.14); }
.verify-result.fail { background: rgba(255, 107, 107, 0.07); color: var(--red); border: 1px solid rgba(255, 107, 107, 0.14); }
.verify-result.info { background: rgba(60, 224, 241, 0.07); color: var(--cyan); border: 1px solid rgba(60, 224, 241, 0.14); }

/* ======================================== */
/* BOTTOM SHEET                             */
/* ======================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 12px 22px 40px;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  background: var(--surface-3);
  border-radius: 3px;
  margin: 0 auto 20px;
}

.sheet .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(155, 92, 255, 0.13);
  color: var(--violet-soft);
}

.sheet h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sheet .sheet-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }

.sheet .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.sheet .price-row .pl { font-size: 0.8rem; color: var(--muted); }
.sheet .price-row .pv { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--lime); }

/* ======================================== */
/* STATUS PILLS                             */
/* ======================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--pending     { background: rgba(255, 155, 106, 0.12); color: var(--coral); }
.pill--pending_payment { background: rgba(255, 155, 106, 0.12); color: var(--coral); }
.pill--processing  { background: rgba(60, 224, 241, 0.10); color: var(--cyan); }
.pill--completed   { background: rgba(200, 246, 76, 0.10); color: var(--lime); }
.pill--approved    { background: rgba(200, 246, 76, 0.10); color: var(--lime); }
.pill--paid        { background: rgba(200, 246, 76, 0.10); color: var(--lime); }
.pill--failed      { background: rgba(255, 107, 107, 0.10); color: var(--red); }
.pill--rejected    { background: rgba(255, 107, 107, 0.10); color: var(--red); }
.pill--refunded    { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.pill--cancelled   { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.pill--neutral     { background: rgba(255, 255, 255, 0.07); color: var(--muted); }

/* ======================================== */
/* ORDER LIST                               */
/* ======================================== */

.order-card {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  margin-bottom: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.22);
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-info { min-width: 0; flex: 1; }

.order-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-meta { font-size: 0.74rem; color: var(--muted); margin-bottom: 2px; }
.order-price { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--lime); white-space: nowrap; }
.order-player { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }
.order-date { font-size: 0.66rem; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.order-date i { opacity: 0.5; }

/* mini order row (profile preview) */
.order-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  margin-bottom: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-mini:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.22);
}

.order-mini .om-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--lime);
}

.order-mini .om-body { flex: 1; min-width: 0; }

.order-mini .om-name {
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-mini .om-meta { font-size: 0.68rem; color: var(--muted); }
.order-mini .om-price { font-size: 0.8rem; font-weight: 800; color: var(--lime); white-space: nowrap; }

/* ======================================== */
/* PROFILE                                  */
/* ======================================== */

/* dashboard layout */
.profile-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-side {
  width: 264px;
  flex-shrink: 0;
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.profile-side .avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
  border-radius: 10px;
}

.side-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  margin: 12px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-email {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 2px 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-side .role-badge { align-self: flex-start; }

.side-balance {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0;
}

.side-nav { display: flex; flex-direction: column; gap: 6px; }

/* standalone links stacked under a side-nav (or each other) */
.side-nav + .side-link,
.side-block > .side-nav + .side-link,
.side-block > .side-link + .side-link { margin-top: 6px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--paper);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.side-link i:first-child { width: 18px; text-align: center; color: var(--lime); flex-shrink: 0; }

.side-link:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.22);
}

.side-link.active { background: var(--lime); border-color: var(--lime); color: #0B0A14; }
.side-link.active i:first-child { color: #0B0A14; }

.side-link--danger i:first-child { color: var(--red); }
.side-link--danger:hover { border-color: var(--red); box-shadow: 4px 4px 0 rgba(255, 107, 107, 0.25); }

.side-count {
  margin-left: auto;
  padding: 1px 7px;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
}

.side-link.active .side-count { border-color: #0B0A14; }

.side-orders-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.side-joined { margin-top: 14px; justify-content: center; }

.profile-views { flex: 1; min-width: 0; }
.profile-view .panel { margin-bottom: 0; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--lime);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.30);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0B0A14;
  flex-shrink: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-admin { background: rgba(255, 155, 106, 0.12); color: var(--coral); border-color: rgba(255, 155, 106, 0.45); }
.role-user  { background: rgba(60, 224, 241, 0.10); color: var(--cyan); border-color: rgba(60, 224, 241, 0.40); }

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-icon.stat-lime  { color: var(--lime); }
.stat-icon.stat-cyan  { color: var(--cyan); }
.stat-icon.stat-violet{ color: var(--violet-soft); }
.stat-icon.stat-coral { color: var(--coral); }

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-lime-text { color: var(--lime); }

.stat-label {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.joined-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}

.joined-row i { opacity: 0.45; }

@media (max-width: 768px) {
  .profile-layout { flex-direction: column; align-items: stretch; }
  .profile-side { width: 100%; position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { white-space: nowrap; }
}

/* action list */
.action-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  color: inherit;
}

.action-btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.25);
}

.action-btn i:first-child { width: 20px; text-align: center; color: var(--lime); }
.action-btn .arrow { margin-left: auto; color: var(--muted); font-size: 0.72rem; }

.btn-danger {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 2px solid rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.07);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-danger:hover {
  transform: translate(-2px, -2px);
  border-color: var(--red);
  background: rgba(255, 107, 107, 0.12);
  box-shadow: 5px 5px 0 rgba(255, 107, 107, 0.25);
}

/* ======================================== */
/* TOP-UP (payment + upload)                */
/* ======================================== */

.pay-card {
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-card.open {
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 246, 76, 0.22);
}

.pay-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.pay-card-header:hover { background: var(--surface); }

.pay-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.pay-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.pay-card-name { font-size: 0.88rem; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pay-card-chevron { color: var(--muted); font-size: 0.72rem; transition: transform 0.2s ease; }
.pay-card.open .pay-card-chevron { transform: rotate(180deg); color: var(--lime); }

.pay-card-body { display: none; padding: 0 14px 14px; }
.pay-card.open .pay-card-body { display: block; }

.pay-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--surface);
  margin-bottom: 6px;
}

.pay-detail-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  min-width: 48px;
}

.pay-detail-value { font-size: 0.84rem; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.pay-copy {
  padding: 4px 10px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.pay-copy:hover { color: var(--lime); border-color: var(--lime); }
.pay-copy.copied { color: #0B0A14; border-color: var(--lime); background: var(--lime); }

/* warning note */
.note-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 155, 106, 0.08);
  border: 2px solid rgba(255, 155, 106, 0.5);
  margin-bottom: 14px;
}

.note-warning__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #0B0A14;
  font-size: 14px;
}

.note-warning__title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2px;
}

.note-warning__text { font-size: 0.78rem; line-height: 1.5; opacity: 0.92; }
.note-warning__text strong { font-weight: 700; }

/* upload */
.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 10px;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-label:hover { border-color: var(--lime); color: var(--lime); background: rgba(200, 246, 76, 0.06); }

.upload-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 8px;
  border: 2px solid var(--line);
}

.pay-card-body input[type="number"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-top: 4px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-card-body input[type="number"]:focus {
  border-color: var(--lime);
  box-shadow: 3px 3px 0 rgba(200, 246, 76, 0.22);
}

.upload-status {
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

.upload-status.success { display: block; background: rgba(200, 246, 76, 0.08); color: var(--lime); border: 2px solid rgba(200, 246, 76, 0.30); }
.upload-status.error   { display: block; background: rgba(255, 107, 107, 0.08); color: var(--red); border: 2px solid rgba(255, 107, 107, 0.30); }

/* ======================================== */
/* AUTH                                     */
/* ======================================== */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px 32px;
  position: relative;
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--lime);
  background: rgba(200, 246, 76, 0.10);
  margin: 0 auto 16px;
}

.auth-card .brand-mark { margin: 0 auto 16px; width: 56px; height: 56px; }

.auth-card h1 {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 30px;
}

.auth-card .field input { padding-left: 14px; }

.auth-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--btn-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.auth-corner:hover { border-color: var(--violet); background: rgba(155, 92, 255, 0.12); }

.alt-link { text-align: center; margin-top: 20px; font-size: 0.78rem; color: var(--muted); }
.alt-link a { color: var(--lime); text-decoration: none; font-weight: 700; }
.alt-link a:hover { text-decoration: underline; }

.auth-back {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 12px;
  text-decoration: none;
}

.auth-back:hover { color: var(--paper); }

/* remember me */
.remember-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.8rem; color: var(--muted); user-select: none; margin-bottom: 18px; }
.remember-label input[type="checkbox"] { display: none; }

.remember-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
  position: relative;
}

.remember-checkmark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 10px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.remember-label input:checked + .remember-checkmark { background: var(--lime); border-color: var(--lime); }
.remember-label input:checked + .remember-checkmark::after { border-color: #0B0A14; }

/* error msg (auth) */
.error-msg {
  display: none;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.14);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.error-msg.show { display: block; }

/* ======================================== */
/* NOTIFICATION DIALOG                      */
/* ======================================== */

.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 0;
  animation: fadeIn 0.2s ease;
}

.notif-dialog {
  width: 100%;
  max-width: 460px;
  max-height: 75vh;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notifSlideIn 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@keyframes notifSlideIn {
  from { transform: translateY(-20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.notif-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.notif-dialog-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-dialog-header h3 i { color: var(--lime); }

.notif-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.notif-close-btn:hover { color: var(--paper); background: var(--surface-3); }

.notif-mark-all {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.notif-mark-all:hover { color: var(--lime); border-color: rgba(200, 246, 76, 0.3); background: rgba(200, 246, 76, 0.06); }

.notif-dialog-body { overflow-y: auto; flex: 1; padding: 8px 14px 14px; }

.notif-item {
  display: flex;
  gap: 13px;
  padding: 13px 12px;
  border-radius: 11px;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.notif-item:hover { border-color: var(--line); background: var(--surface-3); }
.notif-item.unread { border-color: rgba(200, 246, 76, 0.13); background: rgba(200, 246, 76, 0.03); }

.notif-item .nf-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.notif-item .nf-body { flex: 1; min-width: 0; }

.notif-item .nf-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}

.notif-item .nf-msg {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item .nf-time { font-size: 0.62rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

.notif-empty { text-align: center; padding: 44px 22px; color: var(--muted); }
.notif-empty i { font-size: 36px; color: var(--surface-3); display: block; margin-bottom: 10px; }

/* ======================================== */
/* SKELETONS / EMPTY / SPINNER              */
/* ======================================== */

.skeleton-card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  contain-intrinsic-size: auto 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 60%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* mimic card content: meta line, 2 title lines, CTA line */
.skeleton-card::after {
  content: '';
  flex: 1;
  min-height: 104px;
  background:
    linear-gradient(var(--surface-3), var(--surface-3)) 14px 14px / 38% 7px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 14px 32px / 72% 11px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 14px 50px / 54% 11px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 14px 82px / 34% 9px no-repeat,
    var(--surface);
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  animation: shimmer 1.8s ease-in-out infinite;
}

.sk-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-3); flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sk-line { height: 10px; border-radius: 5px; background: var(--surface-3); }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-price { width: 48px; height: 16px; border-radius: 5px; background: var(--surface-3); flex-shrink: 0; }

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state i { font-size: 40px; color: var(--violet-soft); opacity: 0.5; }
.empty-state p { font-size: 0.86rem; margin: 0; }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 24px;
  text-align: center;
}

.state i { font-size: 38px; color: var(--surface-3); }
.state p { color: var(--muted); font-size: 0.84rem; margin: 0; }

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--lime);
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* grid tab re-render animation */
.games-grid.page-enter .game-card {
  animation: cardPageIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes cardPageIn {
  from { opacity: 0; transform: translateY(28px) scale(0.90) translateZ(0); }
  to   { opacity: 1; transform: translateY(0) scale(1) translateZ(0); }
}

/* ======================================== */
/* ADMIN (bootstrap overrides)              */
/* ======================================== */

.admin-wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 80px;
  flex: 1;
}

.card, .modal-content, .table, .form-control, .form-select {
  background: var(--surface);
  color: var(--paper);
  border-color: var(--line);
}

.form-control:focus, .form-select:focus {
  background: var(--surface-2);
  color: var(--paper);
  border-color: var(--violet);
  box-shadow: 0 0 0 0.2rem rgba(155, 92, 255, 0.15);
}

.form-control::placeholder { color: var(--muted); opacity: 0.5; }

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--paper);
  --bs-table-hover-bg: var(--surface-2);
  margin-bottom: 0;
  font-size: 0.82rem;
}

.table th {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--line);
}

.table td { border-bottom-color: var(--line); }
.table-responsive { border-radius: 14px; border: 1px solid var(--line); }

.modal-content { border-radius: 18px; border: 1px solid var(--line); }
.modal-header, .modal-footer { border-color: var(--line); }
.card { border-radius: 14px; }
.card-body { background: var(--surface); border-radius: 14px; }

/* bootstrap buttons → theme */
.btn { border-radius: 10px; font-weight: 700; }
.btn-success {
  background: var(--lime);
  border-color: var(--lime);
  color: #0B0A14;
  font-weight: 800;
}
.btn-success:hover, .btn-success:focus {
  background: var(--lime-hover);
  border-color: var(--lime-hover);
  color: #0B0A14;
  box-shadow: 0 8px 20px rgba(200, 246, 76, 0.25);
}
.btn-primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #AD75FF;
  border-color: #AD75FF;
  color: #fff;
}

.btn-outline-secondary, .btn-outline-danger, .btn-outline-warning {
  background: var(--surface-2);
  color: var(--paper);
  border-color: var(--line);
}
.btn-outline-secondary:hover { background: var(--surface-3); color: var(--paper); border-color: var(--line); }
.btn-outline-danger:hover { background: rgba(255, 107, 107, 0.1); color: var(--red); border-color: rgba(255, 107, 107, 0.25); }
.btn-outline-warning:hover { background: rgba(255, 155, 106, 0.1); color: var(--coral); border-color: rgba(255, 155, 106, 0.25); }

/* admin topbar + tabs */
.admin-topbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 2px 0 0 var(--lime), 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-pills-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-pills-shell::-webkit-scrollbar { display: none; }

.nav-pills-shell .nav-link {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.nav-pills-shell .nav-link:hover { color: var(--paper); background: var(--surface-2); }

.nav-pills-shell .nav-link.active,
.nav-pills-shell .nav-link.active:hover {
  background: var(--lime);
  color: #0B0A14;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(200, 246, 76, 0.25);
}

.nav-pills-shell .nav-link i { font-size: 13px; opacity: 0.6; }
.nav-pills-shell .nav-link.active i { opacity: 1; }

/* compact admin chrome on phones */
@media (max-width: 576px) {
  .nav-pills-shell .nav-link { padding: 8px 12px; font-size: 0.76rem; white-space: nowrap; }
  .admin-wrap { padding: 0 4px; }
}

/* admin stat cards */
.admin-stat { position: relative; overflow: hidden; }
.admin-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 3px 0 0 3px;
  background: var(--stat-accent, var(--violet));
}
.admin-stat.accent-lime   { --stat-accent: var(--lime); }
.admin-stat.accent-cyan   { --stat-accent: var(--cyan); }
.admin-stat.accent-coral  { --stat-accent: var(--coral); }
.admin-stat.accent-red    { --stat-accent: var(--red); }
.admin-stat.accent-violet { --stat-accent: var(--violet); }
.admin-stat.accent-muted  { --stat-accent: var(--muted); }

.admin-stat .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.admin-stat .stat-icon { border-radius: 10px; }

/* admin badges */
.badge { font-size: 0.66rem; font-weight: 800; padding: 5px 10px; border-radius: 7px; }
.badge.bg-success { background: rgba(200, 246, 76, 0.12) !important; color: var(--lime); }
.badge.bg-warning { background: rgba(255, 155, 106, 0.12) !important; color: var(--coral); }
.badge.bg-danger  { background: rgba(255, 107, 107, 0.12) !important; color: var(--red); }
.badge.bg-info    { background: rgba(60, 224, 241, 0.12) !important; color: var(--cyan); }
.badge.bg-secondary { background: var(--surface-2) !important; color: var(--muted); }
.badge.bg-purple  { background: rgba(155, 92, 255, 0.14) !important; color: var(--violet-soft); }

.input-group-text {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

.spinner-border.text-success { color: var(--lime) !important; }

/* toast (admin inline) */
.custom-toast {
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 280px;
  animation: toastIn 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.custom-toast.ok { background: var(--lime); color: #0B0A14; }
.custom-toast.err { background: var(--red); color: #fff; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ======================================== */
/* RESPONSIVE                               */
/* ======================================== */

@media (max-width: 992px) {
  .games-grid { gap: 12px; }
  .game-image { aspect-ratio: 1 / 1; }
  .site-header { min-height: 72px; }
  .brand-mark { width: 84px; height: 48px; }
}

@media (max-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-card { contain-intrinsic-size: auto 250px; }
  .game-image { aspect-ratio: 1 / 1; }
  .home-hero { margin-top: 12px; padding: 18px 16px; }
  .store-layout { flex-direction: column; align-items: stretch; margin-top: 12px; gap: 12px; }
  .store-side { width: 100%; position: static; }
  .store-content .store-section { margin: 12px 0 0; }
  .store-section { margin-top: 12px; padding: 12px; }
  .browse-tabs--side { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .browse-tabs--side::-webkit-scrollbar { display: none; }
  .browse-tabs--side .browse-tab { width: auto; }
  .side-block { padding: 12px; }
  .store-content > .catalog-head { margin-top: 12px; }
  .site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-top: 12px;
    padding: 12px 14px;
    text-align: left;
  }
  .footer-brand { gap: 9px; }
  .footer-brand .brand-mark--footer { width: 40px; height: 40px; }
  .footer-brand strong { font-size: 0.8rem; }
  .footer-tag { font-size: 0.64rem; }
  .footer-contact {
    padding: 7px 10px;
    gap: 6px;
    border-radius: 9px;
  }
  .footer-contact-label { display: none; }
  .footer-tg { gap: 8px; margin: 0; padding: 0; }
  .footer-tg > i.fa-telegram { font-size: 18px; }
  .footer-tg-body b { font-size: 0.74rem; }
  .footer-tg-body small { font-size: 0.6rem; }
  .footer-tg-arrow { margin-left: 2px; font-size: 0.6rem; }
  .site-footer > small {
    flex-basis: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 0.62rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  /* compact mobile footer */
  .site-footer { gap: 8px; padding: 11px 12px; }
  .footer-brand { gap: 7px; }
  .footer-brand .brand-mark--footer { width: 32px; height: 32px; }
  .footer-brand strong { font-size: 0.72rem; }
  .footer-tag { display: none; }
  .footer-contact { padding: 5px 7px; }
  .footer-tg { gap: 6px; }
  .footer-tg > i.fa-telegram { font-size: 16px; }
  .footer-tg-body small { display: none; }
  .footer-tg-body b { font-size: 0.68rem; }
  .footer-tg-arrow { display: none; }
  .site-footer > small { padding-top: 7px; }

  /* order preview rows: stack status + price under the item name */
  .order-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 7px;
    padding: 10px 11px;
  }
  .order-mini .om-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .order-mini .om-body { grid-column: 2 / 4; grid-row: 1; }
  .order-mini .om-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .order-mini .pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .order-mini .om-price { grid-column: 3; grid-row: 2; justify-self: end; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-name { display: none; }
  .brand-mark { width: 64px; height: 40px; }
  .home-hero { padding: 16px 14px; }
  .hero-perks { gap: 6px; margin-top: 12px; }
  .hero-perk { padding: 6px 10px 6px 7px; font-size: 0.68rem; }
  .hero-perk i { width: 19px; height: 19px; font-size: 9px; }
  .game-hero .gh-logo { width: 40px; height: 40px; }
  .game-content { padding: 9px 9px 11px; }
  .game-content h3 { font-size: 0.8rem; min-height: 2.3em; }
  .game-bottom strong { font-size: 0.7rem; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-card .ic-price { font-size: 0.8rem; }
  .item-card .ic-icon { width: 36px; height: 36px; font-size: 15px; }
  .item-card { padding: 11px 12px; gap: 10px; }
  .sheet { padding: 12px 16px 36px; }
  .auth-card { padding: 32px 22px 26px; }
  /* compact rows & widgets */
  .order-card { padding: 13px 14px; }
  .order-price { font-size: 0.88rem; }
  .pay-detail { gap: 7px; padding: 8px 9px; }
  .pay-detail-label { min-width: 40px; }
  .pay-copy { padding: 4px 8px; font-size: 0.62rem; }
  .side-link { padding: 9px 10px; font-size: 0.78rem; }
  .browse-tab { padding: 0 12px; min-height: 36px; font-size: 0.68rem; }
  .result-count { font-size: 0.64rem; }
  /* browse categories as a 2×2 grid on phones — no hidden sideways scroll */
  .browse-tabs--side { display: grid; grid-template-columns: 1fr 1fr; overflow-x: visible; gap: 8px; }
  .browse-tabs--side .browse-tab { width: 100%; justify-content: center; }
  .browse-tabs--side .browse-tab--link .fa-arrow-right { display: none; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  /* compact home hero on phones */
  .hero-text { display: none; }
  .home-hero .hero-title { font-size: 1.35rem; }
}

/* very small screens (≤380px) */
@media (max-width: 380px) {
  .site-header, .container, .store-section, .store-main, .site-footer,
  .page-body, .page-body--wide { width: calc(100% - 20px); }

  .games-grid { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-content { padding: 8px 8px 10px; }
  .game-content h3 { font-size: 0.76rem; }
  .game-bottom { margin-top: 7px; }
  .game-bottom strong { font-size: 0.64rem; }
  .game-badge { top: 6px; left: 6px; font-size: 0.5rem; padding: 4px 7px; }
  .catalog-head { flex-wrap: wrap; gap: 2px 12px; }

  .home-hero { padding: 18px 14px; }
  .store-section, .store-main { padding: 10px; }
  .catalog-head { margin-bottom: 8px; }

  .search-box--hero { height: 46px; margin-top: 12px; }
  .hero-perks { gap: 6px; margin-top: 12px; }
  .hero-perk { padding: 6px 10px 6px 7px; font-size: 0.68rem; }
  .hero-perk i { width: 19px; height: 19px; font-size: 9px; }

  .icon-button { width: 36px; height: 36px; font-size: 14px; }
  .header-actions { gap: 5px; }
  .announcement { font-size: 0.64rem; padding: 6px 10px; }
}

/* ======================================== */
/* ML BANNER (cross-sell card)              */
/* ======================================== */

.ml-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.10), rgba(200, 246, 76, 0.05));
  border: 2px solid rgba(155, 92, 255, 0.25);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 14px;
}

.ml-banner:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 246, 76, 0.28);
}

.ml-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(155, 92, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--violet-soft);
  flex-shrink: 0;
}

/* ======================================== */
/* ML HERO (game-specific header)           */
/* ======================================== */

.ml-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 75% -25%, rgba(155, 92, 255, 0.30), transparent 55%),
    linear-gradient(145deg, #332457, #11101D 72%);
  border: 1px solid var(--line);
}

.ml-hero img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ml-hero .mh-info { position: relative; z-index: 1; min-width: 0; }

.ml-hero .mh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(200, 246, 76, 0.12);
  color: var(--lime);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.ml-hero .mh-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ml-hero .mh-sub { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); margin-top: 4px; }

[data-theme="light"] .ml-hero .mh-title { color: var(--paper); }
[data-theme="light"] .ml-hero .mh-sub { color: var(--muted); }

@media (max-width: 480px) {
  .ml-hero { flex-direction: column; text-align: center; padding: 22px 16px; }
}

/* ======================================== */
/* DIAMOND BONUS CARD                       */
/* ======================================== */

.bonus-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 155, 106, 0.06);
  border: 1px solid rgba(255, 155, 106, 0.14);
  display: none;
  font-size: 0.76rem;
}

.bonus-card.show { display: block; }

.bonus-card .bc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ======================================== */
/* UTILITIES                                */
/* ======================================== */

.upload-area { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); }
.upload-area label { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hidden-input { display: none; }

.block-title {
  margin: 26px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.block-text { font-size: 0.78rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }

.group-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 12px;
}

.spacer { flex: 1; }

/* ======================================== */
/* TOAST NOTIFICATIONS (inline pages)       */
/* ======================================== */

.notif-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100vw - 32px);
  max-width: 440px;
}

.notif {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: hidden;
  animation: notifIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

.notif.removing { animation: notifOut 0.2s ease forwards; }

.notif-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notif-body { flex: 1; min-width: 0; padding-top: 1px; }
.notif-title { font-size: 0.84rem; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.notif-msg { font-size: 0.76rem; line-height: 1.4; color: var(--muted); }

.notif-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.notif-close:hover { background: var(--surface-3); color: var(--paper); }

.notif.success { border-color: rgba(200, 246, 76, 0.18); }
.notif.success .notif-icon { background: rgba(200, 246, 76, 0.12); color: var(--lime); }
.notif.error { border-color: rgba(255, 107, 107, 0.18); }
.notif.error .notif-icon { background: rgba(255, 107, 107, 0.12); color: var(--red); }
.notif.warning { border-color: rgba(255, 155, 106, 0.16); }
.notif.warning .notif-icon { background: rgba(255, 155, 106, 0.12); color: var(--coral); }
.notif.info { border-color: rgba(60, 224, 241, 0.16); }
.notif.info .notif-icon { background: rgba(60, 224, 241, 0.12); color: var(--cyan); }

@keyframes notifIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notifOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-12px) scale(0.92); }
}

@media (max-width: 480px) {
  .notif-container { top: 12px; width: calc(100vw - 24px); }
  .notif { padding: 13px 15px; gap: 10px; }
  .notif-icon { width: 34px; height: 34px; font-size: 16px; }
}

/* ======================================== */
/* ADMIN HELPERS                            */
/* ======================================== */

.admin-stat .stat-icon {
  margin: 0;
  width: 36px;
  height: 36px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-stat .stat-label { font-size: 0.62rem; }

.admin-stat .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.content-area { position: relative; }
.content-area.animating { pointer-events: none; }

.content-fade {
  animation: pageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-pop { animation: statPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes statPop {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.table-enter tbody tr {
  animation: rowIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.table-enter tbody tr:nth-child(1) { animation-delay: 0.01s; }
.table-enter tbody tr:nth-child(2) { animation-delay: 0.03s; }
.table-enter tbody tr:nth-child(3) { animation-delay: 0.05s; }
.table-enter tbody tr:nth-child(4) { animation-delay: 0.07s; }
.table-enter tbody tr:nth-child(5) { animation-delay: 0.09s; }
.table-enter tbody tr:nth-child(6) { animation-delay: 0.11s; }
.table-enter tbody tr:nth-child(7) { animation-delay: 0.13s; }
.table-enter tbody tr:nth-child(8) { animation-delay: 0.15s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.empty-icon { animation: iconPulse 3s ease-in-out infinite; }

@keyframes iconPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.05); }
}

.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0B0A14;
  background: linear-gradient(135deg, var(--lime), var(--violet));
  box-shadow: 0 8px 24px rgba(155, 92, 255, 0.2);
}

.theme-toggle-icon { transition: transform 0.35s ease, opacity 0.3s ease; }


