/* ===== INTRO SCREEN ===== */
.intro-container {
  text-align: center;
  padding: 60px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-title {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.intro-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.intro-seasons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.intro-note {
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.intro-privacy-note {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.intro-features {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-k-beauty {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -8px;
}

/* ===== AI CAMERA SCREEN ===== */
.ai-container {
  padding: 24px 20px 40px;
  min-height: 100vh;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
}

.camera-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.face-guide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.face-oval {
  width: 55%;
  height: 60%;
  border: 3px dashed rgba(255,255,255,.5);
  border-radius: 50%;
  position: relative;
}

.face-oval::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.3);
  font-size: 24px;
}

.face-guide-text {
  color: rgba(255,255,255,.7);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Scan animation */
.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-rose), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--brand-gold), 0 0 24px var(--brand-rose);
  animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
  0%   { top: 15%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}

/* AI tips */
.ai-tips {
  background: var(--brand-gold-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.ai-tips p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ai-tips ul {
  list-style: none;
  padding: 0;
}

.ai-tips li::before {
  content: '✓ ';
  color: var(--brand-gold);
  font-weight: 700;
}

/* Camera controls */
.ai-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: all .2s var(--ease-out-3);
}

.ai-capture-btn {
  width: 72px;
  height: 72px;
  background: var(--brand-gradient);
  border-radius: 50%;
  position: relative;
  box-shadow: var(--shadow-3);
}

.ai-capture-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-4);
}

.ai-capture-btn:active {
  transform: scale(.95);
}

.capture-ring {
  display: block;
  width: 56px;
  height: 56px;
  border: 3px solid var(--bg-card);
  border-radius: 50%;
}

.ai-alt-btns {
  display: flex;
  gap: 12px;
}

.ai-upload-btn, .ai-switch-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-height: 48px;
}

.ai-upload-btn:hover, .ai-switch-btn:hover {
  border-color: var(--brand-gold);
  background: var(--brand-gold-light);
}

/* After capture actions */
.ai-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.ai-retake-btn {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.ai-retake-btn:hover {
  border-color: var(--brand-rose);
}

.ai-analyze-btn {
  flex: 1;
  max-width: 240px;
  justify-content: center;
}

/* Detected colors */
.detected-colors {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
  text-align: center;
}

.detected-colors h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.detected-row {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.detected-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.detected-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border-default);
  transition: all .5s var(--ease-out-5);
}

.detected-item span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

/* No camera fallback */
.ai-nocamera {
  text-align: center;
  padding: 40px 20px;
}

.ai-nocamera p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.ai-text-btn {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  text-decoration: underline;
}

/* ===== QUIZ SCREEN ===== */
.quiz-container {
  padding: 24px 20px 40px;
  min-height: 100vh;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* 질문 전환 애니메이션 (Design Kit §8-2) */
@keyframes questionEnter {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes questionExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-24px);
  }
}

#question-area {
  animation: questionEnter 0.4s var(--ease-out-5) both;
}

#question-area.exiting {
  animation: questionExit 0.3s var(--ease-out-3) both;
}

.question-text {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.question-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== LOADING SCREEN (Design Kit §8-6) ===== */
.loading-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.spinner-ring {
  width: 80px;
  height: 80px;
  border: 4px solid var(--border-default);
  border-top-color: var(--brand-gold);
  border-right-color: var(--brand-rose);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

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

.spinner-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.loading-title {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.load-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  opacity: .3;
  transition: all .4s var(--ease-out-3);
}

.load-step .step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all .3s var(--ease-out-3);
  flex-shrink: 0;
}

.load-step.active {
  opacity: 1;
  color: var(--brand-gold);
  font-weight: 600;
}

.load-step.active .step-icon {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: white;
  animation: pulse 1s var(--ease-in-out-2) infinite;
}

.load-step.done {
  opacity: .6;
  color: var(--text-primary);
}

.load-step.done .step-icon {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== RESULT SCREEN ===== */
.result-container {
  padding: 0 20px 60px;
}

/* 결과 헤더 — 글래스모피즘 (Design Kit §7-3) */
.result-header {
  text-align: center;
  padding: 48px 24px 36px;
  margin: 0 -20px 32px;
  background: var(--season-gradient);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* 글래스 오버레이 */
.result-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 소프트 블롭 장식 (Design Kit §11-3) */
.result-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  top: -40px;
  right: -60px;
  filter: blur(40px);
}

/* 헤더 내부 콘텐츠 z-index */
.result-header > * {
  position: relative;
  z-index: 1;
}

/* 결과 스태거드 리빌 (Design Kit §8-3) */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header .result-badge    { animation: revealUp 0.5s var(--ease-out-5) 0.1s both; }
.result-header .result-emoji    { animation: revealUp 0.5s var(--ease-out-5) 0.25s both; }
.result-header .result-baseseason-badge { animation: revealUp 0.5s var(--ease-out-5) 0.35s both; }
.result-header .result-season   { animation: revealUp 0.6s var(--ease-out-5) 0.5s both; }
.result-header .result-en-name  { animation: revealUp 0.5s var(--ease-out-5) 0.65s both; }
.result-header .result-subtitle { animation: revealUp 0.5s var(--ease-out-5) 0.75s both; }
.result-header .result-desc     { animation: revealUp 0.5s var(--ease-out-5) 0.9s both; }

.result-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}

.result-season {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--season-text-on-gradient);
  -webkit-text-fill-color: white;
  margin-bottom: 8px;
}

