/* ─────────────────────────────────────────────────────────────────────────────
   LV JIU JITSU — Register Wizard
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --input-bg: #fafafa;
  --border: #e4e4e7;
  --border-soft: #f0f0f2;
  --text: #18181b;
  --muted: #71717a;
  --brand-red: #c41230;
  --brand-red-strong: #9b0e25;
  --brand-red-muted: rgba(196, 18, 48, 0.1);
  --focus-ring: rgba(196, 18, 48, 0.3);
  --danger: #dc2626;
  --danger-muted: rgba(220, 38, 38, 0.08);
  --success: #16a34a;
  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] {
  --bg: #09090b;
  --panel: #111113;
  --input-bg: #18181b;
  --border: #2d2d30;
  --border-soft: #1f1f23;
  --text: #fafafa;
  --muted: #a1a1aa;
  --brand-red: #e02244;
  --brand-red-strong: #c41230;
  --brand-red-muted: rgba(224, 34, 68, 0.12);
  --focus-ring: rgba(224, 34, 68, 0.35);
  --danger: #f87171;
  --danger-muted: rgba(248, 113, 113, 0.1);
  --card-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 16px; color-scheme: light; -webkit-text-size-adjust: 100%; }
html[data-theme="dark"] { color-scheme: dark; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ─── Shell ─────────────────────────────────────────────────────────────────── */

body.register-page {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(ellipse 60% 50% at 110% 110%, rgba(196, 18, 48, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at -10% -10%, rgba(196, 18, 48, 0.03) 0%, transparent 60%);
}

html[data-theme="dark"] body.register-page {
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(196, 18, 48, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 0% 0%, rgba(196, 18, 48, 0.08) 0%, transparent 60%);
}

.wizard-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  min-width: 64px;
}
.wizard-back:hover { color: var(--brand-red); text-decoration: none; }
.wizard-back:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.wizard-header__logo {
  filter: none;
  transition: filter 0.2s;
}
html[data-theme="dark"] .wizard-header__logo { filter: invert(1); }

.wizard-progress {
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 64px;
  text-align: right;
}

/* ─── Barra de progresso ────────────────────────────────────────────────────── */

.wizard-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.wizard-progress-bar__fill {
  height: 100%;
  background: var(--brand-red);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ─── Step ──────────────────────────────────────────────────────────────────── */

.wizard-step { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.wizard-step[hidden] { display: none; }

.wizard-step__heading { display: flex; flex-direction: column; gap: 0.375rem; }

.wizard-step__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.wizard-step__subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ─── Mensagens do sistema (Django messages) ────────────────────────────────── */

.wizard-system-messages {
  padding: 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: -0.25rem;
}
.wizard-system-message {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: var(--danger-muted);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--danger);
  line-height: 1.45;
}
.wizard-system-message svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--danger);
}
.wizard-system-message--success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
  color: var(--success);
}
.wizard-system-message--success svg { color: var(--success); }

/* ─── Erros ─────────────────────────────────────────────────────────────────── */

.wizard-errors {
  background: var(--danger-muted);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wizard-errors__item { font-size: 0.875rem; color: var(--danger); }

/* ─── Cards de perfil ───────────────────────────────────────────────────────── */

.profile-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  position: relative;
}

.profile-card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-muted);
}

.profile-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.profile-card[aria-pressed="true"] {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  box-shadow: 0 0 0 3px var(--brand-red-muted);
}

.profile-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--border-soft);
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.profile-card[aria-pressed="true"] .profile-card__icon {
  background: var(--brand-red-muted);
  color: var(--brand-red);
}

.profile-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.profile-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.profile-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.profile-card[aria-pressed="true"] .profile-card__check {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

/* ─── Sub-opções ────────────────────────────────────────────────────────────── */

.profile-suboption {
  background: var(--border-soft);
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  animation: fadeSlideIn 0.2s ease;
}

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

.profile-suboption__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

.profile-suboption__label--toggle {
  margin-bottom: 0;
}

.profile-suboption__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
  cursor: pointer;
}

