/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FDF8F0;
  --surface: #F5EDE0;
  --surface2: #EDD9C4;
  --fg: #1C1410;
  --fg-muted: #6B4F3A;
  --accent: #E8600A;
  --accent-light: #FEF0E6;
  --accent-dark: #C44D00;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.saved-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 0 4px;
  margin-left: 4px;
  line-height: 1;
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(232, 96, 10, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(232, 96, 10, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--surface2);
  transition: border-color 0.2s, color 0.2s;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* === RECIPE CARD === */
.recipe-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 32px rgba(28, 20, 16, 0.1), 0 0 0 1px rgba(28, 20, 16, 0.06);
  position: relative;
}

.recipe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.recipe-card-time {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.recipe-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-card-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.recipe-card-note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

.recipe-card-footer {
  display: flex;
  gap: 8px;
}

.tag {
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

/* === PROBLEM === */
.problem {
  background: var(--fg);
  color: var(--bg);
  padding: 100px 24px;
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem-label, .section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: white;
  margin-bottom: 24px;
}

.problem-text p {
  color: rgba(253, 248, 240, 0.65);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 540px;
}

.problem-text strong { color: white; }

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.comp-item {
  border-radius: 12px;
  padding: 24px;
}

.comp-boring { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.comp-burnt { background: rgba(232, 96, 10, 0.15); border: 1px solid rgba(232, 96, 10, 0.3); }

.comp-header {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comp-boring .comp-header { color: rgba(253, 248, 240, 0.4); }
.comp-burnt .comp-header { color: var(--accent); }

.comp-item ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.comp-item li {
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.comp-boring li { color: rgba(253, 248, 240, 0.35); }
.comp-boring li::before { content: '—'; position: absolute; left: 0; opacity: 0.4; }

.comp-burnt li { color: rgba(253, 248, 240, 0.85); }
.comp-burnt li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* === FEATURES === */
.features { padding: 100px 24px; }

.features-inner { max-width: 1100px; margin: 0 auto; }

.features-header { margin-bottom: 56px; }

.features-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(28, 20, 16, 0.06);
  border: 1px solid var(--surface);
}

.feature-icon { margin-bottom: 20px; }

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-example {
  background: var(--accent-light);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
}

.eg-label {
  font-weight: 600;
  color: var(--accent-dark);
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

/* === DEMO === */
.demo { padding: 100px 24px; background: var(--surface); }

.demo-inner { max-width: 1100px; margin: 0 auto; }

.demo-header { margin-bottom: 48px; }

.demo-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--fg);
}

.demo-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.demo-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
}

.step-content { flex: 1; }

.step-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-arrow {
  flex-shrink: 0;
  padding: 0 12px;
  padding-top: 16px;
}

/* === VIDEO PLAYER === */
.video-player {
  border-radius: 16px;
  overflow: hidden;
  background: var(--fg);
  box-shadow: 0 8px 40px rgba(28, 20, 16, 0.2);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2A1810 0%, #3D2317 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.play-btn { opacity: 0.9; }

.video-label {
  color: rgba(253, 248, 240, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.video-duration {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.video-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
}

.progress-bar {
  height: 100%;
  width: 35%;
  background: var(--accent);
}

/* === VOICE === */
.voice { padding: 100px 24px; }

.voice-inner { max-width: 1100px; margin: 0 auto; }

.voice-label { margin-bottom: 24px; }

.voice-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--fg);
  max-width: 800px;
  margin-bottom: 56px;
  font-style: italic;
  line-height: 1.4;
  font-weight: 500;
}

.voice-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.voice-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
}

.voice-card-header {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.voice-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
}

/* === CLOSING === */
.closing {
  background: var(--fg);
  color: var(--bg);
  padding: 120px 24px;
  text-align: center;
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 20px;
}

.closing p {
  color: rgba(253, 248, 240, 0.6);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.closing-logo { margin-bottom: 20px; display: inline-block; }

.closing-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* === FOOTER === */
.footer {
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.35);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .voice-examples { grid-template-columns: 1fr; }
  .demo-flow { flex-direction: column; gap: 20px; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .comparison { grid-template-columns: 1fr; }
}

/* === INGREDIENT FORM === */
.ingredient-form-wrap {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 32px rgba(28, 20, 16, 0.1), 0 0 0 1px rgba(28, 20, 16, 0.06);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.input-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  font-weight: 500;
}

#ingredients-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--surface2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

#ingredients-input::placeholder { color: var(--fg-muted); opacity: 0.6; }
#ingredients-input:focus { border-color: var(--accent); }

.btn-generate {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-generate:hover { background: var(--accent-dark); }
.btn-generate:disabled { opacity: 0.7; cursor: not-allowed; }

/* CTA glow when ingredients are typed */
.btn-generate.ready {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 10, 0.3), 0 4px 16px rgba(232, 96, 10, 0.35);
  transform: scale(1.02);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-spinner { display: none; }
.btn-generate.loading .btn-text { display: none; }
.btn-generate.loading .btn-spinner { display: flex; }

.form-hint {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* Ingredient preview */
.ingredient-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preview-chip {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(232, 96, 10, 0.2);
}

/* Error */
.form-error {
  margin-top: 12px;
  background: #FEF0E6;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

/* Loading */
.form-loading {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-text {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-icon {
  animation: spin 0.9s linear infinite;
  color: var(--accent);
}

.spinner-icon.lg {
  width: 32px;
  height: 32px;
}

/* Recipe video section */
.recipe-video-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--surface);
}

.video-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.recipe-video-player {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2A1810 0%, #3D2317 100%);
  box-shadow: 0 4px 20px rgba(28, 20, 16, 0.15);
}

.recipe-video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.recipe-play-btn { opacity: 0.9; transition: opacity 0.2s; }
.recipe-play-btn:hover { opacity: 1; }

.recipe-video-label {
  color: rgba(253, 248, 240, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
}

.recipe-video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
}

.recipe-video-title {
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.8);
  font-weight: 500;
}

.recipe-video-duration {
  font-size: 0.75rem;
  color: rgba(253, 248, 240, 0.5);
}

/* Recipe result sections */
.recipe-card-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.recipe-card-steps {
  margin-bottom: 16px;
}

.recipe-card-steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: steps;
}

.recipe-card-steps li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.6;
}

.recipe-card-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .input-row { flex-direction: column; }
  .btn-generate { justify-content: center; }
}

/* === RECIPE PAGE === */
.recipe-page {
  min-height: calc(100vh - 60px);
  padding: 48px 24px 80px;
  background: var(--bg);
}

.recipe-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.recipe-breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-link:hover { color: var(--accent); }

/* Header */
.recipe-header {
  margin-bottom: 40px;
}

.recipe-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.btn-cook-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-cook-mode:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--surface2);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.save-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.save-btn.saved {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.save-btn.saved .save-icon {
  fill: currentColor;
}

.recipe-difficulty-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}

.recipe-description {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 24px;
  font-style: italic;
}

.recipe-timing {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.timing-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timing-total .timing-value {
  color: var(--accent);
  font-weight: 700;
}

.timing-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 600;
}

.timing-value {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
}

/* Body layout */
.recipe-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Ingredients */
.recipe-ingredients {
  position: sticky;
  top: 80px;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.ingredient-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.ingredient-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--surface);
}

