/* ============================================================
   Kenor TopUp — Premium Cyber Gaming Store Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Surface palette */
  --bg-deep:            #08050d;
  --bg-surface:         #11091b;
  --bg-card:            #170d24;
  --bg-card-hover:      #221334;
  --bg-card-solid:      #140b1f;
  --bg-card-glass:      rgba(20, 11, 31, 0.88);

  /* Vibrant Cyber Neon palette for Kenor TopUp */
  --color-primary:      #f43f5e;
  --color-primary-light:#fb7185;
  --color-primary-glow: rgba(244, 63, 94, 0.35);
  --color-cyan:         #06b6d4;
  --color-cyan-light:   #22d3ee;
  --color-cyan-glow:    rgba(6, 182, 212, 0.35);
  --color-secondary:    #ec4899;
  --color-accent:       #38bdf8;
  --color-gold:         #fbbf24;
  --color-gold-glow:    rgba(251, 191, 36, 0.35);
  
  --color-success:      #10b981;
  --color-success-light:#34d399;
  --color-danger:       #ef4444;
  --color-warning:      #f59e0b;

  /* Typography */
  --color-text:         #ffffff;
  --color-text-secondary:#e5ded0;
  --color-muted:        #a398b3;
  --color-subtle:       #6b5a80;

  /* Borders */
  --color-border:       rgba(244, 63, 94, 0.18);
  --color-border-subtle:rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(34, 211, 238, 0.5);
  --color-border-gold:  rgba(251, 191, 36, 0.45);

  /* Gradients */
  --gradient-btn:       linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #06b6d4 100%);
  --gradient-btn-hover: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #22d3ee 100%);
  --gradient-cyan:      linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-pink:      linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  --gradient-gold:      linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gradient-card:      linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(244, 63, 94, 0.02) 100%);
  --gradient-ticker:    linear-gradient(90deg, #be123c 0%, #06b6d4 50%, #be123c 100%);

  /* Dimensions & Radius */
  --radius-xs:          6px;
  --radius-sm:          10px;
  --radius-md:          16px;
  --radius-lg:          20px;
  --radius-xl:          26px;
  --radius-full:        9999px;

  /* Fonts */
  --font:               'Kantumruy Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display:       'Outfit', 'Kantumruy Pro', sans-serif;
  --font-mono:          'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm:          0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card:        0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-card-hover:  0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(6, 182, 212, 0.25);
  --shadow-btn:         0 4px 20px rgba(244, 63, 94, 0.45);

  --transition:         all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #3d2449; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select { font-family: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Live Ticker Marquee Bar ───────────────────────────────── */
.news-ticker-bar {
  background: var(--gradient-ticker);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
  position: relative;
  z-index: 1001;
}

.news-ticker-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.news-ticker-tag {
  background: #ffffff;
  color: #be123c;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.marquee-text {
  display: inline-block;
  animation: marquee 25s linear infinite;
  padding-left: 20px;
}

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

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(21, 14, 28, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
}

.logo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.logo-text span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(225, 29, 72, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.5);
  color: #ffffff;
}

/* ── Mobile Menu Drawer & Backdrop ────────────────────────── */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 4, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1080;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #180f22 0%, #0d0714 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.85);
  z-index: 1090;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:active {
  transform: scale(0.92);
  color: #ffffff;
  background: rgba(225, 29, 72, 0.3);
}

.mobile-drawer-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-item:active,
.mobile-nav-item.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(225, 29, 72, 0.05) 100%);
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.2);
}

.mobile-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: var(--gradient-btn);
  color: #ffffff;
}

.mobile-nav-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mobile-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.mobile-nav-sub {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 2px;
}

.mobile-nav-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}

.mobile-nav-item:active .mobile-nav-arrow {
  transform: translateX(3px);
  color: var(--color-gold);
}

.mobile-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.mobile-drawer-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-gold);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
}

.mobile-action-card.telegram-card {
  background: linear-gradient(135deg, rgba(30, 150, 220, 0.2) 0%, rgba(30, 150, 220, 0.05) 100%);
  border-color: rgba(30, 150, 220, 0.4);
}

.mobile-action-card.telegram-card i {
  font-size: 22px;
  color: #38bdf8;
}

.mobile-action-card.policy-card i {
  font-size: 18px;
  color: var(--color-gold);
}

.action-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.action-card-sub {
  font-size: 11px;
  color: var(--color-muted);
}

.mobile-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.6);
  transform: translateY(-2px);
}

