/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
  --ink: #1A1208;
  --ink-mid: #1E1508;
  --ink-light: #231A0A;
  --cream: #F5EFE6;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --ember: #C4541A;
  --ember-light: #E8733A;
  --sand: #D4B896;
  --muted: #7A6A58;
  --border: rgba(201,168,76,0.2);
  --border-hover: rgba(201,168,76,0.5);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

.hidden { display: none !important; }

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(26,18,8,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  transition: border-color 0.3s;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-decoration: none;
  cursor: pointer;
}

.nav-logo span { color: var(--cream); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s !important;
  cursor: pointer;
}

.nav-cta:hover { background: var(--gold-light) !important; }

/* =========================================
   Shared Buttons
   ========================================= */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0.5px solid rgba(245,239,230,0.3);
  cursor: pointer;
  font-family: var(--ff-body);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* =========================================
   Landing — Hero
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(196,84,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(155,58,74,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 50%);
}

.hero-content { text-align: center; max-width: 860px; position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s ease forwards;
}

.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 300; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--sand);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease forwards;
}

.hero-float { position: absolute; opacity: 0; animation: floatIn 1.2s ease forwards; }
.float-1 { top: 18%; left: 6%; animation-delay: 1s; }
.float-2 { top: 22%; right: 7%; animation-delay: 1.3s; }
.float-3 { bottom: 22%; left: 8%; animation-delay: 1.6s; }
.float-4 { bottom: 28%; right: 7%; animation-delay: 1.1s; }

.gift-pill {
  background: rgba(245,239,230,0.06);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.76rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bobble 4s ease-in-out infinite;
}

.float-1 .gift-pill { animation-delay: 0s; }
.float-2 .gift-pill { animation-delay: 1s; }
.float-3 .gift-pill { animation-delay: 2s; }
.float-4 .gift-pill { animation-delay: 0.5s; }

/* =========================================
   Shared Section Styles
   ========================================= */
.ornament {
  text-align: center;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  opacity: 0.4;
  letter-spacing: 0.5em;
  padding: 2rem 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--gold-light); }
