input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

@keyframes fade-in {
  from {
    background-color: rgba(0, 0, 0, 0);
  }

  to {
    background-color: rgba(0, 0, 0, 0.8);
  }
}

@keyframes fade-out {
  from {
    background-color: rgba(0, 0, 0, 0.8);
  }

  to {
    background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(500px);
  }

  to {
    transform: translateX(0px);
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0px);
  }

  to {
    transform: translateX(500px);
  }
}

/* Marquee Animation */
@keyframes marquee-y {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-50% - 1rem));
  }
}

.animate-marquee-y {
  animation: marquee-y 60s linear infinite;
}

.pause-on-hover:hover .animate-marquee-y {
  animation-play-state: paused;
}


html {
  background-color: #06070a;
  color: #ffffff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #1e2435 transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1e2435;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 87, 255, 0.4);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 87, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #06070a 0%, #080a0f 48%, #06070a 100%);
  color: white;
  font-family: "Outfit", system-ui, sans-serif;
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

#cart-drawer[data-state="open"]>div {
  animation: slide-in 0.4s forwards;
}


#cart-drawer[data-state="closed"]>div {
  animation: slide-out 0.4s forwards;
}

.dialog[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"]>div {
  animation: dialog-in 0.2s forwards;
}

.dialog[data-state="closed"]>div {
  animation: dialog-out 0.2s forwards;
}


@keyframes dialog-in {
  from {
    opacity: 0;
    scale: 50%;
  }

  to {
    opacity: 1;
    scale: 100%;
  }
}

