/* =============================================
   AGRICON — Modern Agriculture Marketplace Theme
   ============================================= */

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

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --primary-bg: #ecfdf5;
  --secondary: #64748b;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --accent: #f59e0b;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, rgba(236, 253, 245, 0.85), transparent 20%),
    linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(5, 150, 105, 0.18);
  color: var(--dark);
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ═══ NAVBAR ═══ */
.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0.6rem 0;
  transition: var(--transition);
  position: relative;
  z-index: 1030;
}

.navbar.navbar-dark.bg-success {
  background: #0f172a !important;
}

.navbar .dropdown-menu {
  z-index: 1060;
}

.navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

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

.navbar-dark .navbar-brand {
  background: linear-gradient(135deg, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #34d399;
  border-radius: 2px;
}

/* ═══ HERO ═══ */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1a2e3f 40%, #064e3b 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(5,150,105,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(52,211,153,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--light), transparent);
}

.hero-section .hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions .btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  box-shadow: 0 4px 20px rgba(5,150,105,0.35);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5,150,105,0.45);
}

.hero-actions .btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.3);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Hero search */
.hero-section .input-group {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-section .input-group .form-control {
  font-size: 0.95rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hero-section .input-group .btn {
  font-size: 0.95rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stats .stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stats .stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Hero showcase card */
.hero-showcase {
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.hero-showcase .mini-card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.hero-showcase .mini-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.hero-showcase .mini-card .mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
}

/* Floating shapes */
.hero-section .shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-section .shape-1 {
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52,211,153,0.08), transparent);
  animation: float 8s ease-in-out infinite;
}
.hero-section .shape-2 {
  bottom: -40px;
  right: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.06), transparent);
  animation: float 12s ease-in-out infinite reverse;
}

/* Marketplace landing */
.market-hero {
  background: linear-gradient(180deg, #f8fbf8 0%, #eef8f2 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.market-slider {
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #0f172a;
}

.market-slider .carousel-inner,
.market-slider .carousel-item {
  min-height: 520px;
}

.market-slider-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.market-slider .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(15, 23, 42, 0.52) 42%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.55), transparent 45%);
}

.market-slider-caption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  max-width: 600px;
  color: #fff;
}

.market-slider-caption h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 900;
  margin: 0.7rem 0 0.75rem;
}

.market-slider-caption p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
}

.market-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.94);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #047857;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

.market-price-pill span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.market-slider .carousel-indicators {
  justify-content: flex-start;
  margin-left: 2rem;
  margin-right: 2rem;
  bottom: 0.75rem;
}

.market-slider .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: 0;
}

.market-slider .carousel-control-prev,
.market-slider .carousel-control-next {
  width: 3.5rem;
}

.market-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.market-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.market-search .input-group {
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  overflow: hidden;
}

.market-search .form-control,
.market-search .input-group-text,
.market-search .btn {
  border-radius: 0;
  border-color: transparent;
}

.market-stats strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: #047857;
}

.market-stats span {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.market-trust {
  display: grid;
  gap: 0.7rem;
}

.market-trust div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155;
  font-weight: 700;
  font-size: 0.92rem;
}

.market-trust i {
  color: #059669;
  width: 1rem;
}

.category-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid #dbe7df;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.category-chip:hover {
  border-color: #059669;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.category-chip i {
  color: #059669;
}

.market-product-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.market-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.market-product-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #ecfdf5;
  overflow: hidden;
}

.market-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.market-product-card:hover .market-product-image img {
  transform: scale(1.04);
}

.market-product-image span {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #047857;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-product-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #059669;
  font-size: 2rem;
}

.market-product-body {
  padding: 1rem;
}

.market-product-body h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.market-product-body h3 a {
  color: #0f172a;
  text-decoration: none;
}

.market-product-body p,
.market-product-body small {
  color: #64748b;
  font-size: 0.8rem;
}

