@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE1;
  --forest: #2D4A3E;
  --forest-light: #3D6357;
  --terra: #C4622D;
  --terra-light: #E07A4A;
  --sand: #E8D5B7;
  --sand-dark: #C9B899;
  --charcoal: #1C2B27;
  --text-muted: #7A8F89;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(44, 74, 62, 0.08);
  --shadow-md: 0 8px 32px rgba(44, 74, 62, 0.12);
  --shadow-lg: 0 20px 60px rgba(44, 74, 62, 0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196,98,45,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45,74,62,0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 213, 183, 0.6);
  padding: 0 2rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--forest);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover, .nav-links a.active { color: var(--forest); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-secondary:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-terra {
  background: var(--terra);
  color: var(--white);
}
.btn-terra:hover {
  background: var(--terra-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 98, 45, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
}
.btn-ghost:hover { color: var(--forest); background: var(--cream-dark); }

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(45,74,62,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(196,98,45,0.06) 0%, transparent 60%);
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--forest);
}
.hero-decor-1 { width: 500px; height: 500px; top: -100px; right: -100px; }
.hero-decor-2 { width: 300px; height: 300px; bottom: -50px; left: 10%; background: var(--terra); opacity: 0.05; }

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { animation: fadeUp 0.8s ease both; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,74,62,0.08);
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 460px;
  line-height: 1.7;
}

.hero-search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.search-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 40px;
  margin-bottom: 1rem;
}

.ingredient-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  animation: tagPop 0.2s ease;
}

.ingredient-tag button {
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
}
.ingredient-tag button:hover { color: var(--terra); }

.search-input-row {
  display: flex;
  gap: 0.5rem;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
}
.search-input-wrap input:focus { border-color: var(--forest); }
.search-input-wrap input::placeholder { color: var(--text-muted); }

.hero-stats {
  display: flex;
  gap: 2rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.hero-visual {
  position: relative;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-card-stack { position: relative; height: 420px; }

.hero-food-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.hero-food-card:nth-child(1) {
  width: 200px; height: 260px;
  top: 0; right: 50px;
  transform: rotate(3deg);
}
.hero-food-card:nth-child(2) {
  width: 200px; height: 260px;
  top: 240px;bottom: 0; left: 20px;
  transform: rotate(-4deg);
}
.hero-food-card:nth-child(3) {
  width: 200px; height: 260px;
  top: 1px; left: 40px;
  transform: rotate(-1.5deg);
}
.hero-food-card:nth-child(4) {
  width: 200px; height: 260px;
  top: 240px; right: 40px;
  transform: rotate(2.5deg);
}
.hero-food-card:nth-child(5) {
  width: 160px; height: 180px;
  top: 140px; left: 200px;
  transform: rotate(1deg);
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--white);
}

.hero-food-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-food-card:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 10; }


.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  animation: fadeUp 0.5s ease both;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.recipe-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--cream-dark);
}

.recipe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-card-img img { transform: scale(1.05); }

.recipe-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xl);
}

.badge-green { background: rgba(45,74,62,0.9); color: var(--white); }
.badge-terra { background: rgba(196,98,45,0.9); color: var(--white); }

.fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.fav-btn:hover, .fav-btn.active { color: #E53935; background: white; transform: scale(1.1); }

.recipe-card-body { padding: 1.25rem; }

.recipe-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.recipe-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

.missed-ingredients {
  font-size: 0.75rem;
  color: var(--terra);
  font-weight: 500;
}

.search-page { padding: 2rem; }

.search-page-inner { max-width: 1200px; margin: 0 auto; }

.search-page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.search-page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.big-search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.big-search-box .search-label {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.big-search-box .ingredient-tags { min-height: 50px; margin-bottom: 1.25rem; }

.big-search-box input {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
.big-search-box input:focus { border-color: var(--forest); }

.search-actions { display: flex; gap: 0.75rem; }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.results-count span { font-weight: 700; color: var(--charcoal); }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 50%, rgba(45,74,62,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(196,98,45,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.6s ease both;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 2rem;
}

.auth-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--forest);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,74,62,0.08);
}

.form-input.error { border-color: #E53935; }

.form-error {
  font-size: 0.8rem;
  color: #E53935;
  margin-top: 0.4rem;
  display: none;
}

.form-error.show { display: block; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--forest); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--forest); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: flex; align-items: center; gap: 8px; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }

.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 3rem 2rem 2rem;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.page-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.empty-state p { margin-bottom: 1.5rem; }

.meal-plan-hero {
  background: var(--forest);
  color: var(--white);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.meal-plan-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196,98,45,0.2) 0%, transparent 70%);
}

.meal-plan-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.meal-plan-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.meal-plan-title em { font-style: italic; color: var(--terra-light); }

.meal-plan-desc { color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2rem; }

.meal-plan-form {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.meal-plan-form .form-label { color: rgba(255,255,255,0.8); }

.meal-plan-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--white);
  min-height: 100px;
  resize: vertical;
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
.meal-plan-form textarea:focus { border-color: rgba(255,255,255,0.5); }
.meal-plan-form textarea::placeholder { color: rgba(255,255,255,0.4); }

.meal-plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.meal-plan-form select {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
  cursor: pointer;
}

.meal-plan-form select option { background: var(--forest); }

.plan-results { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }

.plan-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan-day-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s ease both;
}

.plan-day-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terra);
  margin-bottom: 0.75rem;
}

.plan-meal {
  margin-bottom: 0.75rem;
}

.plan-meal-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.plan-meal-name {
  font-size: 0.8rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.3;
}

.nutrition-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.nutrition-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.nutrition-item {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
}

.nutrition-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.nutrition-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sand);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  min-width: 250px;
}

.toast.success { background: var(--forest); }
.toast.error { background: #C62828; }

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

.footer-links { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tagPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .meal-plan-hero-inner { grid-template-columns: 1fr; }
  .plan-week { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .navbar-inner { padding: 0 1rem; }
  .nav-links { display: none; }
  .auth-card { padding: 2rem 1.5rem; }
  .plan-week { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .meal-plan-options { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
}
