/* ============================================================
   KRISHISETU CUSTOM STYLES
   ============================================================ */

/* ============================================================
   NAVBAR / PREMIUM BRAND
   ============================================================ */

.navbar-shell {
  background: linear-gradient(
    180deg,
    rgba(250, 250, 245, 0.97),
    rgba(250, 250, 245, 0.85)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 228, 218, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 26px -14px rgba(13, 99, 27, 0.14);
}

/* ---- Premium brand logo ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-logo {
  height: 2.45rem;
  width: 2.45rem;
  object-fit: contain;
  border-radius: 9999px;
  background: #ffffff;
  padding: 3px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 4px 12px -3px rgba(13, 99, 27, 0.45),
    0 0 0 1px rgba(224, 228, 218, 0.9);
  transition: box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 2.7rem;
    width: 2.7rem;
  }
}

.brand:hover .brand-logo {
  box-shadow:
    0 0 0 2px #ffffff,
    0 6px 18px -3px rgba(13, 99, 27, 0.55),
    0 0 18px rgba(46, 158, 79, 0.35);
}

.brand-name {
  background: linear-gradient(135deg, #0a5c18 0%, #2e9e4f 45%, #0d631b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.brand-name-warm {
  background: linear-gradient(135deg, #6b4a3a 0%, #9a6b57 50%, #75584d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Nav links with animated underline ---- */

.nav-link {
  position: relative;
  font-weight: 500;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0d631b, #4e9c46);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #0d631b;
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: #0d631b;
  font-weight: 600;
}

.nav-link.is-active::after {
  width: 100%;
}

.action-link {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.action-link:hover {
  background-color: rgba(13, 99, 27, 0.08);
  transform: translateY(-1px);
}

.action-button {
  background-image: linear-gradient(135deg, #0d7a22, #0d631b);
  box-shadow: 0 6px 16px -6px rgba(13, 99, 27, 0.5);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(13, 99, 27, 0.6);
  filter: brightness(1.06);
}

/* ============================================================
   HERO CTA BUTTONS
   ============================================================ */

.cta-button {
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

.feature-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   LOGIN / REGISTER BACKGROUND
   LIGHT BLUR - keeps farm scenery visible
   ============================================================ */

.login-background-image {
  filter: blur(2px);
  transform: scale(1.04);
}

.register-background-image {
  filter: blur(3px);
  transform: scale(1.04);
}

#loginBackgroundOverlay {
  background-color: rgba(244, 248, 240, 0.34);
}

#registerBackgroundOverlay {
  background-color: rgba(244, 248, 240, 0.36);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   LOGIN / REGISTER THEME
   ============================================================ */

.farmer-theme {
  --theme-color: #0f6c1e;
}

.buyer-theme {
  --theme-color: #75584d;
}

/* ============================================================
   LOGIN ROLE TABS
   ============================================================ */

.role-tab {
  color: #40493d;
}

.role-tab:hover {
  background-color: rgba(13, 99, 27, 0.06);
}

.role-tab.active {
  color: #0d631b;
  background-color: rgba(13, 99, 27, 0.08);
}

/* ============================================================
   REGISTER ROLE TABS
   ============================================================ */

.register-role-tab {
  color: #40493d;
}

.register-role-tab:hover {
  background-color: rgba(13, 99, 27, 0.06);
}

.register-role-tab.active {
  color: #0d631b;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   LOGIN / REGISTER BUTTONS
   ============================================================ */

.login-submit,
.register-submit {
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.login-submit:hover,
.register-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-link {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-link:hover {
  color: #0d631b;
  transform: translateY(-1px);
}

/* ============================================================
   FARM SCENERY (login / register background)
   ============================================================ */

.farm-scenery {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  min-height: 260px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.farm-scenery .sun {
  position: absolute;
  top: 6%;
  right: 7%;
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    #fff0c2 0%,
    #ffd97a 55%,
    rgba(255, 217, 122, 0) 72%
  );
  animation: sunPulse 7s ease-in-out infinite;
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.farm-hill-back {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -10%;
  height: 40%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #b8e8a8 0%, #93d281 100%);
  opacity: 0.75;
}

.farm-field {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -8%;
  height: 44%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #9adf87 0%, #74c264 55%, #4e9c46 100%);
  box-shadow: 0 -18px 40px rgba(84, 150, 84, 0.35);
}

.farm-field::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    4deg,
    rgba(255, 255, 255, 0.16) 0 46px,
    rgba(30, 84, 24, 0.14) 46px 92px
  );
  mix-blend-mode: overlay;
}

.farm-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(6px);
  border-radius: 50%;
}

/* ---- Swaying crops ---- */

.crop {
  position: absolute;
  transform-origin: bottom center;
  animation: cropSway 2.8s ease-in-out var(--delay, 0s) infinite;
}

.crop .stalk {
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.06em);
  width: 0.12em;
  height: 1.5em;
  background: #2f7a2c;
}

.crop .leaf {
  position: absolute;
  bottom: 0.15em;
  width: 0.85em;
  height: 1.05em;
  background: linear-gradient(135deg, #8ae160, #43a842);
  border-radius: 100% 0 100% 0;
}

.crop .leaf.l {
  left: 0.12em;
  transform: rotate(18deg);
}

.crop .leaf.r {
  right: 0.12em;
  transform: rotate(-18deg) scaleX(-1);
}

.crop .head {
  position: absolute;
  bottom: 1.4em;
  left: calc(50% - 0.32em);
  width: 0.64em;
  height: 0.85em;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #fcda54, #e9a82f);
  box-shadow: inset -0.08em -0.12em 0 rgba(201, 140, 40, 0.6);
}

@keyframes cropSway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.sparkle {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
  animation: sparkleFloat 5s ease-in-out var(--delay, 0s) infinite;
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.9;
  }
}

/* ============================================================
   LOGIN CENTER LOGO
   ============================================================ */

.login-logo {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
  border-radius: 9999px;
  background: #ffffff;
  padding: 4px;
  box-shadow:
    0 0 0 3px #ffffff,
    0 8px 22px -6px rgba(13, 99, 27, 0.45);
  transition: box-shadow 0.25s ease;
}

.login-logo:hover {
  box-shadow:
    0 0 0 3px #ffffff,
    0 10px 28px -6px rgba(13, 99, 27, 0.55),
    0 0 26px rgba(46, 158, 79, 0.4);
}

/* ============================================================
   PASSWORD SHOW / HIDE EYE
   ============================================================ */

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.password-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   EMPOWERING GROUND LEVEL OPERATIONS (PREMIUM SECTION)
   ============================================================ */

.empower-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      #eaf4e2 0%,
      rgba(250, 250, 245, 0) 55%
    ),
    radial-gradient(
      900px 500px at 100% 100%,
      #f7ebdd 0%,
      rgba(250, 250, 245, 0) 55%
    ),
    #fafaf5;
}

.empower-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

.empower-blob.b1 {
  width: 320px;
  height: 320px;
  background: #cbe7b8;
  top: -60px;
  left: -80px;
}

.empower-blob.b2 {
  width: 300px;
  height: 300px;
  background: #f2dcc4;
  bottom: -50px;
  right: -60px;
  animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, -12px);
  }
}

