/* =========================
   LOCALITY BUSINESS CENTER
   Compact modular workspace
========================= */

:root {
  --bc-navy: #0c2142;
  --bc-navy-soft: #17385f;
  --bc-green: #08c464;
  --bc-green-dark: #087b49;
  --bc-cream: #f7f5ed;
  --bc-paper: rgba(255, 255, 255, 0.9);
  --bc-sage: #edf7ed;
  --bc-gold: #d69a22;
  --bc-amber: #c57d16;
  --bc-red: #b84234;
  --bc-blue: #3b6db2;
  --bc-muted: #69788d;
  --bc-border: rgba(12, 33, 66, 0.09);
  --bc-shadow: 0 16px 42px rgba(25, 51, 79, 0.07);
}

[hidden] {
  display: none !important;
}

body.business-center-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 7% 4%,
      rgba(8, 196, 100, 0.1),
      transparent 24%
    ),
    radial-gradient(
      circle at 92% 7%,
      rgba(214, 154, 34, 0.08),
      transparent 22%
    ),
    linear-gradient(180deg, #faf9f3, #f1f5ee);
  color: var(--bc-navy);
}

/* =========================
   TOP BAR
========================= */

.bc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--bc-border);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.bc-brand {
  display: inline-flex;
  align-items: center;
}

.bc-brand img {
  width: 150px;
  max-height: 48px;
  object-fit: contain;
}

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

.bc-main-nav > a,
.bc-tools-menu > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--bc-navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.bc-main-nav > a:hover,
.bc-tools-menu > summary:hover {
  background: rgba(12, 33, 66, 0.055);
}

.bc-main-nav > a.active {
  background: rgba(8, 196, 100, 0.11);
  color: var(--bc-green-dark);
}

.bc-tools-menu {
  position: relative;
}

.bc-tools-menu > summary::-webkit-details-marker {
  display: none;
}

.bc-tools-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 240px;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--bc-border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 50px rgba(20, 45, 76, 0.14);
}

.bc-tools-dropdown a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--bc-navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.bc-tools-dropdown a:hover {
  background: var(--bc-sage);
}

/* =========================
   ACCOUNT CHIP
========================= */

.bc-account-wrap {
  position: relative;
}

.bc-account-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
  background: white;
  color: var(--bc-navy);
  font: inherit;
  cursor: pointer;
}

.bc-account-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bc-sage);
  color: var(--bc-green-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.bc-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 900;
}

.bc-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 245px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--bc-border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 54px rgba(20, 45, 76, 0.16);
}

.bc-account-menu a,
.bc-account-menu button {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  background: transparent;
  color: var(--bc-navy);
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.bc-account-menu a:hover,
.bc-account-menu button:hover {
  background: var(--bc-sage);
}

.bc-account-menu .bc-logout {
  color: var(--bc-red);
}

/* =========================
   MAIN SHELL
========================= */

.bc-shell {
  width: min(100%, 1860px);
  margin: 0 auto;
  padding: 16px 22px 36px;
  box-sizing: border-box;
}

.bc-page-status {
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--bc-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.bc-page-status.is-error {
  border-color: rgba(184, 66, 52, 0.2);
  background: #fff3f1;
  color: var(--bc-red);
}

/* =========================
   COMPACT COMMAND STRIP
========================= */

.bc-command-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px 17px;
  border: 1px solid var(--bc-border);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(8, 196, 100, 0.1),
      transparent 30%
    ),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--bc-shadow);
}

.bc-business-identity {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.bc-business-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--bc-border);
  border-radius: 17px;
  background: white;
  color: var(--bc-green-dark);
  font-weight: 950;
}

.bc-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-business-copy {
  min-width: 0;
}

.bc-business-copy p,
.bc-business-copy h1 {
  margin: 0;
}

