/* ==========================================================================
   Signup funnel — resources/views/shop/signup.blade.php
   Builds on shop-login.css (tokens, page shell, logo, footer, social button).
   ========================================================================== */

/* ── Header & progress ── */
.sf-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 0;
}
.sf-logo { margin: 0; justify-self: start; }

.sf-progress { width: 280px; }
.sf-progress[hidden] { display: block; visibility: hidden; }
.sf-progress-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sl-muted);
}
.sf-progress-label #sf-progress-count { color: var(--sl-text-2); font-weight: 500; }
.sf-progress-sep { margin: 0 4px; color: var(--sl-subtle); }
.sf-progress-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-progress-bar li {
  height: 4px;
  border-radius: 2px;
  background: var(--sl-border);
  transition: background-color .25s ease;
}
.sf-progress-bar li.is-done,
.sf-progress-bar li.is-current { background: var(--sl-green); }

.sf-header-link {
  justify-self: end;
  margin: 0;
  font-size: 14px;
  color: var(--sl-muted);
}
.sf-header-link a { margin-left: 4px; font-weight: 500; color: var(--sl-link); text-decoration: none; }
.sf-header-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-header-link[hidden] { display: block; visibility: hidden; }
.sf-header-btn {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--sl-link);
  cursor: pointer;
}
.sf-header-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Google mode: who is signed in, above the first step */
.sf-google-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--sl-border);
  border-radius: 10px;
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  font-size: 14px;
  line-height: 1.45;
  color: var(--sl-muted);
}
.sf-google-banner strong { font-weight: 500; color: var(--sl-text); word-break: break-word; }
.sf-google-banner img,
.sf-google-initial {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.sf-google-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sl-surface-2);
  font-weight: 600;
  color: var(--sl-text-2);
}

/* ── Main column ── */
.sf-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 56px 24px 72px;
}

.sf-step { width: 100%; max-width: 440px; }
.sf-step--wide { max-width: 640px; }
.sf-step--plans { max-width: 800px; }
.sf-step--setup { max-width: 520px; }
.sf-step--center { text-align: center; }
.sf-step[hidden] { display: none; }

.sf-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.024em;
  color: var(--sl-text);
  outline: none;
}
.sf-sub {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sl-muted);
}
.sf-sub strong { font-weight: 500; color: var(--sl-text); word-break: break-word; }
.sf-center { text-align: center; }

/* ── Selectable options (business type + categories) ── */
.sf-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 1px solid var(--sl-border-input);
  border-radius: 10px;
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  font: inherit;
  color: var(--sl-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.sf-option:hover { border-color: var(--sl-border-hover); }
.sf-option.is-selected {
  border-color: var(--sl-green);
  background: #FBFEFC;
  box-shadow: 0 0 0 1px var(--sl-green);
}
.sf-option:focus-visible { outline: 2px solid var(--sl-green); outline-offset: 2px; }

.sf-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--sl-border-input);
  border-radius: 50%;
  background: var(--sl-surface);
  color: transparent;
  font-size: 14px;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.sf-option.is-selected .sf-check { border-color: var(--sl-green); background: var(--sl-green); color: #fff; }

.sf-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sf-type {
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
}
.sf-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--sl-surface-2);
  color: var(--sl-text-2);
  font-size: 19px;
  transition: background-color .12s ease, color .12s ease;
}
.sf-type.is-selected .sf-type-icon { background: #DCFCE7; color: var(--sl-link); }
.sf-type-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-type-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.sf-type-desc { font-size: 13.5px; line-height: 1.5; color: var(--sl-muted); }
.sf-type .sf-check { margin-top: 2px; }

/* ── Forms ── */
.sf-field { margin-bottom: 20px; }
.sf-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sl-text-2);
}
.sf-optional { margin-left: 4px; font-weight: 400; color: var(--sl-subtle); }

.sf-input {
  display: block;
  width: 100%;
  height: var(--sl-control-h);
  padding: 0 13px;
  border: 1px solid var(--sl-border-input);
  border-radius: var(--sl-radius);
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  font: inherit;
  font-size: 15px;
  color: var(--sl-text);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.sf-input::placeholder { color: var(--sl-subtle); }
.sf-input:hover { border-color: var(--sl-border-hover); }
.sf-input:focus { border-color: var(--sl-green); box-shadow: 0 0 0 3px var(--sl-focus); }
.sf-input.is-invalid { border-color: var(--sl-error); }
.sf-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); }
.sf-input--pass { padding-right: 46px; }
.sf-input-wrap { position: relative; }