.profile-suboption__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.profile-suboption__counter-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.2s ease;
}

.profile-suboption__counter-label {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

/* ─── Contador de alunos ────────────────────────────────────────────────────── */

.student-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.student-counter__btn {
  width: 38px;
  height: 38px;
  background: var(--panel);
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.student-counter__btn:hover { background: var(--brand-red-muted); color: var(--brand-red); }
.student-counter__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.student-counter__btn:disabled { opacity: 0.35; cursor: not-allowed; }

.student-counter__value {
  min-width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  padding: 0 0.25rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 38px;
}

/* ─── Ações da etapa ────────────────────────────────────────────────────────── */

.wizard-step__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 50px;
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.btn-next:hover:not(:disabled) { background: var(--brand-red-strong); }
.btn-next:active:not(:disabled) { transform: translateY(1px); }
.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-next:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ─── Campos de formulário — Etapa 2+ ──────────────────────────────────────── */

.wizard-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}
.form-row--2col > .form-field {
  flex: 1;
  min-width: 0;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--muted); opacity: 0.7; }

.form-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background: var(--panel);
}

.form-input.input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Select */
.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
  transition: border-color 0.15s;
}

.form-select {
  cursor: pointer;
  padding-right: 2.25rem;
}

/* Wrapper senha + toggle */
.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0 0.5rem 0.5rem 0;
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--text); }
.password-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

.password-toggle__icon { position: absolute; transition: opacity 0.15s; }
.password-toggle__icon--hide { opacity: 0; }
.password-toggle[aria-label="Ocultar senha"] .password-toggle__icon--show { opacity: 0; }
.password-toggle[aria-label="Ocultar senha"] .password-toggle__icon--hide { opacity: 1; }

/* Erro de campo */
.form-field__error {
  font-size: 0.8125rem;
  color: var(--danger);
  line-height: 1.3;
}

/* ─── Textarea ──────────────────────────────────────────────────────────────── */

.form-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

/* ─── Toggle de experiência marcial ────────────────────────────────────────── */

.martial-has-toggle {
  display: flex;
  gap: 0.5rem;
}

.martial-has-btn {
  flex: 1;
  padding: 0.8125rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.625rem;
  background: var(--input-bg);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
  line-height: 1.2;
}

.martial-has-btn:hover:not(.martial-has-btn--active) {
  border-color: var(--muted);
  color: var(--text);
}

.martial-has-btn--active {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  color: var(--brand-red);
  font-weight: 600;
}

@media (max-width: 480px) {
  .martial-has-toggle { flex-direction: column; }
}

/* ─── IBJJF Notice ──────────────────────────────────────────────────────────── */

.ibjjf-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-red-muted);
  border: 1px solid rgba(196, 18, 48, 0.18);
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}

.ibjjf-notice__icon {
  flex-shrink: 0;
  color: var(--brand-red);
  margin-top: 1px;
}

.ibjjf-notice__text {
  flex: 1;
}

html[data-theme="dark"] .ibjjf-notice {
  border-color: rgba(224, 34, 68, 0.25);
}

/* ─── Seleção de turma ──────────────────────────────────────────────────────── */

.class-catalog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.class-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--panel);
  transition: border-color .15s, background .15s;
  text-align: left;
  width: 100%;
}

.class-card:hover { border-color: var(--brand-red-muted); }

.class-card--selected {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
}

.class-card__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  transition: border-color .15s, background .15s;
}

.class-card--selected .class-card__radio {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.class-card__radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: none;
}

.class-card--selected .class-card__radio-dot { display: block; }

.class-card__body {
  flex: 1;
  min-width: 0;
}

.class-card__title {
  font-size: .925rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.class-card__divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0 6px;
}

.class-card__schedule-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.class-card__day-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .78rem;
  line-height: 1.5;
}