.bc-business-copy p {
  color: var(--bc-green-dark);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bc-business-copy h1 {
  margin-top: 3px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.bc-business-meta {
  margin-top: 6px;
  color: var(--bc-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.bc-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.bc-status-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.055);
  color: var(--bc-navy);
  font-size: 0.66rem;
  font-weight: 900;
}

.bc-status-chip.is-public {
  background: rgba(8, 196, 100, 0.11);
  color: var(--bc-green-dark);
}

.bc-status-chip.is-warning {
  background: rgba(214, 154, 34, 0.14);
  color: #8c5a06;
}

.bc-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bc-action-primary,
.bc-action-secondary,
.bc-action-quiet {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  text-decoration: none;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.bc-action-primary {
  background: var(--bc-green);
  color: white;
}

.bc-action-secondary {
  background: var(--bc-navy);
  color: white;
}

.bc-action-quiet {
  background: rgba(12, 33, 66, 0.07);
  color: var(--bc-navy);
}

/* =========================
   DASHBOARD GRID
========================= */

.bc-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.bc-span-4 {
  grid-column: span 4;
}

.bc-span-5 {
  grid-column: span 5;
}

.bc-span-7 {
  grid-column: span 7;
}

.bc-span-8 {
  grid-column: span 8;
}

.bc-span-12 {
  grid-column: span 12;
}

.bc-dashboard-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--bc-border);
  border-radius: 22px;
  background: var(--bc-paper);
  box-shadow: var(--bc-shadow);
}

.bc-dashboard-card.is-sage {
  background:
    radial-gradient(
      circle at 90% 7%,
      rgba(8, 196, 100, 0.12),
      transparent 34%
    ),
    rgba(250, 255, 250, 0.94);
}

.bc-dashboard-card.is-gold {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(214, 154, 34, 0.12),
      transparent 34%
    ),
    rgba(255, 253, 247, 0.94);
}

.bc-dashboard-card.is-navy {
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(8, 196, 100, 0.16),
      transparent 32%
    ),
    linear-gradient(145deg, #102e54, #113c33);
  color: white;
}

.bc-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.bc-card-kicker {
  margin: 0 0 4px;
  color: var(--bc-green-dark);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bc-card-header h2,
.bc-card-header h3 {
  margin: 0;
  color: var(--bc-navy);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.bc-card-header h2 {
  font-size: 1.42rem;
}

.bc-card-header h3 {
  font-size: 1.15rem;
}

.bc-dashboard-card.is-navy .bc-card-kicker {
  color: #72eea8;
}

.bc-dashboard-card.is-navy .bc-card-header h2,
.bc-dashboard-card.is-navy .bc-card-header h3 {
  color: white;
}

.bc-card-link {
  flex: 0 0 auto;
  color: var(--bc-navy);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.bc-dashboard-card.is-navy .bc-card-link {
  color: white;
}

.bc-card-description {
  margin: -5px 0 0;
  color: var(--bc-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 720;
}

.bc-dashboard-card.is-navy .bc-card-description {
  color: rgba(255, 255, 255, 0.76);
}

/* =========================
   ATTENTION
========================= */

.bc-attention-list {
  display: grid;
  gap: 8px;
}

.bc-attention-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border-radius: 15px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-attention-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--bc-blue);
}

.bc-attention-item.is-warning .bc-attention-dot {
  background: var(--bc-amber);
  box-shadow: 0 0 0 5px rgba(197, 125, 22, 0.1);
}

.bc-attention-item.is-danger .bc-attention-dot {
  background: var(--bc-red);
  box-shadow: 0 0 0 5px rgba(184, 66, 52, 0.09);
}

.bc-attention-item.is-success .bc-attention-dot {
  background: var(--bc-green);
}

.bc-attention-item strong,
.bc-attention-item span {
  display: block;
}

.bc-attention-item strong {
  font-size: 0.79rem;
}

.bc-attention-item span {
  margin-top: 3px;
  color: var(--bc-muted);
  font-size: 0.71rem;
  line-height: 1.38;
}

/* =========================
   METRICS / ORDERS
========================= */

.bc-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bc-mini-metric {
  padding: 11px;
  border-radius: 15px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-mini-metric span,
.bc-mini-metric strong {
  display: block;
}

.bc-mini-metric span {
  color: var(--bc-muted);
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bc-mini-metric strong {
  margin-top: 5px;
  font-size: 1.3rem;
  line-height: 1;
}

.bc-empty-state {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(12, 33, 66, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.55);
}

.bc-empty-state strong {
  color: var(--bc-navy);
  font-size: 0.86rem;
}

.bc-empty-state span {
  color: var(--bc-muted);
  font-size: 0.74rem;
  line-height: 1.42;
}

/* =========================
   PRODUCT PREVIEW
========================= */

.bc-product-list {
  display: grid;
  gap: 8px;
}

.bc-product-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 15px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-product-image {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bc-sage);
  color: var(--bc-green-dark);
  font-size: 0.6rem;
  font-weight: 950;
  text-align: center;
}

.bc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-product-row strong,
.bc-product-row small {
  display: block;
}

.bc-product-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.bc-product-row small {
  margin-top: 2px;
  color: var(--bc-muted);
  font-size: 0.67rem;
}

.bc-product-state {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(8, 196, 100, 0.1);
  color: var(--bc-green-dark);
  font-size: 0.61rem;
  font-weight: 900;
}

.bc-product-state.is-draft {
  background: rgba(214, 154, 34, 0.13);
  color: #895809;
}

/* =========================
   MESSAGE DRAFT
========================= */

.bc-message-form {
  display: grid;
  gap: 8px;
}

.bc-message-form input,
.bc-message-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bc-border);
  border-radius: 13px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--bc-navy);
  font: inherit;
  font-size: 0.76rem;
  outline: none;
}

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

