/* ========================================
   SIMS Fashion AI - Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #ec4899;
  --accent: #f59e0b;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);

  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-artistic: 'Noto Serif KR', 'Nanum Pen Script', serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --border-color: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

/* 로고 이미지: 라이트/다크 테마별 전환 (image/logo.png, image/logo_dark.png) */
.logo-img,
.company-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo .logo-img { height: 36px; }
.footer-logo .company-logo { height: 32px; }

.logo-img-dark,
.footer-logo .logo-img-dark { display: none !important; }
[data-theme="dark"] .logo-img-light,
[data-theme="dark"] .footer-logo .logo-img-light { display: none !important; }
[data-theme="dark"] .logo-img-dark,
[data-theme="dark"] .footer-logo .logo-img-dark { display: block !important; }


.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.25s ease;
  line-height: 1.4;
}

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

.lang-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .lang-toggle {
  border-color: var(--border-color);
  background: var(--bg-tertiary);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.25rem;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: var(--transition);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* 전역 배경음(BGM) – 맨 상단 네비 텍스트 버튼 (스피커 아이콘/빨간선 없음) */
.bgm-toggle-nav {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-primary));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.bgm-toggle-nav:hover {
  background: color-mix(in srgb, var(--primary) 18%, var(--bg-primary));
  transform: translateY(-1px);
}
.bgm-lyrics-link-nav {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.bgm-lyrics-link-nav:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* BGM 가사 모달 – 음악과 함께 가사가 자연스럽게 올라가는 스크롤 */
.bgm-lyrics-modal-content {
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bgm-lyrics-modal-inner {
  padding: 44px 24px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bgm-lyrics-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
  text-align: center;
}
.bgm-lyrics-scroll-wrap {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-secondary));
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  scroll-behavior: auto;
}
.bgm-lyrics-text {
  margin: 0;
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: keep-all;
  font-family: inherit;
}
.bgm-lyrics-scroll-wrap.bgm-lyrics-scroll--on {
  scroll-behavior: auto;
}
.bgm-lyrics-modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 12px 0 0;
  text-align: center;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--border-color);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-soave-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #faf5ff;
}

.hero-soave-video {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 100vw;
  height: 56.25vw;
  max-width: 177.78vh;
  max-height: 100vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  opacity: 0.9;
}
.hero-soave-video {
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(250,245,255,0.6) 40%, rgba(240,235,250,0.5) 100%),
              radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .hero-gradient {
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.75) 100%),
              radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
}

.floating-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(20px) rotate(-5deg); }
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.title-line {
  display: inline-block;
  font-family: 'Nanum Pen Script', 'Gamja Flower', 'Hi Melody', cursive;
  font-weight: 400;
  font-size: 5.5rem;
  letter-spacing: 0.1em;
  position: relative;
  padding: 12px 32px;
  border-radius: 24px;
  transform-origin: center;
  color: transparent;
  background-image: linear-gradient(135deg, #ec4899 0%, #f472b6 25%, #c084fc 50%, #a855f7 75%, #7c3aed 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: breathing-effect 3s ease-in-out infinite, gradient-color-shift-text 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.6)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.4)) drop-shadow(0 0 36px rgba(236, 72, 153, 0.3));
  text-shadow: none;
}

.title-line::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.5) 0%, rgba(236, 72, 153, 0.3) 50%, transparent 100%);
  z-index: -1;
  opacity: 0.8;
  filter: blur(12px);
  animation: glow-breathe 3s ease-in-out infinite;
}

.title-line::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: 
    radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
  z-index: -2;
  opacity: 0.6;
}

@keyframes breathing-effect {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5)) brightness(1);
  }
  50% { 
    transform: scale(1.02);
    filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.8)) brightness(1.1);
  }
}

@keyframes gradient-color-shift-text {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-breathe {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.title-line::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.15));
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.title-highlight {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 310px;
  height: 650px;
  background: var(--bg-secondary);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-color);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
  overflow: visible;
  z-index: 1;
}


.phone-mockup-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(236, 72, 153, 0.2) 50%, rgba(124, 58, 237, 0.15) 100%);
  filter: blur(28px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.2), 0 0 0 1px var(--border-color);
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 32px;
  height: 100%;
  padding: 16px 16px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.app-header-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.app-header-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 디지털 옷장 - 패션 쇼케이스 */
.fashion-showcase {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 소아베 쇼케이스 래퍼 (mood 반응) */
.soave-showcase-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: filter 0.4s ease, box-shadow 0.4s ease;
}
.soave-showcase-wrap[data-soave-mood="happy"] {
  filter: saturate(1.15) brightness(1.02);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}
.soave-showcase-wrap[data-soave-mood="thinking"] {
  filter: saturate(0.92) contrast(1.05);
}
.soave-showcase-wrap[data-soave-mood="sad"] {
  filter: saturate(0.85) brightness(0.96);
}
.soave-showcase-wrap[data-soave-mood="excited"] {
  filter: saturate(1.2) brightness(1.05);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
}

/* 소아베 히어로 비디오 */
.soave-video-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #ede9fe 100%);
}
.soave-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: opacity 0.35s ease;
}
.soave-video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e8ff 0%, #f0e4fc 25%, #fce7f3 50%, #f5e6fa 75%, #ede9fe 100%);
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
  z-index: 2;
}
/* 좌우 네비게이션 화살표 (하단 인디케이터 영역) */
.soave-nav-btn {
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #7c3aed;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  line-height: 1;
  padding: 0 0 1px 0;
}
.soave-nav-btn:hover {
  background: rgba(124,58,237,0.25);
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}
.soave-video-loader {
  width: 32px; height: 32px;
  border: 3px solid rgba(192,132,252,0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: soaveVideoSpin 0.8s linear infinite;
}
@keyframes soaveVideoSpin {
  to { transform: rotate(360deg); }
}
.soave-video-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 0;
}
.soave-mute-btn {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}
.soave-mute-btn:hover {
  background: rgba(124,58,237,0.25);
  transform: scale(1.1);
}
.soave-video-counter {
  font-size: 0.7rem;
  color: var(--text-muted, #999);
  letter-spacing: 0.5px;
}

.fashion-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fashion-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.fashion-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  animation: fashionFloat 3s ease-in-out infinite;
}

@keyframes fashionFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.fashion-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator-dot.active {
  background: var(--gradient-primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.ai-suggestion {
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ai-suggestion-default {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0; /* flex 자식이 좁은 컨테이너에서 잘리지 않도록 */
}

.ai-suggestion-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ai-suggestion strong {
  font-weight: 700;
}

.ai-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
}

.ai-icon-right {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* 폰 목업이 좁을 때(모바일/태블릿) CTA 오른쪽 화살표가 잘리지 않도록 여유 확보 */
@media (max-width: 768px) {
  .phone-screen .ai-suggestion {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
  .phone-screen .ai-suggestion-default {
    gap: 4px;
  }
  .phone-screen .ai-icon,
  .phone-screen .ai-icon-right {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  .phone-screen .ai-icon svg,
  .phone-screen .ai-icon-right svg {
    width: 12px;
    height: 12px;
  }
}

/* 히어로 CTA 대화 미리보기 */
.soave-chat-preview {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
}
.soave-chat-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.soave-chat-preview-user {
  font-size: 0.7rem;
  opacity: 0.9;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.soave-chat-preview-assistant {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.soave-chat-preview-hint {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* 소아베 음성 대화 모드 힌트 (모바일) */
.soave-voice-hint {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  text-align: center;
  animation: soave-voice-pulse 1.5s ease-in-out infinite;
}
@keyframes soave-voice-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========================================
   Section Styles
   ======================================== */
section {
  padding: 100px 0;
}

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

.section-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .section-badge {
  background: rgba(124, 58, 237, 0.2);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Features Section
   ======================================== */
.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 0;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.1);
}

.feature-card-content {
  padding: 32px 24px 40px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-card-cta {
  display: inline-block;
  text-decoration: none;
  margin-top: 8px;
}

/* 원클릭 하이패스: 이름·생년월일·사진 → 런웨이 한 편 */
.oneclick-highpass {
  padding: 48px 0 32px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 8%, var(--bg-primary)) 0%, var(--bg-primary) 50%);
  border-top: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}
.oneclick-badge {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 700;
}
.oneclick-highpass .section-description {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.oneclick-form-wrap {
  max-width: 400px;
  margin: 28px auto 20px;
}
.oneclick-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}
.oneclick-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.oneclick-input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.oneclick-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.oneclick-face-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.oneclick-face-samples {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.oneclick-face-option {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  padding: 10px 10px 8px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  cursor: pointer;
  overflow: visible;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.oneclick-face-option:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.oneclick-face-option[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.oneclick-face-option img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.oneclick-face-option span {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.oneclick-photo-area {
  position: relative;
  padding: 16px;
  border: 2px dashed color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-secondary));
  text-align: center;
}
.oneclick-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.oneclick-photo-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}
.oneclick-photo-url-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.oneclick-photo-url-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.oneclick-photo-url-input::placeholder {
  color: var(--text-muted);
}
.oneclick-photo-url-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.oneclick-photo-url-btn:hover {
  filter: brightness(1.08);
}
.oneclick-photo-preview {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 160px;
  max-height: 160px;
}
.oneclick-photo-preview img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.oneclick-background-wrap {
  margin-top: 16px;
}
.oneclick-background-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
}
.oneclick-background-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.oneclick-background-list::-webkit-scrollbar {
  width: 8px;
}
.oneclick-background-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
.oneclick-background-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 4px;
}
.oneclick-background-list::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary) 50%, transparent);
}
.oneclick-background-option {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 0;
  text-align: left;
}
.oneclick-background-option:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}
.oneclick-background-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.oneclick-background-option .oneclick-background-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 56px;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.oneclick-background-option .oneclick-background-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.oneclick-gallery-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  pointer-events: none;
  border-radius: 8px;
}
.oneclick-background-option:has(.oneclick-gallery-play-overlay) .oneclick-gallery-play-overlay {
  pointer-events: auto;
  cursor: pointer;
}
.oneclick-background-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.oneclick-background-option .oneclick-background-caption {
  padding: 4px 6px 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.oneclick-background-option .oneclick-background-desc {
  padding: 0 6px 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0;
}

.oneclick-cta {
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.oneclick-cta:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}
.oneclick-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.oneclick-runway-result {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.oneclick-runway-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.oneclick-runway-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.oneclick-runway-save-image-btn {
  flex-shrink: 0;
}
.oneclick-runway-result-image-wrap,
.oneclick-runway-result-video-wrap {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.oneclick-runway-result-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.oneclick-runway-result-video-wrap {
  position: relative;
  min-height: 320px;
}
.oneclick-runway-result-video {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 560px;
  object-fit: contain;
}
/* 영상 생성 중 비차단 플로팅 알림 — 페이지 이용 가능 */
.video-generating-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.video-generating-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.video-generating-toast-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--primary, #a855f7);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.9s linear infinite;
}
.video-generating-toast-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.oneclick-runway-video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 12px;
}
.oneclick-runway-video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary, #a855f7);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.oneclick-runway-video-loading-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  padding: 0 16px;
}
.oneclick-runway-result-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.oneclick-runway-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.oneclick-runway-video-btn,
.oneclick-runway-save-btn {
  margin-top: 0;
  padding: 12px 20px;
  font-size: 0.95rem;
}
.oneclick-runway-save-btn {
  margin-top: 0;
}
.oneclick-runway-save-video-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.oneclick-runway-save-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}
.oneclick-runway-save-video-btn:active {
  transform: translateY(0);
}

