/* Design System & Base Styling */
:root {
  /* Dark Theme as Default */
  --bg-color: #0b111e;
  --card-bg: rgba(20, 30, 50, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.3);
  
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent-color: #6366f1;
  --success-color: #10b981;
  --danger-color: #f43f5e;

  /* Season UI Tones */
  --spring-color: #ff9f43;
  --spring-bg: linear-gradient(135deg, #ff9f43 0%, #ff5252 100%);
  --summer-color: #4ea8de;
  --summer-bg: linear-gradient(135deg, #4ea8de 0%, #5e60ce 100%);
  --autumn-color: #d97706;
  --autumn-bg: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  --winter-color: #a855f7;
  --winter-bg: linear-gradient(135deg, #a855f7 0%, #4c1d95 100%);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(99, 102, 241, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(99, 102, 241, 0.08);
  --shadow-color: rgba(99, 102, 241, 0.06);
  --primary-glow: rgba(99, 102, 241, 0.06);
}

/* Reset and Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* Ambient Animated Glow Background */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  transition: var(--transition-smooth);
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatGlow 25s infinite alternate ease-in-out;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: floatGlow 30s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlow 20s infinite alternate ease-in-out 5s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -80px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* Helper Utilities & Grid */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.w-full { width: 100%; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.mt-auto { margin-top: auto !important; }

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-secondary.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-outline-small {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-outline-small:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-circle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: var(--transition-smooth);
}

/* Layout Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* Header styling */
.app-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  gap: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: translateY(-1px);
}

/* InfoFind App-Style Icon */
.infofind-app-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.logo:hover .infofind-app-icon {
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.2);
}

.infofind-icon-inner {
  width: 26px;
  height: 26px;
  border: 2px solid #ff4d4d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infofind-i {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #ff4d4d;
  line-height: 1;
  margin-bottom: 1px;
}

/* Logo Text Area */
.logo-text-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-title {
  font-family: 'Noto Sans KR', 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-x {
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.5;
  margin: 0 4px;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
  line-height: 1;
  opacity: 0.8;
}

/* Steps breadcrumb navigation indicator */
.step-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 40px;
}

.step-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  opacity: 0.7;
}

.step-nav-item:hover {
  color: var(--text-primary);
  opacity: 1;
}

.step-nav-item.active {
  color: var(--text-primary);
  opacity: 1;
}

.step-nav-item.active .step-num {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px var(--primary-glow);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

.step-nav-arrow {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Main Container Transition */
.app-main {
  flex: 1;
  padding: 40px 0;
  display: grid;
  align-items: center;
  position: relative;
}

.app-main section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-main section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 1. HERO SECTION */
#hero-section .hero-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Hero path cards selector */
.hero-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 720px;
  margin: 40px auto 50px auto;
}

.path-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.path-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.path-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.path-card:hover .path-icon-wrapper {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.path-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.path-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.path-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(102, 102, 241, 0.15);
  color: var(--accent-color);
}

.path-badge.grey {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--accent-color);
}

/* 2. QUIZ SECTION */
#quiz-section .quiz-card {
  max-width: 760px;
  margin: 0 auto;
}

