/* ===================== WOOD KITCHEN V4 — Warm & Personal ===================== */
/* Design language: warm organic materials, Apple-like fluidity, real personality */

:root {
  /* ===== DARK TONES — warm forest, not cold navy ===== */
  --green-dark: #1D2419;
  --green-mid: #273022;

  /* ===== ACCENT — terracotta / warm clay ===== */
  --green-light: #C85D36;
  --coral: #C85D36;
  --xp-color: #C85D36;

  /* ===== GOLD / AMBER ===== */
  --gold: #C8891C;
  --gold-light: #E5A83A;
  --amber: #C8891C;

  /* ===== SAGE — success / active states ===== */
  --sage: #4D7045;
  --sage-light: #6A9060;

  /* ===== BACKGROUNDS ===== */
  --cream: #F7F4EF;
  --warm-white: #FFFFFF;
  --card-bg: #FFFFFF;
  --bg-main: #F7F4EF;

  /* ===== TEXT ===== */
  --text: #1A1714;
  --text-primary: #1A1714;
  --text-muted: #8A8078;
  --text-light: #B5ADA5;

  /* ===== FUNCTIONAL ===== */
  --red-badge: #B83030;

  /* ===== BORDERS ===== */
  --border: #E5E0D8;

  /* ===== SHADOWS — warm, layered ===== */
  --shadow-xs: 0 1px 3px rgba(26,23,20,.05);
  --shadow-sm: 0 2px 8px rgba(26,23,20,.07), 0 1px 3px rgba(26,23,20,.04);
  --shadow-md: 0 4px 16px rgba(26,23,20,.09), 0 2px 6px rgba(26,23,20,.04);
  --shadow-lg: 0 8px 32px rgba(26,23,20,.11), 0 4px 12px rgba(26,23,20,.05);

  /* ===== EASINGS ===== */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET & BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
input, button, textarea, select { font-family: inherit; }

/* ===================== LOGIN ===================== */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200,89,28,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(77,112,69,.15) 0%, transparent 60%),
    linear-gradient(170deg, #1D2419 0%, #131A10 55%, #1A1714 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.login-overlay.hidden { opacity: 0; transform: scale(1.04); pointer-events: none; }

.login-logo {
  font-size: 68px; margin-bottom: 8px;
  filter: drop-shadow(0 6px 16px rgba(200,137,28,.3));
  animation: logoBreathe 3s ease-in-out infinite;
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.login-title { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.login-tagline { color: var(--gold-light); font-size: 11px; font-weight: 700; margin-bottom: 36px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }

.login-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px; padding: 28px 22px;
  width: 100%; max-width: 340px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-field { margin-bottom: 16px; }
.login-label { display: block; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 7px; }
.login-input, .login-select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 13px; color: #fff; font-size: 15px; outline: none;
  transition: border-color .2s, background .2s;
}
.login-input:focus, .login-select:focus { border-color: var(--gold-light); background: rgba(255,255,255,.10); }
.login-input::placeholder { color: rgba(255,255,255,.25); }
.login-select { appearance: none; cursor: pointer; }
.login-select option { background: #1D2419; color: #fff; }

.login-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #1A1714; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s; margin-top: 10px;
  box-shadow: 0 4px 16px rgba(200,137,28,.35);
}
.login-btn:active { transform: scale(.96); box-shadow: none; }
.login-btn:hover { box-shadow: 0 6px 20px rgba(200,137,28,.45); }

.login-error {
  background: rgba(184,48,48,.15); border: 1px solid rgba(184,48,48,.3);
  color: #f1948a; font-size: 12px; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; text-align: center;
}
.login-error.show { display: block; }
.login-success { background: rgba(77,112,69,.2); color: #8ecf8a; padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; text-align: center; }
.login-footer { color: rgba(255,255,255,.25); font-size: 11px; margin-top: 24px; text-align: center; line-height: 1.6; }
.login-footer strong { color: rgba(255,255,255,.4); }

/* ===================== HEADER ===================== */
.app-header {
  background: var(--green-dark);
  padding: 14px 16px 10px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-top { display: flex; justify-content: space-between; align-items: center; }
.header-logo { color: #fff; font-size: 17px; font-weight: 900; cursor: pointer; letter-spacing: -.3px; }
.header-logo span { margin-left: 6px; }
.header-actions { display: flex; gap: 6px; }
.header-btn {
  background: rgba(255,255,255,.08); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s, transform .15s var(--spring);
}
.header-btn:active { transform: scale(.88); background: rgba(255,255,255,.18); }
.header-tagline { color: rgba(200,137,28,.8); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

.xp-bar {
  margin-top: 10px; height: 18px;
  background: rgba(255,255,255,.08);
  border-radius: 9px; position: relative; overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold-light) 100%);
  border-radius: 9px;
  transition: width .6s var(--ease-out);
}
.xp-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px;
}

/* ===================== SCREENS ===================== */
.screens-container { padding: 14px 14px 90px; }
.screen { display: none; }
.screen.active { display: block; animation: screenIn .25s var(--ease-out) both; }
@keyframes screenIn { from { opacity: .7; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===================== NAV BOTTOM — Apple style ===================== */
.nav-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid rgba(0,0,0,.07);
  display: flex; justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom, 10px);
  z-index: 100;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 10px 6px; cursor: pointer;
  position: relative; flex: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--spring);
}
.nav-item:active { transform: scale(.88); }
.nav-icon { font-size: 20px; transition: transform .25s var(--spring); }
.nav-label { font-size: 10px; font-weight: 600; color: var(--text-muted); transition: color .2s; }

.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-item.active .nav-label { color: var(--coral); font-weight: 700; }
.nav-item.active::after {
  content: '';
  position: absolute; bottom: 0;
  width: 18px; height: 3px;
  background: var(--coral);
  border-radius: 2px 2px 0 0;
  animation: navDotIn .25s var(--spring) both;
}
@keyframes navDotIn { from { width: 0; opacity: 0; } to { width: 18px; opacity: 1; } }

/* ===================== MODALS — Bottom sheet, Apple-like ===================== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,23,20,.55);
  backdrop-filter: blur(4px);
  display: none; justify-content: center; align-items: flex-end;
}
.modal.show {
  display: flex;
  animation: backdropIn .3s var(--ease-out) both;
}
.modal.show .modal-content {
  animation: sheetUp .38s var(--spring) both;
}
@keyframes backdropIn { from { background: rgba(26,23,20,0); backdrop-filter: blur(0); } to { background: rgba(26,23,20,.55); backdrop-filter: blur(4px); } }
@keyframes sheetUp { from { transform: translateY(32px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-content {
  background: var(--warm-white); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 430px;
  max-height: 92vh; overflow-y: auto; padding: 20px;
  /* Drag indicator */
  background-image: radial-gradient(ellipse 36px 4px at 50% 10px, rgba(0,0,0,.12) 0%, transparent 100%);
  background-repeat: no-repeat;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.modal-close {
  background: var(--cream); border: none; width: 30px; height: 30px;
  border-radius: 50%; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: background .2s, transform .15s var(--spring);
}
.modal-close:active { transform: scale(.88); }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--green-dark); color: #fff;
  padding: 11px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: all .3s var(--spring); z-index: 9999; pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== ACCUEIL ===================== */
.greeting { font-size: 22px; font-weight: 900; margin-bottom: 2px; letter-spacing: -.5px; }
.streak-badge { font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.mt12 { margin-top: 12px; }

.plan-week-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff; border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 12px;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.plan-week-btn:active { transform: scale(.97); box-shadow: var(--shadow-xs); }

/* SECTION TITLES */
.section-title {
  font-size: 13px; font-weight: 800; color: var(--text);
  margin: 18px 0 10px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.1px;
}
.section-badge {
  background: var(--coral); color: #fff;
  font-size: 10px; padding: 2px 9px; border-radius: 100px; font-weight: 700;
}
.section-badge.gold { background: var(--gold); color: #fff; }
.section-badge.red { background: var(--red-badge); }

/* ASTUCE DU JOUR */
.tip-card {
  background: var(--green-dark);
  border-radius: 16px; padding: 16px; margin-bottom: 14px;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-md);
}
.tip-icon { font-size: 28px; flex-shrink: 0; }
.tip-content { flex: 1; }
.tip-label { font-size: 10px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.tip-text { font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.5; }

/* STREAK SEMAINE */
.streak-row { display: flex; gap: 5px; margin-bottom: 6px; }
.streak-day {
  flex: 1; background: var(--warm-white); border-radius: 12px; padding: 8px 4px; text-align: center;
  border: 1.5px solid var(--border);
  transition: all .2s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.streak-day.done { border-color: var(--sage); background: rgba(77,112,69,.06); }
.streak-day.tonight { border-color: var(--gold); background: linear-gradient(135deg, rgba(200,137,28,.08), rgba(229,168,58,.05)); box-shadow: 0 2px 8px rgba(200,137,28,.15); }
.streak-day.future { opacity: .45; }
.streak-day .sday { font-size: 8px; text-transform: uppercase; font-weight: 800; color: var(--text-light); letter-spacing: .5px; }
.streak-day.done .sday { color: var(--sage); }
.streak-day.tonight .sday { color: var(--gold); }
.streak-day .semoji { font-size: 18px; margin: 4px 0 2px; }
.streak-day .scheck { font-size: 11px; color: #ccc; }
.streak-day.done .scheck { color: var(--sage); font-weight: 800; }
.streak-day.tonight .scheck { color: var(--gold); font-weight: 800; font-size: 9px; }

/* CE SOIR */
.tonight-card {
  background: var(--warm-white); border-radius: 18px; padding: 16px;
  border: none; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: center; margin-bottom: 10px;
  cursor: pointer; transition: all .2s var(--spring);
  border-left: 4px solid var(--gold);
}
.tonight-card:active { transform: scale(.98); }
.tonight-emoji { font-size: 48px; line-height: 1; }
.tonight-info { flex: 1; }
.tonight-info h2 { font-size: 16px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.2px; }
.tonight-score { font-size: 22px; font-weight: 900; color: var(--gold); text-align: center; }
.tonight-score span { display: block; font-size: 10px; font-weight: 600; color: var(--text-light); margin-top: 2px; }

.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.tag.green { background: rgba(77,112,69,.1); color: var(--sage); }
.tag.gold { background: rgba(200,137,28,.1); color: var(--gold); }
.tag.blue { background: rgba(42,109,217,.1); color: #2a6dd9; }
.tag.red { background: rgba(184,48,48,.1); color: var(--red-badge); }
.tag.purple { background: rgba(124,58,237,.1); color: #7c3aed; }

.btn-cook {
  display: block; width: 100%; padding: 13px;
  background: var(--coral); color: #fff; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer; text-align: center; margin-top: 10px;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 4px 12px rgba(200,93,54,.3);
}
.btn-cook:active { transform: scale(.97); box-shadow: none; }

/* QUIZ */
.quiz-card { background: var(--green-dark); border-radius: 18px; padding: 18px; margin-bottom: 14px; color: #fff; box-shadow: var(--shadow-md); }
.quiz-card h3 { color: var(--gold-light); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.quiz-q { font-size: 15px; margin-bottom: 14px; line-height: 1.45; font-weight: 600; }
.quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-ans {
  padding: 11px; border: 1.5px solid rgba(255,255,255,.15); border-radius: 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; text-align: center;
  transition: all .2s var(--spring); background: rgba(255,255,255,.04);
}
.quiz-ans:active { transform: scale(.95); }
.quiz-ans.correct { background: rgba(77,112,69,.3); border-color: var(--sage); color: #a0e4a0; }
.quiz-ans.wrong { background: rgba(184,48,48,.3); border-color: var(--red-badge); color: #f1948a; }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat-box {
  background: var(--warm-white); border-radius: 14px; padding: 14px 10px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number { font-size: 24px; font-weight: 900; color: var(--coral); }
.stat-label { font-size: 10px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* BADGES */
.achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.achievement {
  background: var(--warm-white); border-radius: 14px; padding: 10px 6px; text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--spring);
}
.achievement.unlocked { background: linear-gradient(135deg, rgba(200,137,28,.08), var(--warm-white)); box-shadow: 0 2px 8px rgba(200,137,28,.15); }
.achievement.locked { opacity: .4; }
.achievement:active { transform: scale(.94); }
.ach-icon { font-size: 24px; margin-bottom: 4px; }
.ach-name { font-size: 9px; font-weight: 700; color: var(--text-muted); line-height: 1.2; }
.achievement.unlocked .ach-name { color: var(--gold); }

/* DÉFI COUPLE */
.challenge-card {
  background: var(--green-dark);
  border-radius: 16px; padding: 16px; color: #fff; margin-top: 2px;
  box-shadow: var(--shadow-md);
}
.challenge-label { font-size: 10px; color: var(--gold-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; }
.challenge-title { font-size: 16px; font-weight: 800; margin-bottom: 5px; letter-spacing: -.2px; }
.challenge-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* ===================== RECIPES ===================== */
.recipe-search-bar { margin-bottom: 10px; }
.recipe-search-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 14px; outline: none; background: var(--warm-white);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s;
}
.recipe-search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.12); }

.filter-tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.filter-tags::-webkit-scrollbar { display: none; }
.filter-tag {
  padding: 7px 15px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 700; background: var(--warm-white); cursor: pointer;
  white-space: nowrap; transition: all .2s var(--spring);
  box-shadow: var(--shadow-xs);
}
.filter-tag:active { transform: scale(.94); }
.filter-tag.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); box-shadow: var(--shadow-sm); }
.filter-tag[data-filter="desserts"], .filter-tag[data-filter="favoris_desserts"] { border-color: rgba(200,93,54,.3); color: var(--coral); background: rgba(200,93,54,.05); }
.filter-tag[data-filter="desserts"].active, .filter-tag[data-filter="favoris_desserts"].active { background: var(--coral); color: #fff; border-color: var(--coral); }

.recipe-count { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.recipes-grid { display: flex; flex-direction: column; gap: 8px; }

.recipe-card-list {
  display: flex; align-items: center; gap: 13px;
  background: var(--warm-white); border-radius: 16px;
  padding: 13px 13px; cursor: pointer;
  transition: all .2s var(--spring);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
}
.recipe-card-list:active { transform: scale(.98); box-shadow: var(--shadow-xs); }
.recipe-card-emoji { font-size: 30px; min-width: 38px; text-align: center; }
.recipe-card-info { flex: 1; min-width: 0; }
.recipe-card-name { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.1px; }
.recipe-card-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.recipe-card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.recipe-card-score { font-size: 16px; font-weight: 900; color: var(--gold); min-width: 40px; text-align: right; }
.recipe-card-score span { font-size: 12px; }

.rtag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: #f0ede8; color: var(--text-muted); }
.rtag-favori { background: rgba(184,48,48,.1); color: var(--red-badge); }
.rtag-rapide { background: rgba(200,137,28,.1); color: var(--gold); }
.rtag-vege, .rtag-végé { background: rgba(77,112,69,.1); color: var(--sage); }
.rtag-classique { background: rgba(52,73,94,.1); color: #34495e; }
.rtag-dimanche { background: rgba(124,58,237,.1); color: #7c3aed; }
.rtag-leger, .rtag-léger { background: rgba(26,188,156,.1); color: #1abc9c; }
.rtag-reconfort, .rtag-réconfort { background: rgba(200,93,54,.1); color: var(--coral); }

.claude-btn {
  width: 100%; padding: 13px; margin-top: 16px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: #fff; border: none; border-radius: 16px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,92,231,.3);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.claude-btn:active { transform: scale(.97); box-shadow: none; }

/* ===================== RECIPE MODAL ===================== */
.recipe-modal-content { padding: 0; }
.recipe-modal-image {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 32px; text-align: center; font-size: 68px; position: relative;
  border-radius: 24px 24px 0 0;
}
.recipe-modal-fav {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--spring), background .2s;
}
.recipe-modal-fav:active { transform: scale(.85); }
.recipe-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 32px; height: 32px; color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--spring);
}
.recipe-modal-close:active { transform: scale(.84); }
.recipe-modal-body { padding: 18px; }
.recipe-modal-title { font-size: 19px; font-weight: 900; text-align: center; margin-bottom: 8px; letter-spacing: -.4px; }
.recipe-modal-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.meta-item { text-align: center; }
.meta-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: 15px; font-weight: 800; margin-top: 2px; }
.recipe-section { margin-bottom: 16px; }
.recipe-section-title { font-size: 13px; font-weight: 800; margin-bottom: 9px; color: var(--green-dark); text-transform: uppercase; letter-spacing: .5px; }
.recipe-ingredients { font-size: 13px; color: #555; line-height: 1.6; }
.recipe-ingredients-list { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients-list li {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 8px;
}
.recipe-ingredients-list li::before { content: '·'; color: var(--gold); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.instruction-step {
  font-size: 13px; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.instruction-step::before { content: attr(data-step) '. '; font-weight: 800; color: var(--coral); }
.recipe-assign-btn {
  padding: 10px; border: 1.5px solid var(--gold); background: transparent;
  color: var(--gold); border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.recipe-assign-btn:active { background: var(--gold); color: #fff; }

/* ===================== PLANNING ===================== */
.planning-header { margin-bottom: 14px; }
.planning-title { font-size: 17px; font-weight: 900; margin-bottom: 8px; letter-spacing: -.3px; }
.planning-search { display: flex; gap: 6px; }
.planning-search-input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; outline: none; background: var(--warm-white);
  transition: border-color .2s;
}
.planning-search-input:focus { border-color: var(--gold); }
.planning-search-btn {
  padding: 11px 14px; background: var(--gold); border: none;
  border-radius: 12px; font-size: 14px; cursor: pointer;
  transition: transform .15s var(--spring);
}
.planning-search-btn:active { transform: scale(.9); }

.planning-days { display: flex; flex-direction: column; gap: 8px; }
.day-card {
  background: var(--warm-white); border-radius: 16px;
  padding: 14px; transition: all .2s;
  box-shadow: var(--shadow-xs);
  border-left: 3px solid transparent;
}
.day-card.today { border-left-color: var(--gold); box-shadow: var(--shadow-sm); }
.day-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.day-name { font-size: 14px; font-weight: 800; letter-spacing: -.1px; }
.day-date { font-size: 11px; color: var(--text-muted); }
.meals-list { display: flex; flex-direction: column; gap: 6px; }
.meal-slot { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.meal-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--text-light); min-width: 32px; letter-spacing: .5px;
}
.meal-recipe { flex: 1; font-size: 13px; font-weight: 600; }
.meal-edit {
  background: var(--cream); border: none; width: 28px; height: 28px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
  transition: transform .15s var(--spring);
}
.meal-edit:active { transform: scale(.88); }

/* ===================== STOCK ===================== */
.fridge-photo-section {
  background: var(--warm-white); border-radius: 16px;
  padding: 15px; margin-bottom: 14px; box-shadow: var(--shadow-xs);
}
.fridge-photo-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.1px; }
.fridge-photo-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 11px; }
.fridge-photo-btns { display: flex; gap: 8px; }
.fridge-photo-btn {
  flex: 1; padding: 11px; background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s var(--spring);
}
.fridge-photo-btn:active { transform: scale(.95); background: var(--border); }
.fridge-photo-btn-icon { font-size: 16px; }

.stock-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.stock-tab {
  flex: 1; padding: 11px; background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center;
  transition: all .2s var(--spring); box-shadow: var(--shadow-xs);
}
.stock-tab:active { transform: scale(.96); }
.stock-tab.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); box-shadow: var(--shadow-sm); }

.stock-section-title { font-size: 12px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.stock-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--warm-white); border-radius: 12px;
  padding: 11px 12px; margin-bottom: 6px;
  box-shadow: var(--shadow-xs);
  transition: transform .15s var(--spring);
}
.stock-item:active { transform: scale(.98); }
.stock-item-icon { font-size: 20px; }
.stock-item-name { flex: 1; font-size: 13px; font-weight: 600; }
.stock-status {
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 100px; cursor: pointer;
  transition: all .2s var(--spring);
}
.stock-status:active { transform: scale(.92); }
.stock-status.en-stock { background: rgba(77,112,69,.1); color: var(--sage); }
.stock-status.presque-vide { background: rgba(200,137,28,.12); color: var(--amber); }
.stock-status.a-acheter { background: rgba(184,48,48,.1); color: var(--red-badge); }
.stock-delete-btn { background: none; border: none; color: var(--text-muted); font-size: 15px; line-height: 1; padding: 4px 5px; cursor: pointer; opacity: 0.35; transition: all .15s; border-radius: 6px; flex-shrink: 0; }
.stock-delete-btn:hover { opacity: 1; color: var(--red-badge); background: rgba(184,48,48,.08); }

/* DLC badge */
.dlc-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 100px; margin-left: 4px; }
.dlc-badge.dlc-ok { background: rgba(77,112,69,.1); color: var(--sage); }
.dlc-badge.dlc-warn { background: rgba(200,137,28,.12); color: var(--amber); }
.dlc-badge.dlc-expired { background: rgba(184,48,48,.12); color: var(--red-badge); }

/* Pantry */
.gm-category { margin-bottom: 16px; }
.gm-category-title { font-size: 12px; font-weight: 800; margin-bottom: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.gm-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: var(--warm-white); border-radius: 10px; margin-bottom: 5px;
  box-shadow: var(--shadow-xs);
}
.gm-item-name { font-size: 13px; font-weight: 600; }
.gm-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; cursor: pointer; transition: all .15s var(--spring); }
.gm-status:active { transform: scale(.9); }
.gm-status.en-stock { background: rgba(77,112,69,.1); color: var(--sage); }
.gm-status.presque-vide { background: rgba(200,137,28,.12); color: var(--amber); }
.gm-status.a-acheter { background: rgba(184,48,48,.1); color: var(--red-badge); }

/* Photo analysis result */
#photoAnalysisResult {
  background: rgba(77,112,69,.06);
  border: 1.5px solid rgba(77,112,69,.2);
  border-radius: 14px; padding: 14px; margin-top: 12px;
}

/* ===================== SHOPPING ===================== */
.shopping-filters { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.shopping-filters::-webkit-scrollbar { display: none; }
.shop-filter {
  padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 700; background: var(--warm-white); cursor: pointer;
  white-space: nowrap; transition: all .2s var(--spring); box-shadow: var(--shadow-xs);
}
.shop-filter:active { transform: scale(.94); }
.shop-filter.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

.shopping-section { margin-bottom: 16px; }
.shopping-section-title {
  font-size: 12px; font-weight: 800; margin-bottom: 8px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
}
.shopping-product {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  background: var(--warm-white); border-radius: 11px; margin-bottom: 5px;
  box-shadow: var(--shadow-xs);
  transition: all .2s var(--ease-out);
}
.shopping-product.checked { opacity: .4; }
.shopping-product.checked .shopping-product-name { text-decoration: line-through; }
.shopping-check { width: 18px; height: 18px; accent-color: var(--sage); cursor: pointer; }
.shopping-product-name { flex: 1; font-size: 13px; font-weight: 500; }
.shopping-delete {
  background: none; border: none; color: var(--text-light); font-size: 16px; cursor: pointer;
  padding: 4px; border-radius: 6px; transition: all .15s;
}
.shopping-delete:active { color: var(--red-badge); transform: scale(.88); }

.add-product-form { display: flex; gap: 7px; margin-top: 12px; }
.add-product-input {
  flex: 1; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; outline: none; background: var(--warm-white);
  transition: border-color .2s, box-shadow .2s;
}
.add-product-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.1); }
.add-product-btn {
  padding: 12px 18px; background: var(--green-dark); color: #fff;
  border: none; border-radius: 12px; font-size: 18px; font-weight: 800; cursor: pointer;
  transition: transform .15s var(--spring);
}
.add-product-btn:active { transform: scale(.9); }

.supermarket-mode-btn, .panier-btn {
  padding: 13px; background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 13px; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-xs); transition: all .2s var(--spring);
}
.supermarket-mode-btn:active, .panier-btn:active { transform: scale(.96); }

/* Supermarket modal */
.supermarket-modal { max-height: 90vh; }
.supermarket-locations { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.location-tag {
  padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 700; background: var(--warm-white); cursor: pointer;
  transition: all .2s var(--spring);
}
.location-tag:active { transform: scale(.94); }
.location-tag.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.supermarket-list { max-height: 50vh; overflow-y: auto; }
.supermarket-finish-btn {
  width: 100%; padding: 15px; margin-top: 14px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
  color: #fff; border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 12px rgba(77,112,69,.3);
  transition: transform .2s var(--spring);
}
.supermarket-finish-btn:active { transform: scale(.97); }

/* Panier permanent */
.suggested-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.suggested-item {
  padding: 6px 13px; background: var(--cream); border: 1px solid var(--border);
  border-radius: 100px; font-size: 12px; cursor: pointer;
  transition: all .15s var(--spring);
}
.suggested-item:active { transform: scale(.94); background: var(--border); }
.panier-items { margin-bottom: 12px; }
.panier-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.panier-item.inactive { opacity: .45; }
.panier-toggle { width: 18px; height: 18px; accent-color: var(--sage); }
.panier-item-name { flex: 1; font-size: 13px; font-weight: 600; }
.panier-remove { background: none; border: none; color: var(--text-light); cursor: pointer; transition: color .15s; }
.panier-remove:hover { color: var(--red-badge); }

/* ===================== PREFERENCES ===================== */
.admin-section { margin-bottom: 22px; }
.admin-section-title { font-size: 13px; font-weight: 800; margin-bottom: 14px; color: var(--green-dark); text-transform: uppercase; letter-spacing: .5px; }
.prefs-field { margin-bottom: 14px; }
.prefs-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: .5px; }
.prefs-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; outline: none; background: var(--warm-white);
  transition: border-color .2s, box-shadow .2s;
}
.prefs-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.1); }
.prefs-add-btn {
  padding: 11px 16px; background: var(--gold); color: #fff;
  border: none; border-radius: 11px; font-size: 18px; font-weight: 800; cursor: pointer;
  transition: transform .15s var(--spring);
}
.prefs-add-btn:active { transform: scale(.9); }
.prefs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prefs-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; background: rgba(184,48,48,.08); color: var(--red-badge);
  border-radius: 100px; font-size: 12px; font-weight: 600;
}
.prefs-chip button { background: none; border: none; color: var(--red-badge); cursor: pointer; font-size: 12px; }
.prefs-range-label { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 5px; }
.prefs-save-btn {
  width: 100%; padding: 14px; background: var(--green-dark); color: #fff;
  border: none; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.prefs-save-btn:active { transform: scale(.97); box-shadow: var(--shadow-xs); }

/* ===================== WIZARD ===================== */
.wizard-modal { max-height: 90vh; display: flex; flex-direction: column; }
.wizard-header { text-align: center; margin-bottom: 14px; padding-top: 4px; }
.wizard-close {
  position: absolute; top: 16px; right: 16px; background: var(--cream);
  border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--text-muted);
  transition: transform .15s var(--spring);
}
.wizard-close:active { transform: scale(.85); }
.wizard-title { font-size: 18px; font-weight: 900; letter-spacing: -.4px; }
.wizard-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.wizard-progress { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.wizard-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--text-muted);
}
.wizard-dot.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.wizard-dot.done { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.wizard-body { flex: 1; overflow-y: auto; padding: 6px 0; }
.wizard-field { margin-bottom: 16px; }
.wizard-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: .6px; }
.wizard-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; outline: none; font-family: inherit; background: var(--warm-white);
  transition: border-color .2s, box-shadow .2s;
}
.wizard-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.1); }
.wizard-toggle {
  padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 12px; font-weight: 700; background: var(--warm-white); cursor: pointer;
  transition: all .2s var(--spring);
}
.wizard-toggle:active { transform: scale(.95); }
.wizard-toggle.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.wizard-day-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wizard-day-name { font-size: 13px; font-weight: 700; }
.wizard-meal-toggles { display: flex; gap: 6px; }
.wizard-meal-btn {
  padding: 7px 15px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 11px; font-weight: 700; background: var(--warm-white); cursor: pointer;
  transition: all .2s var(--spring);
}
.wizard-meal-btn:active { transform: scale(.9); }
.wizard-meal-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 2px 8px rgba(200,137,28,.2); }
.wizard-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.wizard-checkbox {
  display: flex; align-items: center; gap: 7px; padding: 9px 10px;
  background: var(--warm-white); border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 12px; cursor: pointer; user-select: none; touch-action: manipulation;
  transition: all .15s var(--spring);
}
.wizard-checkbox:active { transform: scale(.96); }
.wizard-checkbox .wiz-check-icon {
  width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s var(--spring);
}
.wizard-checkbox.checked { background: rgba(200,137,28,.06); border-color: var(--gold); }
.wizard-checkbox.checked .wiz-check-icon { background: var(--gold); border-color: var(--gold); }
.wizard-checkbox.checked .wiz-check-icon::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }
.wiz-add-btn {
  padding: 10px 18px; background: var(--gold); color: #fff;
  border: none; border-radius: 11px; font-size: 20px; font-weight: 800;
  cursor: pointer; touch-action: manipulation; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--spring);
}
.wiz-add-btn:active { transform: scale(.9); }
.wizard-footer { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.wizard-btn { flex: 1; padding: 15px; border: none; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .15s var(--spring); }
.wizard-btn:active { transform: scale(.97); }
.wizard-btn-prev { background: var(--cream); color: var(--text); }
.wizard-btn-next { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: #fff; box-shadow: 0 4px 12px rgba(200,137,28,.3); }

/* Cuisine grid */
.cuisine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cuisine-option {
  padding: 13px 8px; background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 14px; text-align: center; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .2s var(--spring); touch-action: manipulation; user-select: none;
  box-shadow: var(--shadow-xs);
}
.cuisine-option:active { transform: scale(.94); }
.cuisine-option.selected { background: var(--green-dark); border-color: var(--green-dark); color: #fff; box-shadow: var(--shadow-sm); }

.challenge-box { background: var(--cream); border-radius: 12px; padding: 13px; font-size: 13px; color: var(--text); font-style: italic; }
.recap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recap-card { background: var(--cream); border-radius: 13px; padding: 16px; text-align: center; }
.recap-value { font-size: 17px; font-weight: 900; color: var(--gold); }
.recap-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Dessert toggle */
.dessert-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; background: var(--cream); border-radius: 13px; margin-top: 12px;
}
.dessert-toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }
.dessert-toggle-sub { font-size: 11px; color: var(--text-muted); }

/* ===================== TIMER ===================== */
.timer-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: radial-gradient(ellipse at 30% 70%, rgba(200,93,54,.15) 0%, transparent 60%),
              linear-gradient(170deg, #1D2419 0%, #131A10 100%);
  display: flex; align-items: center; justify-content: center;
}
.timer-content { text-align: center; width: 100%; max-width: 340px; padding: 24px; }
.timer-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer;
  transition: transform .15s var(--spring);
}
.timer-close:active { transform: scale(.88); }
.timer-name { color: var(--gold-light); font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: .5px; }
.timer-display { color: #fff; font-size: 78px; font-weight: 900; letter-spacing: 4px; margin-bottom: 36px; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.timer-btn {
  padding: 14px 24px; background: var(--gold); color: #fff;
  border: none; border-radius: 15px; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 4px 12px rgba(200,137,28,.35);
}
.timer-btn:active { transform: scale(.94); box-shadow: none; }
.timer-btn-secondary { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.timer-ios-btn {
  background: none; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.4); padding: 9px 18px; border-radius: 9px;
  font-size: 12px; cursor: pointer; transition: all .15s;
}
.timer-ios-btn:active { opacity: .7; }

