@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   SARVAHITA PREMIUM PORTAL — Design System
   ============================================================ */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Premium Green & Gold Palette */
  --green-900: #1B4332;
  --green-800: #2D6A4F;
  --green-700: #40916C;
  --green-600: #52B788;
  --green-500: #74C69D;
  --green-100: #D8F3DC;
  --green-50:  #F0FAF3;

  --gold-600:  #B7791F;
  --gold-500:  #D97706;
  --gold-400:  #F59E0B;
  --gold-100:  #FEF3C7;

  --bg-primary:   #F4F9F5;
  --bg-card:      rgba(255,255,255,0.95);
  --bg-section:   #EEF7F1;
  --bg-dark:      #0D1F15;
  --bg-sidebar:   #112318;

  --text-main:    #0D1F15;
  --text-muted:   #4A7C59;
  --text-light:   #7EAD8A;
  --text-white:   #FFFFFF;

  --border:       rgba(64,145,108,0.18);
  --border-dark:  rgba(64,145,108,0.35);

  --shadow-sm:    0 1px 3px rgba(27,67,50,0.08);
  --shadow-md:    0 4px 12px rgba(27,67,50,0.12);
  --shadow-lg:    0 12px 32px rgba(27,67,50,0.14);
  --shadow-xl:    0 24px 48px rgba(27,67,50,0.18);
  --shadow-glow:  0 0 40px rgba(82,183,136,0.18);

  --glass-bg:     rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.8);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 4px; }

/* ==================== KEYFRAMES ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
/* Premium new animations */
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-60px) scale(1.1); }
  66%      { transform: translate(-30px,30px) scale(0.95); }
}
@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}
@keyframes ringPulse {
  0%,100% { transform: scale(1);   opacity: 0.6; box-shadow: 0 0 0 0 rgba(116,198,157,0.5); }
  50%      { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 12px rgba(116,198,157,0); }
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(64,145,108,0.35), 0 0 0 0 rgba(82,183,136,0.4); }
  50%      { box-shadow: 0 8px 28px rgba(64,145,108,0.55), 0 0 0 8px rgba(82,183,136,0); }
}
@keyframes statCountUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes borderGlow {
  0%,100% { border-color: rgba(82,183,136,0.3); }
  50%      { border-color: rgba(82,183,136,0.8); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==================== GLASS ==================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==================== HEADER ==================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(27,67,50,0.08);
  transition: var(--transition);
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.03em;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.88; }

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-600);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.2);
  flex-shrink: 0;
}

.logo-svg {
  width: 36px;
  height: 36px;
  color: var(--green-700);
  flex-shrink: 0;
}

/* NAV */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-800);
  background: var(--green-50);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--green-600);
  border-radius: 50%;
}

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 12px; }

.language-selector { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--green-50); border-color: var(--green-600); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background var(--transition);
}
.lang-dropdown button:hover { background: var(--green-50); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn i { font-size: 0.85em; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(64,145,108,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
  box-shadow: 0 8px 24px rgba(64,145,108,0.5);
  transform: translateY(-2px);
}

.btn-glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}
.btn-glow:hover {
  animation: none;
  box-shadow: 0 8px 32px rgba(64,145,108,0.6), 0 0 0 4px rgba(82,183,136,0.2);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255,255,255,0.12) !important;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-700);
}
.btn-secondary:hover {
  background: var(--green-50);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64,145,108,0.2);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.3);
}
.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(217,119,6,0.5);
  transform: translateY(-2px);
}