.section-sub { color: var(--muted); font-size: 1rem; font-weight: 300; max-width: 480px; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================
   Gift Types
   ========================================= */
.gifts-section { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; }

.gifts-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

.gift-card {
  background: var(--ink-mid);
  padding: 2.8rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
}

.gift-card:hover { background: var(--ink-light); }

.gift-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gift-card:hover::before { opacity: 0.5; }

.gift-card-icon {
  width: 48px; height: 48px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.icon-audio { background: rgba(196,84,26,0.15); color: var(--ember-light); }
.icon-video { background: rgba(155,58,74,0.15); color: #C45A6E; }
.icon-web   { background: rgba(201,168,76,0.12); color: var(--gold-light); }
.icon-mix   { background: rgba(100,140,180,0.12); color: #7EB4D4; }

.gift-card-num {
  position: absolute;
  top: 2rem; right: 2.2rem;
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(201,168,76,0.08);
  line-height: 1;
  pointer-events: none;
}

.gift-card-tag { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.gift-card-title { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 400; color: var(--cream); margin-bottom: 0.8rem; line-height: 1.2; }
.gift-card-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.8; font-weight: 300; margin-bottom: 1.8rem; }
.gift-card-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.example-tag { font-size: 0.72rem; color: var(--sand); border: 0.5px solid rgba(212,184,150,0.2); padding: 0.28rem 0.7rem; border-radius: 100px; letter-spacing: 0.03em; }

/* =========================================
   How It Works
   ========================================= */
.how-section { padding: 8rem 3rem; background: #130E05; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 6rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%; right: 12.5%;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.25;
}

.step { padding: 0 2rem; text-align: center; position: relative; }

.step-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  position: relative;
  z-index: 2;
}

.step-title { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 0.8rem; }
.step-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.85; font-weight: 300; }

/* =========================================
   Occasions
   ========================================= */
.occasions-section { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; }
.occasions-header { margin-bottom: 4rem; }

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.occasion-card { border: 0.5px solid var(--border); padding: 2rem; border-radius: 2px; cursor: pointer; transition: border-color 0.3s; background: rgba(255,255,255,0.01); }
.occasion-card:hover { border-color: var(--border-hover); }
.occasion-emoji { font-size: 2rem; margin-bottom: 1rem; display: block; }
.occasion-name { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 0.5rem; }
.occasion-desc { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.75; }

/* =========================================
   Pricing
   ========================================= */
.pricing-section { padding: 8rem 3rem; max-width: 1100px; margin: 0 auto; text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 0.5px solid var(--border);
  margin-top: 5rem;
  text-align: left;
}

.price-card { background: #1A1208; padding: 2.5rem 2rem; position: relative; }
.price-card.featured { background: var(--ink-light); }

.featured-badge {
  position: absolute;
  top: -0.5px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.price-tier { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.price-amount { font-family: var(--ff-display); font-size: 3rem; font-weight: 300; color: var(--cream); line-height: 1; margin-bottom: 0.3rem; }
.price-amount sup { font-size: 1.2rem; font-family: var(--ff-body); font-weight: 300; vertical-align: super; }
.price-cadence { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
.price-divider { height: 0.5px; background: var(--border); margin-bottom: 1.8rem; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li { font-size: 0.84rem; color: var(--sand); padding: 0.45rem 0; display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 300; }
.price-features li::before { content: '—'; color: var(--gold); flex-shrink: 0; opacity: 0.6; }

/* =========================================
   Testimonials
   ========================================= */
.testimonials-section { padding: 8rem 3rem; background: #130E05; border-top: 0.5px solid var(--border); }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.testimonial { border: 0.5px solid var(--border); padding: 2rem; border-radius: 2px; }
.testimonial-quote { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 300; font-style: italic; color: var(--cream); line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(201,168,76,0.15); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 0.9rem; color: var(--gold); flex-shrink: 0; }
.author-name { font-size: 0.85rem; color: var(--cream); font-weight: 400; }
.author-role { font-size: 0.75rem; color: var(--muted); }

/* =========================================
   CTA & Footer
   ========================================= */
.cta-section { padding: 10rem 3rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-family: var(--ff-display); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.cta-title em { font-style: italic; color: var(--gold-light); }
.cta-sub { color: var(--muted); font-size: 1rem; font-weight: 300; margin-bottom: 3rem; max-width: 400px; margin-left: auto; margin-right: auto; }

footer { border-top: 0.5px solid var(--border); padding: 3rem; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--ff-display); font-size: 1.2rem; color: var(--gold-light); font-weight: 400; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* =========================================
   Creation Flow — Header
   ========================================= */
.creation-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 2rem;
  background: rgba(20,13,5,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  height: 56px;
}

.btn-back-creation {
  background: none;
  border: none;
  color: var(--sand);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.btn-back-creation:hover { color: var(--gold-light); }
.btn-back-creation i { font-size: 0.95rem; }

.creation-progress-bar { flex: 1; height: 2px; background: rgba(201,168,76,0.12); border-radius: 2px; overflow: hidden; }
.creation-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; width: 0%; }
.creation-step-count { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }

/* =========================================
   Creation Flow — Layout
   ========================================= */
#creation-page { padding-top: 56px; min-height: 100vh; }

.flow-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* ── Left Panel ───────────────────────────────────────── */
.flow-controls {
  padding: 2.2rem 2rem 1.5rem;
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.flow-controls::-webkit-scrollbar { width: 4px; }
.flow-controls::-webkit-scrollbar-track { background: transparent; }
.flow-controls::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.step { display: flex; flex-direction: column; flex: 1; }

.step-eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; opacity: 0.8; }

.step .step-title { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 300; line-height: 1.1; color: var(--cream); margin-bottom: 0.6rem; }

.step .step-desc { font-size: 0.87rem; color: var(--muted); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; }

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.option-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.18s;
}

.option-card i { font-size: 1.6rem; color: var(--muted); transition: color 0.18s; }
.option-card span { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; }
.option-card:hover { background: rgba(201,168,76,0.06); border-color: var(--border-hover); }
.option-card:hover i { color: var(--gold); }
.option-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.09); }
.option-card.selected i { color: var(--gold-light); }

/* Options List */
.options-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }

.format-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--cream);
  text-align: left;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.18s;
}

.format-card:hover { background: rgba(201,168,76,0.06); border-color: var(--border-hover); }
.format-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.09); }

.format-icon { width: 44px; height: 44px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.format-info h3 { font-size: 0.95rem; font-weight: 500; color: var(--cream); margin-bottom: 0.2rem; }
.format-info p { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

/* Upload */
.upload-area { border: 0.5px dashed var(--border); border-radius: 3px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 0.8rem; color: var(--muted); }
.upload-area:hover { border-color: var(--border-hover); color: var(--sand); }
.upload-area i { font-size: 2.2rem; margin-bottom: 0.7rem; display: block; }
.upload-area p { font-size: 0.88rem; margin-bottom: 0.3rem; }
.upload-area span { font-size: 0.72rem; opacity: 0.7; }
.uploaded-photos { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.7rem; margin-top: 2px; align-items: center; }
.mock-thumb { width: 62px; height: 72px; border-radius: 3px; border: 0.5px solid var(--border); }
.photo-thumb { width: 92px; height: 92px; border-radius: 8px; border: 0.5px solid var(--border); overflow: hidden; flex-shrink: 0; background: rgba(0,0,0,0.22); box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-skip { background: none; border: none; color: var(--muted); font-family: var(--ff-body); font-size: 0.8rem; cursor: pointer; padding: 0; transition: color 0.2s; }
.btn-skip:hover { color: var(--gold); }

/* Message */
.message-input { width: 100%; min-height: 130px; background: rgba(255,255,255,0.03); border: 0.5px solid var(--border); border-radius: 3px; padding: 0.9rem 1rem; color: var(--cream); font-family: var(--ff-body); font-size: 0.88rem; font-weight: 300; line-height: 1.75; resize: vertical; transition: border-color 0.2s; margin-bottom: 0.8rem; outline: none; }
.message-input::placeholder { color: var(--muted); }
.message-input:focus { border-color: var(--border-hover); }

/* Keyword suggestion chips */
.msg-keywords { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.msg-keyword-chip { background: rgba(255,255,255,0.04); border: 0.5px solid var(--border); color: var(--muted); font-family: var(--ff-body); font-size: 0.72rem; padding: 0.35rem 0.85rem; border-radius: 100px; cursor: pointer; transition: all 0.2s; white-space: nowrap; letter-spacing: 0.03em; }
.msg-keyword-chip:hover { border-color: var(--border-hover); color: var(--sand); background: rgba(201,168,76,0.05); }
.msg-keyword-chip.active { background: rgba(201,168,76,0.12); border-color: var(--gold); color: var(--gold-light); }

.btn-ai { background: rgba(196,84,26,0.1); border: 0.5px solid rgba(196,84,26,0.3); color: var(--ember-light); font-family: var(--ff-body); font-size: 0.8rem; padding: 0.6rem 1.1rem; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; letter-spacing: 0.04em; }
.btn-ai:hover { background: rgba(196,84,26,0.18); }
.btn-ai:disabled { opacity: 0.5; cursor: not-allowed; }

/* Consolidated Step 3 Extras */
.divider { margin: 25px 0; }
.step-sub-label { font-family: var(--ff-body); text-transform: uppercase; }

/* Generation state */
.success-state { text-align: center; padding: 2.5rem 0 1.5rem; }
.success-icon { font-size: 2.8rem; color: var(--gold); margin-bottom: 1.2rem; }

/* AI Chat */
.ai-chat-interface { display: flex; flex-direction: column; border: 0.5px solid var(--border); border-radius: 3px; overflow: hidden; margin-top: 1.2rem; flex: 1; min-height: 200px; }
.chat-history { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chat-bubble { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: 3px; font-size: 0.83rem; line-height: 1.5; font-weight: 300; }
.chat-bubble.user { align-self: flex-end; background: var(--gold); color: var(--ink); }
.chat-bubble.ai { align-self: flex-start; background: rgba(255,255,255,0.06); color: var(--cream); border: 0.5px solid var(--border); }
.chat-input-area { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; background: rgba(255,255,255,0.02); border-top: 0.5px solid var(--border); }
#chat-input { flex: 1; background: transparent; border: none; color: var(--cream); font-family: var(--ff-body); font-size: 0.83rem; resize: none; height: 34px; outline: none; line-height: 1.5; }
#chat-input::placeholder { color: var(--muted); }
.chat-send-btn { background: var(--gold); border: none; color: var(--ink); width: 34px; height: 34px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; transition: background 0.2s; }
.chat-send-btn:hover { background: var(--gold-light); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Step Navigation */
.step-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; margin-top: auto; border-top: 0.5px solid var(--border); flex-shrink: 0; }
.btn-prev { background: none; border: 0.5px solid var(--border); color: var(--muted); font-family: var(--ff-body); font-size: 0.82rem; padding: 0.6rem 1.3rem; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.btn-prev:hover:not(:disabled) { border-color: var(--border-hover); color: var(--sand); }
.btn-prev:disabled { opacity: 0.25; cursor: not-allowed; }
.btn-next { background: var(--gold); border: none; color: var(--ink); font-family: var(--ff-body); font-size: 0.82rem; font-weight: 500; padding: 0.6rem 1.6rem; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; letter-spacing: 0.05em; text-transform: uppercase; }
.btn-next:hover:not(:disabled) { background: var(--gold-light); }
.btn-next:disabled { opacity: 0.3; cursor: not-allowed; }

/* =========================================
   Fun Elements Panel
   ========================================= */
.elem-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.elem-tab { background: rgba(255,255,255,0.03); border: 0.5px solid var(--border); color: var(--muted); font-family: var(--ff-body); font-size: 0.72rem; padding: 0.35rem 0.85rem; border-radius: 100px; cursor: pointer; transition: all 0.18s; white-space: nowrap; }
.elem-tab:hover { border-color: var(--border-hover); color: var(--sand); }
.elem-tab.active { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold-light); }

.elem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.elem-grid::-webkit-scrollbar { width: 3px; }
.elem-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.elem-thumb { background: rgba(255,255,255,0.03); border: 0.5px solid var(--border); border-radius: 4px; padding: 0.4rem; cursor: pointer; transition: all 0.18s; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; position: relative; }
.elem-thumb:hover { border-color: var(--border-hover); background: rgba(201,168,76,0.05); transform: scale(1.04); }
.elem-thumb.selected { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.elem-thumb svg { width: 52px; height: 52px; display: block; }
.elem-thumb-label { font-size: 0.6rem; color: var(--muted); text-align: center; line-height: 1.3; }
.elem-thumb.selected .elem-thumb-label { color: var(--gold); }
.elem-thumb-check { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; background: var(--gold); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 7px; color: var(--ink); font-weight: 700; }
.elem-thumb.selected .elem-thumb-check { display: flex; }

.elem-selected-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; background: rgba(255,255,255,0.02); border: 0.5px solid var(--border); border-radius: 3px; min-height: 40px; flex-wrap: wrap; }
.elem-count { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.elem-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; flex: 1; }
.elem-chip { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(201,168,76,0.1); border: 0.5px solid var(--gold); border-radius: 100px; padding: 0.2rem 0.55rem; font-size: 0.68rem; color: var(--gold-light); }
.elem-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.elem-chip-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; padding: 0; line-height: 1; transition: color 0.15s; }
.elem-chip-remove:hover { color: var(--ember-light); }
.btn-clear-elems { background: none; border: none; color: var(--muted); font-family: var(--ff-body); font-size: 0.72rem; cursor: pointer; padding: 0; transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
.btn-clear-elems:hover { color: var(--ember-light); }

/* =========================================
   Right Panel — Browser Preview
   ========================================= */
.flow-preview {
  display: flex;
  flex-direction: column;
  background: #0F0A04;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Topbar with URL + view toggles */
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  height: 44px;
  background: #100B04;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  gap: 1rem;
}

.preview-url-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 400px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  border-right: 0.5px solid rgba(255,255,255,0.06);
}

.view-toggle-btn:last-child { border-right: none; }
.view-toggle-btn:hover { color: var(--sand); background: rgba(255,255,255,0.05); }
.view-toggle-btn.active { color: var(--gold); background: rgba(201,168,76,0.1); }

/* Desktop frame */
.desktop-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Thin browser chrome strip with traffic lights */
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #1A1208;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  opacity: 0.85;
}

/* The iframe fills the rest */
.desktop-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #1A1208;
}

/* Mobile frame */
.mobile-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F0A04;
  padding: 1.5rem;
}

.phone-shell {
  width: 375px;
  height: calc(100% - 20px);
  max-height: 780px;
  border-radius: 44px;
  background: #1A1208;
  border: 7px solid #2E2010;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(201,168,76,0.15),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #2E2010;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
}

.phone-viewport {
  flex: 1;
  overflow: hidden;
  margin-top: 8px;
}

.phone-viewport .preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.phone-home-bar {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-home-bar::after {
  content: '';
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* Loading shimmer for iframe */
.preview-iframe-loading {
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Floating fun elements */
.preview-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  opacity: 0.6;
}

.preview-floater {
  position: absolute;
  width: 44px;
  height: 44px;
}

.preview-floater svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

@keyframes floater-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(4deg); }
}

.preview-floater:nth-child(1) { animation: floater-bob 3s 0s ease-in-out infinite; }
.preview-floater:nth-child(2) { animation: floater-bob 3s 0.5s ease-in-out infinite; }
.preview-floater:nth-child(3) { animation: floater-bob 3s 1s ease-in-out infinite; }
.preview-floater:nth-child(4) { animation: floater-bob 3s 1.5s ease-in-out infinite; }
.preview-floater:nth-child(5) { animation: floater-bob 3s 2s ease-in-out infinite; }
.preview-floater:nth-child(6) { animation: floater-bob 3s 2.5s ease-in-out infinite; }

/* =========================================
   Animations
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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