/* ============================================================
   NGEP Cameroon — Premium Design System v2.0
   Brand: #2E7D32 (green)  ·  #E65100 (orange)  ·  #F9A825 (gold)
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --ngep-green:        #2E7D32;
  --ngep-green-dark:   #1B5E20;
  --ngep-green-mid:    #388E3C;
  --ngep-green-pale:   #F1F8F1;
  --ngep-orange:       #E65100;
  --ngep-orange-light: #FF6D00;
  --ngep-light:        #E8F5E9;
  --ngep-gold:         #F9A825;
  --ngep-gold-dark:    #F57F17;

  /* Surfaces */
  --surface-1:  #ffffff;
  --surface-2:  #F8FAF8;
  --surface-3:  #F1F5F1;

  /* Text */
  --text-primary:   #0f1f0f;
  --text-secondary: #4a5568;
  --text-muted:     #718096;

  /* Borders */
  --border-light: rgba(0,0,0,.07);
  --border-mid:   rgba(0,0,0,.12);

  /* Radius */
  --radius-sm:   8px;
  --radius-card: 16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 4px 12px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);
  --shadow-md:   0 8px 30px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
  --shadow-green: 0 8px 24px rgba(46,125,50,.25);
  --shadow-orange: 0 8px 24px rgba(230,81,0,.25);

  /* Gradients */
  --grad-green:  linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  --grad-hero:   linear-gradient(135deg, #0d3b0d 0%, #1B5E20 40%, #2E7D32 70%, #4CAF50 100%);
  --grad-orange: linear-gradient(135deg, #BF360C 0%, #E65100 100%);
  --grad-gold:   linear-gradient(135deg, #F57F17 0%, #F9A825 100%);
  --grad-card:   linear-gradient(145deg, #ffffff 0%, #f8faf8 100%);

  /* Transitions */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ─── Base Reset & Typography ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a { color: var(--ngep-green); transition: color .15s; }
a:hover { color: var(--ngep-green-dark); }

/* Wrap page between nav & footer */
main { min-height: 75vh; }

/* ─── Utilities ──────────────────────────────────────────── */
.text-ngep       { color: var(--ngep-green)  !important; }
.text-ngep-orange{ color: var(--ngep-orange) !important; }
.text-ngep-gold  { color: var(--ngep-gold)   !important; }
.bg-ngep         { background: var(--grad-green)  !important; }
.bg-ngep-light   { background: var(--ngep-light)  !important; }
.bg-ngep-pale    { background: var(--ngep-green-pale) !important; }
.border-ngep     { border-color: var(--ngep-green) !important; }
.rounded-xl      { border-radius: var(--radius-xl) !important; }
.shadow-green    { box-shadow: var(--shadow-green) !important; }

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  letter-spacing: .015em;
  transition: all .22s var(--ease-out);
  border-radius: var(--radius-sm);
}

.btn-ngep {
  background: var(--grad-green);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(46,125,50,.2);
}
.btn-ngep:hover, .btn-ngep:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn-ngep:active { transform: translateY(0); box-shadow: none; }

.btn-ngep-outline {
  border: 2px solid var(--ngep-green);
  color: var(--ngep-green);
  background: transparent;
}
.btn-ngep-outline:hover {
  background: var(--ngep-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-ngep-lg {
  padding: .75rem 2rem;
  font-size: 1.05rem;
  border-radius: 50px;
}

/* Override Bootstrap primary/success to use brand green */
.btn-success, .btn-primary {
  background: var(--grad-green);
  border-color: var(--ngep-green);
  box-shadow: 0 2px 8px rgba(46,125,50,.15);
}
.btn-success:hover, .btn-primary:hover {
  background: linear-gradient(135deg, var(--ngep-green-dark), var(--ngep-green-mid));
  border-color: var(--ngep-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-warning {
  background: var(--grad-gold);
  border-color: var(--ngep-gold);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(249,168,37,.2);
}
.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,168,37,.35);
  background: linear-gradient(135deg, var(--ngep-gold), var(--ngep-gold-dark));
  border-color: var(--ngep-gold-dark);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.ngep-navbar {
  background: var(--grad-green);
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.ngep-navbar.scrolled {
  background: rgba(27,94,32,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
  padding: .5rem 1rem;
}
.ngep-navbar .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff !important;
  letter-spacing: -.03em;
  gap: .5rem;
}
.ngep-navbar .navbar-brand span { color: var(--ngep-gold); }
.ngep-navbar .navbar-brand img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-spring);
}
.ngep-navbar .navbar-brand:hover img { transform: rotate(-5deg) scale(1.08); }

.ngep-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .75rem !important;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.ngep-navbar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.ngep-navbar .nav-link.active-link {
  background: rgba(255,255,255,.18);
  color: #fff !important;
  font-weight: 700;
}

/* Notification bell */
.notif-badge {
  position: absolute;
  top: 2px; right: 0;
  width: 18px; height: 18px;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
.notif-dropdown {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
}
.notif-dropdown .dropdown-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
  font-size: .85rem;
  padding: .75rem 1rem;
}
.notif-item {
  border-bottom: 1px solid var(--border-light);
  transition: background .12s;
  cursor: default;
  padding: .65rem 1rem !important;
}
.notif-item:hover { background: var(--ngep-light); }
.notif-item.unread { background: #f0f9f0; border-left: 3px solid var(--ngep-green); }
.notif-item.unread:hover { background: #e2f4e2; }

/* User avatar pill */
.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.4);
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Dropdown Polish ────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-card);
  padding: .4rem;
  font-size: .9rem;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: .5rem .85rem;
  transition: background .12s;
}
.dropdown-item:hover { background: var(--ngep-light); color: var(--ngep-green-dark); }

/* ─── Flash / Alert messages ─────────────────────────────── */
.ngep-flash { border-radius: var(--radius-sm); font-size: .9rem; }

.alert {
  border-radius: var(--radius-card);
  border: none;
  font-size: .9rem;
  padding: .9rem 1.1rem;
}
.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid var(--ngep-green);
}
.alert-danger {
  background: #fdecea;
  color: #b71c1c;
  border-left: 4px solid #e53935;
}
.alert-warning {
  background: #fffde7;
  color: #6d4c00;
  border-left: 4px solid var(--ngep-gold);
}
.alert-info {
  background: #e3f2fd;
  color: #0d47a1;
  border-left: 4px solid #1976d2;
}

/* ─── Cards (global) ─────────────────────────────────────── */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
}
.card-title { font-family: 'Outfit', sans-serif; font-weight: 700; }
.card-body  { padding: 1.4rem; }

/* Accent card variants */
.card-accent-green { border-top: 4px solid var(--ngep-green); }
.card-accent-orange{ border-top: 4px solid var(--ngep-orange); }
.card-accent-gold  { border-top: 4px solid var(--ngep-gold); }

/* ─── Stat Cards (dashboards) ────────────────────────────── */
.stat-card {
  border-radius: var(--radius-card);
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  padding: 1.4rem 1.6rem;
  transition: transform .25s var(--ease-spring), box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: currentColor;
  opacity: .035;
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .9rem;
  flex-shrink: 0;
}
.stat-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.stat-card-lbl {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-top: .3rem;
  font-weight: 600;
}
.stat-card-delta {
  font-size: .78rem;
  font-weight: 600;
  margin-top: .3rem;
}

/* Coloured accent strips on stat cards */
.stat-card.stat-green { border-left: 4px solid var(--ngep-green); }
.stat-card.stat-orange{ border-left: 4px solid var(--ngep-orange); }
.stat-card.stat-gold  { border-left: 4px solid var(--ngep-gold); }
.stat-card.stat-blue  { border-left: 4px solid #1976d2; }

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
  background: var(--grad-hero);
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::before {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
.hero-section::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(255,193,7,.08) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,.95);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ngep-gold);
  animation: pulse-dot 1.8s ease infinite;
}

.hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-section h1 span { color: var(--ngep-gold); }

.hero-section .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.5rem;
}
.hero-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* Floating image / illustration panel for hero */
.hero-floating-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--surface-1);
  border-top: none;
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: relative;
  z-index: 2;
}
.stats-bar-inner {
  display: flex;
  align-items: stretch;
}
.stat-item-bar {
  flex: 1;
  text-align: center;
  padding: 1.8rem 1rem;
  border-right: 1px solid var(--border-light);
  transition: background .2s;
  position: relative;
}
.stat-item-bar:last-child { border-right: none; }
.stat-item-bar:hover { background: var(--ngep-light); }
.stat-item-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 3px;
  background: var(--grad-green);
  border-radius: 2px 2px 0 0;
  transition: transform .25s var(--ease-out);
}
.stat-item-bar:hover::after { transform: translateX(-50%) scaleX(1); }

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ngep-green);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-lbl {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .35rem;
}

