:root {
  --primary-red: #dc2626;
  --dark-red: #7f1d1d;
  --neon-red: #ef4444;
  --gold: #fbbf24;
  --glass-bg: rgba(17, 17, 17, 0.7);
  --glass-border: rgba(220, 38, 38, 0.25);
  --glass-border-focus: rgba(239, 68, 68, 0.5);
  --bg-dark: #070708;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: url('../background.png') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(7, 7, 8, 0.6), rgba(7, 7, 8, 0.75));
  z-index: -2;
  pointer-events: none;
}

/* Ondas de fundo animadas */
.wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.1) 0%, transparent 60%);
  animation: wave-move 25s linear infinite;
  opacity: 0.6;
}

.wave:nth-child(1) {
  top: -50%;
  left: -50%;
  animation-duration: 20s;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
}

.wave:nth-child(2) {
  top: -30%;
  left: -30%;
  animation-duration: 30s;
  animation-delay: -7s;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.05) 0%, transparent 65%);
}

.wave:nth-child(3) {
  top: -10%;
  left: -10%;
  animation-duration: 35s;
  animation-delay: -14s;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.07) 0%, transparent 70%);
}

@keyframes wave-move {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(60px, 40px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Partículas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-red);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 12s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Vidro Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 50px rgba(220, 38, 38, 0.05);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 60px rgba(220, 38, 38, 0.1);
}

/* Título de Destaque */
.shimmer-title {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #ffffff 0%, #ff8b8b 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Botões */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5), 0 0 15px var(--neon-red);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

.btn-glow:hover::after {
  left: 130%;
}

/* Botão Google Personalizado */
.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

/* Tabs */
.tab-link {
  position: relative;
  color: #9ca3af;
  transition: all 0.3s;
}

.tab-link.active {
  color: #ffffff;
  font-weight: 600;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-red);
  transition: width 0.3s ease;
}

.tab-link.active::after {
  width: 100%;
}

/* Esconder abas */
.tab-content {
  display: none;
  animation: tabFadeIn 0.5s ease-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card de prêmio com overlay bloqueado */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.product-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.product-card:hover .product-lock-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* Indicador de pontos */
.pts-badge {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.pts-badge-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* Animação do Contador de Pontos */
.points-counter {
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f10;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Formulário e Labels */
.form-input-premium {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: white;
  transition: all 0.3s ease;
}

.form-input-premium:focus {
  outline: none;
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2), inset 0 0 5px rgba(220, 38, 38, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Efeito de carregamento nos botões */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alertas de Notificação do Sistema */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modais e Popups */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(135deg, #161618, #0a0a0b);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 80px rgba(220, 38, 38, 0.08);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.btn-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 50;
}

.btn-close:hover {
  color: var(--neon-red);
}
