/* ══════════════════════════════════════════════
   JUANSHOP — Vanguard Gaming Interface
   Design System: Deep Space + Glassmorphism
   ══════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap");

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

/* ── DESIGN TOKENS ── */
:root {
  --bg: #071a0f;
  --bg-low: #030f07;
  --bg-card: #0d1f12;
  --bg-card-h: #112617;
  --bg-card-hh: #1a3020;
  --bg-highest: #243d2a;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(255, 255, 255, 0.12);
  --text-1: #d8e3fb;
  --text-2: #8c909f;
  --text-3: #424754;
  --accent: #4ade80;
  --purple: #16a34a;
  --cyan: #22c55e;
  --green: #10b981;
  --amber: #fbbf24;
  --red: #ff4655;
  --outline: #424754;
  --glass: rgba(13, 31, 18, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --container: 1280px;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
}

.mat-icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── GLOBAL UTILITIES ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass card base */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* Buy/CTA gradient button */
.btn-buy {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    box-shadow 0.3s,
    transform 0.2s;
  font-family: inherit;
}
.btn-buy:hover {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
  transform: scale(1.02);
}
.btn-buy:active {
  transform: scale(0.98);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-low);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-highest);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--outline);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease both;
}
.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

/* ── NOTIFICATION / TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card-hh);
  border: 1px solid var(--border-h);
  color: var(--text-1);
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.3s ease both;
  max-width: 340px;
}
.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}
.toast.error {
  border-color: rgba(255, 70, 85, 0.3);
}
.toast.info {
  border-color: rgba(74, 222, 128, 0.2);
}

/* Notif modal */
.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 7, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.notif-overlay.show {
  display: flex;
  animation: fadeIn 0.25s ease;
}
.notif-box {
  background: var(--bg-card-h);
  border: 1px solid var(--border-h);
  border-radius: var(--r-2xl);
  padding: 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.3s ease;
}
.notif-icon-wrap {
  font-size: 48px;
  margin-bottom: 16px;
}
.notif-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.notif-msg {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.6;
}
.notif-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.notif-btn {
  padding: 10px 28px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-h);
  font-family: inherit;
  transition: all 0.2s;
}
.notif-btn.primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.notif-btn.primary:hover {
  background: #15803d;
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.4);
}
.notif-btn.secondary {
  background: transparent;
  color: var(--text-2);
}
.notif-btn.secondary:hover {
  background: var(--bg-card-hh);
  color: var(--text-1);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(7, 26, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 32px rgba(22, 163, 74, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.navbar-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
}
.navbar-nav a,
.navbar-nav span {
  padding: 6px 14px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.navbar-nav a:hover,
.navbar-nav span:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}
.navbar-nav a.active {
  color: var(--accent);
}
.navbar-search {
  flex: 1;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  transition: border-color 0.2s;
}
.navbar-search:focus-within {
  border-color: rgba(22, 163, 74, 0.5);
}
.navbar-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-1);
  font-family: inherit;
}
.navbar-search input::placeholder {
  color: var(--text-2);
}
.navbar-search .search-icon {
  color: var(--text-2);
  font-size: 18px;
  font-family: "Material Symbols Outlined";
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 20px;
  font-family: "Material Symbols Outlined";
  transition:
    background 0.2s,
    color 0.2s;
}
.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}
.navbar-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 22px;
  font-family: "Material Symbols Outlined";
  align-items: center;
  justify-content: center;
}
.navbar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.navbar-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: glowPulse 2.5s infinite;
}

/* ── SUCCESS BANNER ── */
.success-banner {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.2),
    rgba(6, 182, 212, 0.2)
  );
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--green);
  z-index: 900;
  animation: fadeIn 0.4s ease;
}
.success-banner.show {
  display: block;
}

/* ═════════════════════════════════
   HOME PAGE — Game Catalog
   ═════════════════════════════════ */
