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

:root {
  --ink: #1a1807;
  --ink-mid: #4a4835;
  --ink-soft: #8a8770;
  --ink-faint: #e8e4da;
  --cream: #f9f6ef;
  --white: #ffffff;
  --accent: #c4703a;
  --accent-light: #f0e0d0;
  --border: rgba(26,24,7,0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(249,246,239,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 40px;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.8; }

/* ─── Hero ─── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 500px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeUp 0.5s 0.16s ease both;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  animation: fadeUp 0.5s 0.24s ease both;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }
.btn-light { background: var(--white); color: var(--ink); }

.hero-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  animation: fadeUp 0.5s 0.3s ease both;
}

.hero-swatches {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 4rem;
  animation: fadeUp 0.6s 0.4s ease both;
}

.swatch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.connector {
  font-size: 13px;
  color: #4caf6e;
  font-weight: 500;
  margin-left: 4px;
}

/* ─── How it works ─── */
.how {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.step { padding: 1.5rem; }

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink-faint);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── Features ─── */
.features {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }

.feature-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── CTA strip ─── */
.cta-strip {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

/* ─── Footer ─── */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.footer-logo span { color: var(--accent); }

.footer-note {
  font-size: 11px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }

/* ─── App page shared ─── */
.app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem 5rem;
}

.app-header { margin-bottom: 2.5rem; }

.app-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.app-header p { font-size: 14px; color: var(--ink-mid); font-weight: 300; }

/* ─── Gender selector ─── */
.gender-row { display: flex; gap: 8px; margin-top: 0.5rem; }

.gender-btn {
  flex: 1;
  padding: 10px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: pointer;
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gender-btn:hover { background: var(--ink-faint); color: var(--ink); }
.gender-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  font-weight: 500;
}

/* ─── Tabs ─── */
.tabs {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 2rem;
  background: var(--white);
}

.tab {
  padding: 9px 22px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.tab.active { background: var(--ink); color: var(--white); border-radius: 40px; }
.tab:not(.active):hover { background: var(--ink-faint); color: var(--ink); }

/* ─── Upload zone ─── */
.upload-zone {
  border: 0.5px dashed rgba(26,24,7,0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  background: var(--white);
}
.upload-zone:hover { background: var(--ink-faint); }
.upload-zone p { font-size: 14px; color: var(--ink-soft); }
.upload-zone strong { color: var(--ink); }

/* ─── Select grid ─── */
.clothing-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }

/* ─── Clothing sections ─── */
.clothing-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ─── Color swatches ─── */
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s, border-color 0.12s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--ink); }

/* ─── Type pills ─── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.type-pill {
  padding: 9px 10px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.12s;
}
.type-pill:hover { background: var(--ink-faint); color: var(--ink); }
.type-pill.selected {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--ink-faint);
  font-weight: 500;
}

/* ─── Occasion chips ─── */
.occasion-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.5rem; }

.occasion-chip {
  padding: 6px 14px;
  border: 0.5px solid var(--border);
  border-radius: 40px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.12s;
}
.occasion-chip:hover { background: var(--ink-faint); color: var(--ink); }
.occasion-chip.selected { border-color: var(--ink); color: var(--ink); background: var(--ink-faint); }

/* ─── CTA button ─── */
.btn-match {
  width: 100%;
  padding: 13px;
  margin-top: 1.5rem;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-match:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── Divider ─── */
.divider { height: 0.5px; background: var(--border); margin: 2.5rem 0; }

/* ─── Results ─── */
.results-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

/* ─── Match card palette hero ─── */
.match-card-hero {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink-faint);
  position: relative;
  overflow: hidden;
}

.palette-swatch-lg {
  flex: 1;
  height: 72px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  transition: transform 0.15s;
}

.palette-swatch-main {
  flex: 1.4;
  height: 72px;
}

.palette-swatch-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.palette-plus {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.5;
  flex-shrink: 0;
  color: var(--ink);
}

.swatch-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.rule-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: var(--ink);
  border-radius: 20px;
  padding: 3px 9px;
  backdrop-filter: blur(4px);
}

/* ─── Match card ─── */
.match-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.match-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.match-card-top { padding: 1.25rem 1.5rem 1.1rem; }

