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

/* ── Shell (isolado do CSS global do site) ── */
body.auth-core {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F7F6F3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #1A1917;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.auth-core .auth-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-core .auth-wrap--login {
  max-width: 420px;
}

/* ── Progress bar ── */
.auth-core .progress-wrap {
  width: 100%;
  margin-bottom: 20px;
}

.auth-core .progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.auth-core .ps-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  position: relative;
}

.auth-core .ps-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: #E8E7E2;
  z-index: 0;
}

.auth-core .ps-step:last-child::after { display: none; }

.auth-core .ps-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #E8E7E2;
  color: #8A8880;
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}

.auth-core .ps-step.done .ps-dot { background: #3C2FA0; color: white; }
.auth-core .ps-step.done::after { background: #3C2FA0; }
.auth-core .ps-step.active .ps-dot {
  background: #3C2FA0;
  color: white;
  box-shadow: 0 0 0 4px #EEEDFE;
}

.auth-core .ps-label {
  font-size: 10px;
  font-weight: 600;
  color: #8A8880;
  text-align: center;
  white-space: nowrap;
}

.auth-core .ps-step.active .ps-label,
.auth-core .ps-step.done .ps-label { color: #3C2FA0; }

/* ── Card ── */
.auth-core .card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 0 0 0.5px rgba(26, 25, 23, 0.08);
  width: 100%;
  overflow: hidden;
}

.auth-core .card-header {
  padding: 28px 28px 0;
  text-align: center;
}

.auth-core .card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-core .card-logo-icon {
  width: 32px;
  height: 32px;
  background: #3C2FA0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-core .card-logo-name {
  font-size: 17px;
  font-weight: 700;
  color: #1A1917;
}

.auth-core .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1917;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-core .card-sub {
  font-size: 14px;
  color: #8A8880;
  line-height: 1.5;
  margin-bottom: 0;
}

.auth-core .card-body { padding: 24px 28px; }
.auth-core .card-footer { padding: 0 28px 28px; }

/* ── Form elements ── */
.auth-core .fld { margin-bottom: 16px; }

.auth-core .fld-label {
  font-size: 12px;
  font-weight: 600;
  color: #4A4946;
  display: block;
  margin-bottom: 6px;
}

.auth-core .fld-hint {
  font-size: 11px;
  color: #8A8880;
  margin-top: 4px;
  line-height: 1.5;
}

.auth-core .fld-error {
  font-size: 11px;
  color: #D85A30;
  margin-top: 4px;
  display: none;
}

.auth-core .fld-error.is-visible { display: block; }

.auth-core .inp {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(26, 25, 23, 0.14);
  border-radius: 10px;
  font-size: 15px;
  color: #1A1917;
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  appearance: none;
}

.auth-core .inp:focus {
  border-color: #3C2FA0;
  box-shadow: 0 0 0 3px #EEEDFE;
}

.auth-core .inp.error { border-color: #D85A30; }
.auth-core .inp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-core .inp:-webkit-autofill,
.auth-core .inp:-webkit-autofill:hover,
.auth-core .inp:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #1A1917;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Abas login (senha / código) ── */
body.auth-core .auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #F0EFEB;
  border-radius: 10px;
  margin-bottom: 16px;
}

body.auth-core button.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6B6960;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.3;
  box-sizing: border-box;
}

body.auth-core button.auth-tab.on {
  background: #fff;
  color: #1A1917;
  box-shadow: 0 1px 3px rgba(26, 25, 23, 0.08);
}

body.auth-core .auth-tab-panel { display: none; }
body.auth-core .auth-tab-panel.on { display: block; }
body.auth-core .auth-tab-panel[hidden] { display: none !important; }

body.auth-core .auth-code-hint {
  font-size: 13px;
  color: #6B6960;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ── Campo senha com toggle ── */
body.auth-core .pwd-wrap {
  position: relative;
  display: block;
}

body.auth-core .pwd-wrap .inp {
  width: 100%;
  box-sizing: border-box;
  padding-right: 42px;
}

body.auth-core button.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #8A8880;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

body.auth-core button.pwd-toggle:hover { color: #4A4946; }

/* Consent checkboxes (signup) */
.auth-core .consent-list { margin-top: 4px; }

.auth-core .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #4A4946;
  margin-top: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.auth-core .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #3C2FA0;
  cursor: pointer;
}

/* Phone input */
.auth-core .phone-wrap {
  display: flex;
  border: 1px solid rgba(26, 25, 23, 0.14);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}

.auth-core .phone-wrap:focus-within {
  border-color: #3C2FA0;
  box-shadow: 0 0 0 3px #EEEDFE;
}

.auth-core .phone-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  background: #F7F6F3;
  border-right: 1px solid rgba(26, 25, 23, 0.10);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: #4A4946;
  font-weight: 600;
}

.auth-core .phone-inp {
  flex: 1;
  padding: 11px 14px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1A1917;
  background: transparent;
  font-family: inherit;
}

/* ── OTP ── */
.auth-core .otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
  flex-wrap: wrap;
}

