/* ===========================
   DIGARO DESIGN SYSTEM
   Palette: Indigo, Misty Blue, Lilac, Ivory
   Font: Manrope
   =========================== */

:root {
  /* Brand colors */
  --fi-color-primary: #63347c;          /* Indigo */
  --fi-color-primary-soft: #7b4b96;     /* Hover Indigo */
  --fi-color-support-misty: #aabec0;    /* Misty Blue */
  --fi-color-accent-lilac: #e1c2f0;     /* Lilac */
  --fi-color-surface-base: #e8e8e5;     /* Ivory background */
  --fi-color-surface-card: #ffffff;     /* Cards */

  /* Text & neutral */
  --fi-color-text-primary: #231b2e;
  --fi-color-text-secondary: #4e435c;
  --fi-color-text-muted: #8a8196;
  --fi-color-border-subtle: #d4d0db;

  /* Semantic */
  --fi-color-success: #0a8a7b;
  --fi-color-warning: #d98a00;
  --fi-color-error: #c23b3b;
  --fi-color-info: #2f6ccb;

  /* Radius & shadow */
  --fi-radius-sm: 8px;
  --fi-radius-md: 12px;
  --fi-radius-pill: 999px;
  --fi-shadow-card: 0 8px 24px rgba(35, 27, 46, 0.06);

  /* Spacing (8-based) */
  --fi-space-4: 4px;
  --fi-space-8: 8px;
  --fi-space-12: 12px;
  --fi-space-16: 16px;
  --fi-space-20: 20px;
  --fi-space-24: 24px;
  --fi-space-32: 32px;
  --fi-space-40: 40px;
  --fi-space-48: 48px;

  /* Typography */
  --fi-font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

/* ==============
   Global reset
   ============== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fi-color-surface-base);
  color: var(--fi-color-text-primary);
  font-family: var(--fi-font-family);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--fi-color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--fi-color-text-primary);
}

p {
  margin: 0 0 8px;
}

/* Generic container for pages */
.page-wrap,
.results-main,
.profile-page,
.page,
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   TOP STRIP + LOGO ROW (shared)
   =========================== */

.top-strip {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--fi-color-border-subtle);
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-left span {
  color: var(--fi-color-text-muted);
}

.top-left button {
  border-radius: var(--fi-radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--fi-color-primary);
  background: #ffffff;
  color: var(--fi-color-primary);
}

.top-left button.join {
  background: var(--fi-color-primary);
  color: #ffffff;
  font-weight: 600;
}

.top-right {
  text-align: right;
  color: var(--fi-color-text-muted);
}

.top-right div {
  margin-bottom: 2px;
}

/* Logo row */

.logo-row {
  background: var(--fi-color-surface-card);
  padding: 12px 40px 16px;
  border-bottom: 1px solid var(--fi-color-border-subtle);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--fi-color-primary);
}

.tagline,
.tagline-global {
  font-size: 12px;
  color: var(--fi-color-text-muted);
}


/* ===========================
   HOME HERO SECTION
   =========================== */

.home-hero-section {
  background: var(--fi-color-accent-lilac); /* Lilac background */
  padding: 32px 40px 40px;
  border-bottom: 1px solid var(--fi-color-border-subtle);
}


.home-hero-inner {
  max-width: 960px;          /* makes hero feel wider but still contained */
  margin: 0 auto;            /* center the inner content */
  text-align: center;        /* center align heading, subtitle & buttons */
}

.home-hero-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fi-color-text-strong);
  margin-bottom: 8px;
}

.home-hero-subtitle {
  font-size: 14px;
  color: var(--fi-color-text-muted);
  margin-bottom: 18px;
}

.home-hero-ctas {
  display: flex;
  justify-content: center;   /* center the two buttons */
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero-ctas .btn-primary {
  padding: 9px 18px;         /* slightly bigger, more “hero” feel */
  font-size: 14px;
}



/* Search area in header (home & results) */

.search-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-area select {
  padding: 9px 10px;
  border-radius: var(--fi-radius-pill) 0 0 var(--fi-radius-pill);
  border: 1px solid var(--fi-color-border-subtle);
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.search-area input {
  padding: 9px 10px;
  border: 1px solid var(--fi-color-border-subtle);
  border-left: none;
  flex: 1;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.search-area button.search-btn {
  background: var(--fi-color-primary);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 0 var(--fi-radius-pill) var(--fi-radius-pill) 0;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

.search-area button.search-btn:hover {
  background: var(--fi-color-primary-soft);
  box-shadow: 0 0 0 3px rgba(225, 194, 240, 0.6);
}

/* Primary CTA in header */

.buy-btn {
  background: var(--fi-color-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--fi-radius-pill);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 52, 124, 0.25);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    background 150ms ease-out;
}

.buy-btn:hover {
  transform: translateY(-1px);
  background: var(--fi-color-primary-soft);
  box-shadow: 0 6px 20px rgba(99, 52, 124, 0.32);
}

/* ===========================
   HOME PAGE (index.html)
   =========================== */

.page-wrap {
  padding: 24px 40px 40px;
  display: flex;
  gap: 24px;
}

/* Left sidebar */

.sidebar {
  width: 260px;
}

.category-card-main {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  overflow: hidden;
}

.category-header {
  background: rgba(170, 190, 192, 0.4); /* soft Misty Blue tint */
  color: var(--fi-color-text-secondary);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  border-bottom: 1px solid var(--fi-color-border-subtle);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list button:hover {
  background: #f3f6f7;
}

.category-list .all {
  color: var(--fi-color-primary);
  font-weight: 600;
}

/* Consultation call card (sidebar) */

.consult-card {
  margin-top: var(--fi-space-16);
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 14px 16px 16px;
  font-size: 13px;
}

.consult-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fi-color-text-muted);
}

.consult-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--fi-color-text-primary);
}

.consult-copy {
  font-size: 12px;
  color: var(--fi-color-text-secondary);
  margin: 8px 0 6px;
}

.consult-list {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 12px;
  color: var(--fi-color-text-secondary);
}

.consult-list li {
  margin-bottom: 2px;
}

/* Primary call button */
.consult-call-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: var(--fi-radius-pill);
  background: var(--fi-color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 52, 124, 0.25);
  transition: background 150ms ease-out, box-shadow 150ms ease-out,
    transform 120ms ease-out;
}

.consult-call-btn:hover {
  background: var(--fi-color-primary-soft);
  box-shadow: 0 6px 20px rgba(99, 52, 124, 0.35);
  transform: translateY(-1px);
}

