/* Component styles — editorial light theme.
   Discipline: dark text for readability, gold reserved for brand moments
   and selected states only. */

/* ─────────────────────────────────────────────────────────────────
   FORM CARD — the profile lives inside a card with editorial
   sub-blocks separated by hairline gold dividers. Block titles are
   big serif headings so they read as headings, not as field labels.
   ─────────────────────────────────────────────────────────────────  */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 44px;
  box-shadow: var(--shadow-md);
  animation: cardReveal 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-block {
  padding: 38px 0 36px;
  border-top: 1px solid var(--border);
  position: relative;
  animation: blockReveal 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.form-block:first-child { border-top: none; }
.form-block:nth-child(1) { animation-delay: 0.45s; }
.form-block:nth-child(2) { animation-delay: 0.6s; }
.form-block:nth-child(3) { animation-delay: 0.75s; }
@keyframes blockReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Big serif title — dramatically different from field labels below it */
.form-block-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.015em;
  color: var(--text-strong); line-height: 1.15;
  margin: 0 0 24px;
}
/* Tiny accent rule below the title for editorial polish */
.form-block-title::after {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--gold);
  margin-top: 10px;
}

/* Title + link on the same row — link sits right next to the title,
   not pushed to the far corner, so it reads as a related action. */
.form-block-row {
  display: flex; align-items: baseline; gap: 20px;
  flex-wrap: wrap; margin-bottom: 0;
}
.form-block-row .form-block-title { flex-shrink: 0; }
.form-block-row .size-guide-link { font-size: 12.5px; }

/* 2-column grid for related fields (e.g. Top / Bottom size) */
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid .form-group { margin-bottom: 0; }

/* ── Form fields ───────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-block .form-group:last-child { margin-bottom: 0; }

/* Form labels are clean dark text — NOT gold uppercase noise.
   Gold is reserved for selected states and brand accents only. */
.form-label {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.form-label__optional {
  color: var(--text-dimmer); font-weight: 500; font-size: 10.5px;
  letter-spacing: 1px; text-transform: uppercase; margin-left: 6px;
}
.form-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.form-label-row .form-label { margin-bottom: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1.5fr 1fr 80px; gap: 12px; }

.form-input, .form-select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.4;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-xs);
}
.form-input:hover, .form-select:hover { border-color: var(--text-dimmer); }
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--gold); box-shadow: var(--focus-ring);
}
.form-input::placeholder { color: var(--text-faint); }
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2345403a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* ── Pill selectors (gender, market) ────────────────────────────── */
.gender-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gender-pill {
  padding: 12px 10px; border-radius: 50px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  text-align: center; cursor: pointer; transition: all 0.18s;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-xs);
}
.gender-pill:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.gender-pill.selected {
  background: var(--text); border-color: var(--text);
  color: var(--bg-card); font-weight: 600;
  box-shadow: var(--shadow-md);
}

