/* ═══════════════════════════════════════════════════════════
   Printable Product Prompt Generator Pro — Design System
   Themes: light | dark | blossom (pink/feminine)
   UI: Glassmorphism + Neomorphism + Modern SaaS
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Custom Properties ── */

:root, [data-theme="light"] {
  --bg-primary: #F5F3EE;
  --bg-secondary: #EDEAE3;
  --bg-card: rgba(255,255,255,0.72);
  --bg-card-solid: #FFFFFF;
  --bg-sidebar: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.55);
  --glass-shadow: 0 8px 32px rgba(120,105,80,0.12);
  --neo-shadow-out: 6px 6px 14px rgba(160,145,120,0.18), -6px -6px 14px rgba(255,255,255,0.9);
  --neo-shadow-in: inset 4px 4px 10px rgba(160,145,120,0.18), inset -4px -4px 10px rgba(255,255,255,0.9);
  --accent-primary: #7C6FA0;  /* muted purple */
  --accent-secondary: #B59F6E; /* warm gold */
  --accent-tertiary: #7B9E87;  /* sage green */
  --accent-rose: #D4889A;
  --text-primary: #2D2A26;
  --text-secondary: #6B6459;
  --text-muted: #A09890;
  --text-on-accent: #FFFFFF;
  --border-subtle: rgba(120,105,80,0.12);
  --progress-bg: #E3DFD7;
  --progress-fill: linear-gradient(90deg, #7C6FA0, #B59F6E);
  --step-completed: #7B9E87;
  --step-active: #7C6FA0;
  --tip-bg: rgba(124,111,160,0.08);
  --tip-border: rgba(124,111,160,0.25);
  --success-color: #5A9E7E;
  --warn-color: #C9914A;
  --error-color: #B55A5A;
  --info-color: #5A7EA0;
  --tag-bg: rgba(124,111,160,0.09);
  --tag-selected-bg: #7C6FA0;
  --tag-selected-text: #fff;
  --output-bg: rgba(245,243,238,0.7);
  --scrollbar-thumb: rgba(124,111,160,0.35);
}

[data-theme="dark"] {
  --bg-primary: #14131A;
  --bg-secondary: #1C1B26;
  --bg-card: rgba(32,30,48,0.82);
  --bg-card-solid: #201E30;
  --bg-sidebar: rgba(28,26,42,0.85);
  --glass-border: rgba(255,255,255,0.08);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.45);
  --neo-shadow-out: 6px 6px 16px rgba(0,0,0,0.45), -6px -6px 16px rgba(255,255,255,0.04);
  --neo-shadow-in: inset 4px 4px 12px rgba(0,0,0,0.45), inset -4px -4px 12px rgba(255,255,255,0.04);
  --accent-primary: #9D8FD4;
  --accent-secondary: #C9AE78;
  --accent-tertiary: #7EC49B;
  --accent-rose: #E09AAE;
  --text-primary: #EDE9F8;
  --text-secondary: #A099C2;
  --text-muted: #6B6488;
  --text-on-accent: #FFFFFF;
  --border-subtle: rgba(255,255,255,0.07);
  --progress-bg: #2A2840;
  --progress-fill: linear-gradient(90deg, #9D8FD4, #C9AE78);
  --step-completed: #7EC49B;
  --step-active: #9D8FD4;
  --tip-bg: rgba(157,143,212,0.10);
  --tip-border: rgba(157,143,212,0.25);
  --success-color: #7EC49B;
  --warn-color: #D4A06A;
  --error-color: #D47A7A;
  --info-color: #7EB4D4;
  --tag-bg: rgba(157,143,212,0.12);
  --tag-selected-bg: #9D8FD4;
  --tag-selected-text: #fff;
  --output-bg: rgba(20,19,26,0.7);
  --scrollbar-thumb: rgba(157,143,212,0.35);
}