/* 원클릭 런웨이 · 갤러리 · 결과 이미지/영상 — 개발·모바일 반응형 */
@media (max-width: 768px) {
  .oneclick-face-samples {
    gap: 12px;
  }
  .oneclick-face-option {
    min-width: 100px;
    max-width: 130px;
  }
  .oneclick-face-option img {
    width: 72px;
    height: 72px;
  }
  .oneclick-background-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 360px;
  }
  .oneclick-background-option .oneclick-background-img-wrap {
    min-height: 48px;
    aspect-ratio: 4/3;
  }
  .oneclick-background-option .oneclick-background-caption {
    font-size: 0.7rem;
    padding: 2px 4px;
  }
  .oneclick-background-option .oneclick-background-desc {
    font-size: 0.6rem;
    padding: 0 4px 4px;
  }
  .oneclick-runway-result-image {
    max-height: 240px;
  }
  .oneclick-runway-result-video-wrap {
    min-height: 200px;
  }
  .oneclick-runway-result-video {
    min-height: 200px;
    max-height: 320px;
  }
  .oneclick-runway-result-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .oneclick-runway-result-actions {
    gap: 8px;
  }
  .oneclick-runway-video-btn,
  .oneclick-runway-save-btn,
  .oneclick-runway-save-video-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .oneclick-background-list {
    grid-template-columns: 1fr;
    max-height: 400px;
  }
  .oneclick-background-option .oneclick-background-img-wrap {
    aspect-ratio: 16/9;
    min-height: 80px;
  }
  .oneclick-runway-result-image {
    max-height: 200px;
  }
  .oneclick-runway-result-video {
    min-height: 180px;
    max-height: 280px;
  }
  .oneclick-runway-result-video-wrap {
    min-height: 180px;
  }
}

/* 갤러리 샘플 영상 재생 모달 */
.oneclick-gallery-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.oneclick-gallery-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.oneclick-gallery-video-modal-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
/* 1:1 실제 영상 크기만큼 크게 */
.oneclick-gallery-video-modal-content--1x1 {
  width: min(90vmin, 85vh);
  max-width: min(90vmin, 85vh);
  max-height: none;
}
.oneclick-gallery-video-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oneclick-gallery-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oneclick-gallery-video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.oneclick-gallery-video-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.oneclick-gallery-video-caption {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* 안내: 아래에 구체적인 코너가 있음 */
.detail-corners-intro {
  padding: 20px 24px 32px;
  text-align: center;
  background: var(--bg-primary);
}
.detail-corners-intro-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.detail-corners-intro-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  transition: background 0.2s, color 0.2s;
}
.detail-corners-intro-link:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

/* ========================================
   AI Section
   ======================================== */
.ai-section {
  background: var(--bg-primary);
}

/* Chapter 1. Discovery — 파스텔 핑크 */
#styling {
  background: linear-gradient(170deg,
    #fff5f7 0%,
    #ffe4ec 30%,
    #fce7f3 55%,
    #fdf2f8 80%,
    #fff9fb 100%);
}
#styling .section-badge {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
}
#styling .name-episodes-block {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(236, 72, 153, 0.15);
  backdrop-filter: blur(8px);
}
/* 다크 모드: 라이트 전용 핑크를 해제하고 기본 다크 테마로 */
[data-theme="dark"] #styling {
  background: var(--bg-primary);
}
[data-theme="dark"] #styling .section-badge,
[data-theme="dark"] #lightstick .section-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}
[data-theme="dark"] #styling .name-episodes-block {
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
  backdrop-filter: none;
}
[data-theme="dark"] #soul-color-section {
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
}

/* 다크 모드: 입력 영역 구분 강화 */
[data-theme="dark"] .name-episodes-input-corner {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(139, 92, 246, 0.08);
}
[data-theme="dark"] .name-episodes-input {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(139, 92, 246, 0.35);
  color: #f1f5f9;
}
[data-theme="dark"] .name-episodes-input::placeholder {
  color: #94a3b8;
}
[data-theme="dark"] .name-episodes-input:hover {
  border-color: rgba(139, 92, 246, 0.55);
}
[data-theme="dark"] .name-episodes-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Chapter 2. Sanctuary — 파스텔 보라 */
#lightstick.ai-section {
  background: linear-gradient(170deg,
    #f5f3ff 0%,
    #ede9fe 30%,
    #e8e0ff 55%,
    #f0ecff 80%,
    #f8f7ff 100%) !important;
}
#lightstick .section-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}
#lightstick .name-episodes-block {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(8px);
}
/* 다크 모드: 라이트 전용 보라를 해제하고 기본 다크 테마로 */
[data-theme="dark"] #lightstick.ai-section {
  background: var(--bg-secondary) !important;
}
[data-theme="dark"] #lightstick .name-episodes-block {
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
  backdrop-filter: none;
}

/* 한글 페르소나: 상단 공통 헤더 (배지·제목·서브타이틀) */
.persona-header {
  margin-bottom: 24px;
}

/* 한글 페르소나 통합: 메인 제목 아래 연결 문구 */
.persona-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.5;
  max-width: 520px;
}