.auth-core .otp-inp {
  width: 52px;
  height: 60px;
  border: 1.5px solid rgba(26, 25, 23, 0.14);
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1A1917;
  outline: none;
  transition: all 0.15s;
  font-family: inherit;
  caret-color: #3C2FA0;
  padding: 0;
}

.auth-core .otp-inp:focus {
  border-color: #3C2FA0;
  box-shadow: 0 0 0 3px #EEEDFE;
}

.auth-core .otp-inp.filled { border-color: #3C2FA0; background: #EEEDFE; }

.auth-core .otp-inp.error-state {
  border-color: #D85A30;
  background: #FAECE7;
  animation: authShake 0.3s;
}

.auth-core .otp-timer {
  font-size: 12px;
  color: #8A8880;
  text-align: center;
  margin-top: 12px;
}

.auth-core .otp-resend {
  font-size: 12px;
  color: #3C2FA0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  margin-top: 8px;
  display: none;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
}

.auth-core .otp-hint {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #F7F6F3;
  font-size: 12px;
  color: #8A8880;
  text-align: center;
  line-height: 1.6;
}

/* Login OTP — email badge */
.auth-core .email-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #F7F6F3;
  border: 0.5px solid rgba(26, 25, 23, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #1A1917;
  margin-bottom: 4px;
  word-break: break-all;
}

.auth-core .email-badge i { color: #8A8880; font-size: 15px; flex-shrink: 0; }

.auth-core .change-email {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: #3C2FA0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.auth-core .change-email:hover { color: #2A2070; }

/* ── Buttons ── */
.auth-core .btn-primary,
.auth-core a.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #3C2FA0;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.4;
}

.auth-core .btn-primary:hover,
.auth-core a.btn-primary:hover { background: #2A2070; color: white; }

.auth-core .btn-primary.is-upgrade-cta { background: #1D9E75; }
.auth-core .btn-primary.is-upgrade-cta:hover { background: #0F6E56; }
.auth-core .btn-primary.is-downgrade-cta { background: #A32D2D; }
.auth-core .btn-primary.is-downgrade-cta:hover { background: #822525; }

.auth-core .btn-primary.is-loading,
.auth-core .otp-resend.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

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

.auth-core .auth-spin {
  animation: auth-spin 0.9s linear infinite;
  font-size: 16px;
}

.auth-core .btn-ghost {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(26, 25, 23, 0.14);
  background: transparent;
  color: #4A4946;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  margin-top: 10px;
}

.auth-core .btn-ghost:hover { background: #F7F6F3; }

/* ── Dividers ── */
.auth-core .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12px;
  color: #8A8880;
}

.auth-core .divider::before,
.auth-core .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26, 25, 23, 0.09);
}

/* ── Social login ── */
.auth-core .social-btn,
.auth-core a.social-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(26, 25, 23, 0.14);
  background: white;
  color: #1A1917;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.4;
}

.auth-core .social-btn:hover,
.auth-core a.social-btn:hover {
  background: #F7F6F3;
  border-color: rgba(26, 25, 23, 0.2);
  color: #1A1917;
}

.auth-core .social-btn svg { flex-shrink: 0; }

/* ── Plans ── */
.auth-core .plan-grid { display: flex; flex-direction: column; gap: 10px; }

.auth-core .plan-card {
  border: 1.5px solid rgba(26, 25, 23, 0.14);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.auth-core .plan-card:hover { border-color: #AFA9EC; }
.auth-core .plan-card.on { border-color: #3C2FA0; background: #EEEDFE; }
.auth-core .plan-card.featured { border-color: #3C2FA0; }

/* Troca de plano: plano atual vs seleção */
.auth-core .plan-card.is-current {
  border-color: rgba(26, 25, 23, 0.18);
  background: #fff;
  box-shadow: none;
}
.auth-core .plan-card.is-current.on {
  border-color: rgba(26, 25, 23, 0.22);
  background: #F7F6F3;
}
.auth-core .plan-card.is-current .plan-badge {
  background: #5C5C6F;
}
.auth-core .plan-card.is-current.is-dimmed {
  opacity: 0.72;
  border-style: dashed;
  border-color: rgba(26, 25, 23, 0.2);
  background: #FAFAF8;
}

.auth-core .plan-card.is-upgrade-pick.on {
  border-color: #1D9E75;
  background: linear-gradient(180deg, #E1F5EE 0%, #F3FBF7 100%);
  box-shadow: 0 0 0 1px rgba(29, 158, 117, 0.2), 0 8px 24px rgba(29, 158, 117, 0.12);
}
.auth-core .plan-card.is-upgrade-pick .plan-badge {
  background: #1D9E75;
}
.auth-core .plan-card.is-upgrade-pick .plan-name,
.auth-core .plan-card.is-upgrade-pick .plan-val {
  color: #0F6E56;
}

.auth-core .plan-card.is-downgrade-pick.on {
  border-color: #C4554D;
  background: linear-gradient(180deg, #FCEBEB 0%, #FFF7F5 100%);
  box-shadow: 0 0 0 1px rgba(196, 85, 77, 0.18), 0 8px 24px rgba(196, 85, 77, 0.1);
}
.auth-core .plan-card.is-downgrade-pick .plan-badge {
  background: #A32D2D;
}
.auth-core .plan-card.is-downgrade-pick .plan-name,
.auth-core .plan-card.is-downgrade-pick .plan-val {
  color: #A32D2D;
}

.auth-core .plan-swap {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.auth-core .plan-swap.is-visible { display: flex; }
.auth-core .plan-swap.is-upgrade {
  background: #E1F5EE;
  color: #0F6E56;
}
.auth-core .plan-swap.is-downgrade {
  background: #FCEBEB;
  color: #A32D2D;
}
.auth-core .plan-swap-from,
.auth-core .plan-swap-to {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}
.auth-core .plan-swap-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}
.auth-core .plan-swap.is-upgrade .plan-swap-icon { color: #1D9E75; }
.auth-core .plan-swap.is-downgrade .plan-swap-icon { color: #C4554D; }

.auth-core .plan-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: #3C2FA0;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Modal confirmação (padrão auth, sem window.confirm) */
.auth-core .auth-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(26, 25, 23, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-core .auth-modal-bg.open { display: flex; }
.auth-core .auth-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  animation: authModalIn 0.18s ease;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-core .auth-modal-head {
  padding: 20px 20px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-core .auth-modal-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  background: #EEEDFE;
  color: #3C2FA0;
}
.auth-core .auth-modal-head.is-upgrade .auth-modal-ico {
  background: #E1F5EE;
  color: #1D9E75;
}
.auth-core .auth-modal-head.is-downgrade .auth-modal-ico {
  background: #FCEBEB;
  color: #A32D2D;
}
.auth-core .auth-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A1917;
  line-height: 1.3;
  padding-top: 2px;
}
.auth-core .auth-modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #F1F1F4;
  color: #5C5C6F;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.auth-core .auth-modal-body { padding: 0 20px 18px; }
.auth-core .auth-modal-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #F7F6F3;
  font-size: 13px;
  font-weight: 700;
  color: #1A1917;
}
.auth-core .auth-modal-swap i { font-size: 18px; color: #8A8880; }
.auth-core .auth-modal-head.is-upgrade ~ .auth-modal-body .auth-modal-swap,
.auth-core .auth-modal.is-upgrade .auth-modal-swap { background: #E1F5EE; }
.auth-core .auth-modal-head.is-downgrade ~ .auth-modal-body .auth-modal-swap,
.auth-core .auth-modal.is-downgrade .auth-modal-swap { background: #FCEBEB; }
.auth-core .auth-modal-msg {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4A4946;
  margin: 0;
}
.auth-core .auth-modal-foot {
  padding: 14px 20px 18px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(26, 25, 23, 0.08);
}
.auth-core .auth-modal-foot .btn-cfg,
.auth-core .auth-modal-cancel {
  flex: 1;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(26, 25, 23, 0.14);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #4A4946;
  cursor: pointer;
}
.auth-core .auth-modal-confirm {
  flex: 1.2;
  padding: 11px 14px;
  border-radius: 11px;
  border: none;
  background: #3C2FA0;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-core .auth-modal.is-upgrade .auth-modal-confirm { background: #1D9E75; }
.auth-core .auth-modal.is-downgrade .auth-modal-confirm { background: #A32D2D; }

.auth-core .plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.auth-core .plan-name { font-size: 15px; font-weight: 700; color: #1A1917; }

.auth-core .plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.auth-core .plan-val {
  font-size: 22px;
  font-weight: 700;
  color: #1A1917;
  letter-spacing: -0.5px;
}

.auth-core .plan-per { font-size: 12px; color: #8A8880; }
.auth-core .plan-desc { font-size: 12px; color: #8A8880; margin-bottom: 10px; line-height: 1.5; }

.auth-core .plan-feats { display: flex; flex-wrap: wrap; gap: 6px; }

.auth-core .plan-feat {
  font-size: 11px;
  color: #4A4946;
  background: white;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(26, 25, 23, 0.09);
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-core .plan-feat i { font-size: 12px; color: #1D9E75; }
.auth-core .plan-card.on .plan-feat { background: white; }

/* Toggle anual/mensal */
.auth-core .billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auth-core .billing-opt {
  font-size: 13px;
  font-weight: 600;
  color: #8A8880;
  cursor: pointer;
  user-select: none;
}

.auth-core .billing-opt.on { color: #3C2FA0; }

.auth-core .billing-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #3C2FA0;
  padding: 2px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.auth-core .billing-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  transform: translateX(18px);
}

.auth-core .billing-switch.mensal .billing-knob { transform: translateX(0); }

.auth-core .billing-discount {
  font-size: 10px;
  font-weight: 700;
  color: #1D9E75;
  background: #E1F5EE;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Security note ── */
.auth-core .security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #8A8880;
  margin-top: 16px;
}

.auth-core .security-note i { font-size: 13px; color: #8A8880; }

/* ── Footer links ── */
.auth-core .login-link,
.auth-core .register-link {
  text-align: center;
  font-size: 13px;
  color: #8A8880;
  margin-top: 20px;
}

.auth-core .login-link a,
.auth-core .register-link a {
  color: #3C2FA0;
  font-weight: 600;
  text-decoration: none;
}

.auth-core .login-link a:hover,
.auth-core .register-link a:hover { text-decoration: underline; }

/* ── Terms footer ── */
.auth-core .auth-terms {
  font-size: 11px;
  color: #B0AEA8;
  text-align: center;
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.6;
}

.auth-core .auth-terms a {
  color: #8A8880;
  text-decoration: underline;
}

/* Honeypot — oculto de humanos, visível a bots ingênuos */
.auth-core .auth-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Success state ── */
.auth-core .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E1F5EE;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: #1D9E75;
}

.auth-core .card-body--center { text-align: center; padding-top: 16px; }

/* ── Steps ── */
.auth-core .step { display: none; }
.auth-core .step.on { display: block; animation: authStepIn 0.2s ease; }

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

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Flag select ── */
.auth-core .flag-dropdown {
  position: absolute;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  padding: 6px;
  display: none;
  min-width: 180px;
  border: 0.5px solid rgba(26, 25, 23, 0.1);
}

.auth-core .flag-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #1A1917;
  font-weight: 500;
}

.auth-core .flag-opt:hover { background: #F7F6F3; }
.auth-core .flag-opt.on { background: #EEEDFE; color: #3C2FA0; }
.auth-core .phone-flag-wrap { position: relative; }

.auth-core .country-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8A8880;
  margin-top: 6px;
}

.auth-core .country-badge i { font-size: 13px; }

@media (max-width: 480px) {
  body.auth-core { padding: 16px; }

  .auth-core .card-header { padding: 20px 20px 0; }
  .auth-core .card-body { padding: 20px; }
  .auth-core .card-footer { padding: 0 20px 24px; }
  .auth-core .inp-row { grid-template-columns: 1fr; }
  .auth-core .otp-inp { width: 44px; height: 54px; font-size: 20px; }
  .auth-core .otp-wrap { gap: 8px; }
}

/* ── Checkout ── */
.auth-core .checkout-page { width: 100%; max-width: 900px; }
.auth-core .checkout-logo-bar { display: flex; align-items: center; gap: 8px; margin: 0 auto 24px; max-width: 860px; width: 100%; }
.auth-core .checkout-logo-bar .logo-sep { width: 1px; height: 16px; background: rgba(26,25,23,0.12); margin: 0 4px; }
.auth-core .checkout-logo-bar .logo-step { font-size: 13px; color: #8A8880; font-weight: 500; }
.auth-core .checkout-wrap { max-width: 860px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.auth-core .checkout-card { background: white; border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(26,25,23,0.08); overflow: hidden; }
.auth-core .checkout-section { padding: 22px 24px; border-bottom: 0.5px solid rgba(26,25,23,0.08); }
.auth-core .checkout-section:last-child { border-bottom: none; }
.auth-core .checkout-section-title { font-size: 13px; font-weight: 700; color: #1A1917; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.auth-core .checkout-section-num { width: 22px; height: 22px; border-radius: 50%; background: #3C2FA0; color: white; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.auth-core .pay-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-core .pay-tab { flex: 1; padding: 12px 10px; border: 1.5px solid rgba(26,25,23,0.12); border-radius: 12px; cursor: pointer; text-align: center; background: white; }
.auth-core .pay-tab.on { border-color: #3C2FA0; background: #EEEDFE; }
.auth-core .pay-tab-label { font-size: 12px; font-weight: 600; color: #4A4946; }
.auth-core .pay-tab.on .pay-tab-label { color: #3C2FA0; }
.auth-core .pay-tab-sub { font-size: 10px; color: #8A8880; margin-top: 4px; }
.auth-core .pix-panel, .auth-core .card-panel { display: none; }
.auth-core .pix-panel.on, .auth-core .card-panel.on { display: block; }
.auth-core .pix-loading {
  padding: 28px 20px;
  text-align: center;
  background: #F7F6F3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.auth-core .pix-loading[hidden],
.auth-core .pix-qr-wrap[hidden] {
  display: none !important;
}
.auth-core .pix-skeleton {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ECEAE4 0%, #F7F6F3 45%, #ECEAE4 90%);
  background-size: 200% 100%;
  animation: pixShimmer 1.2s ease-in-out infinite;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 25, 23, 0.06);
}
.auth-core .pix-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(60, 47, 160, 0.18);
  border-top-color: #3C2FA0;
  animation: pixSpin 0.75s linear infinite;
}
.auth-core .pix-loading-text {
  font-size: 13px;
  color: #8A8880;
  line-height: 1.5;
  margin: 0;
}
@keyframes pixShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes pixSpin {
  to { transform: rotate(360deg); }
}
.auth-core .pix-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; background: #F7F6F3; border-radius: 12px; }
.auth-core .pix-qr {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
}
.auth-core .pix-qr img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  display: block;
}
.auth-core .pix-qr img[hidden] {
  display: none !important;
}
.auth-core .pix-copy-row { display: flex; gap: 8px; width: 100%; }
.auth-core .pix-code-inp { flex: 1; font-size: 11px; padding: 10px 12px; border: 1px solid rgba(26,25,23,0.12); border-radius: 8px; background: white; }
.auth-core .pix-copy-btn { padding: 10px 14px; border-radius: 8px; border: none; background: #3C2FA0; color: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-core .pix-waiting { text-align: center; font-size: 13px; color: #8A8880; margin-top: 12px; }
.auth-core .pix-waiting .pulse { color: #1D9E75; animation: authPulse 1.2s infinite; }
.auth-core .pix-switch-card {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #3C2FA0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-core .checkout-card-pitch {
  font-size: 13px;
  line-height: 1.5;
  color: #5C5C6F;
  margin: 0 0 16px;
  text-align: left;
}
@keyframes authPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.auth-core .summary-card { position: sticky; top: 20px; }
.auth-core .plan-summary-name { font-size: 15px; font-weight: 700; color: #1A1917; }
.auth-core .price-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 0.5px solid rgba(26,25,23,0.08); }
.auth-core .price-row.discount .price-val { color: #0F6E56; }
.auth-core .price-row.is-hidden,
.auth-core .coupon-toggle.is-hidden,
.auth-core .coupon-form.is-hidden,
.auth-core .coupon-applied.is-hidden,
.auth-core [hidden] { display: none !important; }
.auth-core .price-lbl { color: #8A8880; }
.auth-core .price-val { font-weight: 600; color: #1A1917; }
.auth-core .price-val.total { font-size: 20px; font-weight: 700; }
.auth-core .coupon-box { margin-top: 14px; }
.auth-core .coupon-toggle {
  display: block; font-size: 12px; color: #3C2FA0; font-weight: 600; text-decoration: none; cursor: pointer;
}
.auth-core .coupon-toggle:hover { text-decoration: underline; }
.auth-core .coupon-form { margin-top: 10px; }
.auth-core .coupon-row { display: flex; gap: 8px; align-items: stretch; }
.auth-core .coupon-row .inp {
  flex: 1; min-width: 0; text-transform: uppercase; font-size: 13px; padding: 9px 11px;
  border: 0.5px solid rgba(26,25,23,0.14); border-radius: 10px; background: #F7F6F3; color: #1A1917;
  font-family: inherit; outline: none;
}
.auth-core .coupon-row .inp:focus { border-color: #AFA9EC; box-shadow: 0 0 0 3px #EEEDFE; background: #fff; }
.auth-core .coupon-row .btn-coupon {
  flex-shrink: 0; border: none; border-radius: 10px; padding: 0 14px; min-height: 40px;
  font-size: 13px; font-weight: 600; background: #EEEDFE; color: #3C2FA0; cursor: pointer; font-family: inherit;
}
.auth-core .coupon-row .btn-coupon:hover { background: #E0DEF8; }
.auth-core .coupon-row .btn-coupon:disabled { opacity: .6; cursor: not-allowed; }
.auth-core .coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px;
  padding: 10px 12px; border-radius: 10px; background: #E1F5EE; font-size: 12px; color: #0F6E56; font-weight: 600;
}
.auth-core .coupon-applied button {
  border: none; background: transparent; color: #0F6E56; font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0;
}
.auth-core .coupon-msg { font-size: 12px; color: #D85A30; margin-top: 6px; min-height: 0; }
.auth-core .coupon-msg:empty { display: none; }
.auth-core .trial-banner { padding: 10px 13px; border-radius: 10px; background: #E1F5EE; margin-bottom: 14px; font-size: 12px; color: #0F6E56; display: flex; align-items: center; gap: 8px; }
.auth-core .checkout-err { display: none; color: #CC1818; font-size: 13px; margin-top: 12px; text-align: center; }
.auth-core .checkout-err.on { display: block; }
.auth-core .checkout-empty { text-align: center; padding: 40px 24px; color: #8A8880; }
@media (max-width: 720px) {
  .auth-core .checkout-wrap { grid-template-columns: 1fr; }
  .auth-core .summary-card { position: static; order: -1; }
}

/* ── Termos de uso (auth) ── */
.auth-core .auth-wrap--terms {
  max-width: 560px;
}

.auth-core .terms-box {
  position: relative;
  background: #F7F6F3;
  border: 0.5px solid rgba(26, 25, 23, 0.14);
  border-radius: 10px;
  padding: 16px;
  max-height: min(42vh, 320px);
  overflow: auto;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: #5C5C6F;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.auth-core .terms-box::-webkit-scrollbar { width: 6px; }
.auth-core .terms-box::-webkit-scrollbar-thumb {
  background: rgba(26, 25, 23, 0.2);
  border-radius: 3px;
}

.auth-core .terms-box .terms-html h1,
.auth-core .terms-box .terms-html h2,
.auth-core .terms-box .terms-html h3,
.auth-core .terms-box .terms-html h4 {
  font-size: 13px;
  color: #1A1917;
  margin: 14px 0 6px;
}

.auth-core .terms-box .terms-html h1:first-child,
.auth-core .terms-box .terms-html h2:first-child,
.auth-core .terms-box .terms-html h3:first-child,
.auth-core .terms-box .terms-html h4:first-child {
  margin-top: 0;
}

.auth-core .terms-box .terms-html p,
.auth-core .terms-box .terms-html li {
  margin-bottom: 8px;
}

.auth-core .terms-box .terms-html ul,
.auth-core .terms-box .terms-html ol {
  padding-left: 1.2em;
  margin-bottom: 8px;
}

.auth-core .terms-scroll-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8A8880;
  text-align: center;
}

.auth-core .terms-scroll-hint.is-done {
  display: none;
}

.auth-core .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 14px;
  user-select: none;
}

.auth-core .check-row.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-core .check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: white;
  border: 0.5px solid rgba(26, 25, 23, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-core .check-box i {
  opacity: 0;
  color: white;
  font-size: 13px;
}

.auth-core .check-row.on .check-box {
  background: #3C2FA0;
  border-color: #3C2FA0;
}

.auth-core .check-row.on .check-box i {
  opacity: 1;
}

.auth-core .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