/* ===================== COOKING MODE ===================== */
.cooking-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: linear-gradient(170deg, #1D2419 0%, #0F150C 100%);
  display: flex; flex-direction: column;
}
.cooking-header { padding: 16px; text-align: center; }
.cooking-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.08); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 14px; cursor: pointer;
  transition: transform .15s var(--spring);
}
.cooking-close:active { transform: scale(.88); }
.cooking-recipe-name { color: var(--gold-light); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.cooking-step-count { color: rgba(255,255,255,.4); font-size: 12px; margin-top: 5px; }
.cooking-progress { height: 3px; background: rgba(255,255,255,.08); }
.cooking-progress-bar { height: 100%; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .4s var(--ease-out); }
.cooking-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px; }
.cooking-step-num { color: var(--gold-light); font-size: 13px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.cooking-step-text { color: #fff; font-size: 24px; font-weight: 700; text-align: center; line-height: 1.4; letter-spacing: -.3px; }
.cooking-step-timer-wrap { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.cooking-step-timer-wrap span { color: rgba(255,255,255,.5); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cooking-timer-btn {
  padding: 9px 18px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s var(--spring);
}
.cooking-timer-btn:active { transform: scale(.92); background: rgba(255,255,255,.15); }
.cooking-footer { display: flex; gap: 8px; padding: 16px; }
.cooking-nav-btn {
  flex: 1; padding: 15px; background: rgba(255,255,255,.08);
  border: none; border-radius: 14px; color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .2s var(--spring);
}
.cooking-nav-btn:active { transform: scale(.96); background: rgba(255,255,255,.14); }
.cooking-nav-next { background: var(--gold); color: #fff; box-shadow: 0 4px 12px rgba(200,137,28,.3); }

/* ===================== HELP & CHANGELOG ===================== */
.help-section {
  background: var(--warm-white); border-radius: 16px;
  padding: 16px; margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  border-left: 3px solid transparent;
  transition: border-color .2s;
}
.help-section:hover { border-left-color: var(--gold); }
.help-section.featured { border-left-color: var(--coral); background: linear-gradient(to right, rgba(200,93,54,.03), var(--warm-white)); }
.help-title { font-size: 14px; font-weight: 800; margin-bottom: 7px; letter-spacing: -.1px; }
.help-text { font-size: 12px; color: var(--text-muted); line-height: 1.65; }
.help-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-left: 6px; vertical-align: middle;
  background: rgba(200,93,54,.1); color: var(--coral);
}

.changelog-version {
  background: var(--warm-white); border-radius: 16px;
  padding: 16px; margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}
.changelog-version-title { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.changelog-version-date { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.changelog-features { display: flex; flex-direction: column; gap: 5px; }
.changelog-feature { font-size: 12px; color: var(--text-muted); padding-left: 14px; position: relative; line-height: 1.5; }
.changelog-feature::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-weight: 800; font-size: 16px; line-height: 1; top: -1px; }

/* Account modal */
.account-user { text-align: center; font-size: 18px; font-weight: 900; padding: 16px 0; margin-bottom: 12px; letter-spacing: -.3px; }

/* ===================== SEARCH BOX ===================== */
.recipe-search-box {
  background: var(--warm-white);
  border-radius: 18px; padding: 16px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.recipe-search-input-wrap { display: flex; gap: 8px; align-items: center; }
.recipe-search-field {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 13px; font-size: 14px; background: var(--cream); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.recipe-search-field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.1); background: var(--warm-white); }
.recipe-search-field::placeholder { color: var(--text-light); }
.recipe-search-btn {
  padding: 12px 20px; background: var(--coral); color: #fff;
  border: none; border-radius: 13px; font-weight: 800; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--spring), box-shadow .2s;
  box-shadow: 0 3px 10px rgba(200,93,54,.3);
}
.recipe-search-btn:active { transform: scale(.94); box-shadow: none; }
.recipe-search-results { margin-top: 12px; }

.search-result-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--cream); border-radius: 13px; margin-bottom: 8px; cursor: pointer;
  transition: all .2s var(--spring);
}
.search-result-card:active { transform: scale(.98); background: var(--border); }
.search-result-icon { font-size: 28px; width: 44px; text-align: center; }
.search-result-info { flex: 1; }
.search-result-name { font-weight: 700; font-size: 14px; color: var(--text); }
.search-result-brief { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.search-result-meta { font-size: 11px; color: var(--gold); margin-top: 4px; font-weight: 600; }
.search-result-action {
  padding: 8px 14px; background: var(--green-dark); color: #fff;
  border: none; border-radius: 10px; font-weight: 700; font-size: 12px; cursor: pointer;
  transition: transform .15s var(--spring);
}
.search-result-action:active { transform: scale(.9); }
.search-loading { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }

/* ===================== CLAUDE WIZARD STEP ===================== */
.claude-idea-card {
  background: var(--warm-white); border: 2px solid var(--border);
  border-radius: 14px; padding: 13px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all .2s var(--spring); user-select: none;
  box-shadow: var(--shadow-xs);
}
.claude-idea-card:active { transform: scale(.98); }
.claude-idea-card.selected { border-color: var(--sage); background: rgba(77,112,69,.05); }
.claude-idea-card.rejected { opacity: .35; border-color: var(--border); }
.claude-idea-icon { font-size: 28px; flex-shrink: 0; }
.claude-idea-info { flex: 1; min-width: 0; }
.claude-idea-name { font-weight: 800; font-size: 14px; color: var(--green-dark); letter-spacing: -.1px; }
.claude-idea-brief { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.claude-idea-time { font-size: 11px; color: var(--coral); font-weight: 600; margin-top: 3px; }
.claude-idea-action {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; transition: all .2s var(--spring);
}
.claude-idea-card.selected .claude-idea-action { background: var(--sage); border-color: var(--sage); color: #fff; }
.claude-idea-card.rejected .claude-idea-action { background: var(--cream); border-color: var(--border); color: var(--text-light); }

/* Loading animation */
.claude-loading-msg {
  font-size: 14px; color: var(--text-muted); font-style: italic;
  text-align: center; padding: 8px 0;
  animation: fadeInMsg .5s var(--ease-out);
}
@keyframes fadeInMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes claudeSpin { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } }
.claude-spin { display: inline-block; animation: claudeSpin 1s ease-in-out infinite; }

/* ===================== SMART BAR ===================== */
.smart-bar { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; }
.smart-bar::-webkit-scrollbar { display: none; }
.smart-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 14px; background: var(--warm-white); border-radius: 14px;
  border: 1px solid rgba(0,0,0,.05); cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--text-primary); min-width: 68px;
  transition: all .2s var(--spring);
  box-shadow: var(--shadow-xs);
}
.smart-btn:active { transform: scale(.92); background: var(--green-dark); color: #fff; box-shadow: var(--shadow-sm); }

/* ===================== STOCK ADD FORM ===================== */
.stock-add-form { display: flex; gap: 7px; margin: 10px 0; }
.stock-add-input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 13px; outline: none; background: var(--warm-white);
  transition: border-color .2s, box-shadow .2s;
}
.stock-add-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,28,.1); }
.stock-add-btn {
  padding: 11px 16px; background: var(--green-dark); color: #fff;
  border: none; border-radius: 12px; font-size: 18px; font-weight: 800; cursor: pointer;
  transition: transform .15s var(--spring);
}
.stock-add-btn:active { transform: scale(.9); }

