:root {
  --bg: #f7f3ec;
  --bg2: #ede8df;
  --bg3: #e2dcd1;
  --surface: #faf8f4;
  --surface2: #f0ece4;
  --text: #1c1a16;
  --text2: #4a4538;
  --text3: #7a7060;
  --green: #1e4d35;
  --green2: #2d6e4e;
  --green3: #3d8f63;
  --emerald-bright: #34d399;
  --gold: #b8903a;
  --gold2: #d4a84b;
  --border: rgba(30, 77, 53, 0.15);
  --border2: rgba(30, 77, 53, 0.3);
  --shadow: rgba(28, 26, 22, 0.08);
  --healthy: #1e4d35;
  --healthybg: #e8f2ec;
  --moderate: #7a5a00;
  --moderatebg: #fdf3d7;
  --danger: #8b1a1a;
  --dangerbg: #fce8e8;
  --info: #1a4a7a;
  --infobg: #e8f0fb;
}

[data-theme="dark"] {
  --bg: #0f1a13;
  --bg2: #162110;
  --bg3: #1d2c18;
  --surface: #1a2415;
  --surface2: #223020;
  --text: #e8e2d8;
  --text2: #b5aa98;
  --text3: #6a6458;
  --green: #4db876;
  --green2: #3da062;
  --green3: #52c97e;
  --gold: #d4a84b;
  --gold2: #e8c069;
  --border: rgba(77, 184, 118, 0.15);
  --border2: rgba(77, 184, 118, 0.3);
  --shadow: rgba(0, 0, 0, 0.35);
  --healthy: #4db876;
  --healthybg: #0f2a1a;
  --moderate: #d4a84b;
  --moderatebg: #2a2000;
  --danger: #e06060;
  --dangerbg: #2a0f0f;
  --info: #5b9bd5;
}

[data-theme="light"] {
  --bg: #f2f7f4;
  --bg2: #e5efe9;
  --bg3: #d8e6dc;
  --surface: #ffffff;
  --surface2: #f7faf8;
  --text: #0d261b;
  --text2: #214736;
  --text3: #4d7060;
  --green: #138808;
  --green2: #0e6706;
  --green3: #1bb20e;
  --gold: #d97706;
  --gold2: #b45309;
  --border: rgba(19, 136, 8, 0.16);
  --border2: rgba(19, 136, 8, 0.32);
  --shadow: rgba(13, 38, 27, 0.08);
  --healthy: #138808;
  --healthybg: #e6f7e8;
  --moderate: #d97706;
  --moderatebg: #fef3c7;
  --danger: #dc2626;
  --dangerbg: #fee2e2;
  --info: #2563eb;
  --infobg: #dbeafe;
}

/* ── Premium Last Leaf Custom Scrollbar ── */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1e5c3c #0b1a12;
}

/* WebKit & Blink Browsers (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #0b1a12;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #153e28 0%, #1e5c3c 50%, #27ae60 100%);
  border-radius: 99px;
  border: 2px solid #0b1a12;
  box-shadow: inset 0 0 6px rgba(52, 211, 153, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1e5c3c 0%, #27ae60 50%, #34d399 100%);
  box-shadow: inset 0 0 8px rgba(52, 211, 153, 0.45), 0 0 10px rgba(52, 211, 153, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #27ae60 0%, #34d399 100%);
}

::-webkit-scrollbar-corner {
  background: #0b1a12;
}

/* Light Theme Scrollbar Adjustments */
[data-theme="light"] * {
  scrollbar-color: #2d6e4e #e2dcd1;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #ede8df;
  border-left: 1px solid rgba(30, 77, 53, 0.08);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e4d35 0%, #2d6e4e 100%);
  border: 2px solid #ede8df;
  box-shadow: none;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2d6e4e 0%, #3d8f63 100%);
}

[data-theme="light"] ::-webkit-scrollbar-corner {
  background: #ede8df;
}

/* ── Screen Vignette Overlay ── */
.forest-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 14, 9, 0.65) 100%);
  transition: opacity 0.5s ease;
}



/* ── Hero Entrance Animation ── */
.hero-entrance-1, .hero-entrance-2, .hero-entrance-3, .hero-entrance-4, .hero-entrance-5 {
  opacity: 0;
  transform: translateY(14px);
  animation: heroEntranceFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-entrance-1 { animation-delay: 0.05s; }
.hero-entrance-2 { animation-delay: 0.18s; }
.hero-entrance-3 { animation-delay: 0.32s; }
.hero-entrance-4 { animation-delay: 0.46s; }
.hero-entrance-5 { animation-delay: 0.60s; }

@keyframes heroEntranceFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero Entrance Suppressor (Prevents Replaying Animation on Internal SPA Navigation) ── */
body.hero-entrance-played .hero-entrance-1,
body.hero-entrance-played .hero-entrance-2,
body.hero-entrance-played .hero-entrance-3,
body.hero-entrance-played .hero-entrance-4,
body.hero-entrance-played .hero-entrance-5 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

/* ── Hero CTA Micro Interactions ── */
.cta-group .btn-primary,
.cta-group .btn-kisan {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease !important;
}
.cta-group .btn-primary:hover,
.cta-group .btn-kisan:hover {
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.22), 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}
.cta-group .btn-primary:active,
.cta-group .btn-kisan:active {
  transform: translateY(-1px) scale(0.99) !important;
}

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

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: .4rem;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .4s, color .4s;
  overflow-x: hidden;
}

.page {
  display: none;
  min-height: 100vh;
  animation: none;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
}

/* NAV — Glassmorphism Effect */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 2rem;
  background: rgba(245, 240, 232, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(30, 77, 53, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 300;
  transition: background .4s, border-color .4s, box-shadow .4s;
}

[data-theme="dark"] nav {
  background: rgba(10, 26, 16, 0.68);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.nav-logo {
  cursor: pointer;
  display: flex;
  align-items: center !important;
  gap: 0.65rem !important;
  transition: transform .25s ease, opacity .2s;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nav-logo:hover {
  transform: scale(1.04);
  opacity: 1;
}

.nav-logo-img {
  height: 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  margin-right: 0 !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

[data-theme="dark"] .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 18px rgba(52, 211, 153, 0.4));
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08) rotate(3deg);
}

.nav-brand-text {
  display: flex;
  align-items: center !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

.nav-brand-text .brand-last {
  display: inline !important;
  color: #1e4d35 !important;
  margin-right: 0.22rem !important;
  font-family: 'Cormorant Garamond', serif !important;
}

[data-theme="dark"] .nav-brand-text .brand-last {
  color: #ffffff !important;
}

.nav-brand-text .brand-leaf {
  display: inline !important;
  color: #27ae60 !important;
  font-style: italic !important;
  font-family: 'Cormorant Garamond', serif !important;
}

[data-theme="dark"] .nav-brand-text .brand-leaf {
  color: #34d399 !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-btn {
  background: rgba(30, 77, 53, 0.06);
  border: 1px solid rgba(30, 77, 53, 0.15);
  border-radius: 2rem;
  padding: .38rem .95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .73rem;
  font-weight: 600;
  color: var(--green);
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}

.nav-btn.active,
.nav-btn[data-active] {
  background: var(--gold);
  color: #1a3d2a;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(200, 155, 60, 0.35);
}

/* FLOATING BACK-TO-HOME ARROW */
.back-home-btn {
  position: fixed;
  top: 5.4rem;
  left: 1.5rem;
  z-index: 250;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--green);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all .25s;
}

.back-home-btn.show {
  display: flex;
}

.back-home-btn:hover {
  background: var(--green);
  color: #fff;
  transform: translateX(-3px);
}

@media(max-width:768px) {
  .back-home-btn {
    top: 4.6rem;
    left: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


/* HOME */
#home {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* Premium background mesh & ambient glow details */
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 620px;
  background: radial-gradient(circle at top, rgba(30, 77, 53, 0.14) 0%, rgba(34, 197, 94, 0.05) 30%, rgba(200, 155, 60, 0.04) 55%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.home-hero {
  min-height: calc(100vh - 75px) !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: calc(75px + 2rem) 1.5rem 3rem !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

.hero-left {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  z-index: 10 !important;
  margin: 0 auto !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(30, 77, 53, 0.06);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.4rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green3);
  animation: pulse 2.2s infinite ease-in-out;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--text);
  letter-spacing: -0.025em;
  max-width: 860px;
  text-shadow: 0 4px 32px var(--surface), 0 2px 16px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface);
}

/* Brand wordmark — larger than subtitle, no pill */
.hero-title .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.8rem, 9vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: .2rem;
}

.hero-title .brand-name em {
  font-style: italic !important;
  color: #34d399 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.28) !important;
}

.brand-last {
  display: inline-block;
  color: #000000;
  text-shadow: none;
  transition: color 0.3s ease;
}

[data-theme="dark"] .brand-last {
  color: #ffffff !important;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.52), 0 0 16px rgba(255, 255, 255, 0.28) !important;
}

/* ── Refined Tricolor Hero Typography ── */
.tricolor-hero-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  margin-bottom: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: tricolorHeroFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.tricolor-hero-group:hover {
  transform: scale(1.018);
}

@keyframes tricolorHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tricolor-block {
  font-family: 'Cormorant Garamond', serif !important;
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
  line-height: 0.98 !important;
  text-transform: uppercase;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

/* Optical balance adjustments so "Agricultural" doesn't overpower */
.tricolor-ai {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  color: #FF9933 !important;
  text-shadow: 0 2px 18px rgba(255, 153, 51, 0.2), 0 0 35px rgba(255, 153, 51, 0.08) !important;
}

.tricolor-agri {
  font-size: clamp(2.1rem, 3.7vw, 3.0rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.08) !important;
}

.tricolor-platform {
  font-size: clamp(2.3rem, 4.0vw, 3.2rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  color: #138808 !important;
  text-shadow: 0 2px 18px rgba(19, 136, 8, 0.22), 0 0 35px rgba(19, 136, 8, 0.08) !important;
}

/* Light mode contrast adjustments */
[data-theme="light"] .tricolor-ai {
  color: #D97706 !important;
  text-shadow: 0 2px 12px rgba(217, 119, 6, 0.15) !important;
}
[data-theme="light"] .tricolor-agri {
  color: #1E293B !important;
  text-shadow: 0 2px 12px rgba(30, 41, 59, 0.1) !important;
}
[data-theme="light"] .tricolor-platform {
  color: #138808 !important;
  text-shadow: 0 2px 12px rgba(19, 136, 8, 0.15) !important;
}

.hero-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}

.hero-title .gold-word {
  color: var(--gold);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--text3);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface), 0 0 2px var(--surface2);
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.18rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 900px;
  padding: 0 1rem;
  text-shadow: 0 2px 12px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface), 0 0 2px var(--surface2);
}

.cta-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 100%;
  width: 100%;
  margin: 1.8rem auto 0;
  justify-content: center;
}

@media (max-width: 1024px) {
  .cta-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-group .btn-primary,
.cta-group .btn-kisan {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .cta-group {
    grid-template-columns: 1fr;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 1.25rem;
  padding: 1.25rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(30, 77, 53, 0.22);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 35px rgba(77, 184, 118, 0.45), 0 0 0 0 rgba(255,255,255,0);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 0 30px rgba(77,184,118,0.6), 0 4px 15px rgba(30,77,53,0.3);
  transition: all 0.1s ease;
}

.btn-primary:active::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--surface);
  color: var(--green);
  border: 1.5px solid var(--border2);
  border-radius: 2rem;
  padding: 1rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--bg2);
  transform: translateY(-3px);
  border-color: var(--green);
}

.btn-outline-sm {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--border2);
  border-radius: 2rem;
  padding: 0.7rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.28s ease;
}

.btn-outline-sm:hover {
  background: var(--bg2);
  border-color: var(--green);
}

.btn-outline-lg {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 2rem;
  padding: 1rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(30, 77, 53, 0.08);
}

.btn-outline-lg:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 77, 53, 0.22);
}

.cta-group .btn-primary,
.cta-group .btn-outline-lg,
.cta-group .btn-kisan {
  width: 420px;
  max-width: 100%;
  justify-content: center;
  text-align: center;
}

.btn-kisan {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #fff;
  border: none;
  border-radius: 1.25rem;
  padding: 1.25rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.22);
  position: relative;
  overflow: hidden;
}

.btn-kisan::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-kisan:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 35px rgba(212, 168, 75, 0.5), 0 0 0 0 rgba(255,255,255,0);
}

.btn-kisan:hover::before {
  opacity: 1;
}

.btn-kisan:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3), 0 0 30px rgba(212,168,75,0.7), 0 4px 15px rgba(200,155,60,0.3);
  transition: all 0.1s ease;
}

.btn-kisan:active::before {
  opacity: 1;
}

.hero-right {
  display: none !important;
}

@keyframes floatIllustration {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.hero-right svg {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(77, 184, 118, 0.55);
  animation: spinCircles 40s linear infinite;
}

@keyframes spinCircles {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.deco-c1 {
  width: 340px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.deco-c2 {
  width: 440px;
  height: 440px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.65;
}

.deco-c3 {
  width: 540px;
  height: 540px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

/* Bento Grid Features Layout */
.features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media(max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem 2rem;
  }
}

@media(max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.feat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

/* Symmetrical — all 8 cards equal */
.feat {
  grid-column: span 1;
}

.feat-icon {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%, rgba(46, 204, 113, 0.22) 0%, rgba(30, 77, 53, 0.35) 70%, rgba(15, 37, 25, 0.5) 100%);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #2ecc71;
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.28), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(46, 204, 113, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #2ecc71;
  filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.65));
  transition: stroke 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.feat:hover .feat-icon {
  transform: translateY(-3px) scale(1.1);
  background: radial-gradient(circle at 35% 35%, rgba(46, 204, 113, 0.38) 0%, rgba(30, 77, 53, 0.55) 70%, rgba(15, 37, 25, 0.7) 100%);
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 28px rgba(46, 204, 113, 0.55), 0 0 45px rgba(34, 197, 94, 0.3), 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(46, 204, 113, 0.3);
}

.feat:hover .feat-icon svg {
  stroke: #4ade80;
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.9));
}

.feat h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feat p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text3);
  line-height: 1.65;
}


/* 🌦️ Weather & Blight Forecasting Widget Styles */
.weather-widget-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 1.8rem;
  padding: 2.8rem 3rem;
  box-shadow: 0 14px 40px var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
}

.weather-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--green);
}

.weather-select {
  padding: 0.75rem 1.4rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.weather-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 117, 89, 0.15);
}

.weather-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.2rem;
}

@media (max-width: 768px) {
  .weather-widget-container {
    width: calc(100% - 2rem);
    margin: 2.5rem auto;
    padding: 1.5rem;
  }

  .weather-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .weather-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-select {
    width: 100%;
  }
}

.weather-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(30, 77, 53, 0.03);
  padding: 1.6rem;
  border-radius: 1.2rem;
  border: 1px dashed var(--border2);
  box-sizing: border-box;
}

.weather-temp-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.weather-big-temp {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.weather-icon {
  font-size: 3.8rem;
  line-height: 1;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.weather-detail-item {
  font-size: 0.85rem;
  color: var(--text3);
  font-family: 'Inter', sans-serif;
}

.weather-detail-item strong {
  color: var(--text2);
  display: block;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.blight-forecast {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: space-between;
}

.blight-card {
  padding: 1.6rem;
  border-radius: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.blight-card.risk-low {
  background: rgba(46, 117, 89, 0.08);
  border: 1px solid rgba(46, 117, 89, 0.22);
  color: var(--green2);
}

.blight-card.risk-moderate {
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.22);
  color: #a07818;
}

.blight-card.risk-high {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.18);
  color: #dc3545;
}

.blight-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.blight-card.risk-low .blight-badge {
  background: var(--green2);
  color: #fff;
}

.blight-card.risk-moderate .blight-badge {
  background: var(--gold);
  color: #fff;
}

.blight-card.risk-high .blight-badge {
  background: #dc3545;
  color: #fff;
}

.blight-msg {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text2);
}

.weather-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text3);
  font-family: 'Inter', sans-serif;
}

.weather-range {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}

.home-footer {
  text-align: center;
  padding: 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text3);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.kisan-nav {
  border: 1.5px solid rgba(200, 155, 60, 0.4) !important;
  color: var(--gold) !important;
  border-radius: 2rem;
}

.kisan-nav:hover {
  background: rgba(200, 155, 60, 0.08) !important;
  color: var(--gold2) !important;
}

/* ═══ KISAN MODE PAGE ═══ */
/* ═══ KISAN LANDING VIEW ═══ */
.ks-search-input {
  font-family: 'Inter', sans-serif;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all 0.22s ease;
  width: 100%;
  box-sizing: border-box;
}

.ks-search-input:focus {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(200, 155, 60, 0.1);
}

/* ═══ KISAN WEATHER FORECAST ═══ */
.kisan-weather-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.6rem 2.0rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  align-items: center;
  transition: all 0.28s ease;
}

@media(max-width: 640px) {
  .kisan-weather-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    padding: 1.4rem;
  }
}

.kw-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.kw-emoji {
  font-size: 3.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.kw-temp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.kw-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.kw-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kw-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.kw-detail-item {
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kw-right {
  width: 220px;
  border-left: 1px solid var(--border2);
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

@media(max-width: 640px) {
  .kw-right {
    width: auto;
    border-left: none;
    border-top: 1px solid var(--border2);
    padding-left: 0;
    padding-top: 1.2rem;
  }
}

.kw-forecast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.kw-fc-day {
  font-weight: 600;
  color: var(--text2);
  width: 70px;
}

.kw-fc-emoji {
  font-size: 1.2rem;
  text-align: center;
  flex: 1;
}

.kw-fc-temps {
  color: var(--text3);
  font-family: 'Inter', sans-serif;
  text-align: right;
  width: 65px;
}

.kw-status-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-top: 0.55rem;
}

.kw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  display: inline-block;
  animation: kwBlink 2.2s infinite ease-in-out;
}

.kw-status-dot.offline {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

@keyframes kwBlink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.kisan-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

@media(max-width: 640px) {
  .kisan-landing-grid {
    grid-template-columns: 1fr;
  }
}

.kisan-landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.0rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kisan-landing-card:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.kisan-landing-card:active:not(.disabled) {
  transform: scale(0.98);
}

.kl-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.kisan-landing-card:hover:not(.disabled) .kl-card-icon {
  transform: scale(1.08) rotate(4deg);
}

.kisan-landing-card.disabled .kl-card-icon {
  background: var(--bg2);
  border-color: var(--border2);
  opacity: 0.6;
}

.kl-card-content {
  flex: 1;
  min-width: 0;
}

.kl-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.kl-card-content p {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.5;
}

.kl-card-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: bold;
  transition: transform 0.2s ease;
}

.kisan-landing-card:hover .kl-card-arrow:not(.disabled) {
  transform: translateX(5px);
}

.kl-coming-soon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--gold);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.18rem 2.2rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.btn-kisan-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.6rem;
  padding: 0.5rem 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-kisan-back:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateX(-4px);
  box-shadow: var(--shadow-lg);
}