.ingredient-amount {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ingredient-name {
  font-size: 0.92rem;
  color: var(--fg);
  font-weight: 500;
}

.ingredient-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* Instructions */
.recipe-instructions {}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  min-width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-instruction {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-tip {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tip-label {
  font-weight: 600;
  color: var(--accent-dark);
}

/* Notes */
.recipe-notes {
  margin-top: 40px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--surface);
}

.notes-heading {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.notes-text {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CTA */
.recipe-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--surface);
  display: flex;
  gap: 12px;
}

/* Video wrap in sidebar */
.recipe-video-wrap {
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 700px) {
  .recipe-body {
    grid-template-columns: 1fr;
  }
  .recipe-ingredients {
    position: static;
  }
  .recipe-timing {
    gap: 16px;
  }
}

/* === SAVED PAGE === */
.saved-page {
  min-height: calc(100vh - 60px);
  padding: 48px 24px 80px;
  background: var(--bg);
}

.saved-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.saved-header {
  margin-bottom: 40px;
}

.saved-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}

.saved-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}

.saved-empty p {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--fg-muted);
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.saved-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(28, 20, 16, 0.06);
  border: 1px solid var(--surface);
}

.saved-card-inner { display: flex; flex-direction: column; gap: 10px; }

.saved-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.saved-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
}