.empower-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #dce8cf;
  box-shadow: 0 2px 10px -2px rgba(13, 99, 27, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e5f1c;
  letter-spacing: 0.03em;
}

.gradient-heading {
  background: linear-gradient(92deg, #0b5b18 0%, #2e9e4f 55%, #0d631b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e4da;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent, linear-gradient(90deg, #2e9e4f, #8bd07c));
  opacity: 0.9;
}

.premium-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: radial-gradient(
    130px 80px at 18% 0%,
    var(--card-glow, rgba(13, 99, 27, 0.1)),
    transparent 70%
  );
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: #c9ddbb;
  box-shadow:
    0 18px 40px -14px var(--card-shadow, rgba(13, 99, 27, 0.2)),
    0 4px 14px rgba(0, 0, 0, 0.04);
}

.premium-icon {
  position: relative;
  transition: transform 0.3s ease;
}

.premium-card:hover .premium-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ============================================================
   HOME HERO (PREMIUM)
   ============================================================ */

.hero-overlay {
  background:
    radial-gradient(
      60rem 26rem at 50% 32%,
      rgba(232, 242, 226, 0.32) 0%,
      rgba(250, 250, 245, 0) 70%
    ),
    linear-gradient(
      180deg,
      rgba(250, 250, 245, 0.96) 0%,
      rgba(250, 250, 245, 0.5) 46%,
      rgba(250, 250, 245, 0.9) 100%
    );
}