#kisan-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.kisan-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.kisan-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.kisan-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.kisan-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.kisan-title strong {
  color: var(--green);
  font-weight: 700;
}

.kisan-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text3);
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.kisan-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.2rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.kf-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--green);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.kf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media(max-width: 540px) {
  .kf-grid {
    grid-template-columns: 1fr;
  }
}

.kf-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kf-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.kf-group select {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 0.6rem;
  padding: 0.7rem 2.2rem 0.7rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text) !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c7e73'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  transition: all 0.22s ease;
  outline: none;
}

.kf-group select:focus {
  border-color: var(--green) !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 3.5px rgba(30, 77, 53, 0.1) !important;
}

.kf-group select:hover {
  border-color: var(--green2) !important;
}

.auto-season-badge {
  display: inline-block;
  background: var(--healthybg);
  color: var(--healthy);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.12rem 0.5rem;
  margin-left: 0.35rem;
  letter-spacing: 0.03em;
}

.kisan-mode-row {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.k-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border2);
  border-radius: 2rem;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.k-toggle-track.on {
  background: var(--green2);
}

.k-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.k-toggle-track.on .k-toggle-knob {
  transform: translateX(20px);
}

.k-mode-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text2);
}

.k-mode-lbl strong {
  color: var(--green);
}

.btn-kisan-go {
  width: 100%;
  margin-top: 1.6rem;
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 0.65rem;
  padding: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.btn-kisan-go:hover {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(30, 77, 53, 0.25);
}

.btn-kisan-go:active {
  transform: translateY(0.5px);
}

.soil-suggest-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  display: none;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.soil-suggest-strip.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.ssl-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ssl-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ssl-pill {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
}

.k-smart-tip {
  background: var(--healthybg);
  border: 1px solid rgba(30, 77, 53, 0.14);
  border-radius: 0.8rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--healthy);
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.6;
}

.k-results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.k-crop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card:hover {
  border-color: var(--green2);
  box-shadow: var(--shadow-lg);
}

.k-crop-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}

.k-crop-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.k-crop-card:hover .k-crop-emoji {
  transform: scale(1.06);
}

.k-crop-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.k-crop-hindi {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: 0.4rem;
}

.k-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.kb {
  display: inline-flex;
  align-items: center;
  border-radius: 2rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kb-hi {
  background: var(--healthybg);
  color: var(--healthy);
}

.kb-su {
  background: var(--moderatebg);
  color: var(--moderate);
}

.kb-ri {
  background: var(--dangerbg);
  color: var(--danger);
}

.kb-season {
  background: var(--bg2);
  color: var(--text2);
}

.kb-water {
  background: var(--infobg);
  color: var(--info);
}

.k-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card.open .k-chevron {
  transform: rotate(180deg);
}

.k-crop-body {
  display: none;
  padding: 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.k-crop-card.open .k-crop-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.k-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media(max-width:480px) {
  .k-info-grid {
    grid-template-columns: 1fr;
  }
}

.k-info-item .k-il {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.k-info-item .k-iv {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 0.2rem;
}

.k-advice {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.k-irr-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.k-stage {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.k-stage:last-child {
  border-bottom: none;
}

.k-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green3);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.k-stage-text {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.65;
}

.k-stage-text strong {
  color: var(--text);
  font-weight: 600;
}

.k-critical-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--danger);
  margin-left: 0.4rem;
}

.k-expert-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
}

.k-expert-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green2);
  margin-bottom: 0.75rem;
}

.k-expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.k-level-pills {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.k-level-pill {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.8rem;
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text3);
  transition: all 0.22s ease;
  line-height: 1.2;
}

.k-level-pill span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text3);
  transition: color 0.22s;
}

.k-level-pill:hover {
  border-color: var(--green3);
  color: var(--green);
  background: var(--surface);
}

.k-level-pill:hover span {
  color: var(--green);
}

.k-level-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.k-level-pill.active span {
  color: rgba(255, 255, 255, 0.75);
}

/* Central/State Toggle Pills */
.ks-toggle-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.ks-toggle-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text2);
  transition: all 0.22s ease;
  line-height: 1.3;
}

.ks-toggle-pill span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text3);
  transition: color 0.22s;
}

.ks-toggle-pill:hover {
  border-color: var(--green3);
  color: var(--green);
  background: var(--surface);
}

.ks-toggle-pill:hover span {
  color: var(--green);
}

.ks-toggle-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.ks-toggle-pill.active span {
  color: rgba(255, 255, 255, 0.75);
}

@media(max-width: 480px) {
  .k-expert-grid {
    grid-template-columns: 1fr;
  }
}

.k-el {
  font-size: 0.68rem;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.k-ev {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 0.12rem;
}

/* ═══ GOVERNMENT SCHEMES REDESIGN CSS ═══ */
.k-scheme-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card.open .k-scheme-body-wrapper {
  grid-template-rows: 1fr;
}

.k-scheme-body-content {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg);
}

.k-crop-card {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.k-crop-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.k-crop-head {
  user-select: none;
  outline: none;
}

.k-crop-head:focus-visible {
  box-shadow: inset 0 0 0 2.5px var(--gold);
  border-radius: 0.9rem 0.9rem 0 0;
}

.k-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  color: var(--gold);
}

.k-crop-card.open .k-chevron {
  transform: rotate(180deg);
}

/* Schemes summaries & summary boxes */
.ks-search-summary {
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 0.8rem;
  padding: 0.85rem 1.3rem;
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ks-search-summary .lbl {
  color: var(--text3);
  font-weight: 500;
}

.ks-search-summary .val {
  color: var(--gold);
  font-weight: 700;
}

.ks-section-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.ks-section-box:hover {
  transform: translateY(-2px);
}

.ks-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ks-box-content {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
}

/* Highlighting matching search queries */
.ks-highlight {
  background: rgba(200, 155, 60, 0.18);
  color: inherit;
  font-weight: bold;
  border-radius: 4px;
  padding: 0 4px;
}

/* Skeletons loader */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.skeleton-line {
  background: var(--border2);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.skeleton-line.title {
  height: 20px;
  width: 60%;
}

.skeleton-line.badge {
  height: 16px;
  width: 25%;
  display: inline-block;
  margin-right: 0.5rem;
}

.skeleton-line.desc {
  height: 12px;
  width: 90%;
}

.skeleton-line.desc.short {
  width: 40%;
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s infinite ease-in-out;
}

@keyframes skeletonPulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Floating back-to-top button - positioned neatly above chatbot FAB */
.btn-back-to-top {
  position: fixed;
  bottom: 112px;
  right: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--green);
  border: 1.5px solid var(--border);
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-back-to-top:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(19, 136, 8, 0.4);
}

.btn-back-to-top:active {
  transform: translateY(0) scale(0.96);
}

body.chatbot-open .btn-back-to-top {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Share link Toast alert */
.share-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1.5px solid var(--gold);
  color: var(--text);
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 15px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Empty State Styles */
.ks-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.ks-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ks-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ks-empty-desc {
  font-size: 0.84rem;
  color: var(--text3);
  line-height: 1.5;
}

/* KISAN WEATHER ADVISORY VIEW CSS */
#kisan-weather-view {
  display: none;
}

.kisan-location-alert {
  padding: 0.9rem 1.4rem;
  border-radius: 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.kisan-location-alert.precise {
  background: rgba(30, 77, 53, 0.05);
  border: 1px solid rgba(30, 77, 53, 0.15);
  color: var(--green);
}

.kisan-location-alert.state-only {
  background: rgba(200, 155, 60, 0.06);
  border: 1px solid rgba(200, 155, 60, 0.18);
  color: #a07818;
}

.kisan-location-alert.fallback {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
}

.kw-main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.2rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}

.kw-location-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

@media(max-width: 540px) {
  .kw-location-row {
    flex-direction: column;
  }
}

.kw-current-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

@media(max-width: 640px) {
  .kw-current-grid {
    grid-template-columns: 1fr;
  }
}

.kw-curr-left {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 1.1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.kw-temp-large {
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--text);
  margin: 0.6rem 0;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.kw-temp-large span {
  font-size: 2.0rem;
  color: var(--gold);
}

.kw-cond-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.kw-cond-hindi {
  font-size: 0.95rem;
  color: var(--text3);
  margin-top: 0.3rem;
}

.kw-curr-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kw-detail-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.kw-detail-box:hover {
  transform: translateY(-2px);
}

.kw-detail-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kw-detail-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

/* Hourly Slider */
.kw-section-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin: 2rem 0 1rem;
}

.kw-hourly-slider {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.2rem;
  scroll-behavior: smooth;
}

.kw-hourly-slider::-webkit-scrollbar {
  height: 6px;
}

.kw-hourly-slider::-webkit-scrollbar-track {
  background: var(--bg2);
  border-radius: 4px;
}

.kw-hourly-slider::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

.kw-hourly-card {
  flex-shrink: 0;
  width: 80px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.9rem;
  padding: 1rem 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow);
  transition: all 0.22s ease;
}

.kw-hourly-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.kw-hourly-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text3);
}

.kw-hourly-emoji {
  font-size: 1.5rem;
}

.kw-hourly-temp {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.kw-hourly-pop {
  font-size: 0.65rem;
  color: var(--info);
  font-weight: 700;
}

/* Daily Cards */
.kw-daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kw-daily-row {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 0.9rem;
  padding: 0.95rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kw-daily-row:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.kw-daily-day {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  width: 100px;
}

.kw-daily-cond {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.kw-daily-cond span {
  font-size: 0.82rem;
  color: var(--text2);
}

.kw-daily-temps {
  display: flex;
  gap: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.kw-daily-max {
  color: var(--text);
}

.kw-daily-min {
  color: var(--text3);
}

/* Advisories */
.kw-advisories {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.kw-adv-box {
  border-radius: 0.9rem;
  padding: 1.1rem 1.4rem;
  line-height: 1.6;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.kw-adv-box.warning {
  background: var(--dangerbg);
  color: var(--danger);
  border: 1px solid rgba(153, 34, 34, 0.15);
}

.kw-adv-box.success {
  background: var(--healthybg);
  color: var(--healthy);
  border: 1px solid rgba(30, 77, 53, 0.15);
}

.kw-adv-box.info {
  background: var(--infobg);
  color: var(--info);
  border: 1px solid rgba(31, 83, 135, 0.15);
}

.kw-adv-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

/* DB PAGE */
#db-page {
  padding-top: 5rem;
  background: var(--bg);
}

.db-header {
  padding: 0;
  margin-bottom: 0.8rem;
}

.db-hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #09130e 0%, #152c1e 50%, #1e4d35 100%) !important;
  padding: 3.8rem 2rem 3.2rem;
  text-align: center;
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(77, 184, 118, 0.35) !important;
}

.db-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(77, 184, 118, 0.25) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 80%);
  pointer-events: none;
}

.db-hero-content {
  position: relative;
  z-index: 2;
}

.db-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(5px);
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.0rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.db-header p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

.db-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.db-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.8rem 1.6rem;
  min-width: 105px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s;
}

.db-stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.db-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #FF9933; /* Indian Flag Orange */
  line-height: 1;
}

.db-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.db-stat-card.farming .db-stat-num {
  color: #FFFFFF; /* Indian Flag White */
}

.db-stat-card.community .db-stat-num {
  color: #138808; /* Indian Flag Green */
}

.db-hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.dhl {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: dhlfloat 8s ease-in-out infinite;
}

.dhl-1 {
  top: 8%;
  left: 5%;
  font-size: 2.4rem;
  animation-delay: 0s;
  animation-duration: 9s;
}

.dhl-2 {
  top: 15%;
  right: 8%;
  font-size: 1.8rem;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.dhl-3 {
  bottom: 20%;
  left: 12%;
  font-size: 1.5rem;
  animation-delay: 3s;
  animation-duration: 8.5s;
}

.dhl-4 {
  bottom: 10%;
  right: 15%;
  font-size: 2rem;
  animation-delay: 2s;
  animation-duration: 10s;
}

.dhl-5 {
  top: 45%;
  left: 2%;
  font-size: 1.3rem;
  animation-delay: 4s;
  animation-duration: 7.5s;
}

.dhl-6 {
  top: 35%;
  right: 3%;
  font-size: 1.6rem;
  animation-delay: 0.8s;
  animation-duration: 9.5s;
}

@keyframes dhlfloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(6deg);
  }

  66% {
    transform: translateY(5px) rotate(-4deg);
  }
}

.db-filters {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 2rem 1.4rem;
}

.filter-btn {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(30, 77, 53, 0.15);
}

.db-search {
  max-width: 950px;
  width: 90%;
  margin: 0 auto 1.8rem;
  padding: 0 1.5rem;
  position: relative;
}

.db-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 3rem;
  padding: 0.95rem 3.5rem 0.95rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.db-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 77, 53, 0.1);
}

#voiceSearchBtn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  padding: 0;
  flex-shrink: 0;
}

#voiceSearchBtn:hover {
  color: var(--green);
  background: rgba(52, 211, 153, 0.14);
  transform: translateY(-50%) scale(1.08) !important;
}

[data-theme="light"] #voiceSearchBtn:hover {
  color: #138808;
  background: rgba(19, 136, 8, 0.12);
}

#voiceSearchBtn.recording,
#voiceSearchBtn.listening {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.18) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: dbMicPulse 1.2s ease-in-out infinite !important;
}

@keyframes dbMicPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
  }
  50% {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.search-suggestions {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  max-height: 360px;
  overflow-y: auto;
}

.sg-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  padding: 0.65rem 1rem 0.4rem;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.18s;
}

.sg-item:hover,
.sg-item.active {
  background: var(--bg2);
}

.sg-item .sg-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sg-item .sg-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-item .sg-sub {
  font-size: 0.75rem;
  color: var(--text3);
  flex-shrink: 0;
}

.sg-clear-recent {
  font-size: 0.75rem;
  color: var(--text3);
  cursor: pointer;
  padding: 0.4rem 1rem;
  text-align: right;
  transition: color 0.18s;
}

.sg-clear-recent:hover {
  color: var(--green);
}

#searchAiPanel {
  margin-top: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.8rem;
  background: var(--infobg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
}

#searchAiPanel .ai-tag {
  display: inline-block;
  background: rgba(30, 77, 53, 0.08);
  color: var(--green);
  border-radius: 1rem;
  padding: 0.15rem 0.65rem;
  margin: 0.15rem 0.3rem 0.15rem 0;
  font-weight: 600;
  font-size: 0.75rem;
}

#searchDidYouMean {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2);
}

#searchDidYouMean button {
  background: none;
  border: none;
  color: var(--green3);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0;
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.db-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.db-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.db-card-hero {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  border-radius: 1.25rem 1.25rem 0 0;
}

.db-card:hover .db-card-hero {
  transform: scale(1.04);
}

.db-card-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.db-card-emoji-wrap {
  font-size: 3.2rem;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.db-card:hover .db-card-emoji-wrap {
  transform: scale(1.15) rotate(4deg);
}

.db-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--surface);
  z-index: 2;
}

.db-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.db-card .hindi {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.db-card .sci {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text3);
  margin-top: 0.2rem;
}

.db-card .tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.db-card .tag {
  display: inline-block;
  border-radius: 2rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.tag-category {
  background: var(--bg2);
  color: var(--green2);
}

.tag-family {
  background: var(--bg2);
  color: var(--text2);
}

.tag-user {
  background: #fff8e1;
  color: #b78103;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .tag-user {
  background: #2a200b;
  color: #fcd580;
  border-color: rgba(252, 213, 128, 0.15);
}

.tag-farming {
  background: var(--healthybg);
  color: var(--healthy);
}

.tag-verified {
  background: var(--infobg);
  color: var(--info);
}

.tag-pending {
  background: var(--moderatebg);
  color: var(--moderate);
}

.community-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem 0.2rem 1.1rem;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
}

/* CONTRIBUTE PAGE */
#contribute-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.contrib-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.contrib-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.contrib-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text3);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.form-card:hover {
  box-shadow: var(--shadow-lg);
}

.form-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.2rem;
  margin-top: 2rem;
  padding: 0.3rem 0 0.45rem 0.8rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--green);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row {
  margin-bottom: 1.4rem;
}

.form-row label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  display: block;
  margin-bottom: 0.45rem;
}

.required-star {
  color: var(--danger);
  margin-left: 0.15rem;
}

.optional-tag {
  font-size: 0.68rem;
  color: var(--text3);
  margin-left: 0.35rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 0.6rem;
  padding: 0.7rem 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all 0.22s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 3.5px rgba(30, 77, 53, 0.1);
}

.form-row select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c7e73'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
}

.form-row input.error-field {
  border-color: var(--danger);
  box-shadow: 0 0 0 3.5px rgba(153, 34, 34, 0.08);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.field-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 0.35rem;
  display: none;
}

.img-upload-area {
  border: 2px dashed var(--border2);
  border-radius: 0.8rem;
  padding: 1.8rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--bg2);
  transition: all 0.22s ease;
}

.img-upload-area:hover {
  border-color: var(--green);
  background: var(--surface);
}

.img-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.img-upload-area p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text3);
  font-weight: 600;
}

.img-preview-small {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 0.6rem;
  display: none;
  margin-top: 0.8rem;
}

.verify-box {
  background: var(--infobg);
  border: 1px solid rgba(31, 83, 135, 0.15);
  border-radius: 0.75rem;
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
}

.verify-box p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--info);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.verify-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.verify-checks label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text2);
  cursor: pointer;
  line-height: 1.5;
}

.verify-checks input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 0.12rem;
  accent-color: var(--green);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.4rem;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 77, 53, 0.25);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* PREVIEW / CONFIRM MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid var(--border2);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  animation: modalScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.modal .modal-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 1.4rem;
}

.preview-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.preview-row .pr-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  min-width: 105px;
}

.preview-row .pr-val {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
}

.modal-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn-confirm {
  flex: 1;
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.btn-confirm:hover {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 77, 53, 0.25);
}

