/* Main Layout Architecture */
.app-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-page);
  width: 100%;
}

/* Full-Height Sticky Sidebar Navigation */
.sidebar {
  width: 220px;
  min-width: 220px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #063c22 0%, #0a4d2c 50%, #06331d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 10px;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(6, 60, 34, 0.15);
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.brand-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 3px;
}

.brand-wheat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.brand-accent {
  color: #4ade80;
  font-weight: 800;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.81rem;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.nav-item span {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item:hover span {
  color: #ffffff;
}

.nav-item.active {
  background: #ffffff !important;
  color: #064e3b !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #34d399;
}

.nav-item.active span,
.nav-item.active .nav-item-left,
.nav-item.active .nav-item-left span {
  color: #064e3b !important;
  font-weight: 800 !important;
}

.nav-item.active .nav-icon {
  stroke: #064e3b !important;
}

.nav-item.active:hover {
  background: #ffffff !important;
  color: #064e3b !important;
}

.nav-item.active:hover span {
  color: #064e3b !important;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

/* Sidebar Promotional Card */
.sidebar-promo-card {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(12, 90, 54, 0.9) 0%, rgba(6, 46, 27, 0.98) 100%),
              url('../assets/images/hero-field.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.promo-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.promo-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  margin-bottom: 10px;
}

.promo-btn {
  background: #ffffff;
  color: #064e3b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
  transition: transform 0.15s;
}

.promo-btn:hover {
  transform: translateY(-1px);
}

/* Main Wrapper & Top Header */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.top-navbar {
  height: 64px;
  max-height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  gap: 12px;
  flex-wrap: nowrap;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.navbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 100%;
  max-width: 320px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-search:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.navbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: var(--text-main);
}

.search-kbd-shortcut {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
  white-space: nowrap;
  pointer-events: none;
}

.buyer-context-badge-group {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  padding: 2px 4px;
  box-shadow: 0 1px 3px rgba(12, 90, 54, 0.05);
  flex-shrink: 0;
}

.buyer-context-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  color: #0c5a36;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.buyer-context-item:hover {
  background: rgba(12, 90, 54, 0.08);
}

.buyer-context-divider {
  width: 1px;
  height: 14px;
  background: #86efac;
  margin: 0 1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-navbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-navbar-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-navbar-pill.mode-toggle {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-navbar-pill.lang-toggle {
  color: #0c5a36;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.lang-dropdown-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(0,0,0,0.15);
  width: 185px;
  z-index: 1100;
  overflow: hidden;
}

.lang-dropdown-header {
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase;
}

.lang-option-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.1s ease;
}

.lang-option-row:hover {
  background: #f8fafc;
}

.lang-option-row.active {
  background: #e8f5ed;
  color: #0c5a36;
  font-weight: 700;
}

.navbar-btn-create {
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(12, 90, 54, 0.2);
}

.navbar-btn-create:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
  cursor: pointer;
}

.notif-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.notif-ping-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--border-default);
}

.profile-avatar-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

.profile-online-pip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 1280px) {
  .top-navbar {
    padding: 0 16px;
    gap: 8px;
  }
  .navbar-left {
    max-width: 480px;
  }
  .navbar-search {
    max-width: 220px;
  }
  .search-kbd-shortcut {
    display: none;
  }
  .profile-info {
    display: none;
  }
}

@media (max-width: 992px) {
  .buyer-context-item.hub-selector {
    display: none;
  }
  .buyer-context-divider {
    display: none;
  }
}

/* Dashboard Body Container & Portal View Controller */
.portal-view {
  display: none !important;
}

