/* ===========================
   SmartPhoto - AI电商做图平台
   Design System: Modern / Clean / SaaS
   =========================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors - Modern SaaS Light Palette */
  --color-primary: #A855F7;
  --color-primary-hover: #9333EA;
  --color-primary-light: rgba(168, 85, 247, 0.1);
  --color-primary-ring: rgba(168, 85, 247, 0.3);

  /* Backgrounds */
  --bg-page: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F3F4F6;
  --bg-dark: #111827;
  --bg-dark-secondary: #1F2937;

  /* Legacy aliases (used in JS/HTML inline) */
  --bg-primary: #F9FAFB;
  --bg-secondary: #F3F4F6;
  --bg-tertiary: #FFFFFF;
  --bg-glass-hover: rgba(0, 0, 0, 0.04);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;

  /* Accents */
  --accent-blue: #3B82F6;
  --accent-purple: #A855F7;
  --accent-cyan: #06B6D4;
  --accent-orange: #F59E0B;
  --accent-green: #22C55E;
  --accent-red: #EF4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #A855F7 0%, #7C3AED 50%, #6D28D9 100%);

  /* Borders */
  --border-color: #E5E7EB;
  --border-hover: #D1D5DB;
  --border-active: #A855F7;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-default: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-purple: 0 4px 14px 0 rgba(168, 85, 247, 0.25);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.15);

  /* Typography */
  --font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-apple: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.2s;
  --duration-slow: 0.3s;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--color-primary-hover); }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ===== Typography Utilities ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }

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

/* ===== Components: Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 56px;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--duration-slow) ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo-icon {
  font-size: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-blue);
  border-radius: var(--radius-sm);
  color: #fff;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: var(--space-xl);
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-links li { display: flex; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  border-radius: 0;
  transition: all var(--duration-fast) ease;
}

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

.nav-links a.active {
  color: var(--text-primary);
  background: none;
  box-shadow: none;
  font-weight: 600;
}
.nav-links a.active::after { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav-search-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-search-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.nav-cta {
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--duration-normal) ease;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-purple);
}

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast);
}
.nav-avatar:hover { opacity: 0.85; }

.nav-setting-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  display: flex; align-items: center; justify-content: center;
}
.nav-setting-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.nav-mobile-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-mobile-toggle span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 1px; }

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section { position: relative; z-index: 1; overflow: hidden; }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
  background: linear-gradient(180deg, #EFF6FF 0%, #F0F9FF 40%, var(--bg-page) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; left: 15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  z-index: 0;
  filter: blur(60px);
}

.hero-split {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: 100%;
}

.hero-left {
  flex: 1;
  z-index: 2;
}

.hero-right {
  flex: 1;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-amp {
  color: var(--text-primary);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Dark primary button (navy/dark blue) */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  background: #1E293B;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--duration-normal) ease;
}

.btn-primary-dark:hover {
  background: #0F172A;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.3);
  transform: translateY(-1px);
}

.btn-primary-dark:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Outline select button */
.btn-outline-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--duration-normal) ease;
}

.btn-outline-select:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.btn-outline-select .chevron {
  font-size: 0.75rem;
  transition: transform var(--duration-fast);
}

/* Hero Showcase */
.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.showcase-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.showcase-card:first-child {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
}

.showcase-effect {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFF7ED 100%);
}

.showcase-new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #EF4444;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 5;
}

.showcase-img-wrap {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.showcase-img-wrap img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.showcase-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  font-weight: 500;
}

.showcase-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-top: auto;
}

.showcase-select-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.showcase-select-btn .chevron {
  font-size: 0.7rem;
}

/* Generic Button Styles (used in wizard etc) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--duration-normal) ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-purple);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--duration-normal) ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

/* ===== Common Section Header ===== */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding: 4px 12px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  border: none;
  letter-spacing: 0;
  text-transform: none;
}
.section-title { font-size: 2.25rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--text-primary); }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.6; }

/* ===== 3-Step Flow ===== */
.steps-flow {
  padding: var(--space-4xl) 0;
  background: #0F172A;
}

.steps-flow .section-header { margin-bottom: var(--space-3xl); }

.steps-title {
  color: #FFFFFF !important;
  font-size: 2.25rem;
  font-weight: 700;
}

.steps-title .highlight-blue {
  color: #3B82F6;
  background: none;
  -webkit-text-fill-color: #3B82F6;
}

.steps-subtitle {
  color: #94A3B8 !important;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg);
  position: relative;
}
.steps-grid::before {
  display: none;
}