/* ─── Section Headings ───────────────────────────────────── */
.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ngep-green);
  margin-bottom: .6rem;
  display: block;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 560px;
  margin: .5rem auto 0;
}

/* ─── How It Works ───────────────────────────────────────── */
.hiw-section { background: var(--surface-2); padding: 90px 0; }
.hiw-card {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hiw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.hiw-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.hiw-card:hover::before { transform: scaleX(1); }

.step-number {
  width: 52px; height: 52px;
  background: var(--grad-green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 1.2rem;
  box-shadow: var(--shadow-green);
}
.hiw-card h6 { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.hiw-card p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 0; }

/* Connector arrow between steps */
.hiw-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--ngep-green); opacity: .4; font-size: 1.5rem;
}

/* ─── Feature Cards ──────────────────────────────────────── */
.feature-card {
  border-radius: var(--radius-card);
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ngep-green);
}
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--ngep-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  color: var(--ngep-green);
  transition: background .2s, transform .2s var(--ease-spring);
}
.feature-card:hover .feature-icon {
  background: var(--ngep-green);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}
.feature-card h5 { font-weight: 700; font-size: 1.05rem; }
.feature-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ─── Hatchery Cards (public browse) ─────────────────────── */
.hatch-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  overflow: hidden;
}
.hatch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.hatch-card-header {
  background: var(--grad-green);
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.hatch-card-header::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.hatch-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}

