﻿.seller-onboarding-page {
  background: #f3f4f6;
  color: var(--ink);
}

.seller-onboarding-page .hidden {
  display: none !important;
}

.seller-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.seller-topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.seller-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.seller-brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(255, 122, 0, 0.24);
}

.seller-brand-copy {
  display: grid;
  gap: 2px;
}

.seller-brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.seller-brand-copy span {
  font-size: 14px;
  color: var(--muted);
}

.seller-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-top-actions .auth-inline a {
  color: var(--brand);
  border-color: rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.06);
}

.seller-top-actions .user-trigger {
  color: var(--ink);
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  padding: 6px 10px;
}

.seller-top-actions .user-avatar {
  background: rgba(255, 122, 0, 0.12);
}

.seller-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.seller-main {
  min-width: 0;
}

.page-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  color: #b45309;
  font-weight: 500;
}

.page-alert.error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.welcome-card,
.state-card,
.wizard-shell,
.side-panel {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.welcome-card {
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.welcome-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18), transparent 72%);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.welcome-content h1,
.state-card h1,
.step-header h2,
.complete-card h2 {
  margin: 18px 0 12px;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.welcome-content h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.welcome-content p,
.state-card p,
.step-header p,
.side-panel p,
.field-help,
.address-card p,
.upload-note,
.shipping-caption,
.complete-card p {
  color: var(--muted);
  line-height: 1.65;
}

.welcome-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 18px 32px rgba(255, 122, 0, 0.24);
}

.secondary-btn {
  background: rgba(255, 122, 0, 0.1);
  color: var(--brand-dark);
}

.ghost-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.welcome-visual {
  display: grid;
  gap: 16px;
}

.hero-plate {
  border-radius: 28px;
  min-height: 280px;
  background: linear-gradient(145deg, #fff7f0, #ffe1c2);
  border: 1px solid rgba(255, 122, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-plate::before,
.hero-plate::after {
  content: "";
  position: absolute;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.hero-plate::before {
  width: 180px;
  height: 180px;
  left: 34px;
  top: 44px;
  transform: rotate(-8deg);
}

.hero-plate::after {
  width: 210px;
  height: 130px;
  right: 36px;
  bottom: 38px;
  transform: rotate(8deg);
}

.hero-chip,
.hero-dot,
.hero-card {
  position: absolute;
  z-index: 1;
}

.hero-chip {
  top: 46px;
  right: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}

.hero-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
}

.hero-dot.one {
  left: 240px;
  top: 54px;
}

.hero-dot.two {
  right: 96px;
  bottom: 112px;
}

.hero-card {
  left: 76px;
  bottom: 62px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
  width: 220px;
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
}

.quick-points {
  display: grid;
  gap: 10px;
}

.quick-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff8f2;
  border: 1px solid rgba(255, 122, 0, 0.1);
}

.quick-point span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.14);
  color: var(--brand);
  font-weight: 700;
}

.state-card {
  padding: 28px;
}

.state-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.state-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.state-badge.approved {
  background: #dcfce7;
  color: #15803d;
}

.state-badge.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.state-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meta-card,
.address-card,
.upload-dropzone,
.shipping-card {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 18px;
  background: #fff;
}

.meta-card {
  padding: 16px 18px;
}

.meta-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.state-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wizard-shell {
  padding: 26px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.step-item {
  position: relative;
  text-align: center;
  padding-top: 4px;
}

.step-item::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: rgba(17, 24, 39, 0.08);
}

.step-item:last-child::after {
  display: none;
}

