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;
}

/**
 * iOS Safari (e alguns WebViews) aplicam zoom automático ao focar campos com fonte &lt; 16px.
 * Garante 16px em todos os campos editáveis, mesmo quando há utilitário text-sm no HTML.
 */
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']):not([type='file']):not([type='submit']):not([type='button']):not([type='image']):not([type='reset']),
select,
textarea {
  font-size: 16px !important;
}

@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(104%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(104%);
  }
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="open"] {
  animation: fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.28s ease forwards;
}

#cart-drawer[data-state="open"] > div {
  animation: slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#cart-drawer[data-state="closed"] > div {
  animation: slide-out 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Footer (layout estilo Apex Storms) */
.site-footer-shadow {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-social-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: #3b82f6;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(59, 130, 246, 0.2);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.2s ease;
}

.footer-social-btn:hover {
  color: #0a0a0a;
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 22px rgba(59, 130, 246, 0.35);
  transform: scale(1.08);
}

.footer-social-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 14px rgba(59, 130, 246, 0.28);
}

/* Botão Comunidade (Discord) — pill neon azul, abaixo do banner na home */
.discord-community-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: linear-gradient(
    155deg,
    #7dd3fc 0%,
    #38bdf8 22%,
    #3b82f6 52%,
    #2563eb 88%,
    #1d4ed8 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(59, 130, 246, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.4s ease,
    filter 0.35s ease,
    border-color 0.35s ease;
}

button.discord-community-pill {
  cursor: pointer;
  font-family: inherit;
  border-style: solid;
  box-sizing: border-box;
}

.discord-community-pill:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06) saturate(1.06);
  border-color: rgba(191, 219, 254, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 6px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(96, 165, 250, 0.38),
    0 5px 14px rgba(37, 99, 235, 0.22),
    0 0 20px rgba(59, 130, 246, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.28);
  animation: discord-community-pulse 2.4s ease-in-out infinite;
}

.discord-community-pill:active {
  transform: translateY(-1px) scale(1.02);
  animation: none;
  filter: brightness(0.98);
}

.discord-community-pill:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.discord-community-pill__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  display: block;
  filter: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1),
    filter 0.35s ease;
}

/* Lucide injeta <svg width="24"> dentro de <i>; força o mesmo tamanho do pill que o SVG do Discord */
.discord-community-pill__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.discord-community-pill:hover .discord-community-pill__icon {
  transform: scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.28));
}

@keyframes discord-community-pulse {
  0%,
  100% {
    filter: brightness(1.06) saturate(1.06);
  }

  50% {
    filter: brightness(1.09) saturate(1.08);
  }
}

@media (max-width: 380px) {
  .discord-community-pill {
    padding: 0.55rem 0.95rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .discord-community-pill__icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (min-width: 640px) {
  .discord-community-pill {
    padding: 0.75rem 1.45rem;
    font-size: 0.875rem;
    gap: 0.55rem;
  }

  .discord-community-pill__icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discord-community-pill {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  }

  .discord-community-pill:hover {
    transform: none;
    animation: none;
  }

  .discord-community-pill:active {
    transform: none;
  }

  .discord-community-pill__icon {
    transition: none;
  }

  .discord-community-pill:hover .discord-community-pill__icon {
    transform: none;
  }
}

/* «Solicitar jogos» — mobile mais discreto (alinha com lojas tipo Epic; Discord mantém o pill neon) */
@media (max-width: 639px) {
  button.discord-community-pill.game-request-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 1px 3px rgba(0, 0, 0, 0.2);
    text-shadow: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    animation: none;
  }

  button.discord-community-pill.game-request-pill:hover {
    transform: none;
    animation: none;
    filter: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
  }

  button.discord-community-pill.game-request-pill:active {
    transform: scale(0.98);
  }

  button.discord-community-pill.game-request-pill:hover .discord-community-pill__icon {
    transform: none;
    filter: none;
  }
}

.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);
}

/* ====== Loader global (Steam/Epic style) ====== */
/* Entrada mais suave: menos blur e easing mais “fluido” */
body.is-page-loading > :not(#page-loader) {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(3px);
}

body > :not(#page-loader) {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-loader__center {
  width: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgb(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader__spinner {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #39ff14;
  animation: page-loader-spin 0.9s linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__spinner {
    animation: none !important;
  }

  body.is-page-loading > :not(#page-loader) {
    transition: none !important;
  }
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

/**
 * Descrição do produto (#package-description): o Preflight do Tailwind zera margens em p/ul/ol.
 * Sem isso, Enter no editor vira <p> ou <br> mas visualmente tudo fica “colado”.
 */
#package-description.centralcart-content {
  line-height: 1.75;
}

#package-description.centralcart-content :where(p) {
  margin-bottom: 0.875rem;
}

#package-description.centralcart-content :where(p:last-child) {
  margin-bottom: 0;
}