.saved-card-name {
  color: var(--fg);
  text-decoration: none;
}

.saved-card-name:hover { color: var(--accent); }

.saved-card-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-style: italic;
}

.saved-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.btn-unsave {
  background: transparent;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.btn-unsave:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

@media (max-width: 600px) {
  .saved-grid { grid-template-columns: 1fr; }
}

/* === STAR RATING WIDGET === */
.recipe-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.star-rating-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-rating-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--surface2);
  transition: color 0.15s, transform 0.1s;
  line-height: 0;
}

.star-btn:hover {
  color: var(--accent);
  transform: scale(1.15);
}

.star-btn.filled {
  color: var(--accent);
}

.star-btn.filled svg {
  fill: currentColor;
}

.star-aggregate {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

#star-avg-text {
  font-weight: 700;
  color: var(--fg);
}

/* Saved card star display */
.saved-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.saved-card-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.saved-rating-text {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* === YIELD SCALER === */
.yield-scaler {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1.5px solid var(--surface2);
  border-radius: 100px;
  padding: 5px 8px;
  flex-shrink: 0;
}

.yield-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding-left: 2px;
}

.yield-btn {
  background: var(--surface);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--fg);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.yield-btn:hover {
  background: var(--accent);
  color: white;
}

.yield-input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  outline: none;
  -moz-appearance: textfield;
}

.yield-input::-webkit-outer-spin-button,
.yield-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.yield-unit {
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding-right: 2px;
}