.class-card__day-name {
  flex-shrink: 0;
  width: 2.8rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.class-card__day-times {
  color: var(--text);
  font-size: .8rem;
}

.class-card__day-teacher {
  color: var(--muted);
  font-size: .72rem;
  margin-left: auto;
  white-space: nowrap;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.class-catalog--empty {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ─── Filtros de plano ──────────────────────────────────────────────────────── */

.plan-filter-section {
  margin-bottom: 1.125rem;
}

.plan-filter-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.plan-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--panel);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}

.plan-filter-pill--payment {
  min-height: 34px;
  gap: 8px;
  padding: 6px 12px;
}

.payment-method-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.payment-method-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.payment-method-icon--pix {
  width: 18px;
  height: 18px;
}

.payment-method-icon--brand {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.plan-filter-pill:hover {
  border-color: var(--brand-red);
  color: var(--text);
}
.plan-filter-pill--active {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  color: var(--brand-red);
  font-weight: 600;
}

.plan-filter-pill__badge {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--brand-red);
  color: #fff;
  line-height: 1.3;
}
.plan-filter-pill--active .plan-filter-pill__badge {
  background: var(--brand-red-strong);
}

@media (max-width: 540px) {
  .plan-filter-section {
    margin-bottom: 1.35rem;
  }

  .plan-filter-row {
    gap: 8px;
  }

  .plan-filter-pill {
    min-height: 44px;
    padding: 8px 16px;
    font-size: .9rem;
    justify-content: center;
  }

  .plan-filter-pill[data-filter="frequency"] {
    flex: 1 1 0;
    min-width: 0;
  }

  .plan-filter-pill[data-filter="cycle"] {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 7px 6px;
    flex-direction: column;
    gap: 3px;
    line-height: 1.05;
  }

  .plan-filter-pill[data-filter="cycle"] .plan-filter-pill__badge {
    font-size: .52rem;
    padding: 2px 5px;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-filter-pill--payment {
    min-height: 48px;
    padding: 8px 16px;
    gap: 10px;
  }

  .payment-method-icon--pix {
    width: 22px;
    height: 22px;
  }

  .payment-method-icon--brand {
    width: 34px;
    height: 22px;
  }
}

/* ─── Cards de plano ────────────────────────────────────────────────────────── */

.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.plan-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: var(--panel);
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: left;
  width: 100%;
  box-shadow: none;
}
.plan-card:hover {
  border-color: rgba(196, 18, 48, 0.4);
  box-shadow: 0 2px 12px rgba(196, 18, 48, 0.08);
}
.plan-card--selected {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  box-shadow: 0 2px 16px rgba(196, 18, 48, 0.12);
}

/* Radio indicator — reutiliza padrão do class-card */
.plan-card__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: border-color .15s, background .15s;
}
.plan-card--selected .plan-card__radio {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.plan-card__radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.plan-card--selected .plan-card__radio-dot { display: block; }

.plan-card__body { flex: 1; min-width: 0; }

.plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.plan-card__tier {
  font-size: .925rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.plan-card__badge {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-red);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 2px;
}
.plan-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  transition: color .15s;
}
.plan-card--selected .plan-card__price { color: var(--brand-red); }
.plan-card__price-cycle {
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 400;
}

.plan-card__installment {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}
.plan-card__meta {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 3px;
}
.plan-card__auth-note {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}

.plan-card__badge--stripe {
  background: #6366f1;
}

.plan-cards--empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ─── Checkout — resumo e ações ─────────────────────────────────────────────── */

.checkout-summary {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.checkout-summary__section {
  padding: 14px 18px;
}
.checkout-summary__section + .checkout-summary__section {
  border-top: 1px solid var(--border-soft);
}

.checkout-summary__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.checkout-summary__plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.checkout-summary__plan-name {
  font-weight: 600;
  font-size: .925rem;
  color: var(--text);
}
.checkout-summary__plan-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-red);
  white-space: nowrap;
}
.checkout-summary__plan-price small {
  font-weight: 400;
  font-size: .75rem;
  color: var(--muted);
}
.checkout-summary__plan-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 3px;
}
.checkout-summary__plan-installment {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}
.checkout-summary__value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  background: var(--brand-red);
  color: #fff;
  font-size: .975rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}
