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

/* 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: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.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 {
  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:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 32px;
  height: 100%;
  padding: 20px;
  overflow: hidden;
}

.app-header {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

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

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

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

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

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

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

/* ========================================
   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: 800px;
  max-height: 90vh;
  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);
}

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

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

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

/* 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;
  gap: 16px;
  justify-content: center;
}

.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;
  overflow-y: auto;
  padding: 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: 20px 0;
}

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

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

.chat-welcome h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  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.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.quick-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  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;
  }

  .quick-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}