.btn-pink {
  background: var(--gradient-pink);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1a0f00;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  border-color: var(--color-border-subtle);
}

.btn-ghost:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(225, 29, 72, 0.1);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Banner Carousel Section ───────────────────────────────── */
.banner-carousel-section {
  padding: 24px 0 16px;
}

.banner-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  background: #181021;
}

.banner-slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 21/9;
  min-height: 200px;
  max-height: 380px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
}

.banner-img-wrap {
  position: absolute;
  inset: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 8, 17, 0.1) 0%, rgba(13, 8, 17, 0.88) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 28px 36px;
  max-width: 650px;
}

.banner-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.banner-subtitle {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-btn);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 800;
}

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(21, 14, 28, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.banner-nav-btn:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.banner-prev { left: 14px; }
.banner-next { right: 14px; }

.banner-dots {
  position: absolute;
  bottom: 14px;
  right: 24px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  width: 22px;
  background: var(--color-primary-light);
}

/* ── Category Filter Pills (CryBaby Store Style) ────────────── */
.category-filter-wrap {
  padding: 16px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filter-wrap::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.category-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: #1e1429;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.category-pill:hover {
  border-color: var(--color-primary);
  color: #ffffff;
  background: #281938;
}

.category-pill.active {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.45);
}

.category-pill.hot {
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
  background: #1e132b;
}

.category-pill.hot:hover {
  background: #2b183b;
  border-color: #f43f5e;
  color: #ffffff;
}

.category-pill.hot.active {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.55);
}

/* ── Game Catalog Title Header ─────────────────────────────── */
.games-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(244, 63, 94, 0.2);
}

.games-title-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.games-title-text span {
  color: var(--color-primary-light);
}

/* ── Authentic Game Cards Grid ─────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.game-card {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #1a1124;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.game-card.selected {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px var(--color-primary-light), 0 10px 30px rgba(225, 29, 72, 0.5);
  background: #251633;
}

.game-card-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #2c1840 0%, #150c21 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.game-card-emoji {
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Region / Flag Badge on Card */
.game-card-flag-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(13, 8, 17, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.game-card-name {
  padding: 12px 12px 4px;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.game-card-btn-wrap {
  padding: 8px 12px 12px;
  margin-top: auto;
}

.game-card-action-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
  transition: var(--transition);
}

.game-card:hover .game-card-action-btn {
  background: var(--gradient-btn-hover);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.55);
}

/* ── Product / Denomination Cards ──────────────────────────── */
.products-grid,
.packages-2col-grid,
.weekly-pass-grid,
#diamonds-grid,
#weekly-pass-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

.product-card {
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: #1c1325;
  padding: 12px 10px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 94px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  border-color: var(--color-primary-light);
  background: #251833;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.product-card.selected {
  border-color: var(--color-primary-light);
  background: rgba(225, 29, 72, 0.16);
  box-shadow: 0 0 0 2px var(--color-primary-light), 0 6px 20px rgba(225, 29, 72, 0.4);
}

