/* ========== Seller Onboarding Wizard ========== */

.wk-ob {
  background: linear-gradient(135deg, #f8fafc 0%, #faf5ff 45%, #eff6ff 100%);
  min-height: 80vh;
  padding: 40px 16px 80px;
}

.wk-ob-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* Progress */
.wk-ob-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.wk-ob-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wk-ob-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
  position: relative;
}

.wk-ob-progress-check {
  display: none;
}

.wk-ob-progress-step.done .wk-ob-progress-dot {
  background: #9333ea;
  color: #fff;
}

.wk-ob-progress-step.done .wk-ob-progress-num {
  display: none;
}

.wk-ob-progress-step.done .wk-ob-progress-check {
  display: block;
}

.wk-ob-progress-step.current .wk-ob-progress-dot {
  background: #9333ea;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15);
}

.wk-ob-progress-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9ca3af;
  display: none;
}

.wk-ob-progress-step.current .wk-ob-progress-label {
  color: #9333ea;
}

@media (min-width: 576px) {
  .wk-ob-progress-label {
    display: block;
  }
}

.wk-ob-progress-line {
  height: 2px;
  flex: 1;
  background: #f3f4f6;
  margin: 0 8px 20px;
  transition: background 0.2s;
}

.wk-ob-progress-line.done {
  background: #c084fc;
}

/* Card */
.wk-ob-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.wk-ob-card-head {
  background: linear-gradient(90deg, #9333ea, #3b82f6);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wk-ob-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.wk-ob-card-head-text h2 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.wk-ob-card-head-text p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.wk-ob-card-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

.wk-ob-card-body {
  padding: 24px;
}

.wk-ob-step {
  display: none;
}

.wk-ob-step.active {
  display: block;
  animation: wk-ob-fade 0.25s ease;
}

@keyframes wk-ob-fade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.wk-ob-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.wk-ob-field {
  margin-bottom: 20px;
}

.wk-ob-field:last-child {
  margin-bottom: 0;
}

.wk-ob-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.wk-ob-field .req {
  color: #ef4444;
}

.wk-ob-field input,
.wk-ob-field select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--wk-font, 'Inter', sans-serif);
}

.wk-ob-field input:focus,
.wk-ob-field select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.wk-ob-field small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.wk-ob-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 16px;
}

.wk-ob-search {
  position: relative;
  margin-bottom: 16px;
}

.wk-ob-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.wk-ob-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 16px 10px 40px;
  font-size: 0.875rem;
  outline: none;
}

.wk-ob-search input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.wk-ob-country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.wk-ob-country-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #f3f4f6;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.wk-ob-country-btn:hover {
  border-color: #e9d5ff;
  background: #f9fafb;
}

.wk-ob-country-btn.active {
  border-color: #a855f7;
  background: #faf5ff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.12);
}

.wk-ob-country-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.wk-ob-country-info {
  min-width: 0;
  flex: 1;
}

.wk-ob-country-info b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.wk-ob-country-info small {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.wk-ob-country-check {
  color: #9333ea;
  flex-shrink: 0;
  display: none;
}

.wk-ob-country-btn.active .wk-ob-country-check {
  display: block;
}

.wk-ob-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.75rem;
}

.wk-ob-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.wk-ob-note p {
  margin: 0;
  line-height: 1.5;
}

.wk-ob-note.blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
}

.wk-ob-note.blue svg { color: #3b82f6; }

.wk-ob-note.green {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #15803d;
}

.wk-ob-note.green svg { color: #22c55e; }

.wk-ob-note.amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
}

.wk-ob-note.amber svg { color: #f59e0b; }

.wk-ob-upload-field {
  margin-bottom: 20px;
}

.wk-ob-upload-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.wk-ob-upload-field .req { color: #ef4444; }

.wk-ob-upload-field .optional-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.wk-ob-upload-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 8px;
}

.wk-ob-upload-box {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.wk-ob-upload-box:hover {
  border-color: #d8b4fe;
  background: #faf5ff;
}

.wk-ob-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3e8ff;
  color: #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.wk-ob-upload-box:hover .wk-ob-upload-icon {
  background: #e9d5ff;
}

.wk-ob-upload-box p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.wk-ob-upload-box small {
  font-size: 0.75rem;
  color: #9ca3af;
}

.wk-ob-review-table {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.wk-ob-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f9fafb;
}

.wk-ob-review-row:last-child {
  border-bottom: none;
}

.wk-ob-review-row span:first-child {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.wk-ob-review-row span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.wk-ob-review-docs-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.wk-ob-review-doc-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wk-ob-review-doc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4b5563;
}

.wk-ob-review-doc-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f3e8ff;
  color: #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-ob-review-doc-icon.optional {
  background: #f3f4f6;
  color: #9ca3af;
}

.wk-ob-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wk-ob-terms input {
  margin-top: 3px;
  accent-color: #9333ea;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wk-ob-terms label {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.wk-ob-terms a {
  color: #9333ea;
}

.wk-ob-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 24px;
}

.wk-ob-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.wk-ob-btn-back:hover:not(:disabled) {
  background: #f9fafb;
}

.wk-ob-btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wk-ob-btn-next,
.wk-ob-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #9333ea, #3b82f6);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wk-ob-btn-next:hover,
.wk-ob-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
}

.wk-ob-country-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: #6b7280;
  flex-wrap: wrap;
  text-align: center;
}

.wk-ob-country-badge[hidden] {
  display: none;
}

.wk-ob-country-badge span:first-child {
  font-size: 1rem;
}

.wk-ob-country-badge button {
  background: none;
  border: none;
  color: #9333ea;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.wk-ob-country-badge button:hover {
  text-decoration: underline;
}

/* Success */
.wk-ob-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wk-ob-success[hidden] {
  display: none !important;
}

.wk-ob-success-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.wk-ob-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.wk-ob-success-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.wk-ob-success-card > p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.wk-ob-success-next {
  background: #faf5ff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.wk-ob-success-next-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9333ea;
  margin: 0 0 4px;
}

.wk-ob-success-next p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 2px;
}

.wk-ob-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #9333ea, #3b82f6);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wk-ob-success-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(147, 51, 234, 0.3);
}

@media (max-width: 575.98px) {
  .wk-ob-grid-2 {
    grid-template-columns: 1fr;
  }

  .wk-ob-country-grid {
    grid-template-columns: 1fr;
  }

  .wk-ob-card-count {
    display: none;
  }

  .wk-ob-card-foot {
    flex-wrap: wrap;
  }
}
