@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=DM+Sans:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --forest:       #1A5C2A;
  --forest-dark:  #0F3318;
  --forest-light: #E8F3EB;
  --teal:         #0A9BBF;
  --teal-light:   #E3F6FB;
  --teal-dark:    #076E87;
  --gold:         #C8920F;
  --gold-light:   #FEF3D4;
  --green:        #2AB55A;
  --green-dim:    #20994B;

  --bg:           #F7F3EC;
  --bg-warm:      #F0EBE1;
  --bg-card:      #FFFFFF;
  --bg-dark:      #0C2015;
  --bg-dark2:     #142A1C;
  --bg-section:   #EEF5EE;

  --text:         #1C2B1E;
  --text-muted:   #5A7A60;
  --text-light:   #8FAA94;
  --text-on-dark: #D8EED8;

  --border:       #D8E8DA;
  --border-light: #ECF3EC;

  --shadow-sm:    0 2px 8px rgba(26,92,42,0.08);
  --shadow-md:    0 8px 32px rgba(26,92,42,0.12);
  --shadow-lg:    0 16px 48px rgba(26,92,42,0.16);
  --shadow-food:  0 24px 60px rgba(0,0,0,0.25);

  --radius:       20px;
  --radius-sm:    12px;
  --radius-xs:    8px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Heebo', sans-serif;
  --font-he:      'Heebo', 'DM Sans', sans-serif;

  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] { font-family: var(--font-he); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--green { background: var(--forest); color: #fff; }
.section--cream { background: var(--bg-warm); }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; border: none;
  transition: all 200ms var(--ease-smooth); cursor: pointer;
}
.btn-primary {
  background: var(--forest); color: #fff;
}
.btn-primary:hover {
  background: var(--forest-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,42,0.3);
}
.btn-green {
  background: var(--green); color: #fff;
}
.btn-green:hover {
  background: var(--green-dim); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,181,90,0.35);
}
.btn-outline {
  background: transparent; color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline:hover { background: var(--forest-light); }
.btn-teal {
  background: var(--teal); color: #fff;
}
.btn-teal:hover {
  background: var(--teal-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,155,191,0.35);
}
.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 18px; }
.btn-ghost:hover { color: var(--forest); background: var(--forest-light); }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 22px; font-size: 0.85rem; }
.btn:active { transform: scale(0.97) translateY(0) !important; }

/* ─── BADGE ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.badge-kosher {
  background: rgba(10,155,191,0.1); color: var(--teal-dark);
  border: 1.5px solid rgba(10,155,191,0.3);
}
.badge-fresh {
  background: var(--forest-light); color: var(--forest);
  border: 1.5px solid rgba(26,92,42,0.25);
}
.badge-gold {
  background: var(--gold-light); color: var(--gold);
  border: 1.5px solid rgba(200,146,15,0.3);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-dot.green { background: var(--green); animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ─── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(247,243,236,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 200ms;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-xs);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: all 180ms;
}
.nav-links a:hover { color: var(--forest); background: var(--forest-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; align-items: center;
  background: var(--border-light); border-radius: 20px; padding: 3px;
}
.lang-btn {
  padding: 5px 14px; border-radius: 16px; font-size: 0.78rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 180ms;
  color: var(--text-muted); background: none;
}
.lang-btn.active { background: var(--teal); color: #fff; }

/* ─── MARQUEE BAR ────────────────────────────────────────────────── */
.marquee-bar {
  background: var(--forest); color: #fff;
  height: 42px; overflow: hidden; display: flex; align-items: center;
}
.marquee-track {
  display: flex; align-items: center; gap: 48px; white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.3px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }
.marquee-dot { opacity: 0.4; margin: 0 8px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex; align-items: center;
  padding-top: 70px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,155,191,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 60px 28px 80px;
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-preheading {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--teal); }
.hero h1 .highlight2 { color: var(--forest); }
.hero-sub {
  font-size: 1.1rem; line-height: 1.75;
  color: var(--text-muted); margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.trust-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
}
.trust-chip svg { color: var(--green); flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  position: relative; height: 580px;
}
.hero-meal {
  position: absolute;
  filter: drop-shadow(var(--shadow-food));
  animation: heroFloat var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-meal-1 { top: 0; right: 0; width: clamp(260px, 30vw, 380px); --dur: 6s; --delay: 0s; }
.hero-meal-2 { top: 36%; right: 32%; width: clamp(200px, 24vw, 310px); --dur: 7s; --delay: -2.5s; z-index: 2; }
.hero-meal-3 { bottom: 2%; right: 4%; width: clamp(180px, 20vw, 270px); --dur: 5.5s; --delay: -4s; opacity: 0.85; }
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(var(--r, -5deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r, -5deg) + 2deg)); }
}
.hero-meal-1 { --r: -8deg; }
.hero-meal-2 { --r: 4deg; }
.hero-meal-3 { --r: -3deg; }

