/* ─────────────────────────────────────────────
   Design tokens
───────────────────────────────────────────── */
:root {
  --bg:           #F7F6F2;
  --card:         #FFFFFF;
  --tinted:       #F3EFE7;
  --line:         #E7E1D6;
  --line-inner:   #F0EBE3;
  --text:         #1F2937;
  --muted:        #6B7280;
  --accent:       #2563EB;
  --accent-2:     #1D4ED8;
  --accent-sec:   #14B8A6;
  --accent-light: #EEF4FF;
  --warm:         #C67C4E;
  --warm-light:   #FBF3ED;
  --error:        #DC2626;
  --shadow-card:  0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.05);
  --shadow-lift:  0 2px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.07);
  --radius:       18px;
  --radius-sm:    12px;
  --radius-xs:    8px;
}

/* ─────────────────────────────────────────────
   Reset
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

/* ─────────────────────────────────────────────
   App shell
───────────────────────────────────────────── */
.app-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* ─────────────────────────────────────────────
   Header
───────────────────────────────────────────── */
.app-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 6px;
}

.header-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 420px;
}

/* ─────────────────────────────────────────────
   App body — flex column on mobile, 2-col on desktop
   #design-form is display:contents so zone-* divs
   participate directly in this flex/grid layout.
───────────────────────────────────────────── */
.app-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#design-form {
  display: contents;
}

@media (min-width: 900px) {
  .app-body {
    display: grid;
    grid-template-columns: 390px 1fr;
    grid-template-areas:
      "wizard original"
      "wizard result";
    column-gap: 20px;
    row-gap: 10px;
    align-items: start;
  }

  .zone-wizard   { grid-area: wizard; }
  .zone-original { grid-area: original; }
  .zone-result   { grid-area: result; }

  body { padding-bottom: 0; }
  .sticky-bar { display: none; }

}

/* ─────────────────────────────────────────────
   Wizard container
───────────────────────────────────────────── */
.zone-wizard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─────────────────────────────────────────────
   Progress indicator
───────────────────────────────────────────── */
.wiz-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 16px 10px;
}

.wp-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wp-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}

.wp-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.25s;
  white-space: nowrap;
}

.wp-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  transition: background 0.25s;
}

.wp-pip.wp-active .wp-num {
  background: var(--warm);
  color: #fff;
}

.wp-pip.wp-active .wp-label {
  color: var(--warm);
}

.wp-pip.wp-done .wp-num {
  background: var(--accent-sec);
  color: transparent;
  font-size: 0;
}

.wp-pip.wp-done .wp-num::before {
  content: "✓";
  font-size: 13px;
  color: #fff;
}

.wp-pip.wp-done .wp-label {
  color: var(--accent-sec);
}

.wp-line.wp-line-done {
  background: var(--accent-sec);
}

/* ─────────────────────────────────────────────
   Wizard step cards
───────────────────────────────────────────── */
.wiz-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.wiz-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wiz-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wiz-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hidden steps */
.wiz-hidden {
  display: none;
}

/* Reveal animation */
@keyframes wizReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wiz-revealing {
  animation: wizReveal 0.3s ease forwards;
}