#package-description.centralcart-content :where(ul, ol) {
  margin-bottom: 0.875rem;
  padding-left: 1.25rem;
}

#package-description.centralcart-content :where(ul:last-child, ol:last-child) {
  margin-bottom: 0;
}

#package-description.centralcart-content :where(li) {
  margin-bottom: 0.35rem;
}

#package-description.centralcart-content :where(li:last-child) {
  margin-bottom: 0;
}

#package-description.centralcart-content :where(h1, h2, h3, h4) {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#package-description.centralcart-content :where(h1:first-child, h2:first-child, h3:first-child, h4:first-child) {
  margin-top: 0;
}

#package-description.centralcart-content :where(blockquote) {
  margin-bottom: 0.875rem;
  padding-left: 1rem;
  border-left: 3px solid hsl(var(--primary) / 0.45);
}

.package-description--hydrating img,
.package-description--hydrating iframe,
.package-description--hydrating video {
  display: none !important;
}

.package-description--ready img[data-keep-in-description="true"],
.package-description--ready iframe[data-keep-in-description="true"],
.package-description--ready video[data-keep-in-description="true"] {
  display: initial;
}

.grid-background {
  background-color: #121215;
  background-image: none;
  mask-image: none;
}

.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;
}

/* 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 */

/* ===== Galeria estilo Astrokey (só imagens) ===== */
#image-gallery {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scroll-snap-type: x proximity;
  /* Ajuda o último thumb a encostar inteiro na área visível ao soltar o scroll */
  scroll-padding-inline: 4px;
}

#gallery-thumbnails-container .gallery-thumb {
  scroll-snap-align: start;
}

/* 8 miniaturas na largura visível da faixa (gap-3 = 7 intervalos entre 8 itens) — lg+ */
@media (min-width: 1024px) {
  #image-gallery {
    container-type: inline-size;
    container-name: gallery-thumb-strip;
  }
}
@container gallery-thumb-strip (min-width: 0px) {
  /* -2px: tolerância de arredondamento no modo flex (9+ itens) */
  #gallery-thumbnails-container:not(.gallery-thumbs--desktop-fit) .gallery-thumb.gallery-thumb-tile {
    flex: 0 0 calc((100cqi - 5.25rem - 2px) / 8);
    width: calc((100cqi - 5.25rem - 2px) / 8);
    height: auto;
    aspect-ratio: 3 / 2;
    max-width: none;
  }
}

/* PC, até 8 itens: grid 8×1fr — divide a faixa ao pixel, sem cortar o 8º bloco */
@media (min-width: 1024px) {
  #gallery-thumbnails-container.gallery-thumbs--desktop-fit {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.625rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #gallery-thumbnails-container.gallery-thumbs--desktop-fit .gallery-thumb.gallery-thumb-tile {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* Mobile: largura fixa (NUNCA no lg+ — senão sobrescreve o @container e só cabem ~7 thumbs no PC) */
@media (max-width: 1023px) {
  .gallery-thumb.gallery-thumb-tile {
    box-sizing: border-box;
    width: 5.375rem;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* Só mostra barra azul quando há overflow real (JS: .image-gallery--overflowing) */
#image-gallery.image-gallery--fits {
  overflow-x: hidden;
  scrollbar-width: none;
}
#image-gallery.image-gallery--fits::-webkit-scrollbar {
  display: none;
  height: 0;
}
@media (min-width: 1024px) {
  #image-gallery.image-gallery--fits {
    padding-bottom: 0.25rem;
  }
}
#image-gallery::-webkit-scrollbar {
  height: 6px;
}
#image-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
#image-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}
#image-gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.gallery-thumb {
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gallery-thumb-img {
  transition: transform 0.25s ease;
  transform-origin: center;
}
.gallery-thumb:hover .gallery-thumb-img {
  transform: scale(1.05);
}
.gallery-thumb.active img {
  opacity: 1 !important;
}

.gallery-thumb--video {
  position: relative;
}
.gallery-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.gallery-thumb-play svg {
  width: 1.5rem;
  height: 1.5rem;
}