.result-subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 16px;
}

.result-en-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  letter-spacing: .5px;
}

.result-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* Axis bar chart */
.axis-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.axis-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.axis-label-left,
.axis-label-right {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  width: 40px;
  flex-shrink: 0;
}

.axis-label-left { text-align: right; }
.axis-label-right { text-align: left; }

.axis-bar-wrap {
  flex: 1;
  height: 28px;
  background: #f0ebe5;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.axis-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(0,0,0,.15);
  transform: translateX(-50%);
}

.axis-bar {
  position: absolute;
  top: 2px;
  height: calc(100% - 4px);
  border-radius: var(--radius-full);
  background: var(--season-gradient);
  transition: all 1.2s var(--ease-out-5);
}

/* Palette hint */
.palette-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Palette groups */
.palette-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.palette-group-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.palette-group-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.palette-group-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Color palette */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.palette-avoid-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.palette-avoid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.swatch-avoid {
  aspect-ratio: 1;
  border-radius: 8px;
  position: relative;
  opacity: .55;
  border: 2px solid rgba(0,0,0,.06);
}

.swatch-avoid::after {
  content: '✕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Makeup guide */
.makeup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.makeup-item {
  padding: 16px;
  background: var(--season-light);
  border-radius: var(--radius-sm);
}

.makeup-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.makeup-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.makeup-colors {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.makeup-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.08);
}

/* Clothing */
.clothing-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clothing-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--season-light);
  border-radius: var(--radius-sm);
}

.clothing-cat {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 70px;
}

.clothing-colors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.clothing-tag {
  font-size: var(--text-sm);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
}

/* Hair */
.hair-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hair-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--season-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}

.hair-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.08);
}

/* Jewelry */
.jewelry-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
}

/* Celebrities */
.celeb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.celeb-tag {
  padding: 8px 16px;
  background: var(--season-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--season-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all .2s var(--ease-out-3);
  border: 1px solid transparent;
}

.product-item:hover {
  border-color: var(--season-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.product-emoji {
  font-size: 28px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-brand {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--season-primary);
  margin-top: 8px;
}

/* Cross link */
.cross-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--brand-gold-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all .2s var(--ease-out-3);
}

.cross-link:hover {
  background: #FFEFD5;
  transform: translateX(4px);
}

.cross-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cross-link div {
  flex: 1;
}

.cross-link strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.cross-link p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ===== STYLE GUIDE TABS ===== */
.style-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.style-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 2px solid var(--border-default);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text-secondary);
  transition: all .2s;
  white-space: nowrap;
}

.style-tab.active {
  border-color: var(--season-primary, var(--brand-gold));
  background: var(--season-light, #FFF8F0);
  color: var(--season-primary, var(--brand-gold));
}

.style-tab:hover:not(.active) {
  border-color: var(--text-secondary);
}

.style-tab-content {
  animation: fadeIn 0.25s ease-out;
}

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

.accessories-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 20px 0 8px;
}

/* ===== MORE SECTION (collapsible) ===== */
.more-section {
  margin-top: 8px;
}

.more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  list-style: none;
  transition: all .2s;
  text-align: center;
}

.more-toggle::-webkit-details-marker { display: none; }

.more-toggle::after {
  content: '▼';
  font-size: 12px;
  transition: transform .2s;
}

.more-section[open] .more-toggle::after {
  transform: rotate(180deg);
}

.more-section[open] .more-toggle {
  border-color: var(--season-primary, var(--brand-gold));
  color: var(--season-primary, var(--brand-gold));
  margin-bottom: 12px;
}

