:root {
  --blush: #f4a7b9;
  --blush-light: #fde8ee;
  --blush-dark: #e07a96;
  --sage: #7aab8a;
  --sage-light: #e8f4ec;
  --sage-dark: #4e8a62;
  --cream: #fdf6f0;
  --warm-white: #ffffff;
  --text-dark: #2d2d2d;
  --text-mid: #5a5a5a;
  --text-light: #9a9a9a;
  --border: #ecdde4;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--blush-light);
  color: var(--blush-dark);
}

.nav-actions { display: none; gap: 0.5rem; align-items: center; }

/* Show nav links and actions on desktop */
@media (min-width: 769px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(224,122,150,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(224,122,150,0.45); }

.btn-secondary {
  background: var(--warm-white);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--blush-light); border-color: var(--blush); color: var(--blush-dark); }

.btn-sage {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(78,138,98,0.3);
}
.btn-sage:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(78,138,98,0.4); }

.btn-outline {
  background: transparent;
  color: var(--blush-dark);
  border: 1.5px solid var(--blush);
}
.btn-outline:hover { background: var(--blush-light); }

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #fde8ee 0%, #fdf6f0 50%, #e8f4ec 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blush-dark);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blush-dark), #c0547a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--blush-dark); }
.stat-label { font-size: 0.82rem; color: var(--text-light); font-weight: 500; }

/* ── SECTION ── */
.section { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-mid); font-size: 0.95rem; }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 2rem;
}

.tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(224,122,150,0.3);
}

/* ── MEAL CARD WITH PHOTO ── */
.meal-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.meal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.meal-card:hover .card-photo { transform: scale(1.04); }

.card-photo-wrap {
  overflow: hidden;
  position: relative;
  height: 200px;
}

