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);
  }
}


#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#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;
}

/* Futuristic Grid Background */
.grid-background {
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: none;
  position: relative;
}

.grid-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(var(--primary) / 0.15) 0%, transparent 40%);
  pointer-events: none;
}

/* Glowing Background Blobs */
.glow-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(var(--primary) / 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  /* Acima da foto (z-0), abaixo do grid global (z-[2]) */
  z-index: 1;
  pointer-events: none;
}

.glow-blob-1 {
  top: -100px;
  left: -100px;
  animation: floatBlob 20s infinite alternate;
}

.glow-blob-2 {
  bottom: -100px;
  right: -100px;
  animation: floatBlob 25s infinite alternate-reverse;
}

@keyframes floatBlob {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(100px, 100px) scale(1.2);
  }
}

.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;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, hsla(var(--primary)), hsla(var(--secondary)));
  border-radius: 10px;
}

.animate-float {
  animation: floatRandom 6s ease-in-out infinite;
}

@keyframes floatRandom {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(90deg,
      hsl(var(--primary)),
      hsl(var(--secondary) / 0.8),
      hsl(var(--primary) / 0.6),
      hsl(var(--secondary)),
      hsl(var(--primary)));
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

/* Glassmorphism Redefined - Darker for better contrast */
.futuristic-glass {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 48px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.futuristic-glass:hover {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(var(--primary), 0.2);
}

/* Enhanced visibility for form fields */
input,
select,
textarea,
.form-control {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: hsla(var(--primary) / 0.5) !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  box-shadow: 0 0 0 2px hsla(var(--primary) / 0.1) !important;
}

::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Glowing Border Animation */
.glow-border {
  position: relative;
  border-radius: var(--radius);
  z-index: 0;
  overflow: hidden;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      transparent,
      transparent,
      hsl(var(--primary)));
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgb(var(--background));
  border-radius: calc(var(--radius) - 1px);
  z-index: -1;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass::after {
  content: "";
  transition: all 850ms cubic-bezier(.19, 1, .22, 1);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  width: 100px;
  height: 200%;
  position: absolute;
  left: -150px;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(5px);
}

.glass:hover::after {
  left: 150%;
}

.glass-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass-secondary::after {
  content: "";
  transition: all 850ms cubic-bezier(.19, 1, .22, 1);
  background: linear-gradient(to right, transparent, hsl(var(--secondary) / 0.15), transparent);
  width: 100%;
  height: 200%;
  position: absolute;
  left: -150%;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(10px);
}

.glass-secondary:hover::after {
  left: 150%;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
  border-radius: 10px;
}

.animate-float {
  animation: floatRandom 6s ease-in-out infinite;
}

@keyframes floatRandom {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(90deg,
      hsl(var(--primary)),
      hsl(var(--secondary) / 0.8),
      hsl(var(--primary) / 0.6),
      hsl(var(--secondary)),
      hsl(var(--primary)));
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

/* Glassmorphism Redefined - Darker for better contrast */
.futuristic-glass {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 48px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.futuristic-glass:hover {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(var(--primary), 0.2);
}

/* Enhanced visibility for form fields */
input,
select,
textarea,
.form-control {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: hsla(var(--primary) / 0.5) !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  box-shadow: 0 0 0 2px hsla(var(--primary) / 0.1) !important;
}

::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Glowing Border Animation */
.glow-border {
  position: relative;
  border-radius: var(--radius);
  z-index: 0;
  overflow: hidden;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      transparent,
      transparent,
      hsl(var(--primary)));
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgb(var(--background));
  border-radius: calc(var(--radius) - 1px);
  z-index: -1;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass::after {
  content: "";
  transition: all 850ms cubic-bezier(.19, 1, .22, 1);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  width: 100px;
  height: 200%;
  position: absolute;
  left: -150px;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(5px);
}

.glass:hover::after {
  left: 150%;
}

.glass-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass-secondary::after {
  content: "";
  transition: all 850ms cubic-bezier(.19, 1, .22, 1);
  background: linear-gradient(to right, transparent, hsl(var(--secondary) / 0.15), transparent);
  width: 100%;
  height: 200%;
  position: absolute;
  left: -150%;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(10px);
}

.glass-secondary:hover::after {
  left: 150%;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

@keyframes shine {
  0% {
    transform: translateX(-150%) skewX(-12deg);
  }

  100% {
    transform: translateX(150%) skewX(-12deg);
  }
}

.animate-shine {
  animation: shine 1.5s;
}

/* Card de compra na página do pacote: sempre rola com a página (nunca sticky) */
.package-purchase-card {
  position: static !important;
}

/* Hover do card: degradê diagonal mais azul, menos opacidade, com animação */
.package-purchase-card-hover {
  position: relative;
  transition: border-color 0.5s ease;
}
.package-purchase-card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 150, 199, 0.08), rgba(0, 180, 216, 0.04));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.package-purchase-card-hover:hover::before {
  opacity: 1;
}
.package-purchase-card-hover:hover {
  border-color: rgba(0, 180, 216, 0.28);
}
.package-purchase-card-hover > * {
  position: relative;
  z-index: 1;
}

/* Ponto vermelho piscando (badge "pessoas vendo") */
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.viewing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: blink-dot 1.2s ease-in-out infinite;
}

/* Badge \"Últimas unidades\" piscando com brilho no fundo */
@keyframes pulse-alert-badge {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 18px 4px rgba(248, 113, 113, 0.7);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6);
  }
}

