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

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

@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: radial-gradient(circle, hsla(0, 0%, 100%, 0.14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  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;
}

/* Barra de pesquisa: contorno azul surge e some em 3s ao focar/desfocar */
.search-bar-input {
  outline: none;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.9s ease, border-color 0.3s ease;
}
.search-bar-input:focus,
.search-bar-input:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

/* Lupa: animação só no hover; azul no hover e quando o campo está focado */
.search-bar-icon {
  transform: translateY(-50%) scale(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), color 0.25s ease;
}
.search-bar-wrap:hover:not(:focus-within) .search-bar-icon {
  animation: search-icon-pinch 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
.search-bar-wrap:hover .search-bar-icon,
.search-bar-wrap:focus-within .search-bar-icon {
  color: hsl(var(--primary));
}
@keyframes search-icon-pinch {
  0% {
    transform: translateY(-50%) scale(1);
  }
  40% {
    transform: translateY(-50%) scale(1.15);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Botão limpar (x) da pesquisa */
.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.search-clear-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}
.search-clear-btn.hidden {
  display: none;
}

/* Linha decorativa abaixo do título "Pesquisas recentes" (pontas finas, meio mais grosso) */
.recent-searches-title-line {
  height: 2px;
  width: 50%;
  max-width: 120px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    transparent 100%
  );
}

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

/* Galeria de imagens */
#image-gallery {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}

#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(59, 130, 246, 0.5);
  border-radius: 3px;
}

#image-gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.gallery-thumb {
  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;
}

/* Viewer da galeria: setas ao hover + barra de progresso */
.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(59, 130, 246, 0.25);
  color: white;
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-prev {
  left: 0.75rem;
}

.gallery-arrow-next {
  right: 0.75rem;
}

.gallery-progress-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gallery-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(96, 165, 250, 0.7));
  border-radius: 0 2px 0 0;
  transition: width 0.08s linear;
}

/* Área clicável da imagem principal do produto (abre lightbox) */
#package-image-wrapper {
  transition: opacity 0.2s ease;
}
#package-image-wrapper:hover {
  opacity: 0.95;
}

/* Lightbox da galeria do produto: animação de entrada da imagem */
.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);
  }
}

.package-wrapper {
  position: relative;
}

/* Container da página de produto: primeiro elemento no main, fundo no topo */
.package-page-root {
  position: relative;
}

/* Background: literalmente no topo da página, rola com o scroll */
.package-page-bg {
  position: absolute;
  top: -5rem;
  left: 0;
  right: 0;
  height: calc(85vh + 5rem);
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  /* Imagem em escala padrão, preenchendo a área (maior e mais visível) */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Degradê #09090b: 100% embaixo, opacidade um pouco menor ao subir */
  background-image: linear-gradient(
    to top,
    #09090b 0%,
    #09090b 8%,
    rgba(9, 9, 11, 0.92) 20%,
    rgba(9, 9, 11, 0.78) 38%,
    rgba(9, 9, 11, 0.5) 55%,
    rgba(9, 9, 11, 0.22) 72%,
    rgba(9, 9, 11, 0.05) 90%,
    transparent 100%
  );
}

/* Card de Segurança - AstroKey */
.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);
}

/* Requisitos do Sistema - accordion e seta animada */
.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);
}

/* FAQ - Página do produto */
.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-answer-wrapper {
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-faq-item.is-open .package-faq-answer-wrapper {
  max-height: 220px;
}

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

/* Botão Adicionar Favorito - moderno, cor sólida, sem glow */
.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 - lista moderna */
#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);
}

/* Shine effect - Adicionar ao Carrinho */
.btn-shine {
  position: relative;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.btn-shine:hover:not(:disabled)::after {
  left: 150%;
}

.btn-shine:disabled::after {
  display: none;
}

.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 */

/* ============================================
   Feature Cards - Efeitos Modernos com Luz
   ============================================ */

/* Base do card com animação de lift */
.feature-card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0) scale(1);
  will-change: transform;
  min-height: auto;
  height: auto;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Efeito de brilho que segue o mouse */
.feature-card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  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 para cards azuis – mais suave */
.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%);
}

/* Brilho verde para card verde – mais suave */
.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%);
}

/* Estilos base para cards azuis – cores mais suaves */
.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);
}