.step-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
  text-align: left;
  transition: all var(--duration-slow) ease;
  box-shadow: none;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #3B82F6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: #fff;
  margin: 0 0 var(--space-lg) 0;
  transition: all var(--duration-fast);
}
.step-card:hover .step-number {
  background: linear-gradient(135deg, #60A5FA, #3B82F6); color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.step-icon { font-size: 2rem; margin-bottom: var(--space-md); opacity: 1; }
.step-card h3 { font-size: 1.125rem; margin-bottom: var(--space-xs); font-weight: 600; color: #FFFFFF; }
.step-card p { font-size: 0.875rem; color: #94A3B8; line-height: 1.6; }

/* ===== Comparison / Case Showcase ===== */
.comparison { padding: var(--space-4xl) 0; background: var(--bg-page); }

/* Case Platform Header */
.case-platform-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.case-platform-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #FF6A00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-platform-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.case-platform-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comparison-grid {
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: var(--space-lg); align-items: center;
  max-width: 900px;
}
.comparison-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-default);
  position: relative;
  background: var(--bg-surface);
}
.comparison-card img { width: 100%; display: block; transition: transform 0.5s ease; }
.comparison-card:hover img { transform: scale(1.03); }

.comparison-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.comparison-arrow {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); color: var(--text-tertiary);
  font-size: 0.75rem; font-weight: 500;
}
.arrow-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: var(--shadow-purple);
}

/* ===== Value Props ===== */
.value-props { padding: var(--space-4xl) 0; background: var(--bg-page); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: left;
  transition: all var(--duration-slow) ease;
  box-shadow: var(--shadow-sm);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Feature Tags */
.feature-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tag-dot.blue { background: #3B82F6; }

/* Colored Icon Wraps */
.value-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}

.value-icon-wrap svg { width: 24px; height: 24px; }

.icon-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.icon-green {
  background: #D1FAE5;
  color: #059669;
}

.icon-purple {
  background: #F3E8FF;
  color: #7C3AED;
}

.icon-orange {
  background: #FFEDD5;
  color: #EA580C;
}

.value-icon { font-size: 1.75rem; margin-bottom: var(--space-md); }
.value-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-xs); }
.value-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== App Section (Wizard) ===== */
.app-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-page);
  min-height: 100vh;
  border-top: 1px solid var(--border-color);
}

/* Wizard Progress */
.wizard-progress {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-2xl);
  position: relative;
  left: 50%; transform: translateX(-50%);
  box-shadow: var(--shadow-default);
}

.wizard-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.wizard-step:hover { color: var(--text-secondary); background: var(--bg-page); }

.wizard-step.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-purple);
  border: none;
}
.wizard-step.completed { color: var(--accent-green); }

.wizard-step .step-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-tertiary);
}
.wizard-step.active .step-dot { background: rgba(255, 255, 255, 0.25); border-color: transparent; color: #fff; }
.wizard-step.completed .step-dot { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }

.wizard-connector { width: 1px; height: 16px; background: var(--border-color); margin: 0 2px; }

/* Step Panels */
.wizard-panel { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.wizard-panel.active { display: block; opacity: 1; transform: translateY(0); }

/* Step 1: Upload */
.upload-zone {
  background: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.upload-zone:hover {
  border-color: var(--color-primary);
  background: rgba(168, 85, 247, 0.02);
}
.upload-zone.drag-over {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  border-style: solid;
}
.upload-icon { font-size: 3rem; margin-bottom: var(--space-lg); opacity: 0.6; color: var(--text-primary); }
.upload-zone h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--text-primary); }
.upload-zone p { color: var(--text-secondary); font-size: 0.875rem; }

.upload-hint {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-primary);
  display: inline-block;
}

.upload-previews {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-md); margin-top: var(--space-xl);
}
.preview-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-color); aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-badge {
  position: absolute; bottom: 4px; left: 4px;
  font-size: 0.65rem; background: rgba(34, 197, 94, 0.9); color: #fff; padding: 2px 6px; border-radius: var(--radius-xs); backdrop-filter: blur(4px);
  font-weight: 500;
}

/* Upload Tips */
.upload-tips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg);
}
.tip-card {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; color: var(--text-primary);
}
.tip-emoji { font-size: 1.5rem; }

/* Step 2: Platform Selection */
.platform-category { margin-bottom: var(--space-lg); }
.platform-category-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.02em;
  margin-bottom: var(--space-sm); border-bottom: 1px solid var(--border-color); padding-bottom: var(--space-xs);
}
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-xl);
}
.platform-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: var(--space-md);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; transition: all var(--duration-fast);
  box-shadow: var(--shadow-sm);
}
.platform-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.platform-card.selected {
  background: var(--color-primary-light); border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-ring);
}
.platform-icon {
  font-size: 1.5rem; margin-bottom: var(--space-sm);
  width: 48px; height: 48px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: none;
  transition: all var(--duration-normal);
}
.platform-icon img {
  width: 100%; height: 100%; object-fit: contain; padding: 4px;
}
.platform-card:hover .platform-icon {
  border-color: var(--color-primary); background: var(--bg-surface); transform: none;
}
.platform-card h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.platform-card p { font-size: 0.75rem; color: var(--text-tertiary); }

