/* ============================================================
   MIRRR — Your Taste. Your Looks. Your Style.
   Design: mobile-first, high-contrast, warm-earth palette
   ============================================================ */

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

:root {
  /* Brand palette */
  --clr-obsidian:  #0a0a0a;
  --clr-charcoal:  #1a1a1a;
  --clr-graphite:  #2e2e2e;
  --clr-ash:       #4a4a4a;
  --clr-mist:      #999;
  --clr-ivory:     #f5f0eb;
  --clr-cream:     #fdf8f3;
  --clr-white:     #ffffff;

  /* Accent — warm terracotta / gold */
  --clr-terracotta: #c45c3c;
  --clr-bronze:     #b8722a;
  --clr-gold:       #d4a847;
  --clr-blush:      #e8a59a;
  --clr-plum:       #7b3f6e;
  --clr-emerald:    #1e6b4a;
  --clr-cobalt:     #1a3a6b;

  /* Semantic */
  --bg-page:      var(--clr-obsidian);
  --bg-card:      var(--clr-charcoal);
  --bg-card-alt:  var(--clr-graphite);
  --text-primary: var(--clr-ivory);
  --text-muted:   var(--clr-mist);
  --accent:       var(--clr-terracotta);
  --accent-light: var(--clr-gold);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  5rem;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --transition: 200ms ease;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: #0a0a0a;
  padding: 0 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner-wrap {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 92, 60, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Results image cards ---------- */
.results-image-card {
  margin: 0 auto 1.5rem;
  max-width: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-graphite);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.results-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── DNA Badge (quiz result) ── */
.dna-badge-card {
  max-width: 280px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 auto 2rem;
}
.dna-badge-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

/* ── Your Look card (taste results) ── */
.your-look-card {
  max-width: 400px;
}

/* ── Shade palette preview (shade finder) ── */
.shade-palette-preview {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-graphite);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.shade-palette-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Loading mirror image ── */
.loading-mirror-img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: mirrorPulse 2s ease-in-out infinite;
}
@keyframes mirrorPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.97); }
}

/* ── Mobile mockup in hero ── */
.hero-mockup-wrap {
  margin: var(--space-md) auto 0;
  max-width: 280px;
  max-height: 400px;
  overflow: hidden;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.7));
  animation: floatUp 3s ease-in-out infinite;
}
.hero-mockup-wrap:empty { display: none; }
.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--clr-ivory);
  margin-bottom: var(--space-xs);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--clr-gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 1rem;
  color: var(--clr-mist);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.hero-sub strong { color: var(--clr-ivory); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #b04d30; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--clr-mist); color: var(--text-primary); }

.link-btn {
  background: none;
  border: none;
  color: var(--clr-gold);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

/* ---------- Why Section ---------- */
.why-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--clr-graphite);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--clr-ivory);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.why-icon { font-size: 2rem; margin-bottom: var(--space-xs); }

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--clr-ivory);
  margin-bottom: var(--space-xs);
}

.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- Discover Section ---------- */
.discover-section {
  padding: var(--space-xl) 0;
}

.chips-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.chip {
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chip:hover { border-color: var(--clr-terracotta); color: var(--clr-terracotta); }
.chip.active {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
}

.selected-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.5rem;
  margin-bottom: var(--space-md);
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: rgba(196, 92, 60, 0.2);
  border: 1px solid var(--clr-terracotta);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--clr-blush);
}

.selected-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.selected-tag button:hover { opacity: 1; }

/* ---------- Form ---------- */
.taste-form { max-width: 560px; }

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.taste-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.taste-input::placeholder { color: var(--clr-ash); }
.taste-input:focus { border-color: var(--clr-terracotta); }

.btn-add {
  width: 46px;
  height: 46px;
  background: var(--clr-graphite);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--transition);
}
.btn-add:hover { background: var(--clr-ash); }

.btn-discover {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-discover.loading .btn-spinner { display: block; }
.btn-discover.loading .btn-text { opacity: 0.6; }

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

.demo-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Results ---------- */
.results-section { padding: var(--space-xl) 0; }

.narration {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--clr-ivory);
  max-width: 680px;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--clr-terracotta);
}

.results-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--clr-ivory);
  margin-bottom: var(--space-md);
}

/* Aesthetic bars */
.aesthetic-block { margin-bottom: var(--space-lg); }

.aesthetic-bars {
  display: grid;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.dim-row { display: flex; align-items: center; gap: var(--space-sm); }
.dim-label {
  width: 80px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
  flex-shrink: 0;
}
.dim-track {
  flex: 1;
  height: 6px;
  background: var(--clr-graphite);
  border-radius: 3px;
  overflow: hidden;
}
.dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-terracotta), var(--clr-gold));
  border-radius: 3px;
  transition: width 0.8s ease;
}
.dim-val {
  width: 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Archetype pills */
.archetypes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.archetype-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(212, 168, 71, 0.15);
  border: 1px solid rgba(212, 168, 71, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--clr-gold);
}

/* Looks grid */
.looks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.look-card {
  background: var(--bg-card);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.look-card:hover { border-color: var(--clr-terracotta); transform: translateY(-2px); }

/* Editorial portrait image at top of card */
.look-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.look-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.look-card:hover .look-card-img { transform: scale(1.04); }

.look-card-header {
  padding: var(--space-md) var(--space-md) 0;
}

.look-rank {
  font-size: 0.75rem;
  color: var(--clr-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.look-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--clr-ivory);
  margin-bottom: 0.3rem;
}

.look-archetype {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.look-score-bar {
  height: 3px;
  background: var(--clr-graphite);
  margin: var(--space-sm) var(--space-md);
  border-radius: 2px;
  overflow: hidden;
}
.look-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-terracotta), var(--clr-gold));
}

.look-card-body {
  padding: 0 var(--space-md) var(--space-md);
}

.look-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.look-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: var(--space-sm);
}

.look-tag {
  padding: 0.2rem 0.55rem;
  background: var(--clr-graphite);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wig-rec {
  margin-top: var(--space-sm);
  padding: 0.65rem var(--space-sm);
  background: rgba(196, 92, 60, 0.08);
  border: 1px solid rgba(196, 92, 60, 0.2);
  border-radius: var(--radius-md);
}
.wig-label {
  font-size: 0.7rem;
  color: var(--clr-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.wig-name {
  font-size: 0.88rem;
  color: var(--clr-ivory);
}
.wig-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-reset {
  display: block;
  margin: 0 auto;
}

/* ---------- Archetypes Showcase ---------- */
.archetypes-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--clr-graphite);
}

.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.arch-card:hover { border-color: var(--clr-gold); background: var(--bg-card-alt); }

.arch-emoji { font-size: 2rem; margin-bottom: 0.5rem; }

.arch-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--clr-ivory);
  margin-bottom: 0.25rem;
}

.arch-tags {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--clr-graphite);
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--clr-ivory);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--clr-gold);
  letter-spacing: 0.06em;
}