/* 같은 한글 페르소나 공간 안: 서사 블록 연결 라벨 (구분감 완화) */
.persona-connector {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

/* 나만의 서사 (이름 → 자·모음 → 28 한글 페르소나) — 1순서 */
.name-episodes-block {
  margin-top: 0;
  padding: 32px 36px 40px;
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.name-episodes-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.name-episodes-row--two-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* 페르소나 미리보기 목업 (오른쪽) */
.name-episodes-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-mockup {
  text-align: center;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
}
.preview-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.preview-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.preview-card {
  width: 90px;
  padding: 16px 8px 12px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  text-align: center;
  opacity: 0.7;
  filter: blur(0.4px);
  transition: opacity 0.3s, transform 0.3s;
  animation: previewFloat 4s ease-in-out infinite;
}
.preview-card--1 { animation-delay: 0s; }
.preview-card--2 { animation-delay: 1.3s; }
.preview-card--3 { animation-delay: 2.6s; }

@keyframes previewFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.preview-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #7c3aed 100%);
  opacity: 0.6;
}
.preview-card--2 .preview-card-avatar {
  background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 50%, #ec4899 100%);
}
.preview-card--3 .preview-card-avatar {
  background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 50%, #3b82f6 100%);
}
.preview-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  opacity: 0.7;
}
.preview-card-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.preview-cta {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.8;
  animation: previewPulse 3s ease-in-out infinite;
}
@keyframes previewPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 다크 모드 미리보기 */
[data-theme="dark"] .preview-card {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

/* 오른쪽: 웹툰 스토리 패널 (결과 표시 시) */
.name-episodes-story-side {
  width: 100%;
  min-width: 280px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px 16px;
  background: var(--bg-secondary, rgba(255,255,255,0.04));
  border-radius: 20px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  align-self: stretch;
}
.name-episodes-story-side-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.name-episodes-story-side-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.name-episodes-story-panel {
  padding: 14px 16px;
  background: var(--bg, rgba(255,255,255,0.06));
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.name-episodes-story-panel strong { color: var(--primary); }

/* 반응형: 모바일에서 미리보기·스토리 패널 숨김 */
@media (max-width: 768px) {
  .name-episodes-row--two-col {
    grid-template-columns: 1fr;
  }
  .name-episodes-preview,
  .name-episodes-story-side {
    display: none !important;
  }
}
/* 매직샵 제목·설명 — row 위에 풀 너비로 배치 */
.magicshop-hero-header {
  margin-bottom: 28px;
}
.magicshop-hero-header .name-episodes-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.magicshop-hero-header .name-episodes-desc {
  max-width: 600px;
}
.magicshop-row {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1fr);
  gap: 32px;
  align-items: stretch;
}
.magicshop-row--aligned .magicshop-left,
.magicshop-row--aligned .magicshop-right {
  display: flex;
  flex-direction: column;
}
.magicshop-row--aligned .magicshop-display {
  flex: 1;
  min-height: 280px;
}
.magicshop-row--aligned .magicshop-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.magicshop-row--aligned .magicshop-hero .magicshop-input-corner {
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .magicshop-row {
    grid-template-columns: 1fr;
  }
}
.magicshop-left { min-width: 0; }
.magicshop-right { min-width: 0; }
.magicshop-dropzone {
  position: relative;
  min-height: 160px;
  border: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.magicshop-dropzone:hover,
.magicshop-dropzone.dragover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-primary));
}
.magicshop-dropzone-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}
/* 예제용 작은 글씨: 샘플 버튼 (한글 페르소나 '민수' 예시처럼) */
.magicshop-example-btn {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  padding: 6px 12px !important;
  border-radius: 12px;
}
.magicshop-sample-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  background: var(--bg-secondary, rgba(255,255,255,0.6));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
}
.magicshop-sample-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.magicshop-sample-icon-btn:hover {
  background: rgba(124, 58, 237, 0.12);
  transform: scale(1.05);
}
.magicshop-sample-icon-btn:active {
  transform: scale(0.98);
}
.magicshop-sample-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}
.magicshop-build-inputs--centered {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  text-align: center;
}
.magicshop-input-or {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.magicshop-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
}
.magicshop-start-btn { margin-top: 20px; width: 100%; }
.magicshop-hangeul-gallery-wrap {
  width: 100%;
}
.magicshop-hangeul-gallery-title {
  font-weight: 600;
}
.magicshop-hangeul-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.magicshop-hangeul-gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}
.magicshop-hangeul-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.magicshop-display {
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #0a0a1a 0%, #0f0f23 25%, #1a1a2e 50%, #16213e 75%, #0f172a 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  position: relative;
  box-shadow: inset 0 0 80px rgba(59, 130, 246, 0.06);
}
.magicshop-display-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.magicshop-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(124, 58, 237, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 70% 80%, rgba(59, 130, 246, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(236, 72, 153, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 45%);
  animation: magicshop-aurora-flow 8s ease-in-out infinite;
}
.magicshop-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, rgba(167, 139, 250, 0.2) 25%, transparent 50%, rgba(96, 165, 250, 0.2) 75%, transparent 100%);
  background-size: 200% 200%;
  animation: magicshop-aurora-shimmer 6s ease-in-out infinite;
}
.magicshop-aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 60%, rgba(34, 211, 238, 0.25) 0%, transparent 60%);
  animation: magicshop-aurora-drift 10s ease-in-out infinite;
}
@keyframes magicshop-aurora-flow {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg) translate(0, 0); }
  25% { opacity: 0.95; transform: scale(1.08) rotate(1deg) translate(2%, -3%); }
  50% { opacity: 1; transform: scale(1.05) rotate(-0.5deg) translate(-2%, 2%); }
  75% { opacity: 0.98; transform: scale(1.1) rotate(0.5deg) translate(1%, 1%); }
}
@keyframes magicshop-aurora-shimmer {
  0%, 100% { background-position: 0% 50%; opacity: 0.8; }
  50% { background-position: 100% 50%; opacity: 1; }
}
@keyframes magicshop-aurora-drift {
  0%, 100% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  33% { opacity: 1; transform: translate(3%, -2%) scale(1.05); }
  66% { opacity: 0.8; transform: translate(-2%, 2%) scale(0.98); }
}
.magicshop-display-idle-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.6;
}
.magicshop-display-idle--carousel-active .magicshop-display-idle-text {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.magicshop-hangeul-carousel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.magicshop-hangeul-carousel-media {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.magicshop-hangeul-carousel-media.visible {
  opacity: 1 !important;
  visibility: visible;
}
.magicshop-display-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
}
.magicshop-loading-stage {
  width: 120px;
  height: 60px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 58, 237, 0.6) 50%, transparent 100%);
  border-radius: 50%;
  animation: magicshop-waveform 1.5s ease-in-out infinite;
}
@keyframes magicshop-waveform {
  0%, 100% { transform: scaleY(0.6); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.magicshop-loading-caption {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.magicshop-display-result {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
}
.magicshop-result-card {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.35);
  transition: transform 0.3s ease;
}
.magicshop-card-tilt:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg);
}
.magicshop-result-label {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.name-episodes-left {
  min-width: 0;
}
.name-episodes-hero { max-width: 560px; }
.name-episodes-visual {
  width: 380px;
  min-width: 380px;
  min-height: 360px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #e8e0f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .name-episodes-visual {
    width: 100%;
    min-width: 0;
  }
}
.name-episodes-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
.name-episodes-visual-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.name-episodes-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(240,235,250,0.15) 50%, rgba(235,245,255,0.2) 100%);
  pointer-events: none;
}
.name-episodes-soave-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  opacity: 0.5;
}
.name-episodes-soave-video {
  object-fit: cover;
}
@media (max-width: 900px) {
  .name-episodes-visual { min-height: 280px; }
}
.name-episodes-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.name-episodes-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.55;
}
.name-episodes-input-corner {
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.name-episodes-input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.name-episodes-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.name-episodes-input-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
}
.name-episodes-input {
  flex: 1;
  min-width: 180px;
  padding: 16px 20px;
  border: 2px solid color-mix(in srgb, var(--primary) 48%, transparent);
  border-radius: 14px;
  font-size: 1.1rem;
  background: #ffffff;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.name-episodes-input::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}
.name-episodes-input:hover {
  border-color: color-mix(in srgb, var(--primary) 65%, transparent);
}
.name-episodes-input:focus {
  outline: none;
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}
.name-episodes-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 85%, #e879f9) 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.name-episodes-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.name-episodes-btn:active { transform: translateY(0); }
.name-episodes-hint {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.name-episodes-hint-en {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.9;
}
.name-episodes-examples {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.name-episodes-examples .btn-example-name {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 500;
}
.name-episodes-examples .btn-example-name:hover { opacity: 0.85; }
.name-episodes-result { margin-top: 32px; }
@media (max-width: 600px) {
  .name-episodes-block { padding: 28px 20px; }
  .name-episodes-title { font-size: 1.45rem; }
  .name-episodes-input-corner { padding: 20px; }
  .name-episodes-input-row { flex-direction: column; align-items: stretch; }
  .name-episodes-input { min-width: 0; }
  .name-episodes-btn { width: 100%; }
}
.name-episodes-strip {
  --card-w: 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  align-items: stretch;
}
.name-episodes-strip-label { display: block; }
.name-episode-card {
  width: var(--card-w, 140px);
  min-width: var(--card-w, 140px);
  height: 220px;
  flex-shrink: 0;
  border: 2px solid #c9a227;
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
  transition: box-shadow 0.25s, filter 0.3s;
  opacity: 0;
  transform: scale(0.85) rotateY(-12deg);
  perspective: 800px;
}
.name-episode-card.reveal {
  opacity: 1;
  transform: scale(1) rotateY(0);
}
.name-episode-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}
.name-episode-card:hover .name-episode-card-inner,
.name-episode-card.flipped .name-episode-card-inner {
  transform: rotateY(180deg);
}
.name-episode-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}
.name-episode-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg);
}
.name-episode-card-back {
  background: var(--bg);
  transform: rotateY(180deg);
}
.name-episode-card-back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.name-episode-card[data-rarity="rare"] {
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.45);
}
.name-episode-card[data-rarity="rare"]:hover { box-shadow: 0 0 24px rgba(201, 162, 39, 0.5); }
.name-episode-card:hover { box-shadow: 0 0 24px rgba(201, 162, 39, 0.5); }
.name-episodes-confetti { position: fixed; pointer-events: none; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; }
.name-episodes-confetti span { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: name-episodes-confetti-fall 1.2s ease-out forwards; }
@keyframes name-episodes-confetti-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, -80px)) rotate(360deg) scale(0.3); }
}
@media (max-width: 600px) {
  .name-episodes-strip { --card-w: 120px; }
  .name-episode-card { min-width: 120px !important; width: 120px !important; height: 200px; }
  .name-episode-card-inner { min-height: 200px; }
}
.name-episodes-story .name-episodes-story-p { margin: 0 0 12px 0; }
.name-episodes-story .name-episodes-story-p:last-child { margin-bottom: 0; }
.name-episodes-cut { text-align: center; position: relative; }
.name-episodes-cut-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; transition: filter 0.6s ease-out; }
.name-episodes-cut-img.name-episodes-cut-img-loading { filter: blur(12px); opacity: 0.9; }
.name-episodes-cut-img.name-episodes-cut-img-reveal { filter: blur(0); opacity: 1; }
.name-episodes-cut-caption { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.name-episodes-cut-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 12px; font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 12px; }
@media (max-width: 640px) {
  .name-episodes-cuts { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 소울 컬러 섹션 — 컴팩트 레이아웃 */
#soul-color-section {
  position: relative;
  overflow: hidden;
  padding: 24px 36px 24px;
}
#soul-color-section .persona-connector {
  margin-bottom: 10px;
}
#soul-color-section .name-episodes-title {
  margin-bottom: 4px;
}
#soul-color-section .name-episodes-desc {
  margin-bottom: 16px;
}
#soul-color-section .name-episodes-row {
  gap: 20px;
}

/* 소울 컬러 섹션: 입력(왼) + 결과(오른) 2단 레이아웃 */
.soul-color-row {
  display: grid;
  gap: 32px;
  align-items: center;
  transition: grid-template-columns 0.3s ease;
}
.soul-color-row.soul-color-row--active {
  grid-template-columns: 1fr 1fr;
}

/* 소울 컬러 미리보기 (오른쪽) */
.soul-color-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 컴팩트 미리보기 목업 */
.soul-preview-compact {
  padding: 16px 20px !important;
}
.soul-preview-compact .preview-label {
  margin-bottom: 10px;
}
.soul-preview-compact .preview-cta {
  margin-top: 10px;
}
/* 7색 일렬 점 */
.soul-color-preview-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.soul-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  animation: previewFloat 4s ease-in-out infinite;
  transition: opacity 0.3s, transform 0.3s;
}
.soul-dot:nth-child(1) { animation-delay: 0s; }
.soul-dot:nth-child(2) { animation-delay: 0.5s; }
.soul-dot:nth-child(3) { animation-delay: 1s; }
.soul-dot:nth-child(4) { animation-delay: 1.5s; }
.soul-dot:nth-child(5) { animation-delay: 2s; }
.soul-dot:nth-child(6) { animation-delay: 2.5s; }
.soul-dot:nth-child(7) { animation-delay: 3s; }
[data-theme="dark"] .soul-dot {
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 소울 컬러 미리보기 → 결과 전환 시 숨김 */
.soul-color-row.soul-color-row--active .soul-color-preview {
  display: none;
}

/* 반응형: 모바일에서 소울 미리보기 숨김 */
@media (max-width: 768px) {
  .soul-color-preview {
    display: none;
  }
}

/* 결과 패널 (오른쪽) */
.soul-color-result-panel[hidden] {
  display: none !important;
}
.soul-color-result-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.soul-color-result-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.5s ease-out;
  width: 100%;
  max-width: 320px;
}
[data-theme="dark"] .soul-color-result-inner {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.soul-color-chip {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.soul-color-keyword {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.soul-color-personality {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}
.soul-color-tags {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* 소울 컬러 – 내 탄생뮤직 만들기 */
.soul-color-music-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.soul-color-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.soul-color-music-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}
.soul-color-music-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.soul-color-music-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.soul-music-loading {
  color: var(--text-muted);
}
.soul-music-error {
  color: var(--error, #dc2626);
}
.soul-music-player audio {
  width: 100%;
  max-width: 320px;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}
.soul-music-download {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.soul-music-download:hover {
  text-decoration: underline;
}

/* 소울 컬러 – OpenAI 가사 영역 */
.soul-music-lyrics {
  margin-top: 0.25rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-secondary));
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}
.soul-music-lyrics-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}
.soul-music-lyrics-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  font-family: inherit;
}
.soul-music-lyrics-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

/* 내 탄생뮤직 가사 팝업 (저장 · SNS 공유) — 트렌디 리뉴얼 */
.soul-lyrics-modal-content {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.06);
}
.soul-lyrics-modal-inner {
  padding: 36px 32px 28px;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}
