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

:root {
  --green:        #1D9E75;
  --green-dark:   #0F6E56;
  --green-light:  #E8F8F2;
  --orange:       #F5863F;
  --orange-light: #FFF3EA;
  --bg:           #FAF8F4;
  --surface:      #FFFFFF;
  --text-1:       #1A1A1A;
  --text-2:       #5C5C5C;
  --text-3:       #AAAAAA;
  --border:       #ECE8E0;
  --r-lg:         20px;
  --r-md:         14px;
  --r-sm:         10px;
  --r-pill:       100px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 10px 32px rgba(0,0,0,0.13);
}

/* ── Reset & Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ── Logo SVG ── */
.logo-svg rect, .logo-svg circle, .logo-svg path { }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  color: var(--text-1);
}
.nav-logo .accent { color: var(--green); }
.nav-center {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-item {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all 0.15s;
}
.nav-item:hover { background: var(--bg); color: var(--text-1); }
.nav-item.active { color: var(--text-1); font-weight: 600; }
.nav-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.btn-store {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: white;
  font-size: 13px; font-weight: 600;
  border: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-store:hover { background: var(--green-dark); }
.lang-btn {
  font-size: 12px; padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-3);
  transition: all 0.15s;
}
.lang-btn.active { background: var(--bg); color: var(--text-1); border-color: var(--text-3); }
.credits-pill {
  display: flex; align-items: center; gap: 4px;
  background: #FFF7E6; color: #8B5E00;
  font-size: 13px; font-weight: 600;
  padding: 5px 13px; border-radius: var(--r-pill);
  border: 1.5px solid #FFD98A;
}
.nav-icon-btn {
  position: relative; background: none; border: none;
  font-size: 19px; padding: 4px 6px;
  border-radius: var(--r-sm); transition: background 0.15s;
}
.nav-icon-btn:hover { background: var(--bg); }
.cart-badge {
  position: absolute; top: 1px; right: 1px;
  background: #E53935; color: white;
  font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── Main layout ── */
.main { max-width: 960px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Hero ── */
.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.8px; line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: 17px; color: var(--text-2); max-width: 440px; margin: 0 auto; }

/* ── Cuisine tabs ── */
.cuisine-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 32px; scrollbar-width: none;
}
.cuisine-tabs::-webkit-scrollbar { display: none; }
.cuisine-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: all 0.15s;
  color: var(--text-2);
}
.cuisine-tab.active { background: var(--text-1); color: white; border-color: var(--text-1); }
.cuisine-tab.coming { color: var(--text-3); cursor: default; }
.coming-badge {
  font-size: 10px; background: var(--bg);
  color: var(--text-3); padding: 2px 7px;
  border-radius: var(--r-pill); font-weight: 500;
}

/* ── Section ── */
.section { margin-bottom: 48px; }
.section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.section-label {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-count {
  font-size: 12px; color: var(--text-3);
  background: var(--bg); padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* ── Search row ── */
.search-row {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 160px;
  display: flex; align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 14px; transition: border-color 0.15s;
}
.search-wrap:focus-within { border-color: var(--green); }
.search-icon { font-size: 14px; margin-right: 8px; color: var(--text-3); }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: 14px; padding: 10px 0;
  background: transparent; color: var(--text-1);
}
.view-tabs { display: flex; gap: 4px; }
.view-tab {
  padding: 9px 16px; border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  color: var(--text-2); white-space: nowrap; transition: all 0.15s;
}
.view-tab.active { background: var(--green); color: white; border-color: var(--green); }

/* ── Category tabs ── */
.category-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.cat-tab {
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px; font-weight: 500;
  color: var(--text-2); transition: all 0.15s;
}
.cat-tab.active { background: var(--green); color: white; border-color: var(--green); box-shadow: 0 2px 8px rgba(29,158,117,0.25); }
.cat-tab:hover:not(.active) { border-color: #aaa; color: var(--text-1); }

/* ── Recipe grid (Cartoon B style) ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.recipe-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.recipe-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: #b2dfdb;
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  position: relative; overflow: hidden;
  height: 130px;
}
.card-img {
  width: 100%; height: 130px; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.recipe-card:hover .card-img { transform: scale(1.05); }
.card-icon {
  height: 130px;
  font-size: 64px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-icon::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  top: -24px; right: -20px;
}
.card-icon::after {
  content: '';
  position: absolute;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  bottom: -12px; left: 8px;
}
.card-emoji {
  font-size: 52px; position: relative; z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.10));
  transition: transform 0.2s;
}
.recipe-card:hover .card-emoji { transform: scale(1.12) rotate(4deg); }
.expand-btn {
  display: block; width: 100%; margin-top: 16px;
  padding: 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-2); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.expand-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.92);
  border: 2px solid var(--border);
  border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s; z-index: 2;
}
.fav-btn:hover { transform: scale(1.2); border-color: #ffaaaa; }
.card-body { padding: 12px 14px 14px; border-top: 2px solid rgba(0,0,0,0.04); }
.card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 6px; margin-bottom: 5px;
}
.card-title { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text-1); }
.free-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px; flex-shrink: 0;
  background: var(--green-light); color: #085041;
  border: 1.5px solid #a8e6cf;
}
.card-meta {
  font-size: 11px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.diff-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.diff-easy { background: var(--green); }
.diff-medium { background: var(--orange); }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 48px 0;
  color: var(--text-3); font-size: 14px; line-height: 2.2;
}
.empty-state p:first-child { font-size: 32px; margin-bottom: 8px; }

/* ── Pro / AI section ── */
.pro-section {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px; padding: 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.pro-header {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 20px;
}
.pro-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #EEEDFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pro-title { font-size: 16px; font-weight: 700; }
.pro-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.pro-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: #EEEDFE; color: #26215C;
  margin-left: auto; flex-shrink: 0;
}
.ing-label { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Ingredient groups ── */
.ing-sections { margin-bottom: 14px; }
.ing-group { margin-bottom: 12px; }
.ing-group-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-3); letter-spacing: 0.06em;
  text-transform: uppercase; display: block; margin-bottom: 7px;
}
.tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all 0.15s; user-select: none;
  color: var(--text-1);
}
.tag:hover { border-color: var(--green); }
.tag.on { background: var(--green-light); border-color: var(--green); color: #085041; }

/* ── Custom ingredient ── */
.custom-ing-row { display: flex; gap: 8px; margin-top: 6px; margin-bottom: 10px; }
.custom-ing-input {
  flex: 1; border: 2px solid var(--border);
  border-radius: var(--r-md); padding: 9px 14px;
  font-size: 13px; outline: none; color: var(--text-1);
  background: var(--surface);
}
.custom-ing-input:focus { border-color: var(--green); }
.custom-ing-btn {
  padding: 9px 16px; border-radius: var(--r-md);
  border: 2px dashed var(--green);
  background: transparent; color: var(--green);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all 0.15s;
}
.custom-ing-btn:hover { background: var(--green-light); }
.custom-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin-bottom: 14px; }

