:root {
  --bg: #07101e;
  --bg2: #0b1730;
  --panel: rgba(15, 21, 40, 0.6);
  --panel-strong: rgba(18, 24, 46, 0.82);
  --text: #eff5ff;
  --muted: #9fb1ca;
  --line: rgba(255,255,255,0.1);
  --accent: #39b8ff;
  --accent2: #7a5cff;
  --accent3: #ff5da8;
  --shadow: 0 16px 32px rgba(0,0,0,.20);
  --glow: 0 0 22px rgba(57,184,255,.08);
  --content-max: 1600px;
  --nav-width: 285px;
}

[data-theme="light"] {
  --bg: #edf4ff;
  --bg2: #dfe9fb;
  --panel: rgba(255,255,255,0.5);
  --panel-strong: rgba(255,255,255,0.86);
  --text: #0e1a2f;
  --muted: #5f7090;
  --line: rgba(45,76,126,.12);
  --accent: #1476ff;
  --accent2: #715dff;
  --accent3: #ff529d;
  --shadow: 0 16px 30px rgba(49,87,145,.10);
  --glow: 0 0 20px rgba(20,118,255,.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  background: #07101e;
}

html[data-theme="light"] {
  background: #edf4ff;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(57,184,255,.12), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(122,92,255,.10), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255,93,168,.10), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  transition: background .18s ease, color .18s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.03) 40%, transparent 65%),
    linear-gradient(235deg, transparent 0%, rgba(255,255,255,.02) 48%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#bgParticles,
#glowCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mesh-orb,
.mesh-orb-2,
.mesh-orb-3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}

.mesh-orb {
  width: 300px;
  height: 300px;
  top: 8%;
  left: -60px;
  background: radial-gradient(circle, rgba(57,184,255,.30), transparent 70%);
}

.mesh-orb-2 {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 18%;
  background: radial-gradient(circle, rgba(122,92,255,.24), transparent 70%);
  animation-delay: -5s;
}

.mesh-orb-3 {
  width: 300px;
  height: 300px;
  left: 35%;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255,93,168,.18), transparent 70%);
  animation-delay: -9s;
}

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(25px,-10px) scale(1.04); }
  50% { transform: translate(-20px,20px) scale(.96); }
  75% { transform: translate(18px,12px) scale(1.03); }
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.protected-image {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.page-shell {
  position: relative;
  z-index: 2;
  padding-bottom: 110px;
}

/* HEADER */
.topbar {
  width: min(calc(100% - 24px), var(--content-max));
  min-height: 70px;
  margin: 8px auto 0;
  padding: 10px 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 8px;
  z-index: 1000;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-headline {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: capitalize;
  line-height: 1.1;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: brightness(0) invert(1);
  transition: filter .2s ease;
}

[data-theme="light"] .brand-logo {
  filter: brightness(0) invert(0);
}

.brand-dot {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,184,255,.35), transparent 70%);
  filter: blur(8px);
}

.top-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.top-icon:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.top-icon svg,
.nav-link svg,
.social-btn svg,
.dock-item svg,
.search-icon svg,
.stat-icon svg,
.profile-action-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* MAIN LAYOUT */
.desktop-shell {
  width: min(calc(100% - 16px), var(--content-max));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

/* NAVIGATION */
.side-nav {
  position: sticky;
  top: 86px;
  align-self: start;
  border-radius: 28px;
  min-height: calc(100vh - 98px);
  overflow: hidden;
}

.nav-inner {
  padding: 12px;
}

.nav-profile-card {
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.nav-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57,184,255,.08), rgba(122,92,255,.08), transparent 70%);
  pointer-events: none;
}

.avatar-shell {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,184,255,.16), rgba(122,92,255,.10), transparent 72%);
  box-shadow: 0 0 20px rgba(57,184,255,.14);
  position: relative;
  z-index: 1;
}

.avatar-face {
  width: 80px;
  height: 80px;
  display: block;
}

.nav-profile-info {
  position: relative;
  z-index: 1;
  text-align: center;
}

.nav-user-name {
  font-size: 1rem;
  font-weight: 800;
}

.nav-user-id {
  margin-top: 4px;
  font-size: .88rem;
  color: var(--muted);
}

.nav-profile-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-action-btn {
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid var(--line);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  font-weight: 700;
}

.profile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.profile-action-btn svg {
  width: 18px;
  height: 18px;
}

.logout-btn {
  background: linear-gradient(135deg, rgba(255,83,104,.28), rgba(220,38,38,.18));
  border-color: rgba(255,90,110,.28);
  color: #fff;
}