.package-gallery-viewer {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.7);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}
.package-gallery-viewer:hover .gallery-arrow {
  opacity: 1;
}
.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow-prev {
  left: 0.75rem;
}
.gallery-arrow-next {
  right: 0.75rem;
}

/* Entre o player principal e a faixa de miniaturas (layout astrokey) */
.gallery-progress-wrapper {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}
/* Barra sobre o player (template Apex Storms: progresso dentro de #package-gallery-viewer) */
.package-gallery-viewer > .gallery-progress-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  overflow: hidden;
  border-radius: 0 0 0.75rem 0.75rem;
}
.gallery-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28));
  border-radius: 2px;
  transition: width 0.08s linear;
}

/* Trailer na galeria: iframe 16:9 no host (Apex) */
#package-gallery-video-host {
  pointer-events: auto;
}
.package-trailer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#package-gallery-trailer-root .package-trailer-iframe,
.package-trailer-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  display: block;
}

#package-image-wrapper {
  transition: opacity 0.2s ease;
}
#package-image-wrapper:hover {
  opacity: 0.95;
}

.package-page-root {
  position: relative;
  /* Não use overflow-x aqui: quebra position:sticky do card lateral (coluna direita). */
  /* Mesma base do body para o degradê do hero não “quebrar” cor ao sumir a máscara */
  background-color: rgb(var(--background));
}

.package-page-bg {
  position: absolute;
  top: -5rem;
  left: 0;
  right: 0;
  height: calc(85vh + 5rem);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  --package-bg-image: none;
  background-image: var(--package-bg-image, none);
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  /* Menos zoom = sensação de imagem um pouco mais nítida */
  transform: scale(1.02);
  transform-origin: center top;
  /* Máscara inferior mais suave: mantém a imagem visível mais tempo antes de esvanecer */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 min(78%, calc(100% - 5rem)),
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 min(78%, calc(100% - 5rem)),
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Camada escura (reduzida) para o texto continuar legível sem “apagar” o wallpaper */
.package-page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(var(--background) / 0.72) 0%,
    rgb(var(--background) / 0.42) 10%,
    rgba(9, 11, 18, 0.28) 22%,
    rgba(10, 13, 22, 0.16) 38%,
    rgba(11, 15, 24, 0.08) 55%,
    rgba(14, 18, 30, 0.04) 72%,
    transparent 100%
  );
  pointer-events: none;
}

/* Brilho tema + vinheta leve (antes mais pesada — escondia detalhes da imagem) */
.package-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 55% at 50% -5%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 90% 65% at 50% 105%, rgba(0, 0, 0, 0.22) 0%, transparent 55%),
    linear-gradient(90deg, rgba(9, 9, 11, 0.14) 0%, transparent 14%, transparent 86%, rgba(9, 9, 11, 0.14) 100%);
}

.package-lightbox-img-inner {
  animation: package-lightbox-in 0.3s ease-out forwards;
}
@keyframes package-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Botão Adicionar Favorito (snapshot astrokey.store) */
.favorite-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.favorite-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}
.favorite-btn.is-added {
  border: 1px solid rgb(52 168 115);
  background: rgb(52 168 115);
  color: rgb(255 255 255);
}
.favorite-btn.is-added:hover {
  background: rgb(64 180 128);
  border-color: rgb(64 180 128);
}
.favorite-btn.is-added .favorite-btn-icon {
  color: rgb(255 255 255);
  transform: scale(1.1);
}
.favorite-btn .favorite-btn-icon {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
}
.favorite-btn.is-added .favorite-btn-icon {
  animation: favorite-star-pop 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes favorite-star-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  35% {
    transform: scale(1.55) rotate(-10deg);
  }
  55% {
    transform: scale(1.35) rotate(8deg);
  }
  75% {
    transform: scale(1.2) rotate(-4deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}

/* Dropdown Favoritos (header) */
#favoritos-dropdown {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
#favoritos-dropdown::-webkit-scrollbar {
  width: 6px;
}
#favoritos-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
#favoritos-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.favoritos-item:active {
  transform: scale(0.99);
}

.btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  animation: btn-shine-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine-sweep {
  0% {
    left: -120%;
  }
  55%,
  100% {
    left: 160%;
  }
}

/* ============================================
   Feature Cards - Efeitos Modernos com Luz (Astrokey)
   ============================================ */

/* Base do card — hover discreto (alinhado a referências compactas tipo astrokey) */
.feature-card {
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0) scale(1);
  will-change: transform;
  min-height: auto;
  height: auto;
  border-radius: 1rem;
}

.feature-card:hover {
  transform: translateY(-3px) scale(1.008);
}