.form-helper { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

.height-toggle { display: inline-flex; gap: 4px; margin-left: 12px; vertical-align: middle; }
.height-toggle button {
  padding: 4px 11px; border-radius: 50px; background: transparent;
  border: 1px solid var(--border-strong); color: var(--text-dim);
  font-size: 10.5px; cursor: pointer; font-family: var(--font-body);
  font-weight: 600; letter-spacing: 0.3px;
}
.height-toggle button.active {
  color: var(--bg-card); border-color: var(--text); background: var(--text);
}

/* ── Size guide ─────────────────────────────────────────────────── */
.size-guide-link {
  background: none; border: none; padding: 0;
  color: var(--gold); font-family: var(--font-body); font-size: 12px;
  font-weight: 600; letter-spacing: 0.2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.size-guide-link:hover { color: var(--gold-dark); }

.sg-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28,25,22,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: spFadeIn 0.2s ease;
}
.sg-overlay.hidden { display: none; }
.sg-modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 500px;
  max-height: 88vh; overflow-y: auto;
  font-family: var(--font-body); box-shadow: var(--shadow-xl);
}
.sg-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.sg-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--text-strong); letter-spacing: -0.01em;
}
.sg-close {
  background: none; border: none; color: var(--text-faint);
  font-size: 18px; cursor: pointer; padding: 4px; line-height: 1;
  transition: color 0.15s; border-radius: 4px;
}
.sg-close:hover { color: var(--text); }
.sg-tabs { display: flex; gap: 4px; padding: 18px 24px 0; border-bottom: 1px solid var(--border); }
.sg-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-dimmer); font-family: var(--font-body); font-size: 13px;
  font-weight: 600; letter-spacing: 0; padding: 10px 14px 12px;
  cursor: pointer; transition: all 0.18s; margin-bottom: -1px;
}
.sg-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.sg-tab:hover:not(.active) { color: var(--text-dim); }
.sg-panel { padding: 22px 24px 26px; }
.sg-panel.hidden { display: none; }
.sg-hint { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sg-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
  padding: 0 12px 12px 0; border-bottom: 1px solid var(--border);
}
.sg-table td {
  padding: 11px 12px 11px 0; color: var(--text); font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.sg-table tr:last-child td { border-bottom: none; }
.sg-table td:first-child { font-weight: 700; color: var(--text); }

/* ── Reset zone ─────────────────────────────────────────────────── */
.reset-zone { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); text-align: center; }
.reset-btn {
  background: transparent; border: 1px solid rgba(168,51,33,0.35); color: var(--error);
  padding: 9px 20px; border-radius: 50px; font-family: var(--font-body); font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer;
  transition: all 0.2s;
}
.reset-btn:hover { background: rgba(168,51,33,0.06); border-color: var(--error); }
.reset-note { font-size: 12px; color: var(--text-faint); margin-top: 10px; line-height: 1.5; }

/* ── Dropzone ──────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border-gold); border-radius: var(--radius-lg);
  padding: 60px 24px; text-align: center; cursor: pointer;
  background: var(--bg-card); transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}
.dropzone:hover, .dropzone.active {
  border-color: var(--gold); background: var(--gold-bg); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dropzone__icon { font-size: 48px; margin-bottom: 18px; animation: float 3s ease-in-out infinite; }
.dropzone__label { font-size: 17px; color: var(--text-strong); font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.dropzone__hint { font-size: 13.5px; color: var(--text-dim); font-weight: 500; }

/* ── Upload note — single composed hint line below the dropzone ── */
.upload-note {
  margin-top: 14px; text-align: center;
  font-size: 13.5px; color: var(--text-dim);
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: 0.1px;
}