.portal-view.active-view {
  display: flex !important;
  flex-direction: column;
  animation: fadeInView 0.22s ease-in-out;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* Buyer Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(12, 90, 54, 0.92) 100%),
              url('../assets/images/hero-field.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(12, 90, 54, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-left h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-left p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Executive 4-Column Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-subtext {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Two-Column Grid: Main Feed + Right Rail */
.main-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 26px;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Produce Lots & Demands Table */
.data-table-container {
  overflow-x: auto;
  margin-top: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-default);
  background: #f8fafc;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.crop-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crop-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

/* Sparkline Grid */
.mandi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.mandi-item {
  background: #f8fafc;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mandi-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.mandi-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.mandi-trend-up {
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
}

.mandi-trend-down {
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Stepper Progress Bar */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.stepper-dot.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 90, 54, 0.2);
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Marketplace & Farm-Direct Produce Grid (Screenshot Match) */
.market-hero-banner {
  background: linear-gradient(135deg, #073b22 0%, #0c5a36 60%, #166534 100%);
  border-radius: 14px;
  padding: 22px 28px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(12, 90, 54, 0.18);
}

.market-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.market-hero-sub {
  font-size: 0.88rem;
  color: #bbf7d0;
  margin: 0;
}

.market-location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.market-location-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 4 Metric Pill Cards */
.market-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.market-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-stat-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.market-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.market-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.market-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

/* Sticky Glassmorphic Filter Header */
.market-sticky-filter-wrapper {
  position: sticky;
  top: 64px;
  z-index: 80;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

/* Category Filter Pills */
.market-category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.market-category-pills::-webkit-scrollbar {
  height: 4px;
}

.market-category-pills::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.market-pill {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.market-pill:hover {
  background: #f1f5f9;
  border-color: #0c5a36;
  color: #0c5a36;
  transform: translateY(-1px);
}

.market-pill.active {
  background: #0c5a36;
  color: #ffffff;
  border-color: #0c5a36;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(12, 90, 54, 0.28);
}

/* Procurement On-Demand Banner */
.market-demand-callout {
  background: #093720;
  border-radius: 14px;
  padding: 18px 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(9, 55, 32, 0.18);
}

/* 3-Column Farm-Direct Lots Card Grid */
.market-lots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.farm-lot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.farm-lot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
  border-color: #86efac;
}

.lot-img-container {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.lot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.farm-lot-card:hover .lot-img {
  transform: scale(1.06);
}

.lot-img-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.lot-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}

.lot-badge-farmer-tag {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lot-badge-grade-tag {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lot-bottom-overlay {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
  color: #ffffff;
}

.lot-overlay-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.lot-overlay-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.lot-overlay-qty {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.lot-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lot-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.lot-farmer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 4px;
}

.lot-location-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 14px;
}

.lot-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-lot-buy {
  flex: 1;
  background: #0c5a36;
  color: #ffffff;
  border: 1px solid #0c5a36;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-lot-buy:hover {
  background: #084328;
  border-color: #084328;
}

.btn-lot-whatsapp {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #25d366;
  border: 1px solid #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-lot-whatsapp:hover {
  background: #1eb858;
  transform: scale(1.05);
}

/* Responsive Grid */
@media (max-width: 1180px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-lots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    display: flex !important;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .main-wrapper {
    padding-bottom: calc(var(--nav-bottom-height) + 20px);
    width: 100%;
    min-width: 0;
  }
  .top-navbar {
    padding: 0 12px;
    gap: 8px;
    height: var(--header-mobile-height);
  }
  .dashboard-content {
    padding: 14px 14px calc(var(--nav-bottom-height) + 24px) 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .market-stats-row {
    grid-template-columns: 1fr;
  }
  .market-lots-grid {
    grid-template-columns: 1fr;
  }
  .market-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .market-demand-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* Floating AI Sourcing Copilot Trigger */
.btn-floating-copilot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, #0c5a36 0%, #166534 100%);
  color: #ffffff;
  border: 2px solid #86efac;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(12, 90, 54, 0.35);
  transition: all 0.22s ease-in-out;
}

.btn-floating-copilot:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(12, 90, 54, 0.45);
  background: linear-gradient(135deg, #084328 0%, #0f5132 100%);
}

.copilot-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copilot-chip:hover {
  background: #e8f5ed;
  border-color: #0c5a36;
  color: #0c5a36;
  transform: translateY(-1px);
}

/* AI Copilot 2.0 Conversational Suite Styles */
.copilot-lang-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.copilot-lang-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.copilot-lang-pill.active {
  background: #0c5a36;
  color: #ffffff;
  border-color: #0c5a36;
  box-shadow: 0 2px 6px rgba(12, 90, 54, 0.25);
}

.copilot-message-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.copilot-bubble-user {
  background: linear-gradient(135deg, #0c5a36 0%, #166534 100%);
  color: #ffffff;
  border-radius: 16px 16px 2px 16px;
  padding: 10px 16px;
  max-width: 80%;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(12, 90, 54, 0.15);
}

.copilot-message-ai {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
  width: 100%;
}

.copilot-card-ai {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* Voice Mic Wave & Pulse Animation */
.btn-mic-record {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0c5a36;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-mic-record:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.btn-mic-record.recording {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Audio Player Visualizer */
.copilot-audio-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.copilot-audio-bar {
  width: 3px;
  height: 100%;
  background: #0c5a36;
  border-radius: 3px;
  animation: audioWave 1s ease-in-out infinite alternate;
}

.copilot-audio-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.copilot-audio-bar:nth-child(3) { animation-delay: 0.4s; height: 90%; }
.copilot-audio-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }

@keyframes audioWave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Signal Badges */
.badge-signal-buy {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 800;
}

.badge-signal-wait {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
  font-weight: 800;
}

.badge-signal-salvage {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 800;
  animation: pulse 1.5s infinite;
}

/* Floating Lot Comparison Action Bar */
.compare-bar-float {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 999px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideUpFloat 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloat {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Chamber Visualizer Slot Card */
.chamber-slot-card:hover {
  border-color: #0c5a36 !important;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.12);
  transform: translateY(-2px);
}

/* ==========================================
   COLD STORAGE, HERMETIC SILOS & e-NWR VIEW ENHANCEMENTS
   ========================================== */

.storage-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.storage-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.storage-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.storage-kpi-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.storage-kpi-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.storage-kpi-yellow {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.storage-kpi-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-left: 4.5px solid #9333ea;
}

.enwr-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #1e3a8a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.enwr-hero-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
}

.storage-facility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.storage-facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.telemetry-badge-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.78rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pulse-live-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: livePulse 1.8s infinite;
  margin-right: 4px;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ==========================================
   MESSAGES & NEGOTIATION CHAT UI ENHANCEMENTS
   ========================================== */

.chat-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  height: 680px;
  max-height: calc(100vh - 160px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-sidebar-header {
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.chat-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8rem;
  outline: none;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%94a3b8' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 10px center;
  transition: border-color 0.15s, background-color 0.15s;
}

.chat-search-input:focus {
  border-color: #0c5a36;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 90, 54, 0.1);
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.chat-contact:hover {
  background: #f1f5f9;
}

.chat-contact.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5ed 100%);
  border-left: 4px solid #0c5a36;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.chat-header {
  padding: 14px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  flex-shrink: 0;
}

.chat-offer-banner {
  background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde047;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.02);
}

.chat-messages {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.chat-bubble-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
}

.chat-bubble-group.incoming {
  align-self: flex-start;
}

.chat-bubble-group.outgoing {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.48;
  position: relative;
}

.chat-bubble.incoming {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px 18px 18px 4px;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chat-bubble.outgoing {
  background: linear-gradient(135deg, #0c5a36 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.2);
}

.chat-meta-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  margin-top: 2px;
  padding: 0 4px;
}

.chat-meta-bar.incoming {
  color: #94a3b8;
  justify-content: flex-start;
}

.chat-meta-bar.outgoing {
  color: #94a3b8;
  justify-content: flex-end;
}

.chat-quick-chips-bar {
  padding: 8px 18px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-quick-chips-bar::-webkit-scrollbar {
  display: none;
}

.chat-quick-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-quick-chip:hover {
  background: #e8f5ed;
  border-color: #0c5a36;
  color: #0c5a36;
  transform: translateY(-1px);
}

.chat-input-bar {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
}

.chat-input-field-pill {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-input-field-pill:focus {
  border-color: #0c5a36;
  box-shadow: 0 0 0 3.5px rgba(12, 90, 54, 0.12);
}

.chat-send-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c5a36 0%, #064e3b 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.chat-send-btn-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(12, 90, 54, 0.4);
}

/* ==========================================
   ORDERS & SHIPMENTS UI ENHANCEMENTS
   ========================================== */

.shipment-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.shipment-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.shipment-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-ship-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.kpi-ship-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-ship-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-left: 4.5px solid #9333ea;
}

.kpi-ship-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.shipment-order-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.shipment-order-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.shipment-info-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.48;
}

@media (max-width: 860px) {
  .shipment-info-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   BULK PROCUREMENT DEMANDS & QUOTAS UI ENHANCEMENTS
   ========================================== */

.bulk-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bulk-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bulk-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-bulk-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.kpi-bulk-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-bulk-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.kpi-bulk-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-left: 4.5px solid #9333ea;
}

.bulk-quota-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bulk-quota-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.quota-spec-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .quota-spec-box {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* ==========================================
   LANDED COST & MANDI ARBITRAGE CALCULATOR UI ENHANCEMENTS
   ========================================== */

.calc-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.calc-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.calc-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-calc-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.kpi-calc-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-left: 4.5px solid #dc2626;
}

.kpi-calc-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-calc-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.calc-input-group-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-input-group-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calc-waterfall-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.calc-stack-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-stack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .calc-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .calc-inputs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .calc-comparison-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 580px) {
  .calc-kpi-grid,
  .calc-inputs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   SMART ESCROW VAULT & MILESTONES UI ENHANCEMENTS
   ========================================== */

.vault-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.vault-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.vault-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-vault-slate {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-left: 4.5px solid #0284c7;
}

.kpi-vault-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-vault-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #2563eb;
}

.kpi-vault-purple {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1px solid #f5d0fe;
  border-left: 4.5px solid #9333ea;
}

.vault-safeguard-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.vault-contract-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-contract-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.vault-ledger-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

@media (max-width: 900px) {
  .vault-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 580px) {
  .vault-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   GRIEVANCES, CLAIMS & DISPUTES REDRESSAL UI ENHANCEMENTS
   ========================================== */

.grv-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.grv-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.grv-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-grv-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-left: 4.5px solid #dc2626;
}

.kpi-grv-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.kpi-grv-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-grv-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.grv-protection-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.06);
}

.grv-claim-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.grv-claim-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

@media (max-width: 900px) {
  .grv-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 580px) {
  .grv-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Smart Escrow Vault & Clearances Architecture */
.vault-hero-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #ffffff 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(12, 90, 54, 0.04);
}

.vault-kpi-card {
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.vault-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-vault-slate {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-left: 4.5px solid #475569;
}

.kpi-vault-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-vault-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.kpi-vault-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-left: 4.5px solid #9333ea;
}

.vault-safeguard-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(12, 90, 54, 0.05);
}

.vault-contract-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-contract-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.vault-ledger-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

@media (max-width: 900px) {
  .vault-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 580px) {
  .vault-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #modal-digital-po,
  #modal-digital-po .modal-content,
  #modal-digital-po .modal-content * {
    visibility: visible;
  }
  #modal-digital-po {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }
  #modal-digital-po .modal-content {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   SIMPLE & AUDIO-FIRST LITE MODE (सरल / सुलभ मोड) FOR ELDERLY TRADERS
   ========================================================================== */

.lite-mode-wrapper {
  padding: 24px 32px 60px 32px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInView 0.25s ease-in-out;
}

/* Top Section Selector Card & Responsive Header */
.lite-top-controls-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 22px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lite-top-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.lite-mode-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #166534;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 1px 4px rgba(22, 101, 52, 0.08);
}

.lite-nav-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  margin: 0;
}

.lite-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-align: center;
  white-space: nowrap;
}

.lite-nav-tab .tab-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lite-nav-tab:hover {
  border-color: #0c5a36;
  color: #0c5a36;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.12);
}

.lite-nav-tab.active {
  background: linear-gradient(135deg, #0c5a36 0%, #15803d 100%);
  border-color: #0c5a36;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(12, 90, 54, 0.28);
}

@media (max-width: 1200px) {
  .lite-nav-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .lite-nav-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Skeleton Shimmer Loading Effect */
@keyframes liteShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.lite-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: liteShimmer 1.5s infinite ease-in-out;
}

/* Lite Hero Card */
.lite-hero-card {
  background: linear-gradient(135deg, #064e3b 0%, #0c5a36 50%, #047857 100%);
  border-radius: 20px;
  padding: 26px 30px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3), 0 8px 10px -6px rgba(6, 78, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.lite-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lite-hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  line-height: 1.3;
  color: #ffffff;
}

.lite-hero-desc {
  font-size: 1rem;
  color: #d1fae5;
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
  font-weight: 500;
}

.lite-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lite-voice-search-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #0c5a36;
  border: none;
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lite-voice-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #f0fdf4;
}

.lite-emergency-badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  color: #991b1b;
  border: 2px solid #fecaca;
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
  transition: all 0.2s ease;
}

.lite-emergency-badge-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

/* Category Filter Tabs */
.lite-category-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.lite-cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.lite-cat-pill:hover {
  border-color: #10b981;
  color: #0c5a36;
  background: #f0fdf4;
}

.lite-cat-pill.active {
  background: #0c5a36;
  border-color: #0c5a36;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(12, 90, 54, 0.25);
}

.lite-cat-pill .cat-icon {
  font-size: 1.35rem;
}

/* Produce Grid */
.lite-produce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* Individual Large Produce Card */
.lite-produce-card {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lite-produce-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
  border-color: #94a3b8;
}

/* Card Top Bar */
.lite-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.lite-crop-tag {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lite-grade-tag {
  background: #dcfce7;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

/* Big Image Container */
.lite-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}

.lite-crop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lite-produce-card:hover .lite-crop-img {
  transform: scale(1.03);
}

/* 1-Tap Audio Readout Button */
.lite-audio-btn {
  position: static;
  background: #ffffff;
  color: #0c5a36;
  border: 1.5px solid #86efac;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 800;
  transition: all 0.2s ease;
}

.lite-audio-btn:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* Price & Quantity Banner */
.lite-price-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}

.lite-price-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.lite-price-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0c5a36;
}