#homePage {
  display: block;
}
#topupPage {
  display: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 70% 50%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 60% at 20% 80%,
      rgba(22, 163, 74, 0.08) 0%,
      transparent 70%
    );
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--border-h) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-h) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: glowPulse 2.5s infinite;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 13px 28px;
  border-radius: var(--r-xl);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.25s;
}
.hero-btn.primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #fff;
  border: none;
}
.hero-btn.primary:hover {
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.hero-btn.outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-h);
}
.hero-btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.hero-float-card {
  background: var(--glass);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 24px rgba(22, 163, 74, 0.12);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: "Material Symbols Outlined";
  color: var(--cyan);
}
.hero-float-label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-float-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

/* ── TRUST BADGES ── */
.trust-section {
  padding: 0 0 56px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.trust-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.trust-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: "Material Symbols Outlined";
  flex-shrink: 0;
}
.trust-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
}
.trust-icon.cyan {
  background: rgba(22, 163, 74, 0.12);
  color: var(--cyan);
}
.trust-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
}
.trust-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.trust-desc {
  font-size: 13px;
  color: var(--text-2);
}

/* ── GAME CATALOG SECTION ── */
.catalog-section {
  padding: 0 0 72px;
}
.catalog-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title-group {
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}
.section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.section-link:hover {
  color: #fff;
}
.section-link .mat-icon {
  font-size: 18px;
  font-family: "Material Symbols Outlined";
}

/* ── GAME GRID ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

/* ── GAME CARD ── */
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  animation: cardIn 0.4s ease both;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover,
.game-card:focus-visible,
.game-card:active {
  transform: scale(1.08);
  z-index: 3;
}
.game-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-card-h);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.game-card:hover .game-card-img-wrap {
  border-color: var(--card-color, rgba(139, 92, 246, 0.6));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--card-color, rgba(22, 163, 74, 0.4));
}
.game-card-emoji,
.game-card-emoji-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.game-card-emoji-fallback {
  display: none;
}
.game-card-icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.game-card-name {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── GAME GRID SKELETON ── */
.game-card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  aspect-ratio: 1/1;
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-card-h) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── HOME FOOTER ── */
.home-footer {
  background: var(--bg-low);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 56px 0 0;
}
.home-footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 18px;
  font-family: "Material Symbols Outlined";
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social-btn:hover {
  color: var(--purple);
  border-color: rgba(22, 163, 74, 0.4);
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links li a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
  display: inline-block;
}
.footer-links li a:hover {
  color: var(--text-1);
  transform: translateX(3px);
}
.footer-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-payment-chip {
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 24px;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-2);
}

/* ═════════════════════════════════
   TOPUP PAGE — Per-game
   ═════════════════════════════════ */