.btn-large { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-full  { width: 100%; justify-content: center; }
.btn-login {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(64,145,108,0.3);
}
.btn-login:hover { box-shadow: 0 6px 20px rgba(64,145,108,0.45); transform: translateY(-1px); }
.btn-small { padding: 7px 14px; font-size: 0.82rem; }
.btn-danger { background: #ef4444; color: #fff; }

/* ==================== APP CONTENT ==================== */
.app-content { min-height: calc(100vh - 70px); }

.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn 0.35s ease; }

/* ==================== HERO ==================== */
.hero-section {
  background: linear-gradient(135deg, #0d2818 0%, var(--green-900) 40%, #1e5c3a 70%, #2D7A5B 100%);
  padding: 100px 32px 90px;
  position: relative;
  overflow: hidden;
}
/* Animated mesh gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(116,198,157,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(82,183,136,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(82,183,136,0.25) 0%, transparent 70%);
  top: -100px; left: -80px;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(116,198,157,0.2) 0%, transparent 70%);
  bottom: 20px; right: -60px;
  animation: orbFloat 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: orbFloat 22s ease-in-out infinite 4s;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(116,198,157,0.6);
  animation: particleRise 6s ease-in-out infinite;
}
.particle:nth-child(1)  { left: 10%; bottom: 20%; animation-delay: 0s;   width: 5px; height: 5px; }
.particle:nth-child(2)  { left: 25%; bottom: 35%; animation-delay: 1.5s; }
.particle:nth-child(3)  { left: 40%; bottom: 15%; animation-delay: 3s;   background: rgba(245,158,11,0.5); }
.particle:nth-child(4)  { left: 55%; bottom: 40%; animation-delay: 0.8s; width: 3px; height: 3px; }
.particle:nth-child(5)  { left: 70%; bottom: 25%; animation-delay: 2.2s; }
.particle:nth-child(6)  { left: 82%; bottom: 50%; animation-delay: 4s;   background: rgba(245,158,11,0.4); }
.particle:nth-child(7)  { left: 15%; bottom: 60%; animation-delay: 5s;   width: 6px; height: 6px; }
.particle:nth-child(8)  { left: 90%; bottom: 30%; animation-delay: 1s;   width: 3px; height: 3px; }

/* Hero brand logo + title combo */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-logo-wrap {
  position: relative;
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}
.hero-logo-img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow:
    0 0 0 6px rgba(116,198,157,0.2),
    0 0 0 12px rgba(116,198,157,0.08),
    0 20px 60px rgba(0,0,0,0.35);
  display: block;
  position: relative;
  z-index: 1;
}
.hero-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(116,198,157,0.5);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.7s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-100);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  animation: slideInLeft 0.6s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  text-align: left;
  line-height: 1.15;
}
.hero-brand .hero-title { text-align: left; }
.hero-title .accent {
  background: linear-gradient(90deg, #74C69D, #B7E4C7, #52B788);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Trust indicators row */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.5s both;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.hero-trust i { color: var(--green-500); font-size: 0.9rem; }

.stats-bar {
  background: linear-gradient(135deg, #fff 0%, #f0faf3 100%);
  border-radius: 0;
  padding: 32px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,67,50,0.07);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--gold-400), var(--green-500));
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}
.stats-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  animation: statCountUp 0.6s ease both;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.5s; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; }

/* ==================== SDG BANNER ==================== */
.sdg-banner {
  background: linear-gradient(135deg, var(--gold-100) 0%, #FFF8E1 100%);
  border-top: 3px solid var(--gold-400);
  border-bottom: 1px solid rgba(217,119,6,0.2);
  padding: 14px 32px;
}
.sdg-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-600);
  justify-content: center;
}
.sdg-icon { color: var(--gold-500); font-size: 1.2rem; }

/* ==================== SECTIONS ==================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--green-900);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}
/* Animated underline accent on section headings */
.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: 2px;
  margin: 12px auto 0;
  animation: gradientShift 3s linear infinite;
  background-size: 200% auto;
}

.section-subheading {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== GRIDS ==================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--green-600);
}

/* Service Card */
.card-service {
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--green-800));
  opacity: 0;
  transition: opacity var(--transition);
}
.card-service:hover::before { opacity: 1; }

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-700);
  font-size: 1.5rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card-service h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--green-900); }
.card-service p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 22px; }

/* Feature Card */
.card-feature {
  padding: 32px;
}
.feature-icon {
  font-size: 2rem;
  color: var(--green-700);
  margin-bottom: 18px;
  display: block;
}
.card-feature h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--green-900); }
.card-feature p  { font-size: 0.9rem; color: var(--text-muted); }

/* Testimonial Card */
.card-testimonial {
  padding: 28px;
  position: relative;
}
.card-testimonial::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 22px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--green-200, #B7E4C7);
  line-height: 1;
  opacity: 0.5;
}
.card-testimonial .quote { font-style: italic; color: var(--text-muted); margin-bottom: 18px; font-size: 0.95rem; }
.card-testimonial .author { display: flex; align-items: center; gap: 12px; }
.card-testimonial .author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.card-testimonial .author h5 { font-size: 0.9rem; color: var(--green-900); }
.card-testimonial .author span { font-size: 0.78rem; color: var(--text-muted); }

