body { background: #F0F7F0 !important; background-image: none !important; }

.seed-app {
  --seed-primary: #2E7D32;
  --seed-primary-dark: #1B5E20;
  --seed-secondary: #4CAF50;
  --seed-orange: #F57C00;
  --seed-orange-light: #FF9800;
  --seed-blue: #1565C0;
  --seed-blue-light: #42A5F5;
  --seed-bg: #F0F7F0;
  --seed-radius: 16px;
  --seed-shadow: 0 4px 20px rgba(46, 125, 50, 0.12);
  --seed-shadow-lg: 0 8px 28px rgba(46, 125, 50, 0.16);
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  background: var(--seed-bg);
  min-height: 100vh;
  padding-top: max(4px, env(safe-area-inset-top, 0px));
  padding-bottom: 56px;
  color: #1a2e1a;
}
.seed-app * { box-sizing: border-box; }

/* Corporate header — 50px, rounded bottom */
.seed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 0 20px;
  margin: 0 0 14px 0;
  background: linear-gradient(180deg, #1B5E20 0%, #2E7D32 55%, #388E3C 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 18px rgba(27, 94, 32, 0.28);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.seed-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.seed-header h1 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.3px;
  font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}
.seed-header .sub { display: none; }

.seed-results-section { margin-top: 4px; }
.seed-results-section .seed-empty { margin-top: 8px; }

/* Bottom footer (AGRISNET) on seed pages */
body:has(.seed-app) .footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #E8F5E9;
  box-shadow: 0 -2px 12px rgba(46, 125, 50, 0.08);
  z-index: 100;
}
body:has(.seed-app) .footer .text-muted {
  font-size: 11px;
  color: #888 !important;
}
body:has(.seed-app) {
  background: #F0F7F0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Home cards */
.seed-home-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--seed-radius);
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
  box-shadow: var(--seed-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.seed-home-card:hover, .seed-home-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--seed-shadow-lg);
  color: #fff;
}
.seed-home-card.green { background: linear-gradient(135deg, #1B5E20, #2E7D32, #43A047); }
.seed-home-card.orange { background: linear-gradient(135deg, #E65100, #F57C00, #FFB74D); }
.seed-home-card.blue { background: linear-gradient(135deg, #0D47A1, #1565C0, #42A5F5); }
.seed-home-card .icon-wrap {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.seed-home-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans Tamil', sans-serif;
  line-height: 1.35;
}
.seed-home-card .arrow { margin-left: auto; opacity: 0.8; font-size: 18px; }

/* Search form */
.seed-card {
  background: #fff;
  border-radius: var(--seed-radius);
  box-shadow: var(--seed-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.seed-card-body { padding: 18px; }
.seed-search-card { overflow: visible; position: relative; z-index: 10; }

.seed-field { margin-bottom: 14px; }
.seed-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--seed-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-field select,
.seed-field .seed-select-trigger {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #E0EDE0;
  border-radius: 12px;
  background: #FAFCFA;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.seed-field select:focus { outline: none; border-color: var(--seed-secondary); box-shadow: 0 0 0 3px rgba(76,175,80,0.15); }

.seed-search-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--seed-primary-dark), var(--seed-primary), var(--seed-secondary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
  cursor: pointer;
  font-family: 'Noto Sans Tamil', sans-serif;
  margin-top: 6px;
}
.seed-search-btn:active { transform: scale(0.98); }

.seed-optional { font-size: 11px; color: #888; font-weight: 400; }

/* Result AEC Card */
.seed-aec-card {
  background: #fff;
  border-radius: var(--seed-radius);
  box-shadow: var(--seed-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.seed-aec-top {
  background: linear-gradient(135deg, #E8F5E9, #fff);
  padding: 16px 18px;
  border-bottom: 1px solid #E8F5E9;
}
.seed-aec-top h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--seed-primary-dark);
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-aec-top .en-name { font-size: 13px; color: #666; margin-bottom: 8px; }
.seed-aec-loc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seed-loc-badge {
  font-size: 11px;
  background: #E8F5E9;
  color: var(--seed-primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-dist-badge { margin-left: auto; font-size: 11px; color: #888; }

.seed-manager {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.seed-manager h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--seed-primary);
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-manager-row { display: flex; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.seed-manager-row .lbl { color: #888; min-width: 70px; font-family: 'Noto Sans Tamil', sans-serif; }
.seed-manager-row .val { font-weight: 600; color: #333; }

.seed-photos {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.seed-selfie-wrap { text-align: center; flex-shrink: 0; }
.seed-selfie {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--seed-secondary);
  box-shadow: 0 4px 12px rgba(46,125,50,0.2);
  cursor: pointer;
  background: #E8F5E9;
}
.seed-selfie-lbl { font-size: 10px; color: #888; margin-top: 6px; font-family: 'Noto Sans Tamil', sans-serif; }
.seed-depo-wrap { flex: 1; min-width: 0; }
.seed-depo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  background: #f0f0f0;
}
.seed-depo-lbl { font-size: 10px; color: #888; margin-top: 6px; font-family: 'Noto Sans Tamil', sans-serif; }

.seed-map-section { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.seed-map-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--seed-primary);
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-map {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E0EDE0;
  margin-bottom: 10px;
}
.seed-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #E3F2FD;
  color: #1565C0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Noto Sans Tamil', sans-serif;
  border: none;
}
.seed-no-gps {
  text-align: center;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 10px;
  color: #888;
  font-size: 13px;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E0;
  color: #E65100;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Noto Sans Tamil', sans-serif;
}

.seed-stock-section { padding: 14px 18px; }
.seed-stock-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--seed-primary-dark);
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-stock-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.seed-stock-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #888;
  padding: 8px 6px;
  border-bottom: 2px solid #E8F5E9;
  font-family: 'Noto Sans Tamil', sans-serif;
  text-align: left;
}
.seed-stock-table td {
  padding: 10px 6px;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.seed-stock-table tr:last-child td { border-bottom: none; }
.seed-qty-badge {
  display: inline-block;
  background: #E8F5E9;
  color: var(--seed-primary-dark);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.seed-price {
  color: var(--seed-primary-dark);
  font-weight: 700;
  font-size: 13px;
}

.seed-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
}
.seed-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.seed-btn-call {
  background: linear-gradient(135deg, var(--seed-primary-dark), var(--seed-secondary));
  color: #fff;
  box-shadow: 0 3px 12px rgba(46,125,50,0.3);
}
.seed-btn-wa { background: #25D366; color: #fff; }

.seed-address {
  padding: 0 18px 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.seed-address strong { color: var(--seed-primary); font-family: 'Noto Sans Tamil', sans-serif; }

.seed-empty {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--seed-radius);
  box-shadow: var(--seed-shadow);
}
.seed-empty i { font-size: 48px; color: #C8E6C9; margin-bottom: 12px; }
.seed-empty h3 { font-size: 16px; color: #444; font-family: 'Noto Sans Tamil', sans-serif; }
.seed-empty p { font-size: 13px; color: #888; }

.seed-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(240,247,240,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.seed-overlay.show { display: flex; }
.seed-spinner {
  width: 44px; height: 44px;
  border: 4px solid #E8F5E9;
  border-top-color: var(--seed-primary);
  border-radius: 50%;
  animation: seedSpin 0.8s linear infinite;
}
@keyframes seedSpin { to { transform: rotate(360deg); } }

.seed-cocn-tag {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  font-family: 'Noto Sans Tamil', sans-serif;
}

@media (min-width: 576px) {
  .seed-app { max-width: 520px; margin: 0 auto; }
  .seed-selfie { width: 120px; height: 120px; }
  .seed-depo { height: 120px; }
}