/* ── GAME HERO BANNER ── */
.game-hero {
  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: center;
  margin-top: var(--nav-h);
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 20, 37, 1) 0%,
    rgba(8, 20, 37, 0.5) 100%
  );
}
.game-hero-emoji {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}
.game-hero-emoji img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(1px) saturate(1.1);
}
.game-hero-emoji.is-emoji {
  font-size: 140px;
  filter: blur(2px);
}
.game-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.game-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.game-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 2px);
}
.game-hero-info {
}
.game-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.game-hero-back:hover {
  color: var(--text-1);
}
.game-hero-back .mat-icon {
  font-size: 16px;
  font-family: "Material Symbols Outlined";
}
.game-hero-name {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.game-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.chip.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.chip.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.chip.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.chip .mat-icon {
  font-size: 14px;
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 1;
}

/* ── TOPUP MAIN LAYOUT ── */
.topup-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.topup-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── STEP CARD ── */
.step-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.step-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.step-accent.purple {
  background: var(--purple);
}
.step-accent.cyan {
  background: var(--cyan);
}
.step-accent.green {
  background: var(--green);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.step-num.purple {
  background: var(--purple);
}
.step-num.cyan {
  background: var(--cyan);
}
.step-num.green {
  background: var(--green);
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

/* ── UID INPUT ── */
.uid-row {
  display: flex;
  gap: 12px;
}
.uid-field-wrap {
  flex: 1;
}
.field-label {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.field-input-wrap {
  position: relative;
}
.field-input {
  width: 100%;
  background: var(--bg-card-h);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-1);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field-input:focus {
  border-color: var(--purple);
}
.field-input::placeholder {
  color: var(--text-3);
}
.field-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.3s;
}
.field-input-wrap:focus-within .field-input-bar {
  width: 100%;
}
.field-hint {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 7px;
  font-style: italic;
}
.uid-verify-btn {
  align-self: flex-end;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  background: var(--bg-card-hh);
  border: 1.5px solid rgba(74, 222, 128, 0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.uid-verify-btn .mat-icon {
  font-size: 18px;
  font-family: "Material Symbols Outlined";
  transition: transform 0.2s;
}
.uid-verify-btn:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.4);
}
.uid-verify-btn:hover .mat-icon {
  transform: translateX(2px);
}
.uid-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: none;
  align-items: center;
  gap: 10px;
}
.uid-result.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.uid-result-icon {
  font-size: 20px;
  font-family: "Material Symbols Outlined";
  color: var(--green);
}
.uid-result-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
.uid-result-uid {
  font-size: 12px;
  color: var(--text-2);
}
.uid-result.loading {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.2);
}
.uid-result.warn {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}
.uid-result-loading,
.uid-result-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.uid-result-loading {
  color: var(--text-2);
}
.uid-result-warn {
  color: var(--amber);
}
.uid-result-loading .mat-icon,
.uid-result-warn .mat-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── CATEGORY TABS ── */
.cat-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.cat-scroll::-webkit-scrollbar {
  display: none;
}
.cat-tabs {
  display: flex;
  gap: 8px;
  width: max-content;
  padding-bottom: 2px;
}
.cat-tab {
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card-h);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.cat-tab:hover {
  color: var(--text-1);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}
.cat-tab.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

/* ── PRODUCT GRID ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.prod-card {
  background: var(--bg-card-h);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 8px 12px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  min-height: 112px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.prod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.prod-card:hover::before {
  opacity: 0.7;
}
.prod-card:hover {
  border-color: rgba(22, 163, 74, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.05);
}
.prod-card.selected {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  box-shadow:
    0 0 0 2.5px var(--purple),
    0 6px 28px rgba(139, 92, 246, 0.25);
}
.prod-card.selected::before {
  opacity: 1;
}
.prod-card.selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.prod-card.unavailable {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}
.prod-badge-empty {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 8px;
  font-weight: 700;
  color: var(--red);
  background: rgba(255, 70, 85, 0.12);
  border: 1px solid rgba(255, 70, 85, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prod-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    rgba(13, 31, 18, 0.8),
    rgba(21, 48, 26, 0.8)
  );
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  overflow: hidden;
}
.prod-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.prod-card:hover .prod-icon {
  transform: scale(1.1);
}
.prod-card.selected .prod-icon {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.2),
    rgba(16, 185, 129, 0.2)
  );
}
.prod-brand-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 5px;
  padding: 1.5px 6px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-name {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.prod-card.selected .prod-name {
  color: var(--text-1);
}
.prod-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.prod-card.selected .prod-price {
  color: var(--cyan);
}
.prod-cash-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  padding: 2px 7px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--amber);
}
.prod-skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-card-h) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-lg);
  min-height: 112px;
}
.prod-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 32px;
  font-size: 14px;
  color: var(--text-2);
}

/* ── PAYMENT METHOD ── */
.payment-section {
}
.payment-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 10px;
  padding: 0 2px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card-h);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  gap: 10px;
}
.payment-option:hover {
  background: var(--bg-card-hh);
  border-color: rgba(74, 222, 128, 0.2);
}
.payment-option.selected {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}
.payment-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.payment-option.selected .payment-radio {
  border-color: var(--cyan);
}
.payment-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s;
}
.payment-option.selected .payment-radio-dot {
  opacity: 1;
}
.payment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.payment-logo {
  height: 24px;
  min-width: 48px;
  max-width: 68px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-1);
  padding: 0 6px;
}
.payment-fee-badge {
  font-size: 10px;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}