[data-theme="blossom"] {
  --bg-primary: #FDF3F6;
  --bg-secondary: #F8E8EF;
  --bg-card: rgba(255,240,247,0.78);
  --bg-card-solid: #FFF5F8;
  --bg-sidebar: rgba(255,235,245,0.75);
  --glass-border: rgba(255,180,210,0.35);
  --glass-shadow: 0 8px 32px rgba(200,130,160,0.14);
  --neo-shadow-out: 6px 6px 14px rgba(200,140,170,0.2), -6px -6px 14px rgba(255,255,255,0.95);
  --neo-shadow-in: inset 4px 4px 10px rgba(200,140,170,0.15), inset -4px -4px 10px rgba(255,255,255,0.95);
  --accent-primary: #C4788A;   /* rose */
  --accent-secondary: #E0A87C; /* peachy gold */
  --accent-tertiary: #B589C0;  /* lavender mauve */
  --accent-rose: #E895B0;
  --text-primary: #3A2330;
  --text-secondary: #7A4E63;
  --text-muted: #B89AAA;
  --text-on-accent: #FFFFFF;
  --border-subtle: rgba(196,120,138,0.14);
  --progress-bg: #F4D9E5;
  --progress-fill: linear-gradient(90deg, #C4788A, #B589C0, #E0A87C);
  --step-completed: #B589C0;
  --step-active: #C4788A;
  --tip-bg: rgba(196,120,138,0.08);
  --tip-border: rgba(196,120,138,0.25);
  --success-color: #8FA87E;
  --warn-color: #C9914A;
  --error-color: #B55A5A;
  --info-color: #7A9AB5;
  --tag-bg: rgba(196,120,138,0.10);
  --tag-selected-bg: #C4788A;
  --tag-selected-text: #fff;
  --output-bg: rgba(253,243,246,0.75);
  --scrollbar-thumb: rgba(196,120,138,0.4);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.3s ease;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ── Typography ── */
.heading-serif { font-family: 'Playfair Display', Georgia, serif; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p, label { line-height: 1.65; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
  transition: background 0.4s;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--progress-fill);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
  box-shadow: var(--glass-shadow);
}

.logo-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.25;
}

.logo-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Nav Steps */
.nav-steps { padding: 20px 0; flex: 1; }

.nav-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-radius: 0 12px 12px 0;
  margin-right: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.nav-step.active {
  background: var(--tag-bg);
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-step.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
}

.nav-step.completed .step-dot { background: var(--step-completed); }
.nav-step.active .step-dot { background: var(--step-active); box-shadow: 0 0 0 4px rgba(124,111,160,0.18); }

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--progress-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s;
}

.nav-step.completed .step-dot::after {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 900;
}

.step-dot-num { display: block; }
.nav-step.completed .step-dot-num { display: none; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.sidebar-action-btn:hover {
  background: var(--tag-bg);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Top Bar ── */
.top-bar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);  
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-bar-left { display: flex; flex-direction: column; }

.current-step-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
#current-step-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.top-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Progress */
.progress-container { display: flex; align-items: center; gap: 10px; }
.progress-bar { height: 6px; width: 160px; background: var(--progress-bg); border-radius: 10px; overflow: hidden; }
#progress-bar-fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}
#step-counter { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* Mode Toggle */
.mode-toggle {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: var(--bg-card-solid);
  color: var(--accent-primary);
  box-shadow: var(--neo-shadow-out);
}

/* Theme Switcher */
.theme-switcher { display: flex; gap: 6px; }

.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-btn[data-theme="light"] { background: linear-gradient(135deg, #F5F3EE, #B59F6E); }
.theme-btn[data-theme="dark"] { background: linear-gradient(135deg, #14131A, #9D8FD4); }
.theme-btn[data-theme="blossom"] { background: linear-gradient(135deg, #FDF3F6, #C4788A); }

.theme-btn.active { border-color: var(--accent-primary); transform: scale(1.15); box-shadow: 0 0 0 3px rgba(124,111,160,0.2); }
.theme-btn:hover { transform: scale(1.1); }

/* Puter Sign-in Button */
.puter-signin-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.puter-signin-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,111,160,0.35);
}

.puter-signin-btn.signed-in {
  background: var(--step-completed);
  border-color: var(--step-completed);
  color: white;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   WIZARD STEPS
═══════════════════════════════════════════ */

.wizard-body {
  flex: 1;
  padding: 32px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.wizard-step {
  display: none;
  animation-duration: 0.35s;
  animation-fill-mode: both;
}

.wizard-step.active { display: block; }

.step-header { margin-bottom: 28px; }
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--tag-bg);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-description { color: var(--text-secondary); font-size: 0.93rem; }

/* ── Cards ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.glass-card:hover { box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-border); }

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }

/* ── Form Inputs ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.label-required::after { content: ' *'; color: var(--accent-rose); }
.label-optional::after { content: ' (optional)'; color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

.wizard-input,
.wizard-select,
.wizard-textarea {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-shadow: var(--neo-shadow-in);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.wizard-input:focus,
.wizard-select:focus,
.wizard-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--neo-shadow-in), 0 0 0 3px rgba(124,111,160,0.15);
}

.wizard-input::placeholder,
.wizard-textarea::placeholder { color: var(--text-muted); }

.wizard-input.input-error { border-color: var(--error-color); animation: shake 0.3s ease; }

.wizard-textarea { min-height: 90px; resize: vertical; line-height: 1.6; }

.wizard-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A09890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tip-text {
  margin-top: 7px;
  padding: 9px 12px;
  background: var(--tip-bg);
  border-left: 3px solid var(--tip-border);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  display: none;
}

.tip-text.show { display: block; }

/* Dynamic tip visible by default */
.tip-always { display: block; }

/* ── Radio Groups ── */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }

.radio-chip {
  position: relative;
  cursor: pointer;
}

.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }

.radio-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--neo-shadow-out);
  user-select: none;
}

.radio-chip input:checked + .radio-chip-label {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(124,111,160,0.35);
  font-weight: 600;
}

.radio-chip-label:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* ── Toggle Switch ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }
.toggle-label { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.toggle-desc { font-size: 0.78rem; color: var(--text-muted); }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--progress-bg);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-track::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-track { background: var(--accent-primary); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(20px); }

/* ── Style Grid ── */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.style-card {
  border-radius: 14px;
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-card-solid);
  box-shadow: var(--neo-shadow-out);
}

