/* ============================================
   KisanConnect - Main Stylesheet
   BGI Hackathon 2026 | BT3P2
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primary - Green earthy theme */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;

  /* Secondary - Warm amber */
  --secondary-50: #fffbeb;
  --secondary-100: #fef3c7;
  --secondary-200: #fde68a;
  --secondary-300: #fcd34d;
  --secondary-400: #fbbf24;
  --secondary-500: #f59e0b;
  --secondary-600: #d97706;
  --secondary-700: #b45309;

  /* Accent - Teal */
  --accent-50: #f0fdfa;
  --accent-100: #ccfbf1;
  --accent-200: #99f6e4;
  --accent-300: #5eead4;
  --accent-400: #2dd4bf;
  --accent-500: #14b8a6;
  --accent-600: #0d9488;

  /* Success */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;

  /* Warning */
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  /* Error */
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Neutrals */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sidebar-width: 260px;
  --bottom-nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-800);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 1rem;
}

input {
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition);
}

input:focus { border-color: var(--primary-500); }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* --- Language Toggle --- */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: var(--primary-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.lang-toggle:hover { background: var(--primary-700); transform: scale(1.05); }

/* --- Voice Button --- */
.voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.voice-btn:hover { background: var(--primary-200); transform: scale(1.1); }
.voice-btn.speaking { animation: pulse-voice 1s infinite; }

@keyframes pulse-voice {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
}
.btn-primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--secondary-500);
  color: white;
}
.btn-secondary:hover { background: var(--secondary-600); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}
.btn-outline:hover { background: var(--primary-50); }

.btn-ghost {
  background: var(--neutral-100);
  color: var(--neutral-700);
}
.btn-ghost:hover { background: var(--neutral-200); }

.btn-danger {
  background: var(--error-500);
  color: white;
}
.btn-danger:hover { background: var(--error-600); }

.btn-lg { padding: 16px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-flat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--neutral-100);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: var(--success-50); color: var(--success-600); }
.badge-warning { background: var(--warning-50); color: var(--warning-600); }
.badge-error { background: var(--error-50); color: var(--error-600); }
.badge-primary { background: var(--primary-100); color: var(--primary-700); }

/* --- Verified Badge --- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.verified-badge svg { width: 16px; height: 16px; }

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--neutral-100);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-700);
}
.navbar-brand svg { width: 32px; height: 32px; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--neutral-100);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 50;
  transition: transform var(--transition);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 4px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--neutral-600);
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--primary-50);
  color: var(--primary-700);
}
.sidebar-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Main Content with Sidebar --- */
.main-with-sidebar {
  margin-left: var(--sidebar-width);
  margin-top: 64px;
  padding: 32px 24px;
  min-height: calc(100vh - 64px);
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: white;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--neutral-500);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--primary-600); }

/* --- Landing Page --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--accent-50) 100%);
}
.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--neutral-900);
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--neutral-600);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-illustration {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  opacity: 0.15;
  z-index: 1;
}

/* Floating SVGs */
.floating-svg {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
  z-index: 1;
}
.floating-svg:nth-child(2) { animation-delay: -2s; }
.floating-svg:nth-child(3) { animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Role Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.role-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.role-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.role-card svg { width: 64px; height: 64px; margin: 0 auto 16px; }
.role-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--neutral-800); }
.role-card p { color: var(--neutral-500); font-size: 0.95rem; }

/* Stats Section */
.stats-section {
  background: var(--primary-700);
  color: white;
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-item p { font-size: 0.95rem; opacity: 0.85; }

/* How It Works */
.how-it-works {
  padding: 80px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--neutral-500); font-size: 0.9rem; }

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background: var(--neutral-50);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.benefit-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.benefit-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit-list { list-style: none; }
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--neutral-600);
  font-size: 0.95rem;
}
.benefit-list li svg { width: 20px; height: 20px; color: var(--primary-500); flex-shrink: 0; }

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: white;
}
.cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-section .btn { background: white; color: var(--primary-700); }
.cta-section .btn:hover { background: var(--primary-50); }

/* --- Login Page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50), white, var(--accent-50));
  padding: 24px;
}
.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.login-card .logo { width: 64px; height: 64px; margin: 0 auto 16px; }
.login-card h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.login-card p { color: var(--neutral-500); margin-bottom: 32px; }
.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.otp-input-group input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 0;
}
.otp-input-group input:focus { border-color: var(--primary-500); }

/* --- Dashboard Cards --- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--neutral-900); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--neutral-500); margin-top: 4px; }

/* --- Crop Cards --- */
.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.crop-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition);
}
.crop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.crop-card-img {
  height: 160px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.crop-card-img svg { width: 80px; height: 80px; }
.crop-card-body { padding: 16px; }
.crop-card-body h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.crop-card-farmer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}
.crop-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crop-card-price .price { font-size: 1.3rem; font-weight: 800; color: var(--primary-700); }
.crop-card-price .price span { font-size: 0.85rem; font-weight: 400; color: var(--neutral-500); }