.more-section .card {
  animation: fadeIn 0.3s ease-out;
}

/* Retake */
.retake-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* Compare card */
.compare-card .compare-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.compare-manual {
  margin-top: 16px;
}

.compare-manual p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.compare-manual select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.compare-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--season-light);
  border-radius: var(--radius-sm);
  text-align: center;
}

.compare-score {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: 48px;
  font-weight: 800;
  background: var(--season-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-comment {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 8px;
}

/* Email gate */
.email-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.email-gate.hidden {
  display: none;
}

.email-gate-inner {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-5);
}

.email-gate-inner h3 {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-gate-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.email-gate-inner input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-base);
  margin-bottom: 12px;
}

.email-gate-inner input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-gold);
}

.skip-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  text-decoration: underline;
}

.skip-btn:hover {
  color: var(--text-primary);
}

/* ===== CONFIDENCE CARD (A1) ===== */
.confidence-bars { display: flex; flex-direction: column; gap: 12px; }
.confidence-row {
  display: flex; align-items: center; gap: 12px;
}
.confidence-emoji { font-size: 20px; flex-shrink: 0; }
.confidence-name { font-size: 14px; font-weight: 600; min-width: 100px; color: var(--text-primary); }
.confidence-track {
  flex: 1; height: 24px; background: #f0ebe5;
  border-radius: var(--radius-full); overflow: hidden;
}
.confidence-fill {
  height: 100%; border-radius: var(--radius-full);
  background: var(--season-gradient);
  transition: width 1s var(--ease-out-5);
}
.confidence-pct { font-size: 14px; font-weight: 700; color: var(--season-primary, var(--brand-gold)); min-width: 40px; text-align: right; }
.confidence-tip {
  margin-top: 12px; font-size: 13px; color: var(--text-secondary);
  padding: 10px 14px; background: var(--season-light, #FFF8F0);
  border-radius: var(--radius-sm); line-height: 1.5;
}

/* ===== EDUCATION CARD (B5) ===== */
.education-card .edu-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border-default);
}
.education-card .edu-item:last-child { border-bottom: none; }
.edu-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.edu-item strong { font-size: 14px; display: block; margin-bottom: 4px; color: var(--text-primary); }
.edu-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== STORY CARD (A3) ===== */
.story-population {
  font-size: 15px; font-weight: 700; color: var(--season-primary, var(--brand-gold));
  margin-bottom: 12px;
}
.story-text { font-size: 14px; line-height: 1.7; color: var(--text-primary); margin-bottom: 16px; }
.story-traits { display: flex; flex-direction: column; gap: 8px; }
.story-trait {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-primary);
  padding: 8px 14px; background: var(--season-light, #FFF8F0);
  border-radius: var(--radius-sm);
}
.story-trait::before { content: '✨'; }