.last-units-badge {
  animation: pulse-alert-badge 1.4s ease-in-out infinite;
}

/* Barra fixa comprar no mobile: safe area para notch/home indicator */
.safe-area-pb {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Slider de produtos similares: 4 cards visíveis, último não cortado */
#similar-packages-slider {
  width: 100%;
}
#similar-packages-slider .keen-slider__slide {
  min-width: 0;
}
#similar-packages-slider .keen-slider__slide > a {
  min-width: 0;
  display: block;
}

/* Azul com brilho (mesmo efeito do nome da loja no footer) */
.text-glow-primary {
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Verde neon com brilho (ex.: "Loja verificada") */
.text-glow-verified,
.badge-glow-verified {
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.7), 0 0 16px rgba(57, 255, 20, 0.4);
}
.badge-glow-verified {
  background: rgba(57, 255, 20, 0.12);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.25);
}
.badge-glow-verified i {
  color: #39ff14;
}

/* Estilo especial para a descrição do pacote */
.package-description {
  /* melhora a leitura geral */
  line-height: 1.7;
}

.package-description p {
  margin-bottom: 0.5rem;
}

.package-description strong,
.package-description b {
  color: hsl(var(--primary));
}

.package-description ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.package-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.package-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: radial-gradient(circle, #00f3ff 0, rgba(0, 243, 255, 0.4) 40%, transparent 70%);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.75rem;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.checkout-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: #00f3ff;
  flex-shrink: 0;
}

.checkout-title-pill {
  background: linear-gradient(180deg, #1a2235 0%, #111827 50%, #0d1321 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 20px rgba(59, 130, 246, 0.08);
}

.checkout-badge-glow {
  color: #00f3ff;
  background: rgba(0, 243, 255, 0.08);
  border-color: rgba(0, 243, 255, 0.25);
  text-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
}

.checkout-input {
  width: 100%;
  height: 3.25rem;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground, #fff);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.checkout-input.has-icon {
  padding-left: 3rem !important;
}
.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.checkout-input:focus {
  outline: none;
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.08), 0 0 16px rgba(0, 243, 255, 0.1);
}

.checkout-field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Botão de método de pagamento selecionado: mais arredondado + mais brilho */
[data-payment-method][data-selected="true"].checkout-payment-btn {
  box-shadow:
    0 0 20px rgba(0, 243, 255, 0.4),
    0 0 40px rgba(0, 243, 255, 0.2),
    inset 0 0 20px rgba(0, 243, 255, 0.06);
}

/* Radio visual nos botões de pagamento */
[data-payment-method][data-selected="true"] .checkout-radio {
  border-color: #00f3ff;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.7), 0 0 28px rgba(0, 243, 255, 0.35);
}
[data-payment-method][data-selected="true"] .checkout-radio-dot {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}
[data-payment-method][data-selected="true"] .checkout-selected-label {
  display: block;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

/* Checkbox dos termos: caixa visual + check quando marcado */
.checkout-terms-checkbox {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  opacity: 0;
  margin: 0;
}
.checkout-terms-box {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
.checkout-terms-checkbox:checked ~ .checkout-terms-box {
  background-color: #00f3ff;
  border-color: #00f3ff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
.checkout-terms-checkbox:checked ~ .checkout-terms-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  margin-left: -4px;
  margin-top: -6px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkout-terms-box::after {
  opacity: 0;
}
.checkout-terms-checkbox:checked ~ .checkout-terms-box::after {
  opacity: 1;
}

/* Campos extras do checkout (ex.: nick Roblox): maior altura, sem barra acima */
#checkout_fields input,
#checkout_fields select {
  min-height: 3.25rem !important;
  height: 3.25rem !important;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--foreground, #fff);
}
#checkout_fields input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
#checkout_fields input:focus,
#checkout_fields select:focus {
  outline: none;
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.08);
}