/* ==========================================================================
   RIFASEGURA PACK RÁPIDO - THEME: BLACK & GOLD LUXURY luxury
   Design: Fundo Preto Profundo + Dourado Metálico + Marca d'Água de Prêmios
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-main: #060608;
  --bg-card: rgba(14, 14, 18, 0.85);
  --bg-card-hover: rgba(22, 22, 28, 0.95);
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --border-gold: rgba(245, 158, 11, 0.22);
  --border-gold-bright: rgba(251, 191, 36, 0.6);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ================= FUNDO DE PRÊMIOS EM MARCA D'ÁGUA ================= */
.luxury-bg-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fbbf24' fill-opacity='0.6'%3E%3Cpath d='M60 15l8 17h18l-14 11 5 18-17-11-17 11 5-18-14-11h18z'/%3E%3Ccircle cx='20' cy='80' r='6'/%3E%3Ccircle cx='100' cy='80' r='6'/%3E%3Cpath d='M15 20h10v10H15zM95 20h10v10H95z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Silhuetas Flutuantes de Prêmios (Carro, Dinheiro, Diamante, Relógio) */
.prize-floating-icon {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
  transition: transform 0.5s ease;
}

.prize-icon-1 { top: 12%; left: 4%; width: 140px; transform: rotate(-12deg); }
.prize-icon-2 { top: 28%; right: 5%; width: 120px; transform: rotate(15deg); }
.prize-icon-3 { bottom: 15%; left: 6%; width: 130px; transform: rotate(-8deg); }
.prize-icon-4 { bottom: 22%; right: 7%; width: 110px; transform: rotate(20deg); }

/* Conteúdo Sempre Acima do Fundo */
.app-content {
  position: relative;
  z-index: 10;
}

/* ================= GRADIENTES E TIPOGRAFIA DE OURO ================= */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff 0%, #fbbf24 40%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-pure {
  color: #fbbf24;
}

/* ================= CARDS luxury VIP ================= */
.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.luxury-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.15);
}

/* ================= BOTÕES luxury DE ALTO IMPACTO ================= */
.btn-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  color: #000000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
  filter: brightness(1.08);
}

.btn-gold:active {
  transform: translateY(0) scale(0.99);
}

.btn-gold-outline {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ================= BADGES & PILLS ================= */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* ================= BARRA DE PROGRESSO DE OURO ================= */
.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar-gold {
  height: 100%;
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 50%, #fde047 100%);
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Marcador dos 90% */
.progress-90-marker {
  position: absolute;
  left: 90%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  z-index: 2;
}

/* ================= SELETOR RÁPIDO DE COTAS (BOTÕES luxury) ================= */
.cota-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cota-chip:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  transform: translateY(-2px);
}

.cota-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: #fbbf24;
  color: #fde047;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

/* ================= MODAL PIX INSTANTÂNEO ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0d0d12;
  border: 1px solid var(--border-gold-bright);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s ease;
}

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

/* ================= INPUTS LUXURY ================= */
.input-luxury {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-luxury:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* ================= TOASTS ================= */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111116;
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-primary);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