/* Efeito de brilho que segue o mouse */
.feature-card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: blur(60px);
  z-index: 0;
  left: 50%;
  top: 50%;
}

.feature-card:hover .feature-card-glow {
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(0.9);
}

/* Brilho azul/verde */
.feature-card-blue .feature-card-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
}
.feature-card-green .feature-card-glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.06) 40%, transparent 70%);
}

/* Cards azul/verde */
.feature-card-blue {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 8px 32px -8px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.06) inset, 0 0 30px -20px rgba(59, 130, 246, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.feature-card-blue:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 48px -12px rgba(59, 130, 246, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.15) inset, 0 0 50px -30px rgba(59, 130, 246, 0.2), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature-card-green {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: 0 8px 32px -8px rgba(34, 197, 94, 0.08), 0 0 0 1px rgba(34, 197, 94, 0.06) inset, 0 0 30px -20px rgba(34, 197, 94, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.feature-card-green:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 16px 48px -12px rgba(34, 197, 94, 0.18), 0 0 0 1px rgba(34, 197, 94, 0.15) inset, 0 0 50px -30px rgba(34, 197, 94, 0.2), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Gradientes de luz no hover */
.feature-card-light-blue,
.feature-card-light-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.feature-card-light-blue {
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%), linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}
.feature-card-blue:hover .feature-card-light-blue {
  opacity: 1;
}
.feature-card-light-green {
  background: radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 50%), linear-gradient(225deg, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}
.feature-card-green:hover .feature-card-light-green {
  opacity: 1;
}

/* Conteúdo */
.feature-card-content {
  position: relative;
  z-index: 2;
}

/* Padrão de grade futurista */
.feature-card-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.feature-card-blue .feature-card-grid-pattern {
  background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
}
.feature-card-green .feature-card-grid-pattern {
  background-image: linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
}
.feature-card:hover .feature-card-grid-pattern {
  opacity: 1;
}

/* Wrapper do ícone */
.feature-card-icon-wrapper {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .feature-card-icon-wrapper {
  transform: translateY(-2px) scale(1.04);
}

/* Transições suaves para ícones e textos */
.feature-card-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.feature-card:hover .feature-card-icon {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.14);
}
.feature-card-green:hover .feature-card-icon {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.18);
}

.feature-card-title {
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}
.feature-card:hover .feature-card-title {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Barra inferior */
.feature-card-bar {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}
.feature-card:hover .feature-card-bar::before {
  left: 100%;
}
.feature-card:hover .feature-card-bar {
  box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.15);
}
.feature-card-green:hover .feature-card-bar {
  box-shadow: 0 6px 16px -4px rgba(34, 197, 94, 0.15);
}

/* Cards da seção “Experiência rápida” — vidro escuro tipo astrokey */
.package-features-section .package-feature-card.feature-card-blue,
.package-features-section .package-feature-card.feature-card-green {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.45);
}
.package-features-section .package-feature-card.feature-card-blue {
  border-color: rgba(59, 130, 246, 0.22);
}
.package-features-section .package-feature-card.feature-card-green {
  border-color: rgba(34, 197, 94, 0.22);
}
.package-features-section .package-feature-card .feature-card-bar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* Versão limpa (página de produto): sem grade, brilho, pseudo-linhas nem overlays no hover */
.package-features-section .package-feature-card--clean {
  cursor: default;
  overflow: visible;
}
.package-features-section .package-feature-card--clean::before,
.package-features-section .package-feature-card--clean::after {
  content: none !important;
  display: none !important;
}
.package-features-section .package-feature-card--clean:hover {
  transform: none;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.45);
}
.package-features-section .package-feature-card--clean.feature-card-blue:hover {
  border-color: rgba(59, 130, 246, 0.22);
}
.package-features-section .package-feature-card--clean.feature-card-green:hover {
  border-color: rgba(34, 197, 94, 0.22);
}
.package-features-section .package-feature-card--clean:hover .feature-card-title {
  text-shadow: none;
}
.package-features-section .package-feature-card--clean:hover .feature-card-icon {
  transform: none;
  box-shadow: none;
}
.package-features-section .package-feature-card--clean:hover .feature-card-icon-wrapper {
  transform: none;
}
.package-features-section .package-feature-card--clean:hover .feature-card-icon i {
  animation: none;
}

.package-features-section .feature-card-grid-pattern {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 8px currentColor); }
  50% { filter: drop-shadow(0 0 16px currentColor) drop-shadow(0 0 24px currentColor); }
}
.feature-card:hover .feature-card-icon i {
  animation: iconPulse 2s ease-in-out infinite;
}

