/* Wizard Container */
.wizard-container {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Top Progress Bar (1/8) */
.wizard-progress-top {
  background: rgba(107, 114, 128, 0.15);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wizard-progress-fill {
  height: 100%;
  background: #6b7280;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  position: relative;
}

.wizard-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wizard-progress-label {
  text-align: center;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Main Wizard Layout */
.wizard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Main content column — must have min-width:0 so the 1fr grid cell
   cannot grow wider than its allocated space when a wide table is inside */
.wizard-content {
  min-width: 0;
  overflow: clip; /* clip prevents grid blowout without creating a scroll container, so position:sticky still works */
}

/* Step Sidebar */
.wizard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-step-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wizard-step-card:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-step-card.active {
  background: #f9fafb;
  border-color: #6b7280;
  border-left: 3px solid #6b7280;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wizard-step-card.completed {
  background: rgba(34, 197, 94, 0.05);
  border-color: #d1d5db;
}

.wizard-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wizard-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
}

.wizard-step-card.completed .wizard-step-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.wizard-step-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.wizard-step-status {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.wizard-step-card.completed .wizard-step-status {
  color: #22c55e;
}

/* Mini Progress Bar inside step card */
.wizard-step-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.wizard-step-progress-fill {
  height: 100%;
  background: var(--brand-orange);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Main Content Panel */
.wizard-content {
  background: #ffffff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.wizard-content-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-content-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-content-title i {
  color: #6b7280;
  font-size: 18px;
}

.wizard-content-description {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Wizard Section */
.wizard-section {
  margin-bottom: 24px;
}

.wizard-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-section-title i {
  color: #6b7280;
  font-size: 14px;
}

/* Form Fields */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.form-hint {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

/* Pill Toggle */
.pill-toggle {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.pill-toggle-option {
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  z-index: 2;
  color: #64748b;
  border: none;
  background: transparent;
  white-space: nowrap;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

.pill-toggle-option.active {
  color: #fff;
}

.pill-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--brand-orange), #ff9500);
  border-radius: 999px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Upload Zone */
.upload-zone {
  border: 3px dashed rgba(255, 122, 0, 0.3);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: rgba(255, 122, 0, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.05);
  transform: translateY(-2px);
}

.upload-zone.dragover {
  border-color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.1);
  border-style: solid;
}

.upload-zone-icon {
  font-size: 48px;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.upload-zone-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.upload-zone-hint {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.upload-zone input[type="file"] {
  display: none;
}

/* File Selected State */
.file-selected {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.05);
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  margin-top: 16px;
}

.file-selected-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 20px;
}

.file-selected-info {
  flex: 1;
}

.file-selected-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.file-selected-meta {
  font-size: 13px;
  color: #64748b;
}

.file-selected-change {
  color: var(--brand-orange);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.file-selected-change:hover {
  text-decoration: underline;
}

/* API Feed Fields */
.api-feed-fields {
  display: none;
}

.api-feed-fields.active {
  display: block;
}

/* Action Buttons */
.wizard-actions {
  margin-top: auto;
  padding-top: 32px;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), #ff9500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--brand-navy);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Progress Stats */
.progress-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 122, 0, 0.05);
  border-radius: 12px;
  margin-top: 16px;
}

.progress-stat {
  display: flex;
  flex-direction: column;
}

.progress-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.progress-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-orange);
}

/* Step 2: Map Fields - File Sample Preview */
.file-sample-section {
  max-width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.file-sample-section.collapsed {
  padding: 10px 16px;
}

.file-sample-section.collapsed .file-sample-container {
  max-height: 0 !important;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  opacity: 0;
}

.file-sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.file-sample-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.file-sample-title i {
  color: #6b7280;
}

.file-sample-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-sample-info {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  padding: 4px 10px;
  border-radius: 3px;
}

.file-sample-toggle {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.file-sample-section.collapsed .file-sample-toggle {
  transform: rotate(180deg);
}

.file-sample-container {
  margin-top: 16px;
  transition: all 0.3s ease;
}

.file-sample-section.is-loading,
.available-columns-section.is-loading {
  opacity: 0.88;
}

.step2-loading-state {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 12px;
}

.step2-loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.file-sample-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 12px;
  max-width: 100%;
}

.file-sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.file-sample-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.file-sample-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  border-right: 1px solid #e5e7eb;
}

.file-sample-table th:last-child {
  border-right: none;
}

.file-sample-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f3f4f6;
  color: #6b7280;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sample-table td:last-child {
  border-right: none;
}

.file-sample-table tbody tr:hover {
  background: #f9fafb;
}

.file-sample-table tbody tr:last-child td {
  border-bottom: none;
}

.file-sample-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 4px;
  font-size: 12px;
  color: #1e40af;
}

.file-sample-hint i {
  color: #3b82f6;
  font-size: 14px;
}

/* Step 2: Map Fields - Available Columns (Floating Toolbar) */
.available-columns-section {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.available-columns-section.collapsed {
  padding: 10px 16px;
}

.available-columns-section.collapsed .available-columns-container {
  max-height: 0 !important;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  opacity: 0;
}

.available-columns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.available-columns-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.available-columns-title i {
  color: #6b7280;
}

.available-columns-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.available-columns-count {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  padding: 4px 10px;
  border-radius: 3px;
}

.available-columns-toggle {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.available-columns-section.collapsed .available-columns-toggle {
  transform: rotate(180deg);
}

.available-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 16px;
  padding-right: 8px;
  transition: all 0.3s ease;
}

.available-columns-container::-webkit-scrollbar {
  width: 6px;
}

.available-columns-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.available-columns-container::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 999px;
}

.available-columns-container::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Column Pills (Draggable) */
.column-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.column-pill:hover {
  border-color: #6b7280;
  background: #f9fafb;
  transform: none;
  box-shadow: 0 1px 3px rgba(107, 114, 128, 0.15);
}

.column-pill.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.column-pill.mapped {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  border-style: solid;
  color: #16a34a;
}

.column-pill.mapped .column-pill-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.column-pill i {
  color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.column-pill-name {
  font-family: 'Courier New', monospace;
}

.column-pill-badge {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #64748b;
}

/* Remove Mapping Button */
.remove-mapping-btn {
  background: transparent;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 12px;
  padding: 0;
  margin-left: auto;
  transition: all 0.2s;
}

.remove-mapping-btn:hover {
  background: rgba(6b7280, 0.1);
  transform: scale(1.1);
}

.remove-mapping-btn:active {
  transform: scale(0.95);
}

/* Mapping Grid */
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mapping-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mapping-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.mapping-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.mapping-label .mapping-hint {
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
  margin-left: 4px;
}

/* Drop Zones */
.drop-zone {
  min-height: 70px;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.drop-zone i {
  font-size: 24px;
  color: rgba(0, 0, 0, 0.2);
}

.drop-zone span {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.drop-zone:hover {
  border-color: rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.02);
}

.drop-zone.drag-over {
  border-color: #6b7280;
  border-style: solid;
  background: rgba(107, 114, 128, 0.1);
}

.drop-zone.has-mapping {
  border-color: #22c55e;
  border-style: solid;
  background: rgba(34, 197, 94, 0.05);
}

.drop-zone.has-mapping i {
  color: #22c55e;
}

.drop-zone.has-mapping span {
  color: #16a34a;
  font-weight: 600;
}

.drop-zone.has-mapping .mapped-column {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #22c55e;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  font-family: 'Courier New', monospace;
}

.drop-zone.has-mapping .mapped-column .remove-mapping {
  margin-left: 4px;
  cursor: pointer;
  color: #ef4444;
  font-size: 12px;
}

.drop-zone.has-mapping .mapped-column .remove-mapping:hover {
  color: #dc2626;
}

/* Mapping Helper Links */
.mapping-helper-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.mapping-helper-link:hover {
  text-decoration: underline;
}

.mapping-helper-link i {
  font-size: 12px;
}

/* Mapper Toggle Container */
.mapper-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* Mapper Views */
.mapper-view {
  display: none;
  min-height: 300px;
  padding: 32px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.mapper-view.active {
  display: block;
}

.mapper-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
}

.mapper-placeholder h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.mapper-placeholder p {
  font-size: 14px;
  color: #64748b;
  max-width: 500px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
  }

  .wizard-step-card {
    min-width: 200px;
  }

  .mapping-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: Available Columns Toolbar */
  .available-columns-section {
    top: 60px;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .available-columns-section.collapsed {
    padding: 10px 16px;
  }

  .available-columns-title {
    font-size: 14px;
  }

  .available-columns-count {
    font-size: 12px;
    padding: 3px 10px;
  }

  .available-columns-container {
    max-height: 150px;
    margin-top: 12px;
  }

  /* Mobile: Column Pills - Smaller */
  .column-pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .column-pill-badge {
    font-size: 10px;
    padding: 2px 5px;
  }

  /* Mobile: Drop Zones - Touch Friendly */
  .drop-zone {
    min-height: 100px;
    padding: 20px 16px;
  }

  .drop-zone i {
    font-size: 32px;
  }

  .drop-zone span {
    font-size: 14px;
  }

  /* Mobile: Mapping Fields - Full Width */
  .mapping-field {
    margin-bottom: 20px;
  }

  .mapping-label {
    font-size: 15px;
    margin-bottom: 10px;
  }
}

@media (max-width: 640px) {
  /* Extra small mobile adjustments */
  .available-columns-section {
    top: 50px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .wizard-content {
    padding: 24px 16px;
  }

  .column-pill {
    font-size: 11px;
    padding: 5px 8px;
  }

  .column-pill i {
    font-size: 10px;
  }
}

/* Step 3: Download Images */

/* Mapping Summary */
.mapping-summary {
  background: rgba(34, 197, 94, 0.05);
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.mapping-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--brand-navy);
}

.mapping-summary-item i {
  color: #22c55e;
  font-size: 18px;
}

.mapping-summary-item strong {
  color: var(--brand-orange);
  font-family: 'Courier New', monospace;
}

/* Radio and Checkbox Options */
.image-host-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.02);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.radio-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.radio-label strong {
  font-size: 14px;
  color: var(--brand-navy);
}

.radio-label small {
  font-size: 13px;
  color: #64748b;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-option {
  padding: 10px 14px;
}

.checkbox-option span {
  font-size: 14px;
  color: var(--brand-navy);
}

/* Download Stats */
.download-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.download-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.download-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.download-stat-info {
  flex: 1;
}

.download-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.download-stat-label {
  font-size: 13px;
  color: #64748b;
}

/* Download Progress Bar */
.download-progress-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.download-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange), #ff9500);
  border-radius: 999px;
  transition: width 0.3s ease;
  position: relative;
}