/* AI Analysis Panel */
.ai-analysis-panel {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--space-lg);
  font-size: 0.875rem; margin-top: var(--space-xl);
  box-shadow: var(--shadow-default);
}
.ai-analysis-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--text-primary); }
.analysis-item { margin-bottom: var(--space-md); border-left: 3px solid var(--color-primary); padding-left: var(--space-md); }
.analysis-item .label { color: var(--text-tertiary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.analysis-item .value { color: var(--text-primary); font-weight: 500; }
.tag {
  display: inline-block; background: var(--color-primary-light); padding: 2px 10px;
  border-radius: var(--radius-full); font-size: 0.75rem; margin-right: 4px; margin-top: 4px; color: var(--color-primary);
  font-weight: 500;
}

/* Step 3: Results */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg);
}
.result-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all var(--duration-slow);
  box-shadow: var(--shadow-default);
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

.result-image-container { position: relative; aspect-ratio: 1; background: var(--bg-page); overflow: hidden; }
.result-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.result-card:hover img { transform: scale(1.03); }

/* Overlays */
.result-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0;
  transition: opacity var(--duration-normal); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.result-card:hover .result-overlay { opacity: 1; }

.overlay-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface);
  color: var(--text-primary); margin: 0 6px; font-size: 1rem;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.overlay-btn:hover { transform: scale(1.1); }

.result-info { padding: var(--space-md); }
.result-info h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--text-primary); }
.result-edit { display: flex; flex-direction: column; gap: 6px; }
.result-edit input {
  width: 100%; background: var(--bg-page); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-primary);
  font-size: 0.8rem; outline: none; transition: border-color var(--duration-fast);
  font-family: var(--font-body); box-sizing: border-box;
}
.result-edit input::placeholder { color: var(--text-muted); }
.result-edit input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-ring); }
.regen-btn {
  width: 100%; font-size: 0.8rem; padding: 8px 14px; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--bg-surface); transition: all var(--duration-fast);
  font-weight: 500; white-space: nowrap; cursor: pointer; box-sizing: border-box;
}
.regen-btn:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary); }
.regen-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.regen-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--border-color, #ddd);
  border-top-color: var(--color-primary, #6c5ce7);
  border-radius: 50%;
  animation: regenSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes regenSpin { to { transform: rotate(360deg); } }
.result-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #999);
  margin: 2px 0 6px;
  line-height: 1.4;
}

/* Buttons & Step Actions */
.step-actions {
  display: flex; justify-content: space-between; margin-top: var(--space-2xl);
  padding-top: var(--space-lg); border-top: 1px solid var(--border-color);
}
.btn-back {
  padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.875rem;
  color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-color);
  transition: all var(--duration-fast);
}
.btn-back:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-surface-hover); }

.btn-next {
  padding: 10px 28px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.875rem;
  background: var(--color-primary); color: #fff;
  transition: all var(--duration-normal);
}
.btn-next:hover:not(:disabled) { background: var(--color-primary-hover); box-shadow: var(--shadow-purple); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; background: var(--border-color); color: var(--text-muted); }

/* Delivery Bar */
.delivery-bar {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: var(--space-lg); margin-top: var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-default);
}
.delivery-info { display: flex; align-items: center; gap: var(--space-sm); }
.delivery-info .count { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.delivery-info p { color: var(--text-secondary); font-size: 0.875rem; }
.delivery-actions { display: flex; gap: var(--space-sm); }
.download-all-btn {
  background: var(--color-primary); color: #fff; padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem; transition: all var(--duration-normal);
}
.download-all-btn:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-purple); }

/* Global Edit Section */
.global-edit {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: var(--space-lg); margin-top: var(--space-xl);
  box-shadow: var(--shadow-default);
}
.global-edit h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-md); }
.global-edit textarea {
  width: 100%; background: var(--bg-page); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary); padding: var(--space-md);
  font-family: var(--font-body); font-size: 0.875rem; margin-bottom: var(--space-md); resize: vertical;
  outline: none; min-height: 60px;
}
.global-edit textarea::placeholder { color: var(--text-muted); }
.global-edit textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-ring); }
.example-chip {
  font-size: 0.75rem; background: var(--bg-page); border: 1px solid var(--border-color);
  padding: 4px 12px; border-radius: var(--radius-full); cursor: pointer; color: var(--text-secondary);
  transition: all var(--duration-fast); font-weight: 500;
}
.example-chip:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-light); }

