/* Signup Wizard — design fiel ao Figma LolCombat Onboarding */

*, *::before, *::after { box-sizing: border-box; }

.signup-body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(180deg, #FF5922 0%, #FFC3AF 100%);
  min-height: 100vh;
}

/* ── Página ── */
.signup-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 40px;
}

.signup-wrapper        { width: 100%; max-width: 740px; }
.signup-wrapper--wide  { width: 100%; max-width: 900px; }
.signup-wrapper--plans { width: 100%; max-width: 920px; }

/* ── Card laranja (padrão) ── */
.signup-card {
  background: #E94E1B;
  border-radius: 24px;
  box-shadow:
    10px 11px 29.3px 5px rgba(0, 0, 0, 0.25),
    0px 16px 32px rgba(0, 0, 0, 0.08),
    0px 3px 10px rgba(0, 0, 0, 0.08);
  padding: 54px 56px 48px;
  color: #FFFFFF;
  width: 100%;
}

/* Card branco — Etapa Termos */
.signup-card--white {
  background: #FFFFFF;
  color: #16161B;
}

/* ── Footer de página ── */
.signup-footer {
  margin-top: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ── Step indicator ──
   Cada .step-item é uma unidade autônoma: pill (::before) + círculo (step-circle).
   O pill tem a mesma cor do círculo e fica ATRÁS (z-index:1).
   O círculo fica NA FRENTE (z-index:2).
   Entre os step-items há um gap (fundo do card aparece).
*/
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* Cada step: largura total = asas (52px × 2) + círculo (44px) = 148px */
.step-item {
  width: 148px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pill/asa — estica de ponta a ponta do step-item, fica atrás do círculo */
.step-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 100px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* Círculo — na frente do pill */
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/* Ativa / concluída (etapas 2+): preto */
.step-item--active::before,
.step-item--done::before        { background: #16161b; }
.step-item--active .step-circle,
.step-item--done .step-circle   { background: #16161b; }
.step-item--active .step-label,
.step-item--done .step-label    { color: #faf9f6; }

/* Etapa 1 quando passada (em telas 2, 3, 4): cinza */
.step-item--step1::before       { background: #999999; }
.step-item--step1 .step-circle  { background: #999999; }
.step-item--step1 .step-label   { color: #ffffff; }

/* Pendente */
.step-item--pending::before        { background: #f5f5f5; }
.step-item--pending .step-circle   { background: #f5f5f5; }
.step-item--pending .step-label    { color: #666666; }

/* Card branco */
.signup-card--white .step-item--step1::before      { background: #999999; }
.signup-card--white .step-item--step1 .step-circle { background: #999999; }
.signup-card--white .step-item--pending::before        { background: #E4E5E7; }
.signup-card--white .step-item--pending .step-circle   { background: #E4E5E7; }
.signup-card--white .step-item--pending .step-label    { color: #999; }

/* ── Cabeçalho do card ── */
.signup-card-header { text-align: center; margin-bottom: 40px; }

.signup-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: inherit;
}

.signup-card-title--brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.125rem;
  color: #E94E1B;
  margin: 0 0 4px;
}

.signup-card-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* No card branco, title usa laranja */
.signup-card--white .signup-card-title { color: #E94E1B; }

/* ── Erros ── */
.signup-errors {
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  align-items: flex-start;
  font-size: 0.875rem;
}

.signup-errors .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1.125rem;
  margin-top: 1px;
}

.signup-errors ul {
  margin: 0;
  padding: 0 0 0 1rem;
}

.signup-errors ul li { margin-bottom: 2px; }
.signup-errors ul li:last-child { margin-bottom: 0; }

/* ── Form container — 324px fixos, centralizado ── */
.signup-form {
  width: 324px;
  margin: 0 auto;
}

/* ── Inputs com ícone (estilo bottom-border) ── */
.field { margin-bottom: 40px; }

.field-inner {
  display: flex;
  align-items: center;
  background: #ffb59f;
  border-radius: 4px 4px 0 0;
  height: 43px;
  border-bottom: 2px solid rgba(39, 24, 20, 0.45);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-inner:focus-within {
  border-bottom-color: #271814;
  box-shadow: inset 0 -1px 0 #271814;
}

.field-icon {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(39, 24, 20, 0.6);
  flex-shrink: 0;
  font-size: 1.125rem;
  pointer-events: none;
}

.field-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  height: 100%;
  padding: 0 12px 0 0;
  color: #271814;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder { color: rgba(39, 24, 20, 0.5); }

.field-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #ffb59f inset;
  -webkit-text-fill-color: #271814;
}

/* Select */
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='rgba(39,24,20,0.65)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-color: #ffb59f;
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
  color: #271814;
}

.field-select option {
  background: #ffffff;
  color: #271814;
}

/* Botão inline (CNPJ lookup) */
.field-action-btn {
  flex-shrink: 0;
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(39, 24, 20, 0.2);
  color: rgba(39, 24, 20, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.field-action-btn:hover { background: rgba(39, 24, 20, 0.08); }
.field-action-btn .material-symbols-outlined { font-size: 1.125rem; }

.field-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  padding-left: 2px;
}

.field-status {
  font-size: 0.75rem;
  color: rgba(39, 24, 20, 0.55);
  margin-top: 4px;
  padding-left: 4px;
  min-height: 16px;
}

/* Colapsa os textos auxiliares do subdomínio enquanto vazios (preenchidos via JS),
   evitando o espaçamento extra antes do próximo campo no estado inicial. */
.field-hint:empty,
.field-status:empty {
  display: none;
}

/* Grid 2 colunas (mantido para outras telas) */
.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

/* ── Planos ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card-wrapper { position: relative; }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}

.plan-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  color: #16161B;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card--featured {
  box-shadow: 0 0 0 2px #2563EB;
}

.plan-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.375rem;
  color: #16161B;
  margin: 0 0 4px;
}

.plan-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #6B7172;
  margin: 0 0 12px;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 2px;
}

.plan-price-currency {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16161B;
}

.plan-price-amount {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.875rem;
  color: #16161B;
  line-height: 1;
}

.plan-price-period {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #6B7172;
}

.plan-price-alt {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #6B7172;
  margin: 0 0 12px;
}

.plan-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8125rem;
  color: #464A4B;
  margin: 0 0 12px;
}

.plan-limit-badge {
  display: inline-block;
  background: rgba(233, 78, 27, 0.12);
  color: #C83E12;
  font-family: 'Roboto', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8125rem;
  color: #16161B;
}

.plan-features .material-symbols-outlined {
  font-size: 1rem;
  color: #3D8E6F;
  flex-shrink: 0;
}

.plan-trial {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3D8E6F;
  background: #E8F5EF;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

/* Botão Selecionar — dentro do card branco */
.btn-selecionar {
  width: 100%;
  padding: 10px 16px;
  border-radius: 100px;
  border: 2px solid #16161B;
  background: transparent;
  color: #16161B;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-selecionar:hover {
  background: #16161B;
  color: #fff;
}

/* ── Termos ── */
.terms-scroll-area {
  height: 320px;
  overflow-y: auto;
  border: 1px solid #E4E5E7;
  border-radius: 8px;
  padding: 16px 20px;
  background: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #16161B;
  margin-bottom: 20px;
}

.terms-scroll-area h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.125rem;
  margin: 0 0 4px;
}

.terms-scroll-area h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #464A4B;
  margin: 16px 0 4px;
}

.terms-scroll-area p { margin: 0 0 8px; }

/* ── Checkout (step 4) ── */
.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
}

.checkout-loading .material-symbols-outlined {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.rotating { animation: rotate 1s linear infinite; }

.checkout-footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-cancel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.btn-cancel:hover { color: #fff; }

/* ── Checkout return ── */
.return-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.return-icon .material-symbols-outlined { font-size: 3.5rem; opacity: 0.95; }

.return-subscription {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  margin: 16px 0;
}

.return-subscription strong {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ── Botões ── */
.btn-primary,
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1;
  border: none;
}

/* Primário no card laranja: fundo branco */
.btn-primary {
  background: #FFFFFF;
  color: #16161B;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
  background: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}

/* Ghost no card laranja: borda branca */
.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Primário no card branco: laranja */
.btn-primary--on-white {
  background: #E94E1B;
  color: #FFFFFF;
  border: none;
}

.btn-primary--on-white:hover:not(:disabled) {
  background: #C83E12;
  box-shadow: 0 4px 12px rgba(200,62,18,0.3);
}

/* Ghost no card branco: borda escura */
.btn-ghost--on-white {
  background: transparent;
  color: #16161B;
  border: 1.5px solid rgba(22,22,27,0.4);
}

.btn-ghost--on-white:hover { background: rgba(22,22,27,0.06); }

.btn-full  { width: 100%; }
.btn-center { align-self: center; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.form-actions--row {
  flex-direction: row;
  justify-content: center;
}

.form-actions--split {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-actions--split .btn-primary,
.form-actions--split .btn-ghost {
  flex: 1;
  max-width: 160px;
}

/* ── Info box ── */
.signup-info {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.signup-info .material-symbols-outlined { flex-shrink: 0; font-size: 1.125rem; }

/* ── Card de plano pré-selecionado (step 1 — fluxo 3 etapas) ── */
.selected-plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 32px;
  color: #fff;
}

.selected-plan-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-plan-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.selected-plan-trial {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  opacity: 0.85;
}

.selected-plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.selected-plan-price .price-currency {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
}

.selected-plan-price .price-amount {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.375rem;
}

.selected-plan-price .price-period {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ── Cards de Tier (step 2 — escolha de ProductGroup) ─────────────────────── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tier-card-wrapper { position: relative; }

.tier-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: #333333;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}

.tier-card {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.tier-card--selected { background: rgba(255, 255, 255, 0.32); }

.tier-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;        /* 36px */
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
}

.tier-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;        /* 12px */
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.tier-price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tier-price-currency {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;           /* 16px */
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.tier-price-amount {
  font-family: 'Roboto', sans-serif;
  font-size: 2.25rem;        /* 36px */
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
}

.tier-price-period {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;           /* 16px */
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.tier-price-alt {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;       /* 14px */
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.tier-description {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;        /* 12px */
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #FFFFFF;
  margin: 0;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: #FFFAF9;
  color: #444748;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;        /* 12px */
  font-weight: 500;
  letter-spacing: 0.4px;
  border-radius: 100px;
  padding: 10px 12px;
  text-align: center;
}

.tier-trial {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 12px;
  align-self: flex-start;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;       /* 14px */
  font-weight: 400;
  color: #FFFFFF;
}

.tier-features .material-symbols-outlined {
  font-size: 16px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.tier-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #FFFAF9;
  color: #444748;
  border: none;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;       /* 14px */
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.tier-select-btn:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════════════
   Step 4 — Pagamento (Card Elements custom)
   ═══════════════════════════════════════════════════════════════════ */

/* Cards de seleção de forma de pagamento */
.payment-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  margin-bottom: 48px; /* espaço pro badge de desconto sobreposto */
}

.payment-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.payment-card-badge {
  height: 33px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-bottom: none;
  transition: border-color 0.15s;
}

.payment-card-badge--recommended {
  background: linear-gradient(180deg, #4a97ea 0%, #040cff 100%);
}

.payment-card-badge--discount {
  background: linear-gradient(180deg, #4aeaca 0%, #0d8773 100%);
}

.payment-card {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 24px 16px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.15);
  text-align: center;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.payment-card-wrapper--badged .payment-card {
  border-radius: 0 0 20px 20px;
  border-top: none;
}

.payment-card:hover {
  background: rgba(255, 255, 255, 0.32);
}

.payment-card--selected {
  background: rgba(255, 255, 255, 0.32);
  border-color: #FFFFFF;
}

/* Borda externa branca contínua envolvendo badge + card quando selecionado */
.payment-card-wrapper--selected .payment-card-badge {
  border-color: #FFFFFF;
}

/* Badge de desconto abaixo do card */
.payment-discount-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: #16161B;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Linha principal do preço com prefixo (até 12x de), R$, valor, período */
.payment-card-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.payment-card-price-prefix {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  width: 100%;
}

.payment-card-price-currency {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #FFFFFF;
}

.payment-card-price-period {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.payment-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}

.payment-card-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 2rem;            /* 32px */
  line-height: 1.25;
  margin: 0;
}

.payment-card-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.payment-card-type {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;       /* 14px */
  font-weight: 500;
  letter-spacing: 0.25px;
}

.payment-card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}

.payment-card-price-amount {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;          /* 24px */
  font-weight: 500;
  line-height: 1.33;
}

.payment-card-price-secondary {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}


/* ── Form layout 2 colunas ───────────────────────────────────────── */
.payment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 24px;
}

.payment-form-section { display: flex; flex-direction: column; gap: 9px; }

.payment-form-title {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 1.125rem;       /* 18px */
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px;
}

/* Stripe Elements wrapper — bordas + bg semi-transparente */
.payment-input,
.StripeElement {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #FFFFFF;
  border-radius: 4px;
  padding: 14px 16px;
  color: #333333;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.payment-input::placeholder { color: rgba(51, 51, 51, 0.5); }

.payment-input:focus,
.StripeElement--focus {
  border-color: #16161B;
  outline: none;
}

.StripeElement--invalid { border-color: #C83E12; }

.payment-input-label {
  display: block;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.payment-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Bandeiras aceitas */
.payment-card-brands {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #FFFFFF;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #16161B;
}

.payment-card-brands-icons {
  display: flex;
  margin-left: auto;
  gap: 6px;
}

.payment-card-brands-icons span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #16161B;
  letter-spacing: 0.5px;
}

/* Dropdown nativo de parcelas */
.payment-installments-select {
  width: 100%;
  height: 58px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #FFFFFF;
  border-radius: 4px;
  color: #333333;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.payment-installments-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Botões inferiores */
.payment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.payment-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 10px 24px;
  border: 1px solid #FFFFFF;
  background: transparent;
  border-radius: 100px;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.payment-btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 120px;
  padding: 10px 24px;
  background: #FFFAF9;
  color: #444748;
  border: none;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.payment-btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

.payment-error {
  background: rgba(200, 62, 18, 0.2);
  border: 1px solid #C83E12;
  border-radius: 8px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* Overlay durante troca de forma de pagamento */
[data-controller="signup-step4"] { position: relative; }

[data-controller="signup-step4"].is-switching::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(233, 78, 27, 0.55);
  z-index: 10;
  border-radius: 16px;
}

[data-controller="signup-step4"].is-switching::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 11;
}

/* Respeita o atributo HTML `hidden` mesmo quando o elemento tem display flex/grid */
[data-controller="signup-step4"] [hidden] { display: none !important; }

/* Loading state */
.payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  color: #FFFFFF;
}

.payment-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .payment-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .payment-form-grid  { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .signup-page  { padding: 32px 12px 32px; }
  .signup-card  { padding: 24px 18px; }
  .fields-row   { grid-template-columns: 1fr; gap: 0; }
  .payment-input-row { grid-template-columns: 1fr; }
}