.step-marker {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-label {
  display: block;
  font-weight: 700;
}

.step-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.step-item.active .step-marker,
.step-item.completed .step-marker {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
}

.step-item.completed::after,
.step-item.active::after {
  background: linear-gradient(90deg, var(--brand), var(--brand-secondary));
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: var(--brand-dark);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.step-counter {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7f0;
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}

.form-layout {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.upload-field,
.address-card,
.shipping-card,
.note-card {
  padding: 18px;
}

.field.full,
.shipping-stack,
.upload-stack,
.note-card {
  grid-column: 1 / -1;
}

.field label,
.block-title {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.required::after {
  content: " *";
  color: #dc2626;
}

.input,
.textarea,
.input-inline,
.select-preview,
.manual-input {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.textarea:focus,
.manual-input:focus {
  outline: none;
  border-color: rgba(255, 122, 0, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.input[readonly] {
  background: #f8fafc;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.field-foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.address-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(145deg, #fff, #fff8f2);
}

.address-card strong {
  display: block;
  margin-bottom: 6px;
}

.address-empty {
  color: var(--muted);
}

.shipping-stack,
.upload-stack {
  display: grid;
  gap: 14px;
}

.shipping-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shipping-copy strong {
  display: block;
  margin-bottom: 4px;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch span {
  width: 100%;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: #22c55e;
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.radio-row,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  cursor: pointer;
  background: #fff;
}

.choice-chip input {
  margin: 0;
}

.choice-chip.active {
  border-color: rgba(255, 122, 0, 0.4);
  background: rgba(255, 122, 0, 0.07);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-dropzone {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff9f5);
}

.upload-dropzone strong {
  display: block;
  margin-bottom: 6px;
}

.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.12);
  color: var(--brand);
  font-size: 24px;
  margin: 0 auto 14px;
}

.upload-note {
  margin-top: 10px;
  font-size: 13px;
}

.upload-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.upload-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7f0;
}

.upload-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

.upload-item strong,
.upload-item a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.upload-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.upload-remove {
  flex: 0 0 auto;
  align-self: center;
  border: none;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-weight: 700;
}

.note-card {
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.08), rgba(255, 178, 102, 0.12));
}

.wizard-footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.wizard-footer-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.complete-card {
  text-align: center;
  padding: 42px 18px 28px;
}

.complete-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-size: 40px;
  font-weight: 700;
}

.seller-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.side-panel {
  padding: 22px;
}

.side-panel h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.progress-list,
.summary-list {
  display: grid;
  gap: 12px;
}

.progress-item,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: #d1d5db;
}

.progress-item.done .progress-dot {
  background: #22c55e;
}

.progress-item.active .progress-dot {
  background: var(--brand);
}

.progress-copy {
  flex: 1;
}

.progress-copy strong {
  display: block;
  margin-bottom: 3px;
}

.help-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}

.modal-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 20px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modal-grid .field.full {
  grid-column: 1 / -1;
}

.modal-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  color: #b45309;
  line-height: 1.55;
}

.modal-status.error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.region-shell {
  margin-top: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  padding: 14px;
  background: #f8fafc;
}

.region-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.region-stage-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 10px;
  background: #e5e7eb;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.region-stage-btn.active {
  background: rgba(255, 122, 0, 0.14);
  color: var(--brand-dark);
}

.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.region-option {
  border: none;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  border: 1px solid transparent;
}

.region-option:hover,
.region-option.active {
  border-color: rgba(255, 122, 0, 0.28);
  background: #fff7f0;
}

.manual-wrap {
  display: grid;
  gap: 10px;
}

.region-loading,
.region-empty-state {
  padding: 12px 4px;
}

.seller-address-map-card {
  margin-top: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.seller-address-map-card .address-map-preview {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1120px) {
  .seller-layout {
    grid-template-columns: 1fr;
  }

  .seller-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .seller-topbar-inner,
  .seller-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .welcome-grid,
  .form-grid,
  .upload-grid,
  .modal-grid,
  .state-meta {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-item:last-child {
    grid-column: 1 / -1;
  }

  .step-item::after {
    display: none;
  }

  .wizard-footer,
  .wizard-footer-actions,
  .state-actions,
  .welcome-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .address-card,
  .shipping-card,
  .step-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