/* CTA Section */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #1D4ED8 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 36px;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  border-top: none;
  padding: var(--space-3xl) 0 var(--space-xl);
  background: #0F172A;
}
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.footer-brand h3 { font-size: 1.125rem; margin-bottom: var(--space-md); color: #FFFFFF; }
.footer-brand p { color: #94A3B8; font-size: 0.875rem; max-width: 300px; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.875rem; text-transform: none; color: #FFFFFF; letter-spacing: 0; margin-bottom: var(--space-md);
  font-weight: 600;
}
.footer-col a {
  display: block; color: #94A3B8; font-size: 0.875rem; margin-bottom: 8px; transition: color var(--duration-fast);
}
.footer-col a:hover { color: #E2E8F0; }
.footer-bottom {
  border-top: 1px solid #1E293B; padding-top: var(--space-lg);
  font-size: 0.8rem; color: #64748B; display: flex; justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-split { flex-direction: column; gap: var(--space-xl); }
  .hero-showcase { grid-template-columns: 1fr 1fr; }
  .steps-grid, .comparison-grid, .value-grid { grid-template-columns: 1fr; }
  .comparison-arrow { flex-direction: row; padding: var(--space-xs) 0; }
  .steps-grid::before { display: none; }
  .wizard-progress { width: 100%; flex-wrap: wrap; justify-content: center; }
  .footer-content { grid-template-columns: 1fr; gap: var(--space-lg); }
  .navbar { padding: 0 var(--space-md); }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .upload-tips { grid-template-columns: 1fr; }
  .delivery-bar { flex-direction: column; gap: var(--space-md); text-align: center; }
  .delivery-actions { flex-direction: column; width: 100%; }
  .delivery-actions button { width: 100%; }
  .global-edit-input { flex-direction: column; }
  .feature-tags { flex-direction: column; gap: var(--space-sm); }
  .cta-section h2 { font-size: 1.75rem; }
}

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

/* Modals */
.modal-overlay, .settings-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 6000;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active, .settings-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-content { max-width: 90vw; max-height: 90vh; }
.modal-image { max-width: 100%; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.modal-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-surface); color: var(--text-primary);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all var(--duration-fast);
}
.modal-close:hover { background: var(--bg-surface-hover); }

.settings-panel {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
}
.settings-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg); border-bottom: 1px solid var(--border-color);
}
.settings-header h3 { font-size: 1.125rem; font-weight: 600; }
.settings-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--duration-fast);
}
.settings-close:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.settings-body { padding: var(--space-lg); }
.settings-group { margin-bottom: var(--space-lg); }
.settings-group label {
  display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs);
}
/* Settings inputs */
.settings-group input, .settings-group select {
  width: 100%; background: var(--bg-page); border: 1px solid var(--border-color); padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.875rem; outline: none;
  transition: border-color var(--duration-fast);
}
.settings-group input:focus, .settings-group select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-ring);
}
.settings-hint { display: block; margin-top: var(--space-xs); font-size: 0.75rem; color: var(--text-tertiary); }
.settings-hint a { color: var(--color-primary); font-weight: 500; }

/* ===== Utilities & States ===== */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Toast Notification */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}

/* Loading Spinner */
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-md);
}

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

.generation-loading { text-align: center; padding: var(--space-4xl) 0; }

.loading-progress {
  width: 100%; max-width: 320px; height: 4px;
  background: var(--bg-page); border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin: var(--space-lg) auto;
  overflow: hidden;
}

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

.loading-text { font-size: 0.875rem; color: var(--text-primary); margin-bottom: 4px; font-weight: 500; }
.loading-status { font-size: 0.75rem; color: var(--text-tertiary); }

/* Animation Keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* API Badge */
.api-connected-dot {
  width: 6px; height: 6px; background: var(--accent-green);
  border-radius: 50%; position: absolute; top: 6px; right: 6px;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
}

/* Additional Button Styles */
.detail-page-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem;
  transition: all var(--duration-fast);
}
.detail-page-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.apply-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--duration-normal);
  white-space: nowrap;
}
.apply-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-purple);
}

/* Global Edit Input Group */
.global-edit-input {
  display: flex; gap: var(--space-md); align-items: flex-start;
}
.global-examples {
  display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md);
}

/* Toggle Key Button */
.toggle-key-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  width: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.toggle-key-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* API Key Field */
.api-key-field { display: flex; gap: var(--space-xs); }
.api-key-field input { flex: 1; }

/* Settings Actions */
.settings-actions { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.settings-test-btn {
  flex: 1; padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-secondary); font-weight: 500; font-size: 0.875rem;
  transition: all var(--duration-fast);
}
.settings-test-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.settings-save-btn {
  flex: 1; padding: 10px; border: none; border-radius: var(--radius-sm);
  background: var(--color-primary); color: #fff; font-weight: 500; font-size: 0.875rem;
  transition: all var(--duration-normal);
}
.settings-save-btn:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-purple); }