.sf-select-wrap { position: relative; }
.sf-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.sf-select-wrap > i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--sl-muted);
  pointer-events: none;
}

.sf-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--sl-border-input);
  border-radius: var(--sl-radius);
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.sf-phone:hover { border-color: var(--sl-border-hover); }
.sf-phone:focus-within { border-color: var(--sl-green); box-shadow: 0 0 0 3px var(--sl-focus); }
.sf-phone:has(.is-invalid) { border-color: var(--sl-error); }
.sf-phone-dial {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--sl-border);
  font-size: 15px;
  color: var(--sl-text-2);
  font-variant-numeric: tabular-nums;
}
.sf-phone-input,
.sf-phone-input:hover,
.sf-phone-input:focus {
  height: calc(var(--sl-control-h) - 2px);
  border: 0;
  box-shadow: none;
}

.sf-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--sl-muted); }
.sf-error { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--sl-error); }
.sf-error a, .sf-form-error a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.sf-error[hidden], .sf-form-error[hidden], .sf-help[hidden] { display: none; }
.sf-form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #FECACA;
  border-radius: var(--sl-radius);
  background: #FEF2F2;
  font-size: 13.5px;
  line-height: 1.45;
  color: #B91C1C;
}
.sf-recaptcha-error { justify-content: center; margin: 0 0 12px; font-size: 13px; color: var(--sl-error); }

.sf-pass-hint { display: flex; align-items: center; gap: 6px; }
.sf-pass-hint i { font-size: 13px; color: var(--sl-subtle); transition: color .12s ease; }
.sf-pass-hint.is-met { color: var(--sl-link); }
.sf-pass-hint.is-met i { color: var(--sl-green); }
.sf-pass-hint.is-met i::before { content: "\f26b"; } /* bi-check-circle-fill */

/* Logo uploader */
.sf-logo-field { display: flex; align-items: center; gap: 16px; }
.sf-logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px dashed var(--sl-border-input);
  border-radius: 10px;
  background: var(--sl-surface);
  color: var(--sl-subtle);
  font-size: 20px;
  overflow: hidden;
}
.sf-logo-preview.has-logo { border-style: solid; border-color: var(--sl-border); }
.sf-logo-preview.has-logo > i { display: none; }
.sf-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.sf-logo-buttons { display: flex; gap: 8px; }
.sf-logo-actions .sf-help { margin-top: 6px; }

.sf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sf-logo-actions input[type="file"]:focus-visible + .sf-help { color: var(--sl-text); }
.sf-logo-buttons:focus-within label { outline: 2px solid var(--sl-green); outline-offset: 2px; }

/* ── Buttons ── */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--sl-control-h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--sl-radius);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.006em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.sf-btn:disabled { cursor: not-allowed; opacity: .7; }
.sf-btn:focus-visible { outline: 2px solid var(--sl-green); outline-offset: 2px; }
.sf-btn--block { width: 100%; }
.sf-btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }

.sf-btn--primary {
  border-color: var(--sl-green-hover);
  background: var(--sl-green);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(22, 101, 52, .24);
}
.sf-btn--primary:hover:not(:disabled) { background: var(--sl-green-hover); color: #fff; }
.sf-btn--primary:active:not(:disabled) { background: var(--sl-green-active); }

.sf-btn--secondary {
  border-color: var(--sl-border-input);
  background: var(--sl-surface);
  color: var(--sl-text);
  box-shadow: var(--sl-shadow-xs);
}
.sf-btn--secondary:hover:not(:disabled) { border-color: var(--sl-border-hover); background: #FAFAF9; color: var(--sl-text); }

.sf-btn--ghost {
  padding: 0 10px;
  margin-left: -10px;
  background: transparent;
  color: var(--sl-text-2);
}
.sf-btn--ghost:hover:not(:disabled) { background: var(--sl-surface-2); color: var(--sl-text); }
.sf-logo-buttons .sf-btn--ghost { margin-left: 0; }

.sf-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sf-spin .7s linear infinite;
}
.sf-btn--primary .sf-spinner { border-color: rgba(255, 255, 255, .9); border-right-color: transparent; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

.sf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.sf-actions--end { justify-content: flex-end; }
#sf-step-type .sf-actions .sf-btn--primary { min-width: 140px; }
#sf-form-details .sf-actions .sf-btn--primary { min-width: 140px; }
#sf-step-account .sf-actions { margin-top: 24px; }

.sf-google-note { margin-top: 10px; }
.sf-legal {
  margin: 24px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--sl-subtle);
}
.sf-legal a { color: var(--sl-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ── Verify ── */
.sf-otp {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.sf-otp-input {
  width: 48px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--sl-border-input);
  border-radius: var(--sl-radius);
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--sl-text);
  caret-color: var(--sl-green);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.sf-otp-input:focus { border-color: var(--sl-green); box-shadow: 0 0 0 3px var(--sl-focus); }
.sf-otp-input.is-filled { border-color: var(--sl-border-hover); }
.sf-otp-input.is-invalid { border-color: var(--sl-error); }
.sf-otp-input:disabled { background: #FAFAF9; }
#sf-form-verify .sf-btn { margin-top: 20px; }

.sf-resend { margin: 24px 0 4px; font-size: 14px; color: var(--sl-muted); }
.sf-resend .sl-link:disabled { color: var(--sl-subtle); cursor: default; text-decoration: none; }
.sf-resend-timer { margin-left: 2px; font-variant-numeric: tabular-nums; color: var(--sl-subtle); }
.sf-change-email { margin: 20px 0 0; font-size: 14px; color: var(--sl-muted); }

/* ── Plans ── */
.sf-billing {
  display: flex;
  width: fit-content;
  margin: -8px auto 28px;
  padding: 3px;
  border: 1px solid var(--sl-border);
  border-radius: 9px;
  background: var(--sl-surface-2);
}
.sf-billing[hidden] { display: none; }
.sf-billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--sl-muted);
  cursor: pointer;
}
.sf-billing-option.is-active { background: var(--sl-surface); color: var(--sl-text); box-shadow: 0 1px 2px rgba(28, 25, 23, .08), 0 0 0 1px var(--sl-border); }
.sf-billing-option:focus-visible { outline: 2px solid var(--sl-green); outline-offset: 1px; }
.sf-billing-save { font-size: 12px; font-weight: 600; color: var(--sl-link); }

.sf-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.sf-plans--single { grid-template-columns: minmax(0, 400px); justify-content: center; }

.sf-plan {
  padding: 24px;
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
}
.sf-plan.is-recommended { border-color: var(--sl-green); box-shadow: 0 0 0 1px var(--sl-green); }
.sf-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-plan-name { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--sl-text); }
.sf-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  background: var(--sl-surface-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--sl-text-2);
  white-space: nowrap;
}
.sf-badge--green { border-color: #BBF7D0; background: #F0FDF4; color: var(--sl-link); }
.sf-badge--popular { gap: 5px; border-color: var(--sl-green-hover); background: var(--sl-green); color: #fff; }
.sf-badge--popular i { font-size: 10px; }
.sf-plan-desc { margin: 8px 0 20px; min-height: 42px; font-size: 14px; line-height: 1.5; color: var(--sl-muted); }
.sf-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; }
.sf-plan-amount { font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: var(--sl-text); font-variant-numeric: tabular-nums; }
.sf-plan-term { font-size: 14px; color: var(--sl-muted); }
.sf-plan-note { margin: 0; min-height: 40px; font-size: 13px; line-height: 1.5; color: var(--sl-muted); }
.sf-plan .sf-btn { margin-top: 20px; }
.sf-plan-label {
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--sl-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--sl-text-2);
}
.sf-plan-features { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.sf-plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--sl-text-2); }
.sf-plan-features i { margin-top: 1px; font-size: 15px; color: var(--sl-green); }

/* ── Workspace setup ── */
.sf-setup { text-align: center; }
.sf-setup-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sf-brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--sl-green);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  overflow: hidden;
}
.sf-brand-tile.has-logo { border: 1px solid var(--sl-border); background: var(--sl-surface); }
.sf-brand-tile img { width: 100%; height: 100%; object-fit: contain; }
.sf-brand-tile--sm { width: 28px; height: 28px; border-radius: 7px; font-size: 11.5px; }
.sf-brand-tile--lg { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; }
.sf-setup-name { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--sl-text); word-break: break-word; }