/* 2-Column Product Card Layout */
.product-card-2col {
  cursor: pointer;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, #1c1228 0%, #140c1f 100%);
  padding: 10px 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.product-card-2col:hover:not(.out-of-stock) {
  border-color: var(--color-primary-light);
  background: linear-gradient(135deg, #27173a 0%, #1a102a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
}

.product-card-2col.selected {
  border-color: var(--color-primary-light);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18) 0%, #1f112a 100%);
  box-shadow: 0 0 0 2px var(--color-primary-light), 0 6px 22px rgba(225, 29, 72, 0.35);
}

.product-card-2col.selected .pkg-2col-thumb {
  border-color: var(--color-primary-light);
  background: rgba(225, 29, 72, 0.2);
}

.product-card-2col.pass-card {
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #241438 0%, #170d24 100%);
}

.product-card-2col.pass-card:hover:not(.out-of-stock) {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #2e1a47 0%, #1f1130 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.product-card-2col.pass-card.selected {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, #221233 100%);
  box-shadow: 0 0 0 2px #f59e0b, 0 6px 22px rgba(245, 158, 11, 0.35);
}

.pkg-2col-thumb {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.pkg-diamond-3d,
.pkg-pass-3d {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.pkg-2col-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0%;
  justify-content: center;
  overflow: hidden;
}

.pkg-2col-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 2px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg-2col-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.pkg-2col-usd {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  white-space: nowrap;
}

.pkg-2col-khr {
  font-size: 9.5px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Out of Stock Styling */
.product-card-2col.out-of-stock,
.pass-card.out-of-stock {
  opacity: 0.42;
  filter: grayscale(0.7);
  cursor: not-allowed !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  background: #130c1b !important;
}

.product-card-2col.out-of-stock:hover,
.pass-card.out-of-stock:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.pkg-out-tag {
  position: absolute;
  top: -6px;
  right: 6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 6.5px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  letter-spacing: 0.2px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

/* Compact Product Card Elements */
.compact-product-card {
  padding: 10px 8px 8px;
  background: linear-gradient(180deg, #1d1329 0%, #150d1e 100%);
}

.pkg-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.pkg-icon {
  font-size: 18px;
  line-height: 1;
}

.pkg-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pkg-card-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.pkg-usd {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1.1;
}

.pkg-khr {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 1px;
}

.pkg-bonus-tag {
  position: absolute;
  top: -6px;
  right: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
  z-index: 2;
}

.pkg-hot-tag {
  position: absolute;
  top: -6px;
  right: 6px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
  z-index: 2;
}

/* Package Filter Bar & Search */
.package-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.package-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.package-filter-tabs::-webkit-scrollbar {
  display: none;
}

.pkg-tab {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #170e22;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pkg-tab:hover {
  color: #ffffff;
  border-color: var(--color-primary-light);
  background: #231533;
}

.pkg-tab.active {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

.package-extra-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.package-search-wrap {
  position: relative;
  min-width: 180px;
  flex: 1;
  max-width: 240px;
}

.package-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 12px;
  pointer-events: none;
}

.package-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: var(--radius-full);
  background: #140c1d;
  border: 1px solid var(--color-border);
  color: #ffffff;
  font-size: 12px;
  transition: var(--transition);
}

.package-search-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
  background: #1b1026;
}

/* Stock Visibility Toggle */
.stock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #170e22;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.stock-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.stock-toggle-btn input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Compact Weekly Pass Cards */
.compact-pass-card {
  padding: 14px 10px 10px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #241537 0%, #170d23 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98px;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.compact-pass-card .pass-badge {
  top: -7px;
  right: 8px;
  font-size: 9px;
  padding: 1.5px 6px;
}

.pass-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.pass-icon-mini {
  font-size: 20px;
}

.pass-name-compact {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.pass-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.pass-price-compact {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
}

.pass-khr-compact {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 1px;
}

/* ── Top-Up Wizard Layout ──────────────────────────────────── */
.wizard-card {
  background: var(--bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  max-width: 960px;
  margin: 0 auto;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto 36px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(244, 63, 94, 0.2);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-muted);
  transition: var(--transition);
}

.step-item.active .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
}

.step-item.completed .step-num {
  background: var(--color-success);
  border-color: var(--color-success-light);
  color: #ffffff;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
}

.step-item.active .step-label {
  color: var(--color-primary-light);
}

.step-item.completed .step-label {
  color: var(--color-success-light);
}

.step-panel {
  display: none;
  animation: fadeIn 0.22s ease both;
}

.step-panel.active {
  display: block;
}

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

/* ── Form Inputs ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #110b17;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: #170f20;
}

.input-with-btn {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-with-btn .form-input {
  flex: 1;
}

/* ── ABA KHQR Ticket ───────────────────────────────────────── */
.khqr-ticket {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  color: #111827;
  text-align: center;
}

.khqr-header {
  background: #E11D48;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.khqr-body { padding: 22px 20px; }

.khqr-merchant {
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  margin-bottom: 2px;
}

.khqr-outlet {
  font-size: 11.5px;
  color: #6b7280;
  margin-bottom: 14px;
}

.khqr-code-box {
  background: #ffffff;
  padding: 6px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}

.khqr-price-box {
  border-top: 1px dashed #e5e7eb;
  padding-top: 12px;
}

.khqr-price-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.khqr-price-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #E11D48;
}

.khqr-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F7B4F;
  background: #ECFDF5;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-top: 8px;
}

.qr-countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  max-width: 220px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 700;
}

.qr-countdown-box span {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
}

/* ── Order Summary ─────────────────────────────────────────── */
.order-summary {
  background: #181021;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-summary-row:last-child {
  border-bottom: none;
}

.order-summary-label {
  font-size: 13px;
  color: var(--color-muted);
}

.order-summary-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.order-summary-total {
  padding-top: 14px;
  margin-top: 4px;
}

.order-summary-total .order-summary-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-gold);
}