.card-photo-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-header {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-emoji {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.card-emoji.breakfast { background: #fff3e0; }
.card-emoji.lunch { background: #e8f5e9; }
.card-emoji.dinner { background: #e8eaf6; }
.card-emoji.snack { background: #fce4ec; }

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.badge-breakfast { background: rgba(255,243,224,0.92); color: #e65100; }
.badge-lunch { background: rgba(232,245,233,0.92); color: #2e7d32; }
.badge-dinner { background: rgba(232,234,246,0.92); color: #283593; }
.badge-snack { background: rgba(252,228,236,0.92); color: #880e4f; }

.card-body { padding: 1rem 1.25rem; }
.card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-dark); }
.card-body .benefits { font-size: 0.83rem; color: var(--text-mid); margin-bottom: 1rem; line-height: 1.5; }

.nutrition-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nutrition-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ingredient-tag {
  background: var(--blush-light);
  color: var(--blush-dark);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-meta { display: flex; gap: 1rem; }
.meta-item { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* ── YEARLY PLANNER ── */
.year-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.month-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.month-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.month-tab.active {
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(224,122,150,0.35);
}

.month-tab:hover:not(.active) { background: var(--blush-light); border-color: var(--blush); color: var(--blush-dark); }

.week-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.week-block {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.week-header:hover { background: var(--blush-light); }

.week-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.week-num-badge {
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.week-summary {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
}

.week-chevron {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.25s;
}

.week-block.open .week-chevron { transform: rotate(180deg); }

.week-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.week-block.open .week-body { display: block; }

.week-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.week-day-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.week-day-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blush-dark);
  margin-bottom: 0.6rem;
}

.week-meal-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: var(--warm-white);
}

.week-meal-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  min-width: 48px;
  padding-top: 1px;
}

.week-meal-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.week-meal-cal {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* ── WEEKLY PLAN (legacy) ── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.day-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.day-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blush-dark);
  margin-bottom: 0.75rem;
}

.day-meal {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  font-size: 0.78rem;
}

.day-meal .meal-type { font-weight: 700; color: var(--text-light); font-size: 0.68rem; text-transform: uppercase; }
.day-meal .meal-name { color: var(--text-dark); font-weight: 500; margin-top: 1px; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--warm-white);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus { border-color: var(--blush); box-shadow: 0 0 0 3px rgba(244,167,185,0.2); }
.form-input.error { border-color: #e53935; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 2.5rem; }
.input-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1rem; }

.form-error { font-size: 0.78rem; color: #e53935; margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left {
  background: linear-gradient(160deg, #fde8ee 0%, #f4c6d4 40%, #e8f4ec 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.auth-left .brand { margin-bottom: 3rem; }
.auth-left .brand .logo-big {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(224,122,150,0.35);
}
.auth-left .brand h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); }
.auth-left .brand p { color: var(--text-mid); font-size: 0.9rem; margin-top: 0.25rem; }

.auth-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  text-align: left;
  width: 100%;
  max-width: 340px;
  backdrop-filter: blur(8px);
}

.auth-feature .feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.auth-feature h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.auth-feature p { font-size: 0.78rem; color: var(--text-mid); }

.auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background: var(--warm-white);
}

.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.35rem; }
.auth-box .subtitle { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 2rem; }

.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; color: var(--text-light); font-size: 0.82rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; color: var(--text-mid); }
.auth-switch a { color: var(--blush-dark); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── ALERT ── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 8px;
}
.alert.show { display: flex; }
.alert-error { background: #fdecea; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-info { background: var(--blush-light); color: var(--blush-dark); border: 1px solid var(--blush); }

/* ── DASHBOARD ── */
.dashboard-header {
  background: linear-gradient(135deg, var(--blush-light), var(--sage-light));
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 { font-size: 1.5rem; font-weight: 800; }
.dashboard-header p { color: var(--text-mid); font-size: 0.9rem; }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active, .filter-chip:hover {
  background: var(--blush-light);
  border-color: var(--blush);
  color: var(--blush-dark);
}

/* ── LOADING ── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── TOAST ── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem; z-index: 9999;
}

.toast {
  background: var(--text-dark);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 8px;
}

.toast.success { background: var(--sage-dark); }
.toast.error { background: #c62828; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .nav-hamburger { display: none; }
  .nav-mobile-menu { display: none !important; }
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-mobile-menu a:hover, .nav-mobile-menu a.active {
  background: var(--blush-light);
  color: var(--blush-dark);
}

/* ── BOTTOM TAB BAR (dashboard mobile) ── */
.bottom-tab-bar {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 98;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
.bottom-tab-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  min-width: 48px;
  transition: all 0.2s;
}
.bottom-tab-bar button .tab-icon { font-size: 1.3rem; line-height: 1; }
.bottom-tab-bar button .tab-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bottom-tab-bar button.active .tab-label { color: var(--blush-dark); }
.bottom-tab-bar button.active .tab-icon { transform: scale(1.15); }

/* Hide bottom bar on desktop — show nav links instead */
@media (min-width: 769px) {
  .bottom-tab-bar { display: none; }
  body.dashboard-page { padding-bottom: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Auth */
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem; }

  /* Nav */
  nav { padding: 0 1rem; }
  .nav-brand span { font-size: 0.95rem; }

  /* Hero */
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.95rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats .stat-number { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Sections */
  .section { padding: 1.5rem 1rem; }
  .section-header h2 { font-size: 1.4rem; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Dashboard header */
  .dashboard-header { padding: 1.25rem 1rem; }
  .dashboard-header h1 { font-size: 1.2rem; }
  .dashboard-header p { font-size: 0.82rem; }

  /* Add padding so content isn't hidden behind bottom bar */
  body.dashboard-page { padding-bottom: 70px; }

  /* Tabs pill row — scrollable */
  .tabs { overflow-x: auto; width: 100%; justify-content: flex-start; }
  .tab-btn { white-space: nowrap; }

  /* Month tabs — scrollable */
  .month-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .month-tab { white-space: nowrap; flex-shrink: 0; }

  /* Week days grid — 2 cols on mobile */
  .week-days-grid { grid-template-columns: repeat(2, 1fr); }

  /* Filter bar — scrollable */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-chip { white-space: nowrap; flex-shrink: 0; }

  /* Toast — full width bottom */
  #toast-container { left: 1rem; right: 1rem; bottom: 80px; }
  .toast { width: 100%; }

  /* Buttons */
  .btn-lg { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
}