.lite-qty-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

/* Farmer Info Box */
.lite-farmer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

/* Card Action Buttons: Full-width Hero Buy + 2-Column Utility Row */
.lite-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #ffffff;
}

.lite-action-buy-hero {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0c5a36 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(12, 90, 54, 0.28);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lite-action-buy-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 90, 54, 0.38);
}

.lite-card-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lite-btn-buy {
  background: #0c5a36;
  color: #ffffff;
  border: none;
  padding: 13px 12px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.lite-btn-buy:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.lite-btn-bargain {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  gap: 6px;
}

.lite-btn-bargain:hover {
  background: #fde68a;
  transform: translateY(-2px);
}

.lite-btn-call {
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  gap: 6px;
}

.lite-btn-call:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Ultra Simplified Buy Modal */
#modal-lite-buy {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modal-lite-buy.active {
  display: flex;
}

.lite-modal-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #e2e8f0;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lite-modal-header {
  background: #f0fdf4;
  padding: 20px 24px;
  border-bottom: 1.5px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lite-modal-body {
  padding: 24px;
}

.lite-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 1.05rem;
}

.lite-modal-row strong {
  font-size: 1.25rem;
  color: #0f172a;
}

.lite-modal-footer {
  padding: 20px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 14px;
}

.lite-modal-btn-cancel {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #475569;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lite-modal-btn-cancel:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.lite-modal-btn-confirm {
  background: #16a34a;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}

.lite-modal-btn-confirm:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}