/* ── Alerts & Feedback ─────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
}

.alert-info {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ecfdf5;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fef2f2;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fffbeb;
}

/* ── General Modal Backdrop (Centered Over Screen) ──────────── */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(8, 4, 15, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal-backdrop.hidden {
  display: none !important;
}

/* ── Policy Modal Specific UI/UX Styling ────────────────────── */
.policy-modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 63, 94, 0.3);
  position: relative;
  background: #140d21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-sizing: border-box;
}

.policy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.policy-modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.policy-modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: #f43f5e;
}

/* Segmented Switch Control for Mobile Policy Modal */
.policy-segmented-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.policy-segment-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.policy-segment-btn.active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45);
}

.policy-modal-body {
  overflow-y: auto;
  padding-right: 4px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.65;
}

.policy-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.policy-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.policy-list-item:last-child {
  margin-bottom: 0;
}

.policy-item-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #1f142b;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  font-weight: 600;
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.removing { animation: toastOut 0.25s ease both; }

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

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Floating Contact Bar ──────────────────────────────────── */
.floating-contact-bar {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.floating-contact-btn:hover {
  transform: scale(1.12) translateY(-2px);
}

.floating-contact-btn.telegram { background: #229ED9; }
.floating-contact-btn.facebook { background: #1877F2; }
.floating-contact-btn.tiktok   { background: #111111; color: #FE2C55; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1.5px solid var(--color-border);
  padding: 48px 20px 32px;
  background: #09050d;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links, .footer-social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a, .footer-social-links a {
  font-size: 13.5px;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover, .footer-social-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--color-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Skeleton ──────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hidden { display: none !important; }

/* ── Direct Top-Up Single Screen Flow Styles ──────────────── */
.direct-topup-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0 60px;
}

.direct-game-hero {
  background: linear-gradient(135deg, #1f132b 0%, #150d1e 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.direct-game-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.direct-hero-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.direct-hero-img-wrap {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--color-primary-light);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.35);
  background: #110b17;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.direct-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direct-hero-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.direct-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.hero-tag-region { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.hero-tag-instant { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.hero-tag-secure  { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Section Cards (Step 1, 2, 3, 4) */
.direct-section-card {
  background: var(--bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.direct-section-card:hover {
  border-color: rgba(225, 29, 72, 0.35);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
}

.section-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
  flex-shrink: 0;
}

.section-title-wrap h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.section-title-wrap p {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Weekly Pass Specific Styling */
.pass-card {
  cursor: pointer;
  background: linear-gradient(135deg, #241438 0%, #170d24 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pass-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, #2e1a47 0%, #1f1130 100%);
}

.pass-card.selected {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, #221233 100%);
  box-shadow: 0 0 0 2px #f59e0b, 0 6px 22px rgba(245, 158, 11, 0.35);
}

.pass-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.pass-icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.pass-name {
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pass-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
}

.pass-khr {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Payment Method Section (Screenshot #1 Style) */
.payment-method-section {
  background: #16202f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.payment-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.payment-method-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-header-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #0d1624;
  border: 1.5px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.payment-header-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.payment-header-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

/* Payment Method Selection Card (Screenshot #1) */
.payment-selector-card.aba-khqr-card-style {
  border: 1.5px solid #d4af37;
  background: #111a26;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 175, 55, 0.15);
  transition: var(--transition);
}

.payment-selector-card.aba-khqr-card-style:hover {
  border-color: #facc15;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(250, 204, 21, 0.25);
}

.payment-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-app-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #005e82;
}

.aba-khqr-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.payment-info-wrap {
  display: flex;
  flex-direction: column;
}

.payment-title-aba {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.payment-sub-aba {
  font-size: 13.5px;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.3;
}

/* Agreement Terms Checkbox (Matches Screenshot #2) */
.terms-agreement-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(225, 29, 72, 0.22);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terms-agreement-box:hover {
  background: rgba(225, 29, 72, 0.05);
  border-color: rgba(225, 29, 72, 0.4);
}

.terms-checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: #f43f5e;
  margin-top: 2px;
  cursor: pointer;
  border-radius: 6px;
}

.terms-agreement-label {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

/* Direct Checkout Bar */
.direct-checkout-summary {
  background: #150d1e;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.checkout-total-info {
  display: flex;
  flex-direction: column;
}

.checkout-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  font-weight: 700;
}

.checkout-total-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1.2;
}

.checkout-total-khr {
  font-size: 12px;
  color: var(--color-muted);
}

.checkout-submit-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.45);
  transition: var(--transition);
}

.checkout-submit-btn:hover:not(:disabled) {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(225, 29, 72, 0.65);
}

.checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════
   SCREENSHOT #2 & #3: AUTHENTIC KHQR BOTTOM SHEET / MODAL UI
   ══════════════════════════════════════════════════════════════════ */
.khqr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.khqr-modal-backdrop.hidden {
  display: none !important;
}

.khqr-modal-sheet {
  background: #ffffff;
  color: #111827;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  position: relative;
  animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-height: 94vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .khqr-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .khqr-modal-sheet {
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes modalPopIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Red KHQR Top Header Band */
.khqr-sheet-header {
  background: #E11E26;
  color: #ffffff;
  padding: 10px 18px 12px;
  text-align: center;
  position: relative;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.khqr-drag-notch {
  width: 44px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  margin: 0 auto 8px;
}

.khqr-brand-logo {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.khqr-sheet-close-btn {
  position: absolute;
  right: 14px;
  top: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.khqr-sheet-close-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

/* KHQR Sheet Body */
.khqr-sheet-body {
  padding: 20px 24px 24px;
  text-align: center;
  background: #ffffff;
}

.khqr-merchant-title {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.khqr-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.khqr-amount-val {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.khqr-amount-cur {
  font-size: 18px;
  font-weight: 700;
  color: #475569;
}

.khqr-dashed-sep {
  border: none;
  border-top: 1.5px dashed #e2e8f0;
  margin: 12px 0 16px;
  width: 100%;
}

.khqr-qr-stage {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #e5e7eb;
  position: relative;
  margin-bottom: 12px;
}

.khqr-qr-stage img, .khqr-qr-stage canvas {
  display: block !important;
  border-radius: 8px;
}

.khqr-scan-prompt {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}

.khqr-or-text {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
}

.khqr-aba-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #005f83 0%, #0077a3 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 95, 131, 0.4);
  width: 100%;
  max-width: 290px;
  margin: 0 auto 10px;
  text-decoration: none;
}

.khqr-aba-launch-btn:hover {
  background: linear-gradient(135deg, #004d6b 0%, #00668c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 95, 131, 0.55);
}

.khqr-aba-badge-icon {
  background: #ffffff;
  color: #005f83;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.khqr-download-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  width: 100%;
  max-width: 270px;
  margin: 0 auto 8px;
  text-decoration: none;
}

.khqr-download-action-btn:hover {
  background: #0369a1;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

.khqr-app-hint {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto 14px;
}

.khqr-polling-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.khqr-spinner-cyan {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0284c7;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   SCREENSHOT #3: SCANNED VIEW (QR Code is Scanned)
   ══════════════════════════════════════════════════════════════════ */
.scanned-sheet-body {
  padding: 32px 24px 32px;
  text-align: center;
  background: #ffffff;
}

.scanned-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #eff6ff;
  border: 2px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 28px rgba(2, 132, 199, 0.15);
  animation: pulseSoft 2s infinite ease-in-out;
}

@keyframes pulseSoft {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.2); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(2, 132, 199, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.scanned-qr-glyph {
  font-size: 40px;
  color: #0284c7;
}

.scanned-check-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #10b981;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.scanned-title-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.2;
}

.scanned-subtitle-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto 20px;
}

.scanned-spinner-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #bae6fd;
}

/* ── Selection Checkmark Badge on Cards ───────────────────── */
.card-check-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--color-primary-light);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.6);
  border: 2px solid #ffffff;
  z-index: 10;
  animation: checkPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pass-card.selected .card-check-badge,
.product-card.selected .card-check-badge {
  display: flex;
}

@keyframes checkPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Mobile Sticky Bottom Checkout Bar (Topup Standard UX) ── */
.mobile-sticky-checkout-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-sticky-checkout-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 850;
    background: rgba(18, 11, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid var(--color-border);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-sticky-checkout-bar.active {
    transform: translateY(0);
  }

  .mobile-sticky-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

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

  .mobile-sticky-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-sticky-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
  }

  .mobile-sticky-usd {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1.1;
  }

  .mobile-sticky-khr {
    font-size: 11px;
    color: var(--color-muted);
  }

  .mobile-sticky-btn {
    padding: 11px 20px;
    border-radius: var(--radius-full);
    background: var(--gradient-btn);
    color: #ffffff;
    border: none;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
  }

  .mobile-sticky-btn:active {
    transform: scale(0.96);
  }

  .mobile-sticky-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

/* ── Responsive Refinements ────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: inline-flex !important; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game-card-name { font-size: 11.5px; padding: 6px 4px 2px; }
  .game-card-action-btn { font-size: 10.5px; padding: 5px 6px; }
  .game-card-btn-wrap { padding: 4px 6px 8px; }
  
  /* Clean Responsive Grid for Mobile/Tablet */
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .compact-product-card { padding: 8px 6px 6px; min-height: 84px; }
  .pkg-icon { font-size: 16px; }
  .pkg-title { font-size: 10.5px; }
  .pkg-usd { font-size: 14px; }
  .pkg-khr { font-size: 9px; }
  
  .compact-pass-card { padding: 12px 8px 8px; min-height: 88px; }
  .pass-name-compact { font-size: 11px; }
  .pass-price-compact { font-size: 15px; }
  .pass-khr-compact { font-size: 9.5px; }
  
  .package-controls-bar { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .package-filter-tabs { width: 100%; justify-content: flex-start; }
  .package-search-wrap { max-width: 100%; min-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .banner-content { padding: 18px 48px; }
  .banner-title { font-size: clamp(16px, 4.2vw, 24px); }
  .direct-section-card { padding: 16px 12px; border-radius: var(--radius-lg); margin-bottom: 16px; }
  .direct-game-hero { flex-direction: column; align-items: flex-start; padding: 16px; }
  .direct-checkout-summary { flex-direction: column; align-items: stretch; padding: 14px; }
  .checkout-submit-btn { width: 100%; justify-content: center; min-height: 48px; }
  
  /* Give bottom padding on mobile topup page so sticky bar doesn't overlap content */
  .direct-topup-wrap { padding-bottom: 90px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  
  .product-card-2col {
    padding: 8px 8px;
    gap: 8px;
    min-height: 60px;
  }
  .pkg-2col-thumb {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    border-radius: 8px;
  }
  .pkg-diamond-3d,
  .pkg-pass-3d {
    width: 22px;
    height: 22px;
  }
  .pkg-2col-name {
    font-size: 11px;
    margin-bottom: 2px;
  }
  .pkg-2col-usd {
    font-size: 13.5px;
  }
  .pkg-2col-khr {
    font-size: 8.5px;
  }
  .pass-badge,
  .pkg-out-tag,
  .pkg-bonus-tag,
  .pkg-hot-tag {
    font-size: 8px;
    padding: 1px 5px;
    top: -5px;
    right: 5px;
  }

  .compact-product-card { padding: 7px 4px 5px; min-height: 80px; }
  .pkg-icon { font-size: 14px; }
  .pkg-title { font-size: 10px; }
  .pkg-usd { font-size: 13.5px; }
  .pkg-khr { font-size: 8.5px; }
  
  .pkg-tab { padding: 5px 9px; font-size: 11px; }
  .package-search-input { font-size: 11.5px; padding: 6px 10px 6px 30px; }
  
  .direct-hero-title { font-size: 18px; }
  .section-head { gap: 10px; margin-bottom: 12px; padding-bottom: 8px; }
  .section-title-wrap h3 { font-size: 15px; }
}

@media (max-width: 360px) {
  .products-grid,
  .packages-2col-grid,
  .weekly-pass-grid,
  #diamonds-grid,
  #weekly-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .product-card-2col {
    padding: 7px 6px;
    gap: 6px;
    min-height: 56px;
  }
  .pkg-2col-thumb {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    border-radius: 7px;
  }
  .pkg-diamond-3d,
  .pkg-pass-3d {
    width: 18px;
    height: 18px;
  }
  .pkg-2col-name {
    font-size: 10.5px;
  }
  .pkg-2col-usd {
    font-size: 12.5px;
  }
  .pkg-2col-khr {
    font-size: 8px;
  }
}

/* FAQ Section & Accordion Styles */
.faq-section {
  padding: 48px 0 64px;
  background: rgba(18, 12, 25, 0.8);
  border-top: 1px solid var(--color-border);
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.faq-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-header-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #1a1124;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.22s ease;
}

.faq-item:hover {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faq-item[open] {
  border-color: var(--color-primary-light);
  background: #1e132b;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.15);
}

.faq-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none;
  content: "";
}

.faq-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.faq-chevron {
  font-size: 13px;
  color: var(--color-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.faq-content {
  padding: 0 20px 18px 58px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.65;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  padding-top: 14px;
}

@media (max-width: 640px) {
  .faq-section { padding: 36px 0 48px; }
  .faq-header-title { font-size: 20px; }
  .faq-summary { padding: 14px 16px; font-size: 14px; }
  .faq-content { padding: 0 16px 16px 16px; font-size: 13px; }
}
