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);
  }
}

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);
}

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

.grid-background {
  background-image: linear-gradient(to right,hsla(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)
}

.custom-bg-mask {
	mask-image: linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0));
}

@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

.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;
}

/* Card do programa de afiliados (Ganhar dinheiro) */
.affiliate-cta {
  background-image: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.22) 0%,
    hsl(var(--primary) / 0.05) 45%,
    hsl(var(--primary) / 0.18) 100%
  );
}

.affiliate-cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  animation: affiliate-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes affiliate-shine {
  0% {
    left: -45%;
  }

  55%,
  100% {
    left: 125%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-cta::after {
    animation: none;
  }
}

/* Painel do afiliado (/account/affiliate) */
.aff-card {
  border: 1px solid rgb(var(--foreground) / 0.08);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.015));
  border-radius: 1rem;
}

.aff-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 140% at 100% 0%, hsl(var(--primary) / 0.35) 0%, transparent 55%),
    linear-gradient(135deg, hsl(var(--primary) / 0.16), rgb(255 255 255 / 0.02));
}

.aff-wallet {
  border: 1px solid hsl(var(--primary) / 0.45);
  background:
    radial-gradient(100% 120% at 0% 0%, hsl(var(--primary) / 0.28) 0%, transparent 60%),
    rgb(255 255 255 / 0.03);
  box-shadow: 0 18px 40px -24px hsl(var(--primary) / 0.7);
  border-radius: 1rem;
}

.aff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--primary));
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.25);
}

.aff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.3);
}

.aff-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: hsl(var(--primary));
  color: #fff;
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.15);
}

.aff-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgb(var(--foreground) / 0.1);
  background: rgb(255 255 255 / 0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.aff-share-btn:hover {
  border-color: hsl(var(--primary) / 0.6);
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

/* Navbar centralizada com bordas arredondadas */
.navbar-primary .text-muted-foreground {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-primary .nav-link[data-active="true"] {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* 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);
  }
}

/* Support floating button – popover e CTA */
.support-floating-popover {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-floating-popover.support-floating-popover-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Card de suporte bloqueado (fora do horário) */
.support-card-disabled {
  pointer-events: none;
  cursor: not-allowed;
  border-color: rgb(255 255 255 / 0.06) !important;
  background: #252532 !important;
  opacity: 0.92;
}

.support-card-disabled .text-white {
  color: rgb(161 161 170) !important;
}

.support-card-disabled [class*="text-zinc-400"],
.support-card-disabled [class*="text-zinc-500"] {
  color: rgb(113 113 122) !important;
}

.support-card-disabled:hover {
  border-color: rgb(255 255 255 / 0.06) !important;
  background: #252532 !important;
  transform: none;
}

.support-floating-btn-pill:hover {
  transform: translateY(-1px);
  background-color: #9d5cf5 !important;
  box-shadow: 0 20px 25px -5px rgba(143, 67, 243, 0.5) !important;
}

.support-floating-btn-pill:active {
  transform: translateY(0);
}

.support-floating-btn-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #1E1E2E, 0 0 0 4px #8F43F3 !important;
}

.support-card:not(.support-card-disabled):hover.support-card-hover-bg {
  background-color: #353547 !important;
}

/* Sidebar categoies */

/* Hero: Keen Slider aplica min-height:100% nos slides (estica além da imagem → faixa escura no mobile) */
#hero-banner-slider.keen-slider {
  align-items: flex-start;
}
#hero-banner-slider.keen-slider .keen-slider__slide {
  min-height: 0;
}

.social-proof-popup__card--visible {
  transform: translateY(0);
  opacity: 1;
}

/* Categoria Steam: imagens dos produtos em 9:16 (retrato, estilo capa de jogo) */
.steam-cards .package img {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Botão "Comprar agora" (cards e página do produto) */
.btn-buy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, hsl(var(--primary)) 78%, white) 0%,
    hsl(var(--primary)) 45%,
    color-mix(in srgb, hsl(var(--primary)) 72%, black) 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 -2px 0 rgb(0 0 0 / 0.18),
    0 8px 22px -10px hsl(var(--primary) / 0.85);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Brilho que atravessa o botão no hover */
.btn-buy::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-buy svg,
.btn-buy i {
  transition: transform 0.25s ease;
}

.btn-buy:hover:not(:disabled),
.group:hover .btn-buy:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.32),
    inset 0 -2px 0 rgb(0 0 0 / 0.18),
    0 12px 28px -10px hsl(var(--primary) / 1);
}

.btn-buy:hover:not(:disabled)::before,
.group:hover .btn-buy:not(:disabled)::before {
  left: 120%;
}

.btn-buy:hover:not(:disabled) svg,
.group:hover .btn-buy:not(:disabled) svg {
  transform: translateX(-2px) rotate(-8deg) scale(1.08);
}

.btn-buy:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

.btn-buy:focus-visible {
  outline: 2px solid color-mix(in srgb, hsl(var(--primary)) 60%, white);
  outline-offset: 2px;
}

.btn-buy:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.55;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-buy,
  .btn-buy::before,
  .btn-buy svg {
    transition: none;
  }
}

/* Minhas assinaturas: cores e raio dos cards (vindos da CentralCart 2) */
:root {
  --pc-accent-text: color-mix(in srgb, hsl(var(--primary)) 62%, white);
  --pc-surface: #110f15;
  --pc-line: rgb(255 255 255 / 0.08);
  --pc-radius: 1rem;
}

/* Minhas assinaturas (/account/orders) */
.sub-section-title {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.sub-card {
  padding: 1.125rem;
  border-radius: var(--pc-radius);
  border: 1px solid var(--pc-line);
  background:
    radial-gradient(120% 90% at 0% 0%, hsl(var(--primary) / 0.1), transparent 55%),
    var(--pc-surface);
}

.sub-card__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.sub-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, hsl(var(--primary)) 78%, white), color-mix(in srgb, hsl(var(--primary)) 72%, black));
}

.sub-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-card__progress {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--pc-accent-text), hsl(var(--primary)));
}

.sub-card__access {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--pc-accent-text);
}

.sub-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--pc-line);
  background: var(--pc-surface);
}

.sub-order__coupon {
  padding: 0.05rem 0.4rem;
  border-radius: 0.375rem;
  color: var(--pc-accent-text);
  background: hsl(var(--primary) / 0.12);
}