/* Resource Card */
.card-resource {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.resource-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.resource-header i { font-size: 1.4rem; }
.resource-header.bg-green  { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.resource-header.bg-brown  { background: linear-gradient(135deg, #7B5E3A, #5C4127); }
.resource-header.bg-blue   { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.resource-body { padding: 24px; }
.resource-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--green-900); }
.resource-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 18px; }

/* Nutrient Cards */
.card-nutrient {
  padding: 20px;
  text-align: center;
  border-top: 3px solid transparent;
}
.card-nutrient h4 { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.card-nutrient .value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; }
.card-nutrient .label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 4px; }
.alert-level-high { border-top-color: #ef4444; }
.alert-level-high .value { color: #ef4444; }
.alert-level-mid  { border-top-color: var(--gold-500); }
.alert-level-mid .value  { color: var(--gold-500); }
.alert-level-low  { border-top-color: var(--green-600); }
.alert-level-low .value  { color: var(--green-600); }

/* ==================== SERVICE SECTION ==================== */
.service-section  { background: var(--bg-section); }
.why-choose-section { background: var(--bg-primary); }

.why-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.why-card i { font-size: 1.8rem; color: var(--green-600); margin-bottom: 12px; display: block; }
.why-card h4 { font-size: 0.95rem; color: var(--green-900); }

/* HOW IT WORKS */
.how-it-works-section { background: linear-gradient(180deg, var(--green-900) 0%, #1B4332 100%); }
.how-it-works-section .section-heading { color: #fff; }
.how-it-works-section .section-container { padding-top: 64px; padding-bottom: 64px; }

.steps-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.step-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(82,183,136,0.4);
}
.step-card h4 { color: #fff; font-size: 0.95rem; margin-bottom: 8px; }
.step-card p  { color: rgba(255,255,255,0.65); font-size: 0.82rem; }

.step-arrow {
  color: var(--green-500);
  font-size: 1.3rem;
  padding: 0 12px;
  flex-shrink: 0;
}

/* TESTIMONIALS */
.testimonials-section { background: var(--bg-section); }

/* ==================== FOOTER ==================== */
.footer-section {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 32px 28px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-500);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 0.875rem; }
.footer-nav a { color: rgba(255,255,255,0.55); padding: 4px 10px; transition: color var(--transition); }
.footer-nav a:hover { color: var(--green-500); }
.footer-nav span { color: rgba(255,255,255,0.2); }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--green-700); border-color: var(--green-600); color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; width: 100%; }

/* ==================== VENDOR PAGE ==================== */
.vendor-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 70px);
}
.vendor-pane {
  overflow-y: auto;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-pane { position: relative; }
.full-map  { height: 100%; width: 100%; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  background: var(--bg-primary);
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(82,183,136,0.15); }
.search-icon { color: var(--text-muted); }
.search-box input { flex: 1; border: none; background: transparent; font-size: 0.9rem; outline: none; color: var(--text-main); }

.filters-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.vendor-action-row { }
.vendor-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* FORM ELEMENTS */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-main); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* VENDOR CARD */
.vendor-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}
.vendor-card:hover { border-color: var(--green-600); background: var(--green-50); box-shadow: var(--shadow-sm); }
.vendor-card.featured { border-color: var(--gold-400); background: linear-gradient(135deg, #FFFDF0, #FFF8E1); }

.vc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.vc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.vc-name { font-weight: 600; font-size: 0.92rem; color: var(--green-900); }
.vc-type { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.vc-dist {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 8px;
  border-radius: 50px;
}
.vc-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.vc-meta span { display: flex; align-items: center; gap: 4px; }
.vc-rating { color: var(--gold-500); }

/* ==================== SOIL INTEL ==================== */
.soil-intel-landing { }
.soil-hero {
  background: linear-gradient(135deg, #0D1F15 0%, var(--green-900) 60%, var(--green-800) 100%);
  padding: 80px 32px 70px;
  position: relative;
  overflow: hidden;
}
.soil-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(82,183,136,0.2) 0%, transparent 60%);
}
.soil-hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.badge-soil { }
.soil-hero-content h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 18px; }
.soil-hero-content p  { color: rgba(255,255,255,0.72); font-size: 1rem; margin-bottom: 32px; }
.soil-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.soil-features { background: var(--bg-primary); }
.soil-features .section-container { padding-top: 64px; }

/* ==================== PRICING ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--green-600);
}
.pricing-card.free { border-color: var(--green-600); }
.pricing-card.premium {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12), 0 8px 32px rgba(217,119,6,0.1);
}
.pricing-card.premium-industry { border-color: #3B82F6; }

.pricing-header {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FAFFFE 0%, #F4FAF7 100%);
}
.pricing-card.premium .pricing-header  { background: linear-gradient(180deg, #FFFDF0 0%, #FFF8E1 100%); }
.pricing-card.premium::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 14px;
  right: -24px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 32px;
  transform: rotate(35deg);
}

.pricing-header h3 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-header .price { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: var(--green-900); margin-bottom: 8px; }
.pricing-header p { font-size: 0.85rem; color: var(--text-muted); }

.pricing-body { padding: 24px 28px 28px; }
.pricing-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-body li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-main); }
.pricing-body li i { color: var(--green-600); font-size: 0.9rem; flex-shrink: 0; }

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.about-grid h3 { color: var(--green-800); margin-bottom: 10px; }
.about-grid p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.impact-metrics-about h3 { text-align: center; margin-bottom: 24px; color: var(--green-900); }
.text-center { text-align: center; }

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-info { }
.contact-info h3 { margin-bottom: 20px; color: var(--green-900); }

.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: all var(--transition);
}
.contact-method-card:hover {
  border-color: var(--green-600);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  background: var(--green-50);
}
.contact-method-card.wa {
  border-color: rgba(37,211,102,0.4);
  background: rgba(37,211,102,0.04);
}
.contact-method-card.wa:hover {
  border-color: rgba(37,211,102,0.8);
  background: rgba(37,211,102,0.08);
}
.contact-method-card i {
  font-size: 1.6rem;
  color: var(--green-700);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.contact-method-card.wa i { color: #25D366; }
.contact-method-card h4 { font-size: 0.95rem; color: var(--green-900); margin-bottom: 3px; font-weight: 700; }
.contact-method-card p  { font-size: 0.875rem; color: var(--text-muted); }

/* ==================== DASHBOARD ==================== */
.dashboard-layout { display: flex; height: calc(100vh - 70px); }
.dashboard-sidebar {
  width: 230px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 8px;
  flex-shrink: 0;
  overflow-y: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 20px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.sidebar-header i { color: var(--green-500); font-size: 1.2rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--transition);
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-nav a.active { background: rgba(82,183,136,0.15); color: var(--green-400); border-left: 3px solid var(--green-500); }
.sidebar-footer { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.db-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.db-header h2 { font-size: 1.2rem; color: var(--green-900); }
.db-header p  { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.db-header-actions { display: flex; align-items: center; gap: 12px; }
.user-role-badge {
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 1px solid var(--green-600);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.db-tab-content { display: none; padding: 28px; overflow-y: auto; flex: 1; }
.db-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

.nutrient-cards { margin-bottom: 28px; }
.db-visuals-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.db-map-card, .db-chart-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.db-map-card h3, .db-chart-card h3 { margin-bottom: 16px; font-size: 1rem; color: var(--green-900); }
.dashboard-map { height: 280px; border-radius: var(--radius-md); overflow: hidden; }

.mock-chart-container { height: 200px; }
.svg-chart { width: 100%; height: 100%; }

.map-layers-control { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.reports-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.reports-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.reports-table td { padding: 12px 14px; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.reports-table tr:hover td { background: var(--green-50); }

.downloads-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.download-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.sub-status-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; margin-top: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--green-50);
}
.status-indicator.active { color: var(--green-700); font-weight: 700; font-size: 0.82rem; }

.admin-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 24px; }
.admin-grid .card { padding: 22px; }
.admin-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.admin-grid li { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.admin-table-container { overflow-x: auto; margin-top: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 10px 14px; background: var(--bg-section); color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }

.status-badge {
  padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.status-badge.pending  { background: var(--gold-100); color: var(--gold-600); }
.status-badge.approved { background: var(--green-100); color: var(--green-800); }

/* ==================== MOBILE NAV ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 999;
  justify-content: space-around;
}
.mobile-nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 12px;
  font-size: 0.65rem; font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.mobile-nav-link i { font-size: 1.2rem; }
.mobile-nav-link.active, .mobile-nav-link:hover { color: var(--green-700); }

/* ==================== MODALS ==================== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,31,21,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.25s ease; }

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.modal-close:hover { background: #fee2e2; color: #ef4444; }

.modal-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-section); padding: 4px; border-radius: var(--radius-sm); }
.modal-tab-btn {
  flex: 1; padding: 8px 12px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition);
}
.modal-tab-btn.active { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }

.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }
.auth-tab-content h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--green-900); }
.auth-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.hidden { display: none; }

.dialog-card { text-align: center; }
.dialog-icon { font-size: 2.5rem; color: var(--green-700); margin-bottom: 12px; display: block; }
.dialog-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }

.profile-card { max-width: 520px; padding: 0; overflow: hidden; }
.profile-header-img {
  height: 130px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}
.profile-body { padding: 28px; }
.badge-profile {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  background: var(--green-100); color: var(--green-800);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.profile-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }
.profile-details { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.profile-actions { display: flex; gap: 10px; }

.text-modal { max-width: 640px; }

/* ==================== FAQ ==================== */
.faq-container { margin-top: 48px; }
.faq-container h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--green-900); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-900);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--green-50); }
.faq-question i { color: var(--green-600); transition: transform var(--transition); }
.faq-question.open i { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 16px; font-size: 0.875rem; color: var(--text-muted); }
.faq-answer.open { display: block; animation: fadeIn 0.2s ease; }

/* ==================== VIDEO CARDS ==================== */
.resource-multimedia { margin-top: 48px; }
.resource-multimedia h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--green-900); }