.palette-row { display: flex; gap: 5px; margin-bottom: 10px; }
.palette-dot { width: 18px; height: 18px; border-radius: 50%; border: 0.5px solid rgba(0,0,0,0.06); }

.match-card h3 { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.match-card .tip { font-size: 13px; color: var(--ink-mid); line-height: 1.55; font-weight: 300; }

.score-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.score-label { font-size: 11px; color: var(--ink-soft); min-width: 30px; }
.score-bar { height: 2px; border-radius: 2px; background: var(--ink-faint); flex: 1; overflow: hidden; }
.score-fill { height: 100%; background: var(--ink); border-radius: 2px; }

/* ─── Shop section ─── */
.shop-section {
  border-top: 0.5px solid var(--border);
  background: #faf8f4;
  padding: 1rem 1.5rem 1.1rem;
}

.shop-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
}

.product-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-row::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 148px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-1px); }

.product-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  margin-bottom: 7px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.product-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-name {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-cta { font-size: 11px; color: var(--accent); font-weight: 500; }

.amazon-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ─── Upload preview ─── */
#upload-preview img {
  max-height: 200px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  display: block;
  margin-bottom: 1rem;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .select-grid { grid-template-columns: 1fr; }
  .clothing-sections { grid-template-columns: 1fr; }
  .hero-swatches { flex-direction: column; align-items: center; }
  .steps { grid-template-columns: 1fr; }
}

/* ─── Two column app layout ─── */
.app-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.5rem;
  align-items: start;
}

.app-left { min-width: 0; }

.app-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

/* ─── Sticker panel ─── */
.sticker-panel {
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.combo-panel {
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sticker-panel-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.sticker-empty {
  width: 90px;
  height: 90px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}

.sticker-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  text-align: center;
}

/* ─── Color grid full width ─── */
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }

/* responsive */
@media (max-width: 640px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-right { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}


/* ─── Inline outfit preview inside match cards ─── */
.outfit-preview-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--cream);
}
.outfit-preview-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════════
   IMMERSIVE FULL-SCREEN APP
═══════════════════════════════════════════════════════════════════ */

body.app-immersive {
  margin: 0; padding: 0;
  background: var(--cream);
  overflow: hidden;
  height: 100vh;
}

.immersive-screen {
  display: grid;
  grid-template-columns: 160px 1fr 170px;
  grid-template-rows: 54px 1fr 70px;
  height: 100vh;
  width: 100vw;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

/* NAV */
.imm-nav {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 0.5px solid var(--border);
  background: var(--cream);
}
.imm-back {
  font-size: 12px; color: var(--ink-soft);
  text-decoration: none; transition: color .15s;
}
.imm-back:hover { color: var(--ink); }

/* gender toggle */
.gender-toggle {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.gtab {
  padding: 5px 16px; font-size: 11px; font-family: inherit;
  cursor: pointer; color: var(--ink-soft);
  background: transparent; border: none; transition: all .15s;
}
.gtab.active { background: var(--ink); color: var(--cream); }

/* LEFT PANEL */
.imm-left {
  padding: 1rem .75rem;
  border-right: 0.5px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--cream);
}
.imm-section { margin-bottom: .25rem; }
.imm-panel-label {
  font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.imm-type-list { display: flex; flex-direction: column; gap: 2px; }
.imm-type-item {
  font-size: 11px; padding: 6px 8px; border-radius: 6px;
  cursor: pointer; color: var(--ink-mid);
  transition: all .15s; border: 0.5px solid transparent;
}
.imm-type-item:hover { color: var(--ink); background: rgba(26,24,7,0.05); }
.imm-type-item.selected {
  color: var(--ink);
  background: rgba(196,112,58,0.1);
  border-color: rgba(196,112,58,0.5);
}

/* CENTER */
.imm-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem 0.5rem; overflow: hidden;
  background: var(--cream);
}

/* empty state */
.imm-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  color: var(--ink-soft);
}
.imm-empty-icon { opacity: .3; }
.imm-empty-text {
  font-size: 13px; text-align: center;
  line-height: 1.7; color: var(--ink-soft);
}
.imm-find-btn {
  margin-top: 0.5rem;
  padding: 11px 28px;
  border-radius: 40px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
}
.imm-find-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.imm-find-btn:active {
  transform: scale(0.98);
}
.imm-find-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* outfit hero */
.imm-outfit {
  display: flex; flex-direction: column;
  align-items: center; gap: .875rem; width: 100%;
}