.footer-credits {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-credits a { color: var(--text-muted); }
.footer-credits a:hover { color: var(--clr-ivory); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .container { padding: 0 var(--space-sm); }
  .chip { font-size: 0.75rem; }
  .looks-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MIRRR — Extended Component Styles
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-graphite);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-ivory);
  text-decoration: none;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--clr-ivory); background: rgba(255,255,255,0.06); }
.nav-link--active { color: var(--clr-terracotta); background: rgba(196,92,60,0.12); }

/* ---------- View layout ---------- */
.view { padding: 7rem 0 4rem; min-height: 100vh; }
.view.hidden { display: none; }
.view-header { text-align: center; margin-bottom: 3rem; }
.view-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--clr-ivory);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.view-sub { color: var(--text-muted); font-size: 1rem; }

/* ---------- Generic card ---------- */
.card {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--clr-terracotta);
  color: #fff;
}
.btn-primary:hover { background: #b5502f; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--clr-graphite);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--clr-ivory); color: var(--clr-ivory); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(212,168,71,0.4);
  color: var(--clr-gold);
}
.btn-ghost:hover { background: rgba(212,168,71,0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Select ---------- */
.select {
  appearance: none;
  background: var(--clr-charcoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.6rem 2rem 0.6rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.select:focus { outline: none; border-color: var(--clr-terracotta); }
.select option { background: var(--clr-charcoal); }

/* ---------- Form rows ---------- */
.form-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.form-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Chip input ---------- */
.chip-input-wrap {
  display: flex; align-items: center;
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.chip-input-wrap:focus-within { border-color: var(--clr-terracotta); }
.chip-input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.9rem;
  flex: 1; min-width: 80px;
}
.chip-input::placeholder { color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(196,92,60,0.15);
  border: 1px solid rgba(196,92,60,0.3);
  color: var(--clr-terracotta);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}
.chip-remove {
  background: none; border: none; color: inherit; cursor: pointer;
  padding: 0; line-height: 1; opacity: 0.7;
}
.chip-remove:hover { opacity: 1; }

/* ---------- Chip-btn row (depth / length / texture) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-graphite);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
}
.chip-btn:hover { border-color: var(--clr-ivory); color: var(--clr-ivory); }
.chip-btn--active {
  background: var(--clr-terracotta);
  border-color: var(--clr-terracotta);
  color: #fff;
}

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-ivory);
  margin-bottom: 1rem;
}

/* ---------- Loader / Spinner ---------- */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--clr-graphite);
  border-top-color: var(--clr-terracotta);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quiz ---------- */
.quiz-question {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.quiz-q-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-terracotta);
  margin-bottom: 0.4rem;
}
.quiz-q-text {
  font-size: 1rem;
  color: var(--clr-ivory);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
}
.quiz-option:hover { border-color: var(--clr-terracotta); color: var(--clr-ivory); }
.quiz-option--selected {
  background: rgba(196,92,60,0.12);
  border-color: var(--clr-terracotta);
  color: var(--clr-ivory);
}
.quiz-submit { margin-top: 1.5rem; }

/* ---------- DNA Result ---------- */
.dna-result {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(196,92,60,0.1) 0%, rgba(212,168,71,0.05) 100%);
  border: 1px solid rgba(196,92,60,0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.dna-hero { margin-bottom: 1.5rem; }
.dna-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }
.dna-title {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--clr-ivory);
  margin-bottom: 0.25rem;
}
.dna-sub { color: var(--text-muted); font-size: 0.9rem; }
.dna-runner {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.dna-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Aesthetic Bars ---------- */
.aesthetic-bars { margin: 1.5rem 0; }
.bars-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.75rem; }
.aes-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.aes-bar-label { width: 72px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; text-transform: capitalize; }
.aes-bar-track {
  flex: 1; height: 6px;
  background: var(--clr-graphite);
  border-radius: 3px; overflow: hidden;
}
.aes-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-terracotta), var(--clr-gold));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.aes-bar-val { width: 32px; font-size: 0.78rem; color: var(--clr-gold); text-align: right; }

/* ---------- Tags ---------- */
.aesthetic-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-graphite);
  color: var(--text-muted);
}
.tag--arch {
  background: rgba(212,168,71,0.12);
  border-color: rgba(212,168,71,0.3);
  color: var(--clr-gold);
}

/* ---------- Narration ---------- */
.narration-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(196,92,60,0.12);
  border: 1px solid rgba(196,92,60,0.25);
  color: var(--clr-terracotta);
  margin-bottom: 0.75rem;
}
.narration-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}
.entity-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

/* ---------- Looks grid ---------- */
.looks-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.look-card {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.look-card:hover { border-color: rgba(196,92,60,0.4); transform: translateY(-2px); }
.look-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.look-emoji { font-size: 2rem; }
.look-score-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--clr-terracotta) calc(var(--score) * 1%), var(--clr-graphite) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.look-score-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--clr-charcoal);
}
.look-score-num {
  position: relative; z-index: 1;
  font-size: 0.7rem; font-weight: 700;
  color: var(--clr-gold);
}
.look-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-ivory);
}
.look-arch { font-size: 0.75rem; color: var(--clr-gold); text-transform: uppercase; letter-spacing: 0.1em; }
.look-desc { font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }
.look-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.look-cta { margin-top: auto; }
.looks-actions { display: flex; gap: 0.75rem; justify-content: center; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.looks-actions .btn { width: auto; }

/* ---------- Depth buttons ---------- */
.depth-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.depth-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-graphite);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.18s;
}
.depth-btn:hover { border-color: var(--clr-ivory); color: var(--clr-ivory); }
.depth-btn--active { border-color: var(--clr-terracotta); background: rgba(196,92,60,0.12); color: var(--clr-ivory); }
.depth-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.depth-label { }

/* ---------- Shade finder ---------- */
.shade-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }
.shade-spectrum { margin: 1.5rem 0; }
.spectrum-bar {
  display: flex; border-radius: var(--radius-md);
  overflow: hidden; height: 36px;
  border: 1px solid var(--clr-graphite);
}
.spectrum-dot {
  flex: 1;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}
.spectrum-dot:hover { transform: scaleY(1.25); z-index: 1; }
.shade-cards-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.shade-card {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s;
}
.shade-card:hover { transform: translateY(-2px); }
.shade-swatch-lg { height: 80px; width: 100%; display: block; }
.shade-swatch-img { height: 80px; overflow: hidden; }
.shade-swatch-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.shade-info { padding: 1rem; }
.shade-id { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--clr-terracotta); text-transform: uppercase; margin-bottom: 0.15rem; }
.shade-label { font-size: 0.95rem; color: var(--clr-ivory); margin-bottom: 0.35rem; }
.shade-undertones { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.shade-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }
.shade-match-bar { height: 4px; background: var(--clr-graphite); border-radius: 2px; overflow: hidden; margin-bottom: 0.25rem; }
.shade-match-fill { height: 100%; background: var(--clr-gold); border-radius: 2px; transition: width 0.6s ease; }
.shade-match-pct { font-size: 0.72rem; color: var(--clr-gold); text-align: right; }