/* ===================== DESKTOP TOGGLE ===================== */
.desktop-toggle {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 100px; cursor: pointer;
  transition: all .2s;
}
.desktop-toggle:active { background: rgba(255,255,255,.15); }
.desktop-toggle.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ===================== RECIPE PICKER ===================== */
.recipe-picker-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--warm-white); border-radius: 13px; cursor: pointer;
  transition: all .15s var(--spring); box-shadow: var(--shadow-xs);
  margin-bottom: 6px;
}
.recipe-picker-item:active { transform: scale(.98); background: var(--cream); }
.recipe-picker-icon { font-size: 28px; flex-shrink: 0; }
.recipe-picker-info { flex: 1; min-width: 0; }
.recipe-picker-name { font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: -.1px; }
.recipe-picker-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===================== FAMILY MEMBERS ===================== */
.family-member-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: var(--cream); border-radius: 11px; margin-bottom: 6px;
}
.family-member-icon { font-size: 20px; width: 28px; text-align: center; }
.family-member-info { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.family-member-age { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.family-member-remove {
  background: none; border: none; color: var(--text-light);
  font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: all .15s;
}
.family-member-remove:hover { color: var(--red-badge); background: rgba(184,48,48,.08); }

/* ===================== ONBOARDING ===================== */
.ob-progress-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .3s; }
.ob-progress-dot.active { background: var(--coral); }
.ob-progress-dot.done { background: var(--sage); }
.ob-regime-option {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--warm-white); border: 2px solid var(--border); cursor: pointer;
  transition: all .2s var(--spring); font-size: 13px; color: var(--text);
  box-shadow: var(--shadow-xs);
}
.ob-regime-option:has(input:checked) { border-color: var(--coral); background: rgba(200,93,54,.06); }
.ob-regime-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--coral); }
.ob-nav-buttons { display: flex; gap: 8px; padding: 0 16px 16px; }
.ob-btn-back { flex: 0 0 auto; background: var(--cream); color: var(--text); border: 1px solid var(--border); padding: 12px 20px; }
.ob-btn-next { flex: 1; min-width: 0; }