/* ─── PLATE BUILDER ──────────────────────────────────────────────── */
.plate-builder-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plate-builder-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.plate-widget {
  position: relative;
}
.plate-frame {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  background: #E8F8FD;
  border: 3px solid var(--teal);
  border-radius: 24px; padding: 12px;
  box-shadow: 0 20px 60px rgba(10,155,191,0.18);
  aspect-ratio: 4/3;
}
.plate-slot {
  border-radius: 16px; overflow: hidden;
  position: relative; background: #fff;
  border: 1.5px solid rgba(10,155,191,0.2);
}
.plate-slot-protein {
  grid-row: span 2;
}
.slot-img-wrap {
  position: relative; width: 100%; height: 100%;
}
.slot-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
}
.slot-img.active { opacity: 1; }
.slot-label-overlay {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  background: rgba(12,32,21,0.65); backdrop-filter: blur(6px);
  border-radius: 8px; padding: 4px 8px;
  font-size: 0.72rem; font-weight: 600; color: #fff;
  text-align: center;
  transition: opacity 0.3s;
}

/* ─── SECTION HEADINGS ───────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 16px;
}
.section-title--light { color: #fff; }
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.75;
  max-width: 520px;
}
.section-sub--light { color: rgba(255,255,255,0.72); }
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* ─── MENU BENTO ─────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 280ms var(--ease-spring), box-shadow 280ms var(--ease-smooth), border-color 200ms;
  position: relative;
}
.meal-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.meal-card-img {
  height: 220px; position: relative;
  background: var(--bg-section);
  overflow: hidden;
}
.meal-card-cycle { position: relative; width: 100%; height: 100%; }
.meal-card-cycle img.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.meal-card-badges {
  position: absolute; top: 12px; right: 12px; left: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
body[dir="rtl"] .meal-card-badges { right: 12px; left: 12px; }
.meal-card-body { padding: 20px 20px 16px; }
.meal-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 6px;
}
.meal-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.meal-card-macros {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.macro { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.macro span { color: var(--forest); font-size: 0.9rem; }
.carb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.carb-chip {
  padding: 4px 12px; border-radius: 20px; font-size: 0.76rem; font-weight: 500;
  background: var(--forest-light); color: var(--forest);
  border: 1px solid rgba(26,92,42,0.15);
  cursor: pointer; transition: all 180ms;
}
.carb-chip:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.carb-chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.meal-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.view-details { font-size: 0.82rem; color: var(--teal); font-weight: 600; }
.view-details:hover { color: var(--teal-dark); }

/* ─── STATS ──────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden;
}
.stat-item {
  text-align: center; padding: 40px 24px;
  background: rgba(255,255,255,0.04);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--green);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 6px; }

/* ─── HOW IT WORKS ───────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 44px; left: calc(16.6% + 20px); right: calc(16.6% + 20px);
  height: 2px; background: var(--border);
}
.step { text-align: center; padding: 0 8px; }
.step-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), rgba(26,92,42,0.08));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.9rem;
  position: relative; z-index: 1;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ─── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border-radius: 24px;
  width: min(840px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  animation: modalIn 320ms var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 300px;
}
.modal-img-wrap { background: var(--bg-section); border-radius: 24px 0 0 0; overflow: hidden; position: relative; }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.modal-info { padding: 32px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted);
  transition: all 180ms;
}
.modal-close:hover { background: #fff; color: var(--text); }
.modal-body { padding: 28px 32px 32px; }
.nutrition-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  background: var(--bg-section); border-radius: var(--radius-sm); padding: 20px;
  margin-bottom: 24px;
}
.nutrition-item { text-align: center; }
.nutrition-val { font-size: 1.4rem; font-weight: 800; color: var(--forest); }
.nutrition-key { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: start;
  transition: color 180ms;
}
.faq-question:hover { color: var(--forest); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest-light); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: transform 250ms var(--ease-spring); flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--forest); color: #fff; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms var(--ease-smooth), padding 200ms;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer-inner { padding-bottom: 20px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }

/* ─── PRICING ────────────────────────────────────────────────────── */
.pricing-coming {
  text-align: center;
  background: linear-gradient(135deg, var(--teal-light), var(--forest-light));
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 56px 40px;
  max-width: 560px; margin: 0 auto;
}
.pricing-coming h3 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; margin-bottom: 12px;
}
.pricing-coming p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: 60px 28px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1200px; margin: 0 auto 48px;
}
.footer-brand .logo-text { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--teal); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.75; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-weight: 700; font-size: 0.85rem; color: rgba(255,255,255,0.9); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); padding: 5px 0; transition: color 180ms; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.kosher-seal {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,155,191,0.12); border: 1px solid rgba(10,155,191,0.3);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; color: var(--teal);
}