.logout-btn:hover {
  box-shadow: 0 10px 18px rgba(255,80,110,.14);
}

.nav-balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34,53,94,.92), rgba(42,58,110,.86));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

[data-theme="light"] .nav-balance-card {
  background: linear-gradient(135deg, #edf4ff, #dfe8fb);
  border: 1px solid rgba(41,72,130,.10);
  box-shadow: 0 10px 18px rgba(56,84,137,.08);
}

.balance-label {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 8px;
}

.balance-value {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: .01em;
}

.balance-value small {
  font-size: .78rem;
  color: var(--accent);
}

.balance-shine {
  display: none;
}

.nav-links {
  display: grid;
  gap: 8px;
}

.nav-link {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0;
  transform: scaleY(.6);
  transition: .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.08);
  transform: translateX(4px);
}

.nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.theme-switch-block {
  border-radius: 18px;
  padding: 12px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.theme-switch-label {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 10px;
}

.theme-switch {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  position: relative;
  cursor: pointer;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
}

.theme-option {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: .88rem;
}

.theme-dark {
  text-align: left;
  padding-left: 14px;
}

.theme-light {
  text-align: right;
  padding-right: 14px;
}

.theme-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(57,184,255,.16);
  transition: transform .28s ease;
}

[data-theme="light"] .theme-thumb {
  transform: translateX(100%);
}

.nav-socials {
  margin-top: 10px;
  padding-top: 12px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  justify-content: center;
  align-items: center;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  flex: 0 0 auto;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(0,0,0,.12);
}
.nav-guest-card {
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
}

.nav-guest-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.nav-guest-subtitle {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.nav-guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.guest-main-btn {
  min-height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.guest-main-btn:hover {
  transform: translateY(-1px);
}

.guest-login-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(57,184,255,.18);
}

.guest-register-btn {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--line);
}
/* CONTENT */
.content-area {
  min-width: 0;
}

/* HERO */
.hero-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: auto;
  padding: 8px;
}

.hero-grid-clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: stretch;
}

.hero-slider-full {
  position: relative;
  min-height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .8s ease, transform .8s ease;
  background: transparent;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-mini-side {
  display: grid;
  gap: 10px;
}

.hero-mini-card {
  border-radius: 16px;
  padding: 14px 14px;
  background:
    linear-gradient(135deg, rgba(57,184,255,.10), rgba(122,92,255,.08)),
    rgba(255,255,255,.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.hero-mini-card span {
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 6px;
}

.hero-mini-card strong {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

/* SEARCH */
.search-panel {
  margin-top: 8px;
  padding: 8px;
  border-radius: 18px;
}

.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: .96rem;
  outline: none;
  padding: 0 20px 0 50px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-input:focus {
  border-color: rgba(57,184,255,.35);
  box-shadow: 0 0 0 4px rgba(57,184,255,.06);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: grid;
  place-items: center;
}

/* STATS */
.stats-bar {
  display: none;
}

/* PRODUCTS */
.products-section {
  margin-top: 14px;
  position: relative;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 1.08rem;
  font-weight: 800;
}

.section-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 12px;
}

.game-card {
  position: relative;
  cursor: pointer;
  padding: 4px 2px 10px;
  text-align: center;
  transition: transform .16s ease;
}

.game-thumb-wrap {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.game-thumb {
  width: 100%;
  aspect-ratio: 1 / 0.62;
  object-fit: cover;
  display: block;
  border-radius: 20px 10px 10px 10px;
  box-shadow:
    0 8px 14px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.04);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    opacity .18s ease;
  position: relative;
  z-index: 2;
}

.game-thumb-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px 10px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(57,184,255,.05));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  z-index: 3;
}

.game-card::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 18%;
  top: 20%;
  bottom: 36%;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(57,184,255,.12), transparent 72%);
  filter: blur(16px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 0;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
  transform: translateY(-2px);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover .game-thumb {
  transform: translateY(-4px);
  box-shadow:
    0 14px 20px rgba(0,0,0,.18),
    0 0 14px rgba(57,184,255,.06);
  filter: brightness(1.02) saturate(1.02);
}

.game-card:hover .game-thumb-overlay {
  opacity: 1;
}

.game-card.pressed .game-thumb {
  transform: translateY(-1px) scale(.985);
}

.game-title {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 800;
  transition: transform .16s ease, color .16s ease;
}

.game-card:hover .game-title {
  transform: translateY(-1px);
  color: var(--text);
}

.game-sub {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted);
  transition: opacity .16s ease;
}

