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

:root {
  --dark: #1a1a1a;
  --dark-card: #2a2a2a;
  --accent: #b5704d;
  --accent-hover: #9a5d3e;
  --accent-light: rgba(181,112,77,0.08);
  --orange: #e86c2e;
  --beige: #f0ebe4;
  --white: #fff;
  --bg: #fafaf8;
  --text: #2a2a2a;
  --text-light: #888;
  --text-muted: #aaa;
  --border: #e8e4df;
  --border-light: #f0ede8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============================================================
   QUIZ FLOW
   ============================================================ */

#quiz-flow {
  position: relative;
  min-height: 100vh;
}

/* Progress bar */
.quiz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-light);
  z-index: 100;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz steps */
.quiz-step {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quiz-step.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.quiz-step.exit-up {
  opacity: 0;
  transform: translateY(-30px);
}

.quiz-step-inner {
  max-width: 560px;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
}

/* Welcome step */
.welcome-step {
  max-width: 480px;
}
.welcome-logo {
  font-family: 'Poiret One', cursive;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.2s forwards;
}
.welcome-title {
  font-family: 'Poiret One', cursive;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.4s forwards;
}
.welcome-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.6s forwards;
}
.welcome-skip {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeSlideUp 0.8s 1s forwards;
}
.welcome-skip span {
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.welcome-skip span:hover {
  border-bottom-color: var(--accent);
}

/* Quiz CTA */
.quiz-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s forwards;
}
.quiz-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quiz-cta-secondary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Step number */
.quiz-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Question */
.quiz-question {
  font-family: 'Poiret One', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.quiz-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Option cards (style selection) */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quiz-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-option-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.quiz-option-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
}
.quiz-option-emoji {
  font-size: 2.2rem;
  line-height: 1;
}
.quiz-option-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.quiz-option-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Option pills (season/lifestyle) */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-option-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.quiz-option-pill:hover {
  border-color: var(--accent);
}
.quiz-option-pill.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
}
.quiz-option-pill span {
  font-size: 1.2rem;
}

/* Color options */
.quiz-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}
.quiz-color {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.quiz-color[data-value="#FFFFFF"] {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), inset 0 0 0 1px #e0e0e0;
}
.quiz-color:hover {
  transform: scale(1.15);
}
.quiz-color.selected {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(181,112,77,0.3);
}

/* Quiz nav */
/* Color palette swatches */
.quiz-color-palette {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}
.quiz-color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.quiz-color-swatch.light { box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 0 0 1px #e0dcd8; }
.quiz-color-swatch:hover { transform: scale(1.08); }
.quiz-color-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light), 0 2px 8px rgba(0,0,0,0.12); }
.swatch-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
}
.quiz-color-swatch.light .swatch-label { color: rgba(0,0,0,0.55); text-shadow: none; }

/* Gender options — 2 big pills */
.quiz-options-gender { gap: 1rem; }
.quiz-options-gender .quiz-option-pill {
  font-size: 1rem;
  padding: 1.1rem 2rem;
  justify-content: center;
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.quiz-back {
  padding: 0.7rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Mulish', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}
.quiz-back:hover { color: var(--text); }
.quiz-next {
  padding: 0.85rem 2.5rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-next:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-1px);
}
.quiz-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Analysis step */
.quiz-analysis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.analysis-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.analysis-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.8rem;
  color: var(--dark);
}
.analysis-sub {
  font-size: 0.9rem;
  color: var(--text-light);
}
.analysis-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 3px;
  animation: dotPulse 1.4s infinite;
}
.analysis-dots span:nth-child(2) { animation-delay: 0.2s; }
.analysis-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Result step */
.quiz-result {
  max-width: 640px;
  text-align: center;
}
.result-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.3s forwards;
}
.result-title {
  font-family: 'Poiret One', cursive;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.5s forwards;
}
.result-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.7s forwards;
}
.result-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.9s forwards;
}
.result-item {
  padding: 1rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s;
}
.result-item:hover { transform: translateY(-2px); }
.result-item-emoji { font-size: 2rem; }
.result-item-name {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.result-item-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 0.3rem;
  border: 1px solid #eee;
}

