:root {
  --ink: #17201c;
  --muted: #66716b;
  --line: #d7e3da;
  --paper: #ffffff;
  --soft: #f3f7f2;
  --surface: #f8fbf8;
  --deep: #0f5132;
  --deep-2: #123f2d;
  --leaf: #1f7a4d;
  --gold: #c99724;
  --accent: #f47b20;
  --accent-soft: #fff2e7;
  --sky: #2f6f9f;
  --danger: #b83a35;
  --warning: #c68212;
  --shadow: 0 24px 60px rgba(23, 32, 28, 0.12);
  --shadow-soft: 0 14px 34px rgba(18, 41, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 77, 0.05), transparent 32%),
    linear-gradient(180deg, #f7faf7 0%, #f1f6f1 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 227, 218, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(23, 32, 28, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--deep);
  background: #eef5f0;
}

.top-actions,
.hero-actions,
.toolbar,
.panel-head,
.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn,
.icon-btn,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn {
  padding: 0 16px;
  font-weight: 750;
  white-space: nowrap;
}

.btn:hover,
.icon-btn:hover,
.category-card:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--deep) 0%, var(--leaf) 100%);
  box-shadow: 0 12px 26px rgba(15, 81, 50, 0.2);
}

.btn.secondary,
.btn.ghost {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
}

.btn.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.full {
  width: 100%;
}

.icon-btn {
  width: 40px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn:focus-visible,
.icon-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.hero-dot:focus-visible {
  outline: 3px solid rgba(31, 122, 77, 0.18);
  outline-offset: 2px;
}

[data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(24px, 6vw, 72px);
  overflow: hidden;
  background: #12271d;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, rgba(7, 20, 31, 0.9), rgba(12, 45, 34, 0.72), rgba(9, 28, 21, 0.24));
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  transition: background-image 0.45s ease, transform 0.45s ease;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  color: #fff;
}

.hero-copy::before {
  position: absolute;
  inset: -28px auto auto -24px;
  width: 88px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 210, 143, 0.25));
  border-radius: 999px;
  content: "";
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: min(1220px, 100%);
  margin: 0 auto;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  color: #ffd28f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