.btn-edit-back {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: 0.75rem;
  padding: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-edit-back:hover {
  background: var(--bg2);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.success-banner {
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: 0.8rem;
  padding: 1.1rem 1.4rem;
  display: none;
  margin-top: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-banner p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--healthy);
  font-weight: 700;
}

/* ── DISEASE DETAIL MODAL (bilingual) ────────────────── */
.modal-wide {
  max-width: 640px;
}

.dm-head {
  position: relative;
  padding-right: 5rem;
}

.dm-sev-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .7rem;
  border-radius: 2rem;
  background: var(--dangerbg);
  color: var(--danger);
}

.dm-sev-badge.sev-low {
  background: var(--healthybg);
  color: var(--healthy);
}

.dm-sev-badge.sev-moderate {
  background: var(--moderatebg);
  color: var(--moderate);
}

.dm-body {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text2);
}

.dm-hi {
  color: var(--gold2);
  font-style: italic;
  font-weight: 500;
}

.dm-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dm-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dm-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green2);
  margin-bottom: .35rem;
}

.dm-hindi-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .9rem 1.1rem;
  margin-top: 1rem;
}

.dm-hindi-block .dm-section-label {
  color: var(--gold);
}

.dm-hindi-block p {
  margin-bottom: .4rem;
}

.disease-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: .32rem .8rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  margin: .2rem;
}

.disease-chip:hover {
  background: var(--dangerbg);
  color: var(--danger);
  border-color: var(--danger);
}

.disease-chip .dc-hi {
  color: var(--text3);
  font-weight: 400;
  font-size: .7rem;
}

.known-diseases-wrap {
  margin-top: .6rem;
}

.k-disease-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  margin: .9rem 0 .4rem;
}

.k-disease-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.k-disease-chip {
  background: var(--dangerbg);
  border: 1px solid rgba(139, 26, 26, .25);
  border-radius: 2rem;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  transition: all .2s;
}

.k-disease-chip:hover {
  background: var(--danger);
  color: #fff;
}

.k-disease-chip-hi {
  font-weight: 400;
  opacity: .85;
  margin-left: .25rem;
}

.success-banner span {
  font-size: .78rem;
  color: var(--green2);
}

/* UPLOAD PAGE */
#upload-page {
  padding-top: 5rem;
  min-height: 100vh;
  display: none;
  background: var(--bg);
}

#upload-page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.upload-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.upload-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .3rem;
}

.upload-header p {
  font-size: .83rem;
  color: var(--text3);
}

.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  width: 100%;
  max-width: 470px;
  box-shadow: 0 4px 22px var(--shadow);
}

.dropzone {
  border: 2px dashed var(--border2);
  border-radius: .8rem;
  padding: 2.3rem 1.4rem;
  cursor: pointer;
  position: relative;
  background: var(--bg2);
  transition: all .25s;
  margin-bottom: 1.1rem;
  text-align: center;
}

.dropzone:hover {
  background: var(--bg3);
  border-color: var(--green3);
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: .55rem;
}

.dropzone p {
  font-size: .8rem;
  color: var(--text3);
}

.dropzone strong {
  color: var(--green);
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  font-size: .73rem;
  color: var(--text3);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-camera {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: .6rem;
  padding: .78rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .25s;
  position: relative;
  margin-bottom: .7rem;
}

.btn-camera input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.btn-camera:hover {
  background: var(--bg3);
  color: var(--text);
}

.preview-section {
  display: none;
  margin-top: 1.1rem;
}

.preview-img-wrap {
  border-radius: .8rem;
  overflow: hidden;
  margin-bottom: .7rem;
  border: 1px solid var(--border);
  max-height: 230px;
}

.preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 230px;
}

.preview-info {
  font-size: .76rem;
  color: var(--text3);
  margin-bottom: .7rem;
}

.btn-analyze {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  padding: .88rem;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .3s;
}

.btn-analyze:hover {
  background: var(--green2);
}

.btn-analyze:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-back {
  margin-top: .9rem;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.btn-back:hover {
  color: var(--text);
}

.error-box {
  background: var(--dangerbg);
  border: 1px solid var(--danger);
  border-radius: .6rem;
  padding: .8rem 1rem;
  font-size: .8rem;
  color: var(--danger);
  display: none;
  margin-top: .7rem;
  line-height: 1.5;
}

/* LOADING */
#loading-page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--bg);
}

#loading-page.active {
  display: flex;
}

.leaf-spinner {
  width: 68px;
  height: 68px;
  animation: leafspin 1.2s ease-in-out infinite;
}

@keyframes leafspin {
  0% {
    transform: rotate(0) scale(1)
  }

  50% {
    transform: rotate(180deg) scale(.78)
  }

  100% {
    transform: rotate(360deg) scale(1)
  }
}

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text2);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.step {
  font-size: 1.0rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: .45rem;
  opacity: .35;
  transition: opacity .4s;
}

.step.active {
  opacity: 1;
  color: var(--green);
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* RESULT */
#result-page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 5rem;
}

#result-page.active {
  display: block;
}

.result-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.result-banner {
  border-radius: 0.8rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  border: 1px solid transparent;
}

.result-banner.matched {
  background: var(--healthybg);
  color: var(--healthy);
  border-color: var(--border);
}

.result-banner.community {
  background: #fff8e1;
  color: #b78103;
  border-color: rgba(255, 193, 7, 0.35);
}

[data-theme="dark"] .result-banner.community {
  background: #2a200b;
  color: #fcd580;
  border-color: rgba(252, 213, 128, 0.2);
}

.result-banner.info {
  background: var(--infobg);
  color: var(--info);
  border-color: rgba(31, 83, 135, 0.15);
}

.result-banner.warning {
  background: var(--dangerbg);
  color: var(--danger);
  border-color: rgba(153, 34, 34, 0.15);
}

.result-hero {
  text-align: center;
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.result-thumb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border2);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 1.2rem;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-thumb:hover {
  transform: scale(1.04) rotate(2deg);
}

.result-plant-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.result-hindi {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.result-sci {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text3);
  margin-bottom: 1rem;
}

.accuracy-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.accuracy-label {
  font-size: 0.75rem;
  color: var(--text3);
}

.accuracy-track {
  flex: 1;
  max-width: 180px;
  height: 6px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}

.accuracy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green3), var(--gold));
  border-radius: 4px;
  transition: width 1.2s ease;
}

.accuracy-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 1rem;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.health-pill.healthy {
  background: var(--healthybg);
  color: var(--healthy);
}

.health-pill.moderate {
  background: var(--moderatebg);
  color: var(--moderate);
}

.health-pill.danger {
  background: var(--dangerbg);
  color: var(--danger);
}

.health-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
}

.taxa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.taxa-item {
  background: var(--bg2);
  border-radius: 0.6rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
}

.taxa-item label {
  font-size: 0.68rem;
  color: var(--text3);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.taxa-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.rec-list {
  list-style: none;
}

.rec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.rec-list li:last-child {
  border-bottom: none;
}

.rec-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--green3);
  margin-top: 0.45rem;
}

.community-note {
  background: var(--moderatebg);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 0.75rem;
  padding: 0.95rem 1.2rem;
  font-size: 0.8rem;
  color: var(--moderate);
  line-height: 1.6;
  margin-top: 0.6rem;
}

.btn-contribute-res {
  width: 100%;
  margin-top: 0.6rem;
  background: var(--surface2);
  border: 1.5px dashed var(--border2);
  border-radius: 0.75rem;
  padding: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-contribute-res:hover {
  background: var(--bg3);
  border-style: solid;
}

.btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.4rem;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: 0.75rem;
  padding: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-home:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-2px);
}

@media(max-width:768px) {
  .back-home-btn {
    top: 4.6rem;
    left: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


/* 3-PART HOME PAGE SECTION SNAP SCROLL */
#home {
  background: var(--bg);
  height: calc(100vh - 75px) !important;
  overflow-y: scroll !important;
  scroll-snap-type: y proximity !important;
  scroll-behavior: smooth !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.home-snap-section {
  min-height: calc(100vh - 75px) !important;
  height: calc(100vh - 75px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem 1rem !important;
  overflow: hidden !important;
  position: relative !important;
}

.home-snap-section.hero-snap-part .home-hero {
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
}

.home-snap-section.weather-snap-part .weather-widget-container {
  margin: 0 auto !important;
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
}

.home-snap-section.features-snap-part {
  min-height: calc(100vh - 75px) !important;
  height: auto !important;
  justify-content: flex-start !important;
  padding: 3rem 1rem 0 1rem !important;
  overflow: visible !important;
}

.home-snap-section.features-snap-part .features {
  margin: 0 auto !important;
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
}

.features-header-title {
  text-align: center;
  margin-bottom: 2.2rem;
}

.features-header-title h2 {
  font-size: 1.85rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.features-header-title p {
  color: var(--text2);
  font-size: 0.95rem;
}

.site-footer-strip {
  width: 100%;
  margin-top: 4rem;
  padding: 1.2rem 2.5rem;
  background: rgba(10, 30, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  border-radius: 14px 14px 0 0;
}

.footer-strip-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand strong {
  color: var(--gold);
}

.footer-version {
  background: rgba(200, 155, 60, 0.25);
  color: #f1c40f;
  padding: 0.2rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(241, 196, 15, 0.4);
  letter-spacing: 0.02em;
}

.footer-dot {
  opacity: 0.4;
}

.footer-desc {
  opacity: 0.85;
  font-size: 0.85rem;
}

.footer-strip-right {
  opacity: 0.75;
  font-size: 0.82rem;
  font-weight: 500;
}

.home-hero {
  min-height: auto !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.hero-left {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 !important;
  z-index: 2 !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.35rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green3);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: var(--text);
  letter-spacing: -0.015em;
  text-shadow: 0 4px 32px var(--surface), 0 2px 16px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface);
}

.hero-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}

.hero-title .gold-word {
  color: var(--gold);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text3);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface);
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 2.2rem;
  max-width: 450px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  text-shadow: 0 2px 12px var(--surface), 0 0 4px var(--surface), 0 0 2px var(--surface);
}

.cta-group {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 1.1rem !important;
  max-width: 680px !important;
  width: 100% !important;
  margin: 1.8rem auto 2.5rem !important;
  justify-content: center !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(30, 77, 53, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(30, 77, 53, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--green);
  border: 1.5px solid var(--border2);
  border-radius: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--bg2);
  transform: translateY(-2px);
  border-color: var(--green);
}

.btn-outline-sm {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--border2);
  border-radius: 0.75rem;
  padding: 0.65rem 1.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.28s ease;
}

.btn-outline-sm:hover {
  background: var(--bg2);
  border-color: var(--green);
}

.btn-outline-lg {
  border-radius: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-size: 0.88rem;
}

.btn-outline-lg:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(30, 77, 53, 0.22);
}

.hero-credits {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text3);
  line-height: 1.75;
}

.hero-credits strong {
  color: var(--text2);
  font-weight: 500;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  margin: auto 0;
}

.hero-right::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 110, 78, 0.05) 0%, transparent 70%);
  z-index: 1;
}

.hero-right svg {
  animation: floatIllustration 7s ease-in-out infinite;
}

@keyframes floatIllustration {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spinCircles 30s linear infinite;
}

@keyframes spinCircles {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.deco-c1 {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.deco-c2 {
  width: 480px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.deco-c3 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media(max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    padding: 3.5rem 3rem;
  }
}

@media(max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.6rem;
  box-shadow: 0 8px 24px rgba(30, 77, 53, 0.02);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  text-align: left;
}

.feat:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(30, 77, 53, 0.08);
  border-color: rgba(46, 204, 113, 0.4);
}

.feat-icon {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%, rgba(46, 204, 113, 0.22) 0%, rgba(30, 77, 53, 0.35) 70%, rgba(15, 37, 25, 0.5) 100%);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.2rem 0;
  color: #2ecc71;
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.28), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(46, 204, 113, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #2ecc71;
  filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.65));
  transition: stroke 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.feat:hover .feat-icon {
  transform: translateY(-3px) scale(1.1);
  background: radial-gradient(circle at 35% 35%, rgba(46, 204, 113, 0.38) 0%, rgba(30, 77, 53, 0.55) 70%, rgba(15, 37, 25, 0.7) 100%);
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 28px rgba(46, 204, 113, 0.55), 0 0 45px rgba(34, 197, 94, 0.3), 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(46, 204, 113, 0.3);
}

.feat:hover .feat-icon svg {
  stroke: #4ade80;
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.9));
}

.feat h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feat p {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.65;
}

.home-footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text3);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.btn-kisan {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(200, 155, 60, 0.15);
}

.btn-kisan:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.22);
}

.kisan-nav {
  border: 1.5px solid rgba(200, 155, 60, 0.4) !important;
  color: var(--gold) !important;
  border-radius: 2rem;
}

.kisan-nav:hover {
  background: rgba(200, 155, 60, 0.08) !important;
  color: var(--gold2) !important;
}

/* ═══ KISAN MODE PAGE ═══ */
/* ═══ KISAN LANDING VIEW ═══ */
.ks-search-input {
  font-family: 'Inter', sans-serif;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all 0.22s ease;
  width: 100%;
  box-sizing: border-box;
}

.ks-search-input:focus {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(200, 155, 60, 0.1);
}

/* ═══ KISAN WEATHER FORECAST ═══ */
.kisan-weather-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.6rem 2.0rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  align-items: center;
  transition: all 0.28s ease;
}

@media(max-width: 640px) {
  .kisan-weather-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    padding: 1.4rem;
  }
}

.kw-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.kw-emoji {
  font-size: 3.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.kw-temp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.kw-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.kw-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kw-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.kw-detail-item {
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kw-right {
  width: 220px;
  border-left: 1px solid var(--border2);
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

@media(max-width: 640px) {
  .kw-right {
    width: auto;
    border-left: none;
    border-top: 1px solid var(--border2);
    padding-left: 0;
    padding-top: 1.2rem;
  }
}

.kw-forecast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.kw-fc-day {
  font-weight: 600;
  color: var(--text2);
  width: 70px;
}

.kw-fc-emoji {
  font-size: 1.2rem;
  text-align: center;
  flex: 1;
}

.kw-fc-temps {
  color: var(--text3);
  font-family: 'Inter', sans-serif;
  text-align: right;
  width: 65px;
}

.kw-status-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-top: 0.55rem;
}

.kw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  display: inline-block;
  animation: kwBlink 2.2s infinite ease-in-out;
}

.kw-status-dot.offline {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

@keyframes kwBlink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.kisan-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

@media(max-width: 640px) {
  .kisan-landing-grid {
    grid-template-columns: 1fr;
  }
}

.kisan-landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.0rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kisan-landing-card:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.kisan-landing-card:active:not(.disabled) {
  transform: scale(0.98);
}

.kl-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.kisan-landing-card:hover:not(.disabled) .kl-card-icon {
  transform: scale(1.08) rotate(4deg);
}

.kisan-landing-card.disabled .kl-card-icon {
  background: var(--bg2);
  border-color: var(--border2);
  opacity: 0.6;
}

.kl-card-content {
  flex: 1;
  min-width: 0;
}

.kl-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.kl-card-content p {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.5;
}

.kl-card-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: bold;
  transition: transform 0.2s ease;
}

.kisan-landing-card:hover .kl-card-arrow:not(.disabled) {
  transform: translateX(5px);
}

.kl-coming-soon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--gold);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.18rem 2.2rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.btn-kisan-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.6rem;
  padding: 0.5rem 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-kisan-back:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateX(-4px);
  box-shadow: var(--shadow-lg);
}

#kisan-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.kisan-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.kisan-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.kisan-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.kisan-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.kisan-title strong {
  color: var(--green);
  font-weight: 700;
}

.kisan-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text3);
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.kisan-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.2rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.kf-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--green);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.kf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media(max-width: 540px) {
  .kf-grid {
    grid-template-columns: 1fr;
  }
}

.kf-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kf-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.kf-group select {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 0.6rem;
  padding: 0.7rem 2.2rem 0.7rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text) !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c7e73'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  transition: all 0.22s ease;
  outline: none;
}

.kf-group select:focus {
  border-color: var(--green) !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 3.5px rgba(30, 77, 53, 0.1) !important;
}

.kf-group select:hover {
  border-color: var(--green2) !important;
}

.auto-season-badge {
  display: inline-block;
  background: var(--healthybg);
  color: var(--healthy);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.12rem 0.5rem;
  margin-left: 0.35rem;
  letter-spacing: 0.03em;
}

.kisan-mode-row {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.k-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border2);
  border-radius: 2rem;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.k-toggle-track.on {
  background: var(--green2);
}

.k-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.k-toggle-track.on .k-toggle-knob {
  transform: translateX(20px);
}

.k-mode-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text2);
}

.k-mode-lbl strong {
  color: var(--green);
}

.btn-kisan-go {
  width: 100%;
  margin-top: 1.6rem;
  background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: 0.65rem;
  padding: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.btn-kisan-go:hover {
  background: linear-gradient(135deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(30, 77, 53, 0.25);
}

.btn-kisan-go:active {
  transform: translateY(0.5px);
}

.soil-suggest-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  display: none;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.soil-suggest-strip.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.ssl-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ssl-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ssl-pill {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
}

.k-smart-tip {
  background: var(--healthybg);
  border: 1px solid rgba(30, 77, 53, 0.14);
  border-radius: 0.8rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--healthy);
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.6;
}

.k-results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.k-crop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card:hover {
  border-color: var(--green2);
  box-shadow: var(--shadow-lg);
}

.k-crop-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}

.k-crop-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.k-crop-card:hover .k-crop-emoji {
  transform: scale(1.06);
}

.k-crop-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.k-crop-hindi {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: 0.4rem;
}

.k-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.kb {
  display: inline-flex;
  align-items: center;
  border-radius: 2rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kb-hi {
  background: var(--healthybg);
  color: var(--healthy);
}

.kb-su {
  background: var(--moderatebg);
  color: var(--moderate);
}

.kb-ri {
  background: var(--dangerbg);
  color: var(--danger);
}

.kb-season {
  background: var(--bg2);
  color: var(--text2);
}

.kb-water {
  background: var(--infobg);
  color: var(--info);
}

.k-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card.open .k-chevron {
  transform: rotate(180deg);
}

.k-crop-body {
  display: none;
  padding: 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.k-crop-card.open .k-crop-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.k-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media(max-width:480px) {
  .k-info-grid {
    grid-template-columns: 1fr;
  }
}

.k-info-item .k-il {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.k-info-item .k-iv {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 0.2rem;
}

.k-advice {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.k-irr-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.k-stage {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.k-stage:last-child {
  border-bottom: none;
}

.k-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green3);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.k-stage-text {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.65;
}

.k-stage-text strong {
  color: var(--text);
  font-weight: 600;
}

.k-critical-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--danger);
  margin-left: 0.4rem;
}

.k-expert-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
}

.k-expert-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green2);
  margin-bottom: 0.75rem;
}