/* ── Previews ──────────────────────────────────────────────────── */
.previews { display: grid; gap: 12px; margin-top: 24px; }
.previews[data-count="1"] { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; }
.previews[data-count="2"] { grid-template-columns: 1fr 1fr; }
.previews[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
.previews[data-count="4"] { grid-template-columns: 1fr 1fr 1fr 1fr; }
.preview-thumb {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 3/4; box-shadow: var(--shadow-sm);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb__remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(28,25,22,0.75); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.preview-thumb__remove:hover { background: var(--error); }

/* ── Region tabs ───────────────────────────────────────────────── */
.region-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.region-tab {
  padding: 11px 26px; border-radius: 50px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.region-tab:hover { border-color: var(--text); color: var(--text); }
.region-tab.active {
  background: var(--text); border-color: var(--text); color: var(--bg-card);
  font-weight: 700; box-shadow: var(--shadow-sm);
}

/* ── Occasion cards ────────────────────────────────────────────── */
.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.occasion-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 16px;
  text-align: center; cursor: pointer; transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.occasion-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-strong);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.occasion-card.selected {
  border-color: var(--gold); background: var(--gold-bg);
  box-shadow: 0 0 0 3px rgba(138,94,31,0.12), var(--shadow-md);
}
.occasion-card__icon { font-size: 30px; margin-bottom: 10px; line-height: 1; }
.occasion-card__label { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; color: var(--text-strong); }
.occasion-card.selected .occasion-card__label { color: var(--gold); }
.occasion-card__desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  padding: 14px 36px; border-radius: 50px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s ease; border: none; outline: none;
}
/* Primary CTA — solid dark with a gold shimmer sweep on hover */
.btn-primary {
  background: var(--text); color: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(184,138,63,0.35) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  background: var(--text-strong); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.btn-primary:disabled::before { display: none; }

.btn-secondary {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--text); }

/* ── Loading ───────────────────────────────────────────────────── */
/* ── Loading screen — editorial stage tracker ────────────────────── */
.ls {
  max-width: 540px; margin: 0 auto; padding: 16px 0 56px;
  display: flex; flex-direction: column; align-items: center;
}

/* SVG hanger drawing itself in */
.ls-hanger {
  margin-bottom: 36px;
  color: var(--gold);
  animation: fadeUp 0.6s ease-out both;
}
.ls-hanger svg { width: 110px; height: auto; }
.ls-hanger__hook,
.ls-hanger__bar,
.ls-hanger__garment,
.ls-hanger__hem {
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ls-hanger__hook    { stroke-dasharray: 60;  stroke-dashoffset: 60;  animation: lsDraw 0.6s 0.2s ease-out forwards; }
.ls-hanger__bar     { stroke-dasharray: 320; stroke-dashoffset: 320; animation: lsDraw 1.0s 0.7s ease-out forwards; }
.ls-hanger__garment { stroke-dasharray: 280; stroke-dashoffset: 280; animation: lsDraw 0.9s 1.6s ease-out forwards; }
.ls-hanger__hem     { stroke-dasharray: 160; stroke-dashoffset: 160; animation: lsDraw 0.6s 2.4s ease-out forwards; }
@keyframes lsDraw { to { stroke-dashoffset: 0; } }

/* Headline */
.ls-hero {
  text-align: center; margin-bottom: 44px;
  animation: fadeUp 0.7s 0.3s ease-out both;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ls-hero.fading { opacity: 0; transform: translateY(8px); }
.ls-hero__title {
  font-family: var(--font-display); font-weight: 400; line-height: 1.1;
  font-size: clamp(30px, 6vw, 48px); letter-spacing: -0.02em;
  color: var(--text-strong); margin: 0 0 10px;
  /* Reserve ~2 lines so the stage tracker below doesn't jump as lines rotate. */
  min-height: 2.2em;
  display: flex; align-items: center; justify-content: center;
}
.ls-hero__title em { font-style: italic; color: var(--gold); }
.ls-hero__occasion {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-faint);
}

/* Stage tracker */
.ls-stages {
  width: 100%; margin-bottom: 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s 0.5s ease-out both;
}
.ls-stage {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; transition: background 0.4s ease, opacity 0.4s ease;
  opacity: 0.38; position: relative;
}
.ls-stage + .ls-stage { border-top: 1px solid var(--border); }
.ls-stage.active {
  opacity: 1; background: var(--gold-bg);
}
.ls-stage.active + .ls-stage { border-top-color: var(--border-gold); }
.ls-stage.done { opacity: 0.7; }

/* Pulsing gold left bar on the active stage */
.ls-stage.active::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; background: var(--gold); border-radius: 0 2px 2px 0;
  animation: lsBarPulse 1.4s ease-in-out infinite;
}
@keyframes lsBarPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.35; }
}

.ls-stage__icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.ls-stage__body { flex: 1; min-width: 0; }
.ls-stage__name {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 2px;
}
.ls-stage__desc { display: block; font-size: 12px; color: var(--text-dimmer); line-height: 1.4; }
.ls-stage__check {
  font-size: 12px; color: var(--gold); font-weight: 700;
  opacity: 0; transition: opacity 0.4s ease; flex-shrink: 0; margin-top: 2px;
}
.ls-stage.done .ls-stage__check { opacity: 1; }