.download-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.download-progress-text {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 24px;
}

/* Image Preview Grid */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.image-preview-grid::-webkit-scrollbar {
  width: 8px;
}

.image-preview-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.image-preview-grid::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 999px;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.image-preview-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
}

.image-preview-item.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.image-preview-item.success {
  border-color: #22c55e;
}

.image-preview-item.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.image-preview-item.error::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #ef4444;
}

.image-preview-status {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-preview-status.success {
  color: #22c55e;
}

.image-preview-status.error {
  color: #ef4444;
}

/* Step 4: Enrich Data - Brand Voice */

.brand-voice-section {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(88, 28, 135, 0.05));
  border: 2px solid rgba(255, 122, 0, 0.2);
  border-radius: 16px;
  padding: 32px;
}

.wizard-section-description {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Brand Voice Selector */
.brand-voice-selector {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px solid rgba(255, 122, 0, 0.15);
}

.brand-voice-actions {
  display: flex;
  gap: 8px;
}

.brand-voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.brand-voice-card {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.brand-voice-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.brand-voice-card-full {
  grid-column: 1 / -1;
}

.brand-voice-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.brand-voice-card-header i {
  font-size: 24px;
  color: var(--brand-orange);
}

.brand-voice-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0;
}

/* Enrichment Options Grid */
.enrichment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.enrichment-option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.enrichment-option-card input[type="checkbox"] {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 2;
}

.enrichment-option-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.enrichment-option-card:hover .enrichment-option-content {
  border-color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.02);
  transform: translateY(-2px);
}