.hero-chip {
  display: none;
  position: absolute;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #e0e4da;
  border-radius: 1rem;
  padding: 0.7rem 1rem;
  box-shadow: 0 12px 30px -12px rgba(13, 99, 27, 0.28);
  z-index: 5;
  animation: chipFloat 5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-chip {
    display: flex;
  }
}

.hero-chip.chip1 {
  top: 16%;
  left: 5%;
  animation-delay: 0.3s;
}

.hero-chip.chip2 {
  top: 32%;
  right: 4%;
  animation-delay: 1.2s;
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---- Stats strip ---- */

.hero-stats {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e0e4da;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 46px -22px rgba(13, 99, 27, 0.32);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0d631b;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #40493d;
  margin-top: 0.25rem;
}

/* ============================================================
   LOGIN / REGISTER (BIGGER & POLISHED)
   ============================================================ */

.auth-outer {
  width: 100%;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.auth-panel {
  position: relative;
  width: 100%;
  max-width: 38rem;
  background: #ffffff;
  border: 1px solid rgba(191, 202, 186, 0.6);
  border-radius: 1.25rem;
  box-shadow:
    0 22px 48px -20px rgba(13, 99, 27, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.04);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #2e9e4f, #8bd07c);
  z-index: 1;
}

.auth-pad {
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .auth-pad {
    padding: 2.25rem;
  }
}

.auth-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .auth-title {
    font-size: 1.9rem;
  }
}

.auth-panel input {
  height: 3.35rem;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-panel input:focus {
  border-color: #2e9e4f;
  box-shadow: 0 0 0 3px rgba(46, 158, 79, 0.14);
}

.auth-panel button[type="submit"] {
  height: 3.35rem;
  font-size: 1rem;
  border-radius: 0.65rem;
}

.role-tab {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

/* ============================================================
   PREMIUM GLASSMORPHISM + MOTION UTILITIES (DASHBOARDS)
   ============================================================ */

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

@keyframes ksetuSlideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ksetu-fade-up {
  animation: ksetuFadeInUp 0.6s ease-out both;
}

.ksetu-slide-in {
  animation: ksetuSlideInRight 0.5s ease-out both;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(205, 189, 180, 0.45);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb, 117, 88, 77), 0.4);
  box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb, 117, 88, 77), 0.22);
}

.stat-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb, 117, 88, 77), 0.14);
}

.stat-icon {
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(4deg);
}

.btn-warm {
  background-image: linear-gradient(135deg, #75584d, #9b7b6c);
  box-shadow: 0 6px 16px -6px rgba(117, 88, 77, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(117, 88, 77, 0.6);
  filter: brightness(1.05);
}

.sidebar-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ============================================================
   ROLE THEME VARIABLES (farmer green / buyer warm brown)
   ============================================================ */

.role-farmer {
  --nav-border: rgba(205, 189, 180, 0.5);
  --nav-hover: rgba(13, 99, 27, 0.09);
  --nav-hover-text: #0d631b;
  --nav-active-bg: linear-gradient(135deg, #0d631b, #2e7d32);
  --nav-active-shadow: 0 6px 16px -6px rgba(13, 99, 27, 0.6);
  --accent-rgb: 13, 99, 27;
}

.role-buyer {
  --nav-border: rgba(205, 189, 180, 0.5);
  --nav-hover: rgba(117, 88, 77, 0.1);
  --nav-hover-text: #75584d;
  --nav-active-bg: linear-gradient(135deg, #5f463c, #8c6a5b);
  --nav-active-shadow: 0 6px 16px -6px rgba(117, 88, 77, 0.6);
  --accent-rgb: 117, 88, 77;
}

/* ---- Role-aware blocks on shared pages ---- */
body.role-farmer .nav-role-buyer { display: none !important; }
body.role-buyer .nav-role-farmer { display: none !important; }
body.role-farmer .buyer-only { display: none !important; }

/* ---- Cross-page navigation transition (progressive enhancement) ---- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* ---- App sidebar container (shared across roles) ---- */

.app-sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--nav-border, rgba(205, 189, 180, 0.5));
}

/* ---- Sidebar navigation links (single unified component) ---- */

.sidebar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #40493d;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar-nav:hover {
  background: var(--nav-hover, rgba(13, 99, 27, 0.09));
  color: var(--nav-hover-text, #0d631b);
  transform: translateX(2px);
}

.sidebar-nav.active {
  background: var(--nav-active-bg, #0d631b);
  color: #ffffff;
  box-shadow: var(--nav-active-shadow, 0 6px 16px -6px rgba(13, 99, 27, 0.6));
}

.sidebar-nav.active:hover {
  transform: translateX(0);
}

/* ---- Dashboard live-refresh indicator ---- */

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
}

.live-dot-pulse {
  animation: liveDotPulse 1.6s ease-out infinite;
}

@keyframes liveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.dashboard-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--nav-border, rgba(205, 189, 180, 0.5));
  color: #40493d;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #75584d, #b08a74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.status-badge.accepted {
  background: rgba(13, 99, 27, 0.12);
  color: #0d631b;
}