.game-card:hover .game-sub {
  opacity: .95;
}

.no-results {
  display: none;
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

/* FOOTER */
.site-footer {
  margin-top: 16px;
}

.footer-inner {
  color: var(--muted);
  text-align: center;
  padding: 10px 0;
}

.mobile-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 74px;
  border-radius: 24px;
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 8px;
  z-index: 1200;
  transition: opacity .18s ease, transform .18s ease;
}

body.nav-open .mobile-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.dock-item {
  flex: 1;
  text-decoration: none;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: .72rem;
  position: relative;
}

.dock-item.add svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  color: #fff;
  stroke: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(57,184,255,.22);
  transform: translateY(-8px);
}

.dock-item.active {
  color: var(--text);
}

.dock-item.active::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(57,184,255,.24);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 900;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-only {
  display: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid-clean {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}

@media (max-width: 980px) {
  .desktop-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: fixed !important;
    left: 10px;
    top: 10px;
    height: calc(100vh - 20px);
    width: min(320px, calc(100vw - 20px));
    z-index: 1300;
    transform: translateX(-110%) !important;
    transition: transform .24s ease;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 20px;
    display: block;
  }

  .side-nav.open {
    transform: translateX(0) !important;
  }

  .nav-inner {
    min-height: auto;
    padding: 12px;
    padding-bottom: 140px;
  }

  .nav-overlay {
    z-index: 1200;
  }

  .mobile-only {
    display: grid;
  }

  .mobile-dock {
    z-index: 1100;
  }

  body.nav-open .mobile-dock {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(16px);
  }
}

@media (max-width: 767px) {
  .page-shell {
    padding-bottom: 108px;
  }

  .topbar {
    width: calc(100% - 12px);
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 20px;
    min-height: 62px;
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
  }

  .page-headline {
    font-size: .9rem;
  }

  .desktop-shell {
    width: calc(100% - 10px);
    margin-top: 8px;
    gap: 10px;
  }

  .hero-panel {
    border-radius: 18px;
    padding: 8px;
  }

  .hero-grid-clean {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-mini-side {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-mini-card {
    min-height: 72px;
    border-radius: 14px;
    padding: 10px;
  }

  .hero-mini-card span {
    font-size: .74rem;
    margin-bottom: 4px;
  }

  .hero-mini-card strong {
    font-size: .88rem;
  }

  .hero-slider-full {
    min-height: 138px;
    border-radius: 14px;
  }

  .hero-slide {
    object-fit: contain;
  }

  .search-panel {
    margin-top: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .search-input {
    min-height: 50px;
    font-size: .92rem;
    padding-left: 48px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .game-thumb {
    border-radius: 18px 9px 9px 9px;
  }

  .game-thumb-overlay {
    border-radius: 18px 9px 9px 9px;
  }

  .mobile-dock {
    display: flex;
  }

  .site-footer {
    margin-bottom: 82px;
  }
}


/* IMAGE LOADING SYSTEM */
.image-load-wrap {
  position: relative;
  overflow: hidden;
}
 

.image-preload {
  opacity: 0 !important;
  transition: opacity .35s ease;
}

.image-preload.image-ready {
  opacity: 1 !important;
}

/* PRODUCT IMAGE LOADER SHAPE */
.package-thumb-wrap .image-loader,
.package-thumb-wrap .image-loader::before,
.package-thumb-wrap .image-loader::after {
  border-radius: 20px 10px 10px 10px;
}

@media (max-width: 767px) {
  .package-thumb-wrap .image-loader,
  .package-thumb-wrap .image-loader::before,
  .package-thumb-wrap .image-loader::after {
    border-radius: 18px 9px 9px 9px;
  }
}


/* HERO IMAGE LOADER SHAPE */
.hero-slider-full .image-loader,
.hero-slider-full .image-loader::before {
  border-radius: 16px;
}

@media (max-width: 767px) {
  .hero-slider-full .image-loader,
  .hero-slider-full .image-loader::before {
    border-radius: 14px;
  }
}

/* NAV / AVATAR / SMALL IMAGE LOADER */
.avatar-shell .image-loader,
.avatar-shell .image-loader::before,
.brand .image-loader,
.brand .image-loader::before {
  border-radius: 999px;
}

.hero-panel,
.side-nav,
.topbar,
.search-panel,
.hero-mini-card,
.nav-profile-card,
.nav-guest-card,
.theme-switch-block {
  transform: translateZ(0);
  will-change: auto;
}

.game-card,
.game-thumb,
.game-thumb-overlay {
  will-change: transform, opacity, filter;
}

@media (max-width: 980px) {
  #glowCanvas {
    display: none;
  }

  .glass {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}




/* PACKAGE PAGE */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
}

.package-card {
  position: relative;
  cursor: pointer;
  padding: 2px 2px 12px;
  text-align: center;
  transition: transform .18s ease, opacity .18s ease;
}

.package-card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16%;
  bottom: 40%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(57,184,255,.14), transparent 72%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 0;
}

.package-card:hover::before {
  opacity: 1;
  transform: translateY(-2px);
}

 
.package-thumb-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px 10px 10px 10px;
  background: rgba(8, 18, 35, .85);
}

@media (max-width: 767px) {
  .package-thumb-wrap {
    border-radius: 18px 9px 9px 9px;
  }
}

.image-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}