/* ---------- Wig finder ---------- */
.wig-context-banner {
  background: rgba(212,168,71,0.08);
  border: 1px solid rgba(212,168,71,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}
.wig-cards-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.wig-card {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.wig-card:hover { border-color: rgba(212,168,71,0.35); transform: translateY(-2px); }
.wig-card-img-wrap {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.wig-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.wig-card:hover .wig-card-img { transform: scale(1.04); }
.wig-card-top { display: flex; align-items: center; justify-content: space-between; }
.wig-emoji { font-size: 2rem; }
.wig-match-pct {
  font-size: 0.8rem; font-weight: 700;
  color: var(--clr-gold);
  background: rgba(212,168,71,0.1);
  border: 1px solid rgba(212,168,71,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}
.wig-name {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 400;
  color: var(--clr-ivory);
  letter-spacing: 0.05em;
}
.wig-desc { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }
.wig-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wig-reason { font-size: 0.8rem; color: var(--clr-gold); font-style: italic; }
.wig-colours { display: flex; gap: 0.35rem; align-items: center; margin-top: 0.25rem; }
.colour-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem;
  cursor: pointer; padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--clr-ivory); }
.modal-loading { text-align: center; padding: 2rem; color: var(--text-muted); }
.modal-error { color: #e07070; font-size: 0.9rem; padding: 0.75rem; background: rgba(220,80,80,0.08); border-radius: var(--radius-md); }
.modal-look-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-graphite);
}
.modal-depth-note {
  font-size: 0.8rem; color: var(--clr-gold);
  background: rgba(212,168,71,0.08);
  border: 1px solid rgba(212,168,71,0.2);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.product-list { display: flex; flex-direction: column; gap: 1rem; }
.product-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.product-cat {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-terracotta);
  margin-bottom: 0.4rem;
}
.product-formula { font-size: 0.92rem; color: var(--clr-ivory); margin-bottom: 0.3rem; }
.product-shade { font-size: 0.84rem; color: var(--clr-gold); margin-bottom: 0.2rem; }
.product-finish { font-size: 0.8rem; color: var(--text-muted); text-transform: capitalize; }
.product-tip { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--clr-graphite); }

/* ---------- Toast variants ---------- */
.toast--error { border-color: rgba(220,80,80,0.5); background: rgba(40,10,10,0.96); }
.toast--warn { border-color: rgba(212,168,71,0.5); background: rgba(30,25,5,0.96); }
.toast--info { border-color: rgba(80,140,220,0.4); background: rgba(10,15,35,0.96); }

/* ---------- Aesthetic card / narration card ---------- */
.aesthetic-card, .narration-card {
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 600px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 0.4rem 0.55rem; font-size: 0.72rem; }
  .dna-result { padding: 1.5rem; }
  .look-score-ring { width: 38px; height: 38px; }
  .modal { padding: 1.25rem; }
  .shade-cards-inner { grid-template-columns: 1fr 1fr; }
  .wig-cards-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   TRENDING NOW SECTION
   ============================================================ */

.trending-section {
  background: var(--clr-charcoal);
  border-top: 1px solid var(--clr-graphite);
  border-bottom: 1px solid var(--clr-graphite);
  padding: var(--space-lg) 0;
}

.trending-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.trending-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.trending-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--clr-ivory);
  margin-bottom: 0.4rem;
}

.trending-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Tabs ── */
.trending-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.trending-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--clr-graphite);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.trending-tab:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.trending-tab--active {
  background: rgba(212,168,71,0.12);
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.trending-tab-label {
  font-weight: 500;
}

/* ── Meta / Source badge ── */
.trending-meta {
  margin-bottom: 1rem;
  text-align: right;
}

.trending-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge--qloo {
  background: rgba(196,92,60,0.15);
  color: var(--clr-terracotta);
  border: 1px solid rgba(196,92,60,0.3);
}

.badge--curated {
  background: rgba(212,168,71,0.12);
  color: var(--clr-gold);
  border: 1px solid rgba(212,168,71,0.25);
}

/* ── Artist cards ── */
.trending-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--clr-obsidian);
  border: 1px solid var(--clr-graphite);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.trending-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--clr-graphite);
  transition: background 0.2s;
}

.trending-card--anchor::before {
  background: var(--clr-gold);
}

.trending-card:hover {
  border-color: var(--clr-terracotta);
  transform: translateX(3px);
  background: rgba(196,92,60,0.06);
}

.trending-card:hover::before {
  background: var(--clr-terracotta);
}

.trending-card--added {
  border-color: var(--clr-gold) !important;
  opacity: 0.7;
}

.trending-rank {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--clr-ash);
  min-width: 1.8rem;
  text-align: center;
  font-weight: 600;
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--clr-ivory);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rising-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-terracotta);
  background: rgba(196,92,60,0.15);
  border: 1px solid rgba(196,92,60,0.3);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.anchor-badge {
  font-size: 0.75rem;
}

.trending-genre {
  font-size: 0.78rem;
  color: var(--clr-gold);
  margin-top: 0.15rem;
}

.trending-region-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.trending-add {
  font-size: 1.4rem;
  color: var(--clr-graphite);
  font-weight: 300;
  min-width: 1.5rem;
  text-align: center;
  transition: color 0.15s;
}

.trending-card:hover .trending-add {
  color: var(--clr-terracotta);
}

.trending-cta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.25rem;
  font-style: italic;
}

.trending-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trending-error {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .trending-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
}

@media (min-width: 900px) {
  .trending-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── Quiz style picker card ── */
.quiz-style-card {
  max-width: 720px;
  margin: 0 auto 1.75rem;
}
.quiz-card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── My MIRRR Profile share card ── */
.share-card-wrap {
  max-width: 480px;
  margin: 2rem auto 1rem;
}
.share-card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Community icons in DNA result ── */
.dna-community-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-gold);
  margin: 0 auto 0.75rem;
  display: block;
  box-shadow: 0 0 20px rgba(212,168,71,0.3);
}
.dna-runner-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.25rem;
  border: 1px solid var(--clr-gold);
}

/* ── Community icon in taste results ── */
.taste-community-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.taste-com-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  flex-shrink: 0;
}
.taste-com-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--clr-gold);
  letter-spacing: 0.04em;
}

/* ============================================================
   MIRRR LUXURY OVERHAUL — Cinematic Warmth Edition
   Matches the editorial portrait photography + gold/terracotta
   design language of the generated images.
   ============================================================ */

/* ── Root enhancements ── */
:root {
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --clr-gold-light: #e8c96a;
  --clr-gold-dim: rgba(212,168,71,0.18);
  --clr-terra-dim: rgba(196,92,60,0.18);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-glow-terra: 0 0 40px rgba(196,92,60,0.18), 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow-gold: 0 0 32px rgba(212,168,71,0.15), 0 4px 24px rgba(0,0,0,0.5);
  --border-gold: 1px solid rgba(212,168,71,0.28);
  --border-terra: 1px solid rgba(196,92,60,0.35);
}