/* Secondary CTA */
.consult-secondary-btn {
  margin-top: 6px;
  width: 100%;
  border-radius: var(--fi-radius-pill);
  border: 1px solid var(--fi-color-primary);
  background: transparent;
  color: var(--fi-color-primary);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.consult-secondary-btn:hover {
  background: var(--fi-color-accent-lilac);
}

/* Meta text */
.consult-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

/* Optional: centre this nicely on mobile when sidebar becomes full-width */
@media (max-width: 900px) {
  .consult-card {
    margin-top: var(--fi-space-16);
  }
}


/* Right: trending cards */

.main-content {
  flex: 1;
}

.section-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--fi-color-text-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.trend-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.trend-image {
  background: linear-gradient(
    135deg,
    rgba(225, 194, 240, 0.8),
    rgba(170, 190, 192, 0.8)
  );
  height: 80px;
}

.trend-text {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--fi-color-primary);
  font-weight: 600;
}

/* ===========================
   RESULTS PAGE (results.html)
   =========================== */

.results-main {
  padding: 20px 40px 40px;
}

.results-header {
  margin-bottom: 16px;
}

.results-title {
  font-size: 20px;
  font-weight: 700;
}

.results-subtitle {
  font-size: 13px;
  color: var(--fi-color-text-muted);
}

/* Filter bar */

.filter-bar {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fi-color-text-secondary);
}

.filter-group label {
  font-weight: 500;
}

.filter-bar select {
  padding: 6px 10px;
  border-radius: var(--fi-radius-pill);
  border: 1px solid var(--fi-color-border-subtle);
  font-size: 13px;
  background: #ffffff;
}

.filter-bar .clear-filters {
  margin-left: auto;
  font-size: 12px;
  color: var(--fi-color-text-muted);
  cursor: pointer;
}

/* Layout with sidebar & cards & lead-box column */

.results-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: flex-start;
}

.filters-col {
  font-size: 13px;
}

.filters-col h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.filters-col .filter-section {
  background: var(--fi-color-surface-card);
  padding: 12px 14px;
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  margin-bottom: 12px;
}

/* Product cards */

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 140px;
  gap: 12px;
  font-size: 13px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--fi-radius-sm);
  background: linear-gradient(
    135deg,
    rgba(225, 194, 240, 0.5),
    rgba(170, 190, 192, 0.6)
  );
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-weight: 700;
  color: var(--fi-color-primary);
  font-size: 14px;
}

.product-meta-line {
  color: var(--fi-color-text-secondary);
}

.product-meta-line span {
  margin-right: 8px;
}

.product-tags {
  margin-top: 4px;
}

.product-tags .tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--fi-radius-pill);
  font-size: 11px;
  background: var(--fi-color-accent-lilac);
  color: var(--fi-color-text-primary);
  margin-right: 4px;
  margin-bottom: 4px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Lead box (right column) */

.lead-box {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 14px 16px;
  font-size: 13px;
}

.lead-box-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.lead-box-subtitle {
  color: var(--fi-color-text-muted);
  margin-bottom: 8px;
}

/* ===========================
   GENERIC BUTTONS
   =========================== */

.btn-primary,
button.btn-primary,
.product-actions button,
.hero-ctas .btn-primary,
.rfq-cta-primary {
  background: var(--fi-color-primary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--fi-radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: background 150ms ease-out, box-shadow 150ms ease-out,
    transform 120ms ease-out;
}

.btn-primary:hover,
button.btn-primary:hover,
.product-actions button:hover,
.hero-ctas .btn-primary:hover,
.rfq-cta-primary:hover {
  background: var(--fi-color-primary-soft);
  box-shadow: 0 0 0 3px rgba(225, 194, 240, 0.6);
  transform: translateY(-1px);
}

.btn-secondary,
button.btn-secondary {
  background: transparent;
  color: var(--fi-color-primary);
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-primary);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary:hover,
button.btn-secondary:hover {
  background: var(--fi-color-accent-lilac);
}

.btn-tertiary,
button.btn-tertiary {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--fi-color-text-secondary);
  cursor: pointer;
}

/* ===========================
   ENQUIRY PAGE (enquiry.html)
   =========================== */

.wrapper {
  max-width: 700px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.enquiry-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 20px 24px;
}

.enquiry-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.enquiry-subtitle {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  margin-bottom: 16px;
}

form label {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 4px;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
  outline: none;
  background: #ffffff;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--fi-color-support-misty);
  box-shadow: 0 0 0 2px rgba(170, 190, 192, 0.5);
}

form textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > div {
  flex: 1;
}

.form-actions {
  margin-top: 16px;
}

.status {
  margin-top: 8px;
  font-size: 12px;
}

.status.success {
  color: var(--fi-color-success);
}

.status.error {
  color: var(--fi-color-error);
}

/* ===========================
   ADMIN PAGE (admin.html)
   =========================== */