/* Gold progress bar */
.ls-bar {
  width: 100%; height: 2px; background: var(--border); border-radius: 2px;
  overflow: hidden; margin-bottom: 44px;
  animation: fadeUp 0.7s 0.6s ease-out both;
}
.ls-bar__fill {
  height: 100%; background: var(--gold); border-radius: 2px;
  width: 0%; transition: width 0.6s ease;
}
.ls-bar__fill.running {
  animation: lsBarFill 22s cubic-bezier(0.1, 0, 0.15, 1) forwards;
}
@keyframes lsBarFill {
  0%  { width: 0%;  }
  20% { width: 28%; }
  45% { width: 52%; }
  70% { width: 72%; }
  90% { width: 86%; }
 100% { width: 91%; }
}

/* ── Results strip (photo thumbs + occasion badge) ──────────────── */
.results-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.results-strip__thumb {
  width: 52px; height: 52px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-gold); box-shadow: var(--shadow-sm);
}
.results-strip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.results-strip__badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px; border-radius: 26px;
  background: var(--text); border: 1px solid var(--text);
  box-shadow: var(--shadow-md);
}
.results-strip__badge-icon { font-size: 22px; line-height: 1; }
.results-strip__badge-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--bg-card); white-space: nowrap;
}

/* Editorial pull-quote for the analysis summary —
   sans-serif and modest size for readability; gold rules keep the editorial frame. */
.analysis-quote {
  text-align: center; font-family: var(--font-body);
  font-size: 14.5px; font-style: normal; font-weight: 400;
  color: var(--text); line-height: 1.6;
  max-width: 580px; margin: 0 auto 44px;
  padding: 18px 28px; position: relative;
  letter-spacing: 0;
}
.analysis-quote::before, .analysis-quote::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 32px; height: 1px; background: var(--gold);
}
.analysis-quote::before { top: 0; }
.analysis-quote::after  { bottom: 0; }

/* ── Outfit cards ──────────────────────────────────────────────── */
.outfit-viz {
  width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
  border: 1px solid var(--border); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; position: relative;
  box-shadow: var(--shadow-sm);
}
.outfit-viz img { max-width: 100%; max-height: 720px; width: auto; height: auto; display: block; }
.outfit-viz-skeleton {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 12px; height: 100%;
  letter-spacing: 1px; text-transform: uppercase;
}
.outfit-viz-disclaimer {
  font-size: 11.5px; color: var(--text-faint); text-align: center; font-style: italic;
  margin-bottom: 6px; letter-spacing: 0.2px;
}
.outfit-regen-row { display: flex; justify-content: center; margin-bottom: 22px; }
.outfit-regen-btn {
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text);
  padding: 8px 18px; border-radius: 50px; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
  cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-xs);
}
.outfit-regen-btn:hover:not(:disabled) {
  background: var(--text); color: var(--bg-card); border-color: var(--text);
}
.outfit-regen-btn:disabled { opacity: 0.5; cursor: wait; }
.outfit-regen-btn.capped { opacity: 0.5; cursor: default; }
.outfit-regen-btn .spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.outfit-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 26px; transition: all 0.3s ease; box-shadow: var(--shadow-md);
}
.outfit-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.outfit-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; gap: 18px; }
.outfit-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  margin-bottom: 6px; color: var(--text-strong); letter-spacing: -0.015em; line-height: 1.2;
}
.outfit-vibe {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.outfit-number {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--bg-card);
}