/* Progress bar */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar-wrapper {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-status {
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Question Header */
.question-container {
  margin-bottom: 35px;
}

.question-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.question-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.question-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Options Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.option-card.selected {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--primary-glow);
}

.option-color-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.option-text-container {
  flex: 1;
}

.option-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Option select radio indicator */
.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.option-card.selected .option-indicator {
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.option-card.selected .option-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.quiz-navigation {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* 3. DRAPING SECTION */
#drape-section .drape-card {
  max-width: 1000px;
  margin: 0 auto;
}

.drape-mode-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.drape-mode-selector button {
  flex: 1;
  max-width: 200px;
}

.section-header {
  margin-bottom: 30px;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
}

.drape-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Camera viewport and mock drape clothing overlay */
.camera-drape-container {
  position: relative;
  aspect-ratio: 4/5;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid var(--border-color);
}

/* Frame overlay (Single Drape) */
.drape-overlay-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.drape-overlay-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: var(--drape-color, #ff6b6b);
  border-radius: 50% 50% 0 0 / 40px 40px 0 0;
  transition: background-color 0.4s ease;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

.drape-overlay-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 12px solid var(--drape-color, #ff6b6b);
  border-radius: 20px;
  transition: border-color 0.4s ease;
}

/* Split Drape Overlay CSS */
.drape-overlay-split-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  display: flex;
}

.split-side {
  width: 50%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.split-left {
  border: 12px solid var(--left-drape-color, #ff6b6b);
  border-right: none;
  border-radius: 20px 0 0 20px;
}

.split-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: var(--left-drape-color, #ff6b6b);
  border-radius: 100% 0 0 0 / 40px 0 0 0;
  transition: background-color 0.4s ease;
  box-shadow: -2px -4px 6px rgba(0,0,0,0.15);
}

.split-right {
  border: 12px solid var(--right-drape-color, #4ea8de);
  border-left: none;
  border-radius: 0 20px 20px 0;
}

.split-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 25%;
  background-color: var(--right-drape-color, #4ea8de);
  border-radius: 0 100% 0 0 / 0 40px 0 0;
  transition: background-color 0.4s ease;
  box-shadow: 2px -4px 6px rgba(0,0,0,0.15);
}

.split-divider-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  z-index: 6;
}

.split-label {
  position: absolute;
  top: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  z-index: 7;
}

.split-label.left { left: 20px; }
.split-label.right { right: 20px; }

.preview-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  transition: filter 0.3s ease;
}

.preview-viewport video,
.preview-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* Calibration Sliders Panel Overlay */
.calibration-panel {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  width: 240px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeInPanel 0.4s ease forwards;
}

.calibration-panel h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 8px;
}

.calibration-row {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.calibration-row input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.calibration-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 6px var(--primary-glow);
}

/* 촬영 가이드라인 스타일 */
.camera-guideline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* 얼굴 모양 타원 가이드 (vignette 효과 포함) */
.guide-face-oval {
  width: 55%;
  height: 55%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50% / 55%;
  position: absolute;
  top: 15%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35); /* 주변부 비네팅 어둡게 처리 */
}

/* 중앙 분할 정렬 가이드 라인 */
.guide-center-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
}

/* 안내 텍스트 */
.guide-text {
  position: absolute;
  bottom: 28%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  letter-spacing: -0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 토글 버튼 활성화 상태 */
.btn-circle.active {
  background: var(--accent-color) !important;
  color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
}

/* Placeholder for Camera stream or upload */
.media-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: #121824;
  color: var(--text-secondary);
}

.placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.media-placeholder p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.placeholder-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.media-controls {
  position: absolute;
  bottom: 30%;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Right side panel control panels */
.drape-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.control-panel-group {
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: fadeInPanel 0.4s ease forwards;
}

.control-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel-tip {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.season-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.season-toggle-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.season-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
}

.season-toggle-btn.active {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.color-dot.spring { background-color: var(--spring-color); }
.color-dot.summer { background-color: var(--summer-color); }
.color-dot.autumn { background-color: var(--autumn-color); }
.color-dot.winter { background-color: var(--winter-color); }

/* Split Mode selectors grid */
.split-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.split-side-select {
  padding: 12px;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.split-side-select:hover {
  background: rgba(255, 255, 255, 0.05);
}

.split-side-select.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Evaluation box dropdown */
.select-box {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.select-box:focus {
  border-color: var(--accent-color);
}

.select-box option {
  background: var(--bg-color);
  color: var(--text-primary);
}

/* Swipe swatch slider inside draping console */
.drape-detail-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.drape-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.drape-swatch:hover {
  transform: scale(1.08);
}

.drape-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), inset 0 2px 4px rgba(255,255,255,0.2);
}

.drape-submit-wrapper {
  margin-top: 10px;
}

.drape-navigation-helpers {
  margin-top: 15px;
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
}

/* 4. RESULTS SECTION */
#results-section .results-card {
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}

/* Banner displaying result category */
.result-banner {
  padding: 50px 40px;
  color: #fff;
  position: relative;
  background: var(--summer-bg); /* Default seasonal color, updated by js */
  transition: var(--transition-smooth);
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.result-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.result-summary {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Attribute Scorecard Meters Styling */
.result-meters-container {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.meter-label {
  opacity: 0.95;
}

.meter-value-txt {
  opacity: 0.85;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
}

.meter-track-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meter-endpoint {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  width: 50px;
}

.meter-endpoint.left { text-align: right; }
.meter-endpoint.right { text-align: left; }

.meter-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tab controls */
.result-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.result-tab {
  flex: 1;
  padding: 20px 10px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.result-tab:hover {
  color: var(--text-primary);
}

.result-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
}

/* Tab panel containers */
.tab-content {
  display: none;
  padding: 40px;
  animation: fadeInTab 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

/* TAB CONTENT: Palette styling */
.palette-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.palette-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.swatch-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.swatch-item:hover {
  transform: translateY(-4px);
  border-color: var(--text-secondary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.swatch-color {
  aspect-ratio: 1.2;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
  position: relative;
}

.swatch-item:hover .swatch-color::after {
  content: '\f0c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0.8;
}

.swatch-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch-hex {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

/* TAB CONTENT: Styling Tips */
.styling-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.styling-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.styling-card.card-celebs {
  grid-column: span 2;
}

.styling-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.icon-highlight {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.styling-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.styling-tips-list {
  list-style: none;
}

.styling-tips-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.styling-tips-list li::before {
  content: '•';
  color: var(--accent-color);
  font-size: 1.2rem;
  position: absolute;
  left: 5px;
  top: -2px;
}

.celeb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.celeb-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* TAB CONTENT: Makeup Styling */
.makeup-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.makeup-category-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.makeup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.makeup-header.lip i { color: #f43f5e; }
.makeup-header.eye i { color: #d97706; }
.makeup-header.blush i { color: #ec4899; }

.makeup-category-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.makeup-color-preview {
  display: flex;
  gap: 8px;
}

.makeup-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.makeup-color-dot:hover {
  transform: scale(1.15);
}

/* Actions below results - responsive grid config */
.result-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 30px 40px 40px 40px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.result-actions button {
  width: 100%;
}

/* Footer & Copy Toast */
.app-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 999;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  bottom: 40px;
}

.toast i {
  color: var(--success-color);
}

/* Mobile Media Queries */
@media (max-width: 900px) {
  .step-nav {
    display: none; /* Hide steps bar on mobile header to prevent clutter */
  }

  .drape-workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .styling-container {
    grid-template-columns: 1fr;
  }
  
  .styling-card.card-celebs {
    grid-column: span 1;
  }
  
  .makeup-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .result-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .hero-paths-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px auto;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .glass-card {
    padding: 24px;
  }
  
  .drape-overlay-frame::before {
    border-width: 6px;
  }
  
  .drape-overlay-frame::after {
    border-radius: 50% 50% 0 0 / 20px 20px 0 0;
  }
  
  .swatches-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .swatches-grid.worst {
    grid-template-columns: 1fr 1fr;
  }
  
  .result-banner {
    padding: 30px 20px;
  }
  
  .result-title {
    font-size: 1.8rem;
  }
  
  .result-tab span {
    display: none;
  }
  
  .result-tab i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
  
  .brand-subtitle {
    display: none;
  }
  
  .brand-title {
    font-size: 1.15rem;
  }
  
  .infofind-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  
  .infofind-icon-inner {
    width: 22px;
    height: 22px;
  }
  
  .infofind-i {
    font-size: 13px;
  }
}

/* 샘플 모델 선택 그리드 스타일 */
.sample-models-container {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
}

.sample-label {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sample-models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sample-model-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.sample-model-btn img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.sample-model-btn span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.sample-model-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.sample-model-btn:hover img {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

/* 개인정보 보호 안내문 스타일 */
.privacy-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.06); /* Soft green tint */
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  text-align: left;
  margin-top: 10px;
}

.privacy-disclaimer i {
  color: var(--success-color);
  font-size: 1rem;
  margin-top: 2px;
}

.privacy-disclaimer span {
  font-size: 0.78rem;
  color: #a7f3d0; /* Very soft light green */
  line-height: 1.5;
  letter-spacing: -0.3px;
}

/* 라이트 테마 변환 시 색상 대응 */
[data-theme="light"] .sample-models-container {
  background: rgba(99, 102, 241, 0.02);
  border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .sample-model-btn {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .sample-model-btn:hover {
  background: #ffffff;
}

[data-theme="light"] .sample-model-btn span {
  color: var(--text-secondary);
}

[data-theme="light"] .privacy-disclaimer {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .privacy-disclaimer span {
  color: #065f46; /* Dark green for light theme */
}