/* THREE OUTFITS SIDE BY SIDE */
.imm-trio-wrap {
  position: relative; overflow: hidden;
  width: 100%; display: flex; justify-content: center;
}
.imm-trio {
  display: flex; gap: 2.5rem; align-items: flex-end;
  transition: opacity .2s, transform .28s cubic-bezier(.22,.68,0,1.1);
}
.imm-trio.slide-out-left  { opacity: 0; transform: translateX(-80px); }
.imm-trio.slide-out-right { opacity: 0; transform: translateX(80px); }
.imm-trio.slide-in-right  { animation: immSlideInR .3s cubic-bezier(.22,.68,0,1.1) forwards; }
.imm-trio.slide-in-left   { animation: immSlideInL .3s cubic-bezier(.22,.68,0,1.1) forwards; }

@keyframes immSlideInR {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes immSlideInL {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.imm-outfit-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.imm-outfit-item svg { display: block; }
.imm-outfit-label {
  font-size: 11px; font-weight: 500; color: var(--ink);
  text-align: center;
}
.imm-outfit-sub {
  font-size: 10px; color: var(--ink-soft); text-align: center;
}

/* match info row */
.imm-match-info { text-align: center; }
.imm-match-name-row {
  display: flex; align-items: center;
  justify-content: center; gap: 7px;
}
.imm-match-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.imm-match-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.imm-match-rule {
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); margin-top: 3px;
}
.imm-match-score { font-size: 11px; color: var(--accent); margin-top: 2px; }

/* arrows + dots */
.imm-arrow-row {
  display: flex; align-items: center; gap: 1.25rem;
}
.imm-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--ink); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: inherit;
}
.imm-arrow:hover { background: var(--ink); color: var(--cream); }
.imm-dots { display: flex; gap: 5px; align-items: center; }
.imm-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(26,24,7,0.2); transition: all .22s;
}
.imm-dot.on { background: var(--accent); width: 16px; border-radius: 3px; }

/* RIGHT PANEL */
.imm-right {
  padding: 1rem .75rem;
  border-left: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: .6rem;
  overflow-y: auto;
  background: var(--cream);
}
.imm-swatch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.imm-sw {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s, border-color .12s;
}
.imm-sw:hover { transform: scale(1.12); }
.imm-sw.selected { border-color: var(--ink); }

/* BOTTOM BAR */
.imm-bottom {
  grid-column: 1 / -1;
  border-top: 0.5px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
  background: var(--cream);
}
.imm-affiliate {
  font-size: 9px; color: var(--ink-soft); flex-shrink: 0;
}
.imm-shop-btn {
  flex-shrink: 0;
  padding: 9px 20px; border-radius: 40px;
  background: var(--ink); color: var(--cream);
  border: none; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: opacity .15s;
}
.imm-shop-btn:hover { opacity: .82; }

/* MATCH CARDS ROW in bottom */
.imm-cards-wrap {
  grid-column: 1 / -1;
  border-top: 0.5px solid var(--border);
  padding: 1rem 1.5rem;
  overflow-x: auto;
  background: #f0ece3;
  display: flex; align-items: center; gap: 1rem;
}
.imm-cards-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-soft); flex-shrink: 0;
}
.imm-cards {
  display: flex; gap: 10px;
}
.imm-card {
  flex-shrink: 0; width: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: border-color .15s;
  text-decoration: none;
}
.imm-card:hover { border-color: var(--ink-mid); }
.imm-card.active { border-color: var(--accent); border-width: 1.5px; }
.imm-card-img {
  width: 100%; aspect-ratio: 1;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.imm-card-img svg { width: 100%; height: 100%; display: block; }
.imm-card-body { padding: 6px 8px 8px; }
.imm-card-name { font-size: 10px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.imm-card-rule { font-size: 8px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.imm-card-cta { font-size: 9px; color: var(--accent); margin-top: 4px; }