.btn-checkout-pay:hover  { background: var(--brand-red-strong); }
.btn-checkout-pay:active { transform: scale(.98); }
.btn-checkout-pay__icon  { flex-shrink: 0; }

.btn-checkout-later {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-checkout-later:hover { border-color: var(--text); color: var(--text); }

/* ─── Badge de etapa do dependente ─────────────────────────────────────────── */

.dep-step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.125rem;
}

/* Label opcional */
.form-label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ─── Painel de confirmação pós-pagamento ───────────────────────────────────── */

.reg-confirm-panel {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.reg-confirm-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.reg-confirm-panel__divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0;
}

.reg-confirm-panel__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.reg-confirm-panel__icon--ok {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.reg-confirm-panel__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-confirm-panel__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.reg-confirm-panel__value {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-confirm-panel__meta {
  font-size: .8125rem;
  color: var(--success);
  font-weight: 500;
}

/* ─── Produtos pós-pagamento — cards e wizard de seleção ────────────────────── */

/* Cards de produto */
.prod-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: left;
  width: 100%;
}

.prod-card--unavailable {
  opacity: 0.5;
  cursor: default;
}

.prod-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prod-card__name {
  font-size: .925rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.prod-card__category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prod-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.prod-card__stock-msg {
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.prod-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.prod-card__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--brand-red);
  background: transparent;
  color: var(--brand-red);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.prod-card__add-btn:hover { background: var(--brand-red); color: #fff; }
.prod-card__add-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.prod-card__in-cart {
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
}

/* Indicador de itens no carrinho */
.products-cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-red);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sub-view de configuração de variante */
.prod-configure__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .875rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .15s;
  margin-bottom: .25rem;
}
.prod-configure__back:hover { color: var(--brand-red); }

.prod-configure__product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.prod-configure__section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
  margin-top: 1rem;
}

/* Pills de variante */
.variant-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--panel);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
  white-space: nowrap;
}
.variant-pill:hover { border-color: var(--brand-red); color: var(--text); }
.variant-pill--selected {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  color: var(--brand-red);
  font-weight: 600;
}
.variant-pill--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.variant-pill:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Stepper de quantidade na configuração */
.configure-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 1rem;
}

.configure-qty-label {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
}

.configure-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.configure-qty-stepper__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  font-family: inherit;
  line-height: 1;
}
.configure-qty-stepper__btn:hover:not(:disabled) { background: var(--brand-red-muted); color: var(--brand-red); }
.configure-qty-stepper__btn:active:not(:disabled) { background: var(--brand-red); color: #fff; }
.configure-qty-stepper__btn:disabled { opacity: .35; cursor: not-allowed; }

.configure-qty-stepper__value {
  min-width: 2.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 .25rem;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  line-height: 2.5rem;
}

/* Itens do carrinho */
.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__meta {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}

.cart-item__subtotal {
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-red);
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-item__remove {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-family: inherit;
}
.cart-item__remove:hover { color: var(--danger); background: var(--danger-muted); }

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 12px 0 4px;
  font-size: .9375rem;
  color: var(--muted);
}

.cart-total-row strong {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 800;
}

/* ─── Revisão pós-materiais ─────────────────────────────────────────────────── */

.order-review-block {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.order-review-block__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.order-review-block__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.order-review-block__amount {
  font-size: 0.875rem;
  color: var(--muted);
}
.order-review-block__amount strong,
.order-review-block__amount:last-child {
  color: var(--brand-red);
  font-weight: 700;
}

.order-review-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.125rem 0;
}