/* --- Order Cards --- */
.order-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  margin-bottom: 12px;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.order-card-header h4 { font-weight: 700; }
.order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--neutral-600);
  font-size: 0.9rem;
}

/* --- Tracking Timeline --- */
.tracking-timeline {
  position: relative;
  padding: 32px 0;
}
.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-bottom: 40px;
}
.tracking-step:last-child { padding-bottom: 0; }
.tracking-step::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 3px;
  background: var(--neutral-200);
}
.tracking-step:last-child::before { display: none; }
.tracking-step.completed::before { background: var(--primary-500); }
.tracking-step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: all var(--transition);
}
.tracking-step.completed .tracking-step-dot {
  background: var(--primary-500);
  color: white;
}
.tracking-step.active .tracking-step-dot {
  background: var(--primary-100);
  border: 3px solid var(--primary-500);
  animation: pulse-step 2s infinite;
}
.tracking-step-dot svg { width: 20px; height: 20px; }
.tracking-step-content h4 { font-weight: 700; margin-bottom: 4px; }
.tracking-step-content p { color: var(--neutral-500); font-size: 0.85rem; }

@keyframes pulse-step {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

/* --- Payment Methods --- */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.payment-method {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 2px solid var(--neutral-100);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-method:hover { border-color: var(--primary-300); }
.payment-method.selected { border-color: var(--primary-500); background: var(--primary-50); }
.payment-method svg { width: 40px; height: 40px; margin: 0 auto 12px; }
.payment-method h4 { font-weight: 700; margin-bottom: 4px; }
.payment-method p { font-size: 0.85rem; color: var(--neutral-500); }

/* --- KYC Page --- */
.kyc-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50), white);
  padding: 24px;
}
.kyc-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.kyc-success {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.kyc-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.kyc-success-icon svg { width: 40px; height: 40px; color: var(--primary-600); }

/* --- Payment Success --- */
.payment-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s;
}
.payment-success-modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.payment-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.payment-success-icon svg { width: 40px; height: 40px; color: var(--success-600); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Notification Toast --- */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary-500);
  z-index: 300;
  animation: slideInRight 0.3s, fadeOut 0.3s 2.7s forwards;
  max-width: 360px;
}
.toast.error { border-left-color: var(--error-500); }
.toast.success { border-left-color: var(--success-500); }

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

/* --- Admin Charts --- */
.chart-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  margin-bottom: 24px;
}
.chart-container h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding-top: 20px;
}
.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bar {
  width: 100%;
  max-width: 48px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--primary-400);
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bar-label { font-size: 0.75rem; color: var(--neutral-500); }

/* --- Verification Queue --- */
.verification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--neutral-100);
}
.verification-item:last-child { border-bottom: none; }
.verification-info { display: flex; align-items: center; gap: 12px; }
.verification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-700);
}
.verification-actions { display: flex; gap: 8px; }

/* --- Section Headers --- */
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--neutral-500);
  font-size: 1.05rem;
}

/* --- Search Bar --- */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar input {
  padding-left: 48px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--neutral-200);
}
.search-bar input:focus { border-color: var(--primary-500); }
.search-bar svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--neutral-400);
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-600);
  color: white;
}

/* --- Cart --- */
.cart-badge {
  position: relative;
}
.cart-badge .count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--error-500);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s;
}
.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }

/* --- Coming Soon --- */
.coming-soon-card {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px dashed var(--primary-200);
  text-align: center;
}
.coming-soon-card h4 { font-weight: 700; margin-bottom: 4px; }
.coming-soon-card p { font-size: 0.85rem; color: var(--neutral-500); }

