/* ============================================================
   VICAPRO STREAM — Modal de Planos & Pagamento Integrado
   Baseado no estilo do front-end original (tema dark Netflix/HBO)
   ============================================================ */

.vca-plano-overlay {
  --vca-fundo-overlay: rgba(5, 7, 12, 0.86);
  --vca-fundo-modal: #161a23;
  --vca-fundo-modal-borda: #242a38;
  --vca-texto: #f4f6fa;
  --vca-texto-suave: #9aa3b2;

  /* Cores de destaque */
  --vca-aceso-inicio: #ff4d0d;
  --vca-aceso-fim: #ec4407;
  --vca-aceso-brilho: rgba(255, 77, 13, 0.35);
  --vca-apagado-fundo: #262036;
  --vca-apagado-texto-suave: #a99fc4;
  --vca-apagado-divisor: rgba(255, 255, 255, 0.14);
  --vca-lima: #c8f04a;
  --vca-lima-texto: #1a2305;

  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--vca-fundo-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  box-sizing: border-box;
}

.vca-plano-overlay * {
  box-sizing: border-box;
}

.vca-plano-overlay--visivel {
  opacity: 1;
  visibility: visible;
}

body.vca-modal-travado {
  overflow: hidden !important;
}

/* ---------- Caixa do modal ---------- */
.vca-plano-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 28px 24px;
  background: var(--vca-fundo-modal);
  border: 1px solid var(--vca-fundo-modal-borda);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--vca-texto);
  text-align: center;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vca-plano-overlay--visivel .vca-plano-modal {
  transform: translateY(0) scale(1);
}

/* Botão Fechar */
.vca-plano-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--vca-texto-suave);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.vca-plano-fechar:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Textos Iniciais */
.vca-plano-titulo {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.vca-plano-subtitulo {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--vca-texto-suave);
}

/* Cards dos Planos */
.vca-plano-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.vca-plano-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: var(--vca-apagado-fundo);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vca-plano-card:hover {
  transform: translateY(-2px);
}

.vca-plano-card--ativo {
  background: var(--vca-aceso-inicio);
  box-shadow: 0 10px 30px var(--vca-aceso-brilho);
  transform: translateY(-2px);
}

.vca-plano-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
}

.vca-plano-card-nome {
  font-size: 1rem;
  font-weight: 700;
}

.vca-plano-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--vca-lima);
  color: var(--vca-lima-texto);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Divisor estilo ingresso */
.vca-plano-card-divisor {
  position: relative;
  height: 0;
  margin: 0 8px;
  border-top: 2px dashed var(--vca-apagado-divisor);
}

.vca-plano-card--ativo .vca-plano-card-divisor {
  border-top-color: rgba(255, 255, 255, 0.45);
}

.vca-plano-card-divisor::before,
.vca-plano-card-divisor::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vca-fundo-modal);
}

.vca-plano-card-divisor::before { left: -16px; }
.vca-plano-card-divisor::after  { right: -16px; }

.vca-plano-card-corpo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  flex: 1;
}

.vca-plano-card-info {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--vca-apagado-texto-suave);
}

.vca-plano-card--ativo .vca-plano-card-info {
  color: rgba(255, 255, 255, 0.8);
}

.vca-plano-card-preco {
  margin-top: auto;
  padding-top: 6px;
  font-size: 1.45rem;
  font-weight: 800;
}

.vca-plano-card-preco small {
  font-size: 0.85rem;
  font-weight: 700;
}

.vca-plano-card-periodo {
  font-size: 0.78rem;
  color: var(--vca-apagado-texto-suave);
}

.vca-plano-card--ativo .vca-plano-card-periodo {
  color: rgba(255, 255, 255, 0.8);
}

/* Benefícios */
.vca-plano-beneficios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.vca-plano-beneficio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
}

.vca-plano-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vca-lima);
  color: var(--vca-lima-texto);
}

/* Botão CTA Principal */
.vca-plano-btn-cta {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #ff4d0d;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(255, 77, 13, 0.35);
}

.vca-plano-btn-cta:hover:not(:disabled) {
  background: #e2440b;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 77, 13, 0.45);
}