.enrichment-option-card input[type="checkbox"]:checked ~ .enrichment-option-content {
  border-color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.05);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.enrichment-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.enrichment-option-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 4px 0;
}

.enrichment-option-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Enrichment Preview */
.enrichment-preview {
  margin-top: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.enrichment-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.enrichment-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enrichment-preview-item {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.enrichment-preview-item:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.enrichment-preview-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.enrichment-preview-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.05);
}

.enrichment-preview-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  flex: 1;
}

.enrichment-preview-item-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
}

.enrichment-preview-item-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enrichment-preview-feature {
  padding: 4px 10px;
  background: rgba(255, 122, 0, 0.1);
  border-radius: 999px;
  font-size: 12px;
}

.normalization-structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.norm-category {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.norm-category:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.norm-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(88, 28, 135, 0.05));
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.norm-category-header i {
  font-size: 20px;
  color: var(--brand-orange);
}

.norm-category-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0;
  flex: 1;
}

.norm-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.norm-badge-required {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.norm-badge-enriched {
  background: rgba(255, 122, 0, 0.1);
  color: var(--brand-orange);
}

.norm-badge-optional {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.norm-badge-ai {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(88, 28, 135, 0.15));
  color: var(--brand-purple);
  border: 1px solid rgba(88, 28, 135, 0.2);
}

.norm-category-highlight {
  border: 2px solid rgba(255, 122, 0, 0.3);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.15);
}