.k-expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.k-level-pills {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.k-level-pill {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.8rem;
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text3);
  transition: all 0.22s ease;
  line-height: 1.2;
}

.k-level-pill span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text3);
  transition: color 0.22s;
}

.k-level-pill:hover {
  border-color: var(--green3);
  color: var(--green);
  background: var(--surface);
}

.k-level-pill:hover span {
  color: var(--green);
}

.k-level-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.k-level-pill.active span {
  color: rgba(255, 255, 255, 0.75);
}

/* Central/State Toggle Pills */
.ks-toggle-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.ks-toggle-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text2);
  transition: all 0.22s ease;
  line-height: 1.3;
}

.ks-toggle-pill span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text3);
  transition: color 0.22s;
}

.ks-toggle-pill:hover {
  border-color: var(--green3);
  color: var(--green);
  background: var(--surface);
}

.ks-toggle-pill:hover span {
  color: var(--green);
}

.ks-toggle-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.18);
}

.ks-toggle-pill.active span {
  color: rgba(255, 255, 255, 0.75);
}

@media(max-width: 480px) {
  .k-expert-grid {
    grid-template-columns: 1fr;
  }
}

.k-el {
  font-size: 0.68rem;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.k-ev {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 0.12rem;
}

/* ═══ GOVERNMENT SCHEMES REDESIGN CSS ═══ */
.k-scheme-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.k-crop-card.open .k-scheme-body-wrapper {
  grid-template-rows: 1fr;
}

.k-scheme-body-content {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 1.4rem;
  background: var(--bg);
}

.k-crop-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.k-crop-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(184, 144, 58, 0.12);
}

.k-crop-head {
  user-select: none;
  outline: none;
}

.k-crop-head:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gold);
  border-radius: 0.9rem 0.9rem 0 0;
}

.k-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  color: var(--gold);
}

.k-crop-card.open .k-chevron {
  transform: rotate(180deg);
}

/* Schemes summaries & summary boxes */
.ks-search-summary {
  background: rgba(184, 144, 58, 0.08);
  border: 1px solid rgba(184, 144, 58, 0.2);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ks-search-summary .lbl {
  color: var(--text3);
  font-weight: 500;
}

.ks-search-summary .val {
  color: var(--gold);
  font-weight: 700;
}

.ks-section-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.ks-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ks-box-content {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.6;
}

/* Highlighting matching search queries */
.ks-highlight {
  background: rgba(184, 144, 58, 0.22);
  color: inherit;
  font-weight: bold;
  border-radius: 2px;
  padding: 0 2px;
}

/* Skeletons loader */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.skeleton-line {
  background: var(--border2);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.skeleton-line.title {
  height: 20px;
  width: 60%;
}

.skeleton-line.badge {
  height: 16px;
  width: 25%;
  display: inline-block;
  margin-right: 0.5rem;
}

.skeleton-line.desc {
  height: 12px;
  width: 90%;
}

.skeleton-line.desc.short {
  width: 40%;
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s infinite ease-in-out;
}

@keyframes skeletonPulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Floating back-to-top button */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back-to-top:hover {
  background: var(--green2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-back-to-top:active {
  transform: translateY(0);
}

/* Share link Toast alert */
.share-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1.5px solid var(--gold);
  color: var(--text);
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 15px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Empty State Styles */
.ks-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.ks-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ks-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ks-empty-desc {
  font-size: 0.84rem;
  color: var(--text3);
  line-height: 1.5;
}

/* KISAN WEATHER ADVISORY VIEW CSS */
#kisan-weather-view {
  display: none;
}

.kw-main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 16px var(--shadow);
}

.kw-location-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media(max-width: 540px) {
  .kw-location-row {
    flex-direction: column;
  }
}

.kw-current-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

@media(max-width: 640px) {
  .kw-current-grid {
    grid-template-columns: 1fr;
  }
}

.kw-curr-left {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 0.9rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kw-temp-large {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text);
  margin: 0.5rem 0;
  font-family: 'Cormorant Garamond', serif;
}

.kw-temp-large span {
  font-size: 1.8rem;
  color: var(--gold);
}

.kw-cond-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.kw-cond-hindi {
  font-size: 0.9rem;
  color: var(--text3);
  margin-top: 0.2rem;
}

.kw-curr-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.kw-detail-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kw-detail-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kw-detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.2rem;
}

/* Hourly Slider */
.kw-section-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin: 1.5rem 0 0.8rem;
}

.kw-hourly-slider {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  scroll-behavior: smooth;
}

/* Scrollbar */
.kw-hourly-slider::-webkit-scrollbar {
  height: 6px;
}

.kw-hourly-slider::-webkit-scrollbar-track {
  background: var(--bg2);
  border-radius: 4px;
}

.kw-hourly-slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.kw-hourly-card {
  flex-shrink: 0;
  width: 75px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  padding: 0.8rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s;
}

.kw-hourly-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.kw-hourly-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
}

.kw-hourly-emoji {
  font-size: 1.4rem;
}

.kw-hourly-temp {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.kw-hourly-pop {
  font-size: 0.6rem;
  color: var(--info);
  font-weight: 700;
}

/* Daily Cards */
.kw-daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kw-daily-row {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kw-daily-day {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  width: 90px;
}

.kw-daily-cond {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.kw-daily-cond span {
  font-size: 0.78rem;
  color: var(--text2);
}

.kw-daily-temps {
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.kw-daily-max {
  color: var(--text);
}

.kw-daily-min {
  color: var(--text3);
}

/* Advisories */
.kw-advisories {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.kw-adv-box {
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  line-height: 1.55;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
}

.kw-adv-box.warning {
  background: var(--dangerbg);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.18);
}

.kw-adv-box.success {
  background: var(--healthybg);
  color: var(--healthy);
  border: 1px solid rgba(40, 167, 69, 0.18);
}

.kw-adv-box.info {
  background: var(--infobg);
  color: var(--info);
  border: 1px solid rgba(23, 162, 184, 0.18);
}

.kw-adv-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

/* DB PAGE */
#db-page {
  padding-top: 5rem;
  background: var(--bg);
}

.db-header {
  padding: 0;
  margin-bottom: 0.8rem;
}

.db-hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #09130e 0%, #152c1e 50%, #1e4d35 100%) !important;
  padding: 3.8rem 2rem 3.2rem;
  text-align: center;
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(77, 184, 118, 0.35) !important;
}

.db-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(77, 184, 118, 0.25) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 80%);
  pointer-events: none;
}

.db-hero-content {
  position: relative;
  z-index: 2;
}

.db-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(5px);
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.0rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.db-header p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

.db-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.db-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.8rem 1.6rem;
  min-width: 105px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s;
}

.db-stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.db-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #FF9933; /* Indian Flag Orange */
  line-height: 1;
}

.db-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.db-stat-card.farming .db-stat-num {
  color: #FFFFFF; /* Indian Flag White */
}

.db-stat-card.community .db-stat-num {
  color: #138808; /* Indian Flag Green */
}

.db-hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.dhl {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: dhlfloat 8s ease-in-out infinite;
}

.dhl-1 {
  top: 8%;
  left: 5%;
  font-size: 2.4rem;
  animation-delay: 0s;
  animation-duration: 9s;
}

.dhl-2 {
  top: 15%;
  right: 8%;
  font-size: 1.8rem;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.dhl-3 {
  bottom: 20%;
  left: 12%;
  font-size: 1.5rem;
  animation-delay: 3s;
  animation-duration: 8.5s;
}

.dhl-4 {
  bottom: 10%;
  right: 15%;
  font-size: 2rem;
  animation-delay: 2s;
  animation-duration: 10s;
}

.dhl-5 {
  top: 45%;
  left: 2%;
  font-size: 1.3rem;
  animation-delay: 4s;
  animation-duration: 7.5s;
}

.dhl-6 {
  top: 35%;
  right: 3%;
  font-size: 1.6rem;
  animation-delay: 0.8s;
  animation-duration: 9.5s;
}

@keyframes dhlfloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(6deg);
  }

  66% {
    transform: translateY(5px) rotate(-4deg);
  }
}

.db-filters {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 2rem 1.4rem;
}

.filter-btn {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(30, 77, 53, 0.15);
}

.db-search {
  max-width: 950px;
  width: 90%;
  margin: 0 auto 1.8rem;
  padding: 0 1.5rem;
  position: relative;
}

.db-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 3rem;
  padding: 0.95rem 3.5rem 0.95rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.db-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 77, 53, 0.1);
}

/* Duplicate voiceSearchBtn removed in favor of unified rule */

.search-suggestions {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  max-height: 360px;
  overflow-y: auto;
}

.sg-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  padding: 0.65rem 1rem 0.4rem;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.18s;
}

.sg-item:hover,
.sg-item.active {
  background: var(--bg2);
}

.sg-item .sg-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sg-item .sg-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-item .sg-sub {
  font-size: 0.75rem;
  color: var(--text3);
  flex-shrink: 0;
}

.sg-clear-recent {
  font-size: 0.75rem;
  color: var(--text3);
  cursor: pointer;
  padding: 0.4rem 1rem;
  text-align: right;
  transition: color 0.18s;
}

.sg-clear-recent:hover {
  color: var(--green);
}

#searchAiPanel {
  margin-top: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.8rem;
  background: var(--infobg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
}

#searchAiPanel .ai-tag {
  display: inline-block;
  background: rgba(30, 77, 53, 0.08);
  color: var(--green);
  border-radius: 1rem;
  padding: 0.15rem 0.65rem;
  margin: 0.15rem 0.3rem 0.15rem 0;
  font-weight: 600;
  font-size: 0.75rem;
}

#searchDidYouMean {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2);
}

#searchDidYouMean button {
  background: none;
  border: none;
  color: var(--green3);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0;
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.db-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.db-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.db-card-hero {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  border-radius: 1.25rem 1.25rem 0 0;
}

.db-card:hover .db-card-hero {
  transform: scale(1.04);
}

.db-card-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.db-card-emoji-wrap {
  font-size: 3.2rem;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.db-card:hover .db-card-emoji-wrap {
  transform: scale(1.15) rotate(4deg);
}

.db-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--surface);
  z-index: 2;
}

.db-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.db-card .hindi {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.db-card .sci {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text3);
  margin-top: 0.2rem;
}

.db-card .tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.db-card .tag {
  display: inline-block;
  border-radius: 2rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.tag-category {
  background: var(--bg2);
  color: var(--green2);
}

.tag-family {
  background: var(--bg2);
  color: var(--text2);
}

.tag-user {
  background: #fff8e1;
  color: #b78103;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .tag-user {
  background: #2a200b;
  color: #fcd580;
  border-color: rgba(252, 213, 128, 0.15);
}

.tag-farming {
  background: var(--healthybg);
  color: var(--healthy);
}

.tag-verified {
  background: var(--infobg);
  color: var(--info);
}

.tag-pending {
  background: var(--moderatebg);
  color: var(--moderate);
}

.community-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem 0.2rem 1.1rem;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
}

/* CONTRIBUTE PAGE */
#contribute-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.contrib-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.contrib-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}

.contrib-sub {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--text3);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.2rem;
  box-shadow: 0 4px 24px var(--shadow);
  transition: box-shadow .2s;
}

.form-section-title {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 1.2rem;
  margin-top: 1.8rem;
  padding: .3rem 0 .4rem .75rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--green);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row {
  margin-bottom: 1.2rem;
}

.form-row label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  display: block;
  margin-bottom: .45rem;
}

.required-star {
  color: var(--danger);
  margin-left: .15rem;
}

.optional-tag {
  font-size: .65rem;
  color: var(--text3);
  margin-left: .3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: .65rem;
  padding: .65rem .85rem;
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 3.5px rgba(30, 77, 53, 0.12);
}

.form-row input.error-field {
  border-color: var(--danger);
}

.form-row textarea {
  resize: vertical;
  min-height: 75px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-hint {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: var(--text3);
  margin-top: .35rem;
  line-height: 1.45;
}

.field-error {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: var(--danger);
  margin-top: .25rem;
  display: none;
}

.img-upload-area {
  border: 2px dashed var(--border2);
  border-radius: .7rem;
  padding: 1.6rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--surface2);
  transition: all .25s;
}

.img-upload-area:hover {
  border-color: var(--green);
  background: var(--surface);
}

.img-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.img-upload-area p {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  font-weight: 600;
}

.img-preview-small {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: .5rem;
  display: none;
  margin-top: .7rem;
}

.verify-box {
  background: var(--infobg);
  border: 1px solid var(--info);
  border-radius: .6rem;
  padding: 1rem 1.1rem;
  margin-top: 1.2rem;
}

.verify-box p {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: var(--info);
  font-weight: 700;
  margin-bottom: .6rem;
}

.verify-checks {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.verify-checks label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: var(--text2);
  cursor: pointer;
  line-height: 1.5;
}

.verify-checks input[type=checkbox] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: .15rem;
  accent-color: var(--green);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(160deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: .65rem;
  padding: .88rem;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.2rem;
  transition: all .25s;
  letter-spacing: .01em;
  box-shadow: 0 3px 12px rgba(30, 77, 53, 0.25);
}

.btn-submit:hover {
  background: linear-gradient(160deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 5px 18px rgba(30, 77, 53, 0.3);
}

.btn-submit:active {
  transform: translateY(0.5px);
  box-shadow: 0 2px 6px rgba(30, 77, 53, 0.2);
}

.btn-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* PREVIEW / CONFIRM MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 1.2rem;
  border: 1px solid var(--border2);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}

.modal .modal-sub {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: 1.3rem;
}

.preview-row {
  display: flex;
  gap: .6rem;
  margin-bottom: .6rem;
  align-items: flex-start;
}

.preview-row .pr-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  min-width: 100px;
}

.preview-row .pr-val {
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  color: var(--text);
  flex: 1;
}

.modal-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
}

.btn-confirm {
  flex: 1;
  background: linear-gradient(160deg, var(--green2) 0%, var(--green) 100%);
  color: #fff;
  border: none;
  border-radius: .65rem;
  padding: .8rem;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 3px 12px rgba(30, 77, 53, 0.25);
}

.btn-confirm:hover {
  background: linear-gradient(160deg, var(--green3) 0%, var(--green2) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(30, 77, 53, 0.3);
}

.btn-edit-back {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: .65rem;
  padding: .8rem;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: all .25s;
}

.btn-edit-back:hover {
  background: var(--surface);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.success-banner {
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: .7rem;
  padding: 1rem 1.2rem;
  display: none;
  margin-top: 1rem;
  text-align: center;
}

.success-banner p {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--healthy);
  font-weight: 700;
}

/* ── DISEASE DETAIL MODAL (bilingual) ────────────────── */
.modal-wide {
  max-width: 640px;
}

.dm-head {
  position: relative;
  padding-right: 5rem;
}

.dm-sev-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .7rem;
  border-radius: 2rem;
  background: var(--dangerbg);
  color: var(--danger);
}

.dm-sev-badge.sev-low {
  background: var(--healthybg);
  color: var(--healthy);
}

.dm-sev-badge.sev-moderate {
  background: var(--moderatebg);
  color: var(--moderate);
}

.dm-body {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text2);
}

.dm-hi {
  color: var(--gold2);
  font-style: italic;
  font-weight: 500;
}

.dm-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dm-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dm-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green2);
  margin-bottom: .35rem;
}

.dm-hindi-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .9rem 1.1rem;
  margin-top: 1rem;
}

.dm-hindi-block .dm-section-label {
  color: var(--gold);
}

.dm-hindi-block p {
  margin-bottom: .4rem;
}

.disease-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: .32rem .8rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  margin: .2rem;
}

.disease-chip:hover {
  background: var(--dangerbg);
  color: var(--danger);
  border-color: var(--danger);
}

.disease-chip .dc-hi {
  color: var(--text3);
  font-weight: 400;
  font-size: .7rem;
}

.known-diseases-wrap {
  margin-top: .6rem;
}

.k-disease-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  margin: .9rem 0 .4rem;
}

.k-disease-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.k-disease-chip {
  background: var(--dangerbg);
  border: 1px solid rgba(139, 26, 26, .25);
  border-radius: 2rem;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  transition: all .2s;
}

.k-disease-chip:hover {
  background: var(--danger);
  color: #fff;
}

.k-disease-chip-hi {
  font-weight: 400;
  opacity: .85;
  margin-left: .25rem;
}

.success-banner span {
  font-size: .78rem;
  color: var(--green2);
}

/* UPLOAD PAGE */
#upload-page {
  padding-top: 5rem;
  min-height: 100vh;
  display: none;
  background: var(--bg);
}

#upload-page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.upload-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.upload-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .3rem;
}

.upload-header p {
  font-size: .83rem;
  color: var(--text3);
}

.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  width: 100%;
  max-width: 470px;
  box-shadow: 0 4px 22px var(--shadow);
}

.dropzone {
  border: 2px dashed var(--border2);
  border-radius: .8rem;
  padding: 2.3rem 1.4rem;
  cursor: pointer;
  position: relative;
  background: var(--bg2);
  transition: all .25s;
  margin-bottom: 1.1rem;
  text-align: center;
}

.dropzone:hover {
  background: var(--bg3);
  border-color: var(--green3);
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: .55rem;
}

.dropzone p {
  font-size: .8rem;
  color: var(--text3);
}

.dropzone strong {
  color: var(--green);
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  font-size: .73rem;
  color: var(--text3);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-camera {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: .6rem;
  padding: .78rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .25s;
  position: relative;
  margin-bottom: .7rem;
}

.btn-camera input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.btn-camera:hover {
  background: var(--bg3);
  color: var(--text);
}

.preview-section {
  display: none;
  margin-top: 1.1rem;
}

.preview-img-wrap {
  border-radius: .8rem;
  overflow: hidden;
  margin-bottom: .7rem;
  border: 1px solid var(--border);
  max-height: 230px;
}

.preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 230px;
}

.preview-info {
  font-size: .76rem;
  color: var(--text3);
  margin-bottom: .7rem;
}