@media (max-width: 640px) {
  .lite-mode-wrapper {
    padding: 16px;
  }
  .lite-produce-grid {
    grid-template-columns: 1fr;
  }
  .lite-hero-card {
    padding: 20px;
  }
  .lite-card-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SIMPLE MODE ACCESSIBILITY & EXTENDED FEATURES
   ========================================================================== */

/* Font Scaler Variations */
.lite-mode-wrapper.lite-font-lg {
  font-size: 1.12rem;
}
.lite-mode-wrapper.lite-font-lg .lite-hero-title { font-size: 1.85rem; }
.lite-mode-wrapper.lite-font-lg .lite-crop-tag { font-size: 1.35rem; }
.lite-mode-wrapper.lite-font-lg .lite-price-value { font-size: 1.7rem; }
.lite-mode-wrapper.lite-font-lg .lite-qty-value { font-size: 1.5rem; }
.lite-mode-wrapper.lite-font-lg .lite-btn-buy,
.lite-mode-wrapper.lite-font-lg .lite-btn-call { font-size: 1.15rem; padding: 16px 20px; }

.lite-mode-wrapper.lite-font-xl {
  font-size: 1.25rem;
}
.lite-mode-wrapper.lite-font-xl .lite-hero-title { font-size: 2.1rem; }
.lite-mode-wrapper.lite-font-xl .lite-crop-tag { font-size: 1.5rem; }
.lite-mode-wrapper.lite-font-xl .lite-price-value { font-size: 1.95rem; }
.lite-mode-wrapper.lite-font-xl .lite-qty-value { font-size: 1.75rem; }
.lite-mode-wrapper.lite-font-xl .lite-btn-buy,
.lite-mode-wrapper.lite-font-xl .lite-btn-call { font-size: 1.3rem; padding: 18px 24px; }

/* Mandi Sunlight High-Contrast Theme */
body.lite-sunlight-mode {
  background-color: #fefce8 !important;
}
body.lite-sunlight-mode .lite-mode-wrapper {
  color: #000000;
}
body.lite-sunlight-mode .lite-produce-card,
body.lite-sunlight-mode .lite-nav-tab,
body.lite-sunlight-mode .lite-farmer-box,
body.lite-sunlight-mode .lite-orders-card,
body.lite-sunlight-mode .lite-modal-card {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 6px 0 #000000 !important;
}
body.lite-sunlight-mode .lite-hero-card {
  background: #022c22 !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 8px 0 #000000 !important;
}
body.lite-sunlight-mode .lite-hero-badge {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border: 2px solid #000000 !important;
}
body.lite-sunlight-mode .lite-crop-tag {
  background: #fef08a !important;
  color: #713f12 !important;
  border: 2px solid #ca8a04 !important;
  font-weight: 900 !important;
}
body.lite-sunlight-mode .lite-btn-buy {
  background: #15803d !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0 #000000 !important;
}
body.lite-sunlight-mode .lite-btn-call {
  background: #fde047 !important;
  color: #000000 !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0 #000000 !important;
  font-weight: 900 !important;
}

/* Audio Playing Wave Pulse Animation */
@keyframes audioPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.lite-audio-btn.speaking {
  animation: audioPulse 1.2s infinite ease-in-out;
  background: #16a34a !important;
  color: #ffffff !important;
}

/* Floating Voice Assistant Mic Widget */
.lite-floating-mic {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 30px rgba(6, 95, 70, 0.45);
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lite-floating-mic:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px rgba(6, 95, 70, 0.55);
}

.lite-floating-mic.listening {
  animation: audioPulse 1s infinite ease-in-out;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #fef08a;
}

/* Big Visual Quantity Stepper Buttons */
.lite-stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 16px 0;
}