.sf-setup-stage { margin: 28px 0 12px; font-size: 15px; font-weight: 500; color: var(--sl-text-2); min-height: 22px; }
.sf-setup-track { width: 200px; height: 3px; margin: 0 auto; border-radius: 2px; background: var(--sl-border); overflow: hidden; }
.sf-setup-track span { display: block; width: 0; height: 100%; background: var(--sl-green); transition: width .9s ease; }

.sf-setup-frame {
  margin-top: 36px;
  padding: 16px;
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.sf-frame-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--sl-border); }
.sf-frame-name { font-size: 14px; font-weight: 600; color: var(--sl-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-frame-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sf-frame-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--sl-border);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--sl-text-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.sf-frame-pill:first-child { border-color: #BBF7D0; background: #F0FDF4; color: var(--sl-link); }
.sf-frame-pill i { font-size: 13px; }
.sf-frame-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sf-frame-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--sl-border);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .35s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.sf-frame-kpi span { font-size: 11.5px; color: var(--sl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-frame-kpi b { font-size: 18px; font-weight: 600; color: var(--sl-text); font-variant-numeric: tabular-nums; }
.sf-frame-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 22px 12px;
  border: 1px dashed var(--sl-border-input);
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity .35s ease .2s;
}
.sf-frame-empty i { font-size: 18px; color: var(--sl-subtle); }
.sf-frame-empty b { font-size: 13.5px; font-weight: 500; color: var(--sl-text-2); }
.sf-frame-empty span { font-size: 12.5px; color: var(--sl-muted); }

.sf-setup-done { height: 0; overflow: hidden; }
.sf-done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 24px;
  border-radius: 50%;
  background: #DCFCE7;
  color: var(--sl-link);
  font-size: 20px;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
}

/* Stage 2: interface elements appear */
.sf-setup[data-stage="2"] .sf-setup-frame,
.sf-setup[data-stage="3"] .sf-setup-frame,
.sf-setup[data-stage="4"] .sf-setup-frame { opacity: 1; transform: none; }
.sf-setup[data-stage="2"] .sf-frame-pill,
.sf-setup[data-stage="3"] .sf-frame-pill,
.sf-setup[data-stage="4"] .sf-frame-pill { opacity: 1; transform: none; }
/* Stage 3: dashboard comes together */
.sf-setup[data-stage="3"] .sf-frame-kpi,
.sf-setup[data-stage="4"] .sf-frame-kpi,
.sf-setup[data-stage="3"] .sf-frame-empty,
.sf-setup[data-stage="4"] .sf-frame-empty { opacity: 1; }
/* Stage 4: ready */
.sf-setup[data-stage="4"] .sf-setup-done { height: auto; }
.sf-setup[data-stage="4"] .sf-done-check { opacity: 1; transform: none; }

/* ── Pro checkout ── */
.sf-step--checkout { max-width: 960px; }
.sf-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 48px;
  align-items: start;
}
#sf-step-checkout > .sf-sub { max-width: 560px; margin-bottom: 32px; }
.sf-checkout-main .sf-label { margin: 22px 0 10px; }
.sf-checkout-main .sf-label:first-child { margin-top: 0; }
.sf-stripe { min-height: 44px; }
.sf-checkout-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px dashed var(--sl-border-input);
  border-radius: 10px;
  font-size: 14px;
  color: var(--sl-muted);
}
.sf-checkout-loading[hidden] { display: none; }
#sf-checkout-fields { margin-bottom: 24px; }
.sf-checkout-main .sf-field .sf-label { margin: 0 0 6px; }
.sf-checkout-retry { margin: -4px 0 16px; }
.sf-checkout-retry[hidden] { display: none; }
.sf-checkout-terms { margin-top: 14px; }
.sf-checkout-main .sf-actions { margin-top: 20px; }

.sf-checkout-summary {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow-xs);
}
.sf-summary-title { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--sl-muted); }
.sf-summary-plan {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sl-border);
}
.sf-summary-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; color: var(--sl-text); }
.sf-summary-name .sf-badge[hidden] { display: none; }
.sf-summary-period { margin: 4px 0 0; font-size: 13.5px; color: var(--sl-muted); }
.sf-summary-price { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--sl-text); font-variant-numeric: tabular-nums; }
.sf-summary-price span { margin-left: 3px; font-size: 13px; font-weight: 400; color: var(--sl-muted); }