/* Status Messages in Settings */
.settings-status { margin-top: var(--space-md); padding: 10px; border-radius: var(--radius-sm); font-size: 0.8rem; display: none; }
.settings-status.show { display: block; }
.settings-status.success { background: rgba(34, 197, 94, 0.1); color: #16A34A; border: 1px solid rgba(34, 197, 94, 0.2); }
.settings-status.error { background: rgba(239, 68, 68, 0.1); color: #DC2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.settings-status.loading { background: var(--color-primary-light); color: var(--color-primary); }


/* Refined Icon Containers */
.step-icon {
  width: 56px; height: 56px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 0 var(--space-md) 0;
  box-shadow: none;
  transition: all var(--duration-normal) ease;
}

.value-icon {
  width: 56px; height: 56px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 0 var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) ease;
}

.platform-icon {
  font-size: 1.5rem;
  width: 48px; height: 48px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: none;
  transition: all var(--duration-normal);
  margin: 0 auto var(--space-sm);
}

.step-card:hover .step-icon {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3B82F6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.value-card:hover .value-icon-wrap {
  transform: scale(1.05);
}

/* Nav Link Interaction */
.nav-links a:active {
  transform: scale(0.96);
}

/* Gradient Text Shine */
.gradient-text {
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

/* Wizard Step Completed Checkmark */
.wizard-step.completed .step-dot {
  font-size: 0;
}
.wizard-step.completed .step-dot::after {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  display: block;
}

/* AI Typing Cursor Effect */
.ai-analysis-panel .value::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-primary);
  margin-left: 2px;
  opacity: 0.7;
}
@keyframes blink { 50% { opacity: 0; } }

/* Platform Card Selection Ring */
.platform-card.selected {
  position: relative;
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.platform-card.selected::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid var(--color-primary);
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--color-primary-ring);
  pointer-events: none;
}

/* Upload Preview - Processing State */
.preview-item.processing::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.6);
  z-index: 10;
}
.preview-item.processing::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 11;
}

/* Remove Button */
.remove-btn {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: white; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0;
  transition: all var(--duration-fast);
}
.preview-item:hover .remove-btn { opacity: 1; }
.remove-btn:hover {
  background: #DC2626;
  transform: scale(1.1);
}

/* Result Type Badges */
.result-type-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.badge-white { background: rgba(255, 255, 255, 0.85); color: var(--text-primary); border: 1px solid var(--border-color); }
.badge-scene { background: rgba(34, 197, 94, 0.15); color: #16A34A; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-selling { background: var(--color-primary-light); color: var(--color-primary); border: 1px solid var(--color-primary-ring); }
.badge-structure { background: rgba(59, 130, 246, 0.1); color: #2563EB; border: 1px solid rgba(59, 130, 246, 0.2); }


/* ===========================================
   Fullscreen Wizard Overlay
   =========================================== */
.fs-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-page);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.fs-wizard-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ---- Header / Progress Bar ---- */
.fs-wizard-header {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.fs-wizard-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-right: 16px;
}
.fs-wizard-close:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.fs-progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.fs-progress-bar::-webkit-scrollbar { display: none; }

.fs-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}
.fs-progress-step:hover { background: var(--bg-surface-hover); }

.fs-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #E5E7EB;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.fs-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.fs-step-sublabel {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: none;
}

.fs-progress-step.active .fs-step-dot {
  background: #14B8A6;
  color: #fff;
}
.fs-progress-step.active .fs-step-label {
  color: #14B8A6;
  font-weight: 700;
}
.fs-progress-step.completed .fs-step-dot {
  background: #14B8A6;
  color: #fff;
}
.fs-progress-step.completed .fs-step-dot::after {
  content: '✓';
  font-size: 0.7rem;
}
.fs-progress-step.completed .fs-step-label {
  color: var(--text-secondary);
}

.fs-progress-line {
  width: 24px;
  height: 2px;
  background: #E5E7EB;
  flex-shrink: 0;
}
.fs-progress-line.active {
  background: #14B8A6;
}

/* ---- Panels ---- */
.fs-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  animation: fadeInUp 0.35s ease both;
}
.fs-panel.active {
  display: flex;
  flex-direction: column;
}

.fs-panel-inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.fs-panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

/* ---- Upload Grid (Step 1) ---- */
.fs-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.fs-upload-slot {
  aspect-ratio: 1;
  border: 2px dashed #D1D5DB;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.fs-upload-slot:hover {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.02);
}
.fs-upload-slot.has-image {
  border-style: solid;
  border-color: #14B8A6;
}

.fs-upload-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  position: relative;
}

.fs-upload-icon {
  font-size: 2rem;
  color: #9CA3AF;
  margin-bottom: 8px;
}
.fs-upload-slot-label {
  font-size: 0.8rem;
  color: #9CA3AF;
  font-weight: 600;
}
.fs-upload-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.fs-upload-slot .fs-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}
.fs-upload-slot:hover .fs-remove-btn { opacity: 1; }
.fs-remove-btn:hover { background: #DC2626; }

.fs-upload-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.fs-btn-primary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 32px;
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  color: #fff;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}
.fs-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0D9488, #0F766E);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
  transform: translateY(-1px);
}
.fs-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #D1D5DB;
  box-shadow: none;
}