/* ── Go button ── */
.go-btn {
  width: 100%; padding: 14px;
  border-radius: var(--r-md); border: none;
  background: var(--green); color: white;
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px; transition: background 0.15s;
  letter-spacing: -0.1px;
}
.go-btn:hover { background: var(--green-dark); }
.go-btn:disabled { background: #E0E0E0; color: #AAAAAA; cursor: not-allowed; }

/* ── Result box ── */
.result-box {
  background: var(--bg);
  border-radius: var(--r-md); padding: 18px;
  margin-bottom: 14px; font-size: 14px; line-height: 1.9;
  border: 1.5px solid var(--border);
}
.result-box h3 { font-size: 15px; font-weight: 700; margin: 20px 0 6px; color: var(--text-1); }
.result-box h3:first-child { margin-top: 0; }
.result-box li { margin: 5px 0; padding-left: 4px; }
.result-box hr { border: none; border-top: 1.5px solid var(--border); margin: 18px 0; }

/* ── Lock row ── */
.lock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg);
  border-radius: var(--r-md); border: 1.5px solid var(--border);
}
.lock-title { font-size: 13px; font-weight: 600; }
.lock-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.buy-btn {
  margin-left: auto; font-size: 12px; font-weight: 600;
  padding: 7px 16px; border-radius: var(--r-pill);
  border: 1.5px solid #534AB7; color: #534AB7;
  background: transparent; white-space: nowrap;
  transition: background 0.15s;
}
.buy-btn:hover { background: #f0efff; }

/* ── Modal ── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
  backdrop-filter: blur(2px);
}
.modal-box {
  background: var(--surface); border-radius: 24px;
  padding: 28px; max-width: 520px; width: 100%;
  position: relative; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-box.small { max-width: 360px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--bg); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.modal-box h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; padding-right: 28px; letter-spacing: -0.3px; }
.modal-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-meta span {
  background: var(--bg); padding: 5px 12px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 500;
}
.modal-fav-btn {
  margin-left: auto; background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 5px 14px;
  font-size: 12px; font-weight: 600; transition: all 0.15s;
}
.modal-fav-btn.active { background: #fff0f0; border-color: #ffaaaa; }
.modal-ingredients {
  background: var(--bg); border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 18px;
  font-size: 13px; line-height: 1.9;
  border: 1.5px solid var(--border);
}
.modal-ingredients strong {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  display: block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.modal-steps { font-size: 14px; line-height: 1.95; color: var(--text-2); }
.modal-steps h3 { font-size: 14px; font-weight: 700; margin: 18px 0 6px; color: var(--text-1); }
.modal-steps h3:first-child { margin-top: 0; }
.modal-steps ol, .modal-steps ul { padding-left: 20px; }
.modal-steps li { margin: 7px 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cart-btn {
  flex: 1; padding: 11px 16px;
  background: var(--bg); color: var(--text-1);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; transition: all 0.15s;
}
.cart-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); background: var(--green-light); }
.cart-btn:disabled { color: var(--green); border-color: var(--green-light); }
.video-btn {
  flex: 1; padding: 11px 16px;
  background: #FF4444; color: white;
  border: none; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; transition: background 0.15s;
}
.video-btn:hover { background: #CC2222; }

/* ── Shopping list ── */
.shopping-list { list-style: none; margin-bottom: 18px; }
.sl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1.5px solid var(--bg);
}
.sl-item label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; flex: 1; }
.sl-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); }
.sl-item.checked label span { text-decoration: line-through; color: var(--text-3); }
.sl-remove {
  background: none; border: none;
  color: var(--text-3); font-size: 14px;
  padding: 3px 7px; border-radius: var(--r-sm);
}
.sl-remove:hover { color: #E53935; background: #fff0f0; }
.sl-clear {
  width: 100%; padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
  color: #E53935; font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.sl-clear:hover { background: #fff0f0; }

/* ── Footer ── */
.footer {
  background: var(--text-1); color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: white;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 220px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col span {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; cursor: pointer; transition: color 0.15s;
}
.footer-col a:hover, .footer-col span:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 12px;
}

/* ── Shared page hero ── */
.page-hero { text-align: center; padding: 64px 24px 48px; }
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--green); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 38px; font-weight: 800;
  letter-spacing: -0.8px; line-height: 1.2;
  margin-bottom: 14px; color: var(--text-1);
}
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero p { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto; }

