/* =====================================================
   ACCESSORIES ORDER - Step-specific styles
   4-step wizard for accessory ordering
   ===================================================== */

/* ============================================
   APP LAYOUT & HEADER
============================================ */
.app-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  position: relative;
}

/* Step 3 needs no padding on app-main */
.app-main:has(.step-container[data-step="3"].active) {
  padding: 0;
  overflow: hidden;
}

/* ============================================
   STEP PROGRESS (Bulk-style)
============================================ */
.step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 2px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.step-progress__dot:hover:not(.active) {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
}

.step-progress__dot.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.step-progress__dot.completed {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.step-progress__line {
  width: 40px;
  height: 2px;
  background: var(--glass-border);
}

.step-progress__line.completed {
  background: var(--accent-green);
}

/* Exit Button */
.btn-exit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-exit:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-exit svg {
  width: 16px;
  height: 16px;
}

/* Shake animation for disabled step clicks */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================
   STEP CONTAINERS
============================================ */
.step-container {
  display: none;
  width: 100%;
  max-width: 700px;
  flex-direction: column;
  gap: 16px;
}

.step-container.active {
  display: flex;
}

@media (min-width: 900px) {
  .step-container {
    max-width: 800px;
  }
}

/* Step 3 needs full-width for studio layout */
.step-container[data-step="3"] {
  max-width: none;
}

.step-container[data-step="3"].active {
  position: absolute;
  inset: 0;
  display: flex;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
   SECTION CARDS (BULK-style)
============================================ */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px;
}

.section-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-card__title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--required {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
}

.badge--optional {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* ============================================
   FORM ROWS & GROUPS
============================================ */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--full {
  grid-column: 1 / -1;
}

/* ============================================
   FORM SECTIONS
============================================ */
.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section__title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.form-section__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.required {
  color: var(--accent-red);
}

/* ============================================
   ADDRESS EXPAND
============================================ */
.address-expand {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  animation: slideDown 0.3s var(--ease-out);
}

.address-expand.visible {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Saved Addresses Selector */
.saved-address-selector {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  animation: slideDown 0.3s var(--ease-out);
}

.saved-address-selector.visible {
  display: block;
}

.saved-address-dropdown {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-address-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.saved-address-dropdown:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.saved-address-dropdown option {
  background: #1a1a1a;
  color: var(--text-primary);
  padding: 8px;
}

.saved-address-preview {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.saved-address-preview strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* ============================================
   RADIO CARDS
============================================ */
.radio-group {
  display: flex;
  gap: 8px;
}

.radio-group--vertical {
  flex-direction: column;
}

.radio-card {
  position: relative;
  cursor: pointer;
  flex: 1;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  transition: all 0.2s;
}

.radio-card:hover .radio-card__content {
  border-color: var(--glass-border-hover);
}

.radio-card input:checked + .radio-card__content {
  border-color: var(--text-primary);
  background: var(--bg-card-hover);
}

.radio-card__icon {
  font-size: 18px;
}

.radio-card__text {
  font-size: 13px;
  font-weight: 600;
}

.radio-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.radio-card__desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================
   CHECKBOX FIELDS
============================================ */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-field input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--glass-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-field:hover .checkbox-box {
  border-color: var(--glass-border-hover);
}

.checkbox-field input:checked + .checkbox-box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkbox-box svg {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.checkbox-field input:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 13px;
  line-height: 1.4;
}

.checkbox-label a {
  color: var(--accent-blue);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ============================================
   UPLOAD ZONE
============================================ */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-secondary);
}

.upload-zone.dragover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

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

.upload-zone__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone__icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
}

.upload-zone__text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.upload-zone__hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* File List */
.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.file-item__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-blue-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-item__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.file-item__info {
  flex: 1;
  min-width: 0;
}

.file-item__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item__size {
  font-size: 11px;
  color: var(--text-muted);
}

.file-item__remove {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.file-item__remove:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.file-item__remove svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   AUTOSAVE INDICATOR
============================================ */
.autosave-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.autosave-indicator svg {
  width: 14px;
  height: 14px;
}

.autosave-indicator.saving {
  color: var(--accent-amber);
}

.autosave-indicator.saved {
  color: var(--accent-green);
}

/* ============================================
   BUTTON VARIANTS
============================================ */
.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn--icon:hover {
  background: var(--bg-tertiary);
  border-color: var(--glass-border-hover);
}

.btn--icon svg {
  width: 18px;
  height: 18px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

.btn--edit {
  padding: 6px 12px;
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.btn--edit:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-textarea--compact {
  padding: 8px 10px;
  font-size: 12px;
  min-height: 60px;
}

/* ============================================
   SUCCESS INLINE
============================================ */
.success-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 400px;
}

.success-inline__icon {
  width: 80px;
  height: 80px;
  background: var(--accent-green-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-inline__icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-green);
}

.success-inline__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-inline__desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.success-inline__ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 32px;
}

.success-inline__actions {
  display: flex;
  gap: 12px;
}

/* ============================================
   MODAL
============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal__title {
  font-size: 18px;
  font-weight: 600;
}

.modal__close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.modal__close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal__body {
  margin-bottom: 24px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal__content--sm {
  max-width: 360px;
  text-align: center;
}

/* ============================================
   SUBMIT LOADING
============================================ */
.submit-loading {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.submit-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-loading__text {
  font-size: 16px;
  font-weight: 600;
}

.submit-loading__subtext {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   REVIEW SECTION
============================================ */
.review-section {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
}

.review-section__title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-section__title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

/* Pricing note */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--accent-amber-dim);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent-amber);
}

.pricing-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.review-section__content {
  padding: 20px;
}

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

.review-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-item__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.review-item__value {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   PRICING TABLE
============================================ */
.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row--total {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 2px solid var(--glass-border);
  border-bottom: none;
}

.pricing-row__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-row--total .pricing-row__label {
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-row__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}

.pricing-row--total .pricing-row__value {
  font-size: 18px;
  font-weight: 700;
}

/* ============================================
   ACCESSORY GRID (Step 2)
============================================ */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.accessory-card {
  position: relative;
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: center;
}

.accessory-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.accessory-card.selected {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.accessory-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.accessory-card.selected .accessory-card__check {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.accessory-card__check svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.accessory-card.selected .accessory-card__check svg {
  opacity: 1;
  transform: scale(1);
}

.accessory-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.accessory-card__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.accessory-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.accessory-card__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-green);
}

.accessory-card__moq {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   STUDIO LAYOUT (Step 3) - 3 Panel
============================================ */
.studio-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Left Sidebar */
.studio-sidebar-left {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-sidebar__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.studio-sidebar__title {
  font-size: 13px;
  font-weight: 600;
}

.studio-sidebar__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.studio-sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
}

/* Studio Sections */
.studio-section {
  margin-bottom: 20px;
}

.studio-section__title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
}

.studio-section__title .section-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

/* Section title state colors */
.studio-section__title--warning {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
  color: #ef4444;
}
.studio-section__title--warning .section-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.studio-section__title--progress {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #3b82f6;
}
.studio-section__title--progress .section-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.studio-section__title--success {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  color: #22c55e;
}
.studio-section__title--success .section-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.studio-section__title--empty {
  background: linear-gradient(180deg, rgba(113, 113, 122, 0.1) 0%, rgba(113, 113, 122, 0.05) 100%);
  color: var(--text-muted);
}
.studio-section__title--empty .section-badge {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-muted);
}

/* Sidebar Items */
.studio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.studio-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--glass-border-hover);
}

.studio-item--active {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.studio-item--completed {
  opacity: 0.8;
}

.studio-item__icon {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.studio-item__info {
  flex: 1;
  min-width: 0;
}

.studio-item__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-item__status {
  font-size: 11px;
  color: var(--text-muted);
}

/* Progress Bar */
.studio-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.studio-progress__bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.studio-progress__fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
  width: 0%;
}

/* Center Workspace */
.studio-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  overflow: hidden;
  min-width: 0;
}

.studio-workspace__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.studio-workspace__title {
  font-size: 13px;
  font-weight: 600;
}

.studio-workspace__content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.studio-workspace__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-card);
  gap: 16px;
}

