.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--lavender-light) 0%, var(--surface) 45%, var(--cream) 100%);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.auth-lede {
  font-size: var(--text-size-body);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: var(--text-size-small);
  line-height: 1.55;
  color: var(--text-body);
  cursor: pointer;
}

.auth-terms-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-terms-check a {
  color: var(--lavender-deep);
  text-decoration: underline;
}

.auth-field label {
  display: block;
  font-size: var(--text-size-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-body);
  margin-bottom: 6px;
}

.auth-field > input[type='email'],
.auth-field > input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--text-size-body);
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.auth-field > input:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.password-input-wrap input {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-size-body);
  padding: 12px 72px 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.password-input-wrap input:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: inherit;
  font-size: var(--text-size-small);
  font-weight: 600;
  color: var(--lavender-deep);
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--charcoal);
  background: var(--lavender-light);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}

.auth-remember-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lavender-deep);
  cursor: pointer;
}

.auth-forgot-inline {
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-deep);
  text-decoration: none;
}

.auth-forgot-inline:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.auth-actions {
  margin-top: 20px;
}

.auth-submit {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--lavender-deep);
  color: #fff;
  cursor: pointer;
}

.auth-submit:hover {
  background: var(--charcoal);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-register-cta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.auth-register-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 10px;
}

.auth-register-btn {
  display: inline-block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(184, 149, 106, 0.28);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auth-register-btn:hover {
  background: #a6845a;
  color: #fff;
  border-color: #a6845a;
  box-shadow: 0 4px 16px rgba(184, 149, 106, 0.35);
  transform: translateY(-1px);
}

.auth-register-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-secondary-btn {
  display: inline-block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--lavender-deep);
  background: transparent;
  color: var(--lavender-deep);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.auth-secondary-btn:hover {
  background: var(--lavender-light);
  color: var(--charcoal);
}

.auth-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-soft);
}

.auth-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  text-align: center;
}

.auth-message {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

.auth-message.is-visible {
  display: block;
}

.auth-message.is-error {
  background: #fce8e8;
  color: #8b3030;
}

.auth-message.is-success {
  background: #e8f5ec;
  color: #2d6a3e;
}

.auth-dev-link {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text-body);
  padding: 12px 14px;
  background: var(--lavender-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.auth-dev-link a {
  font-weight: 600;
  color: var(--lavender-deep);
}

/* ─── Split sign-in layout ─── */
.auth-main--split {
  align-items: stretch;
  padding: 24px 20px 48px;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 0;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  background: var(--surface-card);
}

.auth-panel--brand {
  padding: 40px 36px;
  background: linear-gradient(155deg, var(--lavender-deep) 0%, #4a3d6b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 12px;
}

.auth-panel-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 14px;
}

.auth-panel-accent {
  color: #e8ddf5;
  font-style: normal;
  display: inline-block;
  min-width: 9ch;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-panel-accent.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.auth-panel-lede {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 12px;
}

.auth-panel-proof,
.auth-platform-proof {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.auth-platform-proof {
  color: var(--auth-muted, #635c5e);
}

.auth-panel-points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.auth-panel-points li {
  padding-left: 22px;
  position: relative;
}

.auth-panel-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  opacity: 0.9;
}

.auth-panel-cta {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--lavender-deep);
  text-decoration: none;
}

.auth-panel-cta:hover {
  background: var(--lavender-light);
  color: var(--charcoal);
}

.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: var(--surface-card);
}

.auth-card--flat {
  max-width: none;
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.auth-form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--charcoal);
}

.auth-audience-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 20px;
  border-radius: 12px;
  background: var(--lavender-light);
  border: 1px solid rgba(124, 92, 191, 0.14);
}

.auth-audience-btn {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-audience-btn:hover {
  color: var(--charcoal);
}

.auth-audience-btn.is-active {
  background: var(--surface-card);
  color: var(--lavender-deep);
  box-shadow: 0 1px 3px rgba(45, 38, 64, 0.08);
}

.auth-audience-btn:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}

.auth-audience-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.auth-audience-toggle[hidden] {
  display: none;
}

.auth-audience-note[hidden] {
  display: none;
}

.auth-intent-callout {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 191, 0.22);
  background: linear-gradient(135deg, rgba(237, 231, 250, 0.95) 0%, rgba(255, 251, 245, 0.95) 100%);
}

.auth-early-access {
  text-align: left;
}

.auth-early-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-deep, #6b4f8a);
  background: rgba(124, 92, 191, 0.08);
  border: 1px solid rgba(124, 92, 191, 0.18);
}

.auth-early-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 24px 0 8px;
}

.auth-early-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.auth-early-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(28, 32, 64, 0.16);
  background: #fff;
  color: var(--text-heading, #1c2040);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.auth-early-secondary:hover {
  border-color: rgba(28, 32, 64, 0.28);
  background: #faf9f7;
}

.auth-intent-callout-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender-deep);
}