.lite-stepper-btn {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  padding: 10px 6px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.lite-stepper-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.lite-stepper-btn:active {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

/* WhatsApp Share Button */
.lite-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.98rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.lite-btn-whatsapp:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* 3-Step Visual Escrow Flow */
.lite-escrow-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.lite-escrow-step {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
}

.lite-escrow-step.active-step {
  background: #f0fdf4;
  border-color: #86efac;
}

.lite-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #065f46;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Highway Journey Milestones */
.lite-milestone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 16px 0 8px 0;
  padding: 0 10px;
}

.lite-milestone-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  transform: translateY(-50%);
}

.lite-milestone-progress {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 55%;
  height: 4px;
  background: #16a34a;
  z-index: 2;
  transform: translateY(-50%);
}

.lite-milestone-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.lite-node-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.lite-node-icon.completed {
  border-color: #16a34a;
  background: #dcfce7;
}

.lite-node-icon.current {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
  animation: audioPulse 1.5s infinite;
}

.lite-node-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  max-width: 85px;
}

/* Voice Grievance Modal */
#modal-lite-grievance {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modal-lite-grievance.active {
  display: flex;
}

/* 1-Tap Quick Bargain / Counter-Offer Modal */
#modal-lite-bargain {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modal-lite-bargain.active {
  display: flex;
}