/* ─── Painel de confirmação — heading ──────────────────────────────────────── */

.reg-confirm-panel__heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--border-soft);
}

/* ─── Cards de produto — melhorias ─────────────────────────────────────────── */

.prod-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.prod-card__stock-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--brand-red-muted);
  color: var(--brand-red);
  letter-spacing: .02em;
}
.prod-card__stock-badge--out {
  background: var(--border-soft);
  color: var(--muted);
}

.prod-card__badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.prod-card__badge--cart {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.prod-card__desc {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Configure sub-view — section wrapper + hint ──────────────────────────── */

.prod-configure__section {
  margin-top: 1rem;
}
.prod-configure__section:first-child { margin-top: 0; }

.prod-configure__stock-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .375rem;
}

/* ─── Seletor de cor ────────────────────────────────────────────────────────── */

.color-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
}
.color-pill:hover { border-color: var(--brand-red); color: var(--brand-red); }
.color-pill--selected {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
  color: var(--brand-red);
  font-weight: 700;
}
.color-pill--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.color-pill:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ─── Seletor de tamanho com estoque ────────────────────────────────────────── */

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
  min-width: 52px;
}
.size-pill:hover { border-color: var(--brand-red); }
.size-pill--selected {
  border-color: var(--brand-red);
  background: var(--brand-red-muted);
}
.size-pill--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.size-pill:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.size-pill__size {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.size-pill--selected .size-pill__size { color: var(--brand-red); }

.size-pill__stock {
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.size-pill--selected .size-pill__stock { color: var(--brand-red); opacity: .8; }

/* ─── Responsivo ────────────────────────────────────────────────────────────── */

@media (min-width: 540px) {
  .wizard-shell { padding: 0 0 2.5rem; }
  .wizard-step__title { font-size: 1.5rem; }
}

/* ─── Cupom de desconto ─────────────────────────────────────────────────────── */

.coupon-area {
  margin: 0.75rem 0 0.5rem;
}
.coupon-area__row {
  display: flex;
  gap: 0.5rem;
}
.coupon-area__input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 0.4rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.15s;
}
.coupon-area__input:focus { outline: none; border-color: var(--brand-red); }
.coupon-area__input:disabled { opacity: 0.55; cursor: not-allowed; }
.coupon-area__btn {
  height: 40px;
  padding: 0 1rem;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.coupon-area__btn:hover:not(:disabled) { background: var(--brand-red-strong); }
.coupon-area__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.coupon-msg {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.coupon-msg--ok    { color: var(--success, #16a34a); }
.coupon-msg--error { color: var(--danger, #dc2626); }

/* ─── Botão aula experimental ───────────────────────────────────────────────── */

.btn-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  border: 1.5px solid var(--border, #333);
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #888);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-trial:hover { border-color: var(--text, #ccc); color: var(--text, #eee); }
.btn-trial svg { flex-shrink: 0; }

/* Banner trial */
.checkout-confirmed-banner--trial {
  background: color-mix(in srgb, #16a34a 10%, transparent);
  border-color: color-mix(in srgb, #16a34a 30%, transparent);
}
.checkout-confirmed-banner--trial .checkout-confirmed-banner__icon,
.checkout-confirmed-banner--trial .checkout-confirmed-banner__text {
  color: #16a34a;
}

/* ─── Aviso de fidelidade Stripe ────────────────────────────────────────────── */

.stripe-commitment-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-red, #dc2626) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-red, #dc2626) 30%, transparent);
  color: var(--text, #111);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.stripe-commitment-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-red, #dc2626);
}
.stripe-commitment-notice > div > strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text, #111);
}
.stripe-commitment-notice p {
  font-size: 0.8125rem;
  color: var(--muted, #555);
  margin: 0;
  line-height: 1.45;
}
.stripe-commitment-notice p strong {
  display: inline;
  font-weight: 700;
  color: var(--text, #111);
}

/* ─── Prefers-reduced-motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