.style-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); border-color: var(--accent-primary); }

.style-card.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124,111,160,0.2), var(--glass-shadow);
  transform: translateY(-3px);
}

.style-preview { height: 56px; }
.style-card-body { padding: 9px 10px; }
.style-name { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.style-vibe { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ── Section Tags ── */
.section-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px dashed var(--border-subtle);
  max-height: 280px;
  overflow-y: auto;
}

.section-tag {
  padding: 6px 13px;
  border-radius: 50px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.section-tag:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.section-tag.selected { background: var(--tag-selected-bg); color: var(--tag-selected-text); border-color: var(--tag-selected-bg); }
.section-tag.suggested { border-color: var(--accent-secondary); color: var(--accent-secondary); }

/* ═══════════════════════════════════════════
   BRAINSTORM STEP
═══════════════════════════════════════════ */

.brainstorm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.brainstorm-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--glass-shadow);
}

.brainstorm-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.brainstorm-items { display: flex; flex-direction: column; gap: 6px; }

.brainstorm-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--tag-bg);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
}

.brainstorm-item:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateX(4px);
  border-color: var(--accent-primary);
}

.brainstorm-tip-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.tip-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* AI Brainstorm Section */
.ai-brainstorm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--tip-bg), var(--bg-card));
  border: 1px solid var(--tip-border);
  border-radius: 14px;
  margin-bottom: 20px;
  gap: 12px;
}

.ai-banner-text { flex: 1; }
.ai-banner-title { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.ai-banner-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Suggestions */
.suggestions-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; width: 100%; }

.suggestion-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--tag-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s;
  margin: 3px;
}

.suggestion-chip:hover { background: var(--accent-tertiary); color: white; border-color: var(--accent-tertiary); }

/* ═══════════════════════════════════════════
   OUTPUT STEP
═══════════════════════════════════════════ */

.output-tabs-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.output-tabs-bar::-webkit-scrollbar { display: none; }

.output-tab-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.output-tab-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.output-tab-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(124,111,160,0.3);
}

.output-tab-panel { display: none; }
.output-tab-panel.active { display: block; }