/* Estilos base para card verde – cores mais suaves */
.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 que aparecem no hover – mais suaves */
.feature-card-light-blue {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-card-blue:hover .feature-card-light-blue {
  opacity: 1;
}

.feature-card-light-green {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  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%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-card-green:hover .feature-card-light-green {
  opacity: 1;
}

/* Ajustes para conteúdo dentro dos cards */
.feature-card-content {
  position: relative;
  z-index: 2;
}

/* Padrão de grade futurista */
.feature-card-grid-pattern {
  position: absolute;
  inset: 0;
  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);
  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(-4px) scale(1.05);
}

/* 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.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.18);
}

.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 do card – full width por estrutura (filha direta do card) */
.feature-card-bar {
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  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);
}

/* Efeito de partículas/energia nos ícones */
@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;
}

/* Melhorias nos cantos arredondados */
.feature-card {
  border-radius: 1.5rem;
}

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

/* Sobrescrever espaço vertical do Tailwind - modificar de calc(1 - var(--tw-space-y-reverse)) para calc(0 - var(--tw-space-y-reverse)) */
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0rem * calc(0 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0rem * calc(1 - var(--tw-space-y-reverse))) !important;
  margin-bottom: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
}

/* === Animações dos grids da home === */

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Cards começam invisíveis; animam quando o carrossel recebe .cards-loaded */
.category-carousel-wrapper .keen-slider__slide > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.98);
}

.category-carousel-wrapper.cards-loaded .keen-slider__slide > * {
  animation: cardReveal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Título da seção: entrada suave quando entra na viewport */
.category-title-reveal {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-title-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Bloco do título da categoria: texto + barra fixa com glow */
.category-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@keyframes category-bar-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
}

.category-title-bar {
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: color-mix(in srgb, hsl(var(--primary)) 72%, white);
  box-shadow:
    0 0 20px hsl(var(--primary) / 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5);
  animation: category-bar-pulse 4s ease-in-out infinite;
}

/* Pausa o pulse da barra quando o carrossel está na tela (menos animações = mais FPS) */
.category-carousel-wrapper.carousel-in-view .category-title-bar {
  animation-play-state: paused;
}

/* Sombra e hover nos cards de produtos */
.package-card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Carrossel: sombra mais leve para animação fluida */
.category-carousel-wrapper .package-card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.package-card-shadow:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2),
              0 4px 12px rgba(59, 130, 246, 0.15);
}

.category-carousel-wrapper .package-card-shadow:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(59, 130, 246, 0.12);
}

/* Zoom suave na imagem do card no hover */
.package-card-img {
  transition: transform 0.35s ease-out;
}

.package:hover .package-card-img {
  transform: scale(1.05);
}

/* Setas do carrossel da home: animação rápida e fluida */
.category-carousel-wrapper .carousel-arrow {
  background: rgba(12, 12, 18, 0.92);
  border: 1px solid hsl(var(--primary) / 0.45);
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.15s ease,
              box-shadow 0.15s ease,
              background 0.15s ease;
}

.category-carousel-wrapper .carousel-arrow:hover {
  background: rgba(15, 15, 22, 0.95);
  border-color: hsl(var(--primary) / 0.7);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.2),
              0 0 40px hsl(var(--primary) / 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-50%) scale(1.06);
}

.category-carousel-wrapper .carousel-arrow:active {
  transform: translateY(-50%) scale(0.97);
  box-shadow: 0 0 12px hsl(var(--primary) / 0.15);
  transition-duration: 0.05s;
}