/* ── Utility ── */
.loading { color: var(--text-3); font-style: italic; }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 8px; font-weight: 600; }

/* ── Auth nav ── */
.nav-login-btn {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--text-1); color: white;
  font-size: 13px; font-weight: 600;
  border: none; white-space: nowrap;
  transition: background 0.15s;
}
.nav-login-btn:hover { background: #333; }
.nav-user-wrap {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer; transition: border-color 0.15s;
}
.nav-user-wrap:hover { border-color: #aaa; }
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
}
.nav-user-initials {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 120px; z-index: 300; overflow: hidden;
}
.user-menu button {
  display: block; width: 100%;
  padding: 12px 16px; background: none;
  border: none; text-align: left;
  font-size: 14px; color: var(--text-1);
  transition: background 0.12s;
}
.user-menu button:hover { background: var(--bg); }

/* ── Login modal ── */
.login-box { padding: 32px 28px; }
.login-logo {
  display: flex; justify-content: center;
  margin-bottom: 18px;
}
.login-btn {
  width: 100%; padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: background 0.15s, border-color 0.15s;
  margin-bottom: 10px; cursor: pointer;
}
.google-btn {
  background: white; color: #3c4043;
  border: 1.5px solid #dadce0;
}
.google-btn:hover { background: #f8f9fa; border-color: #bbb; }
.wechat-btn {
  background: #f0faf4; color: #1a7a52;
  border: 1.5px solid #a8e6cf;
}
.wechat-btn:hover { background: var(--green-light); }
.wechat-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── AI Result Cards ── */
.ai-dish-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.ai-dish-title-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
}
.ai-dish-thumb {
  width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; flex-shrink: 0;
}
.ai-dish-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--text-1); margin: 0;
}
.ai-dish-body {
  padding: 16px 20px;
  font-size: 14px; line-height: 1.65; color: var(--text-1);
}
.ai-dish-body br { display: none; }
.ai-dish-body strong { color: var(--text-1); font-weight: 700; }
.ai-dish-body ul { padding-left: 0; margin: 4px 0 8px; list-style: none; }
.ai-dish-body li { padding: 2px 0 2px 14px; position: relative; }
.ai-dish-body li::before { content: '·'; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.ai-dish-body .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 700;
  margin-right: 6px; flex-shrink: 0; vertical-align: middle;
}
.ai-dish-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px 14px;
  border-top: 1.5px solid var(--border);
  background: var(--bg);
}
.ai-video-label { font-size: 13px; color: var(--text-2); }
.ai-video-btn {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  text-decoration: none; transition: opacity 0.15s;
}
.ai-video-btn:hover { opacity: 0.8; }
.ai-video-btn.bili { background: #fb7299; color: white; }
.ai-video-btn.yt { background: #ff0000; color: white; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav-center { display: none; }
  .nav-logo span { font-size: 15px; }
  .nav-logo svg { width: 28px; height: 28px; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .main { padding: 0 16px 60px; }
  .cuisine-tabs { gap: 8px; }
  .cuisine-tab { padding: 8px 14px; font-size: 13px; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-icon { height: 100px; font-size: 48px; }
  .section-tabs { gap: 6px; }
  .tab-btn { padding: 6px 12px; font-size: 13px; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 6px 12px; font-size: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col { display: none; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 32px 0 20px; }
  .ing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ing-tag { font-size: 12px; padding: 8px 10px; }
  .result-box { padding: 20px 16px; }
  .btn-store { display: none; }
  .lang-btn { padding: 4px 8px; font-size: 12px; }
  .nav-login-btn { padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .modal-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-right .credits-pill { display: none; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; }
  .hero h1 { font-size: 22px; }
  .section-label { font-size: 13px; }
  .modal-box { padding: 24px 18px; }
  .modal-box.small { padding: 28px 20px; }
}