.studio-workspace__footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-dot {
  color: var(--text-muted);
}

/* Canvas Area */
.studio-canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  min-width: 0;
}

.studio-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.studio-canvas__svg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  width: 100%;
  max-height: calc(100% - 60px);
  overflow: hidden;
}

.studio-canvas__svg svg {
  max-width: 520px;
  max-height: 580px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  object-fit: contain;
}

.studio-canvas__dimensions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 12px;
}

.studio-canvas__dim {
  display: flex;
  align-items: center;
  gap: 4px;
}

.studio-canvas__dim-label {
  color: var(--text-muted);
}

.studio-canvas__dim-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.studio-canvas__dim-sep {
  color: var(--text-muted);
}

/* Config Panel */
.studio-config {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--glass-border);
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-config__section {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.studio-config__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.studio-config__section--action {
  margin-top: auto;
  padding-top: 16px;
}

.studio-config__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.studio-config__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.studio-config__header .studio-config__title {
  margin-bottom: 0;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Color Picker */
.color-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-hex-input {
  width: 80px;
  height: 28px;
  padding: 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
}

.color-hex-input:focus {
  border-color: var(--accent-blue);
}

.hue-slider {
  width: 100%;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(to right,
    hsl(0, 100%, 50%),
    hsl(60, 100%, 50%),
    hsl(120, 100%, 50%),
    hsl(180, 100%, 50%),
    hsl(240, 100%, 50%),
    hsl(300, 100%, 50%),
    hsl(360, 100%, 50%)
  );
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.hue-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.sl-sliders {
  display: flex;
  gap: 16px;
}

.sl-slider-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sl-slider-label {
  font-size: 10px;
  color: var(--text-muted);
}

.sl-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.saturation-slider {
  background: linear-gradient(to right, #808080, currentColor);
}

.lightness-slider {
  background: linear-gradient(to right, #000, currentColor, #fff);
}

.sl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Black/White Color Options */
.color-bw-options {
  display: flex;
  gap: 8px;
}

.color-bw-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.color-bw-btn:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-tertiary);
}

.color-bw-btn.selected {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.color-bw-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.color-bw-swatch--white {
  border: 1px solid var(--glass-border);
}

/* Size Options */
.size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-option {
  padding: 10px 8px;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.size-option:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-tertiary);
}

.size-option.selected {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.size-option__name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.size-option__dim {
  font-size: 10px;
  color: var(--text-muted);
}

/* Custom Size */
.custom-size {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: 100%;
}

.custom-size__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-blue);
  background: var(--bg-secondary);
  border: 2px dashed var(--accent-blue);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-size__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.custom-size__btn:hover {
  background: var(--accent-blue-dim);
  border-style: solid;
}

.custom-size__btn.active {
  background: var(--accent-blue-dim);
  border-style: solid;
}

.custom-size__fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.custom-size.active .custom-size__fields {
  display: grid;
}

.custom-size__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-size__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.custom-size__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}

.custom-size__input:focus {
  border-color: var(--accent-blue);
}

.custom-size__apply {
  grid-column: 1 / -1;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--accent-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.custom-size__apply:hover {
  background: var(--accent-blue-hover);
}

/* Material Options */
.material-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.material-option:hover {
  border-color: var(--glass-border-hover);
}

.material-option.selected {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.material-option__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.material-option.selected .material-option__radio {
  border-color: var(--accent-blue);
}

.material-option.selected .material-option__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.material-option__content {
  flex: 1;
  min-width: 0;
}

.material-option__name {
  font-size: 13px;
  font-weight: 500;
}

.material-option__desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Size Option Description */
.size-option__desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

/* Quantity Stepper */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: var(--bg-tertiary);
}

.stepper-input {
  flex: 1;
  height: 44px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.moq-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Right Sidebar */
.studio-sidebar-right {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Item Overview */
.item-overview {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.item-overview__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-overview__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-overview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.item-overview__label {
  color: var(--text-muted);
}

.item-overview__value {
  font-weight: 500;
}

.item-overview__value--color {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  background: #1a1a1a;
}

.item-overview__divider {
  height: 1px;
  background: var(--glass-border);
  margin: 16px 0;
}

.item-overview__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-overview__price-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.item-overview__price-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
}

/* Order Total */
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-total__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
}

/* ============================================
   REVIEW PAGE (Step 4)
============================================ */
.accessories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accessory-review-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.accessory-review-item__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.accessory-review-item__info {
  flex: 1;
  min-width: 0;
}

.accessory-review-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.accessory-review-item__details {
  font-size: 12px;
  color: var(--text-muted);
}

.accessory-review-item__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ============================================
   FOOTER STATS
============================================ */
.footer-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 1200px) {
  .studio-sidebar-left {
    width: 200px;
  }

  .studio-sidebar-right {
    width: 220px;
  }

  .studio-config {
    width: 280px;
  }
}

@media (max-width: 1024px) {
  .studio-layout {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .studio-sidebar-left,
  .studio-sidebar-right {
    width: 100%;
    height: auto;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .studio-sidebar__content {
    max-height: 200px;
  }

  .studio-workspace__content {
    flex-direction: column;
  }

  .studio-canvas-area {
    height: 50vh;
  }

  .studio-config {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }
}

@media (max-width: 768px) {
  .accessory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .size-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-stats {
    display: none;
  }
}

@media (max-width: 480px) {
  .accessory-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EXIT BUTTON
============================================ */
.btn-exit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.btn-exit:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-exit svg {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .btn-exit {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

[data-theme="light"] .btn-exit:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
}

/* ============================================
   EXIT MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: #ef4444;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn--cancel {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.modal-btn--cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-btn--confirm {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
}

.modal-btn--confirm:hover {
    background: #dc2626;
}

/* ============================================
   EMBEDDED CANVAS OVERVIEW (Step 3 Restructure)
   - Removed right sidebar
   - Overview now embedded in canvas area
============================================ */

/* Hide old right sidebar */
.studio-sidebar-right {
  display: none;
}

/* Compact canvas for 2-column layout */
.studio-canvas--compact {
  position: relative;
}

.studio-canvas--compact .studio-canvas__svg {
  padding: 24px;
  max-height: calc(100% - 100px);
}

.studio-canvas--compact .studio-canvas__svg svg {
  max-width: 280px;
  max-height: 320px;
}

/* Embedded overview in canvas */
.studio-canvas__overview {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.canvas-overview {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.canvas-overview__name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-overview__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.canvas-overview__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.canvas-overview__item--price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}

.canvas-overview__label {
  color: var(--text-muted);
}

.canvas-overview__value {
  font-weight: 500;
  color: var(--text-primary);
}

.canvas-overview__value--color {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-overview__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--glass-border);
  background: #1a1a1a;
}

.canvas-overview__value--price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
}

/* Footer total styling */
.footer-total-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-total-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 8px;
}

/* Adjust canvas area flex */
.studio-canvas-area {
  flex: 1.2;
  min-width: 320px;
}

/* Adjust config panel width for 2-column layout */
.studio-config {
  width: 340px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Responsive: Stack overview below canvas on mobile */
@media (max-width: 1024px) {
  .studio-canvas__overview {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 12px;
  }

  .canvas-overview {
    min-width: auto;
  }

  .canvas-overview__details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .canvas-overview__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .canvas-overview__item--price {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .studio-config {
    width: 100%;
    max-height: none;
  }
}

/* ============================================
   SUBMISSION MODAL (matches bulk order)
============================================ */
.submit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.submit-modal.active {
  opacity: 1;
  visibility: visible;
}

.submit-modal__box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 48px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s var(--ease-out);
}

.submit-modal.active .submit-modal__box {
  transform: scale(1) translateY(0);
}

.submit-modal__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.submit-modal__icon--loading {
  background: var(--accent-blue-dim);
}

.submit-modal__icon--loading::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 3px solid transparent;
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.submit-modal__icon--loading svg {
  width: 36px;
  height: 36px;
  color: var(--accent-blue);
}

.submit-modal__icon--success {
  background: var(--accent-green-dim);
}

.submit-modal__icon--success svg {
  width: 40px;
  height: 40px;
  color: var(--accent-green);
}

.submit-modal__icon--error {
  background: rgba(239, 68, 68, 0.15);
}

.submit-modal__icon--error svg {
  width: 40px;
  height: 40px;
  color: #ef4444;
}

.submit-modal__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.submit-modal__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Progress Steps */
.submit-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.submit-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
}

.submit-step.active {
  background: var(--accent-blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.submit-step.completed {
  background: var(--accent-green-dim);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.submit-step.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.submit-step__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  transition: all 0.3s;
}

.submit-step__icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.submit-step.active .submit-step__icon {
  background: var(--accent-blue);
}

.submit-step.active .submit-step__icon svg {
  color: white;
  animation: pulse 1s ease-in-out infinite;
}

.submit-step.completed .submit-step__icon {
  background: var(--accent-green);
}

.submit-step.completed .submit-step__icon svg {
  color: white;
}

.submit-step.error .submit-step__icon {
  background: #ef4444;
}

.submit-step.error .submit-step__icon svg {
  color: white;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.submit-step__text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.submit-step.active .submit-step__text,
.submit-step.completed .submit-step__text {
  color: var(--text-primary);
}

.submit-step.error .submit-step__text {
  color: #ef4444;
}

/* Order ID Display */
.order-id-display {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.order-id-display__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.order-id-display__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-green);
}

/* Modal Actions */
.submit-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-modal__actions .btn {
  width: 100%;
  justify-content: center;
}

.submit-modal__actions .btn--primary {
  padding: 14px 24px;
}

.submit-modal__actions .btn--ghost {
  padding: 12px 24px;
}

/* Responsive for submit modal */
@media (max-width: 540px) {
  .submit-modal__box {
    padding: 32px 24px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }

  .submit-modal__icon {
    width: 64px;
    height: 64px;
  }

  .submit-modal__icon svg {
    width: 28px;
    height: 28px;
  }

  .submit-modal__title {
    font-size: 18px;
  }

  .order-id-display__value {
    font-size: 22px;
  }
}