/* Rolagem do carrossel da home: uma única camada GPU para máximo FPS */
.category-carousel-wrapper .keen-slider {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.category-carousel-wrapper .keen-slider__slide {
  min-height: 0;
  contain: layout;
  content-visibility: auto;
}

/* Desliga blur em todo o carrossel (card + selo de desconto) para não pesar no compositor */
.category-carousel-wrapper .keen-slider [class*="backdrop-blur"] {
  backdrop-filter: none !important;
}

/* Link "Ver todos" da home: visual moderno + animação hover */
.ver-todos-link {
  position: relative;
}

.ver-todos-link .ver-todos-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.ver-todos-link:hover .ver-todos-text {
  transform: translateX(-4px);
}

.ver-todos-link:hover .ver-todos-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

/* === Footer moderno: light, efeitos e botões coloridos === */
.footer-modern {
  font-family: 'Geist', system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 20% 0%, rgba(120, 180, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(160, 200, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 50%, hsl(var(--primary) / 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.footer-glow-1 {
  width: 260px;
  height: 260px;
  opacity: 0.18;
  background: linear-gradient(135deg, rgba(100, 180, 255, 0.12), rgba(140, 200, 255, 0.03));
  top: -100px;
  left: -60px;
}

.footer-glow-2 {
  width: 240px;
  height: 240px;
  opacity: 0.2;
  background: linear-gradient(135deg, rgba(180, 220, 255, 0.08), rgba(100, 160, 255, 0.04));
  bottom: -60px;
  right: -50px;
}

.footer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.footer-modern .footer-top,
.footer-modern .footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-modern .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-modern .footer-brand {
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.footer-modern .footer-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.footer-modern .footer-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-modern .footer-link:hover {
  color: rgba(180, 220, 255, 1);
  text-shadow: 0 0 20px rgba(180, 220, 255, 0.3);
}

.footer-link-bottom {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-link-bottom:hover {
  color: rgba(200, 230, 255, 1);
  text-shadow: 0 0 16px rgba(200, 230, 255, 0.25);
}

.footer-modern .footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 400;
}

/* Botões de redes sociais: visual moderno com cor primária (azul), hover por rede */
.footer-social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.35);
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease,
              color 0.35s ease;
}

.footer-social-btn-inner {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.06);
}

.footer-social-btn:hover .footer-social-btn-inner {
  opacity: 1;
}

/* Instagram: rosa no hover */
.footer-social-btn--instagram:hover {
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: 0 8px 28px rgba(225, 48, 108, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn--instagram:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(225, 48, 108, 0.35) 0%,
    rgba(233, 89, 80, 0.2) 50%,
    transparent 100%
  );
}

.footer-social-btn--instagram:hover .footer-social-icon {
  color: #fff;
}

/* YouTube: vermelho no hover */
.footer-social-btn--youtube:hover {
  border-color: rgba(255, 0, 0, 0.55);
  box-shadow: 0 8px 28px rgba(255, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn--youtube:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(255, 50, 50, 0.4) 0%,
    rgba(200, 30, 30, 0.25) 50%,
    transparent 100%
  );
}

.footer-social-btn--youtube:hover .footer-social-icon {
  color: #fff;
}

/* Discord: azul ciano no hover */
.footer-social-btn--discord:hover {
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn--discord:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.4) 0%,
    rgba(114, 137, 218, 0.25) 50%,
    transparent 100%
  );
}

.footer-social-btn--discord:hover .footer-social-icon {
  color: #fff;
}

/* WhatsApp: verde no hover */
.footer-social-btn--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn--whatsapp:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.35) 0%,
    rgba(34, 180, 88, 0.2) 50%,
    transparent 100%
  );
}

.footer-social-btn--whatsapp:hover .footer-social-icon {
  color: #fff;
}

/* Twitter: azul bb (baby blue) no hover */
.footer-social-btn--twitter:hover {
  border-color: rgba(29, 155, 240, 0.6);
  box-shadow: 0 8px 28px rgba(29, 155, 240, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn--twitter:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(29, 155, 240, 0.38) 0%,
    rgba(29, 155, 240, 0.2) 50%,
    transparent 100%
  );
}

.footer-social-btn--twitter:hover .footer-social-icon {
  color: #fff;
}

/* TikTok: preto no hover */
.footer-social-btn--tiktok:hover,
.footer-social-btn--tik-tok:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.footer-social-btn--tiktok:hover .footer-social-btn-inner,
.footer-social-btn--tik-tok:hover .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(30, 30, 30, 0.35) 50%,
    transparent 100%
  );
}

.footer-social-btn--tiktok:hover .footer-social-icon,
.footer-social-btn--tik-tok:hover .footer-social-icon {
  color: #fff;
}

/* Outras redes: hover com primário (azul) */
.footer-social-btn:hover:not(.footer-social-btn--instagram):not(.footer-social-btn--youtube):not(.footer-social-btn--discord):not(.footer-social-btn--whatsapp):not(.footer-social-btn--twitter):not(.footer-social-btn--tiktok):not(.footer-social-btn--tik-tok) {
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 8px 28px hsl(var(--primary) / 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.footer-social-btn:hover:not(.footer-social-btn--instagram):not(.footer-social-btn--youtube):not(.footer-social-btn--discord):not(.footer-social-btn--whatsapp):not(.footer-social-btn--twitter):not(.footer-social-btn--tiktok):not(.footer-social-btn--tik-tok) .footer-social-btn-inner {
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.25) 0%,
    hsl(var(--primary) / 0.12) 50%,
    transparent 100%
  );
}

.footer-social-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.footer-social-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.35s ease;
}

.footer-social-btn:hover .footer-social-icon {
  transform: scale(1.12);
}