.bc-message-form input:focus,
.bc-message-form textarea:focus {
  border-color: rgba(8, 196, 100, 0.5);
  box-shadow: 0 0 0 3px rgba(8, 196, 100, 0.08);
}

.bc-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bc-inline-status {
  min-height: 17px;
  color: var(--bc-muted);
  font-size: 0.67rem;
  font-weight: 750;
}

/* =========================
   PAYMENTS / PROFILE
========================= */

.bc-setting-stack {
  display: grid;
  gap: 8px;
}

.bc-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-setting-row strong,
.bc-setting-row span {
  display: block;
}

.bc-setting-row strong {
  font-size: 0.77rem;
}

.bc-setting-row span {
  margin-top: 2px;
  color: var(--bc-muted);
  font-size: 0.67rem;
}

.bc-setting-state {
  flex: 0 0 auto;
  color: var(--bc-amber);
  font-size: 0.66rem;
  font-weight: 900;
}

.bc-profile-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.08);
}

.bc-profile-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bc-green), #69d98c);
  transition: width 0.25s ease;
}

.bc-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bc-profile-stat {
  padding: 11px;
  border-radius: 15px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-profile-stat span,
.bc-profile-stat strong {
  display: block;
}

.bc-profile-stat span {
  color: var(--bc-muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.bc-profile-stat strong {
  margin-top: 4px;
  font-size: 0.8rem;
}

/* =========================
   INSIGHT PLACEHOLDER
========================= */

.bc-insight-preview {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(
      to top,
      rgba(8, 196, 100, 0.12),
      transparent 70%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(12, 33, 66, 0.035) 0,
      rgba(12, 33, 66, 0.035) 1px,
      transparent 1px,
      transparent 54px
    );
}

.bc-insight-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(8, 196, 100, 0.15),
    var(--bc-green),
    rgba(8, 196, 100, 0.2)
  );
  transform: rotate(-2deg);
}

/* =========================
   TOAST
========================= */

.bc-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 330px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--bc-navy);
  color: white;
  box-shadow: 0 18px 48px rgba(12, 33, 66, 0.22);
  font-size: 0.76rem;
  font-weight: 800;
}

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

@media (max-width: 1180px) {
  .bc-span-4,
  .bc-span-5,
  .bc-span-7,
  .bc-span-8 {
    grid-column: span 6;
  }

  .bc-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .bc-main-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .bc-topbar {
    grid-template-columns: auto auto;
    padding: 0 14px;
  }

  .bc-main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .bc-account-wrap {
    justify-self: end;
  }

  .bc-shell {
    padding: 13px 12px 28px;
  }

  .bc-command-strip {
    grid-template-columns: 1fr;
  }

  .bc-command-actions {
    justify-content: flex-start;
  }

  .bc-span-4,
  .bc-span-5,
  .bc-span-7,
  .bc-span-8,
  .bc-span-12 {
    grid-column: span 12;
  }
}