.btn-analyze {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  padding: .88rem;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .3s;
}

.btn-analyze:hover {
  background: var(--green2);
}

.btn-analyze:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-back {
  margin-top: .9rem;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.btn-back:hover {
  color: var(--text);
}

.error-box {
  background: var(--dangerbg);
  border: 1px solid var(--danger);
  border-radius: .6rem;
  padding: .8rem 1rem;
  font-size: .8rem;
  color: var(--danger);
  display: none;
  margin-top: .7rem;
  line-height: 1.5;
}

/* LOADING */
#loading-page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--bg);
}

#loading-page.active {
  display: flex;
}

.leaf-spinner {
  width: 68px;
  height: 68px;
  animation: leafspin 1.2s ease-in-out infinite;
}

@keyframes leafspin {
  0% {
    transform: rotate(0) scale(1)
  }

  50% {
    transform: rotate(180deg) scale(.78)
  }

  100% {
    transform: rotate(360deg) scale(1)
  }
}

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text2);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.step {
  font-size: 1.0rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: .45rem;
  opacity: .35;
  transition: opacity .4s;
}

.step.active {
  opacity: 1;
  color: var(--green);
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* RESULT */
#result-page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 5rem;
}

#result-page.active {
  display: block;
}

.result-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.result-banner {
  border-radius: .7rem;
  padding: .65rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.3rem;
}

.result-banner.matched {
  background: var(--healthybg);
  color: var(--healthy);
  border: 1px solid var(--healthy);
}

.result-banner.community {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

[data-theme="dark"] .result-banner.community {
  background: #2a2000;
  color: #d4a84b;
  border-color: #d4a84b;
}

.result-banner.info {
  background: var(--infobg);
  color: var(--info);
  border: 1px solid var(--info);
}

.result-banner.warning {
  background: var(--dangerbg);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.result-hero {
  text-align: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.result-thumb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border2);
  box-shadow: 0 8px 28px var(--shadow);
  margin: 0 auto 1.1rem;
  display: block;
}

.result-plant-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .18rem;
}

.result-hindi {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .18rem;
}

.result-sci {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .92rem;
  color: var(--text3);
  margin-bottom: .9rem;
}

.accuracy-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  justify-content: center;
}

.accuracy-label {
  font-size: .73rem;
  color: var(--text3);
}

.accuracy-track {
  flex: 1;
  max-width: 175px;
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.accuracy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green3), var(--gold2));
  border-radius: 3px;
  transition: width 1.2s ease;
}

.accuracy-num {
  font-size: .86rem;
  font-weight: 700;
  color: var(--green);
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .95rem;
  padding: 1.3rem;
  margin-bottom: .85rem;
}

.card-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: .85rem;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .95rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .65rem;
}

.health-pill.healthy {
  background: var(--healthybg);
  color: var(--healthy);
}

.health-pill.moderate {
  background: var(--moderatebg);
  color: var(--moderate);
}

.health-pill.danger {
  background: var(--dangerbg);
  color: var(--danger);
}

.health-desc {
  font-size: .83rem;
  color: var(--text2);
  line-height: 1.7;
}

.taxa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.taxa-item {
  background: var(--bg2);
  border-radius: .5rem;
  padding: .65rem .85rem;
}

.taxa-item label {
  font-size: .65rem;
  color: var(--text3);
  display: block;
  margin-bottom: .12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.taxa-item span {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
}

.rec-list {
  list-style: none;
}

.rec-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.6;
  padding: .48rem 0;
  border-bottom: 1px solid var(--border);
}

.rec-list li:last-child {
  border-bottom: none;
}

.rec-dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--green3);
  margin-top: .47rem;
}

.community-note {
  background: var(--moderatebg);
  border: 1px solid rgba(184, 144, 58, .3);
  border-radius: .6rem;
  padding: .8rem 1rem;
  font-size: .76rem;
  color: var(--moderate);
  line-height: 1.55;
  margin-top: .5rem;
}

.btn-contribute-res {
  width: 100%;
  margin-top: .5rem;
  background: var(--surface2);
  border: 1.5px dashed var(--border2);
  border-radius: .6rem;
  padding: .78rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .25s;
}

.btn-contribute-res:hover {
  background: var(--bg3);
  border-style: solid;
}

.btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.1rem;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: .6rem;
  padding: .82rem;
  font-family: 'Nunito', sans-serif;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .3s;
}

.btn-home:hover {
  background: var(--bg3);
  color: var(--text);
  transform: translateY(-2px);
}

@media(max-width:768px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: calc(60px + 1rem) 1.2rem 1rem;
  }

  .hero-left {
    padding: 0;
  }

  .hero-right {
    display: none;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.2rem;
  }

  nav {
    padding: .75rem 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .db-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    padding: 0 .8rem 2rem;
  }

  .modal {
    margin: .5rem;
  }
}

/* ── BOTANICAL BACKGROUND ── */
.botanical-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.botanical-bg svg {
  position: absolute;
  opacity: 1;
}

.bl-leaf {
  fill: var(--green2);
}

.bl-leaf-light {
  fill: var(--green3);
}

.bl-gold {
  fill: var(--gold);
}

.bl-tl {
  top: -40px;
  left: -30px;
  width: 280px;
  opacity: .055;
  transform: rotate(-25deg);
}

.bl-tr {
  top: -20px;
  right: -50px;
  width: 240px;
  opacity: .05;
  transform: rotate(30deg) scaleX(-1);
}

.bl-bl {
  bottom: -60px;
  left: -40px;
  width: 320px;
  opacity: .055;
  transform: rotate(20deg);
}

.bl-br {
  bottom: -30px;
  right: -30px;
  width: 260px;
  opacity: .05;
  transform: rotate(-18deg) scaleX(-1);
}

.bl-ml {
  top: 35%;
  left: -15px;
  width: 180px;
  opacity: .04;
  transform: rotate(-10deg);
}

.bl-mr {
  top: 45%;
  right: -15px;
  width: 160px;
  opacity: .04;
  transform: rotate(8deg) scaleX(-1);
}

.bl-dot {
  border-radius: 50%;
  position: absolute;
  background: var(--green3);
}

[data-theme="dark"] .bl-leaf {
  fill: var(--green3);
}

[data-theme="dark"] .bl-leaf-light {
  fill: var(--green2);
}

[data-theme="dark"] .bl-gold {
  fill: var(--gold2);
}

[data-theme="dark"] .botanical-bg svg {
  opacity: .7;
}

[data-theme="dark"] .bl-tl,
[data-theme="dark"] .bl-tr,
[data-theme="dark"] .bl-bl,
[data-theme="dark"] .bl-br {
  opacity: .06;
}

[data-theme="dark"] .bl-ml,
[data-theme="dark"] .bl-mr {
  opacity: .05;
}

/* ── PLANT DETAIL PAGE ── */
#plant-detail-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

#plant-detail-page.active {
  display: block;
}

.detail-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.detail-img-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: .8rem;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--surface2);
}

.detail-hero-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  display: block;
}

.detail-emoji-wrap {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-emoji {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.detail-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.detail-hero-text .d-hindi {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .18rem;
}

.detail-hero-text .d-sci {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--text3);
  margin-bottom: .7rem;
}

.detail-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.d-tag {
  padding: .22rem .7rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
}

.d-tag-season-rabi {
  background: #e8f0fb;
  color: #1a4a7a;
}

.d-tag-season-kharif {
  background: #e8f2ec;
  color: #1e4d35;
}

.d-tag-season-zaid {
  background: #fff3cd;
  color: #856404;
}

.d-tag-season-annual {
  background: var(--surface2);
  color: var(--text3);
}

.d-tag-cat {
  background: var(--surface2);
  color: var(--text2);
}

.d-tag-verified {
  background: var(--infobg);
  color: var(--info);
}

.d-tag-community {
  background: #fff3cd;
  color: #856404;
}

[data-theme="dark"] .d-tag-season-rabi {
  background: #0f1f35;
  color: #5b9bd5;
}

[data-theme="dark"] .d-tag-season-kharif {
  background: #0f2a1a;
  color: #4db876;
}

[data-theme="dark"] .d-tag-season-zaid {
  background: #2a2000;
  color: #d4a84b;
}

[data-theme="dark"] .d-tag-community {
  background: #2a2000;
  color: #d4a84b;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .95rem;
  padding: 1.4rem;
  margin-bottom: .9rem;
}

.detail-card-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.detail-item {
  background: var(--bg2);
  border-radius: .5rem;
  padding: .7rem .9rem;
}

.detail-item label {
  font-size: .65rem;
  color: var(--text3);
  display: block;
  margin-bottom: .15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.detail-item span {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
}

.detail-item.full {
  grid-column: 1/-1;
}

.detail-item span.multiline {
  font-weight: 400;
  font-size: .83rem;
  line-height: 1.65;
  color: var(--text2);
}

.farming-season-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .85rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
}

.season-chip.rabi {
  background: #e8f0fb;
  color: #1a4a7a;
}

.season-chip.kharif {
  background: #e8f2ec;
  color: #1e4d35;
}

.season-chip.zaid {
  background: #fff3cd;
  color: #856404;
}

[data-theme="dark"] .season-chip.rabi {
  background: #0f1f35;
  color: #5b9bd5;
}

[data-theme="dark"] .season-chip.kharif {
  background: #0f2a1a;
  color: #4db876;
}

[data-theme="dark"] .season-chip.zaid {
  background: #2a2000;
  color: #d4a84b;
}

.add-info-btn {
  width: 100%;
  background: transparent;
  border: 1.5px dashed var(--border2);
  border-radius: .7rem;
  padding: .85rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: .5rem;
}

.add-info-btn:hover {
  border-color: var(--green3);
  color: var(--green);
  background: var(--surface2);
}

.btn-back-detail {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem 1.1rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(30, 77, 53, 0.25);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  letter-spacing: .01em;
}

.btn-back-detail:hover {
  background: var(--green2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 77, 53, 0.35);
  color: #fff;
}

.community-warn {
  background: var(--moderatebg);
  border: 1px solid rgba(184, 144, 58, .3);
  border-radius: .6rem;
  padding: .8rem 1rem;
  font-size: .76rem;
  color: var(--moderate);
  line-height: 1.6;
  margin-bottom: .9rem;
}

/* ADD INFO MODAL */
.add-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.add-info-overlay.open {
  display: flex;
}

.add-info-modal {
  background: var(--surface);
  border-radius: 1.1rem;
  border: 1px solid var(--border2);
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.8rem;
}

.add-info-modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.add-info-modal .sub {
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.ai-form-row {
  margin-bottom: 1rem;
}

.ai-form-row label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text3);
  display: block;
  margin-bottom: .35rem;
}

.ai-form-row input,
.ai-form-row textarea,
.ai-form-row select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: .45rem;
  padding: .58rem .85rem;
  font-family: 'Nunito', sans-serif;
  font-size: .83rem;
  color: var(--text);
  outline: none;
}

.ai-form-row input:focus,
.ai-form-row textarea:focus {
  border-color: var(--green3);
}

.ai-form-row textarea {
  min-height: 70px;
  resize: vertical;
}

.ai-modal-actions {
  display: flex;
  gap: .7rem;
  margin-top: 1.2rem;
}

.btn-ai-submit {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .5rem;
  padding: .75rem;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
}

.btn-ai-submit:hover {
  background: var(--green2);
}

.btn-ai-cancel {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: .5rem;
  padding: .75rem;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .3s;
}

.btn-ai-cancel:hover {
  background: var(--bg3);
}

.ai-success {
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: .5rem;
  padding: .7rem 1rem;
  font-size: .8rem;
  color: var(--healthy);
  font-weight: 600;
  display: none;
  margin-top: .8rem;
  text-align: center;
}

#rp_mic_btn:hover,
#df_mic_btn:hover {
  background-color: rgba(77, 184, 118, 0.15);
  color: var(--green);
  transform: scale(1.1);
}

#rp_mic_btn.recording,
#df_mic_btn.recording {
  color: var(--danger) !important;
  background-color: rgba(235, 87, 87, 0.15) !important;
  animation: micPulse 1.5s infinite ease-in-out;
}

@keyframes micPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── DEV PANEL ── */
#dev-panel-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

#dev-panel-page.active {
  display: block;
}

.dev-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.dev-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 380px;
  margin: 0 auto;
}

.dev-login-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: .25rem;
}

.dev-login-card p {
  font-size: .8rem;
  color: var(--text3);
  margin-bottom: 1.5rem;
}

.dev-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: .8rem;
}

.dev-panel-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.dev-stats {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.dev-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .8rem 1.2rem;
  text-align: center;
}

.dev-stat-box .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.dev-stat-box .lbl {
  font-size: .7rem;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.3rem;
  margin-bottom: .9rem;
}

.pending-card.approved {
  border-color: var(--healthy);
  border-left: 4px solid var(--healthy);
}

.pending-card.rejected {
  border-color: var(--danger);
  border-left: 4px solid var(--danger);
  opacity: .65;
}

.pending-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.pending-card .pc-hindi {
  font-size: .88rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .2rem;
}

.pending-card .pc-sci {
  font-size: .75rem;
  font-style: italic;
  color: var(--text3);
  margin-bottom: .6rem;
}

.pending-meta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.pending-meta span {
  background: var(--bg2);
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .7rem;
  color: var(--text3);
  font-weight: 600;
}

.pending-notes {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: .9rem;
  background: var(--bg2);
  border-radius: .5rem;
  padding: .65rem .85rem;
}

.pending-actions {
  display: flex;
  gap: .6rem;
}

.btn-approve {
  flex: 1;
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: .5rem;
  padding: .62rem;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--healthy);
  cursor: pointer;
  transition: all .25s;
}

.btn-approve:hover {
  background: var(--healthy);
  color: #fff;
}

.btn-reject {
  flex: 1;
  background: var(--dangerbg);
  border: 1px solid var(--danger);
  border-radius: .5rem;
  padding: .62rem;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
  transition: all .25s;
}

.btn-reject:hover {
  background: var(--danger);
  color: #fff;
}

.btn-delete-dev {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: .5rem;
  padding: .62rem .9rem;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  cursor: pointer;
  transition: all .25s;
}

.btn-delete-dev:hover {
  background: var(--dangerbg);
  color: var(--danger);
}

.empty-dev {
  text-align: center;
  padding: 3rem;
  color: var(--text3);
  font-size: .88rem;
}

.empty-dev div {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}

.dev-logout {
  background: none;
  border: 1px solid var(--border2);
  border-radius: .5rem;
  padding: .4rem .9rem;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  cursor: pointer;
}

.dev-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ── REPORT / CONTRIBUTE INFO PAGE ── */
.btn-report-open {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  padding: .78rem 1.8rem;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-report-open:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

#report-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.report-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.report-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .25rem;
}

.report-sub {
  font-size: .83rem;
  color: var(--text3);
  margin-bottom: 1.6rem;
  line-height: 1.65;
}

.report-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.4rem;
  background: var(--surface2);
  border-radius: .7rem;
  padding: .35rem;
}

.report-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: .5rem;
  padding: .6rem .5rem;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  transition: all .22s;
  text-align: center;
}

.report-tab.active {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 6px var(--shadow);
}

.report-tab:hover:not(.active) {
  color: var(--text);
}

.report-panel {
  display: none;
}

.report-panel.active {
  display: block;
  animation: fadeIn .3s ease;
}

.r-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin: 1.3rem 0 .8rem;
  padding-bottom: .38rem;
  border-bottom: 1px solid var(--border);
}

.r-section:first-child {
  margin-top: 0;
}

.r-row {
  margin-bottom: 1rem;
}

.r-row label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text3);
  display: block;
  margin-bottom: .36rem;
}

.r-row input,
.r-row select,
.r-row textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.r-row input:focus,
.r-row select:focus,
.r-row textarea:focus {
  border-color: var(--green3);
  background: var(--surface);
}

.r-row input.r-error {
  border-color: var(--danger);
}

.r-row textarea {
  resize: vertical;
  min-height: 80px;
}

.r-hint {
  font-size: .68rem;
  color: var(--text3);
  margin-top: .25rem;
  line-height: 1.4;
}

.r-err {
  font-size: .68rem;
  color: var(--danger);
  margin-top: .22rem;
  display: none;
}

.r-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

@media(max-width:560px) {
  .r-grid {
    grid-template-columns: 1fr;
  }
}

/* symptom tags */
.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}

.symptom-tag {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: .22rem .7rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}

.symptom-tag.sel {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* image upload areas */
.r-img-area {
  border: 2px dashed var(--border2);
  border-radius: .7rem;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--bg2);
  transition: all .22s;
  margin-bottom: .5rem;
}

.r-img-area:hover {
  border-color: var(--green3);
  background: var(--bg3);
}

.r-img-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.r-img-area p {
  font-size: .78rem;
  color: var(--text3);
  margin: 0;
}

.r-img-area .r-img-icon {
  font-size: 1.5rem;
  margin-bottom: .3rem;
}

.r-img-previews {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.r-img-thumb {
  position: relative;
  width: 72px;
  height: 72px;
}

.r-img-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--border2);
}

.r-img-thumb button {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: .65rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* severity selector */
.severity-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}

.sev-btn {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: .5rem;
  padding: .5rem .4rem;
  font-family: 'Nunito', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}

.sev-btn.sel-mild {
  background: #e8f2ec;
  color: var(--healthy);
  border-color: var(--healthy);
}

.sev-btn.sel-moderate {
  background: var(--moderatebg);
  color: var(--moderate);
  border-color: var(--moderate);
}

.sev-btn.sel-severe {
  background: var(--dangerbg);
  color: var(--danger);
  border-color: var(--danger);
}