/* === COOKBOOK PAGE === */
.cookbook-page { min-height: calc(100vh - 60px); padding: 48px 24px 80px; background: var(--bg); }
.cookbook-page-inner { max-width: 900px; margin: 0 auto; }
.cookbook-header { margin-bottom: 40px; }
.cookbook-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--fg); margin-bottom: 12px; }
.cookbook-sub { font-size: 1rem; color: var(--fg-muted); }
.cookbook-create-form { display: flex; gap: 10px; margin-bottom: 40px; }
.cookbook-create-input { flex: 1; padding: 10px 16px; border: 1.5px solid var(--surface2); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; background: white; color: var(--fg); outline: none; transition: border-color 0.2s; }
.cookbook-create-input:focus { border-color: var(--accent); }
.cookbook-create-btn { padding: 10px 20px; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.cookbook-create-btn:hover { background: var(--accent-dark); }
.cookbook-collections { display: flex; flex-direction: column; gap: 24px; }
.collection-card { background: white; border-radius: 16px; border: 1px solid var(--surface); box-shadow: 0 2px 16px rgba(28,20,16,0.06); overflow: hidden; }
.collection-card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--surface); gap: 12px; }
.collection-card-name-row { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.collection-name-text { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; color: var(--fg); }
.collection-count-badge { background: var(--surface); color: var(--fg-muted); font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.collection-rename-input { flex: 1; padding: 4px 10px; border: 1.5px solid var(--accent); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--fg); outline: none; }
.collection-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-rename, .btn-delete-collection { background: transparent; border: 1px solid var(--surface2); border-radius: 6px; padding: 5px 10px; font-size: 0.78rem; font-family: 'DM Sans', sans-serif; cursor: pointer; color: var(--fg-muted); transition: border-color 0.2s, color 0.2s; }
.btn-rename:hover { border-color: var(--accent); color: var(--accent); }
.btn-delete-collection:hover { border-color: #e74c3c; color: #e74c3c; }
.collection-card-body { padding: 20px 24px; }
.collection-empty-msg { font-size: 0.88rem; color: var(--fg-muted); font-style: italic; }
.collection-recipes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.collection-recipe-tile { background: var(--bg); border-radius: 10px; border: 1px solid var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.collection-recipe-name a { color: var(--fg); text-decoration: none; font-size: 0.92rem; font-weight: 600; font-family: 'Fraunces', serif; }
.collection-recipe-name a:hover { color: var(--accent); }
.btn-remove-from-collection { background: transparent; border: none; font-size: 0.75rem; color: var(--fg-muted); cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0; text-align: left; }
.btn-remove-from-collection:hover { color: #e74c3c; }
.cookbook-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 24px; text-align: center; }
.cookbook-empty p { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--fg-muted); }
@media (max-width: 600px) {
  .collection-recipes-grid { grid-template-columns: 1fr; }
  .cookbook-create-form { flex-direction: column; }
}

/* === COLLECTION PICKER (recipe detail page) === */
.collection-picker { position: relative; }
.btn-collection-picker { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1.5px solid var(--surface2); border-radius: 100px; padding: 6px 14px 6px 10px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--fg-muted); transition: border-color 0.2s, color 0.2s; flex-shrink: 0; }
.btn-collection-picker:hover, .btn-collection-picker[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.collection-dropdown { position: absolute; top: calc(100% + 6px); right: 0; z-index: 200; background: white; border: 1px solid var(--surface2); border-radius: 12px; box-shadow: 0 8px 32px rgba(28,20,16,0.12); min-width: 220px; max-width: 280px; overflow: hidden; }
.collection-dropdown-list { max-height: 220px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.collection-dropdown-loading, .collection-dropdown-empty { font-size: 0.82rem; color: var(--fg-muted); padding: 8px 10px; }
.collection-dropdown-item { display: flex; align-items: center; gap: 8px; background: none; border: none; border-radius: 6px; padding: 8px 10px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--fg); cursor: pointer; text-align: left; transition: background 0.15s; width: 100%; }
.collection-dropdown-item:hover { background: var(--surface); }
.collection-dropdown-item.active { color: var(--accent-dark); font-weight: 600; }
.collection-dropdown-create { padding: 8px; border-top: 1px solid var(--surface); display: flex; flex-direction: column; gap: 6px; }
.collection-new-input { padding: 7px 10px; border: 1.5px solid var(--surface2); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--fg); outline: none; transition: border-color 0.2s; }
.collection-new-input:focus { border-color: var(--accent); }
.collection-new-btn { padding: 7px 12px; background: var(--accent); color: white; border: none; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.collection-new-btn:hover { background: var(--accent-dark); }

/* === SHARE BUTTON & MODAL === */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--surface2);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 16, 0.45);
  z-index: 300;
}

.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 301;
  width: min(480px, calc(100vw - 32px));
}

.share-modal-inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(28, 20, 16, 0.2);
  overflow: hidden;
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface);
}

.share-modal-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.share-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-muted);
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  transition: color 0.2s, background 0.2s;
}

.share-modal-close:hover {
  color: var(--fg);
  background: var(--surface);
}

.share-modal-body {
  padding: 24px;
}

.share-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--surface2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.share-input:focus {
  border-color: var(--accent);
}

.share-textarea {
  resize: vertical;
  min-height: 80px;
}

.share-optional {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 0.85em;
  text-transform: none;
  letter-spacing: 0;
}

.share-error {
  margin-top: 8px;
  background: #FEF0E6;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--accent-dark);
}

.share-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0F7F0;
  border: 1px solid #6DBF6D;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #2D6A2D;
  font-weight: 500;
}

.share-form-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.share-send-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.share-send-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}

.share-send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* === COOKBOOK QUICK-ADD MODAL === */
.cookbook-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 16, 0.45);
  z-index: 300;
}

.cookbook-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 301;
  width: min(420px, calc(100vw - 32px));
}

.cookbook-modal-inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(28, 20, 16, 0.2);
  overflow: hidden;
}

.cookbook-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface);
}

.cookbook-modal-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.cookbook-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-muted);
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  transition: color 0.2s, background 0.2s;
}