.admin-layout {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.admin-header {
  margin-bottom: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 18px 20px;
  font-size: 13px;
}

.form-card h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Buyer admin accordion (buyer-discovery-admin) */

.buyer-db-card .card-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.buyer-db-card .card-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.buyer-db-accordion .accordion-section + .accordion-section {
  margin-top: 12px;
}

.accordion-header {
  width: 100%;
  border: none;
  background: #f9fafb;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  border-radius: var(--fi-radius-sm);
}

.accordion-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-title {
  font-size: 14px;
  font-weight: 600;
}

.accordion-subtext {
  font-size: 12px;
  color: #6b7280;
}

.accordion-chevron {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 150ms ease-out;
}

.accordion-body {
  padding: 12px 4px 4px;
  margin-top: 4px;
}

.accordion-section.is-collapsed .accordion-body {
  display: none;
}

.accordion-section.is-collapsed .accordion-chevron {
  transform: rotate(-90deg);
}


/* ===========================
   SUPPLIER PROFILE (supplier.html)
   =========================== */

.profile-page {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.hero-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  min-height: 220px;
}

.hero-left {
  display: flex;
  gap: 16px;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(225, 194, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--fi-color-primary);
}

.hero-main {
  flex: 1;
}

.hero-company-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-tagline {
  font-size: 13px;
  color: var(--fi-color-text-secondary);
  margin-bottom: 8px;
}

.hero-meta-row {
  font-size: 12px;
  color: var(--fi-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-dot::before {
  content: "•";
  margin: 0 4px;
}

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

.badge-pill {
  padding: 3px 9px;
  border-radius: var(--fi-radius-pill);
  font-size: 11px;
  background: var(--fi-color-accent-lilac);
  color: var(--fi-color-text-primary);
  border: 1px solid rgba(170, 190, 192, 0.6);
  position: relative;
}

.badge-pill[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 120%;
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 4px;
  width: 220px;
  z-index: 2;
}

.hero-note {
  font-size: 11px;
  color: var(--fi-color-warning);
  margin-top: 8px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.hero-stats {
  background: #f3f6f7;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hero-stat-label {
  color: var(--fi-color-text-secondary);
}

.hero-stat-value {
  font-weight: 600;
  color: var(--fi-color-text-primary);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Bigger star icon for Save Supplier */
#btnSaveSupplier .save-star {
  font-size: 18px;        /* increase or decrease as you like (16–20) */
  margin-right: 4px;
  display: inline-block;
  line-height: 1;
  transform: translateY(1px); /* tiny nudge so it aligns nicely with text */
}


/* Tab bar */

.tab-bar {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  border-bottom: 1px solid var(--fi-color-border-subtle);
  font-size: 13px;
}

.tab-link {
  padding: 8px 0;
  cursor: pointer;
  color: var(--fi-color-text-muted);
  border-bottom: 2px solid transparent;
}

.tab-link.active {
  color: var(--fi-color-primary);
  border-color: var(--fi-color-primary);
  font-weight: 600;
}

.tab-content {
  margin-top: 16px;
}

.hidden {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.small-text {
  font-size: 12px;
  color: var(--fi-color-text-secondary);
}

.bullet-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--fi-radius-pill);
  background: #f2f2f2;
  font-size: 11px;
  margin: 2px 4px 2px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.product-card-small {
  border-radius: 6px;
  border: 1px solid var(--fi-color-border-subtle);
  padding: 10px 12px;
  font-size: 13px;
  background: #ffffff;
}

.product-card-small .product-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fi-color-primary);
}

/* Products tab controls (category chips + search) */

.tab-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tab-products-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-products-controls .chip-filter {
  cursor: pointer;
  background: #f3f3f3;
  color: var(--fi-color-text-secondary);
  border: 1px solid var(--fi-color-border-subtle);
}

.tab-products-controls .chip-filter.active {
  background: var(--fi-color-accent-lilac);
  color: var(--fi-color-text-primary);
  border-color: var(--fi-color-primary);
  font-weight: 600;
}

.tab-search-input {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: var(--fi-radius-pill);
  border: 1px solid var(--fi-color-border-subtle);
  min-width: 180px;
}

.tab-search-input:focus {
  outline: none;
  border-color: var(--fi-color-support-misty);
  box-shadow: 0 0 0 2px rgba(170, 190, 192, 0.4);
}

@media (max-width: 900px) {
  .tab-header-row {
    flex-direction: column;
  }

  .tab-products-controls {
    width: 100%;
  }

  .tab-search-input {
    flex: 1;
    width: 100%;
  }
}

/* Inline RFQ on supplier */

.rfq-form label {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.rfq-form input,
.rfq-form textarea,
.rfq-form select {
  width: 100%;
  padding: 7px;
  font-size: 12px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
}

.rfq-form textarea {
  min-height: 70px;
  resize: vertical;
}

.rfq-row {
  display: flex;
  gap: 10px;
}

.rfq-row > div {
  flex: 1;
}

/* Certifications & Compliance layout */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
  box-shadow: var(--fi-shadow-card);
  padding: 10px 12px;
  font-size: 12px;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cert-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 138, 123, 0.08);
  color: var(--fi-color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.cert-title {
  font-weight: 600;
  color: var(--fi-color-text-primary);
  font-size: 13px;
}

.cert-body {
  margin-top: 4px;
}

.cert-row {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}

.cert-label {
  font-weight: 600;
  color: var(--fi-color-text-secondary);
}

.cert-value {
  color: var(--fi-color-text-primary);
}

.cert-footer {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-link {
  padding: 4px 0;
  font-size: 12px;
  text-align: left;
}

.cert-note {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}


/* ===========================
   RFQ FLOW PAGE (rfq.html)
   =========================== */

.page {
  padding: 32px 16px 40px;
}

.rfq-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--fi-color-surface-card);
  padding: 24px 28px 26px;
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
}

.rfq-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.rfq-subtitle {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  margin-bottom: 16px;
}

/* Stepper */

.stepper {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fi-color-text-muted);
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--fi-color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-label {
  white-space: nowrap;
}

.step.active .step-circle {
  border-color: var(--fi-color-primary);
  background: var(--fi-color-primary);
  color: #ffffff;
}

.step.active .step-label {
  color: var(--fi-color-primary);
  font-weight: 600;
}

.step.done .step-circle {
  border-color: var(--fi-color-primary);
  color: var(--fi-color-primary);
}

.stepper-meta {
  font-size: 12px;
  color: var(--fi-color-text-muted);
  margin-bottom: 16px;
}

/* Fields and layout inside steps */

.rfq-step {
  display: none;
}

.rfq-step.active {
  display: block;
}

.rfq-step label {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 4px;
  color: var(--fi-color-text-primary);
}

.rfq-step input,
.rfq-step select,
.rfq-step textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
  outline: none;
  background: #ffffff;
}

.rfq-step input:focus,
.rfq-step select:focus,
.rfq-step textarea:focus {
  border-color: var(--fi-color-support-misty);
  box-shadow: 0 0 0 2px rgba(170, 190, 192, 0.5);
}

.rfq-step textarea {
  min-height: 90px;
  resize: vertical;
}

/* Shared helper text & errors */

.help-text {
  font-size: 12px;
  color: var(--fi-color-text-muted);
  margin-top: 4px;
}

.error-text {
  display: none;
}


/* Field row for 2-column layout */

.field-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.field-row > div {
  flex: 1;
}

/* Chips for requirement type / certifications / incoterms */

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--fi-radius-pill);
  background: #f2f2f2;
  font-size: 11px;
  margin: 2px 4px 2px 0;
}

.chip input {
  margin-right: 4px;
}

/* Checkbox inline label */

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 10px;
}

/* ADD THIS */
.checkbox-inline input {
  width: auto;
  margin: 0;
}


/* Actions row */

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.actions-right {
  display: flex;
  gap: 8px;
}

.actions .btn {
  font-size: 13px;
}

.actions .btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* Status bar */

.status-bar {
  font-size: 12px;
  margin-top: 8px;
}

.status-bar.ok {
  color: var(--fi-color-success);
}

.status-bar.err {
  color: var(--fi-color-error);
}

/* Confirmation block */