.market-product-body p {
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-product-body strong {
  color: #047857;
  font-size: 1.05rem;
}

.empty-market {
  background: #fff;
  border: 1px dashed #b7dccd;
  border-radius: 16px;
}

.market-feature {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.market-feature i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.market-feature h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.market-feature p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@media (max-width: 991.98px) {
  .market-slider,
  .market-slider .carousel-inner,
  .market-slider .carousel-item,
  .market-slider-img {
    min-height: 440px;
  }

  .market-panel {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .market-slider,
  .market-slider .carousel-inner,
  .market-slider .carousel-item,
  .market-slider-img {
    min-height: 430px;
  }

  .market-slider-caption {
    left: 1rem;
    right: 1rem;
    bottom: 2rem;
  }

  .market-slider-caption p {
    font-size: 0.95rem;
  }

  .market-slider .carousel-indicators {
    margin-left: 1rem;
  }

  .market-panel {
    padding: 1.2rem;
  }

  .market-search .input-group {
    display: grid;
    grid-template-columns: 44px 1fr;
  }

  .market-search .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-section {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ═══ SECTION HEADERS ═══ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.section-title .highlight {
  background: linear-gradient(135deg, #059669, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--secondary);
  max-width: 500px;
}

/* ═══ CARDS ═══ */
.card {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: #fff;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card .card-body {
  padding: 1.5rem;
}

/* Glass Card */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Border Card */
.card-gradient {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #059669, #34d399, #3b82f6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══ STAT CARDS ═══ */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Font weight utilities */
.fw-black { font-weight: 900 !important; }

/* ═══ BUTTONS ═══ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.3);
  color: #fff;
}

.btn-outline-success {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-success:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 4px 14px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  box-shadow: 0 4px 14px rgba(239,68,68,0.2);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--secondary);
}

.btn-ghost:hover {
  background: var(--light);
  border-color: #cbd5e1;
  color: var(--dark);
}

/* ═══ FORMS ═══ */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--dark);
  background: #fff;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

.input-group .btn {
  border-radius: 0 10px 10px 0;
}

.input-group .form-control {
  border-radius: 10px 0 0 10px;
}

/* ═══ TABLES ═══ */
.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
}

.table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ═══ BADGES ═══ */
.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge.bg-success { background: #dcfce7 !important; color: #166534; }
.badge.bg-danger { background: #fee2e2 !important; color: #991b1b; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e; }
.badge.bg-info { background: #e0f2fe !important; color: #075985; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569; }
.badge.bg-primary { background: #dbeafe !important; color: #1e40af; }
.badge.bg-dark { background: #e2e8f0 !important; color: #0f172a; }

.badge-pulse {
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(5,150,105,0); }
}

/* ═══ AUTH PAGES ═══ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1a2e3f 50%, #064e3b 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(5,150,105,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(52,211,153,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.auth-card .card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.auth-card .card-body {
  padding: 2.5rem;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-header .auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #059669, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(5,150,105,0.2);
}

.auth-card .auth-header h4 {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
}

.auth-card .auth-header p {
  font-size: 0.85rem;
  color: var(--secondary);
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.auth-card .auth-footer p {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Role selector cards */
.role-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.role-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(5,150,105,0.1);
}

.role-card.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
}

.role-card .role-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.role-card .role-icon.green { background: #ecfdf5; color: #059669; }
.role-card .role-icon.blue { background: #eff6ff; color: #3b82f6; }
.role-card .role-icon.orange { background: #fffbeb; color: #f59e0b; }

.role-card h6 {
  font-weight: 700;
  font-size: 0.95rem;
}

.role-card p {
  font-size: 0.78rem;
  color: var(--secondary);
  margin: 0;
}

/* ═══ PRODUCT CARDS ═══ */
.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card .product-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  background: #f1f5f9;
}

.product-card .product-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  font-size: 3rem;
  color: #94a3b8;
}

.product-card .product-body {
  padding: 1.25rem;
}

.product-card .product-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.product-card .product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.product-card .product-meta {
  font-size: 0.75rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .product-farmer {
  font-size: 0.75rem;
  color: var(--secondary);
}

.product-card .product-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Product badges */
.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .product-badge.organic {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
}

.product-card .product-badge.fresh {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
}

/* ═══ MESSAGES ═══ */
.message-bubble {
  max-width: 75%;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.message-sent {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-received {
  background: #f1f5f9;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  opacity: 0.6;
  display: block;
}

/* ═══ MARKETPLACE ═══ */
.product-spotlight-card {
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fff9 100%);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.12);
}

.product-spotlight-card .position-relative {
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 600;
}

.alert-success-soft {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.product-detail-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fff9 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.product-thumb {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
}

.filter-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.filter-section h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.filter-section .form-check-label {
  font-size: 0.85rem;
  color: #475569;
}

/* Price range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #047857);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5,150,105,0.3);
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #94a3b8;
  margin: 0 auto 1.25rem;
}

.empty-state h5 {
  font-weight: 700;
  color: var(--dark);
}

.empty-state p {
  color: var(--secondary);
  font-size: 0.875rem;
  max-width: 360px;
  margin: 0 auto;
}

/* ═══ NOTIFICATIONS ═══ */
.notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
}

.notification-item .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.notification-item .notif-icon.success { background: #ecfdf5; color: #059669; }
.notification-item .notif-icon.warning { background: #fffbeb; color: #f59e0b; }
.notification-item .notif-icon.danger { background: #fef2f2; color: #ef4444; }
.notification-item .notif-icon.info { background: #eff6ff; color: #3b82f6; }

.notification-item .notif-text {
  font-size: 0.85rem;
  color: #334155;
}

.notification-item .notif-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.15rem;
  display: block;
}

/* ═══ RATING STARS ═══ */
.stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

.stars i {
  margin-right: 1px;
}

/* ═══ AVATARS ═══ */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  object-fit: cover;
}

.avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ═══ CHAT LAYOUT ═══ */
.chat-sidebar {
  border-right: 1px solid var(--border);
  height: calc(100vh - 200px);
  overflow-y: auto;
}

.chat-area {
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.chat-input {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: #fff;
}

.conversation-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--primary-bg);
}

/* ═══ IMAGE GALLERY ═══ */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ═══ CART ═══ */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item .cart-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}

.cart-item .cart-qty {
  width: 100px;
}

/* ═══ ORDER TIMELINE ═══ */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 45px;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
}

.timeline-item.completed::before {
  background: var(--primary);
}

.timeline-item .timeline-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.timeline-item .timeline-text {
  font-size: 0.8rem;
  color: var(--secondary);
}

.timeline-item .timeline-time {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background:
    linear-gradient(180deg, #0b1220 0%, #020617 100%);
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer .text-white-50 {
  color: rgba(255,255,255,0.72) !important;
}

.site-footer a:hover {
  color: #6ee7b7 !important;
}

.site-footer h5, .site-footer h6 {
  color: #fff;
}

.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
}

.site-footer a:hover {
  color: #34d399;
}

.site-footer .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.site-footer .social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══ SPINNER ═══ */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.spinner-overlay .spinner-border {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

/* ═══ TOAST CONTAINER ═══ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* ═══ .PROFILE ═══ */
.profile-header {
  background: linear-gradient(135deg, #0f172a, #064e3b);
  padding: 3rem 0;
  color: #fff;
  position: relative;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--light), transparent);
}

/* ═══ SEARCH BAR ═══ */
.search-bar {
  position: relative;
}

.search-bar .form-control {
  padding-left: 2.75rem;
  border-radius: 50px;
  background: var(--light);
  border-color: var(--border);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 5;
}

/* ═══ ANIMATIONS ═══ */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══ PRICING/DISPLAY ═══ */
.price-current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* ═══ DIVIDER ═══ */
.divider {
  display: flex;
  align-items: center;
  color: var(--secondary);
  font-size: 0.8rem;
  gap: 1rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.page-header .breadcrumb {
  margin: 0;
  font-size: 0.8rem;
}

.page-header .breadcrumb .breadcrumb-item a {
  color: var(--secondary);
  text-decoration: none;
}

.page-header .breadcrumb .breadcrumb-item.active {
  color: var(--dark);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-section {
    padding: 60px 0 70px;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .hero-stats .stat-item .stat-number {
    font-size: 1.35rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-section {
    padding: 50px 0 60px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .auth-card .card-body {
    padding: 1.5rem;
  }
  .stat-card .stat-value {
    font-size: 1.4rem;
  }
  .product-card .product-img {
    height: 150px;
  }
  .table thead th,
  .table tbody td {
    padding: 0.6rem 0.75rem;
  }
  .message-bubble {
    max-width: 90%;
  }
  .gallery-thumbs img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 40px 0 50px;
  }
  .hero-title {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .hero-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    width: 100%;
  }
  .hero-actions .btn:first-child {
    margin-bottom: 0.5rem;
  }
  .hero-stats .stat-item .stat-number {
    font-size: 1.2rem;
  }
  .hero-section .input-group .form-control {
    font-size: 0.85rem;
  }
  .hero-section .input-group .btn {
    font-size: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.market-shelf {
  padding: 4rem 0;
  background: #fff;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.section-heading-row h2 {
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-heading-row p {
  color: #64748b;
  margin: 0;
}

.market-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.professional-product {
  border: 1px solid #e5eee8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.professional-product:hover {
  border-color: #cfe3d8;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.professional-product-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #ecfdf5;
  overflow: hidden;
}

.professional-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.professional-product:hover img {
  transform: scale(1.035);
}

.professional-product-image div {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #059669;
  font-size: 2rem;
}

.professional-product-image span {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #047857;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.professional-product-body {
  padding: 1rem;
}

.professional-product-body h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.professional-product-body h3 a {
  color: #0f172a;
  font-weight: 850;
  text-decoration: none;
}

.professional-product-body p {
  color: #64748b;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.professional-product-body div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.professional-product-body strong {
  color: #047857;
  font-size: 1.05rem;
}

.professional-product-body small {
  color: #64748b;
  font-weight: 700;
  text-align: right;
}

.market-confidence {
  padding: 3.5rem 0;
  background: #f8fafc;
  border-top: 1px solid #e5eee8;
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.confidence-grid > div {
  background: #fff;
  border: 1px solid #e5eee8;
  border-radius: 10px;
  padding: 1.5rem;
}

.confidence-grid i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  margin-bottom: 1rem;
}

.confidence-grid h3 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0.45rem;
}

.confidence-grid p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .market-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .confidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .market-card-grid {
    grid-template-columns: 1fr;
  }
}