.lite-bargain-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.lite-bargain-rate-btn {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  color: #0369a1;
  padding: 12px 8px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.lite-bargain-rate-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.lite-bargain-rate-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* ==========================================
   AGRINEX ESCROW PAYMENT GATEWAY STYLES
   ========================================== */
#modal-escrow-payment-gateway {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-escrow-payment-gateway.active {
  display: flex;
}

.gateway-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: gatewayPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gateway-top-bar {
  background: linear-gradient(135deg, #064e3b 0%, #0c5a36 60%, #047857 100%);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gateway-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  overflow: hidden;
  min-height: 420px;
}

@media (max-width: 700px) {
  .gateway-body-grid {
    grid-template-columns: 1fr;
  }
}

.gateway-rail-nav {
  background: #f8fafc;
  border-right: 1.5px solid #e2e8f0;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.gateway-rail-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.gateway-rail-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gateway-rail-btn.active {
  background: #ffffff;
  color: #0c5a36;
  border-color: #0c5a36;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.12);
}

.gateway-rail-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8f5ed;
  color: #0c5a36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.gateway-rail-btn.active .gateway-rail-icon {
  background: #0c5a36;
  color: #ffffff;
}

.gateway-content-pane {
  padding: 22px;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gateway-panel {
  display: none;
}

.gateway-panel.active {
  display: block;
}

.gateway-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.gateway-qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid #0c5a36;
  box-shadow: 0 8px 24px rgba(12, 90, 54, 0.15);
  display: inline-block;
  margin-bottom: 12px;
}

