*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-dark: #2d6a4f; --green-mid: #40916c; --green-light: #d8f3dc; --green-bright: #52b788;
  --orange: #d97706; --orange-light: #fef3c7;
  --cream: #fffdf7; --sand: #e8e0d0; --text: #2d3a2e; --muted: #9ca38f;
  --blue: #1565C0; --blue-light: #E3F2FD; --red: #D32F2F;
  --dark: #1a2e1f;
}
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; }

/* ══ Landing Nav (shared across landing pages) ══ */
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,46,31,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(82,183,136,0.15); }
.landing-nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 16px; }
.landing-nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.landing-nav-tagline { font-size: 11px; color: #b0bfb3; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.landing-nav-links { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.landing-nav-links a { color: #c8d6cb; text-decoration: none; font-size: 15px; font-weight: 600; transition: color 0.2s; }
.landing-nav-links a:hover { color: white; }
.landing-nav-signin { padding: 9px 22px; border-radius: 20px; font-size: 14px; font-weight: 700; text-decoration: none; border: 2px solid var(--green-mid); background: rgba(255,255,255,0.08); color: #e8f0ea; transition: all 0.2s; margin-left: 8px; }
.landing-nav-signin:hover { background: var(--green-mid); color: white; }
.landing-nav-saved { display: none; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--orange); background: rgba(255,255,255,0.08); color: #fef3c7; transition: all 0.2s; }
.landing-nav-saved:hover { background: var(--orange); color: white; }

/* ══ Landing Hero ══ */
.landing-hero { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; background: url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?w=1400&h=800&fit=crop') center/cover no-repeat; padding: 120px 24px 80px; }
.landing-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,46,31,0.85) 0%, rgba(26,46,31,0.7) 50%, rgba(26,46,31,0.9) 100%); }
.landing-hero-content { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.landing-badge { display: inline-block; padding: 8px 20px; border-radius: 24px; background: rgba(217,119,6,0.2); border: 1px solid rgba(217,119,6,0.4); color: var(--orange-light); font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.landing-headline { font-family: 'Outfit', sans-serif; font-size: 56px; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 20px; }
.landing-headline .highlight { color: var(--orange); }
.landing-subtitle { font-size: 18px; color: #b8c9bb; line-height: 1.6; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.landing-search { display: flex; align-items: center; background: white; border-radius: 60px; padding: 6px 6px 6px 24px; max-width: 480px; margin: 0 auto 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.landing-search input { flex: 1; border: none; outline: none; font-size: 18px; font-family: 'DM Sans', sans-serif; background: transparent; color: var(--text); min-width: 0; }
.landing-search input::placeholder { color: #b0a890; }
.landing-search button { padding: 14px 28px; border: none; border-radius: 50px; background: var(--orange); color: white; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.landing-search button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.landing-search button:disabled { background: #C5C5C5; cursor: not-allowed; transform: none; }
.landing-distance { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 16px; }
.landing-distance label { font-size: 13px; color: #8a9b8d; font-weight: 600; }
.landing-distance select { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 13px; font-family: 'DM Sans', sans-serif; background: rgba(255,255,255,0.1); color: #c8d6cb; cursor: pointer; }
.landing-hint { font-size: 13px; color: #7a8b7d; }

/* ══ Trust Bar ══ */
.trust-bar { background: var(--dark); border-top: 1px solid rgba(82,183,136,0.15); border-bottom: 1px solid rgba(82,183,136,0.15); padding: 20px 24px; }
.trust-bar-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat .num { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--green-bright); }
.trust-stat .lbl { font-size: 12px; color: #8a9b8d; font-weight: 600; margin-top: 2px; }

/* ══ How It Works ══ */
.how-section { padding: 72px 24px; background: var(--cream); }
.how-section-inner { max-width: 960px; margin: 0 auto; }
.how-title { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: var(--green-dark); text-align: center; margin-bottom: 48px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-card { text-align: center; }
.how-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: white; font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.how-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.how-card h3 { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ══ Features Grid ══ */
.features-section { padding: 72px 24px; background: var(--green-dark); }
.features-inner { max-width: 960px; margin: 0 auto; }
.features-title { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: white; text-align: center; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 24px 16px; text-align: center; transition: all 0.2s; }
.feature-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.feature-card .fc-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card .fc-title { font-size: 14px; font-weight: 700; color: white; }

/* ══ Stores Section ══ */
.stores-section { padding: 60px 24px; background: var(--cream); text-align: center; }
.stores-title { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800; color: var(--green-dark); margin-bottom: 28px; }
.stores-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 800px; margin: 0 auto 20px; }
.stores-logos span { padding: 10px 20px; background: white; border: 2px solid var(--sand); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.stores-more { font-size: 14px; color: var(--muted); font-style: italic; }

/* ══ Bottom CTA ══ */
.bottom-cta { padding: 72px 24px; background: linear-gradient(180deg, var(--cream), var(--green-light)); text-align: center; }
.bottom-cta h2 { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.bottom-cta .cta-btn { display: inline-block; padding: 16px 40px; border-radius: 50px; background: var(--orange); color: white; font-size: 18px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.bottom-cta .cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ══ Footer ══ */
.landing-footer { background: var(--dark); padding: 32px 24px; text-align: center; }
.landing-footer p { font-size: 14px; color: #7a8b7d; line-height: 1.8; }
.landing-footer a { color: #9ca38f; text-decoration: none; transition: color 0.2s; }
.landing-footer a:hover { color: white; }

/* ══ App Header (screens 2-6) ══ */
header { background: var(--dark); border-bottom: none; padding: 14px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 100; display: none; }
.logo-mark { display: none; }
.logo-text h1 { font-family: 'Trebuchet MS', sans-serif; font-size: 19px; color: #e8f0ea; }
.logo-text p  { font-size: 10px; color: #9ca38f; letter-spacing: 1.5px; text-transform: uppercase; font-style: normal; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progress-bar { display: flex; gap: 5px; align-items: center; }
.pip { height: 8px; border-radius: 4px; background: #3a5a40; transition: all 0.35s ease; }
.profile-btn { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; text-decoration: none; border: 2px solid var(--green-mid); background: rgba(255,255,255,0.1); color: #e8f0ea; }
.profile-btn:hover { background: var(--green-mid); color: white; }
.profile-btn.logged-in { background: var(--green-mid); color: white; border-color: var(--green-mid); }
.profile-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--green-mid); display: flex; align-items: center; justify-content: center; font-size: 11px; color: white; font-weight: 700; }
.saved-recipes-btn { display: none; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; text-decoration: none; border: 2px solid var(--orange); background: rgba(255,255,255,0.1); color: #fef3c7; }
.saved-recipes-btn:hover { background: var(--orange); color: white; }

/* ── App Layout ── */
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 100px; }
.screen { display: none; }
.screen.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.back { font-size: 13px; color: #999; cursor: pointer; margin-bottom: 14px; display: inline-block; }
.back:hover { color: var(--green-dark); }
.screen-title { font-family: 'Trebuchet MS', sans-serif; font-size: 26px; color: var(--green-dark); margin-bottom: 4px; }
.screen-sub   { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.btn { width: 100%; padding: 15px; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.15s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { background: #C5C5C5 !important; cursor: not-allowed; transform: none !important; }
.btn-primary  { background: var(--orange); color: white; }
.btn-gradient { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); color: white; }
.btn-outline  { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-blue     { background: var(--blue); color: white; }
.btn-green    { background: var(--green-dark); color: white; }

.card { background: white; border: 2px solid var(--sand); border-radius: 18px; padding: 20px; margin-bottom: 12px; transition: all 0.2s; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--green-mid); transform: translateY(-1px); }
.card.selected  { border-color: var(--green-mid); background: var(--green-light); }

/* ── Screen 2 ── */
.store-row { display: flex; align-items: center; gap: 14px; }
.store-name { font-weight: 700; font-size: 17px; }
.store-addr { font-size: 13px; color: #888; margin-top: 2px; }
.store-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #E0D8C8; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; flex-shrink: 0; transition: background 0.2s; }
.card.selected .store-check { background: var(--green-mid); }

/* ── Screen 3: Meal + Filters ── */
.section-title { font-family: 'Trebuchet MS', sans-serif; font-size: 18px; color: var(--green-dark); margin-bottom: 12px; margin-top: 24px; }
.meal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 8px; }
.meal-card { background: white; border: 2px solid var(--sand); border-radius: 14px; padding: 16px 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.meal-card:hover { border-color: var(--green-mid); }
.meal-card.selected { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.meal-icon  { font-size: 28px; margin-bottom: 6px; }
.meal-label { font-size: 14px; font-weight: 700; }

.filter-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip { padding: 7px 14px; border-radius: 20px; border: 2px solid var(--sand); background: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--green-mid); }
.filter-chip.selected { background: var(--green-mid); border-color: var(--green-mid); color: white; }

/* ── Deals Picker ── */
.deals-picker { background: white; border: 2px solid var(--sand); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.deals-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; user-select: none; }
.deals-picker-header:hover { background: var(--green-light); }
.deals-picker-toggle { font-size: 12px; color: var(--green-dark); font-weight: 700; }
.deals-picker-body { max-height: 350px; overflow-y: auto; border-top: 1px solid var(--sand); }
.deals-picker-body.collapsed { display: none; }
.deals-store-group { border-bottom: 1px solid #F0EDE6; }
.deals-store-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #FAFAF5; font-size: 13px; font-weight: 700; color: var(--green-dark); position: sticky; top: 0; z-index: 1; }
.deals-store-toggle { font-size: 11px; color: var(--blue); cursor: pointer; font-weight: 600; }
.deals-store-toggle:hover { text-decoration: underline; }
.deal-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; border-bottom: 1px solid #F5F2EB; }
.deal-item:last-child { border-bottom: none; }
.deal-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-mid); flex-shrink: 0; cursor: pointer; }
.deal-item-name { flex: 1; }
.deal-item-price { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.deal-item-was { font-size: 11px; color: #AAA; text-decoration: line-through; margin-left: 4px; }
.deal-item-pct { font-size: 11px; font-weight: 700; color: var(--orange); margin-left: 6px; }

/* ── Screen 4: Recipe Grid ── */
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 14px; color: var(--muted); font-style: italic; }
.sort-row { display: flex; gap: 8px; }
.sort-btn { padding: 6px 12px; border: 2px solid var(--sand); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; background: white; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.sort-btn.active { background: var(--green-dark); color: white; border-color: var(--green-dark); }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.recipe-card-tile { background: white; border: 2px solid var(--sand); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.recipe-card-tile:hover { border-color: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.recipe-card-img { width: 100%; height: 140px; object-fit: cover; background: #F5F0E8; display: block; }
.recipe-card-img-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, var(--green-light), var(--cream)); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.recipe-card-body { padding: 12px; }
.recipe-card-title { font-family: 'Trebuchet MS', sans-serif; font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; line-height: 1.3; }
.recipe-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip { font-size: 11px; padding: 3px 7px; border-radius: 6px; font-weight: 600; }
.meta-time     { background: #F5F0E8; color: #5A4A30; }
.meta-savings  { background: var(--orange-light); color: var(--orange); }
.meta-cost     { background: var(--green-light); color: var(--green-dark); }
.meta-coupon   { background: var(--blue-light); color: var(--blue); }

/* ── Recipe Modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal { background: white; border-radius: 24px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.modal-img { width: 100%; height: 220px; object-fit: cover; border-radius: 22px 22px 0 0; }
.modal-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--green-light), var(--cream)); display: flex; align-items: center; justify-content: center; font-size: 64px; border-radius: 22px 22px 0 0; }
.modal-body { padding: 24px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-family: 'Trebuchet MS', sans-serif; font-size: 22px; color: var(--green-dark); line-height: 1.3; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--sand); background: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.modal-close:hover { background: #F5F0E8; }
.modal-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-pill { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.stat-time    { background: #F5F0E8; color: #5A4A30; }
.stat-savings { background: var(--orange-light); color: var(--orange); }
.stat-cost    { background: var(--green-light); color: var(--green-dark); }
.stat-servings { background: #f0fdf4; color: var(--green-dark); }

.modal-section { margin-bottom: 20px; }
.modal-section-title { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.ing-list { display: flex; flex-direction: column; gap: 6px; }
.ing-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.ing-row.on-sale { background: var(--green-light); border: 1px solid #A5D6A7; }
.ing-row.pantry  { background: #FAFAFA; border: 1px solid #F0E8D0; color: #666; }
.ing-sale-price { font-weight: 800; color: var(--orange); }
.ing-reg-price  { font-size: 11px; color: #CCC; text-decoration: line-through; margin-left: 4px; }

.coupon-list { display: flex; flex-direction: column; gap: 6px; }
.coupon-row { background: var(--blue-light); border: 1px solid #90CAF9; border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.coupon-row.clipped { background: var(--green-light); border-color: #A5D6A7; }
.coupon-save { font-weight: 800; color: var(--blue); white-space: nowrap; }
.coupon-row.clipped .coupon-save { color: var(--green-dark); }

.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-row { display: flex; gap: 12px; align-items: flex-start; }
.step-num { min-width: 26px; height: 26px; border-radius: 50%; background: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0; }
.step-text { font-size: 14px; color: #444; line-height: 1.6; padding-top: 3px; }

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 2px solid #F5EFE0; }
.modal-btn { flex: 1; min-width: 140px; padding: 12px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.modal-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.modal-btn-save  { background: var(--orange-light); color: var(--orange); border: 2px solid #FFB74D; }
.modal-btn-save.saved { background: var(--orange); color: white; }
.modal-btn-list  { background: var(--green-light); color: var(--green-dark); border: 2px solid #A5D6A7; }
.modal-btn-cart  { background: var(--blue); color: white; }
.cart-success-msg { background: var(--green-light); border: 2px solid #A5D6A7; border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; color: var(--green-dark); font-size: 13px; margin-top: 8px; display: none; }

/* ── Loading & Toast ── */
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.loading-overlay.show { display: flex; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #E0E0E0; border-top-color: var(--green-dark); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cooking-emoji { font-size: 56px; animation: cookBounce 0.6s ease-in-out infinite alternate; }
@keyframes cookBounce { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-12px) rotate(5deg); } }
.loading-text { font-family: 'Trebuchet MS', sans-serif; font-size: 17px; color: var(--green-dark); font-style: italic; }
.loading-sub { font-size: 13px; color: var(--muted); }
.toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 400; box-shadow: 0 4px 20px rgba(0,0,0,0.2); white-space: nowrap; }
.toast.show { display: block; animation: fadeUp 0.3s ease; }
.extract-spinner { display:inline-block; width:18px; height:18px; border:3px solid var(--sand); border-top-color:var(--orange); border-radius:50%; animation:spin 0.8s linear infinite; flex-shrink:0; }
.toast.error   { background: var(--red); color: white; }
.toast.success { background: var(--green-dark); color: white; }

/* ── Sale items browser ── */
.sale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sale-card { background: white; border: 2px solid var(--sand); border-radius: 14px; overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; }
.sale-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.sale-card.include { border-color: var(--green-mid); background: var(--green-light); }
.sale-card.exclude { border-color: var(--red); background: #FFF0F0; opacity: 0.6; }
.sale-card-badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; z-index: 2; }
.sale-card.include .sale-card-badge { background: var(--green-mid); color: white; }
.sale-card.exclude .sale-card-badge { background: var(--red); color: white; }
.sale-card-img { width: 100%; height: 110px; object-fit: contain; background: #FAFAF5; display: block; padding: 6px; }
.sale-card-img-ph { width: 100%; height: 110px; background: #FAFAF5; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.sale-card-body { padding: 10px; }
.sale-card-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.sale-card-price { display: flex; align-items: baseline; gap: 6px; }
.sale-card-sale { font-size: 16px; font-weight: 800; color: var(--orange); }
.sale-card-reg { font-size: 11px; color: #BBB; text-decoration: line-through; }
.sale-card-store { font-size: 10px; color: var(--muted); margin-top: 4px; }
.sale-card-pct { position: absolute; top: 8px; left: 8px; background: var(--orange); color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.sale-card-coupon { position: absolute; bottom: 8px; right: 8px; background: var(--orange-light); color: var(--orange); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--orange); }
.kroger-connect-banner { display: none; align-items: center; gap: 12px; background: var(--orange-light); border: 2px solid var(--orange); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.kroger-connect-banner p { flex: 1; font-size: 14px; font-weight: 600; color: #5A4A30; }
.kroger-connect-banner a { padding: 8px 18px; border-radius: 20px; background: var(--orange); color: white; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.2s; }
.kroger-connect-banner a:hover { filter: brightness(1.1); }
.kroger-connect-banner .dismiss { background: none; border: none; font-size: 18px; cursor: pointer; color: #999; padding: 4px; }
.coupon-card { background: white; border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 14px; }
.sale-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sale-filter-btn { padding: 6px 14px; border-radius: 20px; border: 2px solid var(--sand); background: white; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.sale-filter-btn.active { background: var(--green-dark); color: white; border-color: var(--green-dark); }
.sale-summary { display: flex; gap: 12px; margin-bottom: 16px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.sale-summary span { padding: 6px 12px; border-radius: 10px; }

/* ── Mobile responsive ── */
@media (max-width: 500px) {
  .landing-nav-inner { padding: 10px 16px; }
  .landing-nav-links { display: none; }
  .landing-hero { min-height: 520px; padding: 100px 16px 60px; }
  .landing-headline { font-size: 32px; }
  .landing-subtitle { font-size: 15px; }
  .landing-search { flex-direction: column; border-radius: 20px; padding: 12px; }
  .landing-search input { text-align: center; padding: 12px; font-size: 20px; letter-spacing: 3px; }
  .landing-search button { width: 100%; margin-top: 8px; }
  .trust-bar-inner { gap: 12px; }
  .trust-stat .num { font-size: 18px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 16px 10px; }
  .stores-logos span { padding: 8px 14px; font-size: 11px; }
  .modal-overlay { padding: 0; }
  .modal { max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-img { height: 160px; border-radius: 0; }
  .modal-img-placeholder { height: 140px; border-radius: 0; }
  .modal-body { padding: 16px; overflow-y: auto; max-height: calc(100vh - 160px); -webkit-overflow-scrolling: touch; }
  .modal-title { font-size: 18px; }
  .modal-stats { gap: 6px; }
  .stat-pill { padding: 6px 10px; font-size: 12px; }
  .modal-actions { flex-direction: column; }
  .modal-btn { min-width: unset; }
  .filter-grid { gap: 6px; }
  .filter-chip { padding: 6px 10px; font-size: 12px; }
  .sale-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .sale-filters { gap: 6px; }
  .sale-filter-btn { padding: 5px 10px; font-size: 11px; }
  main { padding: 20px 12px 80px; }
  .meal-grid { grid-template-columns: repeat(2, 1fr); }
}