.confirmation {
  text-align: center;
}

.conf-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.conf-body {
  font-size: 13px;
  color: var(--fi-color-text-secondary);
  margin-bottom: 14px;
}

.summary-card {
  border: 1px solid var(--fi-color-support-misty);
  background: #f7f9ff;
  padding: 12px 14px;
  border-radius: var(--fi-radius-sm);
  font-size: 13px;
  text-align: left;
  margin-bottom: 16px;
}

.summary-row {
  margin-bottom: 6px;
}

.summary-label {
  font-weight: 600;
}

/* RFQ help card in step 1 */

.rfq-help-card {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid rgba(170, 190, 192, 0.5);
  background: #f3f6f7;
  font-size: 12px;
  color: var(--fi-color-text-secondary);
}

.rfq-help-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.rfq-help-list {
  padding-left: 18px;
  margin: 0;
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .page {
    padding: 20px 10px 30px;
  }

  .rfq-wrapper {
    padding: 18px 16px 20px;
  }

  .field-row {
    flex-direction: column;
  }

  .actions {
    flex-direction: row;
  }
}

/* ===========================
   FOOTER (shared)
   =========================== */

footer {
  background: #231b2e;
  color: #ffffff;
  text-align: center;
  padding: 14px 10px;
  font-size: 13px;
  margin-top: 24px;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .top-strip,
  .logo-row {
    padding: 8px 16px;
  }

  .page-wrap {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
  }

  .results-main {
    padding: 16px;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .product-actions {
    margin-top: 8px;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 16px 10px 30px;
  }

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

/* ===========================
   REFINED RESULTS CARD LAYOUT
   (Overrides earlier rules)
   =========================== */

/* Layout breathing space */
.results-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 24px; /* was 20px */
  align-items: flex-start;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px; /* was 12px */
}

/* Main product card */
.product-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  /* softer, cleaner shadow + subtle border */
  box-shadow: 0 6px 18px rgba(35, 27, 46, 0.05);
  border: 1px solid rgba(212, 208, 219, 0.7);
  padding: 16px 18px;         /* a bit more breathing room */
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 180px;
  column-gap: 16px;
  row-gap: 8px;
  font-size: 13px;
}

/* Mobile override (keeps your existing behaviour, just adds gap) */
@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    grid-template-columns: 80px minmax(0, 1fr); /* thumb + text */
  }

  .product-actions {
    margin-top: 8px;
  }
}

/* Thumbnail & info column spacing */
.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--fi-radius-sm);
  background: linear-gradient(
    135deg,
    rgba(225, 194, 240, 0.5),
    rgba(170, 190, 192, 0.6)
  );
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px; /* was 4px */
}

/* Stronger hierarchy on product name + meta */
.product-name {
  font-weight: 700;
  color: var(--fi-color-primary);
  font-size: 15px; /* slightly larger */
}

.product-meta-line {
  color: var(--fi-color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* Tag row – a bit more space below meta */
.product-tags {
  margin-top: 8px;
}

/* Actions column: tighter, aligned buttons */
.product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px; /* was 6px */
}

/* Primary/secondary buttons – same colors, but more compact */
.product-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.product-actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Left filter cards (for the new .filter-card markup) */
.filter-card {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: 0 4px 14px rgba(35, 27, 46, 0.04);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.filter-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fi-color-text-primary);
}

.filter-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item {
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
  color: var(--fi-color-text-secondary);
}

.filter-item:hover {
  color: var(--fi-color-primary);
}

/* Right-side lead cards: match product card visual style */
.lead-box {
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: 0 6px 18px rgba(35, 27, 46, 0.05);
  border: 1px solid rgba(212, 208, 219, 0.7);
  padding: 16px 18px;
  font-size: 13px;
}

/* Slightly more distance below filter bar so cards don’t feel cramped */
.filter-bar {
  margin-bottom: 20px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.product-actions .btn-call,
.product-actions .btn-view-supplier {
  width: 100%;
}

.product-rating {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #555555;
}

.product-rating-stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: #f5a623; /* browser default yellow-ish, keeps it subtle */
}

.product-rating-label {
  margin-top: 2px;
}

.filter-item {
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.filter-item:hover,
.filter-item:active,
.filter-item.active {
  color: #63347c;     /* Indigo */
  font-weight: 600;
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================
   Buyer Discovery (buyer-discovery.html)
   ============================ */

.buyer-discovery-page {
  background-color: #f5f5f4;
  padding: 0 0 48px;
}

/* Hero band on buyer discovery */
.bd-hero {
  background-color: #E1C2F0; /* Lilac */
  padding: 40px 0 48px;
}

/* force vertical stacking */
.bd-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* left aligned */
}

/* explicitly make them block so they sit on separate lines */
.bd-hero-title,
.bd-hero-subtitle {
  display: block;
}

.bd-hero-title {
  font-size: 40px;      /* bigger Digaro */
  font-weight: 700;
  margin: 0 0 8px;
  color: #3b2250;
}

.bd-hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: #3b2250;
}

.bd-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.bd-header {
  margin-bottom: 16px;
}

.bd-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bd-subtitle {
  color: #555;
  font-size: 14px;
}

.bd-error-banner {
  background: #ffe8e8;
  color: #742a2a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Steps */

.bd-stepper {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.bd-stepper .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.bd-stepper .step-index {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #f9fafb;
}

.bd-stepper .step.active .step-index {
  background: #63347c;
  border-color: #63347c;
  color: #fff;
}

.bd-stepper .step.done .step-index {
  background: #e1c2f0;
  border-color: #63347c;
  color: #63347c;
}

.bd-stepper .step-label {
  font-weight: 500;
}

.stepper-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 16px;
}

/* Step blocks */

.bd-step {
  display: none;
}

.bd-step.active {
  display: block;
}

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

@media (max-width: 768px) {
  .bd-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
}

.required-star {
  color: #d12c2c;
}

.text-input,
.select-input {
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.select-input.small {
  padding: 4px 8px;
  font-size: 13px;
}

.field-hint {
  font-size: 12px;
  color: #777;
}

.error-text {
  font-size: 12px;
  color: #b91c1c;
}

/* Chips reuse existing chip styling; just ensure these classes behave nicely */

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-selectable input {
  display: none;
}

.chip-selectable span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.chip-selectable input:checked + span {
  border-color: #63347c;
  background: #f5ecfc;
  color: #2b2234;
}

/* Step 1 actions */

.bd-actions-row {
  margin-top: 20px;
}

/* Buttons (reuse your existing .btn styles; here are safe additions) */

.btn.small {
  padding: 4px 10px;
  font-size: 12px;
}

.btn.full-width {
  width: 100%;
}

/* Summary bar */

.bd-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f5f3ff;
}

.bd-summary-heading {
  font-size: 16px;
  font-weight: 600;
}

.bd-summary-sub {
  font-size: 13px;
  color: #555;
}

.bd-summary-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bd-inline-control {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

/* Filter bar */

.bd-filter-bar {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bd-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  padding: 4px 10px;
  background: #fff;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #63347c;
  cursor: pointer;
}

/* Layout */

.bd-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 16px;
}

@media (max-width: 1024px) {
  .bd-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bd-filters-sidebar,
.bd-sales-tools {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
}

.bd-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bd-filter-block {
  margin-bottom: 12px;
}

.bd-filter-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.bd-filters-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--fi-color-border-subtle);
}