/* Linha superior animada */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}
.feature-card-blue::before { color: rgba(59, 130, 246, 0.35); }
.feature-card-green::before { color: rgba(34, 197, 94, 0.35); }
.feature-card:hover::before { opacity: 1; }

/* Profundidade adicional */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.feature-card:hover::after { opacity: 1; }

.package-list .package,
.package-list a {
  height: 100%;
}

.package-list img {
  display: block;
}

.aaa-card {
  position: relative;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.28);
  z-index: 0;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.aaa-card:hover {
  background-color: #202020;
  border-color: rgba(255, 255, 255, 0.09);
  /* Sombra idêntica ao estado normal — não altera no hover */
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .aaa-card {
    transition-duration: 0.01ms;
  }
}

.aaa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: none;
  pointer-events: none;
  opacity: 0;
  transition: none;
  display: none;
}

.aaa-card:hover::after {
  opacity: 0;
  border-color: transparent;
  box-shadow: none;
}

.aaa-card:hover .aaa-card-title {
  color: #ffffff;
}

/* Zoom discreto na imagem: desktop (hover) e mobile (active) */
.aaa-card:hover .aaa-card-image,
.aaa-card:active .aaa-card-image {
  transform: scale(1.01);
  filter: none;
}

/* Container da imagem para efeito de brilho */
.aaa-card__image {
  position: relative;
  overflow: hidden;
}

.aaa-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 50%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 65%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-100%);
}

@keyframes aaa-card-shine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .aaa-card:hover .aaa-card__image::after {
    animation: aaa-card-shine 0.5s ease-out forwards;
  }
}

.aaa-card:active .aaa-card__image::after {
  animation: aaa-card-shine 0.5s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .aaa-card:hover .aaa-card-image,
  .aaa-card:active .aaa-card-image {
    transform: none;
  }
  .aaa-card:hover .aaa-card__image::after,
  .aaa-card:active .aaa-card__image::after {
    animation: none;
    opacity: 0;
  }
}

.aaa-card-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aaa-card:hover .aaa-card-button {
  background: rgba(11, 16, 23, 1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ===== Steam-like media hub (package page) ===== */
.package-media-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.package-media-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

/* Mobile: um pouco menor para caber mais thumbs */
@media (max-width: 640px) {
  .package-media-thumb {
    width: 96px;
    height: 56px;
  }
}

.package-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .package-media-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
  }
}

.package-media-thumb--trailer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.package-media-thumb__play {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.package-media-thumb__play::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.package-media-main {
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.package-media-main img,
.package-media-main iframe,
.package-media-main video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.375rem;
}

.package-media-main img,
.package-media-main video {
  object-fit: cover;
}

.package-media-main iframe {
  border: 0;
}

#package-media-thumbs {
  margin-top: 12px;
}

/* ===== Galeria: fundo blur dinâmico (profissional) =====
   Usa somente a variável --package-media-bg (sem fallback "none")
   para evitar comportamento inconsistente em alguns navegadores. */
#package-media {
  position: relative;
  z-index: 0;
  border-radius: 16px;
  isolation: isolate;
}

#package-media::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-image: var(--package-media-bg);
  background-color: #0b0f17;
  background-size: cover;
  background-position: center;
  /* Fundo mais forte (mais detalhe, menos blur) */
  filter: blur(28px);
  transform: scale(1.05);
  opacity: var(--package-media-bg-opacity, 0.42);
  transition: opacity 240ms ease;
  pointer-events: none;
}

#package-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(85% 70% at 40% 22%, rgba(110, 70, 255, 0.10), rgba(0,0,0,0) 58%),
    linear-gradient(180deg, rgba(0,0,0,0.50), rgba(0,0,0,0.82));
  pointer-events: none;
}

.package-media-main,
#package-media-thumbs {
  position: relative;
  z-index: 2;
}

/* Layout igual Astrokey */
.package-media-main {
  cursor: pointer;
}

.package-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.package-media-nav:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}
.package-media-nav:active {
  transform: translateY(-50%) scale(0.98);
}
.package-media-nav--prev { left: 12px; }
.package-media-nav--next { right: 12px; }
.package-media-nav svg { width: 18px; height: 18px; display: block; }

.package-media-thumb {
  flex: 0 0 auto;
  width: 96px;  /* w-24 */
  height: 64px; /* h-16 */
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.package-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  transform: scale(1);
  filter: brightness(1);
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity, filter;
}