.gateway-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.gateway-app-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
}

.gateway-app-btn:hover {
  background: #f0fdf4;
  border-color: #0c5a36;
  transform: translateY(-2px);
}

.gateway-van-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.gateway-van-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 0.84rem;
}

.gateway-van-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gateway-credit-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* Payment Processing and Success View */
.gateway-state-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 380px;
}

.gateway-state-view.active {
  display: flex;
}

.gateway-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid #e2e8f0;
  border-top-color: #0c5a36;
  border-radius: 50%;
  animation: gatewaySpin 0.9s linear infinite;
  margin-bottom: 20px;
}

@keyframes gatewaySpin {
  to {
    transform: rotate(360deg);
  }
}

.gateway-success-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.2);
  animation: bounceSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bounceSuccess {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   DIGITAL TAX RECEIPT & ESCROW VOUCHER MODAL
   ========================================== */
#modal-payment-receipt {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-payment-receipt.active {
  display: flex;
}

.receipt-sheet {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 28px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

@media print {
  body * {
    visibility: hidden;
  }
  #modal-payment-receipt, #modal-payment-receipt .receipt-sheet, #modal-payment-receipt .receipt-sheet * {
    visibility: visible;
  }
  #modal-payment-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff;
  }
  .receipt-no-print {
    display: none !important;
  }
}

/* =========================================================================
   INSTANT ZERO-DELAY SIMPLE MODE DEFAULT STYLES
   ========================================================================= */
html.lite-mode-active body .sidebar,
body.lite-mode-active .sidebar,
html.lite-mode-active body .navbar-search,
body.lite-mode-active .navbar-search,
html.lite-mode-active body #btn-floating-copilot,
body.lite-mode-active #btn-floating-copilot,
html.lite-mode-active body .portal-view,
body.lite-mode-active .portal-view,
html.lite-mode-active body .mobile-bottom-nav,
body.lite-mode-active .mobile-bottom-nav,
html.lite-mode-active body .btn-mobile-menu-toggle,
body.lite-mode-active .btn-mobile-menu-toggle {
  display: none !important;
}


html.lite-mode-active body #lite-mode-container,
body.lite-mode-active #lite-mode-container {
  display: block !important;
}

html.lite-mode-active body #lite-floating-voice-mic,
body.lite-mode-active #lite-floating-voice-mic {
  display: flex !important;
}

/* =========================================================================
   RESPONSIVE LAYOUT & COMPACT VIEWPORT POLISH
   ========================================================================= */
.data-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.data-table-container::-webkit-scrollbar {
  height: 5px;
}

.data-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.data-table th.sticky-col-first,
.data-table td.sticky-col-first {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1200px) {
  .vault-kpi-grid,
  .grv-kpi-grid,
  .stats-grid,
  .market-stats-row,
  .simple-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 768px) {
  .vault-kpi-grid,
  .grv-kpi-grid,
  .stats-grid,
  .market-stats-row,
  .simple-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .top-navbar {
    padding: 0 12px !important;
    height: 56px !important;
  }
  
  .vault-hero-header,
  .calc-hero-header,
  .bulk-hero-header,
  .shipment-hero-header {
    padding: 14px 16px !important;
  }
}

/* =========================================================================
   PHASE 1 UTILITY & COMPONENT ARCHITECTURE TOKENS
   ========================================================================= */

/* Universal Hero Header Banner Component */
.view-hero-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5ed 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(12, 90, 54, 0.06);
}

.view-hero-banner.banner-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.06);
}

.view-hero-banner.banner-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.06);
}

.view-hero-banner.banner-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.hero-banner-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-banner-title.title-red {
  color: #dc2626;
}

.hero-banner-subtitle {
  font-size: 0.84rem;
  color: #475569;
  margin: 6px 0 0;
  max-width: 820px;
  line-height: 1.45;
}