.norm-category-highlight .norm-category-header {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(88, 28, 135, 0.1));
}

.norm-fields {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.norm-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.norm-field:hover {
  background: rgba(255, 122, 0, 0.05);
}

.norm-field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.norm-field-source {
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.norm-field-source code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--brand-orange);
}

/* Price Calculation Grid */
.price-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.price-calc-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-calc-option .form-input {
  margin-top: 8px;
}

/* Step 6: Pricing Management */

.pricing-section-highlight {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(88, 28, 135, 0.05));
  border: 2px solid rgba(255, 122, 0, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 24px;
}

.pricing-section-highlight .wizard-section-title {
  margin-bottom: 8px;
}

.pricing-section-highlight .wizard-section-description {
  margin-bottom: 0;
}

.auth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-suffix .form-input {
  padding-right: 50px;
}

.input-suffix {
  position: absolute;
  right: 16px;
  font-weight: 600;
  color: var(--brand-orange);
  font-size: 16px;
}

.margin-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.margin-config-card {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.margin-config-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.margin-config-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.margin-config-card h3 i {
  color: var(--brand-orange);
}

.margin-preview {
  margin-top: 16px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.05);
  border-radius: 8px;
  border: 2px solid rgba(34, 197, 94, 0.2);
}

.margin-preview-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.margin-arrow {
  color: var(--brand-orange);
  font-size: 18px;
}

.margin-result {
  color: #22c55e;
}

.category-margin-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-margin-item {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  font-size: 13px;
  color: #64748b;
}

.category-margin-item strong {
  color: var(--brand-orange);
}

/* Price Comparison Table */
.price-comparison-sample {
  margin-top: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.price-comparison-sample h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 16px 0;
}

.price-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.price-comparison-table thead {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(88, 28, 135, 0.1));
}