/* spread toggle */
.spread-toggle {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.spread-opt {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: .22rem .7rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .18s;
}

.spread-opt.sel {
  background: var(--infobg);
  color: var(--info);
  border-color: var(--info);
}

/* report success */
.report-success {
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: .7rem;
  padding: 1rem 1.2rem;
  display: none;
  text-align: center;
  margin-top: 1rem;
}

.report-success p {
  font-size: .88rem;
  color: var(--healthy);
  font-weight: 700;
}

.report-success span {
  font-size: .78rem;
  color: var(--green2);
}

/* ── HAMBURGER / MOBILE NAV ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: rgba(30, 77, 53, 0.06);
  border: 1px solid rgba(30, 77, 53, 0.15);
  border-radius: 2rem;
  cursor: pointer;
  padding: 10px;
  margin-left: .5rem;
  align-items: center;
  transition: all .25s;
}

.hamburger-btn:hover {
  background: var(--green);
  border-color: var(--green);
}

.hamburger-btn:hover span {
  background: #fff;
}

.hamburger-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all .25s;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media(max-width:820px) {
  .nav-right {
    display: none !important;
  }
}

/* ── SIDE DRAWER STYLING ── */
.side-drawer {
  position: fixed;
  top: 60px;
  bottom: 24px;
  right: -400px; /* Hidden off-screen */
  width: 360px;
  height: auto;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 77, 53, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.side-drawer.open {
  right: 24px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[data-theme="dark"] .side-drawer {
  background: rgba(30, 36, 33, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.side-drawer.maximized,
.chatbot-panel.maximized {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  transform: none !important;
}

.drawer-expand-btn,
.chatbot-settings-btn,
.chatbot-expand-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-expand-btn:hover,
.chatbot-settings-btn:hover,
.chatbot-expand-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Chatbot Settings Drawer Styling */
.chatbot-settings-drawer {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #0c1811;
  border-bottom: 2px solid rgba(77, 184, 118, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  z-index: 10050;
  padding: 14px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideDownSettings 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDownSettings {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4db876;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.03em;
}

.settings-drawer-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.settings-drawer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.settings-option-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.lang-toggle-group {
  display: flex;
  gap: 10px;
}

.lang-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: rgba(77, 184, 118, 0.15);
  border-color: rgba(77, 184, 118, 0.4);
  color: #fff;
}

.lang-toggle-btn.active {
  background: rgba(77, 184, 118, 0.25);
  border-color: #4db876;
  color: #fff;
  box-shadow: 0 0 12px rgba(77, 184, 118, 0.3);
}

.lang-flag {
  font-size: 1rem;
}

.lang-check {
  font-weight: 800;
  color: #4db876;
  margin-left: 4px;
}

.settings-lang-item:hover {
  background: rgba(77, 184, 118, 0.25);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 77, 53, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.drawer-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--green), #245c3f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  border-radius: 1.2rem 1.2rem 0 0;
}

.drawer-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.drawer-close-btn,
.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.drawer-close-btn:hover,
.chatbot-close-btn:hover {
  background: #ef4444; /* Premium red for close */
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.05);
  color: #fff;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-section {
  display: flex;
  flex-direction: column;
}

.drawer-action-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(30, 77, 53, 0.15);
  text-decoration: none;
}

.drawer-action-btn:hover {
  background: var(--green2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 77, 53, 0.25);
}

.drawer-action-btn.secondary-btn {
  background: var(--surface2);
  color: var(--green);
  border: 1px solid var(--border);
  box-shadow: none;
}

.drawer-action-btn.secondary-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.msg-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.25rem;
  width: fit-content;
}

.developer-message {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  background: var(--surface);
  border-radius: 0.8rem;
}

.developer-message p {
  margin-bottom: 0.75rem;
}

.developer-message p:last-of-type {
  margin-bottom: 0;
}

.msg-signature {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.msg-signature strong {
  color: var(--green);
}

.msg-signature span {
  font-size: 0.75rem;
  color: var(--text3);
}

.about-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  background: var(--surface);
  border: 0px solid var(--border);
  border-radius: 0.8rem;
}

.about-content.open {
  max-height: 1200px;
  padding: 1.2rem;
  margin-top: 0.75rem;
  border-width: 1px;
}

.about-content p {
  margin-bottom: 0.75rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.mobile-nav-links {
  display: none !important;
}

@media(max-width:820px) {
  .mobile-nav-links {
    display: flex;
  }
}

/* ── CAMERA CAPTURE BUTTON in upload ── */
.capture-group {
  display: flex;
  gap: .6rem;
  margin-bottom: .7rem;
}

.capture-group .btn-camera,
.capture-group .btn-camera-shot {
  flex: 1;
  margin: 0;
  width: 100%;
}

.btn-camera-shot {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  padding: .78rem;
  font-family: 'Nunito', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .25s;
  position: relative;
}

.btn-camera-shot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.btn-camera-shot:hover {
  background: var(--green2);
}

/* ── DB IMAGE GALLERY ── */
/* ── IMAGE LIGHTBOX ── */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.img-lightbox.open {
  display: flex;
}

.img-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: .7rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.img-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox-info {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 2rem;
  font-size: .82rem;
  text-align: center;
  white-space: nowrap;
}

/* ── COMMUNITY COUNT badge ── */
.cc-label {
  font-size: .78rem;
  color: var(--text3);
}

/* ── Chatbot Backdrop Blur ── */
.chatbot-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.chatbot-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Chatbot Floating Assistant ── */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.chatbot-fab {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  filter: drop-shadow(0 6px 18px rgba(19, 136, 8, 0.45)) !important;
}



.chatbot-fab:hover {
  transform: translateY(-6px) scale(1.12) rotate(-3deg) !important;
  filter: drop-shadow(0 12px 28px rgba(19, 136, 8, 0.75)) !important;
}

.chatbot-fab svg {
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.3s ease !important;
}

.chatbot-fab:hover svg {
  transform: scale(1.05) rotate(4deg) !important;
}

.chatbot-pulse-dot {
  display: none !important;
}
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(200, 155, 60, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 155, 60, 0);
  }
}

.chatbot-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10000;
}

.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Ollama gear icon smooth spin */
#ollamaSettingsBtn svg {
  transition: transform 0.3s ease;
}

#ollamaSettingsPanel input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .chatbot-panel {
  background: rgba(15, 20, 17, 0.98);
  border: none;
  box-shadow: none;
}

.chatbot-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--green), #245c3f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
  position: relative !important;
  z-index: 10002 !important;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatbot-avatar {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.chatbot-avatar img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 16px rgba(52, 211, 153, 0.55)) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.chatbot-avatar img:hover {
  transform: scale(1.12) rotate(4deg) !important;
}

.chatbot-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.chatbot-status {
  font-size: 0.72rem;
  opacity: 0.85;
}

.chatbot-expand-btn {
  /* Defined with .drawer-expand-btn */
}

@media (min-width: 769px) {
  /* No additional maximized overrides needed as global .maximized handles 100% width */
}

/* Backdrop when chatbot is maximized — covers page but keeps navbar visible */
body.chatbot-maximized::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  animation: chatbotBackdropIn 0.25s ease;
  pointer-events: none;
}

@keyframes chatbotBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


.chatbot-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.chat-message.bot .chat-bubble {
  background: var(--bg2);
  color: var(--text);
  border-top-left-radius: 0.2rem;
  border: 1px solid var(--border);
}

.chat-message.user .chat-bubble {
  background: var(--green);
  color: #fff;
  border-top-right-radius: 0.2rem;
}

[data-theme="dark"] .chat-message.bot .chat-bubble {
  background: #2a302c;
  color: #ede8df;
  border-color: rgba(255, 255, 255, 0.05);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.chat-quick-replies button {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 2rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-quick-replies button:hover {
  background: var(--green);
  color: #fff;
}

[data-theme="dark"] .chat-quick-replies button {
  border-color: var(--gold);
  color: var(--gold);
}

[data-theme="dark"] .chat-quick-replies button:hover {
  background: var(--gold);
  color: #1e2421;
}

.chatbot-input-area {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: var(--bg);
}

.chatbot-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text3);
  padding: 0.3rem 1rem 0.55rem;
  background: var(--bg);
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid var(--border2);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.chatbot-input-area button {
  background: var(--green);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chatbot-input-area button:hover {
  background: var(--green2);
}

#chatbotVoiceBtn.recording {
  background: var(--danger) !important;
  color: #fff !important;
  animation: voice-pulse 1.5s infinite;
  border-color: transparent !important;
}

@keyframes voice-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.chatbot-input-area button svg {
  width: 16px;
  height: 16px;
}

.chat-action-btn {
  margin-top: 0.5rem;
  background: var(--gold);
  color: #1e2421;
  border: none;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-action-btn:hover {
  opacity: 0.9;
}

@media(max-width: 768px) {
  .chatbot-panel, .side-drawer {
    top: 56px;
    /* Touches smaller mobile navigation bar */
    bottom: 92px;
    /* Positioned just above mobile FAB area */
    right: 16px;
    left: 16px;
    width: auto;
    height: auto;
    max-height: none;
  }
}


/* --- CSS Segment --- */


/* ── Shared Info-Page Layout ── */
.info-page {
  padding-top: 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.info-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.info-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.info-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.info-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.info-hero-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
  position: relative;
  z-index: 1;
}

.info-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.info-hero .info-sub {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.info-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 0.65rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.55rem 1.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.info-back-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateX(-2px);
}

/* signature block */
.dev-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.dev-sig-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dev-sig-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.dev-sig-role {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 0.1rem;
}

/* contact form */
.contact-form-group {
  margin-bottom: 1rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  border: 1.5px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 77, 53, 0.08);
}

.contact-submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-success {
  display: none;
  text-align: center;
  background: var(--healthybg);
  border: 1px solid var(--healthy);
  border-radius: 0.6rem;
  padding: 0.8rem;
  color: var(--healthy);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* Feedback Textarea Wrapper & Inset Microphone Icon */
.feedback-textarea-wrapper {
  position: relative;
  width: 100%;
}

.feedback-textarea-wrapper textarea {
  width: 100%;
  padding: 0.75rem 2.8rem 2.4rem 0.9rem !important; /* Right & bottom padding prevents text overlapping inset mic icon */
  border-radius: 0.6rem;
  border: 1.5px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  box-sizing: border-box;
  resize: vertical;
}

.feedback-mic-btn {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 5;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.feedback-mic-btn.inline-mic {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  margin: 0 4px;
}

.feedback-mic-btn:hover {
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
  transform: scale(1.1);
}

[data-theme="light"] .feedback-mic-btn:hover {
  color: #138808;
  background: rgba(19, 136, 8, 0.1);
}

.feedback-mic-btn.recording {
  color: var(--danger) !important;
  background: rgba(235, 87, 87, 0.16) !important;
  animation: micPulse 1.5s infinite ease-in-out;
}

.word-count-label {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 0.2rem;
}

/* settings toggles */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.settings-desc {
  font-size: 0.76rem;
  color: var(--text3);
  margin-top: 0.15rem;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg3);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--green);
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(22px);
}

/* privacy / terms policy blocks */
.policy-section {
  margin-bottom: 0.2rem;
}

.policy-section ul {
  padding-left: 1.3rem;
  margin-top: 0.4rem;
}

.policy-section ul li {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

.policy-updated {
  font-size: 0.75rem;
  color: var(--text3);
  text-align: right;
  margin-top: 1rem;
}

/* ── Leaf Scanner Guide & Real-Time Feedback ── */
.preview-img-wrap {
  position: relative !important;
  max-height: none !important;
  aspect-ratio: 4/3;
  background: #000;
}

.preview-img-wrap img {
  max-height: none !important;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.leaf-silhouette-guide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.leaf-silhouette-guide svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: #4ade80;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 4;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.leaf-silhouette-label {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-feedback-box {
  display: none;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  border: 1px solid transparent;
}

.preview-feedback-box.warning {
  display: block;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.preview-feedback-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.preview-feedback-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* ── Particle Canvas Animation ─────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#particle-canvas.active {
  opacity: 1;
}
#home {
  position: relative;
}
#home .home-hero,
#home > *:not(canvas) {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════════
   MASTER SYMMETRICAL FULL SCREEN LAYOUT OVERRIDES
   ══════════════════════════════════════════════════════════════════ */

#home {
  height: calc(100vh - 75px) !important;
  overflow-y: scroll !important;
  scroll-snap-type: y proximity !important;
  scroll-behavior: smooth !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  width: 100% !important;
}

.home-snap-section {
  width: 100% !important;
  min-height: calc(100vh - 75px) !important;
  height: calc(100vh - 75px) !important;
  padding: 2.5rem 2rem !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

/* 1. HERO SECTION (PART 1) */
.home-snap-section.hero-snap-part {
  width: 100% !important;
  min-height: 100vh !important;
  height: 100vh !important;
  padding-top: 151px !important;   /* 75px navbar + 76px (2 cm) visible gap */
  padding-bottom: 76px !important;  /* 76px (2 cm) visible bottom gap */
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.home-snap-section.hero-snap-part .home-hero,
.home-hero {
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
  height: 100% !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.hero-left {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.badge {
  font-size: 1.02rem !important;
  padding: 0.6rem 1.8rem !important;
  margin: 0 auto !important;
}

.hero-title {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.hero-title .brand-name {
  font-size: clamp(5.4rem, 9.2vw, 8.2rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 1.25rem !important;
  display: block !important;
}



.hero-sub {
  font-size: 1.85rem !important;
  margin: 0 auto !important;
}

.hero-tagline {
  font-size: 1.32rem !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.cta-group {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.35rem !important;
  width: calc(100% - 4rem) !important;
  max-width: 1150px !important;
  margin: 0 auto !important;
}

.cta-group .btn-primary,
.cta-group .btn-kisan,
.cta-group .btn-outline-lg {
  width: 100% !important;
  padding: 1.3rem 2.1rem !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  border-radius: 18px !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* 2. WEATHER & CLIMATE SECTION (PART 2) */
.home-snap-section.weather-snap-part {
  padding: 2.5rem 2rem !important;
}

.home-snap-section.weather-snap-part .weather-widget-container,
.weather-widget-container {
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
  margin: auto !important;
  padding: 2.8rem 3.5rem !important;
}

.weather-title {
  font-size: 2.4rem !important;
}

.weather-select {
  font-size: 1.02rem !important;
  padding: 0.75rem 1.5rem !important;
}

.weather-body {
  display: grid !important;
  grid-template-columns: 1fr 1.2fr !important;
  gap: 3.5rem !important;
  width: 100% !important;
}

/* 3. FEATURES & FOOTER SECTION (PART 3) */
.home-snap-section.features-snap-part {
  width: 100% !important;
  min-height: calc(100vh - 75px) !important;
  height: auto !important;
  padding-top: 140px !important;    /* 75px navbar + 65px clearance so h2 title is 100% visible! */
  padding-bottom: 4rem !important;  /* Spacious bottom padding */
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box !important;
  background: transparent !important;
  display: flex;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.features-header-title {
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
  text-align: center !important;
  margin: 0 auto 2.5rem auto !important;
}

.features-header-title h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.2rem) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.6rem !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
}

.features-header-title p {
  font-size: 1.25rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 750px !important;
  margin: 0 auto !important;
}

.home-snap-section.features-snap-part .features,
.features {
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.6rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.feat {
  background: rgba(18, 42, 28, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(77, 184, 118, 0.2) !important;
  border-radius: 1.25rem !important;
  padding: 2.2rem 1.6rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.feat:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(77, 184, 118, 0.45) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(77, 184, 118, 0.15) !important;
}

.site-footer-strip {
  width: calc(100% - 4rem) !important;
  max-width: 1600px !important;
  margin: 9.5rem auto 3rem auto !important; /* Extra spacious 9.5rem (~150px) gap after feature boxes! */
  padding: 1.4rem 3rem !important;
  background: rgba(18, 42, 28, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(77, 184, 118, 0.2) !important;
  border-radius: 1.25rem !important;
}

@media (max-width: 1100px) {
  .cta-group {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .weather-body {
    grid-template-columns: 1fr !important;
  }
  .features {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 650px) {
  .cta-group {
    grid-template-columns: 1fr !important;
  }
  .features {
    grid-template-columns: 1fr !important;
  }
}

/* DEFAULT HALF-PAGE STYLING FOR BOTH CHATBOT PANEL AND NAVIGATION MENU DRAWER */
.chatbot-panel,
.side-drawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 50vw !important;            /* Half page width by default */
  min-width: 480px !important;       /* Minimum 480px on desktop/laptop */
  max-width: 100vw !important;
  height: 100vh !important;
  border-radius: 24px 0 0 24px !important;
  background: rgba(12, 22, 16, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-left: 1px solid rgba(77, 184, 118, 0.25) !important;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.55) !important;
  display: flex;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateX(100%) !important;
  pointer-events: none !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease !important;
  z-index: 10000 !important;
}

.chatbot-panel.open,
.side-drawer.open {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

/* WHEN MAXIMIZED (FULL SCREEN) */
.chatbot-panel.maximized,
.side-drawer.maximized {
  width: 100vw !important;
  min-width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border-left: none !important;
  left: 0 !important;
  right: 0 !important;
}

.drawer-backdrop,
.chatbot-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 9999 !important;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease !important;
}

.drawer-backdrop.open,
.chatbot-backdrop.open {
  display: block !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .chatbot-panel,
  .side-drawer {
    width: 100vw !important;
    min-width: 100vw !important;
    border-radius: 0 !important;
  }
}

/* ALWAYS VISIBLE CHATBOT FAB BUTTON ACROSS ALL PAGES & OVERLAYS */
.chatbot-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 10005 !important; /* Higher than menu drawer (10000) so it's always seen on menu tab */
  display: block !important;
}



/* FLOATING BACK TO TOP BUTTON - ALWAYS POSITIONED ABOVE CHATBOT FAB */
#btn-back-to-top.btn-back-to-top {
  position: fixed !important;
  bottom: 115px !important;
  right: 36px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: #138808 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  z-index: 10006 !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, opacity 0.3s ease !important;
}

#btn-back-to-top.btn-back-to-top:hover {
  background: #0d6506 !important;
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 12px 30px rgba(19, 136, 8, 0.6) !important;
}

#btn-back-to-top.btn-back-to-top:active {
  transform: translateY(0) scale(0.95) !important;
}

body.chatbot-open #btn-back-to-top.btn-back-to-top {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Header Quick Language Switcher Pill */
.chatbot-header-lang-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}
.header-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-lang-btn:hover {
  color: #ffffff;
}
.header-lang-btn.active {
  background: #138808;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(19, 136, 8, 0.4);
}

/* AI-Powered Navbar Badge */
.nav-ai-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #138808 0%, #20b2aa 50%, #3b82f6 100%);
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 6px;
  box-shadow: 0 0 12px rgba(19, 136, 8, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: aiBadgePulse 3s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes aiBadgePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(19, 136, 8, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(32, 178, 170, 0.7);
  }
}

/* Chatbot Header AI Badges */
.chatbot-header-ai-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #138808, #3b82f6);
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(19, 136, 8, 0.4);
}

.chatbot-header-ai-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 20px;
  background: linear-gradient(135deg, #138808 0%, #00b4d8 100%);
  color: #ffffff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── Refined Minimal Ambient Cursor Spotlight ── */
.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.045) 0%, rgba(34, 197, 94, 0.02) 40%, rgba(16, 185, 129, 0.005) 65%, transparent 100%);
  pointer-events: none !important;
  z-index: 99999;
  filter: blur(50px);
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  mix-blend-mode: screen;
}

.custom-cursor-glow.active {
  opacity: 0.85 !important;
}

[data-theme="light"] .custom-cursor-glow {
  background: radial-gradient(circle, rgba(30, 77, 53, 0.035) 0%, rgba(39, 174, 96, 0.015) 40%, rgba(200, 155, 60, 0.005) 65%, transparent 100%);
  mix-blend-mode: multiply;
  filter: blur(50px);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .custom-cursor-glow {
    display: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   ADVANCED LIGHT THEME HIGH-DEFINITION COMPONENT OVERRIDES
   ═════════════════════════════════════════════════════════════════ */

[data-theme="light"] body {
  background-color: #f2f7f4 !important;
  color: #0d261b !important;
}

/* 1. Glassmorphism Navigation Bar in Light Mode */
[data-theme="light"] nav {
  background: rgba(242, 247, 244, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(19, 136, 8, 0.14) !important;
  box-shadow: 0 4px 24px rgba(13, 38, 27, 0.05) !important;
}

[data-theme="light"] .nav-logo-img,
[data-theme="light"] .info-hero-icon img {
  filter: brightness(0.12) sepia(1) hue-rotate(95deg) saturate(3.5) drop-shadow(0 2px 8px rgba(19, 136, 8, 0.3)) !important;
}

/* 2. Side Drawer & Chatbot Panel in Light Mode */
[data-theme="light"] .side-drawer,
[data-theme="light"] .chatbot-panel {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #0d261b !important;
  border-left: 1px solid rgba(19, 136, 8, 0.18) !important;
  box-shadow: -12px 0 45px rgba(13, 38, 27, 0.15) !important;
}

[data-theme="light"] .drawer-header,
[data-theme="light"] .chatbot-header {
  background: linear-gradient(135deg, #138808 0%, #0e6706 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .drawer-header h3,
[data-theme="light"] .chatbot-header h3 {
  color: #ffffff !important;
}

[data-theme="light"] .chatbot-avatar img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(255, 255, 255, 0.5)) !important;
}

/* 3. Cards & Containers */
[data-theme="light"] .info-card,
[data-theme="light"] .weather-widget-container,
[data-theme="light"] .plant-card,
[data-theme="light"] .scheme-card,
[data-theme="light"] .kisan-card,
[data-theme="light"] .modal,
[data-theme="light"] .dev-panel-card,
[data-theme="light"] .setting-group {
  background: #ffffff !important;
  border: 1px solid rgba(19, 136, 8, 0.14) !important;
  box-shadow: 0 8px 30px rgba(13, 38, 27, 0.05) !important;
}

[data-theme="light"] .plant-card:hover,
[data-theme="light"] .scheme-card:hover,
[data-theme="light"] .kisan-card:hover {
  border-color: #138808 !important;
  box-shadow: 0 12px 36px rgba(19, 136, 8, 0.12) !important;
}

/* 4. Form Inputs & Selects */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="email"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #f7faf8 !important;
  color: #0d261b !important;
  border: 1.5px solid rgba(19, 136, 8, 0.2) !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: #138808 !important;
  box-shadow: 0 0 0 3px rgba(19, 136, 8, 0.15) !important;
  background: #ffffff !important;
}

/* 5. Buttons in Light Mode */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #138808 0%, #0e6706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(19, 136, 8, 0.28) !important;
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(19, 136, 8, 0.4) !important;
}

[data-theme="light"] .btn-kisan {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.28) !important;
}

[data-theme="light"] .secondary-btn,
[data-theme="light"] .drawer-action-btn {
  background: rgba(19, 136, 8, 0.06) !important;
  color: #0d261b !important;
  border: 1px solid rgba(19, 136, 8, 0.14) !important;
}

[data-theme="light"] .secondary-btn:hover,
[data-theme="light"] .drawer-action-btn:hover {
  background: rgba(19, 136, 8, 0.12) !important;
  color: #138808 !important;
}

/* 6. Hero Badges & Accent Pills */
[data-theme="light"] .badge {
  background: rgba(19, 136, 8, 0.08) !important;
  color: #138808 !important;
  border: 1px solid rgba(19, 136, 8, 0.2) !important;
}

/* 7. Chatbot Messages in Light Mode */
[data-theme="light"] .chat-message.bot .chat-bubble {
  background: #eef7f2 !important;
  color: #0d261b !important;
  border: 1px solid rgba(19, 136, 8, 0.16) !important;
}

[data-theme="light"] .chat-message.user .chat-bubble {
  background: linear-gradient(135deg, #138808 0%, #0e6706 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .chatbot-input-area {
  background: #ffffff !important;
  border-top: 1px solid rgba(19, 136, 8, 0.14) !important;
}

[data-theme="light"] #btn-back-to-top.btn-back-to-top {
  background: #ffffff !important;
  color: #138808 !important;
  border: 2px solid #138808 !important;
  box-shadow: 0 6px 20px rgba(13, 38, 27, 0.18) !important;
}

[data-theme="light"] #btn-back-to-top.btn-back-to-top:hover {
  background: #138808 !important;
  color: #ffffff !important;
}

/* ═════════════════════════════════════════════════════════════════
   USER PREFERENCES & ACCESSIBILITY SYSTEM STYLES
   ═════════════════════════════════════════════════════════════════ */
html[data-font-size="small"] {
  font-size: 14px;
}
html[data-font-size="medium"] {
  font-size: 16px;
}
html[data-font-size="large"] {
  font-size: 18px;
}

html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

html[data-high-contrast="true"] {
  --border: rgba(52, 211, 153, 0.45);
  --border2: rgba(52, 211, 153, 0.7);
  --text: #ffffff;
}

html[data-theme="light"][data-high-contrast="true"] {
  --border: rgba(19, 136, 8, 0.5);
  --border2: rgba(19, 136, 8, 0.8);
  --text: #000000;
}

/* ==========================================================================
   INTERACTIVE 3D CARD HOVER & AMBIENT GLOW SYSTEM
   ========================================================================== */

.db-card,
.weather-widget-container,
.kisan-weather-card,
.scheme-card,
.k-crop-card,
.feat,
.crop-rec-card,
.advisory-card,
.disease-card,
.market-price-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              background 0.3s ease !important;
  will-change: transform, box-shadow;
}

.db-card:hover,
.weather-widget-container:hover,
.kisan-weather-card:hover,
.scheme-card:hover,
.k-crop-card:hover,
.feat:hover,
.crop-rec-card:hover,
.advisory-card:hover,
.disease-card:hover,
.market-price-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow: 0 14px 34px rgba(52, 211, 153, 0.22), 0 6px 16px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(52, 211, 153, 0.6) !important;
}