/* Result boards (quiz result mood boards) */
.result-items:has(.result-boards) {
  display: block;
}
.result-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}
.result-board-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  transition: all var(--transition);
}
.result-board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.result-board-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.result-board-card:hover img {
  transform: scale(1.05);
}
.result-board-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.8rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}
.result-board-title {
  font-family: 'Poiret One', cursive;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.result-tips {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 1.1s forwards;
}
.result-tips h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.result-tips ul { list-style: none; padding: 0; }
.result-tips li {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: var(--text);
  line-height: 1.5;
}
.result-tips li::before {
  content: "— ";
  color: var(--accent);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 0.6s 1.3s forwards;
}
.result-actions .quiz-cta {
  opacity: 1;
  animation: none;
}

/* ============================================================
   MAIN APP
   ============================================================ */

/* Header */
.header {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.header-inner { max-width: 800px; margin: 0 auto; }
.logo {
  font-family: 'Poiret One', cursive;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.header-title {
  font-family: 'Poiret One', cursive;
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0.8rem 0 0.4rem;
  letter-spacing: 1px;
}
.header-sub {
  font-size: 0.9rem;
  color: #999;
  font-weight: 300;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tab {
  padding: 1rem 1.8rem;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.tab:hover { color: var(--accent); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sections */
.section {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  animation: fadeIn 0.4s ease;
}
.section.active { display: block; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.filter-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Mulish', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Capsules Grid */
.capsules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.capsule-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.capsule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.capsule-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--border-light);
  aspect-ratio: 3/2;
}
.capsule-preview-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--white);
}
.capsule-info {
  padding: 1.2rem 1.4rem;
}
.capsule-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.badge-casual { background: #f0f7f0; color: #4a8c5c; }
.badge-business { background: #eef3fb; color: #3d6db5; }
.badge-minimal { background: #f5f0f8; color: #8b5fb5; }
.badge-romantic { background: #fdf0f3; color: #c45c72; }
.capsule-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.capsule-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}
.capsule-items-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* Capsule detail overlay */
.capsule-detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
.capsule-detail.hidden { display: none; }
.capsule-detail-inner {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: slideUp 0.4s ease;
}
.detail-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.detail-close:hover { color: var(--text); }
.detail-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.detail-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.detail-item-emoji { font-size: 2.2rem; }
.detail-item-name {
  font-size: 0.72rem;
  color: var(--text);
  margin-top: 0.4rem;
}
.detail-item-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 0.3rem;
  border: 1px solid #eee;
}
.detail-tips {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.detail-tips h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.detail-tips ul { list-style: none; padding: 0; }
.detail-tips li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--text);
}
.detail-tips li::before {
  content: "— ";
  color: var(--accent);
}

/* (wardrobe section removed) */

/* Buttons */
.btn-primary {
  padding: 0.75rem 1.8rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: #ddd;
  cursor: not-allowed;
  transform: none;
}
.btn-full { width: 100%; }

/* Outfits */
.outfits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.outfit-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 1.5rem 1.8rem;
  transition: all var(--transition);
}
.outfit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.outfit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.outfit-occasion-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--accent-light);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.outfit-season-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.outfit-card-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.outfit-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.outfit-item-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.outfit-item-row:hover {
  background: var(--accent-light);
}
.outfit-item-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.outfit-item-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.outfit-item-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.25rem 0.7rem;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.outfit-item-link:hover {
  background: var(--accent);
  color: var(--white);
}
.outfit-tip {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   INSPIRATION BOARDS (Vogue Editorial)
   ============================================================ */

.inspiration-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.inspiration-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.35rem 1.2rem;
  margin-bottom: 1.2rem;
}
.inspiration-title {
  font-family: 'Poiret One', cursive;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.inspiration-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* Masonry Grid */
.inspiration-grid {
  columns: 2;
  column-gap: 1.5rem;
}

.inspiration-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.inspiration-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.inspiration-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.inspiration-card:hover img {
  transform: scale(1.03);
}

.inspiration-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  color: var(--white);
  transform: translateY(0);
  transition: all var(--transition);
}

.inspiration-card-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
  backdrop-filter: blur(4px);
}

.inspiration-card-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.inspiration-card-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}
.inspiration-card:hover .inspiration-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
.lightbox.hidden { display: none; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  z-index: 210;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.lightbox-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  cursor: pointer;
  z-index: 210;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  font-weight: 300;
}
.lightbox-nav:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  flex-shrink: 1;
  min-height: 0;
}
.lightbox-info {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--white);
}
.lightbox-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 0.6rem;
}
.lightbox-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.lightbox-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}
.footer a { color: var(--accent); text-decoration: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .welcome-title { font-size: 2.4rem; }
  .quiz-question { font-size: 1.5rem; }
  .quiz-step-inner { padding: 2rem 1.2rem; }
  .quiz-options-grid { grid-template-columns: 1fr; }
  .quiz-color { width: 40px; height: 40px; }

  .header-title { font-size: 1.6rem; }
  .tab { padding: 0.8rem 1rem; font-size: 0.68rem; letter-spacing: 1px; }
  .capsules-grid { grid-template-columns: 1fr; }
  .outfits-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .result-items { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .result-boards { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .result-board-title { font-size: 0.75rem; }
  .inspiration-grid { columns: 1; }
  .inspiration-title { font-size: 1.8rem; }
  .lightbox-nav { display: none; }
  .lightbox-content { max-width: 95vw; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}