.piece-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.piece-row:last-child { border-bottom: none; padding-bottom: 4px; }
.piece-icon {
  width: 68px; height: 68px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden; border: 1px solid var(--border);
}
.piece-icon img { width: 100%; height: 100%; object-fit: cover; }
.piece-body { flex: 1; min-width: 0; }
.piece-name { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; color: var(--text-strong); letter-spacing: -0.005em; }
.piece-meta { font-size: 13.5px; color: var(--text-dimmer); margin-bottom: 6px; }
.piece-why { font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.6; }

.shop-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.shop-link   { font-size: 12px; }

.brand-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gold); text-decoration: none;
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
  background: var(--gold-bg); border: 1px solid var(--border-gold);
  letter-spacing: 0.2px; transition: all 0.18s;
}
.brand-link:hover { background: var(--gold-bg-strong); border-color: var(--gold); color: var(--gold-dark); }

.styling-tip {
  margin-top: 22px; padding: 16px 20px; background: var(--bg-soft); border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.styling-tip__label {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 6px;
}
.styling-tip__text { font-size: 14px; color: var(--text); line-height: 1.6; }

/* ── Feedback ──────────────────────────────────────────────────── */
.outfit-feedback-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 22px; padding: 14px 0 4px; border-top: 1px solid var(--border);
}
.outfit-feedback-prompt {
  font-size: 13px; letter-spacing: 0.2px; color: var(--text-dim);
  font-weight: 500; white-space: nowrap;
}
.outfit-feedback-btns { display: flex; gap: 8px; }
.feedback-thumb {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 50px;
  padding: 5px 13px; font-size: 16px; cursor: pointer; transition: all 0.18s; line-height: 1.4;
}
.feedback-thumb:hover:not(:disabled) {
  border-color: var(--gold); background: var(--gold-bg); transform: translateY(-1px);
}
.feedback-thumb:disabled { opacity: 0.45; cursor: default; }
.feedback-thumb.active { border-color: var(--gold); background: var(--gold-bg-strong); }

.outfit-feedback-comment { margin-top: 12px; padding: 14px 0 4px; }
.feedback-dislike-label { font-size: 12px; letter-spacing: 0.2px; color: var(--text); font-weight: 600; margin-bottom: 12px; }
.feedback-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.feedback-chip {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 50px;
  color: var(--text-dim); font-family: var(--font-body); font-size: 12px;
  padding: 6px 14px; cursor: pointer; transition: all 0.18s; font-weight: 500;
}
.feedback-chip:hover { border-color: var(--text); color: var(--text); }
.feedback-chip.selected {
  background: var(--text); border-color: var(--text); color: var(--bg-card); font-weight: 600;
}
.feedback-comment-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 13.5px;
  padding: 11px 14px; resize: none; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.feedback-comment-input:focus { border-color: var(--gold); box-shadow: var(--focus-ring); }
.feedback-comment-input::placeholder { color: var(--text-faint); }
.feedback-comment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.feedback-skip-btn, .feedback-send-btn {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 50px;
  color: var(--text-dim); font-family: var(--font-body); font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.3px; padding: 6px 16px; cursor: pointer;
  transition: all 0.18s;
}
.feedback-skip-btn:hover { border-color: var(--text-dim); color: var(--text); }
.feedback-send-btn { background: var(--text); border-color: var(--text); color: var(--bg-card); }
.feedback-send-btn:hover { background: var(--text-strong); }

.outfit-feedback-thanks {
  text-align: center; font-size: 12px; letter-spacing: 0.3px;
  color: var(--gold); font-weight: 600; padding: 14px 0 4px;
}