/* ---- Analysis Panel (Step 2) ---- */
.fs-analysis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.fs-analysis-icon {
  font-size: 1.3rem;
}
.fs-analysis-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.fs-analysis-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.fs-analysis-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.fs-check {
  width: 20px; height: 20px;
  background: #D1FAE5;
  color: #059669;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.fs-analysis-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.fs-analysis-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-page);
  border-radius: 12px;
  margin-bottom: 16px;
  margin-left: 28px;
}
.fs-analysis-thumb {
  width: 48px; height: 48px;
  background: #E5E7EB;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.fs-analysis-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.fs-analysis-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.fs-analysis-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.fs-analysis-product-type {
  margin-left: 28px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.fs-analysis-suggestions {
  list-style: none;
  padding: 0;
}
.fs-analysis-suggestions li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fs-analysis-suggestions li::before {
  content: '●';
  color: #F59E0B;
  font-size: 0.6rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Analysis progress bar */
.fs-analysis-progress {
  padding: 12px 0;
}
.fs-analysis-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-page, #f0f0f0);
  border-radius: 999px;
  overflow: hidden;
}
.fs-analysis-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary, #6c5ce7), #a29bfe);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.fs-analysis-progress-text {
  font-size: 0.82rem;
  color: var(--text-secondary, #888);
  margin-top: 8px;
  text-align: center;
}

.fs-upload-more-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 16px 0 24px;
  cursor: pointer;
}
.fs-upload-more-hint:hover {
  color: #14B8A6;
}

/* ---- Platform Grid (Step 3 - Dark) ---- */
.fs-panel-dark {
  background: #0F172A;
  border-radius: 0;
  padding: 40px 24px 80px;
  max-width: 100%;
  min-height: 100%;
}
#fs-panel-3 {
  background: #0F172A;
}
#fs-panel-3 .fs-btn-primary {
  max-width: 500px;
}

.fs-step-badge {
  width: 40px; height: 40px;
  background: #14B8A6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.fs-panel-title-dark {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
}

.fs-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.fs-platform-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.fs-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.fs-platform-card.selected {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.fs-platform-card.selected .fs-platform-badge-key {
  display: block !important;
  position: absolute;
  top: -6px;
  right: -6px;
  background: #3B82F6;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.fs-platform-icon {
  width: 56px; height: 56px;
  background: #F9FAFB;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fs-platform-icon img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
}
.fs-platform-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Strategy Cards (Step 4) ---- */
.fs-strategy-header {
  text-align: center;
  margin-bottom: 28px;
}
.fs-strategy-icon {
  width: 48px; height: 48px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}
.fs-strategy-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.fs-strategy-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.fs-strategy-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
}
.fs-strategy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.fs-strategy-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.fs-strategy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fs-upload-spec-btn {
  font-size: 0.8rem;
  color: #14B8A6;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
}
.fs-upload-spec-btn:hover { text-decoration: underline; }

.fs-spec-upload-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-page);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fs-strategy-section {
  margin-bottom: 16px;
}
.fs-strategy-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.fs-substep-num {
  width: 28px; height: 28px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  position: absolute;
  top: 20px;
  left: 20px;
}

.fs-strategy-card:has(.fs-substep-num) {
  padding-left: 60px;
}

.fs-check-green {
  color: #059669;
  font-weight: 700;
}

.fs-theme-options {
  display: flex;
  gap: 16px;
}
.fs-theme-option {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg-page);
  min-width: 100px;
}
.fs-theme-option:hover { border-color: #14B8A6; }
.fs-theme-option.selected {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.05);
}
.fs-theme-check {
  color: #14B8A6;
  font-weight: 700;
  margin-right: 4px;
}
.fs-theme-thumb {
  width: 60px; height: 40px;
  background: #E5E7EB;
  border-radius: 6px;
  margin-bottom: 6px;
}