/* ─── DASHBOARD & AUTH (unchanged) ──────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-text { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--teal); }
.auth-tabs { display: flex; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 32px; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px;
  border-radius: var(--radius-xs); cursor: pointer;
  font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
  transition: all 200ms;
}
.auth-tab.active { background: var(--forest); color: #fff; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 200ms; outline: none;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,155,191,0.1); }
.form-error { font-size: 0.82rem; color: #dc2626; margin-top: 6px; }
.form-submit { width: 100%; margin-top: 8px; }

/* ─── DASH SIDEBAR ───────────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-dark); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-logo { padding: 8px 12px 24px; }
.sidebar-logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--teal); }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--radius-xs); font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.55); transition: all 180ms;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.sidebar-link.active { background: rgba(42,181,90,0.12); color: var(--green); border: 1px solid rgba(42,181,90,0.2); }
.sidebar-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.dash-main { background: var(--bg); overflow-y: auto; }
.dash-topbar {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.dash-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.dash-content { padding: 32px; }
.week-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.week-label {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 20px;
  font-weight: 700; font-size: 0.95rem; min-width: 220px; text-align: center;
}
.week-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 1rem; transition: all 180ms;
}
.week-btn:hover { border-color: var(--forest); color: var(--forest); }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.slot-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: all 200ms;
}
.slot-card.filled { border-color: rgba(26,92,42,0.3); }
.slot-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.slot-num { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.slot-clear { font-size: 0.78rem; color: var(--text-light); cursor: pointer; }
.slot-clear:hover { color: #dc2626; }
.meal-select-btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: all 180ms;
  color: var(--text-muted);
}
.meal-select-btn:hover { border-color: var(--forest); color: var(--text); }
.meal-select-btn.selected { border-style: solid; border-color: rgba(26,92,42,0.3); background: var(--forest-light); }
.meal-thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: contain; background: var(--bg-section); }
.meal-select-info { flex: 1; text-align: start; }
.meal-select-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.meal-select-carb { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.meal-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto;
}
.meal-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 150ms; }
.meal-option:hover { background: var(--forest-light); }
.meal-option-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: var(--bg-section); }
.meal-option-name { font-weight: 600; font-size: 0.88rem; }
.carb-select-wrap { margin-top: 10px; }
.carb-select-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.carb-options { display: flex; gap: 6px; flex-wrap: wrap; }
.carb-opt {
  padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all 150ms;
}
.carb-opt:hover { border-color: var(--forest); }
.carb-opt.selected { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ─── TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--text); color: #fff;
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: transform 300ms var(--ease-spring), opacity 300ms;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--forest); }
.toast.error { background: #dc2626; }
body[dir="rtl"] .toast { right: auto; left: 24px; }

/* ─── ADMIN TABLE ────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-val { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-val.green { color: var(--forest); }
.stat-val.yellow { color: var(--gold); }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { font-weight: 700; font-size: 0.95rem; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 12px 16px; text-align: start; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
td { padding: 13px 16px; border-top: 1px solid var(--border-light); font-size: 0.88rem; vertical-align: middle; }
tr:hover td { background: var(--bg); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-pending  { background: var(--gold-light); color: var(--gold); }
.status-confirmed{ background: var(--forest-light); color: var(--forest); }
.status-delivered{ background: var(--bg-section); color: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { height: 380px; }
  .plate-builder-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal-header { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nutrition-grid { grid-template-columns: repeat(3, 1fr); }
  .auth-card { padding: 28px 20px; }
}