@media (hover: hover) and (pointer: fine) {
  .package-media-thumb:hover img {
    transform: scale(1.04);
    opacity: 0.9;
    filter: brightness(1.08);
  }

  .package-media-thumb.is-active:hover img {
    transform: scale(1.03);
    opacity: 1;
    filter: brightness(1.06);
  }

  .package-media-thumb--trailer .package-media-thumb__play {
    transform: scale(1);
    opacity: 0.96;
    transition:
      transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
  }

  .package-media-thumb--trailer:hover .package-media-thumb__play {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-media-thumb img,
  .package-media-thumb--trailer .package-media-thumb__play {
    transition: none;
    transform: none;
    filter: none;
  }
}

.package-media-thumb.is-active {
  border-color: rgba(168, 85, 247, 0.55); /* roxo */
  background: rgba(168, 85, 247, 0.10);
  box-shadow: none;
}
.package-media-thumb.is-active img { opacity: 1; }

.package-media-progress {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.package-media-progress--overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  margin-top: 0;
  pointer-events: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.package-media-progress--overlay::after {
  /* Roxo (padrão do site/botão) */
  background: rgba(168, 85, 247, 0.95);
}

.package-media-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(255, 255, 255, 0.45);
}

.package-media-progress.is-running::after {
  animation: package-media-progress var(--media-progress-duration, 5s) linear infinite;
}

@keyframes package-media-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.package-media-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .package-media-thumb {
    transition: none;
  }
  .package-media-thumb:hover {
    transform: none;
  }
}

.aaa-discount-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 44px;
  padding: 0 12px;

  background: #49ff38;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;

  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(73, 255, 56, 0.18);
  white-space: nowrap;
}

.aaa-discount-ribbon::before,
.aaa-discount-ribbon::after {
  content: "";
  position: absolute;
  top: 0;

  width: 0;
  height: 0;
  border-top: 11px solid #49ff38;
  border-bottom: 11px solid transparent;
}

.aaa-discount-ribbon::before {
  left: -7px;
  border-right: 7px solid #49ff38;
}

.aaa-discount-ribbon::after {
  right: -7px;
  border-left: 7px solid #49ff38;
}

@keyframes search-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-dropdown-panel:not(.hidden) {
  animation: search-dropdown-in 0.18s ease-out;
}

/* Busca no header: fundo opaco como os cards (.aaa-card #1A1A1A), sem blur */
.search-dropdown-panel {
  background-color: #1a1a1a !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.search-dropdown-panel .search-dropdown-inner--empty {
  background-color: #1a1a1a;
}

.search-dropdown-results-list::-webkit-scrollbar {
  width: 6px;
}
.search-dropdown-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.search-dropdown-results-list::-webkit-scrollbar-track {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .search-dropdown-panel:not(.hidden) {
    animation: none;
  }
}