.output-card {
  background: var(--output-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.output-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.output-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.output-actions { display: flex; gap: 8px; }

.copy-btn, .download-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.copy-btn:hover, .download-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.copy-btn.copied { background: var(--success-color); color: white; border-color: var(--success-color); }

.output-text-area {
  padding: 20px;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  min-height: 100px;
}

/* Output loading state */
.generating .output-text-area::after {
  content: '';
  display: block;
  height: 20px;
  background: linear-gradient(90deg, var(--border-subtle) 25%, var(--bg-secondary) 50%, var(--border-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: 4px;
}

/* Global output actions */
.global-output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.action-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.action-btn:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,111,160,0.3); }
.action-btn.primary { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.action-btn.primary:hover { box-shadow: 0 4px 18px rgba(124,111,160,0.45); }

/* ── AI Chat Panel ── */
.ai-chat-container { margin-top: 24px; }

.ai-chat-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.ai-chat-header-left { display: flex; align-items: center; gap: 10px; }
.ai-avatar { font-size: 1.5rem; }
.ai-avatar-sm { font-size: 1.1rem; flex-shrink: 0; }
.ai-chat-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.ai-chat-subtitle { font-size: 0.72rem; color: var(--text-muted); }

.ai-chat-messages {
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-message { display: flex; align-items: flex-start; gap: 8px; }
.user-message { flex-direction: row-reverse; }

.ai-message-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 80%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.user-bubble {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Typing indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
}

.ai-typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

.ai-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-input:focus { border-color: var(--accent-primary); }

.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--accent-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-chat-send-btn:hover { background: var(--accent-secondary); transform: translateY(-1px); }

.ai-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.ai-quick-btn {
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 500;
}

.ai-quick-btn:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

/* ═══════════════════════════════════════════
   PRESETS MODAL
═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; animation: fade-in 0.2s ease; }

.modal-box {
  background: var(--bg-card-solid);
  border-radius: 22px;
  padding: 28px;
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  animation: slide-up 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 { font-size: 1.3rem; color: var(--text-primary); }

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover { background: var(--tag-selected-bg); color: white; border-color: var(--tag-selected-bg); }

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.preset-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 18px 16px;
  border: 1.5px solid var(--border-subtle);
  transition: all 0.2s;
  cursor: default;
}

.preset-card:hover { border-color: var(--accent-primary); background: var(--tag-bg); transform: translateY(-2px); box-shadow: var(--glass-shadow); }

.preset-emoji { font-size: 1.8rem; margin-bottom: 8px; }
.preset-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.preset-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }

.preset-load-btn {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-load-btn:hover { background: var(--accent-primary); color: white; }

/* ═══════════════════════════════════════════
   NAV BUTTONS
═══════════════════════════════════════════ */

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  position: sticky;
  bottom: 0;
  z-index: 80;
}

.btn-primary {
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: var(--accent-primary);
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(124,111,160,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,111,160,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--neo-shadow-out);
}

.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════ */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 240px;
  max-width: 340px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.toast.show { transform: translateX(0); }

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--success-color); color: white; }
.toast-error .toast-icon { background: var(--error-color); color: white; }
.toast-warn .toast-icon { background: var(--warn-color); color: white; }
.toast-info .toast-icon { background: var(--info-color); color: white; }

/* ═══════════════════════════════════════════
   ANIMATIONS (animations.css inline)
═══════════════════════════════════════════ */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes skeleton-load { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes typing-bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.slide-in-right { animation: slide-in-right 0.35s cubic-bezier(.4,0,.2,1); }
.slide-in-left { animation: slide-in-left 0.35s cubic-bezier(.4,0,.2,1); }
.slide-out-left { animation: slide-out-left 0.35s cubic-bezier(.4,0,.2,1); }
.slide-out-right { animation: slide-out-right 0.35s cubic-bezier(.4,0,.2,1); }
.fade-in-up { animation: fade-in-up 0.4s ease both; }

@keyframes slide-in-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-out-left { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-40px); } }
@keyframes slide-out-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* Hover lift for cards */
.glass-card { transition: transform 0.2s, box-shadow 0.2s, background 0.4s; }

/* ═══════════════════════════════════════════
   ADVANCED-ONLY FIELDS
═══════════════════════════════════════════ */

[data-mode="basic"] .advanced-only { display: none !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    transition: left 0.3s;
    z-index: 200;
    height: 100vh;
  }
  .sidebar.open { left: 0; }
  .wizard-body { padding: 20px 16px; }
  .wizard-nav { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .top-bar { padding: 12px 16px; gap: 10px; }
  .progress-bar { width: 100px; }
  .style-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 480px) {
  .output-tabs-bar { gap: 2px; }
  .output-tab-btn { padding: 7px 10px; font-size: 0.72rem; }
  .brainstorm-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   MISC UTILITY
═══════════════════════════════════════════ */

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.inline-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-optional { background: var(--tip-bg); color: var(--text-muted); }
.badge-new { background: rgba(91,158,127,0.15); color: var(--success-color); }
.badge-ai { background: linear-gradient(135deg, rgba(124,111,160,0.15), rgba(181,159,110,0.12)); color: var(--accent-primary); }

/* Hint below selects */
#best-sellers-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 28px; }
#niche-sellability-tip { display: none; margin-top: 10px; }