.soul-lyrics-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 20px;
  text-align: center;
}
.soul-lyrics-modal-body {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding: 18px 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 5%, var(--bg-secondary)), color-mix(in srgb, var(--primary) 8%, var(--bg-secondary)));
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
  white-space: pre-wrap;
  word-break: keep-all;
  font-family: inherit;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.soul-lyrics-music-area {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.06));
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
}
.soul-lyrics-music-status-wrap {
  margin: 0;
}
.soul-lyrics-music-status-wrap.is-loading .soul-lyrics-music-status {
  animation: soul-music-status-pulse 1.5s ease-in-out infinite;
}
.soul-lyrics-music-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
@keyframes soul-music-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.soul-lyrics-music-progress {
  height: 6px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  overflow: hidden;
  display: none;
}
.soul-lyrics-music-status-wrap.is-loading .soul-lyrics-music-progress {
  display: block;
}
.soul-lyrics-music-progress-bar {
  height: 100%;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  animation: soul-music-progress-run 1.6s ease-in-out infinite;
}
@keyframes soul-music-progress-run {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(280%); }
  100% { transform: translateX(-100%); }
}
.soul-lyrics-music-elapsed {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  display: none;
}
.soul-lyrics-music-status-wrap.is-loading .soul-lyrics-music-elapsed {
  display: block;
}
.soul-lyrics-audio {
  border-radius: 12px;
  background: var(--bg-secondary);
  margin-top: 10px;
}
.soul-lyrics-modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.soul-lyrics-modal-note strong {
  color: #10a37f;
  font-weight: 700;
}
.soul-lyrics-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.soul-lyrics-btn {
  flex: 1;
  min-width: 110px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.soul-lyrics-btn:hover {
  transform: translateY(-1px);
}
.soul-lyrics-btn-save {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.soul-lyrics-btn-save:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.soul-lyrics-btn-song {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.soul-lyrics-btn-song:hover {
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}
.soul-lyrics-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.soul-lyrics-sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.soul-lyrics-sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.soul-lyrics-sns-btn:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-secondary));
  color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.soul-lyrics-sns-btn[data-sns="twitter"] { background: #000; color: #fff; }
.soul-lyrics-sns-btn[data-sns="facebook"] { background: #1877f2; color: #fff; }
.soul-lyrics-sns-btn[data-sns="kakaostory"] { background: #fee500; color: #000; }
.soul-lyrics-sns-btn[data-sns="band"] { background: #00c73c; color: #fff; }
.soul-lyrics-sns-btn[data-sns="linkedin"] { background: #0a66c2; color: #fff; }
.soul-lyrics-sns-btn[data-sns="naver"] { background: #03c75a; color: #fff; }
.soul-lyrics-sns-btn[data-sns="line"] { background: #00b900; color: #fff; }
.soul-lyrics-sns-btn[data-sns="instagram"] { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; font-size: 0.7rem; }
.soul-lyrics-sns-btn[data-sns="youtube"] { background: #ff0000; color: #fff; font-size: 0.7rem; }
.soul-lyrics-sns-btn[data-sns="borahae"],
.soul-lyrics-sns-btn.soul-lyrics-sns-borahae { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-size: 0.7rem; font-weight: 700; }

/* 소울 컬러 반응형 */
@media (max-width: 768px) {
  .soul-color-row.soul-color-row--active {
    grid-template-columns: 1fr;
  }
  .soul-color-result-inner {
    max-width: 100%;
  }
}

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

/* 나만의 탄생 컬러와 바이브 (서사 아래 · 보라해 스타일링 위, 가운데 코너) */
.soul-color-block {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.soul-color-inner {
  width: 100%;
  max-width: 560px;
  padding: 32px 36px 40px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--bg-secondary) 92%, var(--primary)) 0%, color-mix(in srgb, var(--primary) 8%, var(--bg-secondary)) 100%);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08), 0 0 0 1px rgba(255,255,255,0.5) inset;
  backdrop-filter: blur(12px);
}
.soul-color-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.soul-color-title-en {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}
.soul-color-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}
.soul-color-form-wrap {
  margin-bottom: 24px;
}
.soul-color-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.soul-color-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.soul-color-date {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 14px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.soul-color-date:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.soul-color-btn {
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, #ec4899) 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.soul-color-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}
.soul-color-btn:active {
  transform: translateY(0);
}
.soul-color-privacy {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.soul-color-result {
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  border-top: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease;
}
.soul-color-result:not([hidden]) {
  max-height: 320px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  opacity: 1;
  transform: translateY(0);
}
.soul-color-chip-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.soul-color-chip {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: soul-color-float 3s ease-in-out infinite;
}
@keyframes soul-color-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.soul-color-keyword {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.soul-color-personality {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.5;
}
.soul-color-tags {
  font-size: 0.9rem;
  color: var(--primary);
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
@media (max-width: 640px) {
  .soul-color-inner { padding: 24px 20px 32px; }
  .soul-color-title { font-size: 1.3rem; }
  .soul-color-input-row { flex-direction: column; align-items: stretch; }
  .soul-color-date { min-width: 0; }
  .soul-color-btn { width: 100%; }
}

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* 2순서: 보라해 스타일링 시작 + 01/02/03 (이름 페르소나 아래) */
.persona-styling-block {
  margin-top: 0;
  padding: 36px 40px 44px;
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .persona-styling-block {
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
}
.persona-styling-block .ai-text .btn-large {
  margin-bottom: 32px;
}

.ai-text .section-title {
  text-align: left;
}

.steps {
  margin: 40px 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
}

/* Soul-to-Style: 스타일 추천 결과 오버레이 */
.styling-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}
.styling-result-overlay.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.styling-result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}
.styling-result-transition {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.styling-result-chip-morph {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: width 0.5s ease, height 0.5s ease, border-radius 0.5s ease;
}
.styling-result-overlay.active .styling-result-chip-morph {
  width: min(90vmin, 420px);
  height: min(90vmin, 420px);
  border-radius: 24px;
  animation: styling-chip-spin 2s ease-in-out;
}
@keyframes styling-chip-spin {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
.styling-result-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.styling-result-texture::after {
  content: '';
  width: min(90vmin, 420px);
  height: min(90vmin, 420px);
  border-radius: 24px;
  background: inherit;
  background-size: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.styling-result-overlay.phase-texture .styling-result-texture {
  opacity: 1;
}
.texture-metal .styling-result-texture::after,
.styling-result-texture.texture-metal::after {
  background: linear-gradient(145deg, #c0c0c0 0%, #808080 30%, #606060 70%, #a0a0a0 100%);
  box-shadow: inset 0 2px 20px rgba(255,255,255,0.3), 0 20px 60px rgba(0,0,0,0.4);
}
.texture-silk .styling-result-texture::after,
.styling-result-texture.texture-silk::after {
  background: linear-gradient(160deg, #1e3a5f 0%, #1e3a8a 40%, #0f172a 100%);
  box-shadow: inset 0 0 60px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.4);
}
.texture-linen .styling-result-texture::after,
.styling-result-texture.texture-linen::after {
  background: linear-gradient(150deg, #34d399 0%, #10b981 40%, #059669 100%);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.1), 0 20px 60px rgba(0,0,0,0.3);
}
.texture-velvet .styling-result-texture::after,
.styling-result-texture.texture-velvet::after {
  background: linear-gradient(160deg, #dc2626 0%, #ef4444 30%, #b91c1c 100%);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.3), 0 20px 60px rgba(0,0,0,0.4);
}
.texture-knit .styling-result-texture::after,
.styling-result-texture.texture-knit::after {
  background: linear-gradient(150deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.3);
}
.styling-result-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 24px;
  padding: 32px 40px 40px;
  background: linear-gradient(165deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)) 100%);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.styling-result-overlay.phase-result .styling-result-transition {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.styling-result-overlay.phase-result .styling-result-panel {
  opacity: 1;
  transform: scale(1);
}
.styling-result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.styling-result-close:hover {
  background: rgba(255,255,255,0.25);
}
.styling-result-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.styling-result-copy {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.5;
}
.styling-result-palette {
  margin-bottom: 28px;
}
.styling-result-palette-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.styling-result-palette-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.styling-result-main-color {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.styling-result-sub-color {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.styling-result-palette-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.styling-result-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.styling-result-tryon {
  min-height: 280px;
}
.styling-result-tryon-placeholder {
  background: var(--bg-tertiary);
  border: 2px dashed color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}
.styling-result-tryon-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.styling-result-tryon-hint {
  font-size: 0.8rem;
  margin-top: 12px;
  opacity: 0.9;
}
.styling-result-style-meta {
  margin-bottom: 20px;
}
.styling-result-style-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.styling-result-material,
.styling-result-hangeul {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.styling-result-texture-zoom {
  width: 100%;
  height: 100px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--bg-tertiary);
}
.styling-result-texture-zoom.texture-metal {
  background: linear-gradient(145deg, #c0c0c0 0%, #808080 50%, #606060 100%);
  box-shadow: inset 0 2px 12px rgba(255,255,255,0.2);
}
.styling-result-texture-zoom.texture-silk {
  background: linear-gradient(160deg, #1e3a5f 0%, #1e3a8a 50%, #0f172a 100%);
}
.styling-result-texture-zoom.texture-linen {
  background: linear-gradient(150deg, #34d399 0%, #10b981 50%, #059669 100%);
}
.styling-result-texture-zoom.texture-velvet {
  background: linear-gradient(160deg, #dc2626 0%, #ef4444 40%, #b91c1c 100%);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.2);
}
.styling-result-texture-zoom.texture-knit {
  background: linear-gradient(150deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}
.styling-result-cards-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.styling-result-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.styling-result-card {
  text-align: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.styling-result-card-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
  border: 1px dashed var(--border-color);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.styling-result-card-thumb::after {
  content: 'Coming Soon';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.styling-result-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.styling-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.styling-result-actions .btn-primary,
.styling-result-actions .btn-secondary {
  padding: 12px 20px;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .styling-result-layout {
    grid-template-columns: 1fr;
  }
  .styling-result-panel { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .styling-result-cards-grid { grid-template-columns: 1fr; }
}

/* AI Demo Card */
.ai-demo {
  background: var(--bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.demo-header {
  background: var(--bg-tertiary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

.demo-header-logo {
  height: 62px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.demo-header-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-left: auto;
  white-space: nowrap;
}

.demo-header > span {
  font-weight: 700;
  font-size: 1.15rem;
}

[data-theme="dark"] .demo-header {
  background: #4f5d73;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.demo-content {
  padding: 32px;
}

.analysis-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.analysis-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.analysis-icon.color-warm {
  background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}

.analysis-icon.body-type {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.analysis-icon.style-pref {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.analysis-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.analysis-bar {
  width: 80px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.recommended-colors {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.recommended-colors > span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-palette {
  display: flex;
  gap: 12px;
}

.color {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ========================================
   BORATIME Section (시계 디자인 · 팬심 소장)
   ======================================== */
.boratime-section .section-title { margin-bottom: 12px; }
.boratime-gallery .boratime-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.boratime-gallery .boratime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.25);
}
/* 자음타임 · 모음타임 (양쪽 시계 아래) */
.boratime-jamo-row {
  margin: 0 auto;
}
.boratime-jamo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.boratime-jamo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.25);
}
.boratime-jamo-label {
  border-bottom: 1px solid var(--border-color);
}
@media (max-width: 640px) {
  .boratime-jamo-row {
    grid-template-columns: 1fr !important;
  }
}
#boratime-app-cta { text-decoration: none; }

/* ========================================
   Shop category blocks (의류, 에코백, 폰케이스 등)
   ======================================== */
.shop-cat-block {
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  scroll-margin-top: 80px;
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.shop-cat-block.active {
  display: block;
  opacity: 1;
  max-height: 5000px;
  padding: 48px 0;
}

.shop-cat-block:nth-child(even) { background: var(--bg-primary); }
.shop-cat-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}
.shop-cat-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.shop-cat-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .shop-cat-gallery { grid-template-columns: repeat(2, 1fr); }
}
.shop-cat-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-cat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.15);
}
.shop-cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-cat-block:target .section-title { color: var(--primary); }
.shop-cat-block .shop-cat-header .section-title { text-align: center; }
.shop-cat-block .shop-cat-header .section-description { text-align: center; }

/* ========================================
   Lookbook Section (연예인 룩 + 유사 검색)
   ======================================== */
.lookbook {
  background: var(--bg-secondary);
}

/* 연예인 룩 업로드·결과 블록 (보라해 컨셉) */
.celeblook-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.06);
}
.celeblook-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--gradient-primary);
}
.celeblook-mood-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.celeblook-mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.celeblook-mood-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.celeblook-mood-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
}
.celeblook-mood-chip.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}
.celeblook-dropzone {
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(124, 58, 237, 0.04);
}
.celeblook-dropzone:hover,
.celeblook-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}
.celeblook-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.celeblook-upload-text { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.celeblook-upload-hint { font-size: 0.9rem; color: var(--text-muted); }
.celeblook-loading { text-align: center; padding: 2rem; }
.celeblook-loading .loading-spinner {
  margin: 0 auto 12px;
  border-color: rgba(124, 58, 237, 0.2);
  border-top-color: var(--primary);
}
.celeblook-loading p { color: var(--text-muted); }
.celeblook-result { padding-top: 12px; }
.celeblook-result-preview { margin-bottom: 1rem; text-align: center; }
.celeblook-result-preview img { max-width: 100%; max-height: 200px; border-radius: 12px; object-fit: contain; }
/* 분석 요약 */
.celeblook-summary-wrap {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary), transparent) 1;
}
.celeblook-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
.celeblook-summary-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}
/* 스타일 태그 칩 */
.celeblook-style-tags-wrap { margin-bottom: 1rem; }
.celeblook-style-tags-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.celeblook-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.celeblook-tag-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
  border: 1px solid rgba(124, 58, 237, 0.35);
}
/* 전체 복사 */
.celeblook-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.btn-celeblook-copy {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-celeblook-copy:hover {
  background: rgba(124, 58, 237, 0.1);
}
.celeblook-copy-toast {
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.celeblook-copy-toast.visible { opacity: 1; }
/* 카테고리별 추천 아이템 카드 */
.celeblook-item-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.celeblook-item-card {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.celeblook-card-header {
  margin-bottom: 0.75rem;
}
.celeblook-card-category {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.celeblook-card-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.celeblook-keywords-section {
  margin-bottom: 1rem;
}
.celeblook-keywords-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.celeblook-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.celeblook-search-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
  border: 1px solid rgba(124, 58, 237, 0.35);
  text-decoration: none;
  transition: var(--transition);
}
.celeblook-search-tag:hover {
  background: rgba(124, 58, 237, 0.2);
}
.btn-celeblook-copy-inline {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.btn-celeblook-copy-inline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.celeblook-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.btn-celeblook-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}
.btn-celeblook-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-celeblook-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.btn-celeblook-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.celeblook-detail-section {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.celeblook-detail-section summary {
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px 0;
}
.celeblook-detail-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
}
.celeblook-detail-text {
  flex: 1;
  min-width: 200px;
  color: var(--text-primary);
}
.btn-celeblook-research {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}
.btn-celeblook-research:hover {
  filter: brightness(1.1);
}
.celeblook-recommended-section {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
.celeblook-recommended-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.celeblook-recommended-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.celeblook-recommended-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.celeblook-product-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.celeblook-product-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.celeblook-product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}
.celeblook-product-thumb-wrap {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.celeblook-product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.celeblook-product-thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
}
.celeblook-product-info {
  flex: 1;
  min-width: 0;
}
.celeblook-product-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.celeblook-product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
.celeblook-product-store {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.btn-celeblook-goto-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  white-space: nowrap;
}
.btn-celeblook-goto {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}
.btn-celeblook-goto:hover {
  filter: brightness(1.1);
}
.btn-celeblook-search {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
  background: var(--gradient-primary); color: white; text-decoration: none;
  transition: var(--transition);
  border: none;
}
.btn-celeblook-search:hover { filter: brightness(1.1); transform: translateY(-1px); }
.celeblook-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}
.btn-celeblook-retry {
  padding: 8px 16px; border-radius: 10px; font-size: 0.85rem;
  background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  margin-top: 12px;
}
.btn-celeblook-retry:hover { border-color: var(--primary); color: var(--primary); }
.celeblook-privacy { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.lookbook-divider { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin: 1rem 0; }

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 24px;
}

.look-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.1);
  transition: var(--transition);
}

.look-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.3);
  border-color: var(--primary);
}

.look-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: saturate(1.1) brightness(1.05);
}

.look-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.look-1 {
  background: url('https://images.unsplash.com/photo-1549490349-8643362247b5?w=800&q=80') center/cover; /* Female fashion purple tones */
}
.look-2 {
  background: url('https://images.unsplash.com/photo-1581044777550-4cfa60707c03?w=600&q=80') center/cover; /* Romantic female style */
}
.look-3 {
  background: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=600&q=80') center/cover; /* Casual female fashion */
}
.look-4 {
  background: url('https://images.unsplash.com/photo-1509631179647-0177331693ae?w=600&q=80') center/cover; /* Modern female casual */
}
.look-5 {
  background: url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?w=600&q=80') center/cover; /* Dreamy purple fashion */
}
.look-6 {
  background: url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?w=600&q=80') center/cover; /* Stylish airport fashion */
}
.look-7 {
  background: url('https://images.unsplash.com/photo-1537832816519-689ad163238b?w=600&q=80') center/cover; /* Professional backstage look */
}
.look-8 {
  background: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=600&q=80') center/cover; /* Street fashion */
}

.look-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.look-card:hover .look-overlay {
  opacity: 1;
}

.look-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.look-overlay h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.look-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
  display: none;
}

.look-large .look-overlay p {
  display: block;
}

.btn-look {
  background: white;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  width: fit-content;
}

.btn-look:hover {
  transform: scale(1.05);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
  background: var(--bg-primary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   E-Book Section
   ======================================== */
.ebook-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.ebook-card:hover {
  transform: translateY(-10px);
}

.book-cover {
  width: 180px;
  height: 260px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  margin-bottom: 24px;
  cursor: pointer;
}

.book-front {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  text-align: center;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.5s ease;
  transform-origin: left;
  overflow: hidden;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-badge-tag {
  position: relative;
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 100%;
  background: #333;
  transform: rotateY(-90deg);
  transform-origin: left;
  z-index: 1;
  border-radius: 4px 0 0 4px;
}

.book-pages {
  position: absolute;
  right: 0;
  top: 5px;
  width: 100%;
  height: calc(100% - 10px);
  background: #fff;
  z-index: 0;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
  border-radius: 0 8px 8px 0;
}

.book-cover:hover .book-front {
  transform: rotateY(-25deg);
}

/* Book Cover Styles */
.book-1 .book-spine { background: #5b21b6; }
.book-2 .book-spine { background: #be185d; }
.book-3 .book-spine { background: #1d4ed8; }
.book-4 .book-spine { background: #047857; }

.ebook-info {
  text-align: center;
}

.ebook-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
}

@media (max-width: 768px) {
  .ebook-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ========================================
   TEROS Story Modal
   ======================================== */
.teros-story-modal {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
}

.teros-story-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: linear-gradient(145deg, #1a1a2e, #0f1020);
  border-radius: 30px;
  padding: 60px 40px 40px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.1);
  overflow: hidden;
  animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.teros-story-steps {
  position: relative;
  min-height: 450px;
}

.teros-step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.teros-step.active {
  display: flex;
  opacity: 1;
}

.teros-visual {
  width: 200px;
  height: 200px;
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Awakening Animation */
.awakening .teros-core {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--primary);
  z-index: 2;
}

.awakening .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulseLoop 2s infinite;
}

@keyframes pulseLoop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Resonance Animation */
.resonance .breath-wave {
  width: 150px;
  height: 150px;
  border: 4px solid var(--secondary);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: waveMorph 4s infinite alternate;
}

@keyframes waveMorph {
  to { border-radius: 63% 37% 37% 63% / 56% 59% 41% 44%; }
}

/* Integration Animation */
.integration .prism-light {
  width: 100px;
  height: 100px;
  background: conic-gradient(from 180deg, red, orange, yellow, green, blue, indigo, violet, red);
  border-radius: 50%;
  filter: blur(10px);
  animation: prismRotate 10s linear infinite;
}

@keyframes prismRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Voyage Animation */
.voyage .quantum-leap {
  width: 100%;
  height: 2px;
  background: white;
  box-shadow: 0 0 20px white;
  animation: leapLine 0.5s infinite;
}

@keyframes leapLine {
  0% { transform: scaleX(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleX(2); opacity: 0; }
}

.teros-text .step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
}

.teros-text h2 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.teros-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.teros-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-teros-nav {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-teros-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-teros-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.teros-dots {
  display: flex;
  gap: 12px;
}

.teros-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: var(--transition);
}

.teros-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary);
}

.teros-footer {
  margin-top: 30px;
  text-align: center;
}

.app-status-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .teros-text h2 { font-size: 1.6rem; }
  .teros-text p { font-size: 1rem; }
  .teros-story-content { padding: 40px 20px 20px; }
}

  background: var(--gradient-primary);
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 16px 0 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  padding: 8px 0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  margin-bottom: 20px;
}

.company-logo {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.company-logo:hover {
  opacity: 1;
}

/* ========================================
   Disqus 댓글 섹션
   ======================================== */
.comments-section {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

#disqus_thread {
  min-height: 120px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .ai-text .section-title {
    text-align: center;
  }

  .ai-text {
    text-align: center;
  }

  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .look-large {
    grid-column: span 2;
    grid-row: span 1;
    height: 400px;
  }

  .look-card:not(.look-large) {
    height: 250px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .lang-toggle {
    padding: 1px;
  }

  .lang-btn {
    padding: 3px 7px;
    font-size: 0.6rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .title-line {
    font-size: 3.5rem;
    padding: 8px 20px;
    letter-spacing: 0.08em;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-description br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .phone-mockup {
    width: 270px;
    height: 560px;
    transform: none;
  }
  
  .phone-mockup::before {
    width: 200px;
    height: 300px;
    right: -50px;
    opacity: 0.15;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

  .look-large {
    grid-column: span 1;
    height: 350px;
  }

  .look-card:not(.look-large) {
    height: 200px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .social-links {
    justify-content: center;
  }
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: #f8fafc; /* Light background for the woman image */
}

.about-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--gradient-primary);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
}

.badge-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--primary-light);
  transform: translateX(8px);
}

.feature-icon-small {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-small svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}


@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrapper img {
    height: 350px;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-description {
    text-align: center;
  }

}

/* ========================================
   Info Modal (Lookbook & Footer)
   ======================================== */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.info-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.info-modal.active {
  opacity: 1;
  visibility: visible;
}

.info-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-primary);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-modal.active .info-modal-content {
  transform: translateY(0) scale(1);
}

/* 이벤트 모달 스크롤 영역 */
.events-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.25) transparent;
}
.events-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.events-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.events-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 10px;
}
.events-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.45);
}
.events-scroll-area img {
  transition: transform 0.3s ease;
}
.events-scroll-area img:hover {
  transform: scale(1.02);
}

.lookbook-modal-content {
  max-width: 900px;
}

.info-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.info-modal-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.info-modal-close:hover svg {
  stroke: white;
}

.info-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

.info-modal-header {
  padding: 40px 40px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.info-modal-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.info-modal-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.info-modal-body {
  padding: 32px 40px 40px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.8;
  color: var(--text-secondary);
}

.info-modal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.info-modal-body h3:first-child {
  margin-top: 0;
}

.info-modal-body p {
  margin-bottom: 16px;
}

.info-modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.info-modal-body li {
  margin-bottom: 8px;
}

.info-modal-body .highlight-box {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid var(--primary);
}

.info-modal-body .pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.info-modal-body .pricing-table th,
.info-modal-body .pricing-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.info-modal-body .pricing-table th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
}

.info-modal-body .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 12px;
}

.info-modal-body .blog-post {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.info-modal-body .blog-post:hover {
  transform: translateX(8px);
  border-left: 4px solid var(--primary);
}

.info-modal-body .blog-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.info-modal-body .blog-info h4 {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-modal-body .blog-info p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.info-modal-body .blog-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.info-modal-body .job-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.info-modal-body .job-card:hover {
  border-color: var(--primary);
}

.info-modal-body .job-card h4 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-modal-body .job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.info-modal-body .job-tag {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Lookbook Modal Specific */
.lookbook-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.lookbook-image {
  background-size: cover;
  background-position: center;
}

.lookbook-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.lookbook-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
}

.lookbook-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.lookbook-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.lookbook-items h4,
.lookbook-colors h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.lookbook-items {
  margin-bottom: 24px;
}

.lookbook-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 8px;
}

.lookbook-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lookbook-item span {
  font-weight: 500;
}

.lookbook-colors {
  margin-bottom: 24px;
}

.lookbook-palette {
  display: flex;
  gap: 8px;
}

.lookbook-color {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

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

.lookbook-try-btn {
  margin-top: auto;
}

/* 제휴문의 Formspree 폼 - 모달 스크롤로 하단 버튼까지 표시 */
.partnership-form-content {
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.partnership-form-content .info-modal-header {
  padding-bottom: 12px;
}

.partnership-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 400;
}

.partnership-form {
  padding: 0 40px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.partnership-form .form-group {
  margin-bottom: 20px;
}

.partnership-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.partnership-form .form-group .required {
  color: var(--secondary);
}

.partnership-form input,
.partnership-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.partnership-form input:focus,
.partnership-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.partnership-form textarea {
  resize: vertical;
  min-height: 100px;
}

.partnership-form .form-status {
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 1.4em;
}

.partnership-form .form-status-success {
  color: #16a34a;
  font-weight: 500;
}

.partnership-form .form-status-error {
  color: #dc2626;
  font-weight: 500;
}

.partnership-submit {
  width: 100%;
  justify-content: center;
}

.partnership-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   Auth Modal (로그인 / 회원가입) — Premium
   ======================================== */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

/* 모달 카드 */
.auth-modal .info-modal-content {
  max-width: 440px;
  max-height: 90vh;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* 닫기 버튼 — 헤더 우상단 내부 */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.auth-close svg {
  stroke: #fff;
  transition: var(--transition);
}
.auth-close:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(90deg) scale(1.1);
}
.auth-close:hover svg {
  stroke: #fff;
}

/* 헤더 — 그라데이션 */
.auth-header {
  padding: 32px 48px 20px;
  text-align: center;
  background: var(--gradient-primary);
  border-radius: 28px 28px 0 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  position: relative;
  font-weight: 400;
}

/* 탭 */
.auth-tabs {
  display: flex;
  margin: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.auth-tab {
  flex: 1;
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.auth-tab:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.03);
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-primary);
}

/* 폼 영역 */
.auth-body {
  padding: 28px 44px 36px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.auth-form-panel {
  display: none;
}
.auth-form-panel.active {
  display: block;
  animation: authFadeIn 0.3s ease-out;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 필드 */
.auth-field {
  margin-bottom: 20px;
}
.auth-field:last-of-type {
  margin-bottom: 24px;
}
.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}
.auth-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.925rem;
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  height: 48px;
  box-sizing: border-box;
}
.auth-input-wrap input::placeholder {
  color: var(--text-muted);
}
.auth-input-wrap input:hover {
  border-color: var(--primary-light);
  background: var(--bg-primary);
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.auth-input-wrap input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  stroke: var(--primary);
}

/* 에러 메시지 */
.auth-error {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-bottom: 20px;
  min-height: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.5;
  transition: var(--transition);
}
.auth-error:not(:empty) {
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.06);
  border-radius: 12px;
  border-left: 3px solid #dc2626;
}

/* 제출 버튼 */
.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  height: 50px;
  border-radius: 12px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}
.auth-submit:hover::before {
  opacity: 1;
}
.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--text-muted, #64748b);
  font-size: 0.8125rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, rgba(255,255,255,0.12));
}
[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0,0,0,0.08);
}

.auth-google-btn {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-primary, #f1f5f9);
  background: var(--card-bg, rgba(30, 41, 59, 0.6));
  border: 1px solid var(--border-color, rgba(255,255,255,0.15));
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.auth-google-btn:hover {
  background: var(--card-bg-hover, rgba(51, 65, 85, 0.6));
  border-color: rgba(255,255,255,0.25);
}
[data-theme="light"] .auth-google-btn {
  color: #1e293b;
  background: #fff;
  border-color: #e2e8f0;
}
[data-theme="light"] .auth-google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.auth-google-icon {
  flex-shrink: 0;
}

.info-modal.open {
  visibility: visible;
  opacity: 1;
}
.info-modal.open .info-modal-content {
  transform: scale(1);
}

@media (max-width: 768px) {
  .lookbook-detail {
    grid-template-columns: 1fr;
  }

  .lookbook-image {
    height: 250px;
  }

  .lookbook-info {
    padding: 24px;
  }

  .info-modal-header,
  .info-modal-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .partnership-form {
    padding: 0 24px 32px;
  }

  .auth-modal .info-modal-content {
    max-width: calc(100% - 24px);
    margin: 12px;
    border-radius: 24px;
  }

  .auth-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .auth-header {
    padding: 28px 28px 18px;
    border-radius: 24px 24px 0 0;
  }

  .auth-logo {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .auth-title {
    font-size: 1.2rem;
  }

  .auth-body {
    padding: 24px 28px 32px;
  }

  .auth-tab {
    padding: 12px 16px;
    font-size: 0.825rem;
  }

  .auth-field {
    margin-bottom: 16px;
  }

  .auth-field label {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .auth-input-wrap input {
    padding: 11px 14px 11px 42px;
    height: 46px;
    border-radius: 10px;
    font-size: 0.875rem;
  }

  .auth-submit {
    height: 46px;
    border-radius: 10px;
    font-size: 0.875rem;
  }
}

/* ========================================
   AI Styling Modal
   ======================================== */
.styling-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.styling-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.styling-modal.active {
  opacity: 1;
  visibility: visible;
}

.styling-modal-content {
  position: relative;
  width: 100%;
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  background: var(--bg-primary);
  border-radius: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.styling-modal.active .styling-modal-content {
  transform: translateY(0) scale(1);
}

.styling-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.styling-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.styling-close:hover svg {
  stroke: white;
}

.styling-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

/* Progress Bar */
.styling-progress {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border-color);
}

.progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.progress-step.active .step-dot {
  background: var(--gradient-primary);
  color: white;
}

.progress-step.completed .step-dot {
  background: #22c55e;
  color: white;
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

/* Styling Steps */
.styling-step {
  display: none;
  flex-direction: column;
  padding: 32px 40px;
  overflow-y: auto;
  max-height: calc(90vh - 180px);
}

.styling-step.active {
  display: flex;
}

.step-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.step-content {
  flex: 1;
}

/* Form Groups */
.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

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

.age-options {
  grid-template-columns: repeat(5, 1fr);
}

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

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.option-icon {
  font-size: 2rem;
}

.option-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Body Icons */
.body-icon {
  width: 40px;
  height: 60px;
  border-radius: 20px;
  position: relative;
}

.body-icon.slim {
  width: 24px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

.body-icon.standard {
  width: 32px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

.body-icon.muscular {
  width: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

.body-icon.curvy {
  width: 36px;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Style Grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.style-card {
  position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.style-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.style-card.selected {
  border-color: var(--primary);
}

.style-preview {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.minimal-preview {
  background: url('https://images.unsplash.com/photo-1434389677669-e08b4cac3105?w=400&q=80') center/cover;
}
.casual-preview {
  background: url('https://images.unsplash.com/photo-1552374196-1ab2a1c593e8?w=400&q=80') center/cover;
}
.street-preview {
  background: url('https://images.unsplash.com/photo-1523398002811-999ca8dec234?w=400&q=80') center/cover;
}
.romantic-preview {
  background: url('https://images.unsplash.com/photo-1502716119720-b23a93e5fe1b?w=400&q=80') center/cover;
}
.classic-preview {
  background: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=400&q=80') center/cover;
}
.sporty-preview {
  background: url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=400&q=80') center/cover;
}

.style-info {
  padding: 16px;
  text-align: center;
}

.style-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.style-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 다크 모드: 스타일 카드(미니멀, 캐주얼 등) 텍스트 가독성 */
[data-theme="dark"] .style-card .style-info h4 {
  color: var(--text-primary);
}
[data-theme="dark"] .style-card .style-info p {
  color: var(--text-secondary);
}

.style-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.style-card.selected .style-check {
  opacity: 1;
  transform: scale(1);
}

.style-check svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* Color Options */
.color-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-option:hover {
  border-color: var(--primary-light);
}

.color-option.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.skin-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.skin-circle.fair { background: #ffe4c9; }
.skin-circle.light { background: #f5d5b8; }
.skin-circle.medium { background: #d4a574; }
.skin-circle.tan { background: #a67c52; }

.color-option span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Undertone Options */
.undertone-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.undertone-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.undertone-card:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.undertone-card.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.undertone-preview {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.undertone-preview.warm { background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%); }
.undertone-preview.cool { background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%); }
.undertone-preview.neutral { background: linear-gradient(135deg, #f5f5f4 0%, #d6d3d1 100%); }

.undertone-colors {
  display: flex;
  gap: 4px;
}

.undertone-colors span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.undertone-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.undertone-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.btn-prev,
.btn-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-prev {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
}

.btn-prev:hover {
  background: var(--bg-secondary);
}

.btn-next {
  background: var(--gradient-primary);
  color: white;
  border: none;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-prev svg,
.btn-next svg {
  width: 18px;
  height: 18px;
}

/* Analysis Loading */
.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.loading-animation {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.loading-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: loadingBounce 1.4s infinite ease-in-out;
}

.loading-circle:nth-child(1) { animation-delay: 0s; }
.loading-circle:nth-child(2) { animation-delay: 0.2s; }
.loading-circle:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.analysis-loading h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analysis-loading p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.loading-progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

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

/* Analysis Result */
.analysis-result {
  padding: 32px 40px;
}

.result-header {
  text-align: center;
  margin-bottom: 32px;
}

.result-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

/* 퍼스널 컬러·추천 스타일·코디 추천·스타일링 팁: K-BEAUTY/SPECIAL처럼 가로형 전체 너비 */
.result-grid .personal-color-card,
.result-grid .style-card,
.result-grid .recommendation-card,
.result-grid .tips-card {
  grid-column: 1 / -1;
  min-width: 0;
}

.result-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

/* K-뷰티 동의 (Step 4) */
.k-beauty-consent-wrap {
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}
.k-beauty-consent-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.45;
}
.k-beauty-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}
.k-beauty-consent-label input { accent-color: var(--primary); }
.k-beauty-consent-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 0 0;
}

/* K-뷰티 추천: 무드&음악처럼 가로형 전체 너비 */
.k-beauty-row {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 8px;
}

.k-beauty-zone {
  position: relative;
  padding: 24px 20px;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.1) 0%, rgba(124, 58, 237, 0.12) 50%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.k-beauty-rainbow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 35%, #6366f1 65%, #7c3aed 100%);
  border-radius: 20px 20px 0 0;
}

.k-beauty-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.k-beauty-headline {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.k-beauty-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.k-beauty-content { margin-top: 0; }

.k-beauty-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.k-beauty-slots {
  min-height: 2em;
  flex: 1;
  min-width: 200px;
}

.k-beauty-preparing {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.k-beauty-consent-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
  gap: 8px;
}
.k-beauty-consent-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.k-beauty-consent-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
}
.k-beauty-consent-btn:active {
  transform: scale(0.98);
}

/* K-뷰티 메이크업 전/후 */
.k-beauty-makeup {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}
.k-beauty-makeup-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.k-beauty-makeup-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.k-beauty-makeup-compare {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.k-beauty-makeup-before,
.k-beauty-makeup-after {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.k-beauty-makeup-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.k-beauty-makeup-img-wrap {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.k-beauty-makeup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.k-beauty-makeup-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.k-beauty-makeup-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: rgba(124, 58, 237, 0.5);
  flex-shrink: 0;
}
.k-beauty-makeup-after-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.k-beauty-makeup-after-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.k-beauty-makeup-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.k-beauty-makeup-btn:hover:not(:disabled) {
  opacity: 0.95;
  transform: scale(1.02);
}
.k-beauty-makeup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.k-beauty-makeup-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.k-beauty-makeup-save-wrap {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.k-beauty-makeup-save-btn,
.k-beauty-makeup-apply-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.k-beauty-makeup-save-btn {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.k-beauty-makeup-save-btn:hover {
  opacity: 0.9;
}
.k-beauty-makeup-apply-btn {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
}
.k-beauty-makeup-apply-btn:hover {
  opacity: 0.95;
}
.k-beauty-makeup-tips {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.k-beauty-makeup-tips-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.k-beauty-makeup-tips-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  white-space: pre-line;
}

.k-beauty-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.k-beauty-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

/* 무드·음악 전용 행: 그리드 전체 너비, 퍼스널 컬러/추천 스타일과 분리해 균형 확보 */
.mood-music-row {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 8px;
}

.personal-color-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

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

.card-icon {
  font-size: 1.5rem;
}

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

/* Personal Color Result */
.personal-color-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.color-type {
  display: flex;
  align-items: center;
  gap: 16px;
}

.color-season {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.color-season.spring { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }
.color-season.summer { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; }
.color-season.autumn { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); color: #9a3412; }
.color-season.winter { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; }

.recommended-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.palette-color {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* 나만의 컬러에 어울리는 한글 친구 (카드 + 맨 오른쪽 캐릭터 이미지) */
.personal-color-hangul-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.personal-color-hangul {
  flex: 1;
  min-width: 0;
}
.personal-color-hangul-character {
  flex-shrink: 0;
}
.personal-color-hangul-character .hangul-character-img {
  display: block;
  max-width: 140px;
  max-height: 160px;
  object-fit: contain;
}
.personal-color-hangul-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.personal-color-hangul-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}
.personal-color-hangul-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.personal-color-hangul-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.personal-color-hangul-message {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* 7컬러 × 무드 & 음악 존 (이벤트형 특별 공간) */
.mood-music-zone {
  position: relative;
  margin-top: 20px;
  padding: 24px 20px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.mood-music-rainbow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 14%, #eab308 28%, #22c55e 42%, #3b82f6 57%, #6366f1 71%, #a855f7 100%);
  border-radius: 20px 20px 0 0;
}

.mood-music-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.mood-music-headline {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.mood-music-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mood-music-color-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.mood-music-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.mood-music-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.mood-music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.mood-music-btn-icon {
  font-size: 1.1rem;
  opacity: 0.95;
}

.mood-music-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.mood-music-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
  filter: brightness(1.05);
}

.mood-music-btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.mood-music-btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] .mood-music-zone {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.12) 50%, rgba(124, 58, 237, 0.15) 100%);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mood-music-color-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.5);
}

/* Style Result */
.style-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.style-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  font-weight: 600;
  color: var(--primary);
}

.style-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Recommendation & Tips (가로형 전체 너비 카드 내 본문 가독성) */
.recommendation-content,
.tips-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 72ch;
}

.recommendation-content ul,
.tips-content ul {
  list-style: none;
  padding: 0;
}

.recommendation-content li,
.tips-content li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.recommendation-content li::before,
.tips-content li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

/* Result Actions */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn-naver-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #03c75a;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-naver-shop:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 199, 90, 0.4);
}

.btn-naver-shop svg {
  width: 18px;
  height: 18px;
}

.btn-save,
.btn-retry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-retry {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-retry:hover {
  background: var(--bg-secondary);
}

.btn-save svg,
.btn-retry svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .styling-modal-content {
    max-height: 95vh;
    border-radius: 24px;
  }

  .styling-progress {
    padding: 24px 20px 16px;
  }

  .progress-steps {
    display: none;
  }

  .styling-step {
    padding: 24px 20px;
  }

  .step-header h2 {
    font-size: 1.4rem;
  }

  .gender-options,
  .age-options,
  .body-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .result-actions {
    flex-direction: column;
  }
}

/* ========================================
   AI Chat Widget
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-sans);
}

.chat-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.chat-toggle svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.chat-toggle-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  clip-path: circle(50%);
  -webkit-clip-path: circle(50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.chat-icon,
.chat-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.chat-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chat-widget.active .chat-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chat-widget.active .chat-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 8px;
  animation: pulse 2s infinite;
}

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

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  height: 650px;
  max-height: calc(100vh - 120px);
  background: var(--bg-primary);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .chat-container {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
}

.chat-widget.active .chat-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  background: var(--gradient-primary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-avatar {
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  overflow: visible;
  border: none;
  padding: 0;
}
.chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  clip-path: circle(50%);
  -webkit-clip-path: circle(50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scale(1.0);
  will-change: transform;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 1);
  z-index: 10;
}

.chat-header-text h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.chat-status {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.chat-minimize {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-minimize:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chat-minimize svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 24px 200px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* Welcome Screen */
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 24px;
}

.welcome-avatar {
  width: 96px;
  height: 96px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
}
.welcome-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  clip-path: circle(50%);
  -webkit-clip-path: circle(50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scale(1.0);
  will-change: transform;
}
.welcome-avatar svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.chat-welcome h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-welcome p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 40px;
}

.quick-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.quick-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Message Bubbles */
.message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: messageIn 0.3s ease;
}

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

.message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
  border: none;
  padding: 0;
}

.message.assistant .message-avatar {
  background: transparent;
  color: white;
  overflow: hidden;
}
.message-avatar .message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  clip-path: circle(50%);
  -webkit-clip-path: circle(50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scale(1.0);
  will-change: transform;
}

.message.user .message-avatar {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.message.assistant .message-bubble {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.message.user .message-bubble {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 6px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.message.user .message-time {
  text-align: right;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.typing-indicator .message-avatar {
  width: 52px;
  height: 52px;
  background: transparent;
  color: white;
  border: none;
  padding: 0;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: 20px;
  border-bottom-left-radius: 6px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Chat Input */
.chat-input-container {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  resize: none;
  max-height: 120px;
  line-height: 1.5;
  padding: 8px 0;
  font-family: inherit;
}

#chat-input::placeholder {
  color: var(--text-muted);
}

#chat-input:focus {
  outline: none;
}

.chat-image-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--border-color, #e5e7eb);
  color: var(--text-muted, #888);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}
.chat-image-btn:hover {
  border-color: var(--primary-color, #9333ea);
  color: var(--primary-color, #9333ea);
  background: rgba(147, 51, 234, 0.06);
}
.chat-image-btn.has-image {
  border-color: var(--primary-color, #9333ea);
  color: var(--primary-color, #9333ea);
  background: rgba(147, 51, 234, 0.1);
}
.chat-image-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(147, 51, 234, 0.06);
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chat-image-preview-bar img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.chat-image-preview-bar .remove-image {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 2px 6px;
}
.chat-msg-image {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.chat-msg-image:hover {
  transform: scale(1.02);
}
.chat-img-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.chat-img-download-btn,
.chat-img-newtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-img-download-btn {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #fff;
}
.chat-img-download-btn:hover {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(142, 68, 173, 0.4);
}
.chat-img-download-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.chat-img-newtab-btn {
  background: rgba(155, 89, 182, 0.12);
  color: #9b59b6;
}
.chat-img-newtab-btn:hover {
  background: rgba(155, 89, 182, 0.22);
  transform: translateY(-1px);
}
.chat-generating-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--primary-color, #9333ea);
  font-size: 0.85rem;
}
.chat-generating-indicator .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(147, 51, 234, 0.2);
  border-top-color: var(--primary-color, #9333ea);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.chat-send:hover {
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-send svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.chat-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 0 4px;
}

.chat-powered {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-voice-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-tertiary, #f3f4f6);
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.chat-voice-btn:hover {
  background: var(--primary-color, #9333ea);
  color: white;
}

.chat-voice-btn.active {
  background: var(--primary-color, #9333ea);
  color: white;
}

.chat-mic-btn.recording {
  background: #ef4444;
  color: white;
  animation: mic-pulse 1.2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.chat-tts-btn.active {
  background: var(--primary-color, #9333ea);
  color: white;
}

/* Voice Guide Quick Button */
.voice-guide-quick-btn {
  background: linear-gradient(135deg, #9333ea, #c084fc) !important;
  color: white !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
  animation: voiceGuidePulse 2s ease-in-out infinite;
}
.voice-guide-quick-btn:hover {
  background: linear-gradient(135deg, #7c22d6, #a855f7) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.5);
}
@keyframes voiceGuidePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3); }
  50% { box-shadow: 0 2px 16px rgba(147, 51, 234, 0.6); }
}

/* Voice Guide Panel */
.voice-guide-panel {
  background: var(--bg-secondary, #f8f5ff);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}
.voice-guide-panel::-webkit-scrollbar {
  width: 4px;
}
.voice-guide-panel::-webkit-scrollbar-thumb {
  background: var(--primary-color, #9333ea);
  border-radius: 4px;
}
.voice-guide-section {
  margin-bottom: 12px;
}
.voice-guide-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color, #9333ea);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
  cursor: pointer;
  user-select: none;
}
.voice-guide-section-title .vg-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.voice-guide-section-title.collapsed .vg-arrow {
  transform: rotate(-90deg);
}
.voice-guide-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.voice-guide-items.hidden {
  display: none;
}
.voice-guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--bg-primary, white);
  border: 1px solid rgba(147, 51, 234, 0.2);
  font-size: 0.76rem;
  color: var(--text-primary, #333);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.voice-guide-chip:hover {
  background: var(--primary-color, #9333ea);
  color: white;
  border-color: var(--primary-color, #9333ea);
}
.voice-guide-chip .vg-icon {
  font-size: 0.9rem;
}

/* Save Notification */
.save-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
}

.save-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.notification-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-menu-btn span {
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
  }

  .chat-container {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 72px;
    right: -8px;
    border-radius: 20px;
  }

  .chat-messages {
    padding: 16px 16px 140px 16px;
  }

  .quick-btn {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}

/* ========================================
   Step 2: Body Measurement Styles
   ======================================== */
.photo-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-upload-area:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 64px;
  height: 64px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.upload-placeholder p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-placeholder span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.face-sample-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.face-sample-item {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  background: var(--bg-secondary);
}

.face-sample-item:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.face-sample-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.face-sample-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-preview img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 16px;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.photo-remove-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.photo-remove-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.measurement-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.measurement-field input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.measurement-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.measurement-field input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.body-analysis-preview {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.bmi-result {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bmi-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  background: var(--gradient-primary);
  border-radius: 16px;
  color: white;
}

.bmi-value span {
  font-size: 2rem;
  font-weight: 900;
}

.bmi-value small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.bmi-info {
  flex: 1;
}

.bmi-info span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bmi-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========================================
   Step 6: Virtual Try-On Styles
   ======================================== */
.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  background: var(--bg-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.category-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.garment-section {
  margin-bottom: 32px;
}

.garment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.garment-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.garment-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.garment-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.garment-item img {
  width: 100%;
  height: 140px;
  min-height: 140px;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: var(--bg-tertiary);
}
/* 패션 8·11 등 비율이 다른 이미지도 칸에 맞게 중앙 기준으로 표시 */

.garment-item span {
  display: block;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

.garment-buy-btn {
  display: block;
  padding: 8px 12px;
  margin: 0 8px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.12);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.garment-buy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.garment-upload-area {
  display: flex;
  justify-content: center;
}

.btn-upload-garment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-garment:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.btn-upload-garment svg {
  width: 20px;
  height: 20px;
}

.tryon-result-area {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border-color);
}

.tryon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.tryon-before,
.tryon-after {
  flex: 1;
  text-align: center;
}

.tryon-before h4,
.tryon-after h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tryon-image-box {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  background: var(--bg-tertiary);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.tryon-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tryon-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.tryon-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.tryon-placeholder span {
  font-size: 0.85rem;
}

.tryon-arrow {
  flex-shrink: 0;
}

.tryon-arrow svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.tryon-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-generate-tryon,
.btn-download-tryon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-generate-tryon {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-generate-tryon:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-generate-tryon:disabled,
.btn-download-tryon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-download-tryon {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-download-tryon:hover:not(:disabled) {
  background: var(--bg-secondary);
}

.btn-generate-tryon svg,
.btn-download-tryon svg {
  width: 18px;
  height: 18px;
}

.tryon-loading,
.tryon-error {
  text-align: center;
  padding: 40px;
}

.tryon-loading p,
.tryon-error p {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
}

.tryon-loading small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   AI Fashion Image Styles
   ======================================== */
.fashion-image-card {
  grid-column: span 2;
}

.fashion-image-content {
  min-height: 300px;
}

.fashion-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
}

.fashion-image-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.fashion-image-placeholder .fashion-error-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 12px;
  max-width: 320px;
  word-break: break-word;
  opacity: 0.9;
}

.btn-generate-fashion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-generate-fashion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-generate-fashion svg {
  width: 18px;
  height: 18px;
}

.fashion-image-result {
  text-align: center;
}

.fashion-image-result img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.fashion-image-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-regenerate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-regenerate:hover {
  background: var(--bg-secondary);
}

.btn-regenerate svg {
  width: 16px;
  height: 16px;
}

.btn-taste-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-taste-like:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-taste-like svg {
  width: 16px;
  height: 16px;
}

.taste-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.taste-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tryon-result-wrap {
  width: 100%;
}

.tryon-result-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.tryon-result-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-tryon-shop {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-tryon-shop:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  color: #fff;
}

.btn-tryon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4) !important;
}

.btn-tryon:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5) !important;
}

.btn-finish {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}

.btn-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-finish svg {
  width: 18px;
  height: 18px;
}

/* Loading Spinner */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Progress steps responsive for 6 steps */
@media (max-width: 768px) {
  .progress-steps {
    gap: 4px;
  }

  .step-label {
    display: none;
  }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .measurement-inputs {
    grid-template-columns: 1fr;
  }

  .tryon-preview {
    flex-direction: column;
  }

  .tryon-arrow {
    transform: rotate(90deg);
  }

  .garment-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .tryon-actions {
    flex-direction: column;
  }
}

/* ========================================
   Borahae Shop & Membership Sections
   ======================================== */
.shop-categories a.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.shop-categories a.btn-outline.active,
.shop-categories a.btn-outline[href="#boratime"] {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.shop-categories a.btn-outline:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shop-categories a.btn-outline.active:hover {
  background: var(--gradient-primary);
  color: #fff;
}

.membership-grid .feature-card {
  transition: var(--transition);
}
.membership-grid .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.membership-grid ul li {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-disclaimer {
  border: 1px solid var(--border-color);
}
.footer-disclaimer strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .membership-grid {
    grid-template-columns: 1fr !important;
  }
  .shop-categories {
    gap: 8px !important;
  }
  .shop-categories a.btn-outline {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }
}

/* ========================================
   Borahae Lightstick Designer
   ======================================== */
/* Step Indicator */
.ls-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}
.ls-dot.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* Color Grid */
.ls-color-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.ls-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.ls-color-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}
.ls-color-item.selected {
  border-color: var(--primary);
  background: var(--bg-tertiary);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}
.ls-color-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.ls-color-item.selected .ls-color-circle {
  transform: scale(1.15);
  box-shadow: 0 0 20px currentColor;
}
.ls-color-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Tag Buttons */
.ls-tag-btn {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.ls-tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ls-tag-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* Shape selection buttons */
.ls-shape-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ls-shape-btn:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}
.ls-shape-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

/* Community share links */
.ls-community-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* Lightstick modal inner */
.lightstick-modal-inner {
  padding: 32px 24px;
}

/* Spinner for loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive for lightstick section */
@media (max-width: 768px) {
  #lightstick .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ls-color-grid {
    gap: 10px;
  }
  .ls-color-circle {
    width: 42px;
    height: 42px;
  }
  .lightstick-modal-inner {
    padding: 20px 16px;
  }
}

/* ========================================
   한글 공감각 건축 그리드 (사랑의 인사 샘플)
   ======================================== */
.info-modal-content--wide {
  max-width: 960px;
}

/* 지니 스타일 · 곧 만나요 안내 팝업 */
.genie-coming-soon-modal .genie-coming-soon-content {
  background: #fff;
}
.genie-coming-soon-inner {
  width: 100%;
}
@media (max-width: 480px) {
  .genie-coming-soon-inner {
    flex-direction: column;
  }
  .genie-coming-soon-visual {
    min-height: 160px !important;
    width: 100%;
  }
  .genie-coming-soon-text {
    min-width: 100% !important;
  }
}

.architecture-grid-container {
  overflow-x: auto;
  padding: 8px 0;
}
.hangeul-arch-grid-wrap {
  width: 100%;
}
.hangeul-arch-grid {
  display: inline-block;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hangeul-arch-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-color);
}
.hangeul-arch-row:last-child {
  border-bottom: none;
}
.hangeul-arch-cell {
  flex: 0 0 auto;
  padding: 6px 4px;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}
.hangeul-arch-cell:last-child {
  border-right: none;
}
.hangeul-arch-header .hangeul-arch-cell {
  background: var(--bg-secondary);
  font-weight: 700;
  min-width: 44px;
}
.hangeul-arch-corner {
  min-width: 100px;
  max-width: 120px;
}
.hangeul-arch-bar-num {
  min-width: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hangeul-arch-role-label {
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.hangeul-arch-bar-cell {
  min-width: 44px;
  background: var(--bg-tertiary);
}
.hangeul-arch-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  align-items: center;
}
.hangeul-arch-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hangeul-arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.hangeul-arch-legend-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .hangeul-arch-bar-num,
  .hangeul-arch-bar-cell { min-width: 32px; }
  .hangeul-arch-block { width: 18px; height: 18px; font-size: 0.75rem; }
  .hangeul-arch-role-label { font-size: 0.7rem; min-width: 72px; }
  .architecture-modal-inner { padding: 16px; }
}
