/* ==========================================================================
   GamerShop (gamershop.in) Custom Theme & Frame Design Tokens
   Mobile App Frame + Gold/Amber Luxury Surfaces
   ========================================================================== */
:root {
  --brand-primary: #f59e0b;
  --brand-secondary: #d97706;
  --brand-glow: rgba(245, 158, 11, 0.25);
  --brand-btn-text: #0f172a;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #eef1f6;
  color: #1e293b;
}

.font-brand {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.font-price {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .app-frame {
    border-radius: 40px;
    border: 8px solid #ffffff;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px #e2e8f0;
    margin: 20px auto;
    overflow: hidden;
  }
}

.app-notch {
  width: 110px;
  height: 18px;
  background: #e2e8f0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
}

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

.lux-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px var(--brand-glow);
}

.glow-gold {
  box-shadow: 0 0 24px var(--brand-glow);
}

.pack-card {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
}

.pack-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px var(--brand-glow);
}

.pack-card.selected {
  border: 1.5px solid var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 4px 16px -2px var(--brand-glow), 0 0 0 1px var(--brand-primary);
}

.pack-radio-indicator {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes themePaymentPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35), 0 14px 28px -6px var(--brand-glow); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0), 0 18px 34px -4px var(--brand-glow); }
}

.btn-highlight-glow {
  animation: themePaymentPulseGlow 2s infinite ease-in-out;
}

.pending-banner-pulse {
  animation: themePaymentPulseGlow 2.4s infinite ease-in-out;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.shake { animation: shakeX 0.35s ease-in-out; }

/* ==========================================================================
   Download & Save QR CTA Button — Multi-Layer Shine, Rotating Gold Border & Beacon Halo
   ========================================================================== */
@property --gs-dl-rot {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes gsQrDlBorderSpin {
  0% { --gs-dl-rot: 0deg; }
  100% { --gs-dl-rot: 360deg; }
}

@keyframes gsQrDlBgFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gsQrDlHalo {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px -2px rgba(245, 158, 11, 0.38), 0 0 0 0 rgba(245, 158, 11, 0.52);
  }
  50% {
    transform: translateY(-1px) scale(1.018);
    box-shadow: 0 12px 28px -2px rgba(245, 158, 11, 0.56), 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

@keyframes gsQrDlShineA {
  0% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  14% { opacity: 0.82; }
  46% { transform: translateX(300%) skewX(-24deg); opacity: 0; }
  100% { transform: translateX(300%) skewX(-24deg); opacity: 0; }
}

@keyframes gsQrDlShineB {
  0%, 18% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  30% { opacity: 0.48; }
  60% { transform: translateX(300%) skewX(-24deg); opacity: 0; }
  100% { transform: translateX(300%) skewX(-24deg); opacity: 0; }
}

@keyframes gsQrDlIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

.qr-dl-cta {
  position: relative;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  background-image: linear-gradient(110deg, #0f172a 0%, #1e293b 32%, #332507 52%, #1e293b 72%, #0f172a 100%);
  background-size: 240% 240%;
  animation: gsQrDlBgFlow 4.2s ease-in-out infinite, gsQrDlHalo 2s ease-in-out infinite;
  will-change: transform;
}

.qr-dl-cta::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 14px;
  padding: 2.5px;
  background: conic-gradient(from var(--gs-dl-rot, 0deg), #f59e0b, #fde047, #ffffff, #fbbf24, #f59e0b, #10b981, #fde047, #f59e0b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gsQrDlBorderSpin 2.2s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.qr-dl-cta > *:not(.qr-dl-shine-clip) {
  position: relative;
  z-index: 2;
}

.qr-dl-shine-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.qr-dl-beam-a {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 38%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(253, 224, 71, 0.22) 32%, rgba(255, 255, 255, 0.62) 50%, rgba(253, 224, 71, 0.18) 70%, rgba(255, 255, 255, 0) 100%);
  animation: gsQrDlShineA 2.8s ease-in-out infinite;
}

.qr-dl-beam-b {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 24%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(251, 191, 36, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  animation: gsQrDlShineB 2.8s ease-in-out infinite;
}

.qr-dl-cta #qrDownloadIcon {
  animation: gsQrDlIconFloat 1.5s ease-in-out infinite;
}

.qr-dl-cta.bg-emerald-600 {
  background-image: linear-gradient(110deg, #059669 0%, #10b981 50%, #059669 100%);
}

.qr-dl-cta.bg-emerald-600::before {
  background: conic-gradient(from var(--gs-dl-rot, 0deg), #10b981, #a7f3d0, #ffffff, #34d399, #10b981);
}

@media (prefers-reduced-motion: reduce) {
  .qr-dl-cta, .qr-dl-cta::before, .qr-dl-beam-a, .qr-dl-beam-b, .qr-dl-cta #qrDownloadIcon {
    animation: none !important;
  }
}

/* ==========================================================================
   Core Web Vitals CLS Zero-Shift Guards (FontAwesome & Deferred Pack Grid)
   ========================================================================== */
.fa-solid, .fa-regular, .fa-brands {
  display: inline-block;
  min-width: 1em;
  text-align: center;
}

#packListContainer {
  min-height: 494px;
}
