/* ==========================================================================
   SISTEMA DE AÇÕES POR COTAS - LUXURY GOLD VIP (ESTILO CASINOS JAPONESES E BETS)
   Tipografia Estrita Obrigatória:
   - Títulos e Destaques: 'Montserrat', sans-serif
   - Textos, Inputs, Botões e Badges: 'Poppins', sans-serif
   ========================================================================== */

:root {
  /* Fundos de Alto Contraste (Obsidian & Jet Black Imperial) */
  --bg-main: #06080d;
  --bg-surface: #0a0e17;
  --bg-card: rgba(14, 19, 30, 0.88);
  --bg-card-solid: #0f1524;
  --bg-card-hover: rgba(24, 32, 50, 0.96);
  --border-subtle: rgba(255, 215, 0, 0.14);
  --border-glow: rgba(255, 215, 0, 0.42);

  /* Gradientes Metálicos e Dourados Reluzentes (Kanazawa Gold Leaf / Yuugado) */
  --gold-metallic: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-primary: #ffd700;
  --gold-bright: #ffe666;
  --gold-light: #fff5ba;
  --gold-champagne: #fff9e6;
  --gold-dark: #8c5e0e;
  --gold-glow: rgba(255, 215, 0, 0.45);
  --gold-glow-strong: rgba(255, 215, 0, 0.7);
  --gold-glow-soft: rgba(255, 215, 0, 0.18);
  --gold-text: #241600;

  /* Gradiente Ouro Líquido de Alta Conversão (Botões e Destaques) */
  --gold-liquid: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  --gold-liquid-hover: linear-gradient(135deg, #FFF089 0%, #FFB866 100%);
  --gold-liquid-active: linear-gradient(135deg, #E6C840 0%, #E69138 100%);

  /* Variáveis de Compatibilidade com Código e Scripts Existentes */
  --neon-green: #ffd700;
  --neon-green-hover: #ffe566;
  --neon-green-glow: rgba(255, 215, 0, 0.45);
  --neon-green-dark: #4a3400;
  --neon-green-text: #241600;

  /* Urgência Imperial (Ruby Red Acentuado com Ouro) */
  --urgent-red: #ff2a5f;
  --urgent-red-glow: rgba(255, 42, 95, 0.5);
  --urgent-red-bg: rgba(255, 42, 95, 0.12);

  /* Status Pendente / Alerta Âmbar Dourado */
  --pending-amber: #ffaa00;
  --pending-amber-glow: rgba(255, 170, 0, 0.4);

  /* Textos de Alto Contraste */
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-gold: #fde047;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fontes Estritas Obrigatórias */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Raios e Sombras com Aura Dourada (Gold Bloom) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 14px 40px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-subtle);
  --shadow-neon: 0 0 25px var(--gold-glow);
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.35);
  --shadow-red: 0 0 25px var(--urgent-red-glow);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -12%, rgba(255, 215, 0, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 70% 40% at 85% 95%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 15% 45%, rgba(255, 170, 0, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Títulos Obrigatórios com Montserrat */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Textos e Inputs Obrigatórios com Poppins */
p, span, label, input, button, select, textarea, .font-body {
  font-family: var(--font-body);
}

/* Layout Principal - Exclusivo Mobile-First (Viewport de App Nativo) */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 10px 12px calc(85px + env(safe-area-inset-bottom, 20px)) 12px;
  position: relative;
  z-index: 5;
  background: var(--bg-main);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  .app-container {
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  .app-container {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   BACKGROUND TIGRINHO CASINO (RAIOS DOURADOS & PARTÍCULAS DA FORTUNA)
   ========================================================================== */
.tiger-bg-fx {
  display: none !important;
}

.live-social-bar {
  display: none !important;
}

.live-social-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.live-social-content strong {
  color: var(--gold-bright);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulse-dot 1.5s infinite;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45);
  border: 1px solid rgba(255, 245, 186, 0.6);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

.brand-name span {
  background: var(--gold-liquid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.brand-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}



.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão "Meus Bilhetes" com Alto Destaque Ouro VIP */
.btn-check-quotas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.6);
  border-radius: var(--radius-full);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.2);
}

.btn-check-quotas:hover {
  background: var(--gold-liquid);
  color: var(--gold-text);
  border-color: #ffe666;
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-support-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

/* ==========================================================================
   SEÇÃO DE CONSULTA DE COTAS POR CPF ("MEUS BILHETES")
   ========================================================================== */
.search-quotas-card {
  background: linear-gradient(145deg, #121827 0%, #0a0e17 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease-out;
}

.search-quotas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.search-quotas-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
}

.search-quotas-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-close-box {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-box:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.search-cpf-input-wrap {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  height: 50px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.btn-search-action {
  background: var(--gold-liquid);
  color: var(--gold-text);
  border: none;
  border-radius: var(--radius-md);
  padding: 0 24px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(255, 170, 0, 0.4);
  white-space: nowrap;
}

.btn-search-action:hover {
  background: var(--gold-liquid-hover);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.55);
  transform: translateY(-1px);
}

/* Resultados da Busca de Bilhetes */
.search-results-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.order-result-card {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.order-result-card.paid-order {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.08);
}

.order-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-code-badge {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-empty-msg {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   PAINEL DE SETUP DO ADMINISTRADOR (ÁREA OCULTA)
   ========================================================================== */
.admin-setup-card {
  background: linear-gradient(145deg, #101726 0%, #0d121c 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.admin-setup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b38728, #ffd700, #b38728);
}

.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.setup-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-tag {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-bright);
  border: 1px solid var(--border-glow);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.setup-input-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.setup-input-wrapper {
  position: relative;
}

.setup-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
}

.setup-input-wrapper input {
  width: 100%;
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 38px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.setup-input-wrapper.suffix-wrapper input {
  padding-left: 14px;
  padding-right: 38px;
}

.setup-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
}

.setup-input-wrapper input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
}

.setup-calc-banner {
  background: rgba(255, 215, 0, 0.05);
  border: 1px dashed rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.calc-stat {
  text-align: center;
}

.calc-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.calc-stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.calc-stat-value.highlight {
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-green-glow);
}

.calc-formula-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   HERO / CARD DO PRÊMIO (JACKPOT ESTILO YUUGADO & BET VIP)
   ========================================================================== */
.prize-hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 0, 0.12);
}

.prize-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, transparent 70%);
  pointer-events: none;
}



.prize-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.prize-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.prize-pill-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulse-dot 1.5s infinite;
}

.prize-status-online {
  font-size: 0.75rem;
  color: var(--gold-bright);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.prize-title {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.prize-highlight-amount {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFD700 28%, #FFA751 68%, #FFF2A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.45));
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

.prize-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 20px auto;
}

/* Barra Visual de Progresso de Cotas (FOMO / Ouro Metálico) */
.campaign-progress-box {
  background: #090d16;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 580px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-label {
  color: var(--text-primary);
}

.progress-percent {
  color: var(--gold-bright);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b38728 0%, #ffd700 50%, #ffe666 100%);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
  border-radius: var(--radius-full);
}

.progress-subnote {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.prize-features-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.prize-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.prize-feature-item span.icon {
  color: var(--gold-bright);
}

/* ==========================================================================
   PACOTES PROMOCIONAIS DE COTAS (LINGOTES DE OURO / PACHINKO CHIPS)
   ========================================================================== */
.card-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.section-title-wrap {
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fast-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.btn-fast-quota {
  background: linear-gradient(145deg, #101524 0%, #0a0d16 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-fast-quota:hover {
  background: linear-gradient(145deg, #172036 0%, #0f1424 100%);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.22);
}

.btn-fast-quota.active {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.16) 0%, rgba(20, 26, 42, 0.95) 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.4), inset 0 0 12px rgba(255, 215, 0, 0.1);
}

.quota-number-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.btn-fast-quota.active .quota-number-text {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.quota-price-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quota-tag {
  position: absolute;
  top: -9px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.quota-tag.popular {
  background: linear-gradient(90deg, #d4af37, #ffd700);
  color: #241600;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.quota-tag.hot {
  background: linear-gradient(90deg, #ff2a5f, #ff7b00);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 42, 95, 0.4);
}

.quota-tag.star {
  background: linear-gradient(90deg, #b38728, #fbf5b7);
  color: #241600;
  box-shadow: 0 2px 8px rgba(251, 245, 183, 0.3);
}

.quota-tag.diamond {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  color: #241600;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
}

/* Stepper Customizado */
.custom-quota-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.custom-quota-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #121827;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background: #1b2438;
  border-color: var(--border-glow);
  color: var(--gold-bright);
}

.input-quota-number {
  width: 100px;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 44px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  transition: all 0.2s;
}

.input-quota-number:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}

/* Subtotal Bar */
.subtotal-checkout-bar {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(18, 24, 38, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.subtotal-info {
  display: flex;
  flex-direction: column;
}

.subtotal-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subtotal-calc-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.subtotal-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}

/* ==========================================================================
   FORMULÁRIO DE CADASTRO OBRIGATÓRIO (CPF, WHATSAPP, CHAVE PIX)
   ========================================================================== */
.customer-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.form-group label .required-mark {
  color: var(--urgent-red);
  margin-left: 4px;
}

.form-group label .hint-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.form-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s;
}

.form-input {
  width: 100%;
  height: 50px;
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 14px 0 42px;
  color: var(--text-white);
  font-size: 16px; /* Crucial: 16px impede o zoom automático indesejado no iOS Safari */
  font-weight: 500;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.38);
  background: #0c121e;
}

.form-input:focus + .form-input-icon {
  color: var(--gold-bright);
}

.form-input.is-invalid {
  border-color: var(--urgent-red);
  box-shadow: 0 0 10px var(--urgent-red-glow);
}

.input-error-msg {
  font-size: 0.72rem;
  color: var(--urgent-red);
  margin-top: 2px;
  display: none;
}

.input-error-msg.visible {
  display: block;
}

/* ==========================================================================
   SELETOR DE TIPO DE CHAVE PIX (CPF, CELULAR, E-MAIL, ALEATÓRIA)
   ========================================================================== */
.pix-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 8px 0;
}

.pix-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 6px);
  padding: 8px 6px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pix-type-pill svg {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.pix-type-pill:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--text-white);
}

.pix-type-pill:hover svg {
  color: var(--gold-bright);
}

.pix-type-pill.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 170, 0, 0.08));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.22);
}

.pix-type-pill.active svg {
  color: var(--gold-bright);
}

@media (max-width: 480px) {
  .pix-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .pix-type-pill {
    padding: 7px 4px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   BOTÃO DE ALTA CONVERSÃO (LIQUID GOLD & SHIMMER SWEEP)
   ========================================================================== */
.btn-primary-conversion {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  color: #241600;
  border: 1px solid #FFF2A3;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 25px rgba(255, 170, 0, 0.45), 0 0 18px rgba(255, 215, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary-conversion:active {
  transform: scale(0.98);
}

.btn-primary-conversion:hover {
  background: linear-gradient(135deg, #FFF089 0%, #FFB866 100%);
  box-shadow: 0 8px 35px rgba(255, 170, 0, 0.65), 0 0 25px rgba(255, 220, 100, 0.5);
  transform: translateY(-2px);
}

.btn-primary-conversion:active {
  transform: translateY(1px);
  box-shadow: 0 3px 15px rgba(255, 170, 0, 0.4);
}

.btn-primary-conversion::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  animation: gold-shimmer-sweep 3.2s infinite;
}

@keyframes gold-shimmer-sweep {
  0% { left: -120%; }
  35%, 100% { left: 160%; }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding-bottom: 16px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #090e18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item[open] {
  border-color: rgba(255, 215, 0, 0.35);
}

.faq-question {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold-bright);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 18px 16px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TELA DE CHECKOUT & PAGAMENTO (TEMPORIZADOR + PIX)
   ========================================================================== */
.checkout-view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.checkout-view.active {
  display: block;
}

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

/* Cronômetro Regressivo de 10 Minutos (Estilo VIP High-Roller) */
.timer-hero-box {
  background: linear-gradient(145deg, #131929 0%, #0a0e18 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.12);
  transition: all 0.3s ease;
}

.timer-hero-box.urgent-mode {
  border-color: var(--urgent-red);
  box-shadow: var(--shadow-red);
  background: linear-gradient(145deg, #220e16 0%, #13070b 100%);
}

.timer-subtitle-top {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}

.timer-display {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 4.2rem);
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Quando faltar menos de 1 minuto: VERMELHO E PULSANDO LEVEMENTE */
.timer-display.danger-urgent {
  color: var(--urgent-red) !important;
  text-shadow: 0 0 25px var(--urgent-red-glow) !important;
  animation: pulse-urgency 1s infinite alternate;
}

@keyframes pulse-urgency {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

.timer-urgency-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.timer-urgency-banner.urgent-active {
  background: var(--urgent-red-bg);
  color: var(--urgent-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

/* Badges dos Números Gerados */
.badges-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.badges-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.badges-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-status-pill {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.badge-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--pending-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-pill.paid {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 215, 0, 0.45);
}

.quota-numbers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.quota-numbers-grid::-webkit-scrollbar {
  width: 6px;
}
.quota-numbers-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.2);
  border-radius: 4px;
}

/* Badges Individuais */
.quota-badge {
  background: linear-gradient(145deg, #121828 0%, #0a0e18 100%);
  border: 1px solid rgba(255, 215, 0, 0.32);
  color: #ffe680;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.quota-badge.paid-badge {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.2) 0%, rgba(24, 20, 10, 0.95) 100%) !important;
  border-color: var(--gold-bright) !important;
  color: #fff9d6 !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.45) !important;
}

/* MOCK GATEWAY PIX (Ambiente VIP Seguro) */
.pix-gateway-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.gateway-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gateway-brand-badge strong {
  color: var(--gold-bright);
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 215, 0, 0.35);
  border: 3px solid var(--gold-bright);
}

.qr-code-img {
  width: 210px;
  height: 210px;
  display: block;
}

.pix-copy-paste-box {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.pix-code-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  max-height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.btn-copy-pix {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-copy-pix:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

.btn-copy-pix.copied {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* Botões de Ação do Checkout */
.test-actions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn-simulate-approved {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  border: 1px solid #FFF2A3;
  border-radius: var(--radius-md);
  color: #241600;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(255, 170, 0, 0.45);
  transition: all 0.2s ease;
}

.btn-simulate-approved:hover {
  background: linear-gradient(135deg, #FFF089 0%, #FFB866 100%);
  color: #1a1000;
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.btn-cancel-checkout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-checkout:hover {
  color: var(--urgent-red);
  border-color: rgba(255, 51, 102, 0.3);
}

/* ==========================================================================
   TELA DE RECIBO DE SUCESSO (STATUS: PAGO VIP)
   ========================================================================== */
.success-receipt-card {
  display: none;
  background: linear-gradient(145deg, #0e1524 0%, #080d14 100%);
  border: 1px solid var(--gold-bright);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 24px;
  animation: fadeIn 0.5s ease-out;
}

.success-receipt-card.active {
  display: block;
}

.success-hero-header {
  text-align: center;
  margin-bottom: 24px;
}

.success-check-circle {
  width: 70px;
  height: 70px;
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold-bright);
  margin: 0 auto 16px auto;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.receipt-details-table {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.receipt-row-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: right;
}

.receipt-row-val.pix-key-val {
  color: var(--gold-bright);
  font-weight: 700;
  word-break: break-all;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-receipt-action {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
}

.btn-receipt-new {
  background: var(--gold-liquid);
  color: var(--gold-text);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-receipt-new:hover {
  background: var(--gold-liquid-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.45);
}

/* ==========================================================================
   RODAPÉ E TRIGGER DISCRETO DO ADMIN
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-subtext {
  font-size: 0.72rem;
  margin-top: 2px;
}

.btn-discreet-admin {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-discreet-admin:hover {
  color: var(--gold-bright);
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

/* ==========================================================================
   MODAL DE TEMPO ESGOTADO
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--urgent-red);
  box-shadow: 0 0 35px var(--urgent-red-glow);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.modal-icon-expired {
  width: 70px;
  height: 70px;
  background: var(--urgent-red-bg);
  border: 2px solid var(--urgent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--urgent-red);
  margin: 0 auto 16px auto;
  animation: pulse-urgency 1s infinite alternate;
}

.modal-title {
  font-size: 1.45rem;
  color: var(--urgent-red);
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-modal-dismiss {
  width: 100%;
  height: 48px;
  background: var(--urgent-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-dismiss:hover {
  background: #ff1a53;
  box-shadow: 0 0 20px var(--urgent-red-glow);
}

/* ==========================================================================
   TOAST NOTIFICATION (BORDA DOURADA)
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  border: 1px solid var(--gold-bright);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 215, 0, 0.4);
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST POLISH)
   ========================================================================== */
@media (max-width: 640px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .receipt-actions {
    grid-template-columns: 1fr;
  }
  .app-container {
    padding: 12px 10px 60px 10px;
  }
  .prize-features-bar {
    gap: 10px;
  }
  .search-cpf-input-wrap {
    flex-direction: column;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   SELETOR DE AÇÕES / CAMPANHAS ATIVAS (CLIENTE VIP)
   ========================================================================== */
.raffle-selector-section {
  margin-bottom: 24px;
}

.raffle-selector-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.raffle-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.raffle-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.raffle-select-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.15);
}

.raffle-select-card.selected {
  border-color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(18, 25, 40, 0.96) 0%, rgba(255, 215, 0, 0.08) 100%);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.28), inset 0 0 15px rgba(255, 215, 0, 0.06);
}

.raffle-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.raffle-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.raffle-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.raffle-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.raffle-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.raffle-card-progress-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.raffle-card-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.raffle-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b38728 0%, #ffd700 50%, #ffe666 100%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.raffle-card-prize-highlight {
  font-size: 0.82rem;
  color: var(--gold-bright);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  background: rgba(255, 215, 0, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

/* ==========================================================================
   UTILITÁRIOS KIRAKIRA & LUXO DOURADO
   ========================================================================== */
.gold-text-glow {
  color: var(--gold-bright);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.gold-gradient-text {
  background: var(--gold-liquid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-card-highlight {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* ==========================================================================
   MÓDULO DE APURAÇÃO DE GANHADOR E PAGAMENTO PIX COM 1 CLIQUE (CASH-OUT)
   ========================================================================== */
.payout-lookup-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: flex-end;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .payout-lookup-row {
    grid-template-columns: 1fr;
  }
}

.winner-card-box {
  background: linear-gradient(145deg, rgba(16, 21, 36, 0.95) 0%, rgba(10, 13, 22, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.15);
  animation: fadeIn 0.3s ease-out;
}

.winner-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.winner-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.winner-trophy-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.winner-prize-tag {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.winner-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.winner-meta-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.winner-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.winner-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.winner-pix-highlight {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.winner-pix-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.winner-pix-key-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.btn-transfer-prize-pix {
  background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #69f0ae 100%);
  color: #05140b;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.btn-transfer-prize-pix:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.7);
  background: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
}

.btn-transfer-prize-pix:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #334155;
  color: #94a3b8;
}

.payout-receipt-box {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--neon-green);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  animation: fadeIn 0.3s ease-out;
}

.payout-receipt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--neon-green);
  margin-bottom: 12px;
}

.payout-receipt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 0.8rem;
}

.payout-receipt-item {
  color: var(--text-muted);
}

.payout-receipt-item strong {
  color: var(--text-primary);
}

/* Modal de Confirmação 2 Etapas */
.payout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.payout-modal-card {
  background: #0d121f;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.2);
}

.payout-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.payout-modal-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #fbbf24;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.payout-modal-details {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.88rem;
}

.payout-modal-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payout-modal-row:last-child {
  border-bottom: none;
}

.payout-modal-actions {
  display: flex;
  gap: 12px;
}

.btn-payout-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-payout-confirm {
  flex: 2;
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #05140b;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

/* ==========================================================================
   SEÇÃO PÚBLICA DE GANHADORES (PROVA SOCIAL & CONVERSÃO VIP)
   ========================================================================== */
.public-winners-section {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-top: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.public-winners-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.public-winners-icon {
  font-size: 1.8rem;
  background: rgba(255, 215, 0, 0.12);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  flex-shrink: 0;
}

.public-winners-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.public-winners-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.public-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.public-winner-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.public-winner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.35);
}

.public-winner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-winner-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.public-winner-badge-paid {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.public-winner-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
}

.public-winner-quota {
  font-weight: 800;
  color: var(--gold-bright);
  font-family: monospace;
  font-size: 1.05rem;
}

.public-winner-prize {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.public-winner-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

/* ==========================================================================
   BARRA FLUTUANTE STICKY DE ALTA CONVERSÃO MOBILE
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(9, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 215, 0, 0.35);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sticky-bar-content {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
}

.sticky-bar-quotas {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticky-bar-total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  line-height: 1.1;
}

.btn-sticky-participar {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  color: #241600;
  border: 1px solid #FFF2A3;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 170, 0, 0.4);
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-sticky-participar:active {
  transform: scale(0.97);
}

.mobile-sticky-bar.hide {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}