@media (max-width: 540px) {
  .bc-account-name {
    display: none;
  }

  .bc-business-identity {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .bc-business-logo {
    width: 46px;
    height: 46px;
  }

  .bc-metric-strip,
  .bc-profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ROLE-AWARE WORKSPACES
========================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

.bc-workspace-stack {
  display: grid;
  gap: 28px;
}

.bc-workspace-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.bc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 4px 0;
}

.bc-section-heading h2,
.bc-section-heading p {
  margin: 0;
}

.bc-section-heading h2 {
  color: var(--bc-navy);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.bc-section-heading > div > p:last-child {
  max-width: 700px;
  margin-top: 7px;
  color: var(--bc-muted);
  font-size: 0.8rem;
  font-weight: 720;
  line-height: 1.45;
}

.bc-section-jump {
  color: var(--bc-navy);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 900;
}

.bc-sourcing-section.is-secondary {
  margin-top: 8px;
  padding-top: 27px;
  border-top: 1px solid rgba(12, 33, 66, 0.1);
}

.bc-sourcing-section.is-primary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bc-span-3 {
  grid-column: span 3;
}

.bc-span-6 {
  grid-column: span 6;
}

/* =========================
   COMPACT UTILITY CARDS
========================= */

.bc-compact-card {
  min-height: 145px;
  align-content: start;
}

.bc-compact-stat {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border-radius: 16px;
  background: rgba(12, 33, 66, 0.045);
}

.bc-compact-stat strong {
  font-size: 1.9rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.bc-compact-stat span {
  max-width: 210px;
  color: var(--bc-muted);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.35;
}

/* =========================
   PERFORMANCE CARDS
========================= */

.bc-performance-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bc-performance-periods button {
  min-height: 31px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(12, 33, 66, 0.055);
  color: var(--bc-navy);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 900;
  cursor: pointer;
}

.bc-performance-periods button.is-active {
  background: var(--bc-navy);
  color: white;
}

.bc-performance-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(300px, 1.25fr);
  gap: 12px;
}

.bc-performance-metrics {
  display: grid;
  gap: 8px;
}

.bc-performance-chart {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 16px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(12, 33, 66, 0.035) 0,
      rgba(12, 33, 66, 0.035) 1px,
      transparent 1px,
      transparent 38px
    ),
    rgba(8, 196, 100, 0.035);
}

.bc-performance-chart p {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 0;
  color: var(--bc-muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.bc-chart-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(8, 196, 100, 0.18),
    var(--bc-green),
    rgba(8, 196, 100, 0.2)
  );
  transform-origin: left center;
}

.bc-chart-line.one {
  bottom: 38%;
  transform: rotate(-3deg);
}

.bc-chart-line.two {
  bottom: 53%;
  transform: rotate(4deg);
  opacity: 0.58;
}

.bc-chart-line.three {
  bottom: 68%;
  transform: rotate(-1deg);
  opacity: 0.28;
}

/* =========================
   MINI SOURCING MAP
========================= */

.bc-map-card {
  overflow: hidden;
}

.bc-sourcing-map {
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--bc-border);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at center,
      rgba(8, 196, 100, 0.1),
      transparent 45%
    ),
    #edf3e9;
}

.bc-sourcing-map .leaflet-control-attribution {
  font-size: 8px;
}

.bc-map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bc-map-summary strong {
  font-size: 0.77rem;
}

.bc-map-summary span {
  color: var(--bc-muted);
  font-size: 0.67rem;
  font-weight: 740;
}

/* =========================
   ROLE PRESENTATION
========================= */

body[data-workspace-mode="buyer-only"]
  [data-seller-only] {
  display: none !important;
}

body[data-workspace-mode="buyer-only"]
  .bc-command-actions {
  justify-content: flex-end;
}

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

  .bc-sourcing-map {
    min-height: 240px;
  }
}

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

  .bc-span-3,
  .bc-span-6 {
    grid-column: span 12;
  }

  .bc-map-summary {
    align-items: start;
    flex-direction: column;
  }
}

/* =========================
   DASHBOARD ROW ALIGNMENT
========================= */

/*
  Keep mixed card widths, but align every card
  to the height of the tallest card in its row.
  This preserves a structured bento layout
  rather than creating a loose masonry layout.
*/
.bc-dashboard-grid {
  align-items: stretch;
}

.bc-dashboard-grid > .bc-dashboard-card {
  align-self: stretch;
}

.bc-compact-card {
  align-self: stretch;
}

.bc-account-location-card {
  align-self: stretch;
}

.bc-compact-card .bc-compact-stat {
  margin-top: auto;
}

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

.bc-account-tool {
  min-height: 118px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid var(--bc-border);
  border-radius: 17px;
  background: rgba(12, 33, 66, 0.04);
  color: var(--bc-navy);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.bc-account-tool:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 196, 100, 0.22);
  background: rgba(8, 196, 100, 0.065);
}

.bc-account-tool strong,
.bc-account-tool span {
  display: block;
}

.bc-account-tool strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.bc-account-tool span {
  max-width: 330px;
  margin-top: 6px;
  color: var(--bc-muted);
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.45;
}

.bc-account-tool b {
  flex: 0 0 auto;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .bc-account-tool-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   COMING SOON TOOL COVER
========================= */

.bc-coming-soon-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bc-coming-soon-card
  > *:not(.bc-coming-soon-cover) {
  opacity: 0.2;
  filter: saturate(0.55);
  pointer-events: none;
  user-select: none;
}

.bc-coming-soon-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(10, 38, 68, 0.86),
      rgba(10, 78, 62, 0.82)
    );
  backdrop-filter: blur(5px);
}

.bc-coming-soon-content {
  width: min(100%, 470px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(8, 28, 49, 0.52);
  color: white;
  text-align: center;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.15);
}

.bc-construction-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(240, 171, 45, 0.17);
  color: #ffc65e;
}

.bc-construction-icon svg {
  width: 23px;
  height: 23px;
}

.bc-coming-soon-eyebrow {
  color: #ffc65e;
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.bc-coming-soon-content strong {
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.bc-coming-soon-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.48;
}