.auth-intent-callout-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}

.auth-intent-callout-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #635c5e;
}

.auth-intent-callout-note a {
  font-weight: 600;
  color: var(--lavender-deep);
}

.auth-secondary-btn--prominent {
  background: var(--lavender-light);
}

.auth-secondary-btn--prominent:hover {
  background: var(--lavender-deep);
  color: #fff;
  border-color: var(--lavender-deep);
}

.auth-split--register {
  max-width: 980px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
}

.auth-main--register {
  align-items: stretch;
}

.auth-wizard-shell--in-split {
  max-width: none;
  width: 100%;
}

.auth-panel--form .auth-card--wizard {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-panel--brand {
    padding: 28px 24px;
  }

  .auth-panel-cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ─── Registration wizard ─── */
.auth-main--wizard {
  align-items: flex-start;
  padding-top: 28px;
}

.auth-wizard-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.auth-wizard-shell--wide {
  max-width: 720px;
}

.auth-wizard-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.auth-wizard-steps[hidden] {
  display: none !important;
}

.auth-wizard-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.auth-wizard-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-size-small);
  font-weight: 700;
  background: var(--border-soft);
  color: var(--text-soft);
}

.auth-wizard-step.is-current {
  border-color: var(--lavender-deep);
  background: var(--surface-card);
  color: var(--charcoal);
  font-weight: 600;
}

.auth-wizard-step.is-current .auth-wizard-num {
  background: var(--lavender-deep);
  color: #fff;
}

.auth-wizard-step.is-done {
  color: var(--charcoal);
}

.auth-wizard-step.is-done .auth-wizard-num {
  background: #e8f5ec;
  color: #2d6a3e;
}

.auth-wizard-label {
  line-height: 1.2;
}

.auth-card--wizard {
  max-width: none;
}

.auth-card--welcome {
  max-width: none;
}

.auth-welcome-head {
  margin-bottom: 4px;
}

.auth-welcome-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender-deep);
}

.auth-lede--welcome {
  margin-bottom: 18px;
}

.auth-welcome-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(195, 151, 195, 0.12);
  border: 1px solid rgba(195, 151, 195, 0.35);
}

.auth-welcome-map-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-welcome-map-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
}

.auth-welcome-map-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-welcome-map-divider {
  align-self: center;
  font-size: 18px;
  color: var(--text-soft);
  padding-top: 2px;
}

.auth-path-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-path-section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.auth-path-section-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.auth-path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  font-family: inherit;
  padding: 18px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auth-path-card--choice {
  min-height: 168px;
  padding: 22px 18px;
  border: 2px solid rgba(90, 70, 130, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  box-shadow: 0 2px 10px rgba(74, 68, 70, 0.06);
}

.auth-path-card--choice .auth-path-title {
  font-size: 16px;
}

.auth-path-card--choice .auth-path-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
}

.auth-path-card:hover {
  border-color: var(--lavender-deep);
  box-shadow: 0 4px 16px rgba(90, 70, 130, 0.12);
  transform: translateY(-1px);
}

.auth-path-card--choice:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(184, 149, 106, 0.2);
}

.auth-path-card:focus-visible {
  outline: 2px solid var(--lavender-deep);
  outline-offset: 2px;
}

.auth-path-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.auth-path-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.auth-path-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-path-cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender-deep);
}

.auth-path-card--organiser .auth-path-cta {
  color: #6b4f9a;
}

.auth-welcome-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.auth-welcome-footer-label {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.auth-welcome-footer-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-welcome-skip-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.auth-welcome-skip-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-deep);
  text-decoration: none;
}

.auth-welcome-skip-link:hover {
  text-decoration: underline;
}

