/* ========================================
   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;

  --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;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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);
}

/* 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-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .hero-gradient {
  background: 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;
  overflow: hidden;
}

.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: block;
  color: var(--text-primary);
}

.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;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  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);
}

.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: 20px;
  overflow: hidden;
}

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

.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;
}

.style-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.style-card:hover {
  transform: scale(1.02);
}

.style-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.style-image.img-2 {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.style-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.style-match {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.style-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.style-mood {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.hero-color-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-color-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ai-suggestion {
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

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

.ai-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ========================================
   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: 40px 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.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;
}

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

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

.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);
}

/* 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: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

.demo-dots {
  display: flex;
  gap: 8px;
}

.demo-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.demo-dots span:first-child { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:last-child { background: #22c55e; }

.demo-header > span {
  font-weight: 600;
  font-size: 0.9rem;
}

.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);
}

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

.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;
}

.look-large {
  grid-column: span 2;
  grid-row: span 2;
}

.look-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.look-1 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%),
              url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=800&q=80') center/cover;
}
.look-2 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%),
              url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=600&q=80') center/cover;
}
.look-3 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%),
              url('https://images.unsplash.com/photo-1507680434567-5739c80be1ac?w=600&q=80') center/cover;
}
.look-4 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%),
              url('https://images.unsplash.com/photo-1509631179647-0177331693ae?w=600&q=80') center/cover;
}
.look-5 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%),
              url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?w=600&q=80') center/cover;
}

.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);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  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;
  }

  .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: 260px;
    height: 520px;
    transform: none;
  }

  .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);
}

.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);
}

.about-team {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-team > span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.team-avatars {
  display: flex;
  align-items: center;
}

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: -12px;
  border: 3px solid var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
}

.team-avatar:first-child {
  margin-left: 0;
}

.team-avatar:hover {
  transform: scale(1.15);
  z-index: 10;
}

.team-more {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: -12px;
  border: 3px solid var(--bg-primary);
}

@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;
  }

  .about-team {
    justify-content: 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);
}

.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);
}

.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;
}

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

/* 무드·음악 전용 행: 그리드 전체 너비, 퍼스널 컬러/추천 스타일과 분리해 균형 확보 */
.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);
}

/* 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.7;
}

.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-icon,
.chat-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.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: 600px;
  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: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

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

.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 56px 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: 12px 0 20px;
}

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

.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: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.quick-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.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: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.message.assistant .message-avatar {
  background: var(--gradient-primary);
  color: white;
}

.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: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
}

.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: 16px 20px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.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-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-powered {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* 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 48px 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);
}

.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;
  object-fit: cover;
}

.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;
  }
}