/* --- Delivery Vehicle Animation --- */
.delivery-vehicle {
  animation: driveIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes driveIn {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* --- Counter Animation --- */
.counter-animate {
  display: inline-block;
  transition: all 0.3s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-with-sidebar { margin-left: 0; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-illustration { display: none; }
  .role-cards { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item h3 { font-size: 1.8rem; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .payment-methods { grid-template-columns: 1fr; }
  .main-with-sidebar { padding: 24px 16px; padding-bottom: calc(var(--bottom-nav-height) + 24px); }
  .cta-section h2 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.5rem; }
  .login-card { padding: 32px 24px; }
  .kyc-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .crop-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .otp-input-group input { width: 40px; height: 48px; font-size: 1.2rem; }
}

/* --- Page Transition --- */
.page-enter {
  animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 1024px) {
  .hamburger { display: flex; }
}

/* --- Sidebar Overlay --- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 40;
  display: none;
}
.sidebar-overlay.active { display: block; }

/* --- Admin specific --- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* --- Transaction History --- */
.txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--neutral-100);
}
.txn-item:last-child { border-bottom: none; }
.txn-info { display: flex; align-items: center; gap: 12px; }
.txn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.txn-icon svg { width: 20px; height: 20px; }
.txn-amount { font-weight: 700; font-size: 1.1rem; }

/* ============================================
   UPGRADED STYLES - Trust, Rating, KYC
   ============================================ */

/* --- Glassmorphism Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}
.glass-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

/* --- KYC Progress Steps --- */
.kyc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 16px;
}
.kyc-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.kyc-progress-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neutral-500);
  transition: all 0.4s;
  position: relative;
  z-index: 2;
}
.kyc-progress-dot svg { width: 18px; height: 18px; }
.kyc-progress-step.active .kyc-progress-dot {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-100);
}
.kyc-progress-step.completed .kyc-progress-dot {
  background: var(--primary-600);
  color: white;
}
.kyc-progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-400);
  margin-top: 8px;
  text-align: center;
  max-width: 80px;
  transition: color 0.3s;
}
.kyc-progress-step.active .kyc-progress-label,
.kyc-progress-step.completed .kyc-progress-label {
  color: var(--primary-700);
}
.kyc-progress-line {
  flex: 1;
  height: 3px;
  background: var(--neutral-200);
  margin: 0 -4px;
  margin-bottom: 28px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  transition: background 0.4s;
}
.kyc-progress-line.completed { background: var(--primary-500); }

/* --- KYC Multi-Step Card --- */
.kyc-card-wide {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
}
.kyc-step-content { animation: fadeSlideIn 0.4s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Upload Simulation --- */
.upload-zone {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--neutral-50);
}
.upload-zone:hover { border-color: var(--primary-400); background: var(--primary-50); }
.upload-zone.uploaded {
  border-color: var(--primary-500);
  background: var(--primary-50);
  border-style: solid;
}
.upload-zone svg { width: 32px; height: 32px; margin: 0 auto 8px; color: var(--neutral-400); }
.upload-zone.uploaded svg { color: var(--primary-500); }
.upload-zone p { font-size: 0.85rem; color: var(--neutral-500); }
.upload-zone .upload-check { color: var(--primary-600); font-weight: 600; }

/* --- Star Rating --- */
.star-rating {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.star-rating .star {
  cursor: pointer;
  transition: all 0.2s;
  color: var(--neutral-300);
}
.star-rating .star.filled { color: #fbbf24; }
.star-rating .star:hover { transform: scale(1.2); }
.star-rating-display {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.star-rating-display .star { color: var(--neutral-300); }
.star-rating-display .star.filled { color: #fbbf24; }
.star-rating-display .star.half { color: #fcd34d; }

/* --- Trust Score Bar --- */
.trust-bar {
  width: 100%;
  height: 8px;
  background: var(--neutral-200);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.trust-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, var(--error-500), var(--warning-500), var(--primary-500));
}
.trust-bar-fill.high { background: linear-gradient(90deg, var(--primary-400), var(--primary-600)); }
.trust-bar-fill.medium { background: linear-gradient(90deg, var(--warning-400), var(--primary-400)); }
.trust-bar-fill.low { background: linear-gradient(90deg, var(--error-400), var(--warning-400)); }

/* --- Review Card --- */
.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-700);
}
.review-card-body { color: var(--neutral-600); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.review-card-ratings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-100);
}
.review-rating-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--neutral-500);
}
.review-rating-item .mini-stars { display: inline-flex; gap: 1px; }
.review-rating-item .mini-star { width: 12px; height: 12px; }
.review-helpful {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--neutral-400);
  margin-top: 8px;
}
.review-helpful button {
  background: none;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-helpful button:hover { border-color: var(--primary-400); color: var(--primary-600); }
.review-reported { border-left: 3px solid var(--error-500); }

/* --- Farmer Trust Card --- */
.farmer-trust-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  margin-bottom: 16px;
}
.farmer-trust-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.farmer-trust-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.farmer-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.farmer-trust-stat {
  text-align: center;
  padding: 8px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
}
.farmer-trust-stat .value { font-weight: 800; font-size: 1.1rem; }
.farmer-trust-stat .label { font-size: 0.7rem; color: var(--neutral-500); }