/* ── Body — richer black ── */
body {
  background: #060606;
  letter-spacing: 0.01em;
}

/* ── Wordmark — editorial tracking ── */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.25em;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  background: linear-gradient(135deg, #f5f0eb 0%, #d4a847 50%, #f5f0eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(212,168,71,0.2));
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--clr-gold-light);
}

/* ── Nav — warmer glass ── */
.nav--scrolled {
  background: rgba(6,6,6,0.94);
  border-bottom: var(--border-gold);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.28em;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #f5f0eb, #d4a847);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.nav-link--active {
  color: var(--clr-gold);
  background: rgba(212,168,71,0.1);
}

/* ── View titles ── */
.view-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #f5f0eb 0%, var(--clr-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.view-sub {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--clr-mist);
  text-transform: uppercase;
}

/* ── Cards — depth + warmth ── */
.card {
  background: linear-gradient(160deg, #181818 0%, #111 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

/* ── Buttons — elevated ── */
.btn-primary {
  background: linear-gradient(135deg, var(--clr-terracotta), #a84828);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(196,92,60,0.35);
  border-radius: 100px;
  padding: 0.9rem 2.25rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #d96840, #c45c3c);
  box-shadow: 0 8px 32px rgba(196,92,60,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  border: var(--border-gold);
  color: var(--clr-gold);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.btn-ghost:hover {
  background: var(--clr-gold-dim);
  box-shadow: var(--shadow-glow-gold);
}

/* ── Section titles ── */
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.1em;
  color: var(--clr-ivory);
  margin-bottom: 1.5rem;
}

/* ── Look cards — cinematic ── */
.look-card {
  background: linear-gradient(180deg, #141414 0%, #0e0e0e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.look-card:hover {
  border-color: rgba(196,92,60,0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-terra);
}

/* Square portrait fills the card top */
.look-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.look-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, #0e0e0e 0%, transparent 100%);
  pointer-events: none;
}
.look-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.look-card:hover .look-card-img { transform: scale(1.05); }

.look-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--clr-ivory);
}
.look-arch {
  font-size: 0.68rem;
  color: var(--clr-gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.look-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #888;
}

/* ── Wig cards — same cinematic treatment ── */
.wig-card {
  background: linear-gradient(180deg, #141414 0%, #0e0e0e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.wig-card:hover {
  border-color: rgba(212,168,71,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
}
.wig-card-img-wrap {
  position: relative;
  border-radius: 20px 20px 0 0;
}
.wig-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, #0e0e0e 0%, transparent 100%);
  pointer-events: none;
}
.wig-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.07em;
}

/* ── DNA Quiz result ── */
.dna-result {
  background: linear-gradient(160deg, rgba(196,92,60,0.12) 0%, rgba(212,168,71,0.06) 50%, rgba(10,10,10,0) 100%);
  border: var(--border-terra);
  border-radius: 24px;
  box-shadow: var(--shadow-glow-terra);
  padding: 3rem 2.5rem;
}
.dna-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #f5f0eb, var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dna-runner {
  border: var(--border-gold);
  background: var(--clr-gold-dim);
  border-radius: 100px;
  color: var(--clr-gold);
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  margin: 0.75rem auto;
}

/* ── Aesthetic bars ── */
.aesthetic-bars, .aesthetic-card {
  background: linear-gradient(160deg, #181818, #111);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.bars-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}
.aes-bar-fill {
  background: linear-gradient(90deg, var(--clr-terracotta) 0%, var(--clr-gold) 100%);
  box-shadow: 0 0 8px rgba(212,168,71,0.2);
}

/* ── Narration ── */
.narration-card, .narration {
  background: linear-gradient(160deg, #181818, #111);
  border-left: 3px solid var(--clr-terracotta);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.narration-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--clr-ivory);
}

/* ── Tags ── */
.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  color: #888;
}
.tag--arch {
  background: var(--clr-gold-dim);
  border-color: rgba(212,168,71,0.3);
  color: var(--clr-gold);
}

/* ── Quiz ── */
.quiz-question {
  background: linear-gradient(160deg, #181818, #111);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.quiz-q-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
}
.quiz-q-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--clr-ivory);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.quiz-option {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.quiz-option:hover {
  border-color: rgba(196,92,60,0.4);
  color: var(--clr-ivory);
  background: var(--clr-terra-dim);
}
.quiz-option--selected {
  background: var(--clr-terra-dim);
  border-color: var(--clr-terracotta);
  color: var(--clr-ivory);
  box-shadow: 0 0 16px rgba(196,92,60,0.18);
}

/* ── Community icons ── */
.dna-community-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-gold);
  box-shadow: 0 0 28px rgba(212,168,71,0.35), 0 0 60px rgba(212,168,71,0.1);
}

/* ── Trending section ── */
.trending-section {
  background: linear-gradient(180deg, #0a0a0a, #060606);
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}
.trending-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #f5f0eb, var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trending-card {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  transition: all 0.25s;
}
.trending-card:hover {
  border-color: rgba(196,92,60,0.4);
  background: rgba(196,92,60,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(2px);
}
.trending-tab {
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trending-tab--active {
  background: var(--clr-gold-dim);
  border-color: rgba(212,168,71,0.45);
  box-shadow: 0 0 16px rgba(212,168,71,0.12);
}
.trending-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ── Shade finder cards ── */
.shade-card, .depth-btn {
  background: linear-gradient(160deg, #181818, #111);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s;
}
.shade-card:hover {
  border-color: rgba(196,92,60,0.4);
  box-shadow: var(--shadow-glow-terra);
  transform: translateY(-3px);
}
.shade-name {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* ── Modal — luxury panel ── */
.modal {
  background: linear-gradient(160deg, #1a1a1a, #101010);
  border: var(--border-gold);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 40px rgba(212,168,71,0.08);
}
.modal-overlay { background: rgba(0,0,0,0.82); }

/* ── Footer ── */
.footer {
  border-top: var(--border-gold);
  background: #060606;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.28em;
  background: linear-gradient(90deg, #f5f0eb, var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--clr-gold);
}

/* ── Why cards ── */
.why-card {
  background: linear-gradient(160deg, #181818, #111);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.why-card:hover {
  border-color: rgba(212,168,71,0.22);
  box-shadow: var(--shadow-glow-gold);
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

/* ── Taste form ── */
.taste-form.card {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.chip-input-wrap {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.chip-input-wrap:focus-within {
  border-color: rgba(196,92,60,0.45);
  box-shadow: 0 0 20px rgba(196,92,60,0.12);
}
.select {
  background-color: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-size: 0.88rem;
}
.select:focus {
  border-color: rgba(196,92,60,0.45);
  box-shadow: 0 0 16px rgba(196,92,60,0.12);
}

/* ── Loader ── */
.loading-mirror-img {
  filter: drop-shadow(0 0 32px rgba(212,168,71,0.25));
}

/* ── Hero sub ── */
.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: #777;
}
.hero-sub strong { color: var(--clr-ivory); }

/* ── Results image wrappers ── */
.results-image-card {
  border: var(--border-gold);
  box-shadow: var(--shadow-glow-gold);
  border-radius: 20px;
}

/* ── Share / profile card ── */
.share-card-wrap {
  border: var(--border-gold);
  box-shadow: 0 0 40px rgba(212,168,71,0.12), var(--shadow-card);
  border-radius: 20px;
}

/* ── Quiz card banner ── */
.quiz-style-card {
  border: var(--border-terra);
  box-shadow: var(--shadow-glow-terra);
  border-radius: 20px;
}

/* ── Taste community label ── */
.taste-com-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--clr-gold-light);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .dna-result { padding: 1.75rem 1.25rem; }
  .card { padding: 1.5rem; }
  .modal { border-radius: 20px; }
}

/* ===========================================================================
   FEATURE STYLES: Try-On, Stylist, Share Card
   =========================================================================== */

/* ── Try-On Modal ── */
.tryon-modal {
  max-width: 580px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.tryon-inner { display: flex; flex-direction: column; gap: 1.25rem; }

.tryon-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--clr-gold);
  margin: 0;
  text-align: center;
  letter-spacing: 0.04em;
}

.tryon-hint {
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.tryon-photo-options {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tryon-step { display: flex; flex-direction: column; gap: 1rem; }

.tryon-camera-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-gold);
}

.tryon-video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.tryon-capture-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.tryon-canvas-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-gold);
  background: #000;
}

.tryon-canvas,
.tryon-overlay {
  display: block;
  max-width: 100%;
  border-radius: 16px;
}

.tryon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.tryon-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.tryon-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tryon-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  min-width: 90px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tryon-slider {
  flex: 1;
  min-width: 100px;
  accent-color: var(--clr-gold);
  cursor: pointer;
}

.tryon-val {
  font-size: 0.85rem;
  color: var(--clr-gold);
  min-width: 36px;
  text-align: right;
  font-weight: 700;
}

.tryon-blend-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tryon-before-after {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tryon-btn {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.85rem;
}

/* ── Stylist Modal ── */
.stylist-modal {
  max-width: 520px;
  width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.stylist-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.stylist-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stylist-avatar {
  font-size: 2rem;
  flex-shrink: 0;
}

.stylist-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-gold);
  margin: 0 0 0.2rem;
}

.stylist-sub {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin: 0;
}

.stylist-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 340px;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,162,39,0.3) transparent;
}

.stylist-msg {
  display: flex;
  max-width: 85%;
}

.stylist-msg--stylist {
  align-self: flex-start;
}

.stylist-msg--user {
  align-self: flex-end;
}

.stylist-msg-text {
  padding: 0.65rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.stylist-msg--stylist .stylist-msg-text {
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.2);
  color: var(--clr-text);
  border-bottom-left-radius: 4px;
}

.stylist-msg--user .stylist-msg-text {
  background: var(--clr-gold);
  color: #1a0533;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.stylist-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.stylist-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 0.65rem 1.1rem;
  color: var(--clr-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.stylist-input:focus {
  border-color: var(--clr-gold);
}

.stylist-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stylist-quick-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.stylist-quick-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 20px;
  color: var(--clr-gold-light);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.stylist-quick-chip:hover {
  background: rgba(201,162,39,0.18);
}

/* ── Stylist Page View ── */
.stylist-page-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stylist-page-chat {
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.stylist-page-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stylist-page-quick-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

#stylistPageResults {
  margin-top: 0.5rem;
}

.stylist-page-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ── Share Card Modal ── */
.share-modal {
  max-width: 420px;
  width: 95vw;
  padding: 1.75rem;
  text-align: center;
}

.share-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--clr-gold);
  margin: 0 0 1.25rem;
}

.share-canvas {
  max-width: 100%;
  border-radius: 20px;
  border: var(--border-gold);
  box-shadow: 0 0 40px rgba(212,168,71,0.15);
  display: block;
  margin: 0 auto;
}

.share-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ── Look card Try On button ── */
.look-card .tryon-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.82rem;
  border-radius: 12px;
}

/* ── Looks actions area (Stylist + Share buttons) ── */
.looks-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .tryon-modal { padding: 1.25rem; }
  .stylist-modal { max-height: 85vh; }
  .tryon-before-after { flex-direction: column; }
  .tryon-before-after .btn { width: 100%; }
  .share-canvas { border-radius: 14px; }
}


/* ============================================================
   Icon system, contrast, trace, planner, profile, help
   ============================================================ */
.mi-wrap { display: inline-flex; align-items: center; vertical-align: -0.16em; line-height: 1; }
.mi { width: 1.1em; height: 1.1em; flex: none; }
.pillar-icon .mi, .festival-card-emoji .mi, .ingredient-emoji .mi { width: 1.7em; height: 1.7em; color: var(--clr-gold); }
.community-chip-flag .mi { width: 1.5em; height: 1.5em; color: var(--clr-gold); }
.ritual-item-icon .mi { width: 1.3em; height: 1.3em; color: var(--clr-gold); }
.stylist-avatar .mi { width: 1.6em; height: 1.6em; color: var(--clr-gold); }
.btn .mi { margin-right: 0.3em; }

/* Contrast: warm off-white body text on the dark theme (muted text stays >= 4.5:1) */
:root {
  --clr-mist: #c9bfb4;
  --text-muted: #cfc6bb;
  --text-body: #efe7de;
}
body, p, li, .view-sub, .pillar-desc, .why-card p, .festival-card p, .ingredient-card p, .shade-note, .product-formula { color: var(--text-body); }
.community-bar-item { color: #cfc6bb; }

/* Honest source badges */
.src-badge { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid; margin-bottom: 0.6rem; }
.src-badge--live { color: #8fd9a8; border-color: rgba(143,217,168,0.5); background: rgba(30,107,74,0.25); }
.src-badge--template { color: #f0c987; border-color: rgba(212,168,71,0.5); background: rgba(212,168,71,0.12); }
.src-error { font-size: 0.8rem; color: #f2a79a; margin: 0.3rem 0 0.6rem; }

/* Trace expander */
.trace-box { margin-top: 1rem; border: 1px solid rgba(212,168,71,0.28); border-radius: 12px; background: rgba(26,26,26,0.7); }
.trace-box > summary { cursor: pointer; padding: 0.8rem 1rem; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--clr-gold-light, #e8c96a); list-style: none; display: flex; align-items: center; gap: 0.5em; }
.trace-box > summary::-webkit-details-marker { display: none; }
.trace-body { padding: 0 1rem 1rem; }
.trace-steps { list-style: none; margin: 0 0 0.8rem; padding: 0; font-size: 0.85rem; }
.trace-steps li { padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; gap: 0.6rem; }
.trace-steps .t-step { min-width: 6.5rem; color: var(--clr-gold); text-transform: capitalize; }
.aff-row { display: grid; grid-template-columns: 9rem 1fr 3rem; gap: 0.6rem; align-items: center; font-size: 0.82rem; margin: 0.3rem 0; }
.aff-bar { height: 6px; background: var(--clr-graphite); border-radius: 3px; overflow: hidden; }
.aff-fill { height: 100%; background: linear-gradient(90deg, var(--clr-terracotta), var(--clr-gold)); }

/* Returning-user banner + profile panel */
.return-banner { position: sticky; top: 56px; z-index: 40; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: center; padding: 0.7rem 1rem; background: #1f1812; border-bottom: 1px solid rgba(212,168,71,0.4); color: var(--text-body); font-size: 0.9rem; }
.return-banner .btn { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.profile-panel { position: fixed; top: 64px; right: 1rem; z-index: 60; width: min(360px, calc(100vw - 2rem)); max-height: 80vh; overflow: auto; padding: 1.1rem; background: var(--clr-charcoal); border: 1px solid rgba(212,168,71,0.4); border-radius: 14px; box-shadow: var(--shadow-card); color: var(--text-body); }
.profile-panel h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.6rem; }
.profile-panel .pp-row { margin: 0.5rem 0; font-size: 0.88rem; }
.profile-panel .pp-row strong { color: var(--clr-gold); display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-panel .pp-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.nav-profile-btn { border: 1px solid rgba(212,168,71,0.4) !important; border-radius: 999px; }

/* Planner */
.planner-form { max-width: 820px; margin: 0 auto 1.5rem; }
.planner-form textarea { width: 100%; background: var(--clr-obsidian); color: var(--text-body); border: 1px solid var(--clr-graphite); border-radius: 10px; padding: 0.8rem; font: inherit; resize: vertical; }
.planner-form textarea:focus { outline: none; border-color: var(--clr-terracotta); }
.planner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.planner-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.6rem; }
.planner-result { max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; }
.plan-card { background: var(--clr-charcoal); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1.1rem 1.2rem; }
.plan-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--clr-gold-light, #e8c96a); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5em; }
.plan-card p, .plan-card li { color: var(--text-body); font-size: 0.92rem; line-height: 1.6; }
.plan-timeline { list-style: none; padding: 0; margin: 0; }
.plan-timeline li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.plan-timeline .tl-when { color: var(--clr-gold); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.plan-error { padding: 1rem; border: 1px solid rgba(242,167,154,0.5); border-radius: 12px; color: #f2a79a; }

/* Help */
.help-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; }
.help-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--clr-gold-light, #e8c96a); }
.help-card p { margin: 0.5rem 0; line-height: 1.7; }

/* .hidden must always win over inline display (fixes full-screen guide drawer blocking clicks) */
.hidden { display: none !important; }

/* Load polish: hero fades in, no flash of empty layout */
.hero-banner-img { animation: mirrrFade 0.9s ease-out both; }
.hero-inner > * { animation: mirrrRise 0.8s ease-out both; }
.hero-inner > *:nth-child(2) { animation-delay: .12s; }
.hero-inner > *:nth-child(3) { animation-delay: .24s; }
.hero-inner > *:nth-child(4) { animation-delay: .36s; }
@keyframes mirrrFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mirrrRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-banner-img, .hero-inner > * { animation: none; } }

/* Nav polish: always-legible bar, single-line links, content clears it */
.nav { background: rgba(10,10,10,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(212,168,71,0.18); }
.nav-inner { max-width: 1280px; padding: 0.6rem 1.25rem; align-items: center; }
.nav-links { gap: 0.1rem; flex-wrap: nowrap; align-items: center; }
.nav-link { white-space: nowrap; font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.45rem 0.6rem; }
.nav-logo { white-space: nowrap; display: flex; align-items: center; gap: 0.4rem; }
body { padding-top: 58px; }
.hero-communities { margin-top: 1.25rem; font-size: 0.8rem; color: var(--clr-gold, #d4a847); opacity: .85; letter-spacing: .04em; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-sub { color: rgba(245,240,232,0.78); }
@media (max-width: 900px) { .nav-links { overflow-x: auto; scrollbar-width: none; } }
.hero-banner-wrap { max-height: none; }
.hero-banner-img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center 30%; }

/* Style Match: editorial photo grid */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; padding: 1.25rem; max-width: 1200px; margin: 0 auto; }
.sm-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid rgba(212,168,71,0.18); transition: transform .25s, border-color .25s; }
.sm-card:hover { transform: translateY(-3px); border-color: rgba(212,168,71,0.5); }
.sm-photo { aspect-ratio: 4/5; background: linear-gradient(135deg,#2a1a2e,#4a2040,#1a0a1e); overflow: hidden; }
.sm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }

.sm-drawer { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.sm-drawer.hidden { display: none; }

/* Quiz result: big portrait + looks for you */
.dna-result { max-width: 900px; margin: 0 auto; }
.dna-hero--big { text-align: center; }
.dna-big-photo { width: 100%; max-height: 520px; object-fit: cover; object-position: center 25%; border-radius: 16px; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.dna-kicker { margin: 1.25rem 0 .25rem; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clr-gold, #d4a847); }
.dna-title--big { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .4rem; }
.dna-looks { margin: 2rem 0 1.5rem; }
.dna-looks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.dna-look-card { position: relative; padding: 0; border: 1px solid rgba(212,168,71,.2); border-radius: 12px; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 4/5; transition: transform .2s, border-color .2s; }
.dna-look-card:hover { transform: translateY(-3px); border-color: rgba(212,168,71,.6); }
.dna-look-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dna-look-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .6rem .6rem; font-size: .8rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.dna-looks-loading { color: #999; }
.dna-looks-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dna-look-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }

.hero-explain { max-width: 620px; margin: 1.25rem auto .5rem; font-size: 1.05rem; line-height: 1.6; color: rgba(245,240,232,.9); }
.hero-try { display: flex; gap: .6rem; max-width: 560px; margin: 1rem auto .6rem; }
.hero-try-input { flex: 1; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(212,168,71,.45); background: rgba(20,20,20,.85); color: #f5f0e8; font-size: 1rem; }
.hero-try-input:focus { outline: 2px solid rgba(196,92,60,.7); outline-offset: 2px; }
.hero-try-chips { display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #aaa; margin-bottom: 1rem; }
.hero-try-chip { background: transparent; color: var(--clr-gold, #d4a847); border: 1px solid rgba(212,168,71,.35); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font-size: .85rem; }
.hero-try-chip:hover { background: rgba(212,168,71,.12); }
@media (max-width: 560px) { .hero-try { flex-direction: column; } }

.photo-match { margin-top: 1rem; }
.photo-match-title { margin: 0 0 .4rem; font-family: var(--font-display, serif); }
.photo-match-sub, .photo-note { color: #bbb; font-size: .9rem; line-height: 1.55; }
.photo-result { margin-top: 1rem; }
.photo-row { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.photo-thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(212,168,71,.3); }
.photo-swatches { display: grid; gap: .5rem; }
.photo-sw { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.photo-sw span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: inline-block; }
.photo-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }

.photo-match { max-width: 600px; margin: 1rem auto 0; }
.photo-match #photoBtn { margin-top: .75rem; }

/* ── Contrast: readable greys on the dark theme (body >= 4.5:1) ───────────── */
:root { --clr-mist: #b9b3aa; --text-muted: #b9b3aa; }
.hero-sub { color: #cfc8bd; }
.photo-note, .photo-match-sub { color: #c4bdb2; }

/* ── Nav: jobs-based, with a keyboard-accessible More menu ───────────────── */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' ▾'; font-size: .7em; }
.nav-more[open] > summary { color: var(--clr-ivory); background: rgba(255,255,255,0.06); }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; display: flex; flex-direction: column; gap: 2px; padding: .4rem; background: rgba(14,14,14,.98); border: 1px solid rgba(212,168,71,.28); border-radius: 12px; z-index: 120; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.nav-more-menu .nav-link { text-align: left; width: 100%; }
.nav-link:focus-visible, .nav-more > summary:focus-visible, .become-btn:focus-visible, .face-sw:focus-visible, .hero-try-chip:focus-visible { outline: 2px solid var(--clr-gold); outline-offset: 2px; }
@media (max-width: 900px) { .nav-links { overflow: visible; flex-wrap: wrap; justify-content: flex-end; } }

/* ── Hero: purpose first ─────────────────────────────────────────────────── */
.hero-tagline--purpose { font-family: var(--font-display, Georgia, serif); font-style: normal; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: .5rem 0 0; color: var(--clr-gold-light, #e8c96a); }
.hero-actions--primary { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.1rem 0 .4rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.hero-or { margin: 1.2rem 0 .3rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #b3ada3; }
.hero-try-chips { margin-top: 0; }

/* ── Become this look ────────────────────────────────────────────────────── */
.become-btn { display: block; width: 100%; margin-top: .6rem; padding: .55rem .8rem; border-radius: 999px; border: 1px solid var(--clr-terracotta, #c45c3c); background: rgba(196,92,60,.12); color: #f5d9cf; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.become-btn:hover { background: var(--clr-terracotta, #c45c3c); color: #fff; }
.trending-item { display: flex; flex-direction: column; min-width: 0; }
.become-btn--trend { margin-top: .35rem; }
.dna-look-item { display: flex; flex-direction: column; }
.sm-card .become-btn { width: auto; display: inline-block; margin-left: .4rem; }

/* ── My Face ─────────────────────────────────────────────────────────────── */
.face-wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem; }
.face-photo-row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.25rem; }
.face-photo-box { width: 150px; height: 190px; border-radius: 14px; border: 1px dashed rgba(212,168,71,.45); background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: .5rem; flex: 0 0 auto; }
.face-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.face-photo-empty { color: #b3ada3; font-size: .85rem; }
.face-photo-actions { flex: 1; min-width: 220px; }
.face-h { margin: .5rem 0 .2rem; font-family: var(--font-display, serif); }
.face-spectrum { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: .75rem 0; }
.face-sw { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.face-sw--on { border-color: #fff; box-shadow: 0 0 0 2px var(--clr-terracotta, #c45c3c); }
.face-chip { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; vertical-align: -0.2em; border: 1px solid rgba(255,255,255,.35); margin-right: .25rem; }
.face-chosen { margin: .25rem 0 1rem; color: #e6dfd3; }
.face-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.face-field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: #d6cfc4; }

/* ── Transform ───────────────────────────────────────────────────────────── */
#transformBody { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem; }
.tf-start { padding: 1.5rem; text-align: center; }
.tf-face-line { color: #e6dfd3; margin: .5rem 0; }
.tf-link { padding: .2rem .7rem; }
.tf-h { font-family: var(--font-display, serif); margin: 1rem 0 .75rem; }
.tf-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tf-pick { background: #111; border: 1px solid rgba(212,168,71,.2); border-radius: 12px; padding: .5rem .5rem .7rem; }
.tf-pick img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; display: block; }
.tf-pick-name { margin-top: .5rem; font-size: .9rem; color: #f0e9de; }
.tf-head { display: flex; gap: 1.25rem; padding: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tf-target-img { width: 240px; max-width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border: 1px solid rgba(212,168,71,.3); }
.tf-head-body { flex: 1; min-width: 240px; }
.tf-title { font-family: var(--font-display, serif); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .1rem 0 .4rem; }
.tf-desc { color: #d6cfc4; line-height: 1.6; }
.tf-because { color: var(--clr-gold-light, #e8c96a); font-style: italic; }
.tf-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 .4rem; }
.tf-progress { position: relative; height: 30px; border-radius: 999px; background: #1a1a1a; border: 1px solid rgba(212,168,71,.25); overflow: hidden; margin: 0 0 1rem; }
.tf-progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #c45c3c, #d4a847); transition: width .3s; }
.tf-progress-text { position: relative; display: block; text-align: center; line-height: 30px; font-size: .82rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.tf-stage { padding: 1.25rem; margin-bottom: 1rem; }
.tf-stage-title { margin: 0; font-family: var(--font-display, serif); font-size: 1.6rem; color: var(--clr-gold-light, #e8c96a); }
.tf-stage-sub { margin: .2rem 0 .8rem; color: #c4bdb2; }
.tf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tf-step label { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; border-radius: 10px; background: #111; border: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.tf-step input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; accent-color: #c45c3c; flex: 0 0 auto; }
.tf-step input:checked + .tf-step-body { opacity: .6; }
.tf-step-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.tf-area { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clr-gold, #d4a847); }
.tf-tech, .tf-why, .tf-prod, .tf-shade { font-size: .88rem; color: #d6cfc4; line-height: 1.5; }
.tf-why { color: #b9b3aa; font-style: italic; }
.tf-shade { color: #f0e9de; }
@media (max-width: 560px) { .tf-target-img { width: 100%; } }

/* ─── Ritual Library ───────────────────────────────────────────────────── */
.lib-wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.lib-communities { margin: 0 0 1rem; }
.lib-why { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lib-chip {
  border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--text-primary);
  padding: 0.4rem 0.9rem; border-radius: 999px; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.lib-chip:hover { border-color: var(--accent-light); }
.lib-chip--on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.lib-search-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin: 0.8rem 0 0.3rem; }
.lib-search {
  width: 100%; max-width: 560px; padding: 0.7rem 1rem; border-radius: 10px; font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: var(--text-primary);
}
.lib-results { margin: 1rem 0; }
.lib-results-count { color: var(--text-muted); font-size: 0.9rem; }
.lib-hits { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.lib-hit {
  display: grid; gap: 0.2rem; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
  padding: 0.7rem 0.9rem; color: var(--text-primary);
}
.lib-hit:hover { border-color: var(--accent-light); }
.lib-hit-guide { font-weight: 600; color: var(--accent-light); font-size: 0.85rem; }
.lib-hit-path { font-size: 0.75rem; color: var(--text-muted); }
.lib-hit-snippet { font-size: 0.9rem; line-height: 1.5; }
.lib-shelves { display: grid; gap: 1.6rem; margin-top: 1.4rem; }
.lib-shelf-title { font-size: 1.2rem; margin: 0 0 0.2rem; }
.lib-shelf-blurb { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.lib-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.lib-guide {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; text-align: left; cursor: pointer;
  font: inherit; color: var(--text-primary); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 0.9rem;
}
.lib-guide:hover, .lib-guide--open { border-color: var(--accent-light); background: rgba(255, 255, 255, 0.08); }
.lib-guide-title { font-weight: 600; line-height: 1.3; }
.lib-badge {
  display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-muted); font-weight: 500;
}
.lib-badge--yours { border-color: var(--accent-light); color: var(--accent-light); }
.lib-reader {
  scroll-margin-top: 6rem;
  margin: 1.2rem 0; padding: 1.2rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
}
.lib-reader-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lib-reader-head h3 { margin: 0; font-size: 1.3rem; }
.lib-section { margin: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.8rem; }
.lib-section h4 { display: inline; font-size: 1rem; margin: 0; }
.lib-section summary { cursor: pointer; list-style: revert; }
.lib-section--yours { border-left: 3px solid var(--accent-light); padding-left: 0.9rem; }
.lib-section p, .lib-section li { line-height: 1.6; font-size: 0.92rem; }
.lib-dl { margin: 0.4rem 0; }
.lib-dl dt { font-weight: 600; font-size: 0.85rem; color: var(--accent-light); margin-top: 0.6rem; }
.lib-dl dd { margin: 0.1rem 0 0 0.8rem; }
.lib-dl dd p { margin: 0.2rem 0; }
.lib-list { margin: 0.3rem 0; padding-left: 1.2rem; }
.lib-cards { display: grid; gap: 0.6rem; margin: 0.4rem 0; }
.lib-card { background: rgba(0, 0, 0, 0.18); border-radius: 10px; padding: 0.6rem 0.8rem; }
.lib-card h5 { margin: 0 0 0.3rem; font-size: 0.95rem; display: flex; gap: 0.5rem; align-items: center; }
.lib-step {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.75rem;
}
.lib-note { color: var(--accent-light); font-size: 0.9rem; }
.lib-loading { color: var(--text-muted); }
.lib-disclaimer { margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-muted); }
.lib-open { margin-top: 1rem; }

/* ─── Brow & Kohl Studio ───────────────────────────────────────────────── */
.st-wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.st-controls { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; margin-bottom: 1.2rem; }
.st-field { display: grid; gap: 0.25rem; font-size: 0.78rem; color: var(--text-muted); }
.st-field select {
  font: inherit; font-size: 0.9rem; color: var(--text-primary); background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 0.45rem 0.6rem; min-width: 150px;
}
.st-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--text-primary); }
.st-stage { display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .st-stage { grid-template-columns: 1fr; } }
.st-diagram { background: var(--bg-card); border-radius: 16px; padding: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.1); }
.st-svg { width: 100%; height: auto; display: block; }
.st-brow-strokes line { stroke-width: 1.6; stroke-linecap: round; }
.st-crease { fill: none; stroke: rgba(60, 35, 25, 0.45); stroke-width: 1.4; }
.st-water { fill: none; stroke-width: 2.2; opacity: 0.85; }
.st-h { font-size: 1rem; margin: 0 0 0.6rem; }
.st-looks { display: grid; gap: 0.5rem; }
.st-look {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text-primary); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 0.6rem 0.8rem;
}
.st-look:hover { border-color: var(--accent-light); }
.st-look--on { border-color: var(--accent); background: rgba(196, 92, 60, 0.18); }
.st-look-name { font-weight: 600; }
.st-plan { display: grid; gap: 1rem; margin-top: 1.4rem; }
.st-because { border-left: 3px solid var(--accent-light); padding-left: 0.9rem; color: var(--text-primary); font-size: 0.92rem; }
.st-because p { margin: 0.3rem 0; line-height: 1.5; }
.st-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 1rem 1.2rem; }
.st-card h4 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.st-sub { font-size: 0.75rem; color: var(--accent-light); font-weight: 500; margin-left: 0.4rem; }
.st-steps { padding-left: 1.2rem; margin: 0.4rem 0; }
.st-steps li { margin: 0.35rem 0; line-height: 1.55; font-size: 0.92rem; }
.st-products, .st-avoid { font-size: 0.88rem; color: var(--text-muted); }
.st-safety { background: rgba(212, 168, 71, 0.08); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.86rem; margin: 0.6rem 0; }
.st-safety ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }

/* Hair Colour Lab */
.hl-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.hl-panel { margin: 0; background: #141414; border: 1px solid #2a2a2a; border-radius: 14px; padding: 10px; }
.hl-panel svg { width: 100%; height: auto; display: block; }
.hl-panel figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 0.85rem; color: #cfc6bd; }
.hl-panel figcaption strong { color: #f3ede6; }
.hl-summary { background: #141414; border: 1px solid #2a2a2a; border-left: 3px solid #c8a24a; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; color: #e8e1d9; }
.hl-summary p { margin: 6px 0; }
.hl-big { font-size: 1.25rem; font-weight: 600; color: #f6efe7; }
.hl-warn { border-color: #6b3a2a; }
.hl-tabs { display: flex; gap: 8px; max-width: 1040px; margin: 0 auto 16px; padding: 0 1.25rem; }
.hl-tab { background: #141414; color: #cfc6bd; border: 1px solid #2a2a2a; border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; }
.hl-tab.active { background: #c8a24a; color: #111; border-color: #c8a24a; font-weight: 600; }
.hj-timeline { background: #141414; border: 1px solid #2a2a2a; border-radius: 14px; padding: 12px; margin: 18px 0; }
.hj-timeline svg { width: 100%; height: auto; display: block; }
.sk-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.sk-tier { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-left: 3px solid #4f7f6a; margin: 6px 0; background: rgba(255, 255, 255, 0.03); border-radius: 6px; }
.sk-tier.sk-care { border-color: #c8a24a; }
.sk-tier.sk-expert { border-color: #b8743a; }
.sk-tier.sk-avoid { border-color: #b84a4a; }
.cx-preview { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 620px; }
.cx-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); vertical-align: middle; margin-right: 4px; }
.ns-pick { cursor: pointer; padding: 0; }
.ns-pick.ns-on { outline: 2px solid #f5f5f5; outline-offset: 2px; }

/* Hair Removal Planner: method list with verdict dots */
.hr-compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.hr-compare li { display: flex; align-items: center; gap: 0.5rem; }
.hr-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; flex: none; }
.hr-flag { color: #e9c46a; }
