/* ============================================================
   NutriFlow – Custom Styles (supplements Tailwind CSS)
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --green-dark: #2f5d50;
  --green-mid:  #3d6e61;
  --green-light: #4f7c6e;
  --green-pale:  #e8f2ef;
  --green-xpale: #f3f9f7;
  --accent:      #d4a853;
  --accent-light:#fdf3dc;
  --text-dark:   #1a2e28;
  --text-mid:    #3d5a52;
  --text-light:  #6b8c84;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(47,93,80,.08);
  --shadow-md:   0 4px 20px rgba(47,93,80,.12);
  --shadow-lg:   0 8px 40px rgba(47,93,80,.18);
  --radius:      12px;
  --radius-lg:   20px;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────── */
.display-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 1.2rem 0;
}
#navbar.navbar-scrolled {
  background: rgba(255,255,255,.97) !important;
  box-shadow: var(--shadow-sm);
  padding: .7rem 0;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
#navbar.navbar-scrolled .nav-link { color: var(--text-dark); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: .45rem 1.3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  display: inline-block;
}
.btn-nav:hover {
  background: #c4983d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,168,83,.35);
}

/* ── Hero Section ──────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80');
  background-size: cover;
  background-position: center top;
  transform: scale(1.03);
  animation: heroZoom 15s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.10); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(22,51,43,.82) 0%,
    rgba(47,93,80,.70) 60%,
    rgba(30,60,50,.55) 100%
  );
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(212,168,83,.25);
  border: 1px solid rgba(212,168,83,.5);
  color: #fde68a;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.hero-title span { color: #6ee7b7; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,93,80,.35);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid rgba(255,255,255,.6);
  transition: all .2s;
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #6ee7b7;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Section headings ──────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  margin: .8rem auto 0;
  font-weight: 300;
}

/* ── How It Works steps ────────────────────────────────── */
.step-card {
  background: #fff;
  border: 1px solid #e5ede9;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-size: .72rem;
  font-weight: 800;
  color: var(--green-pale);
  background: var(--green-dark);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.step-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  transition: transform .3s;
}
.step-card:hover .step-icon { transform: scale(1.12); }

/* ── Impact stats ──────────────────────────────────────── */
.impact-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
}
.impact-section::before {
  content: '';
  position: absolute;
  top: -60%; right: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.impact-card {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}
.impact-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1;
  margin-bottom: .4rem;
}
.impact-label {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  font-weight: 300;
}
.impact-divider {
  width: 1px;
  background: rgba(255,255,255,.15);
}

/* ── Gallery ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e0ece8;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,50,40,.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── CTA Section ───────────────────────────────────────── */
.cta-section {
  background: var(--green-xpale);
  border-top: 1px solid #d4e8e2;
  border-bottom: 1px solid #d4e8e2;
}
.btn-cta-restaurant {
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .2s;
}
.btn-cta-restaurant:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,93,80,.3);
}
.btn-cta-ngo {
  background: transparent;
  color: var(--green-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid var(--green-dark);
  transition: all .2s;
}
.btn-cta-ngo:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,93,80,.25);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
  display: block;
  margin-bottom: .5rem;
}
.footer-link:hover { color: #6ee7b7; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
  transition: all .2s;
}
.social-link:hover {
  background: var(--green-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Login Page ────────────────────────────────────────── */
.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: flex .4s ease;
  position: relative;
  overflow: hidden;
}
.login-panel-restaurant {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
}
.login-panel-ngo {
  background: linear-gradient(160deg, #2a4a3e 0%, #1e3530 100%);
}
.login-panel:hover { flex: 1.15; }
.login-panel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: .18;
}
.login-panel-content { position: relative; z-index: 2; max-width: 380px; }
.login-panel-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: block;
}
.login-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .6rem;
}
.login-panel-text {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 2.2rem;
  font-weight: 300;
  line-height: 1.6;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .25s;
}
.btn-login-restaurant {
  background: var(--accent);
  color: #fff;
}
.btn-login-restaurant:hover {
  background: #c4983d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,83,.4);
}
.btn-login-ngo {
  background: #fff;
  color: var(--green-dark);
}
.btn-login-ngo:hover {
  background: #e8f2ef;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,.3);
}
.login-divider {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  letter-spacing: .04em;
}