.cookbook-modal-close:hover {
  color: var(--fg);
  background: var(--surface);
}

.cookbook-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookbook-modal-recipe-name {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.cookbook-modal-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}

.cookbook-modal-loading,
.cookbook-modal-empty {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding: 12px 4px;
  text-align: center;
}

.cookbook-modal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  transition: background 0.15s;
}

.cookbook-modal-item:hover {
  background: var(--surface);
}

.cookbook-modal-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.cookbook-modal-item.checked span {
  color: var(--accent-dark);
  font-weight: 600;
}

.cookbook-modal-create {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cookbook-modal-new-input {
  padding: 7px 10px;
  border: 1.5px solid var(--surface2);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.cookbook-modal-new-input:focus {
  border-color: var(--accent);
}

.cookbook-modal-new-btn {
  padding: 7px 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookbook-modal-new-btn:hover {
  background: var(--accent-dark);
}

.cookbook-modal-error {
  font-size: 0.82rem;
  color: #c0392b;
  padding: 4px 2px;
}

.cookbook-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.cookbook-modal-done-btn {
  padding: 8px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookbook-modal-done-btn:hover {
  background: var(--accent-dark);
}

/* === SHOPPING LIST PAGE === */
.shopping-page {
  min-height: calc(100vh - 60px);
  padding: 48px 24px 80px;
  background: var(--bg);
}

.shopping-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.shopping-header {
  margin-bottom: 40px;
}

.shopping-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}

.shopping-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

.shopping-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}

.shopping-empty p {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--fg-muted);
}

.shopping-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn-clear-checked {
  background: transparent;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-clear-checked:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-clear-checked:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shopping-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shopping-group {
  background: white;
  border-radius: 16px;
  padding: 24px 28px 18px;
  box-shadow: 0 2px 16px rgba(28, 20, 16, 0.06);
  border: 1px solid var(--surface);
}

.shopping-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface);
}

.shopping-group-name {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}

.shopping-group-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.shopping-group-link:hover { color: var(--accent-dark); }

.shopping-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.shopping-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
}

.shopping-item:last-child { border-bottom: none; }

