/* Kalendio — cadastro guiado (visual v26.10.1) */
:root {
  color-scheme: light;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --ink: #0B0F0D;
  --muted: #5F655F;
  --line: rgba(11, 15, 13, .10);
  --line-soft: rgba(11, 15, 13, .06);
  --field-line: #8A908A;          /* ≥3:1 sobre o fundo (borda de campo) */
  --green: #22C55E;
  --green-hover: #3DDC84;
  --green-deep: #0E9455;          /* títulos grandes */
  --green-text: #0B7A45;          /* texto pequeno em verde (AA) */
  --green-tint: rgba(34, 197, 94, .07);
  --on-green: #04210F;            /* texto sobre #22C55E (AA) */
  --forest: #0C3B22;
  --danger: #B23A2E;
  --radius: 16px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(34, 197, 94, .18); }

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

em.kp-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

button, input, select, textarea { font-family: var(--font); }

/* ---------- Shell ---------- */
.page {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 24px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--green); color: #04120A;
  font-weight: 600; font-size: 13px;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-name { font-weight: 500; font-size: 15.5px; letter-spacing: -0.02em; }
.topbar-biz {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}
.main { min-width: 0; }

/* ---------- Stepper ---------- */
.steps {
  display: flex;
  align-items: stretch;
  margin: 0 0 40px;
  position: relative;
}
.step {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
}
.step:last-child { flex: 0 0 auto; }
.step::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 12px;
  margin: 0 10px 0 4px;
  background: rgba(11, 15, 13, .14);
}
.step:last-child::after { display: none; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  min-width: 16px;
  flex-shrink: 0;
  color: var(--muted);
}
.step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-caption { display: none; }
.step:hover .step-label { color: var(--ink); }
.step.active { color: var(--ink); font-weight: 500; }
.step.active .step-num { color: var(--green-text); font-weight: 500; }

/* Etapas concluídas = etapas anteriores à ativa */
.step:has(~ .step.active) { color: var(--ink); }
.step:has(~ .step.active) .step-num { font-size: 0; color: var(--green-text); }
.step:has(~ .step.active) .step-num::before { content: "✓"; font-size: 12px; }
.step:has(~ .step.active)::after { background: var(--green-deep); }

/* ---------- Panes ---------- */
.pane { display: none; }
.pane.active {
  display: grid;
  gap: 22px;
  animation: fadeSlideIn .3s ease;
}
.pane-head { margin-bottom: 10px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker-rule { width: 24px; height: 1px; background: currentColor; }
.pane-head h1 {
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.pane-sub { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }

.hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Fields ---------- */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.grid.four.addr { grid-template-columns: .8fr 1.4fr 1.4fr .6fr; }
.span2 { grid-column: span 2; }

label { display: grid; gap: 6px; min-width: 0; color: var(--ink); }
label > span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1.5px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
input::placeholder { color: #6B716B; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 26px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F655F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
input[type="time"] { font-variant-numeric: tabular-nums; }
input:focus, select:focus {
  outline: none;
  border-bottom: 2px solid var(--green-text);
  background-color: var(--green-tint);
}

.slug-field {
  display: flex;
  align-items: center;
  min-width: 0;
  border-bottom: 1.5px solid var(--field-line);
  transition: border-color .2s ease, background-color .2s ease;
}
.slug-field small {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 2px;
  white-space: nowrap;
}
.slug-field input { border-bottom: 0; padding-left: 2px; min-width: 0; }
.slug-field input:focus { border-bottom: 0; background: transparent; }
.slug-field:focus-within { border-bottom: 2px solid var(--green-text); background-color: var(--green-tint); }

.interval-field { max-width: 260px; }

/* ---------- Plans ---------- */
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 1.5px solid rgba(11, 15, 13, .14);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.plan-card:hover { border-color: rgba(11, 15, 13, .32); }
.plan-radio, .release-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--field-line);
  background: #FFFFFF;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.plan-card.active .plan-radio, .release-card.active .release-radio { border-color: var(--green-deep); }
.plan-card.active .plan-radio::after, .release-card.active .release-radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.plan-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.plan-main strong { font-weight: 500; font-size: 15px; }
.plan-pill {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-green);
  background: var(--green);
  padding: 3px 9px;
  border-radius: 999px;
}
.plan-meta { display: grid; gap: 2px; text-align: right; flex-shrink: 0; }
.plan-meta span { font-size: 12.5px; color: var(--muted); }
.plan-meta small { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.plan-card.active {
  border-color: var(--green-deep);
  background: var(--green-tint);
}

/* ---------- Repeat lists (serviços / equipe) ---------- */
.repeat-list, .hours-list { display: grid; gap: 12px; }
.repeat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
  display: grid;
  gap: 18px;
}
.repeat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.repeat-head strong { font-weight: 500; font-size: 15px; }
.text-danger {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.inline-add { justify-self: start; }

/* ---------- Hours ---------- */
.hour-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px 18px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: end;
}
.hour-row > .grid { gap: 16px; }
.hour-row:not(.active) { background: transparent; }
.hour-row:not(.active) > .grid { opacity: .5; }
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  align-self: center;
}
label.check input {
  width: 20px; height: 20px; min-height: 0;
  margin: 0; padding: 0;
  accent-color: var(--green-deep);
  flex-shrink: 0;
  cursor: pointer;
}
label.check input:focus { background: none; }
label.check span { font-size: 15px; font-weight: 500; color: var(--ink); }
.hour-row:not(.active) label.check span { color: var(--muted); }