.bd-filters-actions .btn.btn-primary {
  flex: 1;
}

.bd-filters-actions .link-button {
  white-space: nowrap;
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: center;   /* checkbox on the left, text vertically centered */
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}

.checkbox-label-text {
  white-space: nowrap;   /* keep the whole sentence on a single line */
}


.bd-main-list {
  min-height: 200px;
}

.bd-empty-state {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #777;
}

.bd-buyer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buyer card */

/* Buyer card – 3-column grid with hover + selected states */

.bd-buyer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--fi-radius-md);
  border: 1px solid #e0e0e0;
  background: var(--fi-color-surface-card, #fff);
  box-shadow: var(--fi-shadow-card, 0 4px 14px rgba(35, 27, 46, 0.04));
  transition: background-color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.bd-buyer-card:hover {
  background: rgba(225, 194, 240, 0.18); /* soft lilac hover */
  box-shadow: 0 10px 30px rgba(35, 27, 46, 0.12);
}

.bd-buyer-card.is-selected {
  border-color: var(--fi-color-primary, #63347c);
}


.bd-buyer-select {
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.bd-buyer-main {
  cursor: pointer;
}

.bd-buyer-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.bd-buyer-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.bd-buyer-import-line {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.bd-buyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.small-chip {
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  padding: 2px 8px;
  font-size: 11px;
  background: #f9fafb;
}

.hs-chip {
  border-color: #63347c;
}

.bd-buyer-suppliers {
  font-size: 12px;
  color: #444;
}

.bd-buyer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.icon-button {
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  padding: 4px 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

/* Sales tools */

.bd-sales-meta {
  font-size: 13px;
  margin-bottom: 8px;
}

.bd-sales-hint {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}

/* Drawer */

.bd-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: none;
  justify-content: flex-end;
  z-index: 40;
}

.bd-drawer {
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  padding: 16px 18px;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 180ms ease-out;
}

.bd-drawer.is-open {
  transform: translateX(0);
}


.bd-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bd-drawer-meta {
  font-size: 12px;
  color: #555;
}

.bd-drawer-body {
  overflow-y: auto;
}

.bd-drawer-section {
  margin-bottom: 12px;
}

.bd-drawer-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bd-drawer-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fi-color-text-muted, #6b7280);
  margin-bottom: 4px;
}

.bd-drawer-note {
  font-size: 11px;
  color: var(--fi-color-text-muted, #6b7280);
  margin-bottom: 10px;
}

/* Metrics row at top of Buyer profile drawer */

.bd-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bd-metric-tile {
  background: #f3f6f7;
  border-radius: 10px;
  padding: 8px 10px;
}

.bd-metric-label {
  font-size: 11px;
  color: var(--fi-color-text-muted, #6b7280);
  margin-bottom: 2px;
}

.bd-metric-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fi-color-text-primary, #111827);
}

/* Details list layout */

.bd-details-list {
  margin: 0;
  padding: 0;
}

.bd-details-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.bd-details-row:last-child {
  border-bottom: none;
}

.bd-details-row dt {
  font-weight: 500;
  color: var(--fi-color-text-muted, #6b7280);
}

.bd-details-row dd {
  margin: 0;
  color: var(--fi-color-text-primary, #111827);
}

.bd-details-empty {
  font-size: 12px;
  color: var(--fi-color-text-muted, #9ca3af);
}

/* Exporters list in Buyer profile drawer */

.bd-exporters-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bd-exporter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.bd-exporter-row:last-child {
  border-bottom: none;
}

.bd-exporter-name {
  font-weight: 500;
}

.bd-exporters-more {
  margin-top: 6px;
  font-size: 12px;
}

/* Bottom actions area in Contact details drawer */

.bd-drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.bd-drawer-actions .btn {
  flex: 1;
  justify-content: center;
}


.bd-hs-chips,
.bd-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Buyer Discovery – new layout */

.page.buyer-discovery-page {
  padding-bottom: 32px;
}

/* Sticky summary bar at top of card */
.buyer-summary-bar {
  position: sticky;
  top: 72px; /* adjust if your global header height is different */
  z-index: 20;
  background: var(--fi-color-surface-card);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--fi-shadow-soft);
}

.buyer-summary-bar .summary-main {
  flex: 1;
}

.buyer-summary-bar .summary-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.buyer-summary-bar .summary-subtitle {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  margin: 0;
}

.buyer-summary-bar .summary-controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* 3-column grid: filters / results / profile */
.buyer-discovery-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1.6fr) 320px;
  gap: 16px;
  align-items: flex-start;
}

/* Left filters column */
.buyer-filters {
  background: var(--fi-color-surface-subtle);
  border-radius: 12px;
  padding: 12px 12px 16px;
  border: 1px solid var(--fi-color-border-subtle);
}

/* Center results column */
.buyer-results {
  min-height: 240px;
}

/* Right profile panel column */
.buyer-profile-panel {
  background: var(--fi-color-surface-card);
  border-radius: 12px;
  border: 1px solid var(--fi-color-border-subtle);
  padding: 16px;
  box-shadow: var(--fi-shadow-soft);
}

.buyer-profile-panel[aria-hidden="true"] {
  opacity: 0.4;
}

/* Sticky bottom selection bar */
.buyer-selection-bar {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
  background: var(--fi-color-surface-card);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.buyer-selection-bar.is-hidden {
  display: none;
}

/* Responsive: stack columns on tablet/mobile */
@media (max-width: 900px) {
  .buyer-summary-bar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .buyer-profile-panel {
    display: none; /* simplest for V1 on mobile */
  }

  .buyer-selection-bar {
    border-radius: 0;
  }
}

/* ===========================
   Buyer Discovery – layout & bulk toolbar
   =========================== */

.buyer-discovery-page .bd-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

/* Bulk toolbar above buyer cards */

.bd-bulk-toolbar {
  display: none; /* JS toggles to flex when there are results */
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin: 12px 0 12px;
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  font-size: 13px;
  color: var(--fi-color-text-secondary);
}

.bd-bulk-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bd-bulk-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bd-bulk-count {
  font-size: 12px;
  color: var(--fi-color-text-muted);
  white-space: nowrap; /* keeps “Selected buyers: 0” on one line */
}

.bd-bulk-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-bulk-right .btn-primary,
.bd-bulk-right .btn-secondary {
  padding: 7px 16px;
  border-radius: var(--fi-radius-pill);
  white-space: nowrap;      /* buttons don’t break into two lines */
}

/* Mobile: stack columns + toolbar content nicely */

@media (max-width: 900px) {
  .buyer-discovery-page .bd-layout {
    grid-template-columns: 1fr;
  }

  .bd-bulk-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bd-bulk-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Buyer Discovery – make main card wider on desktop */
.buyer-discovery-page .page-wrap {
  max-width: 100%;      /* use full viewport width */
}

.buyer-discovery-page .bd-card {
  width: 100%;          /* let the white card span the whole container */
}


.bd-dl {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.bd-dl-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.bd-dl-label {
  color: var(--fi-color-text-muted);
}

.bd-dl-value {
  color: var(--fi-color-text-primary);
}

.bd-contact-note {
  font-size: 12px;
  color: var(--fi-color-text-muted);
  margin-bottom: 12px;
}

.bd-drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ===== Auth layout ===== */

.auth-card {
  max-width: 900px;
  margin: 40px auto;
}

.auth-card-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.auth-left {
  flex: 3;
}

.auth-right {
  flex: 2;
  border-left: 1px solid #e0e0e0;
  padding-left: 24px;
}

.auth-side-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-side-list {
  margin-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

/* Stack on mobile */
@media (max-width: 800px) {
  .auth-card-inner {
    flex-direction: column;
  }

  .auth-right {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-left: 0;
    padding-top: 16px;
  }
}

/* ===========================
   DASHBOARDS – shared styles
   Seller & Buyer
   =========================== */

.dashboard-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}

.dash-sidebar {
  width: 260px;
  background: var(--fi-color-surface-subtle);
  border-radius: 12px;
  border: 1px solid var(--fi-color-border-subtle);
  padding: 16px 16px 18px;
}

.dash-sidebar-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15); /* soft lilac */
  color: var(--fi-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.dash-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-user-name {
  font-size: 14px;
  font-weight: 600;
}

.dash-user-role {
  font-size: 12px;
  color: var(--fi-color-text-muted);
}

.dash-sidebar-meta {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-bottom: 10px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.dash-nav-item {
  width: 100%;
  text-align: left;
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fi-color-text-secondary);
}

.dash-nav-item span {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

.dash-nav-item.is-active {
  background: rgba(139, 92, 246, 0.09);
  color: var(--fi-color-primary);
  font-weight: 600;
}

.dash-nav-item:hover {
  background: rgba(243, 244, 246, 0.9);
}

/* Main area */

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero card */

.dash-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(
    90deg,
    rgba(225, 194, 240, 0.35),
    #ffffff
  );
  border-radius: 14px;
}

.dash-hero-main {
  max-width: 60%;
}

.dash-hero-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-hero-sub {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  margin-bottom: 8px;
}

.dash-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  font-size: 11px;
  color: var(--fi-color-success-strong);
}

.dash-hero-chip button {
  border: none;
  background: transparent;
  font-size: 11px;
  color: var(--fi-color-primary);
  cursor: pointer;
  padding: 0;
}

.dash-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.dash-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dash-stat {
  min-width: 90px;
}

.dash-stat-label {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-bottom: 2px;
}

.dash-stat-value {
  font-size: 16px;
  font-weight: 700;
}

/* Buttons row inside hero */

.dash-hero-actions {
  display: flex;
  gap: 8px;
}

/* Grid below hero */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: flex-start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Generic dashboard cards */

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.dash-card-title {
  font-size: 14px;
  font-weight: 600;
}

.dash-card-subtitle {
  font-size: 12px;
  color: var(--fi-color-text-muted);
}

.dash-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dash-chip-row .chip {
  font-size: 11px;
}

/* Table-style rows */

.dash-list-header,
.dash-list-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.6fr 0.7fr 0.7fr;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}

.dash-list-header {
  font-weight: 600;
  color: var(--fi-color-text-muted);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  padding-bottom: 5px;
  margin-bottom: 4px;
}

.dash-list-row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(243, 244, 246, 0.9);
}

.dash-list-row:last-child {
  border-bottom: none;
}

.dash-list-row.is-new {
  background: rgba(243, 232, 255, 0.3);
}

/* Status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: var(--fi-color-text-secondary);
}

.status-pill--new {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(237, 233, 254, 0.9);
  color: var(--fi-color-primary);
}

.status-pill--progress {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(254, 243, 199, 0.8);
  color: #92400e;
}

.status-pill--closed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(209, 250, 229, 0.8);
  color: #047857;
}

/* Task list */

.dash-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.dash-task-label {
  flex: 1;
}

.dash-task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Readiness list */

.readiness-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.readiness-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.readiness-label {
  font-weight: 500;
}

.readiness-status {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

.readiness-status.completed {
  color: var(--fi-color-success-strong);
}

.readiness-status.completed::before {
  content: "● ";
  color: var(--fi-color-success-strong);
}

.readiness-status.pending::before {
  content: "○ ";
}

/* Simple insights list */

.dash-insights-list {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0;
  font-size: 12px;
}

/* Smaller inline buttons */

.btn.btn-ghost-small {
  background: transparent;
  border: 1px solid var(--fi-color-border-subtle);
  color: var(--fi-color-text-secondary);
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
}

/* Products grid inside dashboard */

.dashboard-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.dashboard-product-card {
  border-radius: 10px;
  border: 1px solid var(--fi-color-border-subtle);
  padding: 8px 10px;
  background: #ffffff;
}

.dashboard-product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.dashboard-product-meta {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

/* Buyer-side variants can reuse everything above */

/* Responsive tweaks */

@media (max-width: 960px) {
  .dashboard-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    order: -1;
  }

  .dash-hero-card {
    flex-direction: column;
    gap: 10px;
  }

  .dash-hero-main {
    max-width: 100%;
  }

  .dash-hero-side {
    align-items: flex-start;
  }

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

  .dash-list-header,
  .dash-list-row {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
  }

  .dash-list-header > :nth-child(n + 4),
  .dash-list-row > :nth-child(n + 4) {
    display: none;
  }
}

/* Show only one onboarding step at a time */
.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
}

/* ===========================
   Buyer dashboard layout
   =========================== */

.dashboard-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}

.dash-sidebar {
  width: 260px;
  background: var(--fi-color-surface-subtle, #faf7ff);
  border-radius: 12px;
  border: 1px solid var(--fi-color-border-subtle);
  padding: 16px 16px 18px;
}

.dash-sidebar-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  color: var(--fi-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.dash-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-user-name {
  font-size: 14px;
  font-weight: 600;
}

.dash-user-role {
  font-size: 12px;
  color: var(--fi-color-text-muted);
}

.dash-sidebar-meta {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-bottom: 10px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.dash-nav-item {
  width: 100%;
  text-align: left;
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fi-color-text-secondary);
}

.dash-nav-item span {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

.dash-nav-item.is-active {
  background: rgba(129, 140, 248, 0.12);
  color: var(--fi-color-primary);
  font-weight: 600;
}

.dash-nav-item:hover {
  background: rgba(243, 244, 246, 0.9);
}

/* Main panel */

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero snapshot card */

.dash-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(191, 219, 254, 0.7),
    #ffffff
  );
}

.dash-hero-main {
  max-width: 60%;
}

.dash-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-hero-sub {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  margin-bottom: 4px;
}

.dash-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.dash-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dash-stat {
  min-width: 90px;
}

.dash-stat-label {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-bottom: 2px;
}

.dash-stat-value {
  font-size: 16px;
  font-weight: 700;
}

.dash-hero-actions {
  display: flex;
  gap: 8px;
}

/* Grid under hero */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: flex-start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card headers */

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.dash-card-title {
  font-size: 14px;
  font-weight: 600;
}

.dash-card-subtitle {
  font-size: 12px;
  color: var(--fi-color-text-muted);
}

.dash-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dash-chip-row .chip {
  font-size: 11px;
}

/* RFQ table-style list */

.dash-list-header,
.dash-list-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr 0.7fr;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}

.dash-list-header {
  font-weight: 600;
  color: var(--fi-color-text-muted);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  padding-bottom: 5px;
  margin-bottom: 4px;
}

.dash-list-row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(243, 244, 246, 0.9);
}

.dash-list-row:last-child {
  border-bottom: none;
}

.dash-list-row.is-new {
  background: rgba(219, 234, 254, 0.45);
}

/* Status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: var(--fi-color-text-secondary);
}

.status-pill--new {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.status-pill--progress {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(254, 243, 199, 0.85);
  color: #92400e;
}

.status-pill--closed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(209, 250, 229, 0.85);
  color: #047857;
}

/* Activity list */

.dash-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.dash-activity-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(243, 244, 246, 0.9);
}

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

.dash-activity-main {
  margin-bottom: 2px;
}

.dash-activity-meta {
  color: var(--fi-color-text-muted);
}

/* Shortlisted / Recommended exporters */

.dash-shortlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortlist-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--fi-color-border-subtle);
  background: #ffffff;
}