/* Legacy placeholder style (kept for fallback) */
.video-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: all var(--transition);
  background: #fff;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #fff; position: relative;
}
.video-play-icon { font-size: 3rem; opacity: 0.85; }
.video-overlay-text { font-size: 0.82rem; opacity: 0.7; font-weight: 500; }
.video-title { padding: 12px 16px; font-size: 0.875rem; font-weight: 600; color: var(--green-900); background: #fff; }

/* Premium YouTube Embed Card */
.premium-video-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: default;
}
.premium-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-600);
}

/* 16:9 responsive iframe wrapper */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-info {
  padding: 14px 18px 16px;
}
.video-info .video-title {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 10px;
  line-height: 1.4;
  background: transparent;
}
.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.video-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 3px 10px;
  border-radius: 50px;
}
.video-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FF0000;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,0,0,0.2);
  background: rgba(255,0,0,0.04);
  transition: all var(--transition);
}
.video-yt-link:hover {
  background: rgba(255,0,0,0.08);
  border-color: rgba(255,0,0,0.4);
  transform: scale(1.03);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .db-visuals-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vendor-layout { grid-template-columns: 1fr; grid-template-rows: auto 400px; height: auto; }
  .desktop-nav { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .mobile-bottom-nav { display: flex; }
  .app-content { padding-bottom: 70px; }
  .steps-flow { gap: 12px; }
  .step-arrow { display: none; }
  .hero-brand { flex-direction: column; gap: 16px; }
  .hero-brand .hero-title { text-align: center; }
  .hero-logo-img { width: 72px; height: 72px; }
}
@media (max-width: 600px) {
  .header-container { padding: 0 16px; }
  .hero-section { padding: 60px 16px 70px; }
  .section-container { padding: 48px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
  .stats-container { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .stat-item:last-child { border-bottom: none; }
  .filters-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
  .hero-brand { gap: 12px; }
}

/* ==================== PREMIUM EXTRAS ==================== */
/* Suppress heading underline on dark-bg sections */
.how-it-works-section .section-heading::after { background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3)); }

/* Card shimmer on hover */
.card-service:hover .card-icon {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: #fff;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Premium header scroll enhancement */
.main-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 32px rgba(27,67,50,0.14);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== AI CHATBOT PANEL ==================== */
.ai-chatbot-panel {
  margin-top: 48px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  position: relative;
}

.ai-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ai-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.ai-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  animation: ringPulse 2.5s ease-in-out infinite;
}

.ai-header-info {
  flex: 1;
}

.ai-header-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ai-status {
  font-size: 0.78rem;
  color: var(--green-100);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.ai-header-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-100);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-window {
  padding: 24px;
  height: 320px;
  overflow-y: auto;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

.ai-message.bot {
  align-self: flex-start;
}

.ai-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-message.user .ai-msg-avatar {
  background: var(--gold-500);
}

.ai-msg-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.ai-message.bot .ai-msg-bubble {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}

.ai-message.user .ai-msg-bubble {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #ffffff;
  border-top-right-radius: 4px;
}

/* Typing indicator */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.ai-chips {
  padding: 10px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.ai-chip {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.ai-chip:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-900);
  transform: translateY(-1px);
}

.ai-input-row {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.ai-input:focus {
  border-color: var(--green-600);
}

.ai-send-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.ai-send-btn:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  transform: scale(1.05);
}

.ai-footer-note {
  padding: 8px 20px 12px;
  background: #ffffff;
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   USER PROFILE BUTTON & HEADER BADGE
   ============================================================ */
.btn-user-profile {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(27,67,50,0.25);
  transition: all 0.3s ease;
}
.btn-user-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,67,50,0.35);
  border-color: var(--gold-400);
}

/* ============================================================
   YOUTUBE PLAY BUTTON & OVERLAY THUMBNAIL
   ============================================================ */
.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  cursor: pointer;
}
.video-card-thumb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  transition: background 0.3s ease;
}
.video-card-thumb-wrap:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.yt-play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FF0000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-card-thumb-wrap:hover .yt-play-btn-large {
  transform: translate(-50%, -50%) scale(1.15);
}
.yt-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.2);
}
.yt-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================
   VIDEO MODAL CONTAINER
   ============================================================ */