/* --- Marketplace Sections --- */
.marketplace-section {
  margin-bottom: 40px;
}
.marketplace-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.marketplace-section-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.marketplace-section-header .see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-600);
}

/* --- Price Guidance & AI Prediction --- */
.govt-price-guide {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  background: var(--primary-50);
}

.govt-guide-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 8px;
}

.govt-price-range {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.govt-price-range span {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: white;
  color: var(--neutral-700);
  font-size: 0.85rem;
  font-weight: 700;
}

.govt-guide-empty {
  color: var(--neutral-500);
  font-size: 0.85rem;
}

.purchase-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-prediction-panel {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.ai-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ai-panel-header h3 {
  font-weight: 800;
  margin-bottom: 6px;
}

.ai-panel-header p {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.ai-signal-grid,
.ai-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ai-signal-grid {
  margin-bottom: 16px;
}

.ai-signal-grid div,
.ai-recommendation-card {
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--neutral-50);
}

.ai-signal-grid strong,
.ai-signal-grid span {
  display: block;
}

.ai-signal-grid span,
.ai-recommendation-card p {
  color: var(--neutral-500);
  font-size: 0.82rem;
}

.ai-recommendation-card {
  background: white;
}

.ai-recommendation-card h4 {
  font-weight: 800;
}

.ai-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.88rem;
}

.ai-price-row span {
  color: var(--neutral-500);
}

.ai-confidence {
  height: 8px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0 8px;
}

.ai-confidence span {
  display: block;
  height: 100%;
  background: var(--primary-500);
}

/* --- Horizontal Scroll --- */
.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll::-webkit-scrollbar { height: 4px; }
.horizontal-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* --- Verification Detail Card --- */
.verification-detail-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-100);
  margin-bottom: 16px;
}
.verification-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--neutral-100);
}
.verification-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.verification-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.verification-detail-item {
  padding: 12px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
}
.verification-detail-item .label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-bottom: 4px;
}
.verification-detail-item .value {
  font-weight: 600;
  font-size: 0.9rem;
}
.verification-docs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.verification-doc-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--neutral-500);
  border: 1px solid var(--neutral-200);
}
.verification-doc-thumb svg { width: 24px; height: 24px; color: var(--neutral-400); }
.verification-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-100);
}

/* --- Bhulekh Verification Loader --- */
.bhulekh-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  margin: 12px 0;
  animation: fadeIn 0.3s;
}
.bhulekh-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--primary-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bhulekh-result {
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s;
}
.bhulekh-result.success { background: var(--success-50); color: var(--success-600); }
.bhulekh-result.error { background: var(--error-50); color: var(--error-600); }

/* --- Admin Tabs --- */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
}
.admin-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--neutral-500);
}
.admin-tab.active { background: white; color: var(--primary-700); box-shadow: var(--shadow-sm); }
.admin-tab:hover:not(.active) { color: var(--neutral-700); }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--neutral-400);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.4; }
.empty-state h4 { font-weight: 600; margin-bottom: 8px; color: var(--neutral-500); }
.empty-state p { font-size: 0.9rem; }

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-50) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Premium Widget --- */
.premium-widget {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.premium-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.premium-widget h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.premium-widget .value { font-size: 2rem; font-weight: 800; }
.premium-widget .label { font-size: 0.8rem; opacity: 0.8; }

/* --- Review Form --- */
.review-form { margin-top: 24px; }
.review-form textarea {
  width: 100%;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition);
}
.review-form textarea:focus { border-color: var(--primary-500); outline: none; }
.rating-input-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.rating-input-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
}
.rating-input-item label { font-size: 0.85rem; font-weight: 500; }

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .kyc-progress { gap: 0; }
  .kyc-progress-label { font-size: 0.6rem; max-width: 60px; }
  .kyc-progress-dot { width: 32px; height: 32px; font-size: 0.75rem; }
  .kyc-card-wide { padding: 32px 24px; }
  .verification-detail-grid { grid-template-columns: 1fr; }
  .farmer-trust-stats { grid-template-columns: repeat(2, 1fr); }
  .rating-input-group { grid-template-columns: 1fr; }
  .verification-docs { flex-wrap: wrap; }
  .verification-actions-bar { flex-direction: column; }
  .verification-actions-bar .btn { width: 100%; }
}

@media (max-width: 480px) {
  .kyc-progress-step:nth-child(n+6) .kyc-progress-label { display: none; }
  .farmer-trust-stats { grid-template-columns: 1fr 1fr; }
}