.vca-plano-btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Feedback / Mensagens de Alerta Inline no Modal (padrão shadcn/Tailwind dark - sem degrades nem emojis) */
.vca-feedback-msg {
  display: none;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  transition: opacity 0.2s ease;
}

.vca-feedback-msg--erro {
  display: block;
  background: #2a1215;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
}

.vca-feedback-msg--aviso {
  display: block;
  background: #2b1d0c;
  border: 1px solid #78350f;
  color: #fcd34d;
}

.vca-feedback-msg--sucesso {
  display: block;
  background: #0f291e;
  border: 1px solid #065f46;
  color: #6ee7b7;
}

.vca-feedback-msg--info {
  display: block;
  background: #111c33;
  border: 1px solid #1e3a8a;
  color: #93c5fd;
}

/* Toasts flutuantes (sem degradês) */
.vca-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.vca-toast {
  pointer-events: auto;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: vcaToastEntrada 0.3s ease;
}

.vca-toast--erro {
  background: #2a1215;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
}

.vca-toast--sucesso {
  background: #0f291e;
  border: 1px solid #065f46;
  color: #6ee7b7;
}

.vca-toast--aviso {
  background: #2b1d0c;
  border: 1px solid #78350f;
  color: #fcd34d;
}

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

/* ---------- ETAPA DE PAGAMENTO ---------- */
.vca-pagamento-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vca-btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--vca-texto-suave);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.vca-btn-voltar:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vca-resumo-escolha {
  font-size: 0.95rem;
  color: #fff;
}

.vca-resumo-escolha strong {
  color: var(--vca-aceso-inicio);
}

/* Abas PIX / Cartão */
.vca-abas-pagamento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.vca-aba-btn {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--vca-texto-suave);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vca-aba-btn--ativo {
  background: #ff4d0d;
  border-color: #ff4d0d;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 13, 0.3);
}

/* Formulários de Pagamento */
.vca-form-pagto {
  text-align: left;
}

.vca-campo-grupo {
  margin-bottom: 14px;
}

.vca-campo-grupo label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.vca-campo-grupo input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.vca-campo-grupo input:focus {
  outline: none;
  border-color: var(--vca-aceso-inicio);
  background: rgba(255, 255, 255, 0.1);
}

.vca-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vca-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.vca-aviso-parcelamento {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 16px;
  text-align: center;
}

/* ---------- RESULTADO PIX (QR CODE + COPIA E COLA) ---------- */
.vca-pix-sucesso-header {
  margin-bottom: 16px;
}

.vca-badge-tempo {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 77, 13, 0.18);
  color: #ff6b38;
  font-size: 0.78rem;
  font-weight: 700;
}

.vca-qrcode-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vca-qrcode-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.vca-copia-cola-box textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: monospace;
  resize: none;
  margin-bottom: 8px;
}

.vca-btn-copiar {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vca-btn-copiar:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Sucesso Icone */
.vca-icone-sucesso {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(200, 240, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsivo Mobile */
@media (max-width: 480px) {
  .vca-plano-modal {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .vca-plano-cards {
    grid-template-columns: 1fr;
  }
  .vca-grid-2, .vca-grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .vca-qrcode-box {
    width: 170px;
    height: 170px;
  }
}

/* ---------- PLANOS ADICIONAIS ("+ Mais planos") ----------
   Ficam recolhidos abaixo dos cards mensal/anual. Mesmo visual de card
   (apagado / aceso em laranja quando selecionado), em linhas compactas. */
.vca-extras {
  margin: -10px 0 22px;
}

.vca-extras-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--vca-texto-suave);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.vca-extras-toggle:hover,
.vca-extras-toggle[aria-expanded="true"] {
  color: var(--vca-texto);
}

.vca-extras-toggle-sinal {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--vca-fundo-modal-borda);
  font-size: 1rem;
  line-height: 1;
}

.vca-extras-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 2px 4px;
}

.vca-extras-lista[hidden] {
  display: none;
}

.vca-plano-card--extra {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  flex: none;
}

.vca-plano-card--extra:hover,
.vca-plano-card--extra.vca-plano-card--ativo {
  transform: none;
}

.vca-extra-esq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vca-extra-nome-linha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vca-extra-dir {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
  text-align: right;
}

.vca-extra-preco {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}