/* ── Share button + modal ─────────────────────────────────────── */
.outfit-share-row { display: flex; justify-content: center; margin-top: 16px; }
.outfit-share-btn {
  background: var(--bg-card); border: 1px solid var(--text); color: var(--text);
  padding: 9px 22px; border-radius: 50px; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.outfit-share-btn:hover:not(:disabled) {
  background: var(--text); color: var(--bg-card);
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.outfit-share-btn:disabled { opacity: 0.5; cursor: wait; }
.sp-overlay { animation: spFadeIn 0.18s ease; }
@keyframes spFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Error bar ─────────────────────────────────────────────────── */
.error-bar {
  background: var(--error-bg); border: 1px solid rgba(168,51,33,0.30);
  border-left: 3px solid var(--error); border-radius: var(--radius-sm);
  padding: 14px 20px; text-align: center; font-size: 14px; color: var(--error);
  margin-bottom: 24px; font-weight: 500;
}

/* ── Budget filter chips (step 1) ──────────────────────────────── */
.budget-group { margin-top: 28px; }
.budget-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.budget-chip {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 50px;
  color: var(--text-dim); cursor: pointer; font-family: var(--font-body);
  font-size: 13px; font-weight: 500; padding: 7px 16px; transition: all 0.18s;
  box-shadow: var(--shadow-xs);
}
.budget-chip:hover { border-color: var(--text); color: var(--text); }
.budget-chip.selected {
  background: var(--text); border-color: var(--text); color: var(--bg-card); font-weight: 600;
}
.budget-chip--custom { font-style: italic; letter-spacing: 0.1px; }

/* ── Custom budget range inputs ──────────────────────────────────── */
.budget-custom {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.budget-custom__row {
  display: flex; align-items: center; gap: 10px;
}
.budget-custom__field {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); overflow: hidden; flex: 1;
  transition: border-color 0.18s;
}
.budget-custom__field:focus-within { border-color: var(--gold); box-shadow: var(--focus-ring); }
.budget-custom__symbol {
  padding: 0 10px; font-size: 14px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-soft);
  border-right: 1px solid var(--border); line-height: 42px;
  user-select: none;
}
.budget-custom__input {
  flex: 1; border: none; outline: none; padding: 11px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: transparent;
}
.budget-custom__input::placeholder { color: var(--text-faint); }
.budget-custom__sep {
  font-size: 18px; color: var(--text-dimmer); font-weight: 300;
  flex-shrink: 0;
}
.budget-custom__hint {
  margin-top: 8px; font-size: 12.5px; min-height: 18px;
  color: var(--text-dimmer);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .gender-options { grid-template-columns: repeat(2, 1fr); }

  /* Profile card — tighter padding on mobile */
  .form-card { padding: 2px 22px; }
  .form-block { padding: 28px 0 24px; }
  .form-block-title { font-size: 22px; margin-bottom: 18px; }
  .form-block-row { flex-direction: row; align-items: center; }
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Header — adjust hero on mobile */
  .header { margin-bottom: 36px; }
  .header__profile-btn {
    position: static; display: inline-flex; margin: 16px auto 0;
    padding: 10px 20px; font-size: 12px;
  }
  .header__sub { font-size: 15px; }

.btn-row      { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; }

  .outfit-card { padding: 22px 18px; }
  .outfit-name { font-size: 22px; }
  .outfit-number { width: 36px; height: 36px; font-size: 14px; }
  .piece-icon { width: 56px; height: 56px; font-size: 19px; }

  .outfit-feedback-row    { flex-wrap: wrap; gap: 10px; }
  .outfit-feedback-prompt { white-space: normal; text-align: center; width: 100%; }

  .region-tab   { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .feedback-thumb { min-height: 40px; padding: 6px 14px; }
  .feedback-chip  { min-height: 38px; display: inline-flex; align-items: center; }
  .budget-chip    { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }

  .previews[data-count="3"],
  .previews[data-count="4"] { grid-template-columns: 1fr 1fr; }
  .occasions { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ls-stages { border-radius: var(--radius); }
  .ls-hero__title { font-size: 28px; }

  .analysis-quote { font-size: 13.5px; padding: 14px 18px; }
  .results-strip__badge { height: 46px; padding: 0 16px; }
  .results-strip__badge-icon { font-size: 18px; }
  .results-strip__badge-label { font-size: 12px; }
}