/* ─────────────────────────────────────────────
   Upload dropzone (inside wiz-step-1)
───────────────────────────────────────────── */
.dropzone {
  position: relative;
  display: block;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--tinted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.dropzone:hover {
  border-color: var(--warm);
  background: var(--warm-light);
  box-shadow: 0 0 0 3px rgba(198, 124, 78, 0.1);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-body {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.dropzone-icon {
  font-size: 1.5rem;
  color: var(--warm);
  line-height: 1;
}

.dropzone-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.dropzone-sub {
  font-size: 0.73rem;
  color: var(--muted);
}

.upload-thumb {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.upload-filename {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.upload-filename::before {
  content: "✓";
  color: var(--accent-sec);
  font-weight: 700;
}

/* ─────────────────────────────────────────────
   Original photo card (right col top)
───────────────────────────────────────────── */
.zone-original {
  /* transparent on mobile — just stacks */
}

.original-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: grid;
  gap: 8px;
}

/* ─────────────────────────────────────────────
   Section / panel labels
───────────────────────────────────────────── */
.sp-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ─────────────────────────────────────────────
   Two-column row (room type + budget)
───────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.two-col > div {
  display: grid;
  gap: 5px;
}

select,
textarea {
  font: inherit;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  width: 100%;
  appearance: auto;
  transition: border-color 0.15s;
}

select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

textarea {
  resize: vertical;
  min-height: 62px;
}

/* ─────────────────────────────────────────────
   Style cards
───────────────────────────────────────────── */
.style-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.style-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.13s, background 0.13s, box-shadow 0.13s;
  -webkit-tap-highlight-color: transparent;
}

.style-card:hover {
  border-color: var(--accent);
  background: var(--tinted);
}

.style-card.is-selected {
  border-color: var(--warm);
  background: var(--warm-light);
  box-shadow: 0 0 0 3px rgba(198, 124, 78, 0.15);
}

.sc-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.style-card.is-selected .sc-name { color: var(--warm); }

.sc-mood {
  font-size: 0.66rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Palette swatches
───────────────────────────────────────────── */
.palette-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.palette-chip {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.13s, background 0.13s, box-shadow 0.13s;
  -webkit-tap-highlight-color: transparent;
}

.palette-chip:hover {
  border-color: var(--accent);
  background: var(--tinted);
}

.palette-chip.is-selected {
  border-color: var(--warm);
  background: var(--warm-light);
  box-shadow: 0 0 0 3px rgba(198, 124, 78, 0.15);
}

.chip-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.09);
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.3;
}

.palette-chip.is-selected .chip-label { color: var(--warm); }

/* ─────────────────────────────────────────────
   Sliders
───────────────────────────────────────────── */
.slider-group {
  display: grid;
  gap: 6px;
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #DBEAFE;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 30px;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Generate button
───────────────────────────────────────────── */
.btn-generate {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-height: 52px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28), 0 1px 3px rgba(37, 99, 235, 0.2);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-generate:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 1px 4px rgba(37, 99, 235, 0.2);
}
.btn-generate:active  { transform: scale(0.99); }
.btn-generate:disabled { opacity: 0.55; cursor: wait; box-shadow: none; }

/* ─────────────────────────────────────────────
   Mobile sticky bar
───────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 16px 14px;
  background: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

/* ─────────────────────────────────────────────
   Result zone — right column
───────────────────────────────────────────── */
.zone-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Generic result card (compare card + redesign result card) */
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-top-actions {
  display: flex;
  gap: 6px;
}

/* ─────────────────────────────────────────────
   Generation limit message
───────────────────────────────────────────── */
.limit-message {
  margin-top: 10px;
  background: var(--warm-light);
  border: 1px solid rgba(198, 124, 78, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.limit-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.btn-reset-dev {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s;
}

.btn-reset-dev:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   Result actions
───────────────────────────────────────────── */
.result-actions {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-action {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.14s, color 0.14s, border-color 0.14s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-action:active { transform: scale(0.99); }

.btn-action-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.btn-action-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.btn-action-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: none;
}

.btn-action-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn-action-secondary:hover {
  border-color: var(--warm);
  color: var(--warm);
  background: var(--warm-light);
}

.btn-action-secondary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-action-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid transparent;
  font-weight: 500;
}

.btn-action-ghost:hover {
  color: var(--text);
  border-color: var(--line);
}

/* ─────────────────────────────────────────────
   Pill buttons (Download)
───────────────────────────────────────────── */
.btn-pill {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 4px 13px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   Images
───────────────────────────────────────────── */
.image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #F1F5F9;
}

/* ─────────────────────────────────────────────
   Empty states — compact
───────────────────────────────────────────── */
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px 12px;
  background: var(--tinted);
}

.result-empty {
  min-height: 160px;
}

.empty-icon {
  font-size: 1.3rem;
  opacity: 0.35;
}

/* ─────────────────────────────────────────────
   Loading card
───────────────────────────────────────────── */
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  padding: 32px 20px;
  border-radius: 10px;
  background: var(--tinted);
  border: 1.5px solid var(--line);
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: bmr-spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.loading-message {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.25s ease;
}

.loading-message.fading {
  opacity: 0;
}

.loading-sub {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.35s ease;
}

/* ─────────────────────────────────────────────
   Refine section
───────────────────────────────────────────── */
.refine-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.refine-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.refine-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-refine {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 5px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s, color 0.13s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-refine:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tinted);
}

.btn-refine:disabled {
  opacity: 0.45;
  cursor: wait;
}

/* ─────────────────────────────────────────────
   Advanced controls accordion
───────────────────────────────────────────── */
.sp-advanced {
  border-top: 1px solid var(--line-inner);
}

.sp-advanced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.13s;
}

.sp-advanced-summary::-webkit-details-marker { display: none; }

.sp-advanced-summary::after {
  content: "﹢";
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}

.sp-advanced[open] .sp-advanced-summary::after {
  content: "−";
}

.sp-advanced-summary:hover { color: var(--text); }

.sp-advanced-body {
  padding: 0 16px 16px;
  display: grid;
  gap: 14px;
}

.adv-group {
  display: grid;
  gap: 7px;
}

/* ─────────────────────────────────────────────
   Meta / debug
───────────────────────────────────────────── */
.meta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
}

.status-text {
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.status-text.status-error {
  color: var(--error);
  font-weight: 600;
}

details summary {
  cursor: pointer;
  font-size: 0.74rem;
  color: var(--muted);
  user-select: none;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; font-size: 0.68rem; }
details[open] summary::before { content: "▾ "; }

pre {
  margin-top: 8px;
  white-space: pre-wrap;
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Before / After comparison slider
───────────────────────────────────────────── */
.compare-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compare-hint-text {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.compare-hint-text.hint-faded { opacity: 0; }

.compare-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: #F1F5F9;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.compare-after-img {
  clip-path: inset(0 0 0 50%);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.22);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.compare-label {
  position: absolute;
  bottom: 9px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

.compare-label-before { left: 9px; }
.compare-label-after  { right: 9px; }

/* ─────────────────────────────────────────────
   Utilities
───────────────────────────────────────────── */
.hidden { display: none !important; }