.auth-welcome-skip {
  margin-top: 22px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

.auth-welcome-skip a {
  color: var(--lavender-deep);
  font-weight: 600;
}

.auth-enable-points {
  margin: 0 0 22px;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-enable-points li + li {
  margin-top: 6px;
}

.auth-checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.auth-checkbox-row input {
  margin-top: 4px;
  flex-shrink: 0;
}

.auth-verify-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.auth-verify-status.is-success {
  background: #edf7ef;
  border: 1px solid #b9dfc2;
  color: #1f5b2d;
}

.auth-verify-status.is-error {
  background: #fff4f4;
  border: 1px solid #f0c4c4;
  color: #8a1f1f;
}

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

.auth-verify-form .auth-field {
  margin-bottom: 14px;
}

.auth-verify-form input[type='text'] {
  letter-spacing: 0.28em;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.auth-verify-resend-row {
  margin: 14px 0 0;
  text-align: center;
}

.auth-text-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender-deep);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-text-btn:hover {
  color: var(--charcoal);
}

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

.auth-dev-link {
  margin: 0 0 14px;
  font-size: 13px;
  word-break: break-all;
}

.auth-secondary-link {
  color: var(--lavender-deep);
  font-weight: 600;
  text-decoration: none;
}

.auth-secondary-link:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .auth-wizard-step .auth-wizard-label {
    display: none;
  }

  .auth-welcome-map {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-welcome-map-divider {
    display: none;
  }

  .auth-path-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Stripe Connect launcher (payment-setup.html) ─── */
.payment-setup-page .payment-setup-main {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.payment-setup-shell {
  width: 100%;
  max-width: min(960px, 96vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 6vw, 56px);
}

.payment-setup-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.payment-setup-brand {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(68px, 12vw, 96px);
}

.payment-setup-hub-brand.nav-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
  background: transparent;
}

.payment-setup-hub-brand.nav-logo img,
.payment-setup-hub-logo {
  display: block;
  height: clamp(68px, 12vw, 96px);
  width: auto;
  max-width: min(300px, 46vw);
  object-fit: contain;
  object-position: center center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  vertical-align: middle;
}

.payment-setup-stripe-logo {
  display: block;
  width: auto;
  height: clamp(56px, 10vw, 88px);
  max-width: min(280px, 36vw);
  object-fit: contain;
}

/* Animated bridge between Hub and Stripe */
.payment-setup-bridge {
  position: relative;
  flex: 1 1 auto;
  min-width: 72px;
  max-width: 220px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-setup-bridge-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(139, 111, 168, 0.2) 0%,
    rgba(139, 111, 168, 0.45) 35%,
    rgba(99, 91, 255, 0.45) 65%,
    rgba(99, 91, 255, 0.2) 100%
  );
}

.payment-setup-bridge-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(10px, 1.6vw, 14px);
  height: clamp(10px, 1.6vw, 14px);
  margin-top: calc(clamp(10px, 1.6vw, 14px) / -2);
  border-radius: 50%;
  background: var(--lavender-deep, #8b6fa8);
  box-shadow: 0 0 0 4px rgba(139, 111, 168, 0.12);
  animation: payment-setup-travel-x 2.2s ease-in-out infinite;
}

.payment-setup-bridge-dot:nth-of-type(2) {
  animation-delay: 0.45s;
}

.payment-setup-bridge-dot:nth-of-type(3) {
  animation-delay: 0.9s;
}

@keyframes payment-setup-travel-x {
  0% {
    left: 0%;
    transform: translateX(-50%) scale(0.7);
    opacity: 0.25;
    background: var(--lavender-deep, #8b6fa8);
    box-shadow: 0 0 0 3px rgba(139, 111, 168, 0.1);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    background: #9b8fd4;
    box-shadow: 0 0 0 5px rgba(139, 111, 168, 0.14);
  }
  88% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    left: 100%;
    transform: translateX(-50%) scale(0.7);
    opacity: 0.25;
    background: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
  }
}

.payment-setup-copy {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.payment-setup-copy h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.2;
}

.payment-setup-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender-deep);
}

.payment-setup-status {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-body);
  line-height: 1.6;
}

.payment-setup-hint {
  margin: 0 0 24px;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.payment-setup-copy .auth-error {
  margin-bottom: 16px;
  text-align: left;
}

.payment-setup-copy .auth-form-foot {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 640px) {
  .payment-setup-hero {
    flex-direction: column;
    gap: 20px;
  }

  .payment-setup-bridge {
    min-width: 20px;
    max-width: none;
    width: 20px;
    height: clamp(72px, 18vw, 120px);
  }

  .payment-setup-bridge-track {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    margin-top: 0;
    margin-left: -1.5px;
    background: linear-gradient(
      180deg,
      rgba(139, 111, 168, 0.2) 0%,
      rgba(139, 111, 168, 0.45) 35%,
      rgba(99, 91, 255, 0.45) 65%,
      rgba(99, 91, 255, 0.2) 100%
    );
  }

  .payment-setup-bridge-dot {
    left: 50%;
    top: 0;
    margin-top: 0;
    margin-left: calc(clamp(10px, 1.6vw, 14px) / -2);
    animation-name: payment-setup-travel-y;
  }
}

@keyframes payment-setup-travel-y {
  0% {
    top: 0%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.25;
    background: var(--lavender-deep, #8b6fa8);
    box-shadow: 0 0 0 3px rgba(139, 111, 168, 0.1);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    background: #9b8fd4;
    box-shadow: 0 0 0 5px rgba(139, 111, 168, 0.14);
  }
  88% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    top: 100%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.25;
    background: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
  }
}

@media (max-width: 480px) {
  .payment-setup-page .payment-setup-main {
    padding: 20px 16px 32px;
  }

  .payment-setup-brand {
    min-height: 68px;
  }

  .payment-setup-hub-brand.nav-logo img,
  .payment-setup-hub-logo {
    height: 68px;
    max-width: min(46vw, 300px);
  }

  .payment-setup-stripe-logo {
    height: clamp(48px, 14vw, 72px);
    max-width: min(68vw, 240px);
  }
}