.shortlist-main {
  flex: 1;
}

.shortlist-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.shortlist-meta {
  font-size: 11px;
}

/* Small ghost button */

.btn.btn-ghost-small {
  background: transparent;
  border: 1px solid var(--fi-color-border-subtle);
  color: var(--fi-color-text-secondary);
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .dashboard-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    order: -1;
  }

  .dash-hero-card {
    flex-direction: column;
    gap: 10px;
  }

  .dash-hero-main {
    max-width: 100%;
  }

  .dash-hero-side {
    align-items: flex-start;
  }

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

  .dash-list-header,
  .dash-list-row {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
  }

  .dash-list-header > :nth-child(n + 4),
  .dash-list-row > :nth-child(n + 4) {
    display: none;
  }
}

/* ===========================
   ARTICLE PAGE (export guide)
   =========================== */

.article-page .page-wrap.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 24px 40px 40px;
  align-items: flex-start;
}

.export-guide-page .article-card {
  /* reuses .card base styles, just tweaks spacing */
  width: 100%;
  max-width: 100%;
}

.article-breadcrumb {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-bottom: 8px;
}

.article-breadcrumb a {
  color: var(--fi-color-text-muted);
}

.article-title {
  font-size: 24px;
  margin-bottom: 6px;
}

.article-subtitle {
  font-size: 14px;
  color: var(--fi-color-text-secondary);
  margin-bottom: 10px;
}