.image-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.image-loader.gone {
  display: none;
}

.image-loader-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(20,28,48,.96), rgba(10,16,30,.96));
  border: 1px solid rgba(255,255,255,.08);
}

.image-loader-strong::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 52%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57,184,255,.22),
    rgba(255,255,255,.18),
    rgba(57,184,255,.22),
    transparent
  );
  transform: skewX(-18deg);
  animation: imageLoaderSweepStrong 1.4s linear infinite;
}

@keyframes imageLoaderSweepStrong {
  0% { left: -120%; }
  100% { left: 140%; }
}

.package-thumb {
  width: 100%;
  aspect-ratio: 1 / 0.62;
  object-fit: cover;
  display: block;
  border-radius: 20px 10px 10px 10px;
  box-shadow:
    0 8px 14px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.04);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    opacity .18s ease;
  position: relative;
  z-index: 2;
}

.package-thumb-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px 10px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(57,184,255,.05));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  z-index: 3;
}

.package-card:hover .package-thumb {
  transform: translateY(-4px);
  box-shadow:
    0 14px 20px rgba(0,0,0,.18),
    0 0 14px rgba(57,184,255,.06);
  filter: brightness(1.02) saturate(1.02);
}

.package-card:hover .package-thumb-overlay {
  opacity: 1;
}

.package-card.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.package-card.disabled .package-thumb {
  filter: grayscale(.25) brightness(.88);
}

.package-card.disabled:hover .package-thumb {
  transform: none;
  box-shadow:
    0 8px 14px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.04);
}

.package-card.disabled::before {
  display: none;
}

.package-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  background: rgba(8, 18, 35, .70);
  border: 1px solid rgba(255,255,255,.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .package-badge {
  color: #ffffff;
  background: rgba(21, 34, 62, .72);
  border-color: rgba(255,255,255,.18);
}

.package-card.disabled .package-badge {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,83,104,.35), rgba(220,38,38,.25));
  border-color: rgba(255,90,110,.32);
}

.package-title {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: .96rem;
  font-weight: 800;
}

.package-price {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57,184,255,.18), rgba(122,92,255,.16));
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
}

.package-price small {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
}

.package-sub {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: .76rem;
  color: var(--muted);
}

/* SHARED PRODUCT MODAL */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 20, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
}

.product-modal.open {
  display: flex;
}

.product-modal-dialog {
  width: min(100%, 620px);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8,16,32,.96), rgba(14,24,45,.94));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  position: relative;
}

[data-theme="light"] .product-modal-dialog {
  background: linear-gradient(135deg, rgba(245,249,255,.98), rgba(232,240,252,.96));
  border: 1px solid rgba(41,72,130,.10);
  box-shadow: 0 24px 60px rgba(56,84,137,.15);
}

.product-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: inherit;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.product-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.product-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-modal-body {
  padding: 16px;
}

.product-modal-loading {
  min-height: 220px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.product-modal-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(255,255,255,.04);
}

.product-modal-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  animation: modalLoaderSweep 1.2s linear infinite;
}

@keyframes modalLoaderSweep {
  0% { left: -120%; }
  100% { left: 140%; }
}

.inline-note {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

/* NEW CHECKOUT STYLE */
.checkout-shell {
  width: 100%;
}

.checkout-card {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(11, 21, 40, .96), rgba(17, 29, 54, .94));
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.20);
}

[data-theme="light"] .checkout-card {
  background:
    linear-gradient(135deg, rgba(244,248,255,.98), rgba(232,240,252,.96));
  border: 1px solid rgba(41,72,130,.10);
  box-shadow: 0 16px 34px rgba(56,84,137,.10);
}