.price-comparison-table th {
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.price-comparison-table td {
  padding: 12px;
  font-size: 14px;
  color: #64748b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.price-comparison-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.02);
}

.price-row-selected {
  background: rgba(34, 197, 94, 0.05) !important;
  border-left: 3px solid #22c55e;
}

.price-row-selected td {
  font-weight: 600;
  color: var(--brand-navy);
}

.margin-good {
  color: #22c55e;
  font-weight: 600;
}

.margin-ok {
  color: #f59e0b;
  font-weight: 600;
}

.margin-low {
  color: #ef4444;
  font-weight: 600;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-available {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.comparison-note {
  margin-top: 12px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.comparison-note i {
  color: #3b82f6;
  font-size: 16px;
}

.comparison-note strong {
  color: var(--brand-navy);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .auth-fields {
    grid-template-columns: 1fr;
  }

  .margin-config-grid {
    grid-template-columns: 1fr;
  }

  .price-comparison-table {
    font-size: 12px;
  }

  .price-comparison-table th,
  .price-comparison-table td {
    padding: 8px;
  }
}

/* Step 7: Stock Management */

.stock-section-highlight {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(88, 28, 135, 0.05));
  border: 2px solid rgba(255, 122, 0, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 24px;
}

.stock-section-highlight .wizard-section-title {
  margin-bottom: 8px;
}

.stock-section-highlight .wizard-section-description {
  margin-bottom: 0;
}

.state-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.state-mapping-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.state-mapping-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

.state-stock-mapping h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 8px 0;
}

.stock-good {
  color: #22c55e;
  font-weight: 600;
}

.stock-ok {
  color: #f59e0b;
  font-weight: 600;
}

.stock-low {
  color: #ef4444;
  font-weight: 600;
}

.stock-out {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: line-through;
}

/* Step 8: Review & Approve */

.approval-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.approval-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.approval-stat-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.approval-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.approval-stat-info {
  flex: 1;
}

.approval-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.approval-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Approval Toolbar */
.approval-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.approval-filters {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.approval-filters .form-input {
  min-width: 200px;
}

.approval-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   Product Preview Grid — World-Class Card Design
   ============================================================ */
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* --- Card Shell --- */
.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.pp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 20, 100, 0.10), 0 2px 6px rgba(0,0,0,0.04);
  border-color: #cbd5e1;
}
.pp-card.pp-status-approved { border-left: 4px solid #22c55e; }
.pp-card.pp-status-rejected { border-left: 4px solid #ef4444; }
.pp-card.pp-status-pending  { border-left: 4px solid var(--brand-orange, #FF7A00); }

/* --- Card Header (checkbox + status pill) --- */
.pp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 0;
}

/* Custom checkbox */
.pp-checkbox-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.pp-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pp-checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-checkbox-custom::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -2px;
}
.pp-checkbox-wrap input:checked + .pp-checkbox-custom {
  background: var(--brand-orange, #FF7A00);
  border-color: var(--brand-orange, #FF7A00);
}
.pp-checkbox-wrap input:checked + .pp-checkbox-custom::after {
  border-color: #fff;
  transform: rotate(45deg) scale(1);
}

/* Status pill */
.pp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.pp-status-pill.pp-status-pending  { background: #FFF7ED; color: #C2410C; }
.pp-status-pill.pp-status-approved { background: #F0FDF4; color: #15803D; }
.pp-status-pill.pp-status-rejected { background: #FEF2F2; color: #B91C1C; }
.pp-status-pill i { font-size: 10px; }

/* --- Image --- */
.pp-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  overflow: hidden;
}
.pp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}
.pp-card:hover .pp-card-image img { transform: scale(1.04); }

/* --- Body --- */
.pp-card-body {
  flex: 1;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta chips */
.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.pp-chip-brand { background: #EEF2FF; color: #4338CA; }
.pp-chip-sku   { background: #f1f5f9; color: #475569; font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; font-size: 10px; font-weight: 500; }
.pp-chip-cat   { background: #FFF7ED; color: #C2410C; }

/* Pricing row */
.pp-pricing {
  display: flex;
  gap: 4px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 6px;
}
.pp-price-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pp-price-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}
.pp-price-val {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}
.pp-price-highlight .pp-price-val { color: #16a34a; font-size: 15px; }
.pp-margin { color: var(--brand-orange, #FF7A00) !important; }

/* Stock */
.pp-stock {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}
.pp-stock i { color: #94a3b8; font-size: 11px; }

/* Description */
.pp-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Action Bar --- */
.pp-card-actions {
  display: flex;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.pp-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: #94a3b8;
  transition: all 0.15s ease;
  position: relative;
}
.pp-action-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #f1f5f9;
}
.pp-action-btn:hover { background: #f8fafc; }
.pp-btn-approve:hover { color: #16a34a; background: #F0FDF4; }
.pp-btn-details:hover { color: #2563EB; background: #EFF6FF; }
.pp-btn-reject:hover  { color: #DC2626; background: #FEF2F2; }

/* Active state feedback on approved/rejected cards */
.pp-card[data-status="approved"] .pp-btn-approve { color: #16a34a; }
.pp-card[data-status="rejected"] .pp-btn-reject  { color: #DC2626; }

/* Legacy compat */
.btn-success { background: #22c55e; color: #fff; border: none; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; }
.btn-lg { padding: 14px 32px; font-size: 16px; font-weight: 600; }

/* Pagination */
.product-preview-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.pagination-info {
  font-size: 14px;
  color: #64748b;
}

.pagination-info strong {
  color: var(--brand-navy);
}

/* Chatbot Notice */
.chatbot-notice {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.chatbot-notice-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #3b82f6;
  flex-shrink: 0;
}

.chatbot-notice-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 12px 0;
}

.chatbot-notice-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.chatbot-notice-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.chatbot-notice-content li {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

.chatbot-notice-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.chatbot-notice-highlight i {
  color: #22c55e;
  font-size: 18px;
}

@media (max-width: 768px) {
  .approval-summary {
    grid-template-columns: 1fr;
  }

  .approval-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .approval-filters {
    flex-direction: column;
  }

  .approval-filters .form-input {
    min-width: 100%;
  }

  .product-preview-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-notice {
    flex-direction: column;
  }
}

/* Custom Modal Styles */
.wizard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wizard-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wizard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
}

.wizard-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.wizard-modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.wizard-modal-body {
  padding: 24px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.wizard-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.wizard-modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.wizard-modal-btn-primary {
  background: var(--brand-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.wizard-modal-btn-primary:hover {
  background: #ff8c00;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
  transform: translateY(-1px);
}

.wizard-modal-btn-primary:active {
  transform: translateY(0);
}

.wizard-modal-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.wizard-modal-btn-secondary:hover {
  background: #e5e7eb;
}

/* Import Waiting Banner */
.import-waiting-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(255, 122, 0, 0.1));
  border: 2px solid rgba(255, 122, 0, 0.3);
  border-radius: 12px;
}

.import-wait-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.import-wait-content {
  flex: 1;
}

.import-wait-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 8px 0;
}

.import-wait-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px 0;
}

.import-wait-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-wait-progress .progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.import-wait-progress .progress-fill {
  height: 100%;
  background: var(--brand-orange);
  transition: width 0.3s ease;
}

.import-wait-progress .progress-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Mapper Modals */
.mapper-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mapper-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mapper-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
}

.mapper-modal-content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.35);
  width: min(1000px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
}

.mapper-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mapper-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mapper-modal-header h2 i {
  color: #6b7280;
  font-size: 16px;
}

.mapper-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.mapper-modal-close:hover {
  background: #e5e7eb;
  color: var(--brand-navy);
}

.mapper-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mapper-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Mapper Modal Content Styles */
.mapper-filter-bar-modal {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 16px;
}

.filter-group-modal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-modal label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group-modal label i {
  color: #6b7280;
  font-size: 12px;
}

.filter-select-modal {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
  background: white;
  min-width: 160px;
}

.checkbox-inline-modal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.checkbox-inline-modal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-input-modal {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
  background: white;
  min-width: 200px;
}

.filter-stats-modal {
  margin-left: auto;
}

.stat-badge-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.stat-badge-modal i {
  color: #6b7280;
  font-size: 12px;
}

.group-controls-modal {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 16px;
}

.group-controls-modal label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.group-controls-modal input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mapper-split-view {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 16px;
  height: calc(85vh - 300px);
  min-height: 400px;
}

.mapper-products-panel {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.mapper-taxonomy-panel {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.mapper-panel-header {
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.mapper-panel-header h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mapper-panel-header h4 i {
  color: #6b7280;
  font-size: 13px;
}

.mapper-panel-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.mapper-products-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.mapper-taxonomy-search {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.mapper-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
}

.mapper-taxonomy-tree {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.mapper-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6b7280;
  text-align: center;
}

.mapper-loading-state i {
  font-size: 32px;
  margin-bottom: 12px;
  color: #9ca3af;
}

.mapper-loading-state p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.bulk-info input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.bulk-buttons {
  display: flex;
  gap: 8px;
}

.bulk-buttons .btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bulk-buttons .btn.primary {
  background: #4b5563;
  color: white;
  border-color: #4b5563;
}

.bulk-buttons .btn:hover {
  background: #f3f4f6;
}

.bulk-buttons .btn.primary:hover {
  background: #374151;
}

/* Product Groups and Rows */
.product-group {
  margin-bottom: 12px;
}

.product-group-header {
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.product-group-header:hover {
  background: #e5e7eb;
}

.product-group-header.drag-over {
  background: #dbeafe;
  border-color: #3b82f6;
}

.product-group-count {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-top: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}

.product-row:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.product-row.selected {
  background: #eff6ff;
  border-color: #3b82f6;
}

.product-row.drag-over {
  background: #dbeafe;
  border-color: #3b82f6;
}

.product-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Mapper product row thumbnail — must stay tiny; images may not be downloaded yet */
.product-image-thumb {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image-thumb.no-image {
  color: #9ca3af;
  font-size: 12px;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
}

.product-supplier,
.product-brand,
.product-category {
  color: #6b7280;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 3px;
}

.product-uncategorized,
.product-unbranded {
  color: #dc2626;
  padding: 2px 6px;
  background: #fee2e2;
  border-radius: 3px;
}

.product-more {
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

/* Category and Brand Chips */
.category-group,
.brand-group {
  margin-bottom: 8px;
}

.category-group-header {
  padding: 8px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.category-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-group-toggle {
  transition: transform 0.2s;
}

.category-group-toggle.collapsed {
  transform: rotate(-90deg);
}

.category-group-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  transition: all 0.2s;
}

.category-group-children.collapsed {
  display: none;
}

.category-chip,
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
  cursor: grab;
  transition: all 0.15s;
}

.category-chip:hover,
.brand-chip:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.category-chip.dragging,
.brand-chip.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.category-chip-icon,
.brand-chip-icon {
  font-size: 14px;
}

.category-chip-text,
.brand-chip-text {
  font-weight: 500;
}

/* Mapper Empty State */
.mapper-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
}

.mapper-empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.mapper-empty-state p {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #374151;
}

.mapper-empty-state .mapper-empty-hint {
  font-size: 12px;
  color: #9ca3af;
  max-width: 280px;
  line-height: 1.5;
}

/* Pagination Buttons */
.mapper-page-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s;
}

.mapper-page-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.mapper-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Brand Chip Count Badge */
.brand-chip-count {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Group Select All Checkbox */
.group-select-all {
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .mapper-split-view {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .mapper-taxonomy-panel {
    max-height: 400px;
  }
}

/* ═══════════════════════════════════════
   Quick View Modal
   ═══════════════════════════════════════ */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: qvFadeIn 0.2s ease;
}
@keyframes qvFadeIn { from { opacity: 0; } to { opacity: 1; } }

.qv-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: qvSlideUp 0.25s ease;
}
@keyframes qvSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.qv-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}
.qv-close:hover { background: #f1f5f9; color: #334155; }

.qv-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

.qv-left {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #f1f5f9;
  background: #fafbfc;
  border-radius: 16px 0 0 16px;
}
.qv-left > img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.qv-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.qv-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
  background: #fff;
}
.qv-thumb:hover { border-color: var(--brand-orange, #FF7A00); }

.qv-right {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qv-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.qv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.qv-pricing {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.qv-price-item {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.qv-price-item + .qv-price-item { border-left: 1px solid #e2e8f0; }
.qv-price-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}
.qv-price-val {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}
.qv-price-highlight .qv-price-val { color: #16a34a; font-size: 18px; }
.qv-margin { color: var(--brand-orange, #FF7A00) !important; }

.qv-stock {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}
.qv-stock i { color: #94a3b8; margin-right: 4px; }

.qv-section {
  margin-top: 4px;
}
.qv-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin: 0 0 6px;
}
.qv-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  max-height: 160px;
  overflow-y: auto;
}
.qv-features {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}
.qv-features li::marker { color: var(--brand-orange, #FF7A00); }

.qv-seo {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}
.qv-seo-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
}
.qv-seo-label {
  font-weight: 600;
  color: #94a3b8;
  min-width: 70px;
  flex-shrink: 0;
}
.qv-keywords {
  color: #64748b;
  font-style: italic;
}

.qv-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.qv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
}
.qv-btn:hover { background: #f8fafc; }
.qv-btn-approve { border-color: #bbf7d0; color: #16a34a; }
.qv-btn-approve:hover { background: #f0fdf4; }
.qv-btn-reject { border-color: #fecaca; color: #dc2626; }
.qv-btn-reject:hover { background: #fef2f2; }
.qv-btn-page { border-color: #c7d2fe; color: #4f46e5; }
.qv-btn-page:hover { background: #eef2ff; }

@media (max-width: 768px) {
  .qv-layout { grid-template-columns: 1fr; }
  .qv-left {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 16px 16px 0 0;
    padding: 16px;
  }
  .qv-left > img { max-height: 220px; }
  .qv-right { padding: 20px; }
  .qv-modal { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   STEP TRANSITION OVERLAY — full-screen loading between steps
   ═══════════════════════════════════════════════════════════════ */
.step-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.step-overlay.active {
  opacity: 1;
  visibility: visible;
}

.step-overlay-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-overlay.active .step-overlay-card {
  transform: translateY(0) scale(1);
}

/* Orbital spinner */
.step-overlay-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
}
.step-overlay-spinner::before,
.step-overlay-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.step-overlay-spinner::before {
  border-top-color: var(--brand-orange, #ff7a00);
  border-right-color: var(--brand-orange, #ff7a00);
  animation: overlay-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.step-overlay-spinner::after {
  inset: 8px;
  border-bottom-color: #6b7280;
  border-left-color: #6b7280;
  animation: overlay-spin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}
.step-overlay-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--brand-orange, #ff7a00);
  border-radius: 50%;
  animation: overlay-pulse 1.2s ease-in-out infinite;
}

@keyframes overlay-spin {
  to { transform: rotate(360deg); }
}
@keyframes overlay-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.4; }
}

/* Title and message */
.step-overlay-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy, #0f172a);
  margin: 0 0 8px;
  line-height: 1.3;
}
.step-overlay-message {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.6;
  min-height: 44px;
}

/* Stage progress indicators */
.step-overlay-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  margin-bottom: 24px;
}
.step-overlay-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}
.step-overlay-stage::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 34px;
  width: 2px;
  height: calc(100% - 14px);
  background: #e5e7eb;
  z-index: 0;
}
.step-overlay-stage:last-child::before {
  display: none;
}
.step-overlay-stage-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s ease;
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px solid #e2e8f0;
}
.step-overlay-stage-text {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s ease;
}

/* Stage states */
.step-overlay-stage.active {
  background: rgba(255, 122, 0, 0.06);
}
.step-overlay-stage.active .step-overlay-stage-icon {
  background: linear-gradient(135deg, var(--brand-orange, #ff7a00), #ff9500);
  color: #fff;
  border-color: var(--brand-orange, #ff7a00);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
  animation: overlay-pulse 1.2s ease-in-out infinite;
}
.step-overlay-stage.active .step-overlay-stage-text {
  color: var(--brand-navy, #0f172a);
}

.step-overlay-stage.complete .step-overlay-stage-icon {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  animation: none;
}
.step-overlay-stage.complete .step-overlay-stage-text {
  color: #16a34a;
}
.step-overlay-stage.complete::before {
  background: #22c55e;
}

/* Progress bar under stages */
.step-overlay-progress {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.step-overlay-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange, #ff7a00), #ff9500);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.step-overlay-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}
.step-overlay-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   WIZARD MODAL — typed dialog (error, success, warning, info)
   ═══════════════════════════════════════════════════════════════ */
.wm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wm-overlay.active {
  opacity: 1;
}

.wm-card {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: wm-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes wm-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header — icon + title + close button */
.wm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}
.wm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wm-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  line-height: 1.3;
}
.wm-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.wm-close:hover {
  background: #f1f5f9;
  color: #475569;
}

/* Body */
.wm-body {
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  word-break: break-word;
}
.wm-body ul, .wm-body ol {
  margin: 8px 0;
  padding-left: 20px;
}
.wm-body li {
  margin-bottom: 4px;
}
.wm-body strong {
  color: #334155;
}

/* Footer — action buttons */
.wm-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 24px 20px;
}
.wm-btn {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.wm-btn:active {
  transform: scale(0.97);
}

/* Dismiss button — adapts to variant */
.wm-btn-dismiss {
  background: #f1f5f9;
  color: #334155;
}
.wm-btn-dismiss:hover {
  background: #e2e8f0;
}

/* Cancel + Confirm (for .confirm()) */
.wm-btn-cancel {
  background: #f1f5f9;
  color: #64748b;
}
.wm-btn-cancel:hover {
  background: #e2e8f0;
}
.wm-btn-confirm {
  background: var(--brand-orange, #ff7a00);
  color: #fff;
}
.wm-btn-confirm:hover {
  background: #e66e00;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

/* ── Variant: Error ── */
.wm-error .wm-icon {
  background: #fef2f2;
  color: #dc2626;
}
.wm-error .wm-title {
  color: #991b1b;
}
.wm-error .wm-btn-dismiss {
  background: #dc2626;
  color: #fff;
}
.wm-error .wm-btn-dismiss:hover {
  background: #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ── Variant: Success ── */
.wm-success .wm-icon {
  background: #f0fdf4;
  color: #16a34a;
}
.wm-success .wm-title {
  color: #166534;
}
.wm-success .wm-btn-dismiss {
  background: #16a34a;
  color: #fff;
}
.wm-success .wm-btn-dismiss:hover {
  background: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* ── Variant: Warning ── */
.wm-warning .wm-icon {
  background: #fffbeb;
  color: #d97706;
}
.wm-warning .wm-title {
  color: #92400e;
}
.wm-warning .wm-btn-dismiss {
  background: #d97706;
  color: #fff;
}
.wm-warning .wm-btn-dismiss:hover {
  background: #b45309;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* ── Variant: Info ── */
.wm-info .wm-icon {
  background: #eff6ff;
  color: #2563eb;
}
.wm-info .wm-title {
  color: #1e40af;
}
.wm-info .wm-btn-dismiss {
  background: #2563eb;
  color: #fff;
}
.wm-info .wm-btn-dismiss:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ── Variant: Confirm ── */
.wm-confirm .wm-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wm-card {
    width: 95%;
    border-radius: 14px;
  }
  .wm-header { padding: 16px 18px 0; }
  .wm-body   { padding: 12px 18px; }
  .wm-footer { padding: 0 18px 16px; }
}