/* Voucher input */
.voucher-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.voucher-row .field-input {
  flex: 1;
}
.voucher-apply-btn {
  padding: 12px 20px;
  border-radius: var(--r-lg);
  background: rgba(139, 92, 246, 0.1);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.voucher-apply-btn:hover {
  background: rgba(139, 92, 246, 0.18);
}
.voucher-msg {
  font-size: 12px;
  margin-top: 8px;
}
.voucher-msg.ok {
  color: var(--green);
}
.voucher-msg.err {
  color: var(--red);
}

/* ── ORDER SUMMARY SIDEBAR ── */
.order-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.summary-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.3);
}
.summary-head {
  background: rgba(22, 163, 74, 0.08);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-head-icon {
  font-size: 18px;
  font-family: "Material Symbols Outlined";
  color: var(--purple);
}
.summary-head-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.summary-body {
  padding: 20px 22px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 12px;
  gap: 10px;
}
.summary-row:last-of-type {
  margin-bottom: 0;
}
.summary-label {
  color: var(--text-2);
  flex-shrink: 0;
}
.summary-val {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}
.summary-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.summary-total-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.summary-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--r-xl);
  margin-top: 18px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
  transition: all 0.3s;
}
.summary-buy-btn:hover {
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.summary-buy-btn:active {
  transform: translateY(0);
}
.summary-buy-btn .mat-icon {
  font-size: 20px;
  font-family: "Material Symbols Outlined";
  transition: transform 0.2s;
}
.summary-buy-btn:hover .mat-icon {
  transform: translateX(3px);
}
.summary-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* How-to card */
.howto-card {
  margin-top: 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
}
.howto-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.howto-title .mat-icon {
  font-size: 17px;
  font-family: "Material Symbols Outlined";
}
.howto-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.howto-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.howto-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.howto-warn {
  color: var(--amber);
}

/* ── TOPUP LOADER ── */
.topup-loader-wrap {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 0;
  display: none;
}
.topup-loader-wrap.show {
  display: block;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(22, 163, 74, 0.2);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
.topup-loader-text {
  font-size: 13px;
  color: var(--text-2);
}

/* ── PAYMENT PAGE*/
.pay-page {
  display: none;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  padding: 28px 20px 80px;
}
.pay-page-inner {
  max-width: 540px;
  margin: 0 auto;
}
.pay-page-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 4px;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.pay-page-back:hover {
  color: var(--text-1);
}
.pay-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.35s ease;
}
.pay-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pay-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.pay-modal-body {
  padding: 24px;
}
.pay-qr-wrap {
  background: #fff;
  padding: 16px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.pay-qr-wrap img {
  width: 180px;
  height: 180px;
}
.pay-qr-wrap canvas {
  width: 180px !important;
  height: 180px !important;
}
.pay-countdown {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pay-countdown-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 20px;
}
.pay-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pay-amount-label {
  font-size: 13px;
  color: var(--text-2);
}
.pay-amount-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}
.pay-instruct {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-instruct-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.pay-instruct-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.pay-cancel-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-h);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.pay-cancel-btn:hover {
  background: var(--bg-card-hh);
  color: var(--text-1);
}

/* ── CASH PAGE ── */
.cash-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--r-2xl);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.35s ease;
  overflow: hidden;
}
.cash-modal-body {
  padding: 28px;
}

/* ═════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════ */

/* ── Desktop L >= 1400px ── */
@media (min-width: 1400px) {
  .game-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 22px;
  }
  .prod-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .topup-layout {
    grid-template-columns: 1fr 360px;
  }
}

/* ── Desktop M 1100-1399px ── */
@media (min-width: 1100px) and (max-width: 1399px) {
  .game-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
  }
  .prod-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .topup-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* ── Desktop S 860-1099px ── */