p {
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-copy p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.hero-search-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(215, 227, 218, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-search-wrap {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.search-band {
  padding-top: 0;
}

.hero-search-panel .eyebrow {
  color: var(--accent);
}

.hero-search-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.06;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  color: var(--muted);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field input {
  min-height: 54px;
  padding-inline: 0;
  border: 0;
}

.hero-select {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-select select {
  min-height: auto;
  padding: 0;
  border: 0;
}

.hero-search input,
.input-with-icon input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.hero-search .btn {
  min-height: 56px;
  padding-inline: 24px;
}

.hero-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 28px;
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--accent);
}

.band,
.page-shell,
.content-grid {
  padding: clamp(24px, 5vw, 64px);
}

.hero-band {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.metric-row article {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metric-row strong {
  display: block;
  color: var(--deep);
  font-size: 2rem;
}

.metric-row span {
  color: var(--muted);
}

.metric-row small {
  display: block;
  margin-top: 10px;
}

.content-grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 62ch;
}

.section-heading-lined {
  position: relative;
}

.section-heading-lined::after {
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent);
  content: "";
}

.section-heading-center {
  text-align: center;
}

.section-heading-center .eyebrow {
  justify-content: center;
}

.section-heading-center.section-heading-lined::after {
  margin-inline: auto;
}

.section-stack,
.trust-stack {
  display: grid;
  gap: 24px;
}

.section-heading.compact h2 {
  font-size: 2rem;
}

.category-grid,
.product-grid,
.exporter-grid,
.stat-grid,
.buyer-grid,
.work-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card,
.trust-panel,
.panel,
.filters,
.stat-grid article,
.product-card,
.side-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-card {
  min-height: 148px;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.category-card i {
  color: var(--accent);
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card strong {
  margin: 16px 0 6px;
}

.category-card span {
  color: var(--muted);
}

.trust-panel,
.panel,
.filters {
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.market-overview {
  align-items: start;
}

.offer-strip,
.value-grid,
.highlight-stats {
  display: grid;
  gap: 16px;
}

.offer-card,
.value-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.offer-card h3,
.value-card strong {
  color: #294a62;
}

.offer-icon,
.value-card i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}

.highlight-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(160deg, #10283f 0%, #123f2d 100%);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.highlight-panel .eyebrow,
.highlight-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.highlight-panel h3 {
  font-size: 1.4rem;
}

.highlight-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.highlight-stats strong {
  color: #fff;
}

.value-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #f7faf7 100%);
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1220px, 100%);
  margin: 28px auto 0;
}

.value-card {
  grid-template-columns: 1fr;
}

.value-card strong {
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.check-list i {
  color: var(--leaf);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px;
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  align-self: start;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 122, 77, 0.48);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.1);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.input-with-icon input {
  padding-inline: 0;
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  background: #e9f0eb;
  border-radius: 8px;
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: var(--deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 28, 0.08);
}

.segmented.small button {
  min-height: 30px;
  font-size: 0.82rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exporter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exporter-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.exporter-card-top,
.exporter-actions,
.exporter-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exporter-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.exporter-score {
  color: var(--deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.exporter-tags span {
  padding: 7px 10px;
  color: var(--deep);
  background: #edf6f0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.exporter-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.exporter-meta div {
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
}

.exporter-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.exporter-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state strong {
  color: var(--ink);
}

.product-image {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
  position: relative;
}

.product-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(10, 28, 20, 0.08));
  content: "";
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-title strong {
  min-width: 0;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
}

.badge {
  color: var(--deep);
  background: #e7f3ed;
}

.status.active {
  color: #17633c;
  background: #e6f4ec;
}

.status.progress {
  color: #235f8c;
  background: #e6f0f8;
}

.status.warning,
.status.draft {
  color: #8a5a08;
  background: #fff3d7;
}

.status.danger {
  color: var(--danger);
  background: #fde8e6;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.side-nav {
  position: sticky;
  top: 76px;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 24px 18px;
  color: #e5efe9;
  background: linear-gradient(180deg, #113726 0%, #0d281d 100%);
  border: 0;
  border-radius: 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.side-nav strong {
  display: block;
  margin-bottom: 16px;
  color: #fff;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(229, 239, 233, 0.78);
  border-radius: 8px;
}

.side-nav a.active,
.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-nav a.active,
.admin-nav a:hover {
  color: #fff;
  background: rgba(47, 111, 159, 0.2);
}

.dash-main {
  padding: clamp(20px, 4vw, 44px);
  background:
    radial-gradient(circle at top right, rgba(31, 122, 77, 0.05), transparent 28%),
    linear-gradient(180deg, #f4f8f4 0%, #eef4ef 100%);
}

.dash-header {
  justify-content: space-between;
  margin-bottom: 22px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-grid article {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.stat-grid span,
.stat-grid small {
  display: block;
}

.stat-grid strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 2rem;
}

.work-grid,
.buyer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  box-shadow: var(--shadow-soft);
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.pipeline {
  display: grid;
  gap: 12px;
}

.pipeline article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--surface);
  border-radius: 8px;
}

progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
}

progress::-webkit-progress-bar {
  background: #dce6df;
}

progress::-webkit-progress-value {
  background: var(--leaf);
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.timeline li > span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: #d2ddd5;
  border-radius: 99px;
}

.timeline .done > span {
  background: var(--leaf);
}

.timeline .current > span {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 151, 36, 0.18);
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.92rem;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.readiness {
  display: grid;
  gap: 18px;
  align-content: start;
}

.readiness-score {
  display: grid;
  place-items: center;
  min-height: 190px;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    conic-gradient(var(--leaf) 0 86%, #dfe7e1 86% 100%);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.readiness-score strong {
  font-size: 3rem;
}

.readiness-score span {
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stepper article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.stepper span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: #edf2ee;
  border-radius: 50%;
  font-weight: 800;
}

.stepper .done span,
.stepper .active span {
  color: #fff;
  background: var(--deep);
}

.onboarding-form {
  max-width: 920px;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-bottom: 20px;
}

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

.module-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding: 14px;
  background: var(--surface);
  border-radius: 8px;
}

.module-list i {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--deep);
  background: #e5f2eb;
  border-radius: 8px;
}

.module-list span,
.stack-list span {
  color: var(--muted);
}

.stack-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.stack-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.roadmap-panel {
  margin-bottom: 20px;
}

.phase-grid,
.doc-links {
  display: grid;
  gap: 12px;
}

.phase-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.phase-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.phase-grid span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--deep);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 850;
}

.doc-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  color: var(--deep);
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .product-grid,
  .exporter-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exporter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .filters .btn {
    align-self: end;
  }
}

@media (max-width: 860px) {
  .top-actions {
    margin-left: auto;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 720px;
  }

  .metric-row,
  .content-grid.two,
  .market-layout,
  .dashboard,
  .work-grid,
  .buyer-grid,
  .compliance-layout,
  .stepper,
  .blueprint-grid {
    grid-template-columns: 1fr;
  }

  .phase-grid,
  .doc-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .filters,
  .side-nav {
    position: static;
  }

  .side-nav {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px;
  }

  .top-actions .ghost,
  .brand small {
    display: none;
  }

  .hero,
  .band,
  .page-shell,
  .content-grid {
    padding: 20px;
  }

  .hero-actions,
  .toolbar,
  .dash-header,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .product-grid,
  .exporter-grid,
  .stat-grid,
  .value-grid,
  .form-grid,
  .module-list,
  .phase-grid,
  .doc-links {
    grid-template-columns: 1fr;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .exporter-meta {
    grid-template-columns: 1fr;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .hero-points,
  .hero-search-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slider-controls {
    width: 100%;
    justify-content: center;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .toolbar select,
  .segmented,
  .segmented button,
  .product-card .btn {
    width: 100%;
  }

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

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