/* ---------- Step 6 ---------- */
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.release-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  min-height: 96px;
  border: 1.5px solid rgba(11, 15, 13, .14);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.release-card:hover { border-color: rgba(11, 15, 13, .32); }
.release-card .release-radio { margin-top: 2px; }
.release-body { display: grid; gap: 4px; }
.release-body strong { font-weight: 500; font-size: 15px; }
.release-body span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.release-card.active { border-color: var(--green-deep); background: var(--green-tint); }

.card-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.card-box > * + * { margin-top: 20px; }
.card-box-title { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.card-note { font-size: 13px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.sum-kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sum-name { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sum-list { margin: 0; }
.sum-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.sum-list dt { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.sum-list dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.sum-list dd.sum-link { font-family: var(--mono); font-size: 12.5px; color: var(--green-text); }

.result {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Messages ---------- */
.message {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 22px;
}
.message.ok { background: var(--green-tint); color: var(--green-text); border: 1px solid rgba(14, 148, 85, .28); }
.message.bad { background: #FDF3F1; color: var(--danger); border: 1px solid rgba(178, 58, 46, .28); }
.message a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 36px; }
.actions.stack { display: grid; grid-template-columns: 1fr; margin-top: 0; }

button.primary, button.secondary {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 28px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
button.primary {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--green);
  color: var(--on-green);
}
button.primary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
button.primary:hover:not(:disabled) { background: var(--green-hover); transform: translateY(-2px); }
button.primary:hover:not(:disabled)::after { animation: vzpShine .85s ease; }
@keyframes vzpShine { from { left: -60%; } to { left: 130%; } }

button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(11, 15, 13, .22);
}
button.secondary:hover:not(:disabled) { border-color: rgba(11, 15, 13, .45); }
button.secondary.ghost { border-color: transparent; color: var(--muted); padding: 0 16px; }
button.secondary.ghost:hover:not(:disabled) { color: var(--ink); border-color: transparent; }
.primary:disabled, .secondary:disabled { opacity: .45; cursor: not-allowed; transform: none; }

#createPasswordBtn { min-height: 52px; font-size: 15px; }

/* Foco visível */
button:focus-visible {
  outline: 2px solid var(--green-text);
  outline-offset: 3px;
}
.step:focus-visible { border-radius: 6px; }

/* ---------- Side panel (desktop) ---------- */
.side { position: sticky; top: 28px; }
.side-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 30px 26px 28px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(61, 220, 132, .22), transparent 60%),
    linear-gradient(180deg, #0F4A2B 0%, var(--forest) 100%);
  color: #FFFFFF;
}
.side-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-hover);
}
.side-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.side-title em.kp-serif { color: var(--green-hover); }
.side-text { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.side-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 10px; }
.side-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.side-list li::before { content: "✓"; font-family: var(--mono); font-size: 12px; color: var(--green-hover); }

.version {
  display: block;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #5F655F;
  text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { display: none; }
}

@media (max-width: 720px) {
  .page { padding: 0 16px 48px; }
  .topbar { padding: 18px 0 16px; }
  .steps { margin-bottom: 28px; }
  .grid.two, .grid.three, .grid.four.addr { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid.four.addr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three.card-exp { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .span2 { grid-column: auto; }
  .release-grid { grid-template-columns: minmax(0, 1fr); }
  .hour-row { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 18px; }
  .repeat-item { padding: 14px 16px 20px; }
  .interval-field { max-width: none; }
  .plan-card { padding: 14px; gap: 10px; }
  input, select { font-size: 16px; } /* evita zoom no iOS */
}

/* Stepper compacto: barras + "Etapa N de 6" */
@media (max-width: 640px) {
  .steps { gap: 6px; padding-bottom: 22px; }
  .step, .step:last-child { flex: 1 1 0; min-height: 44px; align-items: center; }
  .step::after,
  .step:last-child::after {
    display: block;
    flex: 1;
    height: 3px;
    margin: 0;
    border-radius: 2px;
    background: rgba(11, 15, 13, .14);
  }
  .step.active::after { background: var(--green); }
  .step:has(~ .step.active)::after { background: var(--green-deep); }
  .step-num { display: none; }
  .kicker { display: none; } /* o "Etapa N de 6" do stepper já cumpre esse papel */
  .step-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .step.active .step-caption {
    display: block;
    position: absolute;
    left: 0; bottom: 0;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .page { padding-bottom: 112px; }
  .pane-head h1 { font-size: 28px; }
  .nav-actions {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    margin: 0;
    gap: 8px;
    justify-content: stretch;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 249, .86);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px -20px rgba(11, 15, 13, .25);
  }
  .nav-actions #backBtn { flex: none; padding: 0 14px; }
  .nav-actions #nextBtn { flex: 1; }
  .plan-card { flex-wrap: wrap; }
  .plan-meta { text-align: left; flex-basis: 100%; padding-left: 28px; }
  .topbar-biz { max-width: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  button.primary:hover:not(:disabled) { transform: none; }
}

/* Progresso de etapas lentas (captcha / criação da conta) */
.progress-box { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: var(--font); }
.progress-box[hidden] { display: none; }
.progress-text { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.progress-track { height: 6px; border-radius: 999px; background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.progress-bar { height: 100%; width: 100%; border-radius: inherit; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
button.is-loading { position: relative; cursor: progress; }
/* Kalendio: feedback de botões (salvando / salvo / erro / progresso por etapas). */
.kb-btn{position:relative;overflow:hidden;isolation:isolate}
.kb-btn.kb-loading,.kb-btn.kb-progress{background:#e5f8ec!important;color:#0B7A45!important;border-color:#c3eed1!important;cursor:progress;opacity:1!important;box-shadow:none!important}
.kb-btn.kb-loading::after{content:"";position:absolute;top:0;bottom:0;left:0;width:60%;z-index:-1;background:linear-gradient(90deg,rgba(34,197,94,0),rgba(34,197,94,.42),rgba(34,197,94,0));transform:translateX(-100%);animation:kb-sweep 1.2s ease-in-out infinite;pointer-events:none}
.kb-btn .kb-fill{position:absolute;left:0;top:0;bottom:0;width:100%;z-index:-1;background:#9fe3b6;transform-origin:left center;transform:scaleX(0);transition:transform .5s ease;pointer-events:none}
.kb-btn:not(.kb-progress) .kb-fill{opacity:0}
.kb-btn.kb-loading::before,.kb-btn.kb-progress::before{content:"";display:inline-block;box-sizing:border-box;width:14px;height:14px;flex:0 0 14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;vertical-align:-2px;margin-right:6px;animation:kb-spin .7s linear infinite}
.kb-btn.kb-loading .ico,.kb-btn.kb-progress .ico,.kb-btn.kb-success .ico,.kb-btn.kb-loading svg,.kb-btn.kb-progress svg,.kb-btn.kb-success svg,.kb-btn.kb-loading i,.kb-btn.kb-progress i,.kb-btn.kb-success i{display:none!important}
.kb-btn.kb-success{background:#22C55E!important;color:#052e16!important;border-color:#22C55E!important;opacity:1!important}
.kb-btn.kb-error{background:#fdecef!important;color:var(--danger,#B23A2E)!important;border-color:var(--danger,#B23A2E)!important;animation:kb-shake .3s ease}
@keyframes kb-sweep{from{transform:translateX(-100%)}to{transform:translateX(170%)}}
@keyframes kb-spin{to{transform:rotate(360deg)}}
@keyframes kb-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){
  .kb-btn.kb-loading::after{display:none}
  .kb-btn.kb-loading::before,.kb-btn.kb-progress::before{animation:none;border-right-color:currentColor;opacity:.55}
  .kb-btn.kb-error{animation:none}
  .kb-btn .kb-fill{transition:none}
}
.progress-track { background: #e5f8ec; }
button.is-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kal-spin .7s linear infinite; }
@keyframes kal-spin { to { transform: rotate(360deg); } }
input[aria-invalid="true"] { border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) {
  .progress-bar { transition: none; }
  button.is-loading::before { animation-duration: 2.4s; }
}

/* Etapa 3: aceites obrigatorios do cartao recorrente (so aparecem com BILLING_RECURRING_ENABLED) */
.billing-consents { display: grid; gap: 10px; margin-top: 14px; }
.pay-method { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pay-method[hidden], #pixAutoIntro[hidden], #cardFields[hidden], .pix-auto-box[hidden] { display: none; }
.pix-auto-box { display: grid; gap: 12px; justify-items: start; margin: 16px 0; padding: 16px; border: 1px solid var(--line, #d6e2de); border-radius: 12px; }
.pix-auto-box img { width: 220px; max-width: 100%; height: auto; }
.pix-auto-code { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; padding: 10px; border-radius: 8px; background: var(--soft, #f3f7f5); }
.billing-consents[hidden] { display: none; }
.billing-consents label.check { align-items: flex-start; line-height: 1.45; }
.billing-consents label.check input { margin-top: 3px; flex: none; }
