/* ═══════════════════════════════════════════════════════════════
   ASAS DE ÁGUIA — RECURSOS ESTRATÉGICOS
   1. Calculadora de Retorno (ROI da Aprovação) nas Descrições dos Cursos
   2. Diagnóstico Raio-X em 60 Segundos (Modal + WhatsApp)
   3. Notificações Sutis de Prova Real (Deck Shuffled: 10s exibição / 30s pausa)
   4. Caixa Flutuante de Análise Gratuita (Disparo após 2 minutos)
   ═══════════════════════════════════════════════════════════════ */

/* ── Menu Destaque: Raio-X 60s ────────────────────────────── */
.menu-btn-raiox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(229, 191, 69, 0.1));
  border: 1px solid rgba(229, 191, 69, 0.55);
  color: #fef08a !important;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}
.menu-btn-raiox:hover {
  background: linear-gradient(135deg, #d4af37, #f7d070);
  color: #070b28 !important;
  border-color: #f7d070;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
}
.menu-btn-raiox .raiox-pulsar {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulsarVerdeRaioX 1.8s infinite ease-in-out;
}
@keyframes pulsarVerdeRaioX {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ── 1. CALCULADORA DE RETORNO (ROI DA APROVAÇÃO) ──────────── */
.calculadora-retorno-box {
  background: linear-gradient(145deg, rgba(13, 19, 76, 0.85), rgba(7, 11, 40, 0.95));
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 20px;
  margin-top: 14px;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: 'Inter', system-ui, sans-serif;
  color: #e2e8f0;
}
.calc-retorno-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.calc-retorno-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid #4ade80;
  color: #4ade80;
}
.calc-retorno-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-retorno-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 2px 0 14px;
  line-height: 1.4;
}
.calc-slider-bloco {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.calc-slider-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.calc-slider-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
}
.calc-slider-valor-display {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd875;
}
.calc-slider-input {
  width: 100%;
  accent-color: #d4af37;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  outline: none;
}
.calc-slider-faixa {
  display: flex;
  justify-content: space-between;
  font-size: 0.70rem;
  color: #64748b;
  margin-top: 4px;
}

