/* Configuração Geral */
body {
  background-color: #0a192f;
  color: #f8fafc;
  overflow-x: hidden;
}

/* Texto Dourado com Gradiente */
.text-gold-gradient {
  background: linear-gradient(to right, #c5a059, #e6c985, #c5a059);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ANIMAÇÃO DE LEVITAÇÃO */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Botão Premium */
.btn-gold {
  background: transparent;
  border: 1px solid #c5a059;
  color: #c5a059;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  z-index: 1;
}
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #c5a059;
  transition: all 0.4s;
  z-index: -1;
}
.btn-gold:hover::before {
  width: 100%;
}
.btn-gold:hover {
  color: #0a192f;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* Background Grid */
.bg-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: #020c1b;
}
::-webkit-scrollbar-thumb {
  background: #c5a059;
  border-radius: 4px;
}

/* --- EFEITO 3D FLIP CARD --- */
.flip-card-perspective {
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.25rem;
  overflow: hidden; /* Importante para o zoom não vazar */
}
.flip-card-back {
  transform: rotateY(180deg);
}
.flipped {
  transform: rotateY(180deg);
}

/* --- NOVA ANIMAÇÃO DAS ESTRELAS E CONFETE (LENTA) --- */
@keyframes popInStar {
  0% { opacity: 0; transform: scale(0.5); }
  70% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}
.star-icon.animate-pop {
  animation: popInStar 0.6s forwards ease-out;
}
.star-icon:nth-child(1) { animation-delay: 0.1s; }
.star-icon:nth-child(2) { animation-delay: 0.3s; }
.star-icon:nth-child(3) { animation-delay: 0.5s; }
.star-icon:nth-child(4) { animation-delay: 0.7s; }
.star-icon:nth-child(5) { animation-delay: 0.9s; }

/* Animação de Explosão de Confete */
.confetti-explosion {
    opacity: 0;
    background-image:
        radial-gradient(circle, #C5A059 6px, transparent 6px), 
        radial-gradient(circle, #E6C985 5px, transparent 5px), 
        radial-gradient(circle, #ffffff 4px, transparent 4px), 
        radial-gradient(circle, #C5A059 3px, transparent 3px); 
    background-size: 0% 0%;
    background-position: center;
    background-repeat: no-repeat;
}

.confetti-explosion.animate-explode {
    animation: explodeConfetti 2.5s forwards ease-out;
}

@keyframes explodeConfetti {
    0% {
        opacity: 1;
        background-size: 0% 0%;
    }
    15% {
         opacity: 1;
         background-size: 40% 40%, 50% 50%, 30% 30%, 60% 60%;
    }
    100% {
        opacity: 0; 
        background-size: 300% 300%, 350% 350%, 320% 320%, 400% 400%;
        background-position: -150px -150px, 180px -180px, -120px 150px, 150px 120px;
    }
}