.fs-spec-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fs-spec-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fs-spec-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 80px;
  font-weight: 500;
}
.fs-spec-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
}
.fs-spec-input:focus { border-color: #14B8A6; box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15); }

.fs-scene-preview {
  background: #F0FDF4;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.fs-title-suggestions {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 8px;
}
.fs-custom-scene-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fs-selling-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-sp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Selectable selling point items */
.fs-sp-selectable {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color, #E5E7EB);
  background: var(--bg-surface, #fff);
  transition: all 0.2s ease;
  user-select: none;
}
.fs-sp-selectable:hover {
  border-color: var(--color-primary, #A855F7);
  background: var(--color-primary-light, rgba(168, 85, 247, 0.06));
}
.fs-sp-selectable.selected {
  border-color: var(--color-primary, #A855F7);
  background: var(--color-primary-light, rgba(168, 85, 247, 0.1));
  color: var(--color-primary, #A855F7);
  font-weight: 600;
}
.fs-sp-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #D1D5DB;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  flex-shrink: 0;
}
.fs-sp-selectable.selected .fs-sp-checkbox {
  background: var(--color-primary, #A855F7);
  border-color: var(--color-primary, #A855F7);
}

/* Category correction card */
.fs-correction-card {
  background: var(--bg-surface-hover, #F3F4F6);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
}
.fs-correction-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.fs-correction-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.fs-correction-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.fs-correction-row select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color, #E5E7EB);
  font-size: 0.9rem;
  background: #fff;
  min-width: 180px;
  cursor: pointer;
}
.fs-correction-row select:focus {
  outline: none;
  border-color: var(--color-primary, #A855F7);
  box-shadow: 0 0 0 3px var(--color-primary-ring, rgba(168, 85, 247, 0.2));
}
.fs-correction-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color, #E5E7EB);
  font-size: 0.9rem;
  flex: 1;
  min-width: 160px;
}
.fs-correction-input:focus {
  outline: none;
  border-color: var(--color-primary, #A855F7);
  box-shadow: 0 0 0 3px var(--color-primary-ring, rgba(168, 85, 247, 0.2));
}

/* KB hint text */
.fs-kb-hint {
  font-size: 0.8rem;
  color: var(--text-secondary, #6B7280);
  margin: 2px 0 12px;
}

/* Composition list */
.fs-composition-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fs-composition-item {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-surface-hover, #F3F4F6);
  border: 1px solid var(--border-color, #E5E7EB);
}

/* Reference Content */
.fs-ref-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.fs-ref-link-row, .fs-ref-image-row {
  margin-bottom: 16px;
}
.fs-ref-link-row label, .fs-ref-image-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.fs-ref-link-input {
  display: flex;
  gap: 8px;
}
.fs-ref-link-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-body);
}
.fs-ref-link-input input:focus { border-color: #14B8A6; }
.fs-ref-add-btn {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.fs-ref-add-btn:hover { border-color: #14B8A6; color: #14B8A6; }
.fs-ref-image-upload {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.fs-ref-image-upload:hover {
  border-color: #14B8A6;
  color: #14B8A6;
}

/* ---- Step 5: Editable Copy Form ---- */
.fs-copy-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.fs-copy-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fs-copy-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-wrap: wrap;
}
.fs-copy-label-icon {
  font-size: 1rem;
}
.fs-copy-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}
.fs-copy-input,
.fs-copy-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: #FAFBFC;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.fs-copy-input:focus,
.fs-copy-textarea:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background: #fff;
}
.fs-copy-input::placeholder,
.fs-copy-textarea::placeholder {
  color: var(--text-tertiary);
}
.fs-copy-textarea {
  resize: vertical;
  min-height: 48px;
}

/* ---- Step Actions Row ---- */
.fs-step-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  gap: 16px;
}
.fs-step-actions-row .fs-btn-primary {
  max-width: 280px;
  width: auto;
  flex: 1;
}
.fs-btn-back {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.15s;
}
.fs-btn-back:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ---- Confirm Strategy (Step 6) ---- */
.fs-confirm-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.fs-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fs-confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.fs-confirm-item:last-child { border-bottom: none; }
.fs-confirm-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fs-confirm-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fs-confirm-countdown {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.fs-confirm-progress {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  margin: 0 auto 24px;
  overflow: hidden;
}
.fs-confirm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #14B8A6, #059669);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 3px;
}

.fs-btn-generate {
  background: linear-gradient(135deg, #14B8A6, #0D9488) !important;
}

/* ---- Results (Step 7) ---- */
.fs-panel-results {
  max-width: 1100px;
}
.fs-results-header {
  text-align: center;
  margin-bottom: 32px;
}
.fs-results-check {
  width: 36px; height: 36px;
  background: #14B8A6;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 8px;
}
.fs-results-done {
  font-size: 0.85rem;
  color: #14B8A6;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.fs-results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.fs-results-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.fs-btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #14B8A6;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.fs-btn-download-all:hover { background: #0D9488; box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3); }

/* ---- Responsive for Fullscreen Wizard ---- */
@media (max-width: 768px) {
  .fs-upload-grid { grid-template-columns: repeat(3, 1fr); }
  .fs-platform-grid { grid-template-columns: repeat(3, 1fr); }
  .fs-progress-step { padding: 4px 8px; }
  .fs-step-label { font-size: 0.7rem; }
  .fs-progress-line { width: 12px; }
  .fs-panel-inner { padding: 24px 16px 60px; }
  .fs-strategy-card:has(.fs-substep-num) { padding-left: 48px; }
}

@media (max-width: 480px) {
  .fs-upload-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-platform-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-step-label { display: none; }
}

/* ============================================
   Auth, Account, History Styles
   ============================================ */

/* Nav Login Button */
.nav-login-btn {
  padding: 6px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
}
.nav-login-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-purple);
}

/* Nav User Wrap & Dropdown */
.nav-user-wrap {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}
.user-dropdown.active { display: block; }

.dropdown-header {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-page);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.dropdown-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.dropdown-logout {
  color: var(--accent-red);
}
.dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.06);
  color: var(--accent-red);
}

/* ===== Auth Modal ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
}
.auth-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.auth-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--duration-fast);
}
.auth-close:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.auth-form {
  display: none;
}
.auth-form.active { display: block; }

.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-field small {
  font-weight: 400;
  color: var(--text-muted);
}
.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-page);
  outline: none;
  transition: border-color var(--duration-fast);
  font-family: inherit;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-ring);
}

.auth-error {
  color: var(--accent-red);
  font-size: 0.82rem;
  min-height: 20px;
  margin-bottom: 8px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--duration-normal);
  cursor: pointer;
  border: none;
}
.auth-submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-purple);
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Page Overlays (Account, History) ===== */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 5500;
  background: var(--bg-page);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.page-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.page-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.page-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}
.page-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.15s;
}
.page-close:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Account Sections */
.account-section {
  margin-bottom: 32px;
}

.account-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.account-user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.account-user-detail h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.account-user-detail p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.account-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  margin-top: 4px;
}

/* Stats Grid */
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Account Lists */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.account-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  padding: 12px;
}

/* Notification Items */
.notification-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.notification-item.unread {
  border-left: 3px solid var(--color-primary);
}
.notification-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.notification-content {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.notification-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Purchase Items */
.purchase-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.purchase-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.purchase-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.purchase-amount {
  font-weight: 700;
  color: var(--color-primary);
}
.purchase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.purchase-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-secondary);
}
.purchase-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Change Password */
.change-password-form {
  max-width: 400px;
}