/* ─── Quick Nav Cards (admin, dashboard) ─────────────────── */
.quick-nav-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.quick-nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ngep-green);
  color: var(--text-primary);
}
.quick-nav-card .qnav-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto .85rem;
  transition: transform .25s var(--ease-spring);
}
.quick-nav-card:hover .qnav-icon { transform: scale(1.15) rotate(-6deg); }

/* ─── Tables ─────────────────────────────────────────────── */
.table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}
.table thead tr th {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border-mid);
  padding: .8rem 1rem;
  white-space: nowrap;
}
.table tbody tr td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table-hover tbody tr { transition: background .12s; }
.table-hover tbody tr:hover { background: var(--ngep-light); }
.table-hover tbody tr:hover td { border-bottom-color: #C8E6C9; }
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: var(--surface-2);
}

/* ─── Badges / Pills ─────────────────────────────────────── */
.badge {
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .03em;
  padding: .35em .7em;
  border-radius: 50px;
}
.badge-status {
  padding: .38em .85em;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.badge-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  flex-shrink: 0;
}
.status-pending         { background: #fffde7; color: #6d4c00; }
.status-confirmed       { background: #e3f2fd; color: #0d47a1; }
.status-invoiced        { background: #ede7f6; color: #4527a0; }
.status-payment_uploaded{ background: #fce4ec; color: #880e4f; }
.status-payment_approved{ background: #e8f5e9; color: #1b5e20; }
.status-delivered       { background: #e8f5e9; color: #1b5e20; }
.status-rejected        { background: #fdecea; color: #b71c1c; }
.status-cancelled       { background: #f3f4f6; color: #374151; }

/* Countdown badge */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 50px;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}
.countdown-badge.urgent { background: #fdecea; color: #c62828; border-color: #ffcdd2; }
.countdown-badge i { animation: tick 1s ease infinite; }
@keyframes tick {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}
.form-control, .form-select {
  border: 1.5px solid #d1d9d1;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .92rem;
  background: var(--surface-1);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ngep-green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.15);
  background: #fff;
  outline: none;
}
.form-control.is-valid, .form-select.is-valid {
  border-color: var(--ngep-green);
  background-image: none;
}
.form-control::placeholder { color: #a0aaa0; }
.form-text { font-size: .8rem; color: var(--text-muted); }

.input-group-text {
  background: var(--surface-2);
  border: 1.5px solid #d1d9d1;
  color: var(--text-muted);
  font-size: .92rem;
}
.input-group .form-control:not(:first-child) { border-left: none; }
.input-group .form-control:not(:last-child)  { border-right: none; }
.input-group:focus-within .input-group-text  { border-color: var(--ngep-green); }

/* File upload zone */
.file-upload-zone {
  border: 2px dashed #C8E6C9;
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  background: var(--ngep-light);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--ngep-green);
  background: #d4edda;
}
.file-upload-zone .zone-icon {
  font-size: 2.5rem;
  color: var(--ngep-green);
  margin-bottom: .5rem;
  opacity: .7;
}

/* ─── Modals ─────────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
}
.modal-header .modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  background: var(--surface-2);
}

/* ─── Nav Tabs ───────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--border-light);
  gap: .25rem;
}
.nav-tabs .nav-link {
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  padding: .6rem 1.1rem;
  transition: color .15s, background .15s;
  position: relative;
}
.nav-tabs .nav-link:hover { color: var(--ngep-green); background: var(--ngep-light); }
.nav-tabs .nav-link.active {
  color: var(--ngep-green);
  background: transparent;
  border-bottom: 2px solid var(--ngep-green);
  margin-bottom: -2px;
}

/* Pill tabs */
.nav-pills .nav-link {
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem 1.1rem;
  transition: all .2s;
}
.nav-pills .nav-link:hover { background: var(--ngep-light); color: var(--ngep-green); }
.nav-pills .nav-link.active {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

/* ─── Timeline (order detail) ────────────────────────────── */
.timeline { position: relative; padding-left: 2.8rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ngep-green), #dee2e6);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.7rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.3rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e9ecef;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem;
  color: #fff;
  top: .1rem;
  transition: all .3s var(--ease-spring);
}
.timeline-dot.active {
  background: var(--ngep-green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.25);
}
.timeline-dot.done {
  background: #43a047;
  box-shadow: 0 0 0 3px rgba(67,160,71,.2);
}
.timeline-dot.active i, .timeline-dot.done i { font-size: .65rem; }
.timeline-step { font-weight: 700; font-size: .92rem; color: var(--text-primary); }
.timeline-date { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }

/* ─── Breed Cards & Icons ────────────────────────────────── */
.breed-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ngep-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--ngep-green);
  flex-shrink: 0;
  transition: background .2s, transform .2s var(--ease-spring);
}
.breed-icon:hover { background: var(--ngep-green); color: #fff; transform: scale(1.1); }

.breed-suggestion-box {
  background: linear-gradient(135deg, var(--ngep-light) 0%, #fff 100%);
  border: 1px solid #C8E6C9;
  border-left: 4px solid var(--ngep-green);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

/* ─── Step Indicator (registration wizard) ───────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.step-indicator .step {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #e9ecef;
  color: #888;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
  transition: background .3s var(--ease-spring), color .3s, box-shadow .3s;
}
.step-indicator .step.active {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.step-indicator .step.done { background: #43a047; color: #fff; }
.step-indicator .step-line {
  flex: 1; height: 3px;
  background: #e9ecef;
  border-radius: 2px;
  transition: background .4s;
}
.step-indicator .step-line.done { background: #43a047; }

/* ─── Hero Section ───────────────────────────────────────── */
.page-hero {
  background: var(--grad-green);
  padding: 3rem 0 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.page-hero h1, .page-hero h2 { color: #fff; font-family: 'Outfit', sans-serif; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── Dashboard Welcome Banner ───────────────────────────── */
.dash-welcome {
  background: var(--grad-green);
  border-radius: var(--radius-card);
  padding: 2rem 2.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dash-welcome::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.dash-welcome h3 { color: #fff; font-size: 1.5rem; }
.dash-welcome p  { color: rgba(255,255,255,.8); margin: 0; font-size: .92rem; }

/* ─── Commission Alert ───────────────────────────────────── */
.commission-alert {
  background: linear-gradient(135deg, #fff3e0, #fbe9e7);
  border: 1px solid #ffe0b2;
  border-left: 4px solid var(--ngep-orange);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { gap: .2rem; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-mid);
  color: var(--ngep-green);
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem .85rem;
  transition: all .15s;
}
.page-link:hover { background: var(--ngep-light); color: var(--ngep-green-dark); border-color: var(--ngep-green); }
.page-item.active .page-link {
  background: var(--grad-green);
  border-color: var(--ngep-green);
  box-shadow: var(--shadow-green);
}
.page-item.disabled .page-link { color: #bbb; background: var(--surface-2); }

/* ─── Vertical Divider for Stats Bar ────────────────────── */
.vr { background: var(--border-mid); opacity: 1; }

/* ─── Notification dot pulse ─────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.45); opacity: .6; }
}
.notification-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ngep-orange);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease infinite;
}

/* ─── Footer ─────────────────────────────────────────────── */
.ngep-footer {
  background: linear-gradient(160deg, #0d2410 0%, #1B5E20 60%, #1a3d1a 100%);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.ngep-footer::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.ngep-footer h6 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
  transition: color .15s, gap .15s;
  width: fit-content;
}
.footer-link:hover { color: var(--ngep-gold); gap: .65rem; }
.footer-link i { font-size: .8rem; }
.footer-divider { border-color: rgba(255,255,255,.1) !important; margin: 2rem 0 1.5rem !important; }
.footer-bottom { font-size: .8rem; color: rgba(255,255,255,.4); }

.footer-brand-desc {
  font-size: .85rem;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  margin-top: .75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  transition: background .2s, color .2s, transform .2s var(--ease-spring);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--ngep-gold);
  border-color: var(--ngep-gold);
  color: #1a1a1a;
  transform: translateY(-3px);
}

/* ─── Loading Spinner ────────────────────────────────────── */
.ngep-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--ngep-light);
  border-top-color: var(--ngep-green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  opacity: .3;
  margin-bottom: 1rem;
  display: block;
}
.empty-state h5 { font-weight: 700; color: var(--text-secondary); }
.empty-state p  { font-size: .9rem; max-width: 320px; margin: .4rem auto 1.2rem; }

/* ─── Page Section Backgrounds ───────────────────────────── */
.bg-surface-2 { background: var(--surface-2); }
.bg-surface-3 { background: var(--surface-3); }
.section-padded { padding: 80px 0; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 70px 0 60px; }
  .hero-section h1 { font-size: 2rem; }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item-bar { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border-light); }
  .stat-item-bar:nth-child(odd) { border-right: 1px solid var(--border-light); }
  .stat-num { font-size: 1.9rem; }
  .dash-welcome { padding: 1.4rem; }
  .section-padded { padding: 55px 0; }
}
@media (max-width: 576px) {
  .stat-item-bar { min-width: 100%; }
  .hiw-connector { display: none; }
  .hero-section h1 { font-size: 1.75rem; }
  .card-body { padding: 1.1rem; }
}