/* ===== Fluidez: cliques, foco e hovers sem “saltos” ===== */
@media (prefers-reduced-motion: no-preference) {
  :where(a[href]):not(.no-ui-motion) {
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  :where(button:not([disabled]), [type='submit']:not([disabled]), [type='button']:not([disabled])):not(.no-ui-motion) {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease,
      transform 0.18s ease, opacity 0.2s ease;
  }

  :where(.btn-primary, .btn-secondary, .btn-outline, .btn-ghost, .btn-shine, .favorite-btn) {
    transition: background-color 0.22s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease,
      transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Carrinho no header — azul do tema (mesmo tom dos CTAs blue-500/600), texto e ícone brancos */
button.open-cart.btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

button.open-cart.btn-primary:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

button.open-cart.btn-primary:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 2px;
}

button.open-cart.btn-primary svg {
  stroke: #ffffff;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Página de produto — alinhamento AstroKey (segurança, requisitos, FAQ)
   -------------------------------------------------------------------------- */

.requirements-toggle-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.15rem 0 0;
  margin: 0;
  border-radius: 0.5rem;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.requirements-toggle-btn:hover,
.requirements-toggle-btn:focus:not(:focus-visible) {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.requirements-toggle-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.security-card {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08) inset,
    0 4px 24px -4px rgba(59, 130, 246, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.security-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.12) inset,
    0 8px 32px -8px rgba(59, 130, 246, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.requirements-content-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.requirements-content-wrap.requirements-open {
  max-height: 900px;
  margin-top: 1rem;
  transition:
    max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1),
    margin-top 0.3s ease;
}

.requirements-content-inner {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.requirements-content-wrap.requirements-open .requirements-content-inner {
  opacity: 1;
  transition-delay: 0.08s;
}

.requirements-chevron {
  transform: rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.requirements-toggle-btn.is-open .requirements-chevron {
  transform: rotate(180deg);
}

.package-faq-header {
  position: relative;
}

.package-faq-title {
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, rgba(147, 197, 253, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.package-faq-item {
  position: relative;
}

.package-faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 50%, rgba(59, 130, 246, 0.08));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.package-faq-item:hover::before,
.package-faq-item.is-open::before {
  opacity: 1;
}

.package-faq-question {
  outline: none;
  transition: color 0.2s ease;
}

.package-faq-question:hover {
  color: rgba(147, 197, 253, 0.95);
}

.package-faq-icon {
  transition: transform 0.26s cubic-bezier(0.33, 1, 0.32, 1);
}

.package-faq-answer-wrapper {
  max-height: 0;
  transition: max-height 0.28s cubic-bezier(0.33, 1, 0.32, 1);
}

.package-faq-item.is-open .package-faq-answer-wrapper {
  max-height: 720px;
}

.package-faq-item.is-open .package-faq-icon {
  transform: rotate(180deg);
}

.package-faq-item.is-open {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1) inset,
    0 4px 20px -4px rgba(59, 130, 246, 0.15);
}

/* Acessibilidade: estoque legível para leitores (texto fora do layout) */
#package-stock.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== ProductCard / PriceSection / VariantSelector / BuyButton (página pacote) ========== */

#package-purchase-panel .package-purchase-top {
  min-width: 0;
}

/* Painel compra — uma linha sempre (override do flex-wrap global); scroll horizontal se faltar largura */
#package-purchase-panel .product-quickfacts {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#package-purchase-panel .product-quickfacts::-webkit-scrollbar {
  display: none;
}

#package-purchase-panel .product-quickfacts--slim {
  padding: 0.45rem 0.6rem;
}

#package-purchase-panel .product-quickfacts__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
}

#package-purchase-panel .product-quickfacts__item span {
  line-height: 1.2;
}

#package-purchase-panel .product-quickfacts__steam-icon {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px;
  max-height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}

#package-purchase-panel .product-quickfacts__item > i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
}

#package-purchase-panel .product-quickfacts__item .product-quickfacts__lucide {
  width: 15px;
  height: 15px;
}

#package-purchase-panel .product-quickfacts__item + .product-quickfacts__item {
  padding-left: 0.55rem;
  margin-left: 0.45rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.product-quickfacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-quickfacts--slim {
  padding: 0.45rem 0.6rem;
  gap: 0.35rem 0.6rem;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 16, 0.75);
}

/* Mobile: texto um pouco mais compacto na mesma linha */
@media (max-width: 639px) {
  #package-purchase-panel .product-quickfacts {
    overscroll-behavior-x: contain;
  }

  #package-purchase-panel .product-quickfacts__item {
    font-size: 0.68rem;
    gap: 0.32rem;
  }

  #package-purchase-panel .product-quickfacts__item--steam-key-global span {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  #package-purchase-panel .product-quickfacts__lucide,
  #package-purchase-panel .product-quickfacts__steam-icon {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px;
    max-height: 13px;
  }

  #package-purchase-panel .product-quickfacts__item > i[data-lucide] {
    width: 13px;
    height: 13px;
  }
}

.product-quickfacts__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.product-quickfacts__item--ok {
  color: rgba(255, 255, 255, 0.82);
}

.product-quickfacts__item--ok .product-quickfacts__lucide {
  color: rgba(96, 165, 250, 0.95);
}

.product-quickfacts__item--steam-key-global span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

@media (min-width: 380px) {
  .product-quickfacts__item--steam-key-global span {
    font-size: 0.75rem;
  }
}

.product-quickfacts__steam-icon {
  display: block;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.product-quickfacts__lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.95;
}

.product-price-section__hero {
  margin-top: 0.15rem;
}

.product-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 12px -4px rgba(59, 130, 246, 0.45);
}

.product-price-section__savings:not(.hidden) {
  margin-top: 0.15rem;
}

.product-price-section__urgency:not(.hidden) {
  margin-top: 0.2rem;
}

.product-activation-note {
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  line-height: 1.3;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.02em;
}

.product-price-section--tight .product-price-section__hero {
  margin-top: 0;
}

/* VariantSelector — Edição: select nativo ou, com JS, controlo segmentado */
.product-variant-selector {
  margin-top: 0.85rem;
}

.product-variant-selector__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.product-variant-selector__wrap {
  position: relative;
  overflow: visible;
}