.checkout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-product-name {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.checkout-product-sub {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.checkout-price {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(57,184,255,.22), rgba(122,92,255,.18));
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .95rem;
  font-weight: 900;
}

.checkout-price span {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-field {
  position: relative;
}

.checkout-field-with-action .checkout-input {
  padding-right: 64px;
}

.checkout-input {
  width: 100%;
  min-height: 58px;
  padding: 26px 20px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: .94rem;
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

[data-theme="light"] .checkout-input {
  background: rgba(255,255,255,.75);
}

.checkout-input:focus {
  outline: none;
  border-color: rgba(57,184,255,.38);
  box-shadow: 0 0 0 4px rgba(57,184,255,.08);
}

.checkout-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .88rem;
  pointer-events: none;
  transition: all .2s ease;
}

.checkout-input:focus + .checkout-label,
.checkout-input:not(:placeholder-shown) + .checkout-label {
  top: 14px;
  transform: none;
  font-size: .72rem;
  color: var(--accent);
}

.checkout-fetch-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.checkout-fetch-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.checkout-player-result {
  display: none;
}

.checkout-actions {
  margin-top: 4px;
}

.checkout-buy-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  font-size: .92rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 12px 24px rgba(57,184,255,.18);
}

.checkout-buy-btn:hover {
  transform: translateY(-1px);
}

.checkout-empty {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

@media (max-width: 1200px) {
  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .package-thumb,
  .package-thumb-overlay {
    border-radius: 18px 9px 9px 9px;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal-dialog {
    width: 100%;
    border-radius: 20px;
  }

  .product-modal-body {
    padding: 12px;
  }

  .checkout-card {
    padding: 14px;
    border-radius: 18px;
  }

  .checkout-top {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-price {
    align-self: flex-start;
  }

  .checkout-input {
    min-height: 54px;
    border-radius: 16px;
  }

  .checkout-buy-btn {
    min-height: 50px;
    border-radius: 16px;
  }
}

.checkout-stock-note {
  margin-bottom: 14px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(57,184,255,.14), rgba(16,185,129,.12));
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
}

.checkout-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,.35);
  flex: 0 0 auto;
}




.checkout-stock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(33, 184, 115, 0.14);
  border: 1px solid rgba(33, 184, 115, 0.28);
  color: #c8ffe2;
  font-weight: 700;
  margin-bottom: 18px;
}

.checkout-stock::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #29d17b;
  box-shadow: 0 0 12px rgba(41,209,123,0.6);
}
/* Jawaker quantity block */
.checkout-amount-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
  margin-bottom:10px;
}

.checkout-total-box{
  min-height:74px;
  border-radius:22px;
  border:1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at top right, rgba(57,184,255,.18), transparent 56%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 16px;
  position:relative;
  overflow:hidden;
}

.checkout-total-box::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 18%, rgba(255,255,255,.07) 50%, transparent 82%);
  transform:translateX(-120%);
  animation:jawakerPriceSweep 4.5s linear infinite;
  pointer-events:none;
}

.checkout-total-label{
  font-size:.78rem;
  color:var(--muted);
  font-weight:800;
  margin-bottom:6px;
  letter-spacing:.02em;
}

.checkout-total-box strong{
  font-size:1.16rem;
  line-height:1;
  font-weight:900;
  color:var(--text);
}

[data-theme="light"] .checkout-total-box{
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,248,255,.92)),
    radial-gradient(circle at top right, rgba(57,184,255,.12), transparent 56%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 24px rgba(28,44,80,.08);
}

#jawakerTotalPrice{
  min-width:120px;
  text-align:center;
}

#jawakerTotalText{
  white-space:nowrap;
}

@keyframes jawakerPriceSweep{
  0%{transform:translateX(-120%)}
  100%{transform:translateX(120%)}
}

@media (max-width: 640px){
  .checkout-amount-grid{
    grid-template-columns:1fr;
  }

  .checkout-total-box{
    min-height:66px;
  }

  .checkout-total-box strong{
    font-size:1.04rem;
  }
}
 /*notification*/
    .site-notice{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  min-width: 260px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .25s ease;
  background: #1f2937;
}

.site-notice.show{
  opacity: 1;
  transform: translateY(0);
}

.site-notice.success{
  background: linear-gradient(135deg, #0f9d58, #0b7d46);
}

.site-notice.error{
  background: linear-gradient(135deg, #d93025, #b42318);
}

.site-notice.info{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}


.package-card,
.package-thumb-wrap,
.package-thumb {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