/* Light Mode Ambient Emerald Glow */
[data-theme="light"] .db-card:hover,
[data-theme="light"] .weather-widget-container:hover,
[data-theme="light"] .kisan-weather-card:hover,
[data-theme="light"] .scheme-card:hover,
[data-theme="light"] .k-crop-card:hover,
[data-theme="light"] .feat:hover,
[data-theme="light"] .crop-rec-card:hover,
[data-theme="light"] .advisory-card:hover,
[data-theme="light"] .disease-card:hover,
[data-theme="light"] .market-price-card:hover {
  box-shadow: 0 14px 34px rgba(19, 136, 8, 0.2), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(19, 136, 8, 0.5) !important;
}

/* Smooth Image Scale on Hover */
.db-card:hover .db-card-hero,
.k-crop-card:hover .k-crop-img,
.disease-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   MACBOOK & WIDE DISPLAY LAYOUT OPTIMIZATION (EXCEPT HOME PAGE)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Remove excessive empty side margins on MacBook screens for all non-home pages */
  .page:not(#home-page) {
    padding-left: clamp(2rem, 5vw, 6rem) !important;
    padding-right: clamp(2rem, 5vw, 6rem) !important;
    box-sizing: border-box !important;
  }

  /* 1. Kisan Mode Page */
  .kisan-wrap {
    max-width: 1380px !important;
    width: 100% !important;
    padding: 2.5rem 2rem 5rem !important;
    margin: 0 auto !important;
  }

  .kisan-landing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* 2. Plant Database Page (Normal Original Layout) */
  #db-page {
    width: 100% !important;
    background: var(--bg) !important;
  }

  /* 3. Contribute / Add Plant Page */
  #contribute-page,
  .contrib-wrap,
  .contrib-container,
  .contrib-card {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 4. Plant Health Analysis & Results Page */
  #result-page,
  .result-wrap,
  .result-container,
  .result-grid {
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 5. Plant Detail Page */
  #plant-detail-page,
  .detail-wrap,
  .detail-container {
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 6. About Page */
  #about-page,
  .info-wrap,
  .about-container {
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 7. Schemes, Weather & Crop Recommendation views */
  .schemes-wrap,
  .schemes-container,
  .weather-wrap,
  .weather-container,
  .crop-rec-wrap {
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}



/* ── PLANT DATABASE HERO BANNER — SQUARE FULL WIDTH WITH RAINFOREST CANOPY ── */
#db-page {
  padding-top: 4.5rem;
  background: var(--bg);
}

.db-header {
  padding: 0 !important;
  margin-bottom: 0.8rem !important;
  width: 100% !important;
}

.db-hero-banner {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(rgba(9, 19, 14, 0.68), rgba(15, 35, 23, 0.8)), url('tropical_rainforest_canopy.jpg') center/cover no-repeat !important;
  padding: 4.5rem 2rem 3.8rem !important;
  text-align: center !important;
  border-radius: 0px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(77, 184, 118, 0.35) !important;
  border-left: none !important;
  border-right: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* ── PERMANENT REMOVAL OF FLOATING LEAVES ── */
.botanical-bg,
.db-hero-leaves,
.dhl {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}



/* ── PLANT DATABASE RAINFOREST BANNER — EXTENDED VERTICAL LENGTH FROM TOP NAVBAR ORIGIN ── */
#db-page {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

.db-header {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.8rem !important;
  width: 100% !important;
}

.db-hero-banner {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(rgba(9, 19, 14, 0.62), rgba(15, 35, 23, 0.78)), url('tropical_rainforest_canopy.jpg') center/cover no-repeat !important;
  padding-top: 7.8rem !important;
  padding-bottom: 4.5rem !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  min-height: 420px !important;
  display: flex;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  border-radius: 0px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(77, 184, 118, 0.4) !important;
  border-left: none !important;
  border-right: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.db-filters,
.db-search,
.db-grid,
.community-count-strip {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem !important;
    min-height: 360px !important;
  }
  .db-filters,
  .db-search,
  .db-grid,
  .community-count-strip {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}





#db-page {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.db-header {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

.db-hero-banner {
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  min-height: 580px !important;
  padding-top: 9rem !important;
  padding-bottom: 5rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.4) 0%, rgba(10, 26, 18, 0.55) 60%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

.db-hero-banner::before {
  display: none !important;
}

.db-hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.6rem !important;
  color: #ffffff !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.2rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 750px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
}

#dbPageBackHomeBtn {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 7.5rem !important;
    padding-bottom: 4rem !important;
    min-height: 460px !important;
  }
  .db-header h2 {
    font-size: 2.3rem !important;
  }
}



html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

#db-page {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.db-header {
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.db-hero-banner {
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  min-height: 580px !important;
  padding-top: 9rem !important;
  padding-bottom: 5rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.35) 0%, rgba(10, 26, 18, 0.5) 60%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

.db-hero-banner::before {
  display: none !important;
}

.db-hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.6rem !important;
  color: #ffffff !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.2rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 750px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
}

#dbPageBackHomeBtn {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 7.5rem !important;
    padding-bottom: 4rem !important;
    min-height: 460px !important;
  }
  .db-header h2 {
    font-size: 2.3rem !important;
  }
}



.db-hero-banner {
  min-height: 650px !important;
  padding-top: 9.5rem !important;
  padding-bottom: 5.5rem !important;
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.28) 0%, rgba(10, 26, 18, 0.45) 60%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: 85% 30% !important;
  background-size: 145% auto !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 1024px) {
  .db-hero-banner {
    background-position: 80% 30% !important;
    background-size: 165% auto !important;
    min-height: 540px !important;
  }
}

@media (max-width: 768px) {
  .db-hero-banner {
    background-position: 75% 30% !important;
    background-size: 195% auto !important;
    min-height: 490px !important;
  }
}



.db-hero-banner {
  min-height: 720px !important;
  padding-top: 10rem !important;
  padding-bottom: 6rem !important;
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.22) 0%, rgba(10, 26, 18, 0.42) 60%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: 100% 35% !important;
  background-size: 210% auto !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 1200px) {
  .db-hero-banner {
    background-position: 100% 35% !important;
    background-size: 240% auto !important;
  }
}

@media (max-width: 768px) {
  .db-hero-banner {
    background-position: 100% 35% !important;
    background-size: 280% auto !important;
    min-height: 520px !important;
  }
}


/* ════════════════════════════════════════════════════════
   COMPLETELY REMOVED BACKGROUND IMAGE FROM PLANT DATABASE
   ════════════════════════════════════════════════════════ */
.db-hero-banner {
  background-image: none !important;
  background: var(--bg) !important;
  min-height: 400px !important;
  padding-top: 8rem !important;
  padding-bottom: 3.5rem !important;
  border-bottom: 1px solid var(--border) !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 6.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: 340px !important;
  }
}


/* ════════════════════════════════════════════════════════
   100% ABSOLUTE CENTER ALIGNMENT FOR PLANT DATABASE HERO
   ════════════════════════════════════════════════════════ */
.db-header {
  width: 100% !important;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
}

.db-hero-banner {
  width: 100% !important;
  min-height: 55vh !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-top: 6.5rem !important;
  padding-bottom: 3.5rem !important;
  box-sizing: border-box !important;
  background: var(--bg) !important;
  margin: 0 auto !important;
}

.db-hero-content {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

.db-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.2rem !important;
  text-align: center !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.6rem !important;
  color: var(--text) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: var(--text2) !important;
  line-height: 1.7 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 800px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 170px !important;
}



#db-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
#db-page.active { display: flex !important; }

.db-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
}

.db-hero-banner {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  transform: none !important;
  min-height: 380px !important;
  padding: 6.5rem 1.5rem 3rem 1.5rem !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: var(--bg) !important;
  background-image: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.db-hero-banner::before {
  display: none !important;
}

.db-hero-content {
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

.db-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.2rem auto !important;
  text-align: center !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin: 0 auto 0.6rem auto !important;
  color: var(--text) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: var(--text2) !important;
  line-height: 1.7 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 750px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 5.5rem !important;
    padding-bottom: 2rem !important;
    min-height: 320px !important;
  }
  .db-header h2 {
    font-size: 2.3rem !important;
  }
}



#db-page {
  padding-top: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.db-header {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

.db-hero-banner {
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 480px !important;
  padding-top: 7rem !important;
  padding-bottom: 4rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;

  /* Rainforest background image touching left edge, right edge & top navbar */
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.25) 0%, rgba(10, 26, 18, 0.45) 55%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;

  /* Smooth edge blending at the bottom edge touching the filter buttons */
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

.db-hero-banner::before {
  display: none !important;
}

.db-hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

.db-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1rem auto !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin: 0 auto 0.6rem auto !important;
  color: #ffffff !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.7 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6) !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.4rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 800px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
  background: rgba(12, 28, 19, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.db-filters {
  margin-top: 1rem !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
    min-height: 400px !important;
  }
  .db-header h2 {
    font-size: 2.3rem !important;
  }
}


/* ════════════════════════════════════════════════════════
   PERFECT 100% FULL-WIDTH RAINFOREST HERO BANNER (NO OFFSET)
   ════════════════════════════════════════════════════════ */
#db-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.db-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.db-hero-banner {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  transform: none !important;
  min-height: 480px !important;
  padding: 6.5rem 1.5rem 3.5rem 1.5rem !important;
  box-sizing: border-box !important;

  /* Rainforest background image touching left edge, right edge & top navbar */
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.3) 0%, rgba(10, 26, 18, 0.5) 60%, var(--bg) 100%), url('tropical_rainforest_canopy.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;

  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

.db-hero-banner::before {
  display: none !important;
}

.db-hero-content {
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

.db-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1rem auto !important;
  text-align: center !important;
}

.db-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3.2rem !important;
  font-weight: 600 !important;
  margin: 0 auto 0.6rem auto !important;
  color: #ffffff !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
}

.db-header p {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.7 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6) !important;
}

.db-stats {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.4rem !important;
  margin: 2.2rem auto 0 auto !important;
  width: 100% !important;
  max-width: 800px !important;
  flex-wrap: wrap !important;
}

.db-stat-card {
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
  background: rgba(12, 28, 19, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 768px) {
  .db-hero-banner {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: 380px !important;
  }
  .db-header h2 {
    font-size: 2.3rem !important;
  }
}





/* ════════════════════════════════════════════════════════
   HARD CHATBOT FAB HIDING & VISIBILITY RULES
   ════════════════════════════════════════════════════════ */
.chatbot-fab,
#chatbotFab {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.chatbot-open .chatbot-fab,
body.chatbot-open #chatbotFab,
html body .chatbot-fab.hidden,
html body #chatbotFab.hidden,
#chatbotFab[style*="display: none"],
.chatbot-fab[style*="display: none"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0) !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Drop Overlay Fix */
.full-page-drop-overlay {
  display: none !important;
}

/* Upload Page 80% Dropzone Redesign */
#upload-page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 1.5rem 2rem;
  height: 100vh;
  box-sizing: border-box;
}

#upload-page .upload-header {
  margin-bottom: 1rem;
}

#upload-page .upload-card {
  flex: 1;
  width: 95%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1rem;
}

#upload-page .dropzone {
  flex: 1;
  width: 100%;
  border: 4px dashed rgba(52, 211, 153, 0.4);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

#upload-page .dropzone:hover,
#upload-page.upload-page-drag-active .dropzone {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
}

#upload-page .drop-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

#upload-page .dropzone p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#upload-page .dropzone .btn-drag-drop-trigger {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* --- MOBILE & TABLET OVERRIDES --- */
/* The desktop view remains completely untouched. */

@media (max-width: 1024px) {
  /* 3. Cards & Grids Layout Adjustments */
  .features, .db-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .features {
    padding: 4rem 3rem !important;
  }
}

