.order-page { min-height: 100vh; padding: 44px 0 80px; }
.order-header { text-align: center; margin-bottom: 36px; }
.order-header h1 { font-size: 36px; margin-bottom: 6px; }
.order-header p { font-size: 15px; color: var(--ink-muted); }

/* Progress bar */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 44px; padding: 0 12px; flex-wrap: wrap;
}
.prog-step { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.prog-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
  transition: var(--transition); z-index: 1;
}
.prog-step.active .prog-circle { border-color: var(--gold); background: var(--gold); color: #fff; }
.prog-step.done .prog-circle { border-color: var(--gold-light); background: var(--gold-pale); color: var(--gold); }
.prog-label { font-size: 11px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }
.prog-step.active .prog-label { color: var(--gold); }
.prog-connector { width: 56px; height: 1.5px; background: var(--border); margin-bottom: 22px; transition: background 0.3s; flex-shrink: 0; }
.prog-connector.done { background: var(--gold-light); }

/* Layout */
.order-body { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.order-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.order-panel-title { font-size: 28px; margin-bottom: 6px; }
.order-panel-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 30px; font-weight: 400; }

/* Summary sidebar */
.order-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: static;
}
.order-summary h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 20px; font-family: var(--font-body); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .lbl { color: var(--ink-muted); }
.summary-row .val { font-weight: 600; color: var(--ink); }
.summary-row.total .lbl { font-weight: 700; color: var(--ink); font-size: 15px; }
.summary-row.total .val { font-family: var(--font-display); font-size: 26px; color: var(--gold); }

/* Type selection */
.type-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.type-option {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 16px; cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 7px; background: var(--surface);
  align-items: center; text-align: center;
}
.type-option:hover { border-color: var(--gold-light); background: var(--gold-pale); }
.type-option.selected { border-color: var(--gold); background: var(--gold-pale); }
.type-option-icon { font-size: 28px; }
.type-option-name { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.type-option-desc { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

/* Design */
.design-label { font-size: 11px; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-family: var(--font-body); }
.design-section { margin-bottom: 28px; }
.paper-swatches, .env-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 62px; height: 82px; border-radius: var(--radius-sm);
  border: 2.5px solid transparent; cursor: pointer; transition: var(--transition);
  position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.swatch:hover { transform: scale(1.06); }
.swatch.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-pale); }
.swatch span { font-size: 9px; font-weight: 600; color: var(--ink-muted); }
.env-swatch {
  width: 88px; height: 54px; border-radius: var(--radius-sm);
  border: 2.5px solid transparent; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--ink-muted);
}
.env-swatch:hover { transform: scale(1.04); }
.env-swatch.selected { border-color: var(--gold); }

/* Editor toolbar */
.editor-toolbar {
  display: flex; gap: 4px; padding: 10px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-wrap: wrap; align-items: center;
}
.editor-toolbar button {
  padding: 5px 11px; border-radius: 5px; border: none;
  background: transparent; color: var(--ink-muted);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition);
  font-family: var(--font-body);
}
.editor-toolbar button:hover { background: var(--surface); color: var(--ink); }
.editor-sep { width: 1px; background: var(--border); margin: 4px 2px; align-self: stretch; }

.font-dropdown {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  min-width: 130px;
}
.font-dropdown:focus { border-color: var(--gold); }

.letter-editor {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 36px 40px;
  font-family: 'Kurale', serif;
  font-size: 24px;
  line-height: 2;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.letter-editor:focus { border-color: var(--gold); }
.letter-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-faint);
  pointer-events: none;
  white-space: pre-wrap;
}
.char-count { font-size: 12px; color: var(--ink-faint); margin-top: 7px; text-align: right; }

/* Photo upload */
.photo-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 36px 20px; text-align: center; cursor: pointer; transition: var(--transition);
}
.photo-upload-zone:hover { border-color: var(--gold-light); background: var(--gold-pale); }
.photo-upload-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.photo-upload-sub { font-size: 12px; color: var(--ink-muted); }
.photo-thumbnails { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.photo-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-muted); position: relative;
}
.photo-thumb-remove {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-soft); color: #fff; border: none;
  font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Payment */
.payment-methods { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.payment-method {
  flex: 1; min-width: 110px; border: 2px solid var(--border);
  border-radius: var(--radius-md); padding: 13px 10px;
  text-align: center; cursor: pointer; transition: var(--transition);
  font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface);
}
.payment-method.selected { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }

.order-actions { display: flex; gap: 12px; margin-top: 32px; justify-content: space-between; }

@media (max-width: 900px) { .order-body { grid-template-columns: 1fr; } .order-summary { position: static; } }
@media (max-width: 560px) { .type-options { grid-template-columns: 1fr; } .order-panel { padding: 22px; } .prog-label { display: none; } .prog-connector { width: 32px; } .letter-editor { min-height: 360px; padding: 20px; } }