.calc-metricas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.calc-metrica-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s;
}
.calc-metrica-card.destaque-verde {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}
.calc-metrica-card.destaque-ouro {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.09);
}
.calc-metrica-rotulo {
  font-size: 0.70rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.calc-metrica-valor {
  font-family: 'Nunito', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
}
.calc-metrica-valor.verde { color: #4ade80; }
.calc-metrica-valor.ouro { color: #ffd875; }
.calc-metrica-desc {
  font-size: 0.72rem;
  color: #b8c2df;
  line-height: 1.25;
}

.calc-comparativo-atraso {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fca5a5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.calc-comparativo-atraso svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ef4444;
}
.calc-comparativo-atraso strong {
  color: #fecaca;
}

/* ── 2. MODAL RAIO-X EM 60 SEGUNDOS ────────────────────────── */
.raiox-modal-fundo {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.raiox-modal-fundo.aberto {
  opacity: 1;
  pointer-events: auto;
}
.raiox-modal-fundo[hidden] {
  display: none !important;
}

.raiox-card {
  background: linear-gradient(165deg, #0d134c 0%, #070b28 100%);
  border: 1.5px solid rgba(201, 162, 39, 0.5);
  border-radius: 20px;
  width: min(640px, 96vw);
  max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(201, 162, 39, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.raiox-modal-fundo.aberto .raiox-card {
  transform: scale(1) translateY(0);
}

.raiox-topo {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 11, 40, 0.7);
}
.raiox-topo-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.raiox-badge-tempo {
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--ouro-claro);
  color: #ffd875;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.raiox-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
}
.raiox-fechar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.raiox-fechar:hover {
  background: rgba(201, 162, 39, 0.3);
  border-color: #ffd875;
  color: #ffffff;
}

.raiox-progresso-trilho {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}
.raiox-progresso-barra {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #4ade80);
  width: 20%;
  transition: width 0.35s ease;
}

.raiox-corpo {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.raiox-pergunta-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ouro-claro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.raiox-pergunta-texto {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}
.raiox-pergunta-ajuda {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
}

.raiox-opcoes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.raiox-opcao-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.raiox-opcao-btn:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.6);
  transform: translateX(4px);
}
.raiox-opcao-letra {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ouro-claro);
  flex-shrink: 0;
}
.raiox-opcao-btn:hover .raiox-opcao-letra {
  background: var(--ouro);
  color: #070b28;
  border-color: var(--ouro);
}
.raiox-opcao-texto-box {
  display: flex;
  flex-direction: column;
}
.raiox-opcao-rotulo {
  font-weight: 700;
  font-size: 0.94rem;
  color: #f1f5f9;
}
.raiox-opcao-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Formulário de Lead final */
.raiox-form-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.raiox-campo-grupo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.raiox-campo-grupo label {
  font-size: 0.80rem;
  font-weight: 700;
  color: #cbd5e1;
}
.raiox-input {
  background: #090f36;
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.raiox-input:focus {
  border-color: var(--ouro-claro);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
  background: #0e164f;
}
.raiox-btn-enviar-lead {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  margin-top: 6px;
}
.raiox-btn-enviar-lead:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.55);
}

/* Tela de Conclusão / Resultado com WhatsApp */
.raiox-resultado-bloco {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.raiox-score-card {
  background: rgba(201, 162, 39, 0.12);
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.raiox-score-circulo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #4ade80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  flex-shrink: 0;
}
.raiox-score-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: #4ade80;
  line-height: 1;
}
.raiox-score-lbl {
  font-size: 0.55rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.raiox-score-texto strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 2px;
}
.raiox-score-texto p {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.raiox-diagnostico-pontos {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.raiox-ponto-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #d1d5db;
}
.raiox-ponto-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.raiox-ponto-item.alerta svg { color: #f59e0b; }
.raiox-ponto-item.solucao svg { color: #4ade80; }

.raiox-cta-zap {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.2s ease;
  text-align: center;
}
.raiox-cta-zap:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #28e06e, #149c8c);
}

/* ── 3. NOTIFICAÇÕES SUTIS DE PROVA REAL (SOCIAL PROOF TOAST) ─ */
.prova-social-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 998;
  width: min(300px, calc(100vw - 32px));
  background: linear-gradient(150deg, rgba(14, 20, 68, 0.96), rgba(8, 12, 44, 0.98));
  border: 1.5px solid rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.prova-social-toast.visivel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.prova-social-toast[hidden] {
  display: none !important;
}

.prova-social-icone-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.35);
  display: grid;
  place-items: center;
  color: #ffd875;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.prova-social-icone-wrap.ps-compra {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.prova-social-icone-wrap.ps-depoimento {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.prova-social-conteudo {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prova-social-badge-tipo {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffd875;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prova-social-badge-tipo.verde { color: #4ade80; }
.prova-social-badge-tipo.azul { color: #93c5fd; }

.prova-social-texto {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #f1f5f9;
  margin: 0;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prova-social-texto strong {
  color: #ffffff;
  font-weight: 700;
}
.prova-social-tempo {
  font-size: 0.70rem;
  color: #94a3b8;
  margin-top: 2px;
}

.prova-social-fechar-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.prova-social-fechar-btn:hover {
  color: #ffffff;
}

/* ── 4. CAIXA DE ANÁLISE GRATUITA DE ESTUDOS PEQUENA (2 MINUTOS) ─ */
.caixa-analise-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: min(360px, calc(100vw - 32px));
  background: linear-gradient(160deg, #0d1348 0%, #060a28 100%);
  border: 1.5px solid var(--ouro);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(201, 162, 39, 0.25);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.caixa-analise-flutuante.visivel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.caixa-analise-flutuante[hidden] {
  display: none !important;
}

.caixa-analise-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.caixa-analise-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid var(--ouro-claro);
  color: #ffd875;
}
.caixa-analise-fechar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.caixa-analise-fechar:hover {
  background: rgba(201, 162, 39, 0.25);
  border-color: #ffd875;
  color: #ffffff;
}

.caixa-analise-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}
.caixa-analise-texto {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0;
}
.caixa-analise-texto strong {
  color: #ffd875;
}

.caixa-analise-cta-positiva {
  background: linear-gradient(135deg, #d4af37, #f7d070);
  color: #070b28 !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.caixa-analise-cta-positiva:hover {
  background: linear-gradient(135deg, #f7d070, #ffe48a);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.caixa-analise-cta-negativa {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.caixa-analise-cta-negativa:hover {
  color: #cbd5e1;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  .prova-social-toast {
    left: 12px;
    bottom: 84px; /* acima do botão de WhatsApp fixo */
    width: min(280px, calc(100vw - 96px)); /* não cobre o botão de WhatsApp */
    padding: 9px 11px;
    gap: 9px;
  }
  .prova-social-icone-wrap { width: 30px; height: 30px; }
  .prova-social-texto { font-size: 0.76rem; }
  .caixa-analise-flutuante {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
  }
}