/* 4-Column Responsive Analytical Metric Grid */
.kpi-metric-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .kpi-metric-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kpi-metric-grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Quick Scenario Presets Carousel Bar */
.preset-chips-scroll {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.preset-chips-scroll-track {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

/* AgriCalc 2-Column Responsive Workspace */
.calc-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .calc-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* 3-Step Tribunal Statutory Grid */
.tribunal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .tribunal-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================================================================
   MOBILE TABLE-TO-CARD TRANSFORMER (@media <= 640px)
   ========================================================================= */
@media (max-width: 640px) {
  .data-table-responsive-cards thead {
    display: none !important;
  }

  .data-table-responsive-cards,
  .data-table-responsive-cards tbody,
  .data-table-responsive-cards tr,
  .data-table-responsive-cards td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .data-table-responsive-cards tr {
    margin-bottom: 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .data-table-responsive-cards td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-align: right !important;
  }

  .data-table-responsive-cards td:last-child {
    border-bottom: none !important;
    padding-top: 12px !important;
    justify-content: flex-end !important;
  }

  .data-table-responsive-cards td::before {
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .data-table-responsive-cards .crop-cell {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
}

/* =========================================================================
   LITE MODE: BULK DEMANDS & GRIEVANCES STYLES
   ========================================================================= */

.lite-bulk-crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.lite-crop-pick-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lite-crop-pick-btn:hover {
  border-color: #0c5a36;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.12);
}

.lite-crop-pick-btn.active {
  border-color: #0c5a36;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.2);
}

.lite-stepper-btn-large {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lite-stepper-btn-large:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.lite-stepper-btn-large:active {
  transform: scale(0.97);
}

.lite-hub-pill, .lite-grade-pill, .lite-grv-cat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lite-hub-pill:hover, .lite-grade-pill:hover, .lite-grv-cat-pill:hover {
  border-color: #0c5a36;
  background: #f8fafc;
}

.lite-hub-pill.active, .lite-grade-pill.active {
  border-color: #0c5a36;
  background: #0c5a36;
  color: #ffffff;
}

.lite-grv-cat-pill.active {
  border-color: #dc2626;
  background: #fee2e2;
  color: #991b1b;
}

.lite-pulse-mic {
  animation: pulseMicAnim 1.5s infinite;
}

@keyframes pulseMicAnim {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); transform: scale(1); }
}

body.lite-sunlight-mode .lite-crop-pick-btn {
  background: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.lite-sunlight-mode .lite-crop-pick-btn.active {
  background: #fef08a !important;
  border-color: #000000 !important;
}

body.lite-sunlight-mode .lite-stepper-btn-large {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

/* =========================================================================
   SIMPLE MODE FLOATING MIC RESPONSIVENESS & PULSE ANIMATION
   ========================================================================= */
#lite-floating-voice-mic.mic-pulsing {
  animation: micPulseGlow 1.2s infinite ease-in-out !important;
  background: #dc2626 !important;
  border-color: #fca5a5 !important;
}

@keyframes micPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@media (max-width: 768px) {
  #lite-floating-voice-mic {
    bottom: 84px !important; /* Lifts above mobile bottom bar */
    right: 16px !important;
    width: 58px !important;
    height: 58px !important;
    box-shadow: 0 6px 20px rgba(12, 90, 54, 0.45) !important;
    z-index: 9999 !important;
  }
}

/* ==========================================================================
   PHASE 2 & 3: HIGH-PERFORMANCE DOM VIRTUALIZATION & REAL-TIME IOT TELEMETRY
   ========================================================================== */

/* Table Row Virtualization for 60fps rendering across large crop datasets */
.verified-lots-table tbody tr,
.demands-table tbody tr,
.consignments-table tbody tr,
.grv-claim-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 65px;
}

/* Real-Time Live Sensor Pulse Badge */
.live-sensor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 90, 54, 0.1);
  color: #0c5a36;
  border: 1px solid rgba(12, 90, 54, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-sensor-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: liveTelemetryPulse 1.8s infinite ease-in-out;
}

@keyframes liveTelemetryPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Cold-Chain Temp Indicator Transition */
.telemetry-gauge-value {
  transition: color 0.4s ease, transform 0.2s ease;
}
.telemetry-updated {
  animation: flashTelemetry 0.6s ease;
}
@keyframes flashTelemetry {
  0% { background-color: rgba(74, 222, 128, 0.25); }
  100% { background-color: transparent; }
}