/* ── Dashboard Layout ──────────────────────────────────── */
.dash-sidebar {
  background: var(--green-dark);
  min-height: 100vh;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  background: #f7faf9;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .dash-layout { flex-direction: column !important; }
  .dash-sidebar {
    width: 100%;
    min-height: auto;
    height: auto;
    position: relative;
    padding: 1.2rem 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
  }
  .dash-sidebar .sidebar-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
  .dash-sidebar .sidebar-brand { width: 100%; }
  .dash-main { padding: 1.5rem; }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2.5rem;
  color: #fff;
  text-decoration: none;
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.sidebar-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.sidebar-section-label {
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 1.5rem 0 .6rem;
  padding-left: .6rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: .2rem;
  cursor: pointer;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.sidebar-link .icon { font-size: 1.1rem; }
.sidebar-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ── Dashboard Cards ───────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid #e5ede9;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.stat-icon {
  font-size: 1.8rem;
  margin-bottom: .3rem;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Form ──────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid #e5ede9;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-input, .form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1e3dd;
  border-radius: 10px;
  font-size: .92rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(47,93,80,.12);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.btn-submit {
  background: var(--green-dark);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
}
.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,93,80,.3);
}

/* ── Listing / Food Cards ──────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e5ede9;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .15rem;
}
.card-subtitle {
  font-size: .82rem;
  color: var(--text-light);
}
.card-badges {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-end;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding: .8rem;
  background: var(--green-xpale);
  border-radius: 8px;
}
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.meals-count {
  font-size: .82rem;
  color: var(--green-dark);
  font-weight: 600;
}
.time-ago {
  font-size: .75rem;
  color: var(--text-light);
}
.accepted-by {
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: .6rem;
}

/* ── Badges ────────────────────────────────────────────── */
.badge-pending {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fef3c7;
  color: #92400e;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-accepted {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #d1fae5;
  color: #065f46;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-completed {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #dbeafe;
  color: #1e40af;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-inprogress {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #ede9fe;
  color: #4c1d95;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-expiring {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fee2e2;
  color: #991b1b;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-type-veg {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #d1fae5;
  color: #065f46;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-type-nonveg {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fee2e2;
  color: #991b1b;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-verified {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
}

/* ── Dashboard action buttons ──────────────────────────── */
.btn-accept {
  background: var(--green-dark);
  color: #fff;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-accept:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(47,93,80,.3);
}
.btn-progress {
  background: #7c3aed;
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
}
.btn-progress:hover { background: #6d28d9; }
.btn-complete {
  background: #059669;
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
}
.btn-complete:hover { background: #047857; }

/* ── Notifications ─────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  margin-bottom: .5rem;
  position: relative;
  transition: background .2s;
}
.notif-unread { background: var(--green-xpale); }
.notif-read { background: #fff; border: 1px solid #eff5f2; }
.notif-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.notif-body p {
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: .2rem;
  line-height: 1.4;
}
.notif-time {
  font-size: .72rem;
  color: var(--text-light);
}
.notif-dot {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
}

/* ── Impact box ────────────────────────────────────────── */
.impact-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.impact-box::before {
  content: '🌿';
  position: absolute;
  top: -10px; right: -10px;
  font-size: 6rem;
  opacity: .1;
}
.impact-box-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1;
  margin-bottom: .4rem;
}
.impact-box-label {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  font-weight: 300;
}

/* ── Confirm Popup ─────────────────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.confirm-overlay.active { display: flex; }
.confirm-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: popIn .25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.confirm-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .6rem;
}
.confirm-text {
  font-size: .92rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.confirm-btns { display: flex; gap: 1rem; justify-content: center; }
.confirm-yes {
  background: var(--green-dark);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  transition: all .2s;
}
.confirm-yes:hover { background: var(--green-mid); transform: translateY(-1px); }
.confirm-no {
  background: #f3f4f6;
  color: var(--text-mid);
  padding: .75rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  transition: all .2s;
}
.confirm-no:hover { background: #e5e7eb; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: #fff;
  border-radius: var(--radius);
  padding: .9rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  font-size: .88rem;
  font-weight: 600;
  z-index: 300;
  display: flex; align-items: center; gap: .7rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s;
  max-width: 320px;
  border-left: 4px solid var(--green-dark);
}
.toast-success { border-left-color: var(--green-dark); color: var(--green-dark); }
.toast-error { border-left-color: #ef4444; color: #dc2626; }
.toast-show { transform: translateY(0); opacity: 1; }

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
}
.empty-icon { font-size: 3rem; margin-bottom: .8rem; opacity: .6; }
.empty-state p { font-size: .95rem; font-weight: 500; color: var(--text-mid); }
.empty-sub { font-size: .82rem; color: var(--text-light); margin-top: .3rem; }

/* ── Dash section headings ─────────────────────────────── */
.dash-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* ── Tabs ──────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: .3rem;
  background: #f0f5f3;
  padding: .3rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .55rem 1.3rem;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  display: flex; align-items: center; gap: .4rem;
}
.tab-btn:hover { background: rgba(47,93,80,.08); color: var(--green-dark); }
.tab-btn.tab-active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(47,93,80,.1);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f5f3; }
::-webkit-scrollbar-thumb { background: #b0c9c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-light); }

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .confirm-box { padding: 1.8rem 1.3rem; }
  .dash-main { padding: 1rem; }
  .toast { right: 1rem; bottom: 1rem; left: 1rem; max-width: none; }
}