/* ===== BEST vs WORST (B2) ===== */
.bw-container { min-height: 180px; }
.bw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bw-item {
  padding: 20px 16px; border-radius: var(--radius-sm);
  text-align: center; transition: opacity 0.3s;
}
.bw-item.best { background: var(--season-light, #FFF8F0); border: 2px solid var(--season-primary, var(--brand-gold)); }
.bw-item.worst { background: #f5f0eb; border: 2px solid #d4ccc4; }
.bw-swatch {
  width: 64px; height: 64px; border-radius: 12px;
  margin: 0 auto 12px; border: 2px solid rgba(0,0,0,.08);
}
.bw-label { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.bw-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.bw-reason { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.bw-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px;
}
.bw-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border-default); background: var(--bg-card);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--text-primary);
}
.bw-nav button:hover { border-color: var(--season-primary); background: var(--season-light); }
.bw-counter { font-size: 14px; font-weight: 600; color: var(--text-secondary); }

/* ===== ADJACENT SEASONS (A4) ===== */
.adjacent-intro { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.adjacent-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.adjacent-item {
  padding: 14px 16px; background: var(--season-light, #FFF8F0);
  border-radius: var(--radius-sm);
}
.adjacent-season-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.adjacent-mini-palette { display: flex; gap: 6px; }
.adjacent-mini-swatch {
  width: 28px; height: 28px; border-radius: 6px;
  border: 2px solid rgba(0,0,0,.06);
}
.adjacent-tip { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== NAIL CARD (B4) ===== */
.nail-list {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.nail-tag {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--season-light);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 500;
}
.nail-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.08);
}

/* ===== DOWNLOAD DROPDOWN (B1/B3) ===== */
.download-dropdown { position: relative; width: 100%; margin-top: 12px; }
.download-dropdown .share-download-btn { width: 100%; }
.download-menu {
  position: absolute; bottom: 100%; left: 0; right: 0;
  background: var(--bg-card); border: 2px solid var(--border-default);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-3); z-index: 10; margin-bottom: 4px;
}
.download-menu button {
  display: block; width: 100%; padding: 12px 16px; text-align: left;
  border: none; background: none; font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; cursor: pointer; color: var(--text-primary);
  transition: background .15s;
}
.download-menu button:hover { background: var(--season-light, #FFF8F0); }
.download-menu button + button { border-top: 1px solid var(--border-default); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 12px 24px; background: #333; color: #fff;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-4); z-index: 9999;
  opacity: 0; transition: all .3s var(--ease-out-5);
  pointer-events: none; white-space: nowrap;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ===== SAVED RESULT BANNER (A5) ===== */
.saved-result-banner {
  width: 100%; max-width: 360px; margin-top: 16px;
  padding: 14px 18px; background: var(--bg-card);
  border: 2px solid var(--brand-gold); border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.saved-emoji { font-size: 28px; }
.saved-info { flex: 1; min-width: 120px; }
.saved-label { font-size: 12px; color: var(--text-secondary); display: block; }
.saved-name { font-size: 15px; color: var(--text-primary); }
.saved-actions { display: flex; gap: 8px; }
.saved-view-btn, .saved-redo-btn {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif; border: none;
}
.saved-view-btn { background: var(--brand-gradient); color: #fff; }
.saved-redo-btn { background: var(--bg-primary); color: var(--text-secondary); border: 1px solid var(--border-default); }

/* ===== DIGITAL DRAPING ===== */
.draping-card { overflow: hidden; }

.draping-viewport {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

#draping-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.draping-loading, .draping-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff; text-align: center;
  gap: 12px; padding: 20px;
}

.draping-spinner {
  width: 40px; height: 40px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.draping-error p { font-size: 14px; line-height: 1.5; }

.draping-retry-btn {
  padding: 10px 24px;
  background: #fff; color: #333;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Be Vietnam Pro', sans-serif;
}

.draping-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}

.draping-tab {
  flex: 1; padding: 10px;
  border: 2px solid var(--border-default);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text-secondary);
  transition: all .2s;
}

.draping-tab.active[data-mode="best"] {
  border-color: #4CAF50; background: #E8F5E9; color: #2E7D32;
}

.draping-tab.active[data-mode="avoid"] {
  border-color: #e57373; background: #FFEBEE; color: #C62828;
}

.draping-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}

.draping-nav > button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border-default); background: var(--bg-card);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--text-primary);
}
.draping-nav > button:hover {
  border-color: var(--season-primary); background: var(--season-light);
}

.draping-color-info {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-primary);
}

.draping-color-dot {
  width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.08);
}

#draping-color-counter {
  font-size: 13px; color: var(--text-secondary); font-weight: 600;
}

.draping-privacy {
  text-align: center; font-size: 12px;
  color: var(--text-secondary); margin-top: 14px;
}

.draping-cta-card { text-align: center; }
.draping-cta-card p {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 16px; line-height: 1.5;
}

/* ===== RESPONSIVE — SCREENS ===== */
@media (max-width: 480px) {
  .intro-title {
    font-size: 28px;
  }

  .intro-features {
    flex-direction: column;
    gap: 12px;
  }

  .question-text {
    font-size: 19px;
  }

  .palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .palette-avoid {
    grid-template-columns: repeat(4, 1fr);
  }

  .makeup-grid {
    grid-template-columns: 1fr;
  }

  .style-tabs {
    gap: 4px;
  }

  .style-tab {
    padding: 7px 10px;
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .bw-pair {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bw-swatch {
    width: 48px;
    height: 48px;
  }

  .confidence-name {
    min-width: 80px;
    font-size: 13px;
  }

  .result-season {
    font-size: 26px;
  }

  .result-emoji {
    font-size: 56px;
  }

  .result-header {
    padding: 36px 16px 28px;
  }

  .camera-wrap {
    aspect-ratio: 3/4;
  }

  .ai-capture-btn {
    width: 64px;
    height: 64px;
  }

  .capture-ring {
    width: 48px;
    height: 48px;
  }

  .detected-dot {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .intro-container {
    padding: 80px 20px 60px;
  }

  .palette-grid {
    gap: 12px;
  }

  .result-header {
    padding: 56px 32px 40px;
  }
}
