.onboarding-page {
  padding: 1.5rem 1rem 3rem;
  max-width: 560px;
  margin: 0 auto;
}

.onboarding-page-wide {
  max-width: 920px;
}

.onboarding-page-wide .onboarding-inner {
  padding: 1.25rem;
}

/* ── BigSeller login embed ───────────────────────────────────────────── */
.bs-embed {
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 40, 80, 0.08);
}

.bs-embed-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f5f7fa;
  border-bottom: 1px solid #e4e7ed;
  font-size: 0.72rem;
}

.bs-embed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dcdfe6;
}

.bs-embed-dot:first-child { background: #ff5f57; }
.bs-embed-dot:nth-child(2) { background: #febc2e; }
.bs-embed-dot:nth-child(3) { background: #28c840; }

.bs-embed-url {
  flex: 1;
  color: #606266;
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-embed-open {
  color: #0088f0;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.bs-embed-open:hover { text-decoration: underline; }

.bs-embed-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bs-embed-body {
    grid-template-columns: minmax(200px, 42%) 1fr;
    min-height: 380px;
  }
}

.bs-embed-promo {
  display: none;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(247deg, #0088f0 0%, #00e5f1 100%);
  color: #fff;
}

@media (min-width: 720px) {
  .bs-embed-promo { display: flex; flex-direction: column; }
}

.bs-embed-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bs-embed-promo-title {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.bs-embed-promo-sub {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.92;
  line-height: 1.45;
}

.bs-embed-promo-img {
  margin-top: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.bs-embed-form-wrap {
  padding: 1.5rem 1.25rem 1.25rem;
}

.bs-embed-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #303133;
}

.bs-embed-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bs-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bs-field-grow { flex: 1; min-width: 0; }

.bs-field-label {
  font-size: 0.75rem;
  color: #909399;
}

.bs-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
}

.bs-input:focus {
  outline: none;
  border-color: #0088f0;
  box-shadow: 0 0 0 2px rgba(0, 136, 240, 0.15);
}

.bs-input:disabled {
  background: #f5f7fa;
  color: #606266;
}

.bs-captcha-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.bs-captcha-placeholder .bs-input {
  flex: 1;
  opacity: 0.55;
}

.bs-captcha-img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.bs-captcha-img-muted {
  font-size: 0.65rem;
  color: #909399;
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
  padding: 0.5rem;
  border: 1px dashed #dcdfe6;
  border-radius: 4px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-captcha-live {
  display: block;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #f5f7fa;
  image-rendering: crisp-edges;
}

.bs-captcha-refresh {
  border: none;
  background: transparent;
  color: #0088f0;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.bs-captcha-refresh:hover { color: #0066cc; }

.bs-captcha-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #909399;
  line-height: 1.4;
}

.bs-btn-primary {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  background: #0088f0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.bs-btn-primary:hover { background: #0070c8; }

.bs-embed-note {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  color: #909399;
  background: #fafafa;
  border-top: 1px solid #e4e7ed;
  line-height: 1.45;
}

.onboarding-inner,
.onboarding-card {
  padding: 1.5rem;
}

.onboarding-head h1 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.onboarding-sub {
  color: var(--text-muted, #64748b);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.onboarding-shop-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.onboarding-shop-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.onboarding-shop-status {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #475569;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.onboarding-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
}

.onboarding-step.is-current {
  color: var(--primary, #2563eb);
  font-weight: 600;
}

.onboarding-step.is-done {
  color: var(--success, #16a34a);
}

.onboarding-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.7rem;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.onboarding-alt {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.onboarding-delegate-url code {
  display: block;
  word-break: break-all;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--surface-2, #f1f5f9);
  border-radius: 6px;
}

.onboarding-captcha-img img {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
}

.bs-auth-verify {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bs-auth-desc {
  margin: 0;
  color: #4e5969;
  line-height: 1.5;
  font-size: 0.92rem;
}

.bs-auth-code-input {
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  text-align: center;
}

.bs-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bs-btn-secondary {
  appearance: none;
  border: 1px solid #c9cdd4;
  background: #fff;
  color: #4e5969;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.bs-btn-secondary:hover {
  border-color: #6046e5;
  color: #6046e5;
}

.onboarding-inline-form {
  display: inline;
}

/* ── Stepper v2 ─────────────────────────────────────────────────────── */
.onboarding-stepper-wrap {
  margin-bottom: 1.25rem;
}

.onboarding-step-caption {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

.onboarding-step-caption-sep {
  opacity: 0.5;
  margin: 0 0.25rem;
}

.onboarding-step-caption-label {
  font-weight: 600;
  color: var(--text, #e2e8f0);
}

.onboarding-stepper {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.onboarding-step {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}

.onboarding-step-progress {
  margin-top: 0.65rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.onboarding-step-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  transition: width 0.35s ease;
}

/* ── Panels & status ─────────────────────────────────────────────── */
.onboarding-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.18));
  background: rgba(15, 23, 42, 0.35);
}

.onboarding-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #94a3b8);
}

.onboarding-status-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.onboarding-status-banner strong {
  display: block;
  margin-bottom: 0.2rem;
}

.onboarding-status-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
}

.onboarding-checklist {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.onboarding-checklist li {
  color: var(--text-muted, #cbd5e1);
  font-size: 0.92rem;
}

.onboarding-checklist li.is-optional {
  opacity: 0.85;
}

.onboarding-hint-card {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.onboarding-delegate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.onboarding-delegate-url {
  flex: 1;
  min-width: 200px;
  word-break: break-all;
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
}

.onboarding-page-pay .land-pay-onboarding {
  margin-top: 0.5rem;
}

.onboarding-page-pay .land-pay-onboarding .land-pay-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .onboarding-page-pay .land-pay-onboarding .land-pay-grid {
    grid-template-columns: 1fr minmax(260px, 320px);
  }
}

/* ── Dark theme: BigSeller embed on futuristic shell ─────────────── */
.theme-future .bs-embed {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 40px rgba(56, 189, 248, 0.06);
}

.theme-future .bs-embed-chrome {
  background: rgba(15, 23, 42, 0.8);
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

.theme-future .bs-embed-url {
  color: #94a3b8;
}

.theme-future .bs-embed-form-wrap {
  background: rgba(15, 23, 42, 0.4);
}

.theme-future .bs-embed-title {
  color: #f1f5f9;
}

.theme-future .bs-field-label {
  color: #94a3b8;
}

.theme-future .bs-input {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

.theme-future .bs-input:disabled {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
}

.theme-future .bs-embed-note {
  background: rgba(15, 23, 42, 0.5);
  border-top-color: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.theme-future .onboarding-shop-item {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-future .onboarding-inner.card,
.theme-future .onboarding-card {
  backdrop-filter: blur(12px);
}

.onboarding-optional-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #94a3b8);
  vertical-align: middle;
}

.onboarding-brand-upsell .onboarding-actions form {
  display: inline;
}

.redeem-setup-checklist {
  margin-bottom: 1rem;
}

.redeem-setup-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.redeem-setup-checklist-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  background: var(--surface-2, rgba(15, 23, 42, 0.35));
}

.redeem-setup-checklist-item.is-done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.redeem-setup-checklist-mark {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.redeem-setup-checklist-item.is-done .redeem-setup-checklist-mark {
  color: var(--success, #22c55e);
}

.redeem-setup-checklist-body strong {
  display: block;
  margin-bottom: 0.2rem;
}

.redeem-setup-checklist-body .btn {
  margin-top: 0.45rem;
}

.redeem-share-kit-snippet {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0 0 0.75rem;
  max-height: 240px;
  overflow: auto;
}