.sf-timeline { position: relative; margin: 20px 0 0; padding: 0; list-style: none; }
.sf-timeline[hidden] { display: none; }
.sf-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.sf-timeline li:last-child { padding-bottom: 0; }
.sf-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  border-radius: 1px;
  background: var(--sl-border);
}
.sf-timeline-dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sl-surface-2);
  font-size: 13px;
  color: var(--sl-text-2);
}
.sf-timeline li:first-child .sf-timeline-dot { background: #DCFCE7; color: var(--sl-link); }
.sf-timeline li > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--sl-muted); }
.sf-timeline b { font-weight: 600; color: var(--sl-text); }

.sf-summary-rows { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--sl-border); }
.sf-summary-row { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 10px; font-size: 14px; color: var(--sl-muted); }
.sf-summary-row:last-child { margin-bottom: 0; }
.sf-summary-row dt { font-weight: 400; }
.sf-summary-row dd { margin: 0; text-align: right; color: var(--sl-text-2); font-variant-numeric: tabular-nums; }
.sf-summary-row--total { font-size: 15px; }
.sf-summary-row--total dt,
.sf-summary-row--total dd { font-weight: 600; color: var(--sl-text); }
.sf-summary-secure {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--sl-bg);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sl-muted);
}
.sf-summary-secure i { flex: none; margin-top: 1px; color: var(--sl-link); }

@media (max-width: 860px) {
  .sf-checkout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* Small screens: what it costs comes before the card form. */
  .sf-checkout-summary { position: static; order: -1; padding: 20px; }
}

/* ── Done ── */
.sf-done-brand { margin-bottom: 24px; }
#sf-step-done .sf-sub { margin-bottom: 28px; }
.sf-notice {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #FDE68A;
  border-radius: var(--sl-radius);
  background: #FFFBEB;
  font-size: 13.5px;
  color: #92400E;
  text-align: left;
}
.sf-notice[hidden] { display: none; }
.sf-checklist { margin-top: 36px; text-align: left; }
.sf-checklist-title { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--sl-muted); }
.sf-checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--sl-border);
  border-radius: 10px;
  background: var(--sl-surface);
  overflow: hidden;
}
.sf-checklist-list li + li { border-top: 1px solid var(--sl-border); }
.sf-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sl-text);
  text-decoration: none;
  transition: background-color .12s ease;
}
.sf-checklist-item:hover { background: #FAFAF9; color: var(--sl-text); }
.sf-checklist-item:focus-visible { outline: 2px solid var(--sl-green); outline-offset: -2px; }
.sf-checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--sl-surface-2);
  color: var(--sl-text-2);
  font-size: 15px;
}
.sf-checklist-label { flex: 1; }
.sf-checklist-arrow { font-size: 14px; color: var(--sl-subtle); transition: transform .12s ease, color .12s ease; }
.sf-checklist-item:hover .sf-checklist-arrow { color: var(--sl-text-2); transform: translateX(2px); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .sf-plans { grid-template-columns: minmax(0, 440px); justify-content: center; }
  .sf-plan-desc, .sf-plan-note { min-height: 0; }
}

@media (max-width: 720px) {
  .sf-header {
    grid-template-columns: 1fr auto;
    row-gap: 20px;
    padding: 20px 20px 0;
  }
  .sf-progress { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .sf-progress[hidden] { display: none; }
  .sf-progress-label { text-align: left; }
  .sf-header-link-text { display: none; }
  .sf-main { padding: 36px 20px 56px; }
  .sf-type-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sf-title { font-size: 24px; }
  .sf-sub { margin-bottom: 28px; }
  .sf-input, .sf-phone-dial { font-size: 16px; }
  .sf-otp { gap: 6px; }
  .sf-otp-input { width: 44px; height: 52px; }
  .sf-plan { padding: 20px; }
}

@media (max-width: 360px) {
  .sf-main { padding-left: 16px; padding-right: 16px; }
  .sf-otp-input { width: 40px; height: 50px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-page *,
  .sf-page *::before,
  .sf-page *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation-duration: 1.5s !important;
  }
  .sf-setup-frame, .sf-frame-pill, .sf-done-check { transform: none !important; }
}

/* ── Post-login transition (shop-login.css styles the screen itself) ── */
.sf-page.is-redirecting .sf-header,
.sf-page.is-redirecting .sf-step { display: none !important; }
.sf-page.is-redirecting .sf-main { align-items: center; }