@media (max-width: 768px) {
  /* 1. Hero Section & Typography Updates */
  body #home .home-hero {
    padding: 5rem 1.5rem 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  body #home .badge.hero-entrance-1,
  body #home .badge.hero-entrance-1 span {
    font-size: 1.3rem !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  body #home h1.hero-title,
  body #home h1.hero-title .brand-name {
    font-size: 4.8rem !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
  }
  body #home .tricolor-hero-group {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.8rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
  }
  body #home p.hero-sub, 
  body #home p.hero-tagline {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-top: 1rem !important;
  }
  body #home .cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  
  /* Navigation Bar and Hamburger Button Updates */
  body nav {
    padding: 1.25rem 1.5rem !important;
  }
  body nav .hamburger-btn {
    transform: scale(1.4) !important;
    margin-right: 0.5rem !important;
  }
  
  /* 7. Floating Leaves Optimization (Hide some to reduce clutter) */
  .floating-leaf:nth-child(n+10) {
    display: none !important;
  }

  /* 2. Buttons & Touch Targets Scaling */
  .btn-primary, .btn-secondary, .btn-kisan, .drawer-action-btn, .btn-camera, .send-btn {
    min-height: 54px !important;
    font-size: 1.05rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cta-group button {
    width: 100% !important;
  }

  /* 3. Cards & Grids Layout Adjustments */
  .features {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 2rem 1rem !important;
    gap: 1rem !important;
  }
  .db-grid {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.25rem !important;
  }
  .feat {
    padding: 1.25rem 1rem !important;
    border-radius: 1rem !important;
  }
  .feat h3 {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.4rem !important;
  }
  .feat p {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  .feat-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.75rem !important;
  }
  .feature-card, .db-card, .upload-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.5rem !important;
  }
  
  /* 8. Images */
  .feature-card img, .db-card img, .weather-card img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  #uploadOptionsContainer {
    flex-direction: column !important;
  }
  .blight-card {
    flex-direction: column !important;
    text-align: center !important;
  }

  /* 4. Climate Card Vertical Stacking */
  .weather-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .climate-dropdown {
    height: 54px !important;
    font-size: 1rem !important;
  }
  .risk-indicator {
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    height: auto !important;
    padding: 0.75rem !important;
    min-height: 54px !important;
  }

  /* 5. Navigation & Drawer Ergonomics */
  .side-drawer {
    width: 85vw !important;
    min-width: unset !important;
  }
  .hamburger {
    padding: 15px !important; /* Larger touch target */
  }

  /* 6. AI Chat Bottom-Sheet Modal Conversion */
  .chatbot-panel {
    width: 95vw !important;
    min-width: unset !important;
    height: 85vh !important;
    top: auto !important;
    bottom: 0 !important;
    left: 2.5vw !important;
    right: 2.5vw !important;
    border-radius: 24px 24px 0 0 !important;
    transform: translateY(100%) !important;
    border: 1px solid rgba(77, 184, 118, 0.25) !important;
    border-bottom: none !important;
  }
  .chatbot-panel.open {
    transform: translateY(0) !important;
  }
  .chatbot-input-area {
    position: sticky !important;
    bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 1rem) !important;
  }
  .chat-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    min-height: 54px !important;
  }
  .chat-quick-replies {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .chat-quick-replies button {
    min-height: 48px !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    white-space: normal !important;
    height: auto !important;
    flex: 1 1 calc(50% - 0.5rem) !important;
  }
}


/* Interactive Voice Mode */
.voice-mode-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100%;
}
.voice-mode-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.voice-mode-content {
  width: 100%;
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
}
.voice-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.voice-mode-header h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}
.close-voice-btn {
  background: none; border: none; color: var(--text3); cursor: pointer;
  padding: 8px; border-radius: 50%; transition: background 0.2s, color 0.2s;
}
.close-voice-btn:hover { background: var(--hover); color: var(--text); }

.voice-orb-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}
.voice-orb {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--green);
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
  cursor: pointer;
}
.voice-orb.state-idle {
  background: var(--text3);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transform: scale(1);
}
.voice-orb.state-listening {
  background: #3b82f6; /* Blue for listening */
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
  animation: pulse-listen 1.5s infinite alternate;
}
.voice-orb.state-thinking {
  background: #f59e0b; /* Yellow/Orange for thinking */
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
  animation: spin-pulse 2s infinite linear;
}
.voice-orb.state-speaking {
  background: var(--green);
  box-shadow: 0 0 50px rgba(52, 211, 153, 0.6);
  animation: wave-speak 0.4s infinite alternate;
}

@keyframes pulse-listen {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
  100% { transform: scale(1.15); box-shadow: 0 0 50px rgba(59, 130, 246, 0.7); }
}
@keyframes spin-pulse {
  0% { transform: scale(1) rotate(0deg); border-radius: 50%; }
  50% { transform: scale(0.9) rotate(180deg); border-radius: 40%; }
  100% { transform: scale(1) rotate(360deg); border-radius: 50%; }
}
@keyframes wave-speak {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.voice-text-display {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}
.voice-status {
  color: var(--text3);
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.voice-transcript {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  min-height: 2em;
}
.voice-ai-reply {
  color: var(--green);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  max-height: 150px;
  overflow-y: auto;
}

.voice-controls {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}
.end-call-btn {
  background: #ef4444; color: white; border: none; padding: 12px 32px; border-radius: 30px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.end-call-btn:hover { background: #dc2626; transform: scale(1.05); }


.chatbot-input-area .chat-secondary-btn {
  background: var(--surface2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.chatbot-input-area .chat-secondary-btn:hover {
  background: var(--hover) !important;
  color: var(--green) !important;
}
[data-theme="light"] .chatbot-input-area .chat-secondary-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
[data-theme="light"] .chatbot-input-area .chat-secondary-btn:hover {
  background: #e2e8f0 !important;
  color: #138808 !important;
}

/* Edge to Edge DB Hero Banner Force Override */
#db-page .db-hero-banner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  border-radius: 0 !important;
  border: none !important;
}


/* ── Multi-Photo Gallery Responsive Styles ── */
.preview-gallery-wrap > div {
  width: 200px !important;
  height: 200px !important;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .preview-gallery-wrap {
    gap: 1rem !important;
    padding: 1rem !important;
  }
  .preview-gallery-wrap > div {
    width: 140px !important;
    height: 140px !important;
  }
}

@media (max-width: 400px) {
  .preview-gallery-wrap {
    gap: 0.8rem !important;
    padding: 0.8rem !important;
  }
  .preview-gallery-wrap > div {
    width: 130px !important;
    height: 130px !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   FUTURE WHITE SECTION + FEATURE CAROUSEL CARD
   ══════════════════════════════════════════════════════════════════ */

.future-white-section {
  background: #ffffff;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 0;
  min-height: 520px;
  position: relative;
}

.feature-carousel-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  position: relative;
  /* The card peeks 20% below the white section */
  margin-bottom: -22%;
}

.feature-carousel-card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.12);
  aspect-ratio: 16 / 7;
  background: #111;
}

/* ── SLIDES ── */
.fc-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.fc-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  cursor: pointer;
}

.fc-slide.active {
  opacity: 1;
  visibility: visible;
}

.fc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.1) 100%
  ),
  linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    transparent 40%
  );
}

/* ── CONTENT ── */
.fc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2.5rem 3rem;
  z-index: 3;
  max-width: 60%;
}

.fc-tag {
  display: inline-block;
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.fc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 0.7rem 0;
}

.fc-desc {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  max-width: 480px;
}

.fc-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.fc-cta-btn {
  background: #34d399;
  color: #052e16;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.fc-cta-btn:hover {
  background: #6ee7b7;
  transform: translateY(-2px);
}

.fc-more-btn {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.fc-more-btn:hover {
  background: rgba(255,255,255,0.28);
}

/* ── ARROWS ── */
.fc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.fc-arrow:hover {
  background: rgba(52,211,153,0.6);
  transform: translateY(-50%) scale(1.1);
}

.fc-arrow-left { left: 1rem; }
.fc-arrow-right { right: 1rem; }

/* ── DOTS ── */
.fc-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}

.fc-dot.active {
  background: #34d399;
  width: 22px;
  border-radius: 999px;
}

/* ── MODAL ── */
.fc-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.fc-modal-backdrop.active {
  display: flex;
}

.fc-modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  animation: fcModalIn 0.3s ease;
}

@keyframes fcModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fc-modal-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.fc-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-modal-body {
  padding: 1.8rem 2rem 2rem;
}

.fc-modal-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a2e1a;
  margin: 0.5rem 0 0.6rem;
}

.fc-modal-body p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.fc-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fc-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.fc-modal-list li::before {
  content: '✓';
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.fc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .feature-carousel-wrapper {
    padding: 0 0.75rem;
    margin-bottom: -30%;
  }
  .feature-carousel-card {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .fc-content {
    max-width: 100%;
    padding: 1.5rem;
  }
  .fc-arrow { display: none; }
  .future-white-section { padding-top: 3rem; min-height: 380px; }
}


/* ══════════════════════════════════════════════════════════════════
   FEATURE CAROUSEL FINAL OVERRIDES v2
   ══════════════════════════════════════════════════════════════════ */

/* Remove scrollbar throughout the app */
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; }

/* Thin line below navbar to indicate it */
nav {
  border-bottom: 2px solid rgba(52, 211, 153, 0.55) !important;
}
[data-theme="dark"] nav {
  border-bottom: 2px solid rgba(52, 211, 153, 0.35) !important;
}

/* Edge to edge white section - NO padding, NO max-width */
.future-white-section {
  background: #ffffff !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  padding: 4rem 0 0 0 !important;
  min-height: auto !important;
  display: block !important;
}

/* Wrapper: edge to edge, generous bottom overlap */
.feature-carousel-wrapper {
  width: 100% !important;
  max-width: none !important;
  padding: 0 3rem !important;
  margin-bottom: -28% !important;
  box-sizing: border-box !important;
}

/* Card: bigger, green outline */
.feature-carousel-card {
  width: 100% !important;
  border-radius: 28px !important;
  aspect-ratio: 16 / 6.5 !important;
  border: 3px solid #34d399 !important;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15),
              0 40px 100px rgba(0,0,0,0.28),
              0 10px 30px rgba(0,0,0,0.14) !important;
}

/* Arrows: no green on hover, just border highlight */
.fc-arrow {
  background: rgba(0,0,0,0.5) !important;
  border: 1.5px solid transparent !important;
  transition: border-color 0.2s, transform 0.2s !important;
}
.fc-arrow:hover {
  background: rgba(0,0,0,0.5) !important;
  border-color: rgba(255,255,255,0.7) !important;
  transform: translateY(-50%) !important;
}
.fc-arrow-left { left: 1.2rem !important; }
.fc-arrow-right { right: 1.2rem !important; }

/* Make content area bigger */
.fc-content {
  padding: 3rem 4rem !important;
  max-width: 58% !important;
}
.fc-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem) !important;
}
.fc-desc {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem) !important;
}

@media (max-width: 768px) {
  .feature-carousel-wrapper {
    padding: 0 1rem !important;
    margin-bottom: -40% !important;
  }
  .feature-carousel-card {
    aspect-ratio: 4 / 3 !important;
    border-radius: 18px !important;
  }
  .fc-content {
    padding: 1.5rem !important;
    max-width: 100% !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   FINAL POLISH v3: Dark green outline, scroll progress bar, more overlap
   ══════════════════════════════════════════════════════════════════ */

/* 1. Dark green outline on carousel card (app brand color #1e4d35) */
.feature-carousel-card {
  border: 3px solid #1e4d35 !important;
  box-shadow: 0 0 0 1px rgba(30,77,53,0.15),
              0 40px 100px rgba(0,0,0,0.28),
              0 10px 30px rgba(0,0,0,0.14) !important;
}

/* 2. Remove the static navbar border — the JS progress bar will replace it */
nav {
  border-bottom: none !important;
}
[data-theme="dark"] nav {
  border-bottom: none !important;
}

/* Progress bar element — sits right below navbar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #1e4d35;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* 3. Carousel card overlaps more into the content below */
.feature-carousel-wrapper {
  margin-bottom: -36% !important;
}

/* Keep active dot accent on brand green */
.fc-dot.active {
  background: #1e4d35 !important;
}

@media (max-width: 768px) {
  .feature-carousel-wrapper {
    margin-bottom: -50% !important;
  }
}


/* ══ Progress bar: BELOW navbar, not top of page ══ */
#scroll-progress-bar {
  position: fixed !important;
  top: auto !important;
  /* nav is ~75px tall. bar sits right below it */
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  z-index: 9998 !important;
  background: #1e4d35 !important;
  transition: width 0.12s linear !important;
  pointer-events: none !important;
}

/* Calculate nav height using CSS custom property via JS */
/* nav height is typically 62-75px; we set top dynamically via JS instead */


/* ══ FINAL FIX v4 ══════════════════════════════════════════════ */

/* Progress bar: uses JS-set top via inline style (positionBar fn)
   but we need to remove the conflicting top:0 and top:auto rules */
#scroll-progress-bar {
  top: unset !important;
  /* top will be set dynamically by JS to nav.bottom */
}

/* Footer needs enough top margin to clear the carousel card overlap */
.site-footer-strip {
  margin-top: 45vw !important; /* enough to clear the -36% overlapping card */
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .site-footer-strip {
    margin-top: 60vw !important;
  }
}

/* ══ EDGE-TO-EDGE CAROUSEL FIX v5 ══════════════════════════════ */

/* White section: truly 100vw, taller so card overlaps nicely */
.future-white-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 5rem 0 0 0 !important;
  min-height: 200px !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Wrapper: zero horizontal padding, full width */
.feature-carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* Push card 32% below the white section bottom */
  margin-bottom: -42% !important;
  box-sizing: border-box !important;
}

/* Card: truly edge to edge, no side margins */
.feature-carousel-card {
  width: 100% !important;
  border-radius: 28px !important;
  aspect-ratio: 16 / 6 !important;
  margin: 0 !important;
}

/* Footer: push down to clear the card */
.site-footer-strip {
  margin-top: 50vw !important;
}

@media (max-width: 768px) {
  .feature-carousel-wrapper {
    padding: 0 !important;
    margin-bottom: -55% !important;
  }
  .feature-carousel-card {
    aspect-ratio: 4 / 3 !important;
    border-radius: 18px !important;
  }
  .site-footer-strip {
    margin-top: 80vw !important;
  }
}

/* ══ DEFINITIVE LAYOUT FIX v6 ════════════════════════════════════

   WHITE SECTION  → 100vw, touches both screen edges, no side padding
   ROUND CARD     → has side margins (looks floating), 10% peeks below white bg
   ══════════════════════════════════════════════════════════════════ */

.future-white-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 4.5rem 0 0 0 !important;
  background: #ffffff !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Wrapper: gives the card side margins within the full-width white section */
.feature-carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 4% !important;           /* ← side margins for the card */
  box-sizing: border-box !important;
  margin: 0 !important;
  /* 10% of card height peeks below the white section */
  padding-bottom: 0 !important;
  margin-bottom: -12vw !important;    /* card peeks ~12vw below white section */
  position: relative !important;
  z-index: 2 !important;
}

/* Card itself: fills wrapper width (which has 4% side padding) */
.feature-carousel-card {
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 16 / 6 !important;
  border-radius: 24px !important;
  border: 3px solid #1e4d35 !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Footer clears the overlapping card */
.site-footer-strip {
  margin-top: 18vw !important;
  position: relative !important;
  z-index: 5 !important;
}

@media (max-width: 768px) {
  .feature-carousel-wrapper {
    padding: 0 5% !important;
    margin-bottom: -20vw !important;
  }
  .feature-carousel-card {
    aspect-ratio: 3 / 2 !important;
    border-radius: 16px !important;
  }
  .site-footer-strip {
    margin-top: 30vw !important;
  }
}

/* ══ DEFINITIVE v7: PW.live style card layout ═══════════════════
   ─ White section  : full width, touches both screen edges
   ─ Feature card   : floats inside with 3rem margin on each side
   ─ Card peeks 15% below white section into the dark background
   ═══════════════════════════════════════════════════════════════ */

/* Fix: #home overflow:hidden was clipping the white section */
#home {
  overflow: visible !important;
}

/* White background section — full width, no side padding */
.future-white-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 4rem 0 0 0 !important;
  background: #ffffff !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Wrapper: gives 3rem margins on each side so card floats within white bg */
.feature-carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 3rem !important;    /* 3rem left + right = ~48px each side */
  margin: 0 auto !important;
  margin-bottom: -15% !important; /* card peeks ~15% below white section */
  position: relative !important;
  z-index: 10 !important;
}

/* Card: fills the wrapper (which has 3rem padding each side) */
.feature-carousel-card {
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 16 / 6 !important;
  border-radius: 20px !important;
  border: 3px solid #1e4d35 !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25), 0 8px 20px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Push footer down enough to clear the overlapping card */
.site-footer-strip {
  position: relative !important;
  z-index: 5 !important;
  margin-top: 22% !important;
}

@media (max-width: 900px) {
  .feature-carousel-wrapper {
    padding: 0 1.5rem !important;
    margin-bottom: -25% !important;
  }
  .feature-carousel-card {
    aspect-ratio: 4 / 3 !important;
  }
  .site-footer-strip {
    margin-top: 35% !important;
  }
}

/* ══ DEFINITIVE v8: Full-breakout edge-to-edge white section ════
   Classic CSS breakout trick: left:50% + translateX(-50%) + 100vw
   This breaks out of ANY parent padding or max-width constraint.
   ═══════════════════════════════════════════════════════════════ */

/* White section: true edge-to-edge using breakout technique */
.future-white-section {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 5rem 0 0 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Card wrapper: 3rem margins on each side within the full-width white bg */
.feature-carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 3rem !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* 25% of card peeks below white section into dark background */
  margin-bottom: -12vw !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Feature card: fills wrapper area (3rem margin on each side) */
.feature-carousel-card {
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 16 / 6 !important;
  border-radius: 20px !important;
  border: 3px solid #1e4d35 !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
}

/* Footer: push down to clear card's protruding 25% */
.site-footer-strip {
  position: relative !important;
  z-index: 5 !important;
  margin-top: 18vw !important;
}

@media (max-width: 900px) {
  .feature-carousel-wrapper {
    padding: 0 1.2rem !important;
    margin-bottom: -20vw !important;
  }
  .feature-carousel-card {
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
  }
  .site-footer-strip {
    margin-top: 30vw !important;
  }
}