.article-meta {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.article-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #f3f6f7;
  border-radius: var(--fi-radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.article-inline-cta-copy {
  font-size: 13px;
  font-weight: 600;
  color: var(--fi-color-text-secondary);
}

.article-divider {
  border: none;
  border-top: 1px solid var(--fi-color-border-subtle);
  margin: 10px 0 16px;
}

.article-section {
  margin-bottom: 20px;
}

.article-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.article-section h3 {
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.article-section p {
  font-size: 13px;
  margin-bottom: 8px;
}

.article-section ul,
.article-section ol {
  margin: 6px 0 10px;
  padding-left: 20px;
  font-size: 13px;
}

.article-section-final {
  border-top: 1px dashed var(--fi-color-border-subtle);
  padding-top: 12px;
}

.article-final-cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sidebar cards */

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-cta-card .article-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fi-color-text-muted);
  margin-bottom: 4px;
}

.article-cta-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.article-cta-copy {
  font-size: 13px;
  color: var(--fi-color-text-secondary);
  margin-bottom: 10px;
}

.article-toc-card .card-title {
  margin-bottom: 6px;
}

.article-toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.article-toc-list li {
  margin-bottom: 4px;
}

.article-toc-list a {
  color: var(--fi-color-primary);
  text-decoration: none;
}

.article-toc-list a:hover {
  text-decoration: underline;
}

/* Responsive: stack columns on mobile */

@media (max-width: 900px) {
  .article-page .page-wrap.article-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 32px;
  }

  .article-sidebar {
    order: -1; /* show sidebar (TOC + CTA) above article on mobile */
  }
}

/* ===========================
   EXPORT GUIDE ARTICLE LAYOUT
   (how-to-find-foreign-buyers-for-export-from-india.html)
   =========================== */

/* Let this page use full width; inner grid will control reading width */
.export-guide-page .page {
  max-width: none;
}

