@import url('fonts.css');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary-blue:   #1A3FBF;
  --primary-hover:  #1534a8;
  --dark-bg:        #111418;
  --light-bg:       #f8f9fa;
  --green-dark:     #0b6b52;
  --green-light:    #e4f5ef;
  --blue-light:     #eef3ff;
  --border:         #E4E6ED;
  --text-muted:     #6B6F7E;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --sidebar-w:      240px;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, .serif-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  color: #111;
}

/* ============================================================
   COLOUR UTILITIES
   ============================================================ */
.text-primary  { color: var(--primary-blue) !important; }
.bg-primary    { background-color: var(--primary-blue) !important; }
.bg-pale-blue  { background-color: #f4f7fe; }
.bg-pale-green { background-color: #f0fdf4; }
.bg-dark-green { background-color: #115e59; }
.text-muted-custom { color: #6b7280; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  -webkit-appearance: none;
  appearance: none;
}

.btn-rounded {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  color: #fff;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge-tag {
  background-color: var(--primary-blue);
  color: #fff;
  border-radius: 50px;
  font-size: .75rem;
  padding: 5px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-tag-light {
  background-color: #e2e8f0;
  color: #475569;
  border-radius: 50px;
  font-size: .75rem;
  padding: 5px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.verification-badge {
  background-color: var(--green-light);
  color: #137333;
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============================================================
   NAVBAR / HEADER
   ============================================================ */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem !important;
  color: #0F1118 !important;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: #4b5563 !important;
  font-size: .875rem;
  transition: color .15s;
}
.nav-link:hover,
.nav-link.active { color: var(--primary-blue) !important; }

/* Language switcher */
.lang-switcher {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  display: flex;
  gap: 2px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all .15s;
}

.lang-btn.active,
.lang-btn[data-active="true"] {
  background: var(--primary-blue);
  color: #fff;
}

/* Navbar logo icon */
.navbar-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary-blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sign in btn */
.btn-signin {
  background: transparent;
  color: #3A3D4A;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 14px;
}
.btn-signin:hover {
  background: #f9fafb;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* ============================================================
   HERO SECTION (index.html)
   ============================================================ */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #EEF3FF 0%, #fff 55%);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}

.hero-section > .container { position: relative; z-index: 1; }

.hero-heading {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-heading em {
  color: var(--primary-blue);
  font-style: italic;
}

.hero-subheading {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Pulse badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 8px 14px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  display: inline-block;
  animation: bm-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes bm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* Stats strip inside hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: #111;
  display: block;
}

.hero-stat-label {
  font-size: .73rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* Supplier card panel (right column hero) */
.verified-panel {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
  border: 1px solid #f3f4f6;
}

.verified-panel-header {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.supplier-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  transition: all .2s;
}

.supplier-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(26, 63, 191, .08);
}

.supplier-item:last-child { margin-bottom: 0; }

/* ============================================================
   DARK STATS BAR
   ============================================================ */
.dark-stats-bar {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 2.5rem 0;
}

.dark-stats-bar h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: .5rem;
  color: #fff;
}

.dark-stats-bar p {
  font-size: .9rem;
  color: #9ca3af;
  margin-bottom: 0;
}

/* ============================================================
   EXPERIENCE / TWO-CARDS SECTION
   ============================================================ */
.two-cards-section {
  padding: 6rem 0;
  background-color: #fff;
}

.experience-card {
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  border: none;
  height: 100%;
}

.experience-card.buyer  { background-color: var(--blue-light); }
.experience-card.seller { background-color: var(--green-light); }

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.buyer  .icon-box { background-color: var(--primary-blue); color: #fff; }
.seller .icon-box { background-color: #137333;            color: #fff; }

.experience-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.experience-card p { color: #4b5563; margin-bottom: 2rem; }

.experience-link { font-weight: 600; text-decoration: none; }
.buyer  .experience-link { color: var(--primary-blue); }
.seller .experience-link { color: #137333; }
.experience-link:hover { text-decoration: underline; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  transition: all .3s;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background-color: #f3f4f6;
  color: var(--primary-blue);
}

/* ============================================================
   TESTIMONIAL SECTION
   ============================================================ */
.testimonial-section {
  padding: 6rem 0;
  background-color: var(--dark-bg);
  color: #fff;
  text-align: center;
}

.testimonial-text {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #f3f4f6;
}

.testimonial-author { font-size: 1rem; color: #9ca3af; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 6rem 0;
  background-color: var(--primary-blue);
  color: #fff;
  text-align: center;
}

.cta-heading {
  font-family: 'Instrument Serif', serif;
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  padding: 5rem 0 2rem;
  background-color: #fff;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F1118;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 26px;
  height: 26px;
  background: var(--primary-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #111;
  margin-bottom: 1.25rem;
}

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

.footer-links li { margin-bottom: .75rem; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--primary-blue); }

.footer-trust-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}

.footer-bottom a:hover { color: var(--primary-blue); }

/* ============================================================
   STEPPER COMPONENT
   ============================================================ */
.stepper-container {
  border-left: 2px solid #e5e7eb;
  padding-left: 2rem;
  margin-left: 1.25rem;
  margin-top: 1rem;
}

.step-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.step-item:last-child { margin-bottom: 0; }
.step-item:last-child .step-content { border-bottom: none !important; }

.step-circle {
  position: absolute;
  left: -3.25rem;
  top: -4px;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--blue-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 6px solid #fff;
  font-size: .9rem;
}

.step-circle-green {
  background-color: #dcfce7;
  color: #166534;
}

/* HOW-IT-WORKS inline steppers */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: .9rem;
}
.step-num.blue  { background: var(--blue-light);  color: var(--primary-blue); }
.step-num.green { background: var(--green-light);  color: var(--green-dark);   }

.step-connector {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
  margin: 4px auto;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item-wrap .faq-toggle { cursor: pointer; }
.faq-item-wrap .faq-icon   { transition: transform .2s; }
.faq-item-wrap.open .faq-icon { transform: rotate(45deg); }

.note-blue {
  background: var(--blue-light);
  border-left: 3px solid #b8caff;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #3a3d4a;
}

.note-green {
  background: var(--green-light);
  border-left: 3px solid #a3dec8;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #3a3d4a;
}

/* ============================================================
   COMPARISON TABLE (how-it-works, escrow)
   ============================================================ */
.comparison-head { font-weight: 500; font-size: .85rem; }
.comparison-head.highlight { background: var(--blue-light); color: var(--primary-blue); }
.comparison-cell.highlight { background: var(--blue-light); }
.comparison-cell.ok  { color: var(--green-dark); font-weight: 600; }
.comparison-cell.no  { color: #aa2e1f; }

/* ============================================================
   HOW-IT-WORKS PAGE
   ============================================================ */
.hiw-hero {
  padding: 5rem 0 3rem;
  background: var(--light-bg);
  text-align: center;
}

.hiw-hero .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero      { padding: 5rem 0 3rem; background: var(--light-bg); }
.timeline-item   { position: relative; padding-left: 2.5rem; margin-bottom: 2.5rem; }
.timeline-dot    { position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-blue); }
.timeline-line   { position: absolute; left: 6px; top: 1.5rem; bottom: -2.5rem; width: 2px; background: var(--border); }
.timeline-item:last-child .timeline-line { display: none; }

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow .2s;
}
.value-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { padding: 5rem 0 3rem; background: var(--light-bg); }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero  { padding: 5rem 0 3rem; background: var(--light-bg); text-align: center; }

.pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 12px 32px rgba(26, 63, 191, .08);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 28px rgba(26, 63, 191, .12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  letter-spacing: -2px;
  line-height: 1;
  color: #111;
}

.pricing-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: .875rem;
}

.pricing-feature-row:last-child { border-bottom: none; }

/* ============================================================
   LEGAL PAGES (terms, privacy, escrow-agreement)
   ============================================================ */
.legal-hero   { padding: 5rem 0 3rem; background: var(--light-bg); }
.legal-toc    { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.legal-toc a  { color: var(--text-muted); text-decoration: none; display: block; padding: .35rem 0; font-size: .875rem; transition: color .15s; }
.legal-toc a:hover { color: var(--primary-blue); }

.legal-section { padding: 4rem 0; }
.legal-section h2 { font-size: 1.4rem; margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.legal-section p  { color: #4b5563; line-height: 1.75; }

/* ============================================================
   REGISTER PAGES
   ============================================================ */
.reg-wrapper  { min-height: 100vh; display: flex; }

.reg-left {
  flex: 0 0 42%;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.reg-left-buyer {
  background: linear-gradient(140deg, #1a3ac5 0%, #0f2490 100%);
  color: #fff;
}

.reg-left-manufacturer {
  background: linear-gradient(140deg, #0b6b52 0%, #064535 100%);
  color: #fff;
}

.reg-left::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, .04);
  border-radius: 50%;
}

.reg-left::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.reg-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.reg-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.reg-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.reg-trust-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.reg-trust-title { font-size: .88rem; font-weight: 600; color: #fff; }
.reg-trust-sub   { font-size: .78rem; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.reg-copyright   { font-size: .78rem; color: rgba(255, 255, 255, .4); position: relative; z-index: 1; }

.reg-right {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
}

.reg-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .06);
  width: 100%;
  max-width: 540px;
}

.reg-step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.reg-step-line      { height: 1px; flex: 1; background: #e5e7eb; }
.reg-step-line.done { background: var(--primary-blue); }

.reg-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.reg-step.done    { background: var(--primary-blue); color: #fff; }
.reg-step.current { background: var(--primary-blue); color: #fff; box-shadow: 0 0 0 4px #d0dbff; }
.reg-step.future  { background: #f3f4f6; color: #9ca3af; }

.plan-option {
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all .18s;
}
.plan-option:hover       { border-color: #b8c7ff; }
.plan-option.selected    { border-color: var(--primary-blue); background: #f0f4ff; }
.plan-option.selected-green { border-color: var(--green-dark); background: #f0faf5; }

.plan-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 6px;
  padding: .2rem .5rem;
}
.plan-badge.buyer { background: var(--blue-light); color: var(--primary-blue); }
.plan-badge.featured-buyer { background: var(--primary-blue); color: #fff; }
.plan-badge.manufacturer   { background: var(--green-light);  color: var(--green-dark); }
.plan-badge.featured-mfr   { background: var(--green-dark);   color: #fff; }

/* ============================================================
   DASHBOARD LAYOUT (buyer + manufacturer)
   ============================================================ */
.dash-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-buyer        { background: #111418; }
.sidebar-manufacturer { background: #064535; }

.sb-logo {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sb-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-logo-icon.buyer        { background: var(--primary-blue); }
.sb-logo-icon.manufacturer { background: var(--green-dark); border: 1px solid rgba(255,255,255,.15); }

.sb-logo-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
}

.sb-user { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sb-user-name { font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: .15rem; }
.sb-user-role { font-size: .75rem; color: rgba(255, 255, 255, .45); }

.sb-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  padding: 1.2rem 1.5rem .4rem;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.5rem;
  font-size: .87rem;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sb-nav-item:hover  { color: #fff; background: rgba(255, 255, 255, .06); }
.sb-nav-item.active { color: #fff; background: rgba(255, 255, 255, .08); }
.sb-nav-item.active.buyer        { border-left-color: var(--primary-blue); }
.sb-nav-item.active.manufacturer { border-left-color: #4ade80; }

.sb-nav-item .badge {
  background: #dc3545;
  color: #fff;
  border-radius: 10px;
  padding: .15rem .5rem;
  font-size: .68rem;
  margin-left: auto;
  font-weight: 700;
}

.sb-bottom {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Main area */
.dash-main   { margin-left: var(--sidebar-w); flex: 1; }

.dash-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-topbar-title { font-size: 1rem; font-weight: 700; color: #111418; }
.dash-topbar-sub   { font-size: .8rem; color: #9ca3af; }

.dash-content { padding: 2rem; }

/* Stat cards */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem;
}

.stat-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  letter-spacing: -1px;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .78rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-delta { font-size: .75rem; margin-top: .3rem; }
.stat-delta.up   { color: var(--green-dark); }
.stat-delta.down { color: #dc2626; }

/* Panels */
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; }
.panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title { font-size: .9rem; font-weight: 700; color: #111418; }
.panel-body  { padding: 1.25rem; }

/* RFQ Table */
.rfq-table { width: 100%; font-size: .85rem; }
.rfq-table thead th {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
  padding: .5rem .75rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.rfq-table tbody td {
  padding: .85rem .75rem;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  vertical-align: middle;
}
.rfq-table tbody tr:last-child td { border-bottom: none; }
.rfq-table tbody tr:hover         { background: #fafafa; }

/* Status badges (dashboards) */
.status-badge   { border-radius: 20px; padding: .25rem .75rem; font-size: .72rem; font-weight: 700; display: inline-block; }
.status-open    { background: var(--blue-light);  color: var(--primary-blue); }
.status-quotes  { background: var(--green-light); color: var(--green-dark); }
.status-new     { background: var(--green-light); color: var(--green-dark); }
.status-quoted  { background: var(--blue-light);  color: var(--primary-blue); }
.status-escrow  { background: #f3f0ff; color: #7c3aed; }
.status-producing { background: #fffbeb; color: #92400e; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-complete { background: #f3f4f6; color: #374151; }

/* Supplier cards (buyer dashboard search) */
.supplier-card-dash {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow .15s;
}
.supplier-card-dash:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

.supplier-avatar {
  width: 46px;
  height: 46px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.supplier-name { font-weight: 700; font-size: .9rem; color: #111418; margin-bottom: .15rem; }
.supplier-sub  { font-size: .78rem; color: #6b7280; margin-bottom: .5rem; }
.supplier-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.supplier-tag  { background: #f3f4f6; border-radius: 5px; padding: .15rem .5rem; font-size: .7rem; color: #374151; font-weight: 500; }

/* Escrow tracker */
.escrow-track { display: flex; gap: 0; align-items: center; overflow-x: auto; }
.et-step { display: flex; align-items: center; }
.et-dot  { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.et-dot.done    { background: var(--green-dark); color: #fff; }
.et-dot.active  { background: var(--primary-blue); color: #fff; box-shadow: 0 0 0 4px #d0dbff; }
.et-dot.pending { background: #e5e7eb; color: #9ca3af; }
.et-line { width: 30px; height: 2px; background: #e5e7eb; flex-shrink: 0; }
.et-line.done { background: var(--green-dark); }

/* Progress bars */
.bar-track { height: 8px; background: #f3f4f6; border-radius: 20px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 20px; }

/* Dashboard tabs */
.dash-tabs { display: flex; gap: 2px; background: #f3f4f6; border-radius: 10px; padding: 3px; width: fit-content; margin-bottom: 1.5rem; }
.dash-tab  { padding: .5rem 1.25rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; color: #6b7280; }
.dash-tab.active { background: #fff; color: var(--primary-blue); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.dash-tab.active.green { color: var(--green-dark); }

/* Profile score card */
.profile-score {
  background: linear-gradient(135deg, #064535, #0b6b52);
  border-radius: 14px;
  padding: 1.25rem;
  color: #fff;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.spacer-sm  { margin-right: .5rem; }
.cursor-pointer { cursor: pointer; }