@keyframes dialog-out {
  from {
    opacity: 1;
    scale: 100%;
  }

  to {
    opacity: 0;
    scale: 50%;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.dialog > div {
  max-height: 90vh;
  overflow: hidden;
}

.dialog > div > .p-6 {
  max-height: calc(90vh - 88px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

.centralcart-content {
  color: rgb(245 245 245);
  font-size: 1rem;
  line-height: 1.78;
  word-break: break-word;
  white-space: normal;
}

.centralcart-content > * + * {
  margin-top: 1.15rem;
}

.centralcart-content h1,
.centralcart-content h2,
.centralcart-content h3,
.centralcart-content h4,
.centralcart-content h5,
.centralcart-content h6 {
  color: white;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.9rem;
}

.centralcart-content h1 {
  font-size: 1.875rem;
}

.centralcart-content h2 {
  font-size: 1.5rem;
}

.centralcart-content h3 {
  font-size: 1.25rem;
}

.centralcart-content p {
  margin: 0.9rem 0;
}

.centralcart-content strong,
.centralcart-content b {
  color: white;
  font-weight: 700;
}

.centralcart-content ul,
.centralcart-content ol {
  margin: 1.1rem 0;
  padding-left: 1.7rem;
}

.centralcart-content li + li {
  margin-top: 0.6rem;
}

.centralcart-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.centralcart-content a:hover {
  color: hsl(var(--primary) / 0.9);
  opacity: 0.92;
}

.centralcart-content hr {
  border: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin: 1.25rem 0;
}

.centralcart-content ul li,
.centralcart-content ol li {
  padding-left: 0.15rem;
}

.centralcart-content blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.grid-background {
  background-image:
    linear-gradient(to right, hsla(0, 0%, 100%, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(0, 0%, 100%, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 0%, transparent 100%);
}

.custom-bg-mask {
  mask-image: linear-gradient(to bottom, hsl(var(--background)) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

@keyframes loading {
  0% {
    left: -50%;
  }

  to {
    left: 100%;
  }
}

/* Premium Design Tokens */
:root {
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px -5px hsl(var(--primary) / 0.3);
  --primary: 219 100% 50%;
  --secondary: 213 93% 68%;
  --primary-rgb: 0 87 255;
  --secondary-rgb: 96 165 250;
}

.shadow-premium {
  box-shadow: 
  0 0 0 1px rgba(255,255,255,0.05),
  0 10px 30px -10px rgba(0,0,0,0.7);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Advanced Micro-interactions */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: #0057ff;
  color: white;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 4px 18px rgba(0, 87, 255, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  pointer-events: none;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:active {
  transform: scale(0.95);
}

.package-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsl(var(--primary) / 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.package-card,
.card {
  background: #10131a;
  border: 1px solid #1e2435;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.package-card:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,87,255,0.35);
}

.package-thumb-frame {
  position: relative;
  aspect-ratio: 1 / 1.06;
  width: 100%;
  overflow: hidden;
  border-radius: 0.95rem 0.95rem 0 0;
  border-bottom: 1px solid rgba(0, 87, 255, 0.12);
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 87, 255, 0.16), transparent 52%),
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    #0a0d14;
  box-shadow:
    0 18px 38px -30px rgba(0, 0, 0, 0.9),
    0 0 24px -20px rgba(0, 87, 255, 0.68);
}

.package-thumb-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.package-thumb-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 48%, rgba(0,0,0,0.5) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 18%, transparent 82%, rgba(255,255,255,0.035));
}

.detail-dash {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

.hero-slide {
  background-position: center;
  background-size: cover;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.98) 0%, rgba(6, 7, 10, 0.88) 30%, rgba(6, 7, 10, 0.54) 56%, rgba(6, 7, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.25) 0%, rgba(6, 7, 10, 0.96) 100%),
    radial-gradient(circle at 20% 48%, rgba(0, 87, 255, 0.18), transparent 28rem);
}

.hero-arrow {
  position: absolute;
  top: 52%;
  z-index: 20;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-arrow:hover {
  border-color: rgba(0, 87, 255, 0.45);
  background: rgba(0, 87, 255, 0.55);
}

.hero-arrow--prev {
  left: clamp(1.5rem, 5vw, 4.5rem);
}

.hero-arrow--next {
  right: clamp(1.5rem, 5vw, 4.5rem);
}

.hero-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

.hero-dot.is-active {
  width: 1.75rem;
  background: #0057ff;
  box-shadow: 0 0 8px rgba(0, 87, 255, 0.8);
}

.featured-card {
  position: relative;
  min-height: 356px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #1e2435;
  background-color: #10131a;
  background-position: center;
  background-size: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(16, 19, 26, 0.3) 48%, #10131a 76%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 87, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 87, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.featured-card__badge,
.featured-card__instant,
.featured-card__platform,
.featured-card__body {
  position: absolute;
  z-index: 2;
}

.featured-card__badge {
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 0.35rem;
  background: #f97316;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1;
}

.featured-card__badge--rare {
  background: #f59e0b;
  color: #050505;
}

.featured-card__instant {
  right: 0.75rem;
  bottom: 7.25rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 87, 255, 0.48);
  background: rgba(0, 87, 255, 0.18);
  color: #60a5fa;
  padding: 0.3rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.featured-card__platform {
  left: 0.75rem;
  bottom: 7.25rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.7);
  color: #cbd5e1;
  padding: 0.3rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.featured-card__body {
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
}

.buygames-logo-icon {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.buygames-logo-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

@media (max-width: 420px) {
  #site-navbar > div:first-child {
    gap: 0.55rem;
    padding-inline: 0.7rem;
  }

  .buygames-wordmark {
    font-size: 17px !important;
    letter-spacing: -0.03em;
  }

  #site-navbar .open-cart,
  #site-navbar button[aria-label="Open search"] {
    width: 2.35rem;
    height: 2.35rem;
    padding-inline: 0;
  }

  #site-announcement > div > span:first-child {
    font-size: 0;
  }

  #site-announcement > div > span:first-child::after {
    content: "🎉";
    font-size: 1rem;
  }

  #site-announcement {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  #site-announcement > div {
    width: 100%;
    max-width: calc(100% - 1.75rem);
    gap: 0.35rem;
    padding-right: 0;
  }
}

.promo-time {
  display: grid;
  width: 3.5rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promo-label {
  margin-top: 0.35rem;
  color: #bfdbfe;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

@media (max-width: 767px) {
  .hero-arrow {
    display: none;
  }

  .featured-card {
    min-height: 320px;
  }
}

/* Sidebar categories */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 0.25rem;
}

.cat-dropdown {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.cat-dropdown:not(.hidden) {
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

#mobile-categories-dropdown:not(.hidden) {
  animation: slideInMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInMobile {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-subcategories:not(.hidden) {
  animation: slideInSub 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInSub {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sidebar categories */