/* ===================== ADMIN ===================== */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.admin-card {
  background: var(--warm-white); border-radius: 14px; padding: 18px; text-align: center;
  cursor: pointer; transition: all .2s var(--spring); box-shadow: var(--shadow-xs);
}
.admin-card:active { transform: scale(.96); box-shadow: none; }
.admin-card-title { font-size: 13px; font-weight: 700; margin-top: 8px; }
.admin-card-count { font-size: 22px; font-weight: 900; color: var(--coral); margin-top: 5px; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 768px) {
  body { max-width: 768px; }
  .nav-bottom { max-width: 768px; }
  .modal-content { max-width: 768px; }
  .recipes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .planning-days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wizard-checklist { grid-template-columns: repeat(3, 1fr); }
  .cuisine-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-box { padding: 18px 12px; }
  .greeting { font-size: 26px; }
}

@media (min-width: 1024px) {
  body { max-width: 1024px; }
  .nav-bottom { max-width: 1024px; }
  .modal-content { max-width: 1024px; }
  .recipes-grid { grid-template-columns: repeat(3, 1fr); }
  .planning-days { grid-template-columns: repeat(3, 1fr); }
  .screens-container { padding: 20px 20px 90px; }
}

/* Desktop mode */
body.desktop-mode { max-width: 1400px; }
body.desktop-mode .nav-bottom { max-width: 1400px; flex-direction: row; justify-content: center; gap: 4px; padding: 6px 24px; }
body.desktop-mode .nav-item { flex-direction: row; gap: 6px; padding: 8px 18px; border-radius: 100px; }
body.desktop-mode .nav-item.active::after { display: none; }
body.desktop-mode .nav-item.active { background: rgba(200,93,54,.1); }
body.desktop-mode .nav-item.active .nav-icon { transform: none; }
body.desktop-mode .nav-label { font-size: 13px; }
body.desktop-mode .screens-container { padding: 20px 28px 90px; }
body.desktop-mode .app-header { padding: 14px 28px 10px; }
body.desktop-mode .recipes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
body.desktop-mode .planning-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
body.desktop-mode .stats-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
body.desktop-mode .achievements { grid-template-columns: repeat(6, 1fr); }
body.desktop-mode .wizard-checklist { grid-template-columns: repeat(4, 1fr); }
body.desktop-mode .shopping-sections { column-count: 2; column-gap: 16px; }
body.desktop-mode .shopping-section { break-inside: avoid; }
body.desktop-mode .modal-content { max-width: 700px; }
body.desktop-mode .login-card { max-width: 420px; }

/* ===================== MISC UTILITIES ===================== */
input[type="range"] { accent-color: var(--gold); }
input[type="checkbox"] { accent-color: var(--sage); }
::selection { background: rgba(200,137,28,.2); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