.video-modal-wrap {
  width: 100%;
  max-width: 900px;
  background: #0d1f18;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}
.video-modal-header {
  padding: 16px 24px;
  background: #122b21;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.video-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-modal-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.video-modal-close:hover {
  color: #fff;
}
.video-modal-body {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}
.video-modal-body iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   RATINGS & REVIEWS HUB STYLING
   ============================================================ */
.ratings-summary-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.ratings-overall-card {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.roc-score {
  font-size: 4rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.roc-stars {
  color: var(--gold-400);
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  gap: 4px;
}
.roc-count {
  font-size: 0.88rem;
  color: var(--green-100);
  font-weight: 500;
}

.ratings-category-summaries {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rcs-block h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rcs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.seller-rating-card, .map-rating-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.seller-rating-card:hover, .map-rating-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
}
.src-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.src-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0;
  line-height: 1.3;
}
.src-badge {
  background: var(--gold-500);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.src-badge.map-badge {
  background: #3B82F6;
}
.src-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ratings-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.ratings-tabs {
  display: flex;
  gap: 8px;
}
.ratings-tab-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ratings-tab-btn:hover, .ratings-tab-btn.active {
  background: var(--green-800);
  color: #ffffff;
  border-color: var(--green-800);
}

.reviews-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}
@media (max-width: 900px) {
  .ratings-summary-grid { grid-template-columns: 1fr; }
  .reviews-layout-grid { grid-template-columns: 1fr; }
}

.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.review-item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}
.ric-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.ric-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ric-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ric-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
}
.ric-village {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}
.ric-target {
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 2px;
}
.ric-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}
.ric-cat-tag.seller {
  background: var(--green-100);
  color: var(--green-900);
}
.ric-cat-tag.map {
  background: #DBEAFE;
  color: #1E40AF;
}
.ric-stars {
  color: var(--gold-500);
  font-size: 1rem;
  letter-spacing: 2px;
}
.ric-comment {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 12px;
}
.ric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.ric-verified {
  color: var(--green-700);
  font-weight: 600;
}

/* WRITE REVIEW CARD */
.write-review-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}
.write-review-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 4px;
}
.write-review-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  color: var(--gold-500);
  cursor: pointer;
  margin-bottom: 6px;
}
.star-rating-picker i {
  transition: transform 0.2s ease;
}
.star-rating-picker i:hover {
  transform: scale(1.25);
}
.star-rating-picker i.fa-regular {
  color: #ccc;
}
.selected-rating-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 16px;
}

/* ============================================================
   MAP CONTAINER STYLING (FIX FOR MAP VISIBILITY)
   ============================================================ */
.vendor-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 74px);
  min-height: 650px;
}
.vendor-sidebar {
  background: #ffffff;
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.vendor-map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 550px;
}
#vendorMap {
  width: 100% !important;
  height: 100% !important;
  min-height: 550px !important;
  z-index: 1;
  background: #e5e3df;
}
#dashboardMap {
  width: 100% !important;
  height: 420px !important;
  min-height: 400px !important;
  border-radius: var(--radius-md);
  z-index: 1;
  background: #e5e3df;
}
@media (max-width: 900px) {
  .vendor-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 450px;
    height: auto;
  }
  .vendor-map-wrap, #vendorMap {
    height: 450px !important;
    min-height: 450px !important;
  }
}