.product-variant-selector__wrap::after {
  content: '';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.product-variant-selector__wrap--enhanced::after {
  display: none;
}

/* Pills (substitui lista nativa do SO) */
.product-variant-selector__segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-variant-selector__choice {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: 0.56rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 28, 0.92);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.26rem;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-variant-selector__choice-image-wrap {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 0.08rem;
}

.product-variant-selector__choice-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.45rem;
}

.product-variant-selector__choice-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}

.product-variant-selector__choice-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.08rem;
  padding: 0.14rem 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

.product-variant-selector__choice-badge.is-recommended {
  border-color: rgba(147, 197, 253, 0.65);
  background: rgba(59, 130, 246, 0.22);
  color: #eaf4ff;
}

.product-variant-selector__choice-summary {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.68);
}

.product-variant-selector__choice-features {
  display: none;
}

.product-variant-selector__choice-features li .ok {
  color: #22c55e;
  font-weight: 700;
}

.product-variant-selector__choice-features li .no {
  color: #ef4444;
  font-weight: 700;
}

.product-variant-selector__choice-price {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}


.product-variant-selector__choice:only-child {
  flex-basis: 100%;
}

.product-variant-selector__choice:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(17, 22, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-0.5px);
  box-shadow: none;
}

.product-variant-selector__choice.is-selected {
  color: #fff;
  background: rgba(24, 48, 96, 0.72);
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.24);
}

.product-variant-selector__choice.is-selected .product-variant-selector__choice-price {
  color: #fff;
}


.product-variant-selector__choice:focus {
  outline: none;
}

.product-variant-selector__choice:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 2px;
}

.product-variant-selector__choice:active:not(.is-selected) {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .product-variant-selector__choice {
    transition: none;
  }

  .product-variant-selector__choice:active:not(.is-selected) {
    transform: none;
  }
}

@media (max-width: 639px) {
  .product-variant-selector__segmented {
    grid-template-columns: 1fr;
  }
}

select#package-edition-select.product-variant-selector__select--enhanced {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/*
 * Select nativo + appearance:none no Chromium/Windows corta o texto no eixo Y se
 * line-height/padding forem apertados (16px global em core.css linha ~15).
 */
.product-variant-selector__select,
select#package-edition-select.product-variant-selector__select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  display: block;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  padding: 12px 44px 12px 12px !important;
  min-height: 48px;
  height: auto;
  max-height: none;
  overflow: visible;
  color: #fff;
  background-color: #12141a;
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    background-color 0.18s ease;
}

.product-variant-selector__select:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: #15171e;
}

.product-variant-selector__select:focus {
  outline: none;
}

.product-variant-selector__select:focus-visible {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

/* Telemóveis: <select> nativo corta texto longo — rótulo curto no HTML + mais espaço útil */
@media (max-width: 639px) {
  select#package-edition-select.product-variant-selector__select {
    padding: 12px 36px 12px 10px !important;
    font-size: 15px !important;
    font-weight: 600;
    text-overflow: ellipsis;
  }

  .product-variant-selector__wrap::after {
    right: 0.65rem;
  }
}

/* Comprar agora — minimal (sem gradiente/brilho), press fluido */
.product-buy-btn-premium {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #3b82f6;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.25s ease;
}

.product-buy-btn-premium:hover:not(:disabled) {
  background: #2563eb;
  border-color: rgba(255, 255, 255, 0.14);
}

.product-buy-btn-premium:active:not(:disabled) {
  transform: scale(0.972);
  background: #1d4ed8;
  border-color: rgba(255, 255, 255, 0.08);
  transition:
    transform 0.12s cubic-bezier(0.33, 1, 0.68, 1),
    background-color 0.12s ease;
}

.product-buy-btn-premium:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .product-buy-btn-premium {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .product-buy-btn-premium:active:not(:disabled) {
    transform: none;
  }
}

/* Favorito no card de compra — discreto; estado “salvo” em azul (não verde) */
#package-purchase-panel .product-favorite-btn:not(.is-added) {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 12, 0.55);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  box-shadow: none;
}

#package-purchase-panel .product-favorite-btn:not(.is-added):hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 20, 0.75);
  color: rgba(255, 255, 255, 0.88);
}

#package-purchase-panel .product-favorite-btn.is-added {
  border-color: rgba(59, 130, 246, 0.9) !important;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
}

#package-purchase-panel .product-favorite-btn.is-added:hover {
  border-color: rgba(59, 130, 246, 1) !important;
  filter: brightness(1.05);
}