@media (min-width: 860px) and (max-width: 1099px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topup-layout {
    grid-template-columns: 1fr 300px;
  }
  .home-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .home-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ── Tablet 600-859px ── */
@media (min-width: 600px) and (max-width: 859px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .topup-layout {
    grid-template-columns: 1fr;
  }
  .order-sidebar {
    position: static;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-float-card {
    display: none;
  }
  .navbar-nav {
    display: none;
  }
  .navbar-search {
    max-width: 180px;
  }
  .navbar-badge {
    display: none;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile L 480-599px ── */
@media (min-width: 480px) and (max-width: 599px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .game-card-name {
    font-size: 11px;
    margin-top: 7px;
  }
  .game-card-emoji,
  .game-card-emoji-fallback {
    font-size: 30px;
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .prod-card {
    padding: 10px 5px 8px;
    min-height: 98px;
  }
  .prod-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .topup-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px 60px;
  }
  .order-sidebar {
    position: static;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-float-card {
    display: none;
  }
  .navbar-nav {
    display: none;
  }
  .navbar-search {
    display: none;
  }
  .navbar-badge {
    display: none;
  }
  .home-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .uid-row {
    flex-direction: column;
  }
  .uid-verify-btn {
    align-self: stretch;
    justify-content: center;
  }
  .game-hero {
    height: 180px;
  }
  .game-hero-icon {
    width: 60px;
    height: 60px;
    font-size: 34px;
  }
}

/* ── Mobile M 360-479px ── */
@media (min-width: 360px) and (max-width: 479px) {
  :root {
    --nav-h: 58px;
  }
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .game-card-name {
    font-size: 10px;
    margin-top: 6px;
    line-height: 1.2;
  }
  .game-card-badge {
    font-size: 7.5px;
    padding: 2px 5px;
  }
  .game-card-emoji,
  .game-card-emoji-fallback {
    font-size: 26px;
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .prod-card {
    padding: 9px 4px 8px;
    min-height: 92px;
  }
  .prod-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
    margin-bottom: 5px;
  }
  .prod-name {
    font-size: 9.5px;
  }
  .prod-price {
    font-size: 11.5px;
  }
  .prod-cash-badge {
    font-size: 8px;
  }
  .topup-layout {
    grid-template-columns: 1fr;
    padding: 14px 14px 56px;
    gap: 14px;
  }
  .order-sidebar {
    position: static;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trust-card {
    padding: 14px;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 28px);
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-float-card {
    display: none;
  }
  .hero-title {
    font-size: 28px;
  }
  .navbar-nav {
    display: none;
  }
  .navbar-search {
    display: none;
  }
  .navbar-badge {
    display: none;
  }
  .home-footer-grid {
    grid-template-columns: 1fr;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .uid-row {
    flex-direction: column;
  }
  .uid-verify-btn {
    align-self: stretch;
    justify-content: center;
  }
  .game-hero {
    height: 160px;
  }
  .game-hero-icon {
    width: 54px;
    height: 54px;
    font-size: 30px;
  }
  .game-hero-name {
    font-size: 22px;
  }
  .summary-total-val {
    font-size: 20px;
  }
  .container {
    padding: 0 16px;
  }
  .catalog-inner {
    padding: 0 16px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mobile XS < 360px ── */
@media (max-width: 359px) {
  :root {
    --nav-h: 56px;
  }
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .game-card-name {
    font-size: 9.5px;
    margin-top: 5px;
    line-height: 1.15;
  }
  .game-card-badge {
    font-size: 7px;
    padding: 1.5px 4px;
    top: 5px;
    right: 5px;
  }
  .game-card-emoji,
  .game-card-emoji-fallback {
    font-size: 24px;
  }
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .prod-card {
    padding: 8px 4px 7px;
    min-height: 86px;
  }
  .prod-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    margin-bottom: 4px;
  }
  .prod-name {
    font-size: 9px;
  }
  .prod-price {
    font-size: 11px;
  }
  .hero-title {
    font-size: 24px;
  }
  .game-hero {
    height: 140px;
  }
  .game-hero-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
  .game-hero-emoji {
    width: 180px;
    height: 180px;
  }
  .game-hero-emoji.is-emoji {
    font-size: 90px;
  }
  .topup-layout {
    padding: 12px 12px 50px;
  }
  .step-card {
    padding: 18px 14px;
  }
  .container {
    padding: 0 12px;
  }
  .catalog-inner {
    padding: 0 12px;
  }
}