/* ===== Account Quick-Link Buttons ===== */
.account-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary, #1a1a1a);
  transition: all 0.15s ease;
  text-align: left;
}
.account-quick-btn:hover {
  background: var(--bg-page, #f8f9fa);
  border-color: var(--color-primary, #6c5ce7);
}
.account-quick-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.account-quick-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--text-muted, #aaa);
  font-weight: 300;
}
.account-quick-badge {
  background: var(--accent-red, #e74c3c);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* ===== Account Sub-Modal ===== */
.account-sub-modal {
  position: absolute;
  inset: 0;
  background: var(--bg-page, #f8f9fa);
  z-index: 10;
  display: none;
  flex-direction: column;
  animation: accountSubSlideIn 0.2s ease;
}
.account-sub-modal.active {
  display: flex;
}
@keyframes accountSubSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.account-sub-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.account-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  flex-shrink: 0;
}
.account-sub-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.account-sub-back {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-primary, #6c5ce7);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}
.account-sub-back:hover {
  background: var(--bg-page, #f0f0f0);
}
.account-sub-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
/* Make page-panel position relative so sub-modal positions correctly */
#accountPage .page-panel {
  position: relative;
  overflow: hidden;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.history-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-slow);
}
.history-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.history-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-page);
  overflow: hidden;
}
.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.history-info {
  padding: 14px 16px;
}
.history-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.history-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.history-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-loading {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .history-grid { grid-template-columns: 1fr; }
  .user-dropdown { right: -8px; }
}

/* ===== Payment Step ===== */
.payment-icon { background: #DBEAFE !important; }

.payment-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.payment-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.payment-item-label { color: var(--text-secondary); }
.payment-item-price { font-weight: 700; color: var(--color-primary); }
.payment-item-value { font-weight: 500; color: var(--text-primary); }

.payment-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.payment-total {
  font-size: 1.05rem;
}
.payment-total .payment-item-price {
  font-size: 1.25rem;
  color: #DC2626;
}

.payment-balance-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.payment-balance-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.payment-balance-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.payment-balance-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.payment-balance-status.sufficient {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}
.payment-balance-status.insufficient {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.payment-recharge-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
}
.payment-method-card:hover {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.03);
}
.payment-method-card.selected {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.06);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.payment-method-icon {
  font-size: 2rem;
}

.payment-qr-area {
  margin-bottom: 16px;
}

.payment-qr-placeholder {
  text-align: center;
  padding: 32px;
  background: var(--bg-page);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
}
.payment-qr-placeholder p { margin-bottom: 8px; }
.payment-qr-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.payment-amount-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-amount-btn {
  flex: 1;
  min-width: 80px;
  padding: 14px 8px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.15s;
}
.payment-amount-btn small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.payment-amount-btn:hover {
  border-color: #14B8A6;
}
.payment-amount-btn.selected {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.06);
  color: #0D9488;
}
.payment-amount-btn.selected small { color: #0D9488; }

.payment-alt-card {
  background: #FFFBEB;
  border-color: #FDE68A;
}

/* Copy AI Regenerate Button */
.fs-copy-ai-btn {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #14B8A6;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.fs-copy-ai-btn:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: #14B8A6;
}