/* Main article layout: 2-column grid with sidebar on the left */
/* - Wider overall grid (less grey on left/right) */
/* - Narrower sidebar, wider article column */
.export-guide-page .article-layout {
  max-width: 1280px;              /* was 1120px – stretches the white area */
  margin: 0 auto;
  padding: 24px 16px 40px;        /* was 24px 24px 40px – less side padding */
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr); /* was 300px – smaller sidebar */
  grid-template-areas: "sidebar article";
  gap: 20px;                      /* was 24px – slightly tighter gap */
}


/* Sidebar column: “Create your free exporter account” + “In this guide” */
.export-guide-page .guide-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.export-guide-page .guide-sidebar .card {
  width: 100%;
}

/* Article column: main reading area */
.export-guide-page .guide-article {
  grid-area: article;
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 24px 24px 28px;
  font-size: 16px;       /* bigger body text for reading */
  line-height: 1.65;     /* more relaxed line spacing */
}

/* Ensure the article card fills its column */
.export-guide-page .article-card {
  width: 100%;
  max-width: 100%;
}

/* Article typography */

.export-guide-page .guide-article .article-title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}

.export-guide-page .guide-article h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  font-weight: 700;
}

.export-guide-page .guide-article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.export-guide-page .guide-article h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 6px;
}

.export-guide-page .guide-article p {
  margin: 0 0 12px;
}

.export-guide-page .guide-article ul,
.export-guide-page .guide-article ol {
  margin: 0 0 12px 1.2rem;
}

.export-guide-page .guide-article li {
  margin: 0 0 6px;
}

/* Metadata line under the title */
.export-guide-page .guide-article .article-meta {
  font-size: 13px;
  color: var(--fi-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

/* Inline CTA strip inside the article */
.export-guide-page .guide-article .article-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 16px 0 20px;
  background: #f3edf7; /* subtle lilac tint */
  border-radius: var(--fi-radius-md);
}

.export-guide-page .guide-article .article-inline-cta-copy {
  font-weight: 600;
}

/* Horizontal rule between intro and body */
.export-guide-page .guide-article .article-divider {
  margin: 16px 0 20px;
}

/* ===========================
   RESPONSIVE BEHAVIOUR
   =========================== */

@media (max-width: 1199px) {
  .export-guide-page .article-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  /* Stack: article first, then sidebar cards */
  .export-guide-page .article-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "article"
      "sidebar";
    padding: 16px 16px 32px;
  }

  .export-guide-page .guide-article {
    padding: 20px 16px 24px;
  }
}

/* === Export guide article page – ultra-wide canvas, minimal grey on sides === */
.article-page .page-wrap {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

/* Two-column layout: ARTICLE on the LEFT, sidebar cards on the RIGHT */
.article-page .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px; /* wide article, narrower sidebar */
  grid-template-areas: "article sidebar";
  gap: 20px;
  padding: 24px 16px 40px;
}

/* Attach the HTML elements to the grid areas */
.article-page .guide-article {
  grid-area: article;
}

.article-page .guide-sidebar {
  grid-area: sidebar;
}

/* ===========================
   IDENTITY + OTP GATE MODAL
   =========================== */

.identity-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none; /* becomes flex when open */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.identity-gate-overlay.is-open {
  display: flex;
}

.identity-gate-modal {
  width: 100%;
  max-width: 540px;
  background: var(--fi-color-surface-card);
  border-radius: var(--fi-radius-md);
  box-shadow: var(--fi-shadow-card);
  padding: 20px 22px 18px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.identity-gate-header {
  margin-bottom: 10px;
}

.identity-gate-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.identity-gate-subtitle {
  font-size: 13px;
  color: var(--fi-color-text-secondary);
  margin-bottom: 8px;
}

.identity-gate-stepper {
  margin-top: 6px;
}

.identity-gate-body {
  margin-top: 10px;
}

.identity-gate-step {
  display: none;
  margin-top: 6px;
}

.identity-gate-step-active {
  display: block;
}

.identity-gate-footer,
.identity-gate-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 8px;
}

.identity-gate-primary {
  min-width: 140px;
}

.identity-gate-why-link {
  font-size: 12px;
}

.identity-gate-why-text {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-top: 4px;
}

/* Reuse existing form styles where possible */
.identity-gate-step .form-field {
  margin-top: 8px;
}

.identity-gate-step .field-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.identity-gate-step .text-input,
.identity-gate-step .select-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
  background: #ffffff;
}

.identity-gate-step .text-input:focus,
.identity-gate-step .select-input:focus {
  outline: none;
  border-color: var(--fi-color-support-misty);
  box-shadow: 0 0 0 2px rgba(170, 190, 192, 0.4);
}

.identity-gate-step .field-hint {
  font-size: 11px;
  color: var(--fi-color-text-muted);
  margin-top: 2px;
}

.identity-gate-step .error-text {
  font-size: 11px;
  color: var(--fi-color-error);
  margin-top: 2px;
  min-height: 14px;
}

.identity-gate-step .status {
  font-size: 12px;
  margin-top: 6px;
}

.identity-gate-step .status.success {
  color: var(--fi-color-success);
}

.identity-gate-step .status.error {
  color: var(--fi-color-error);
}

/* Phone row */
.ig-phone-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--fi-color-text-secondary);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

/* OTP sections */
.ig-otp-section {
  margin-top: 6px;
}

.ig-otp-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-otp-title {
  font-size: 13px;
  font-weight: 600;
}

.ig-otp-meta {
  font-size: 11px;
  color: var(--fi-color-text-muted);
}

.ig-otp-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ig-otp-input {
  width: 34px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-color-border-subtle);
}

.ig-otp-input:focus {
  outline: none;
  border-color: var(--fi-color-primary);
  box-shadow: 0 0 0 2px rgba(225, 194, 240, 0.7);
}

.ig-otp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.ig-otp-status {
  font-size: 11px;
  color: var(--fi-color-text-secondary);
}

.ig-otp-resend {
  font-size: 11px;
}

.ig-otp-resend[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Divider */
.ig-divider {
  margin: 10px 0;
  border: none;
  border-top: 1px solid var(--fi-color-border-subtle);
}

/* Bottom row */
.identity-gate-bottom-row .link-button {
  font-size: 12px;
}

@media (max-width: 600px) {
  .identity-gate-modal {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .identity-gate-footer,
  .identity-gate-bottom-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .identity-gate-primary {
    width: 100%;
  }

  .ig-phone-row {
    grid-template-columns: 1.2fr 2fr;
  }
}

.ig-otp-section--email-summary .ig-otp-header {
  margin-top: 4px;
}