.status-badge.rejected {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.status-badge.sold {
  background: rgba(107, 114, 128, 0.14);
  color: #374151;
}

/* ============================================================
   BILINGUAL LANGUAGE SWITCHER (EN | हिन्दी)
   ============================================================ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d4dcd0;
  border-radius: 9999px;
  padding: 2px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  user-select: none;
  transition: all 0.2s ease;
}

.lang-switcher:hover {
  border-color: #0d631b;
  box-shadow: 0 4px 12px rgba(13, 99, 27, 0.12);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  color: #40493d;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-btn.active {
  background: #0d631b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 99, 27, 0.35);
}

.lang-switcher.warm .lang-btn.active {
  background: #75584d;
  box-shadow: 0 2px 8px rgba(117, 88, 77, 0.35);
}

/* ============================================================
   CROP QUICK-PICKER CHIPS (Produce Drawer)
   ============================================================ */
.crop-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.crop-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  background: #ffffff;
  border: 1.5px solid #e0e4da;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.crop-chip:hover {
  border-color: #0d631b;
  background: #f4f8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 99, 27, 0.12);
}

.crop-chip.active {
  border-color: #0d631b;
  background: linear-gradient(135deg, #e7f6ea, #d1f0d7);
  box-shadow: 0 0 0 2px #0d631b, 0 4px 14px rgba(13, 99, 27, 0.2);
  transform: translateY(-2px);
}

.crop-chip-icon {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.crop-chip-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #181d17;
  line-height: 1.15;
}

.crop-chip-sub {
  font-size: 0.65rem;
  color: #556050;
  margin-top: 1px;
}

/* ============================================================
   MANDI BENCHMARK PRICE HELPER CARD
   ============================================================ */
.mandi-benchmark-card {
  background: linear-gradient(135deg, #f0f7ee 0%, #e5f3e4 100%);
  border: 1.5px solid #bfe3c6;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 10px rgba(13, 99, 27, 0.06);
  animation: ksetuFadeUp 0.3s ease-out;
}

.mandi-rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #0d631b;
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-use-rate {
  background: #ffffff;
  color: #0d631b;
  border: 1px solid #0d631b;
  border-radius: 0.55rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-use-rate:hover {
  background: #0d631b;
  color: #ffffff;
}

/* ============================================================
   CATEGORY FILTER PILLS (Browse Marketplace & Demands)
   ============================================================ */
.cat-pills-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cat-pills-container::-webkit-scrollbar {
  height: 4px;
}

.cat-pills-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e0e4da;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #40493d;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cat-pill:hover {
  border-color: #75584d;
  color: #181d17;
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #75584d, #9b7b6c);
  border-color: #75584d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(117, 88, 77, 0.28);
}

.cat-pill.active-farmer {
  background: linear-gradient(135deg, #0d631b, #2e7d32);
  border-color: #0d631b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 99, 27, 0.28);
}

/* ============================================================
   PHONE INPUT PREFIX (+91)
   ============================================================ */
.phone-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix-tag {
  position: absolute;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #181d17;
  padding-right: 0.5rem;
  border-right: 1.5px solid #bfcaba;
  pointer-events: none;
}

.phone-input-padded {
  padding-left: 4.2rem !important;
}

/* ============================================================
   SERVER STATUS BANNER & SKELETON LOADERS
   ============================================================ */
.server-status-banner {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: ksetuFadeUp 0.3s ease-out;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e0e4da;
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.skeleton-box {
  background: linear-gradient(90deg, #f0f3ec 25%, #e2e8de 50%, #f0f3ec 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ksetu-fade-up,
  .ksetu-slide-in,
  .skeleton-box {
    animation: none;
  }
}