.shop-check {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.shopping-item-text {
  flex: 1;
  line-height: 1.5;
}

.shopping-amount {
  font-weight: 600;
  color: var(--fg);
  margin-right: 4px;
}

.shopping-name { color: var(--fg); }

.shopping-note {
  color: var(--fg-muted);
  font-style: italic;
  margin-left: 4px;
  font-size: 0.88rem;
}

.shopping-item.shop-checked .shopping-amount,
.shopping-item.shop-checked .shopping-name,
.shopping-item.shop-checked .shopping-note {
  text-decoration: line-through;
  color: var(--fg-muted);
}

.shopping-group-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-remove-recipe {
  background: transparent;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-remove-recipe:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* === SHOP-BTN on recipe page === */
.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.shop-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.shop-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.shop-btn.added {
  border-color: var(--accent);
  color: var(--accent);
}

/* === HERO IMPORT LINK === */
.hero-import-link {
  display: inline-block;
  margin-top: 6px;
  margin-left: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.hero-import-link:hover { color: var(--accent-dark); }

/* === IMPORT PAGE === */
.import-page {
  min-height: calc(100vh - 60px);
  padding: 64px 24px 80px;
  background: var(--bg);
}

.import-page-inner {
  max-width: 640px;
  margin: 0 auto;
}

.import-card {
  background: white;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 4px 32px rgba(28, 20, 16, 0.08), 0 0 0 1px rgba(28, 20, 16, 0.05);
  margin-top: 32px;
}

.import-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.import-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.15;
}

.import-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.import-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.import-input-row input[type="url"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--surface2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.import-input-row input[type="url"]:focus { border-color: var(--accent); }

.import-input-row input[type="url"]::placeholder { color: var(--fg-muted); opacity: 0.6; }

.import-hint {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 10px;
  opacity: 0.75;
}

@media (max-width: 540px) {
  .import-card { padding: 28px 22px; }
  .import-input-row { flex-direction: column; }
}

/* === MEAL PLANNER === */
.meal-planner-page {
  min-height: calc(100vh - 60px);
  padding: 48px 24px 80px;
  background: var(--bg);
}

.meal-planner-page-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.meal-planner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.meal-planner-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--fg);
  margin: 12px 0 12px;
}

.meal-planner-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

.meal-planner-toolbar {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-clear-week,
.btn-generate-shopping-list {
  background: white;
  color: var(--fg-muted);
  border: 1.5px solid var(--surface2);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-clear-week:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-generate-shopping-list {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-generate-shopping-list:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.meal-planner-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.meal-planner-sidebar {
  background: white;
  border: 1px solid var(--surface);
  border-radius: 16px;
  padding: 16px;
  max-height: 75vh;
  overflow-y: auto;
  position: sticky;
  top: 80px;
}

.meal-sidebar-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  background: var(--bg);
  padding: 4px;
  border-radius: 100px;
}

.meal-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.meal-tab:hover { color: var(--fg); }

.meal-tab-active {
  background: white;
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(28, 20, 16, 0.08);
}

.meal-sidebar-hint {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.meal-sidebar-empty {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
  padding: 8px 0;
}

.meal-source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meal-recipe-source {
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: grab;
  font-size: 0.85rem;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.meal-recipe-source:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(232, 96, 10, 0.08);
}

.meal-recipe-source:active { cursor: grabbing; }

.meal-recipe-source-meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.meal-grid-section { min-width: 0; }

.meal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(96px, auto));
  gap: 8px;
  background: white;
  border: 1px solid var(--surface);
  border-radius: 16px;
  padding: 12px;
}

.meal-day-header {
  grid-column: span 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-align: center;
  padding: 4px 0 12px;
  font-family: 'Fraunces', serif;
}

.meal-slot {
  min-height: 88px;
  border: 1.5px dashed var(--surface2);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
  min-width: 0;
}

.meal-slot-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meal-slot-empty {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-style: italic;
  align-self: center;
  padding: 12px 0;
}

.meal-slot.drag-over {
  background: var(--accent-light);
  border-color: var(--accent);
  border-style: solid;
}

.meal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: grab;
  min-width: 0;
}

.meal-chip:active { cursor: grabbing; }

.meal-chip-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-chip-remove {
  background: none;
  border: none;
  color: var(--accent-dark);
  cursor: pointer;
  padding: 0 4px;
  font-size: 1rem;
  line-height: 1;
}

.meal-chip-remove:hover { color: #e74c3c; }

.meal-cooking-list-panel {
  margin-top: 32px;
  background: white;
  border: 1px solid var(--surface);
  border-radius: 16px;
  padding: 24px;
}

.meal-cooking-list-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}

.meal-cooking-list-group {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface);
}

.meal-cooking-list-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.meal-cooking-list-item {
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 2px;
}

.meal-cooking-list-amount {
  font-weight: 600;
  color: var(--accent-dark);
}

.meal-cooking-list-name {
  font-weight: 500;
}

.meal-cooking-list-meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 0;
  margin-top: 2px;
}

.meal-cooking-list-empty {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .meal-planner-layout { grid-template-columns: 1fr; }
  .meal-planner-sidebar {
    position: static;
    max-height: none;
  }
  .meal-grid {
    grid-template-columns: repeat(7, minmax(60px, 1fr));
    font-size: 0.7rem;
  }
  .meal-chip { font-size: 0.7rem; padding: 4px 6px; }
  .meal-slot { min-height: 72px; }
}

@media (max-width: 640px) {
  .meal-planner-header { flex-direction: column; }
  .meal-planner-toolbar { width: 100%; }
  .meal-grid {
    grid-template-columns: repeat(7, minmax(50px, 1fr));
    gap: 4px;
    padding: 8px;
  }
  .meal-slot { min-height: 60px; padding: 4px; }
  .meal-slot-label { font-size: 0.6rem; }
  .meal-chip { font-size: 0.65rem; padding: 3px 5px; }
  .meal-day-header { font-size: 0.7rem; }
}