/* =========================================================
   AcquireIQ — single stylesheet
   Sections:
     1. Tokens        – colors, type, spacing, radii
     2. Reset / base  – body, typography, scrollbar, focus
     3. Layout        – app shell, sidebar, topbar, views
     4. Components    – buttons, inputs, cards, badges, modal, toast
     5. Views         – dashboard, leads grid, pipeline, market, admin
     6. Login         – overlay + card
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  /* Brand: gold + dark, brand kit for GH Automotive */
  --gold-500: #d4af37;
  --gold-400: #e6c862;
  --gold-300: #f0d985;
  --gold-700: #8a7020;

  /* Surface ramp — almost-black to warm slate */
  --ink-1000: #07080b;     /* page floor          */
  --ink-900:  #0b0d12;     /* surface             */
  --ink-800:  #11141b;     /* panel               */
  --ink-700:  #181d27;     /* panel raised        */
  --ink-600:  #232a37;     /* hairline / divider  */
  --ink-500:  #364152;     /* muted border        */
  --ink-300:  #97a3b8;     /* secondary text — was too gray */
  --ink-200:  #c4ccd9;     /* tertiary text — was too gray */
  --ink-100:  #ecedf0;     /* primary text — near white now */
  --white:    #ffffff;

  /* Semantic */
  --good:    #22c55e;
  --warn:    #f59e0b;
  --bad:     #ef4444;
  --info:    #38bdf8;

  /* Type */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;

  /* Shadows / glows */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35);
  --gold-glow: 0 0 0 1px rgba(212,175,55,0.35), 0 6px 24px -8px rgba(212,175,55,0.35);

  /* Layout */
  --sidebar-w: 256px;
  --topbar-h: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-1000);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  /* Subtle warm gradient floor — adds depth without distracting */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(212,175,55,0.04), transparent 60%);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-200); font-weight: 600; }

a { color: var(--gold-400); text-decoration: none; }
a:hover { color: var(--gold-300); }

.muted { color: var(--ink-200); }
.small { font-size: 13px; }
.gold  { color: var(--gold-400); }
.mono  { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

/* 3. LAYOUT ------------------------------------------------ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-1000));
  border-right: 1px solid var(--ink-600);
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-7);
}
.brand em {
  font-style: normal;
  color: var(--gold-400);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  color: var(--ink-100);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.nav-item:hover { background: var(--ink-800); color: var(--ink-100); }
.nav-item[aria-current="page"] {
  background: var(--ink-800);
  color: var(--white);
  border-color: var(--ink-600);
}
.nav-item[aria-current="page"] svg { color: var(--gold-400); }
.nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink-700);
  color: var(--ink-200);
}
.nav-count .new-pip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #1a1408;
  font-weight: 700;
  font-size: 10px;
  animation: pip-pulse 1.6s ease-in-out infinite;
}
@keyframes pip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.6); }
  50%      { box-shadow: 0 0 0 4px rgba(212,175,55,0); }
}

.sidebar-foot { margin-top: auto; }

.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--ink-1000);
  font-weight: 700;
  font-family: var(--font-display);
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-weight: 600; color: var(--ink-100); font-size: 14px; line-height: 1.2; }
.user-role { font-size: 12px; color: var(--ink-200); text-transform: capitalize; margin-top: 2px; }

.main {
  min-width: 0;
  padding: var(--s-7) var(--s-7) var(--s-8);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  gap: var(--s-4);
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--ink-1000) 60%, transparent);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  margin-top: calc(var(--s-7) * -1);
  padding-left: var(--s-7);
  padding-right: var(--s-7);
  margin-left: calc(var(--s-7) * -1);
  margin-right: calc(var(--s-7) * -1);
}
.topbar-left h1 { line-height: 1.2; }
.topbar-sub { display: block; color: var(--ink-200); font-size: 14px; margin-top: 4px; }

.view { display: block; }
.view[hidden] { display: none !important; }

/* 4. COMPONENTS -------------------------------------------- */

/* Panels and cards */
.panel {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-4);
  gap: var(--s-3);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.01em;
  border: 1px solid var(--ink-600);
  background: var(--ink-700);
  color: var(--ink-100);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .04s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-600); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #1a1408;
  border-color: var(--gold-500);
  font-weight: 600;
  box-shadow: var(--gold-glow);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--gold-300), var(--gold-400)); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink-600);
  color: var(--ink-200);
}
.btn-ghost:hover { background: var(--ink-800); color: var(--ink-100); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-sm); }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-200);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--ink-700); color: var(--ink-100); }
.icon-btn svg, .btn svg { pointer-events: none; }

.link {
  background: none; border: none; cursor: pointer;
  color: var(--gold-400); font: inherit; padding: 0;
}
.link:hover { color: var(--gold-300); }

/* Inputs */
input, select, textarea {
  font: inherit;
  background: var(--ink-900);
  color: var(--ink-100);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  padding: 9px 12px;
  width: 100%;
  transition: border-color .12s, background .12s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
textarea { resize: vertical; }
.select-sm { padding: 6px 10px; font-size: 12px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--ink-600);
  background: var(--ink-800);
  color: var(--ink-100);
}
/* Stage badges — new 6-stage pipeline + 2 closed stages.
   Old keys (claimed/contacted/negotiating/won) are aliased to their new equivalents
   so any code path that still emits the legacy class name still gets a sensible color. */
.badge.stage-new,
.badge.new
                  { color: var(--info);        border-color: rgba(56,189,248,0.35);  background: rgba(56,189,248,0.08); }
.badge.stage-working,
.badge.claimed,
.badge.contacted
                  { color: var(--gold-400);    border-color: rgba(212,175,55,0.35);  background: rgba(212,175,55,0.08); }
.badge.stage-engaged
                  { color: #a5b4fc;            border-color: rgba(165,180,252,0.35); background: rgba(165,180,252,0.08); }
.badge.stage-offer_out,
.badge.negotiating
                  { color: var(--warn);        border-color: rgba(245,158,11,0.35);  background: rgba(245,158,11,0.08); }
.badge.stage-closing
                  { color: #c4b5fd;            border-color: rgba(196,181,253,0.35); background: rgba(196,181,253,0.08); }
.badge.stage-stocked,
.badge.won,
.badge.is-active
                  { color: var(--good);        border-color: rgba(34,197,94,0.35);   background: rgba(34,197,94,0.08); }
.badge.stage-lost,
.badge.lost,
.badge.is-disabled
                  { color: var(--bad);         border-color: rgba(239,68,68,0.35);   background: rgba(239,68,68,0.08); }
.badge.stage-passed
                  { color: var(--ink-200);     border-color: var(--ink-500);         background: var(--ink-800); }

/* Score chip */
.score-chip {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ink-600);
  background: var(--ink-800);
}
.score-chip strong { font-weight: 700; }
.score-chip .max { color: var(--ink-200); font-weight: 400; }
.score-chip.hot  { color: var(--gold-300); border-color: var(--gold-700); background: rgba(212,175,55,0.08); }
.score-chip.warm { color: #fbbf24; }
.score-chip.cold { color: var(--ink-300); }

/* 5. VIEWS ------------------------------------------------- */

/* KPI grid */
.kpi-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: var(--s-5);
}
.kpi {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.kpi-label { color: var(--ink-200); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--ink-100);
}

/* Split */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

/* Source breakdown */
.source-list { display: flex; flex-direction: column; gap: 10px; }
.source-row {
  display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px;
  font-size: 13px;
}
.source-bar { height: 6px; background: var(--ink-700); border-radius: 999px; overflow: hidden; }
.source-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-700), var(--gold-400)); }
.source-count { text-align: right; color: var(--ink-200); font-family: var(--font-mono); font-size: 12px; }

/* Leads grid + cards */
.filters {
  display: grid;
  grid-template-columns: 1fr 160px 160px 140px;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-300); }
.search input { padding-left: 32px; }

.lead-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.lead-card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .12s, transform .08s, box-shadow .12s;
  cursor: pointer;
  position: relative;
}
.lead-card:hover { border-color: var(--ink-500); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }
.lead-card.hot::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 1;
}
.lead-card.fresh {
  animation: card-land 0.6s ease-out;
}
.lead-card.fresh .fresh-pip {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--gold-500);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 4px var(--ink-1000), 0 0 14px rgba(212,175,55,0.7);
  animation: pip-pulse-big 1.8s ease-in-out infinite;
}
.lead-card.fresh .fresh-pip::after {
  content: 'NEW';
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font: 700 9px/1 var(--font-body);
  color: #1a1408;
  letter-spacing: 0.04em;
}
@keyframes card-land {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.98); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pip-pulse-big {
  0%, 100% { box-shadow: 0 0 0 4px var(--ink-1000), 0 0 0 0 rgba(212,175,55,0.7); }
  50%      { box-shadow: 0 0 0 4px var(--ink-1000), 0 0 0 8px rgba(212,175,55,0); }
}

.lead-img {
  aspect-ratio: 16 / 9;
  background: var(--ink-700) center/cover no-repeat;
  position: relative;
}
.lead-img .score-overlay {
  position: absolute; top: 10px; right: 10px;
}
.lead-img .status-overlay {
  position: absolute; top: 10px; left: 10px;
}
.lead-img.placeholder {
  aspect-ratio: auto;
  height: 64px;
  display: grid; place-items: center;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 11px;
  background:
    linear-gradient(180deg, var(--ink-700), var(--ink-800)),
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.02) 6px 12px);
}

.lead-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lead-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--ink-200);
  font-size: 13px;
}
.lead-meta .dot { color: var(--ink-500); }
.lead-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ink-600);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 2px;
}
.lead-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lead-stats .stat { background: var(--ink-900); padding: 9px 10px; }
.lead-stats .stat .label { font-size: 11px; color: var(--ink-200); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.lead-stats .stat .value { font-family: var(--font-mono); font-size: 14px; color: var(--ink-100); margin-top: 3px; line-height: 1.2; font-weight: 600; }
.lead-stats .stat .delta { font-size: 11px; margin-top: 3px; font-family: var(--font-mono); }
.lead-stats .stat .delta.good { color: var(--good); }
.lead-stats .stat .delta.bad  { color: var(--bad); }

.lead-ai {
  font-size: 13px;
  color: var(--ink-100);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 10px 12px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--gold-500);
}

/* Dupe warning inside modal */
.dupe-warning {
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid #b45309;
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.dupe-warning .warn-head { color: #fbbf24; font-size: 13px; line-height: 1.45; }
.dupe-warning .warn-head strong { color: var(--ink-100); font-weight: 600; }
.dupe-warning .warn-list { display: flex; flex-direction: column; gap: 6px; }
.dupe-warning .warn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.dupe-warning .warn-row-title { font-weight: 500; color: var(--ink-100); }
.dupe-warning .warn-claimed {
  display: inline-block;
  margin-left: 6px;
  font: 700 9px/1 var(--font-body);
  padding: 3px 6px;
  background: var(--bad);
  color: var(--white);
  border-radius: 3px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.dupe-warning .warn-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}

/* Dupe badge in meta row */
.dupe-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 11px/1 var(--font-body);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  border: 1px solid #b45309;
  background: rgba(180, 83, 9, 0.12);
  color: #fbbf24;
  cursor: pointer;
  margin-left: auto;
}
.dupe-badge:hover { background: rgba(180, 83, 9, 0.22); }

/* Dupe expansion panel */
.dupe-panel {
  background: var(--ink-900);
  border: 1px solid #b45309;
  border-radius: var(--r-sm);
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.dupe-panel-head {
  font-size: 11px;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.dupe-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.dupe-row-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-width: 0;
}
.dupe-source {
  font-size: 10px; padding: 3px 6px;
}
.dupe-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-100);
}

/* Subtle visual link: cards with dupes get a thin warm side accent */
.lead-card.has-dupes {
  border-left: 2px solid rgba(180, 83, 9, 0.6);
}

.deal-chip {
  font: 700 11px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(11,13,18,0.85);
  color: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.deal-chip.great { color: var(--gold-300); border-color: var(--gold-700); }
.deal-chip.hot   { color: var(--gold-400); border-color: var(--gold-700); }
.deal-chip.buy   { color: var(--ink-100); }
.deal-chip.pass  { color: var(--ink-300); }

.lead-actions {
  display: flex; gap: 8px; padding: 10px var(--s-4) var(--s-4); margin-top: auto;
}

.empty {
  padding: var(--s-7);
  text-align: center;
  color: var(--ink-300);
  border: 1px dashed var(--ink-600);
  border-radius: var(--r-lg);
}

/* Compact list (dashboard top-leads) */
.lead-list.compact { display: flex; flex-direction: column; gap: 6px; }
.lead-list.compact .row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  cursor: pointer;
  transition: background .1s;
}
.lead-list.compact .row:hover { background: var(--ink-800); }
.lead-list.compact .row .title { font-size: 13px; font-weight: 500; color: var(--ink-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-list.compact .row .sub   { font-size: 11px; color: var(--ink-300); }

/* Pipeline board */
.pipeline-board {
  display: flex; flex-direction: column;
  gap: var(--s-3);
  padding-bottom: 4px;
}
.pipe-active {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: var(--s-3);
  overflow-x: auto;
}
.pipe-closed {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--s-3);
}
.pipe-toggle-row {
  display: flex; justify-content: flex-end;
  padding: 4px 2px;
}
.pipe-col {
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 120px;
}
.pipe-col-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.pipe-col-label { color: var(--ink-100); }
.pipe-col-count {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--ink-700); padding: 2px 7px; border-radius: 999px;
  color: var(--ink-200);
}

/* Stage-tinted column headers so the board reads at a glance */
.pipe-col[data-stage="new"]       .pipe-col-label { color: var(--info); }
.pipe-col[data-stage="working"]   .pipe-col-label { color: var(--gold-400); }
.pipe-col[data-stage="engaged"]   .pipe-col-label { color: #a5b4fc; }
.pipe-col[data-stage="offer_out"] .pipe-col-label { color: var(--warn); }
.pipe-col[data-stage="closing"]   .pipe-col-label { color: #c4b5fd; }
.pipe-col[data-stage="stocked"]   .pipe-col-label { color: var(--good); }
.pipe-col[data-stage="lost"]      .pipe-col-label { color: var(--bad); }
.pipe-col[data-stage="passed"]    .pipe-col-label { color: var(--ink-200); }

.pipe-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  padding: 10px;
  cursor: pointer;
  transition: border-color .1s;
}
.pipe-card:hover { border-color: var(--gold-500); }
.pipe-card .t { font-size: 12px; font-weight: 600; color: var(--ink-100); line-height: 1.3; }
.pipe-card .m { font-size: 11px; color: var(--ink-200); margin-top: 4px; display: flex; gap: 8px; }
.pipe-empty { padding: 4px 0; }

@media (max-width: 1300px) {
  .pipe-active { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
}
@media (max-width: 700px) {
  .pipe-active { grid-template-columns: 1fr; }
  .pipe-closed { grid-template-columns: 1fr; }
}

/* Market */
.market-panel { display: flex; flex-direction: column; min-height: 60vh; }
.market-log {
  flex: 1; min-height: 320px;
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-3) 0;
  overflow-y: auto;
}
.market-msg { max-width: 80%; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; }
.market-msg.user { align-self: flex-end; background: var(--ink-700); }
.market-msg.bot  { align-self: flex-start; background: var(--ink-800); border: 1px solid var(--ink-600); white-space: pre-wrap; }
.market-input { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--ink-600); }

/* Admin */
.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); background: var(--ink-900); border: 1px solid var(--ink-600); }
.user-row .name { font-weight: 500; color: var(--ink-100); font-size: 13px; }
.user-row .role { font-size: 11px; color: var(--ink-300); text-transform: capitalize; }

.leaderboard { display: flex; flex-direction: column; gap: 6px; }
.leaderboard .row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); background: var(--ink-900); border: 1px solid var(--ink-600); }
.leaderboard .row .rank { font-family: var(--font-mono); color: var(--gold-400); font-size: 13px; }
.leaderboard .row .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-200); }

/* Modal */
.modal {
  position: fixed; inset: 0;
  z-index: 80;
  display: grid; place-items: center;
  padding: var(--s-5);
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--ink-600);
}
.modal-body { padding: var(--s-5) var(--s-6); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-5); }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--ink-600);
  background: var(--ink-900);
}
.modal-foot-right { display: flex; align-items: center; gap: var(--s-3); }
.modal-foot-right .select-sm { width: auto; }

.modal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3);
}
@media (max-width: 700px) { .modal-grid { grid-template-columns: repeat(2, 1fr); } }
.modal-stat {
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  padding: 12px;
}
.modal-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-top: 4px;
}

.modal-section { display: flex; flex-direction: column; gap: 10px; }
.modal-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.ai-out {
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  padding: 12px;
  white-space: pre-wrap;
}

.timeline {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto;
}
.timeline-item {
  display: grid; grid-template-columns: 12px 1fr auto;
  gap: 10px; align-items: baseline;
  padding: 8px 10px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.timeline-item .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-top: 6px; }
.timeline-item .when { font-family: var(--font-mono); color: var(--ink-300); font-size: 11px; }

.note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.note-form textarea { width: 100%; }
.note-form button { align-self: flex-end; }

/* Toasts */
.toast-host {
  position: fixed; bottom: var(--s-5); right: var(--s-5);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 100;
}
.toast {
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-2);
  animation: slide-in .15s ease-out;
}
.toast.success { border-color: rgba(34,197,94,0.5); }
.toast.error   { border-color: rgba(239,68,68,0.5); }
@keyframes slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 6. LOGIN ------------------------------------------------- */
.login-overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(800px 400px at 50% 30%, rgba(212,175,55,0.10), transparent 70%), var(--ink-1000);
  padding: var(--s-5);
  z-index: 90;
}
.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  box-shadow: var(--shadow-2);
}
.login-card h1 { font-size: 24px; margin: var(--s-4) 0 4px; }
.login-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-200); font-size: 13px; }
.login-brand em { font-style: normal; color: var(--gold-400); }
.form-stack { display: grid; gap: 14px; margin-top: var(--s-5); }
.form-stack label { display: grid; gap: 6px; font-size: 12px; color: var(--ink-200); }
.form-error { min-height: 16px; color: var(--bad); font-size: 12px; }

/* Tighten on narrow */
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main { padding: var(--s-5); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   AI NEGOTIATION COACH
================================ */

.intel-wrap{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:16px;
}

.intel-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
}

.intel-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:16px;
}

.intel-label{
  font-size:12px;
  text-transform:uppercase;
  color:#8b95a7;
  margin-bottom:8px;
  letter-spacing:.08em;
}

.intel-value{
  font-size:24px;
  font-weight:700;
  color:#f5d061;
}

.intel-strategy{
  background:rgba(255,255,255,0.03);
  border-left:3px solid #f5d061;
  padding:16px;
  border-radius:12px;
  line-height:1.5;
}

.intel-signals{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.intel-pill{
  background:#161b22;
  border:1px solid rgba(245,208,97,.25);
  color:#f5d061;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.intel-script{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.script-title{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  color:#9aa4b5;
  letter-spacing:.08em;
}

.intel-script textarea{
  width:100%;
  min-height:90px;
  resize:vertical;
  background:#0c1016;
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  border-radius:12px;
  padding:14px;
  font-size:14px;
  line-height:1.5;
}

.intel-script textarea:focus{
  outline:none;
  border-color:#f5d061;
}


/* Fix AI negotiation stat card alignment */
.intel-card{
  min-height: unset !important;
  height: auto !important;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:14px;
}

.intel-value{
  margin-top:0 !important;
  line-height:1.1;
}

.intel-grid{
  align-items:stretch;
}


/* Live Market Feed */
.live-feed {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 340px;
  max-height: 420px;
  z-index: 80;
  background: rgba(12, 18, 32, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.live-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.live-feed-head button {
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.live-feed-body {
  padding: 12px;
  max-height: 340px;
  overflow-y: auto;
}

.live-feed-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  cursor: pointer;
}

.live-feed-item:hover {
  background: rgba(255,255,255,0.11);
}

.live-feed-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.live-feed-message {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
}

.live-feed-meta {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.live-feed.collapsed .live-feed-body {
  display: none;
}

@media (max-width: 760px) {
  .live-feed {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}

/* AI Buy Now Engine */
.intel-buy-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.intel-buy-banner.buy-now {
  border-color: rgba(255, 204, 64, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 204, 64, 0.22), 0 18px 60px rgba(255, 204, 64, 0.12);
}

.intel-buy-banner.strong-buy {
  border-color: rgba(0, 220, 140, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 220, 140, 0.16);
}

.intel-buy-banner.pass {
  border-color: rgba(255, 80, 80, 0.45);
}

.intel-buy-title {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #f7d451;
  margin-top: 4px;
}

.intel-buy-reason {
  margin-top: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  line-height: 1.4;
}

.intel-buy-score {
  min-width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
  color: #f7d451;
  background: rgba(247, 212, 81, 0.12);
  border: 1px solid rgba(247, 212, 81, 0.35);
}

/* Buy These Now Queue */
.buy-now-panel {
  border-color: rgba(247, 212, 81, 0.28) !important;
  box-shadow: 0 18px 60px rgba(247, 212, 81, 0.08);
}

.buy-now-card {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.18s ease;
}

.buy-now-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.095);
}

.buy-now-card.buy-now {
  border-color: rgba(247, 212, 81, 0.75);
  box-shadow: 0 0 0 1px rgba(247, 212, 81, 0.18), 0 18px 48px rgba(247, 212, 81, 0.12);
  animation: buyPulse 1.9s infinite;
}

.buy-now-card.strong-buy {
  border-color: rgba(0, 220, 140, 0.5);
}

.buy-now-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 950;
  color: #f7d451;
  margin-bottom: 8px;
}

.buy-now-title {
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  font-size: 13px;
}

.buy-now-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
}

.buy-now-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.buy-now-stats span {
  padding: 7px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.07);
  color: #f7d451;
  font-size: 11px;
  font-weight: 850;
}

.buy-now-reason {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.66);
}

@keyframes buyPulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 212, 81, 0.22), 0 18px 48px rgba(247, 212, 81, 0.12); }
  70% { box-shadow: 0 0 0 8px rgba(247, 212, 81, 0), 0 18px 48px rgba(247, 212, 81, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(247, 212, 81, 0), 0 18px 48px rgba(247, 212, 81, 0.12); }
}

/* AI Command Center Dashboard */
.ai-command-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}

.command-span-2 {
  grid-column: span 2;
}

.command-panel {
  min-height: 260px;
  max-height: 420px;
  overflow: hidden;
}

.command-panel .lead-list {
  max-height: 345px;
  overflow-y: auto;
  padding-right: 4px;
}

.top-leads-panel {
  margin-top: 14px;
}

.top-leads-panel .lead-list {
  max-height: 280px;
  overflow-y: auto;
}

.mini-command-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 9px;
  cursor: pointer;
  transition: 0.18s ease;
}

.mini-command-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}

.mini-command-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.mini-command-score,
.mini-command-profit {
  font-size: 11px;
  font-weight: 900;
  color: #f7d451;
}

.mini-command-title {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
  color: #fff;
}

.mini-command-meta {
  margin-top: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 1300px) {
  .ai-command-layout {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-command-layout {
    grid-template-columns: 1fr;
  }

  .command-span-2 {
    grid-column: span 1;
  }
}

/* Premium Buy Now Card Upgrade */
.buy-now-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: stretch;
}

.buy-now-media {
  position: relative;
  min-height: 118px;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.buy-now-media img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  display: block;
}

.buy-now-no-img {
  height: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  font-size: 28px;
  opacity: 0.65;
}

.buy-now-verdict {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(247,212,81,0.4);
  color: #f7d451;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.buy-now-content {
  min-width: 0;
}

.buy-now-pressure {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.buy-now-pressure span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247,212,81,0.65), rgba(0,220,140,0.8));
}

.buy-now-card.buy-now .buy-now-pressure span {
  background: linear-gradient(90deg, rgba(255,199,40,0.75), rgba(255,80,80,0.9));
}

.buy-now-card.strong-buy .buy-now-pressure span {
  background: linear-gradient(90deg, rgba(0,220,140,0.55), rgba(247,212,81,0.85));
}

.buy-now-card.buy-now .buy-now-verdict {
  background: rgba(247,212,81,0.16);
  border-color: rgba(247,212,81,0.85);
}

.buy-now-card.strong-buy .buy-now-verdict {
  background: rgba(0,220,140,0.13);
  border-color: rgba(0,220,140,0.55);
  color: #56f0a6;
}

@media (max-width: 760px) {
  .buy-now-card {
    grid-template-columns: 1fr;
  }

  .buy-now-media {
    min-height: 170px;
  }

  .buy-now-media img {
    min-height: 170px;
  }
}

/* Live AI Market Ticker */
.market-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.market-ticker-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 950;
  color: #f7d451;
  letter-spacing: 0.08em;
}

.market-ticker {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.market-ticker-track {
  display: inline-flex;
  gap: 18px;
  white-space: nowrap;
  min-width: max-content;
  animation: tickerMove 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
}

.ticker-buy {
  border-color: rgba(247,212,81,0.45);
  color: #f7d451;
}

.ticker-profit {
  border-color: rgba(0,220,140,0.4);
  color: #57f0ab;
}

.ticker-drop {
  border-color: rgba(255,120,120,0.35);
}

@keyframes tickerMove {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Single Signal Ticker Override */
.market-ticker-track {
  animation: none !important;
  width: 100%;
}

.ticker-single {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  transition: 0.2s ease;
  max-width: 720px;
  margin: 0 auto;
}

.ticker-single:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.095);
}

/* Premium Modal Header */
.premium-modal-head {
  align-items: flex-start;
  gap: 18px;
}

.modal-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.modal-hero-img {
  width: 150px;
  height: 105px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.modal-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-info {
  min-width: 0;
}

.modal-hero-info h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.modal-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modal-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(247,212,81,0.1);
  border: 1px solid rgba(247,212,81,0.26);
  color: #f7d451;
  font-size: 11px;
  font-weight: 850;
}

.modal-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 760px) {
  .modal-hero {
    grid-template-columns: 1fr;
  }

  .modal-hero-img {
    width: 100%;
    height: 190px;
  }

  .premium-modal-head {
    flex-direction: column;
  }

  .modal-head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Modal AI Verdict Hero */
.modal-ai-verdict {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(247,212,81,0.12), transparent 34%),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-ai-verdict.buy-now {
  border-color: rgba(247,212,81,0.7);
  box-shadow: 0 0 0 1px rgba(247,212,81,0.16), 0 18px 60px rgba(247,212,81,0.08);
}

.modal-ai-verdict.strong-buy {
  border-color: rgba(0,220,140,0.48);
  box-shadow: 0 0 0 1px rgba(0,220,140,0.12);
}

.modal-ai-verdict.pass {
  border-color: rgba(255,80,80,0.48);
}

.modal-ai-title {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 950;
  color: #f7d451;
  letter-spacing: -0.04em;
}

.modal-ai-reason {
  margin-top: 7px;
  max-width: 620px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.modal-ai-score {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f7d451;
  font-size: 22px;
  font-weight: 950;
  background: rgba(247,212,81,0.1);
  border: 1px solid rgba(247,212,81,0.34);
}

@media (max-width: 760px) {
  .modal-ai-verdict {
    align-items: flex-start;
  }

  .modal-ai-score {
    width: 62px;
    height: 62px;
    font-size: 18px;
  }
}

/* Compact AI Execution Card */
.intel-execution-card {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid rgba(247,212,81,0.85);
}

.intel-execution-title {
  margin-top: 5px;
  color: #f7d451;
  font-size: 18px;
  font-weight: 950;
}

.intel-execution-copy {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

/* AI Analysis Streaming Feel */
.ai-scan-box {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(247,212,81,0.10), transparent 36%),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}

.ai-scan-title {
  color: #f7d451;
  font-weight: 950;
  margin-bottom: 12px;
}

.ai-scan-step {
  padding: 9px 10px;
  margin-top: 7px;
  border-radius: 12px;
  color: rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.25s ease;
}

.ai-scan-step.active {
  color: #fff;
  background: rgba(247,212,81,0.10);
  border-color: rgba(247,212,81,0.28);
  transform: translateX(4px);
}

/* AI Market Radar */
.radar-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: 0.22s ease;
  overflow: hidden;
}

.radar-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.075);
}

.radar-item.high {
  border-color: rgba(247,212,81,0.35);
}

.radar-item.critical {
  border-color: rgba(255,90,90,0.45);
  box-shadow: 0 0 24px rgba(255,90,90,0.08);
}

.radar-pulse {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(247,212,81,0.8);
  box-shadow: 0 0 18px rgba(247,212,81,0.7);
  animation: radarPulse 1.8s infinite;
}

.radar-item.critical .radar-pulse {
  background: rgba(255,90,90,0.9);
  box-shadow: 0 0 18px rgba(255,90,90,0.8);
}

.radar-content {
  flex: 1;
  min-width: 0;
}

.radar-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.radar-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.radar-priority {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
}

.radar-priority.high {
  color: #f7d451;
  border: 1px solid rgba(247,212,81,0.28);
}

.radar-priority.critical {
  color: #ff8f8f;
  border: 1px solid rgba(255,90,90,0.35);
}

.radar-message {
  margin-top: 7px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes radarPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.55;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dealer Competition Pressure */
.competition-pressure-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}

.competition-pressure-card.high {
  border-color: rgba(247,212,81,0.48);
  box-shadow: 0 0 0 1px rgba(247,212,81,0.08);
}

.competition-pressure-card.critical {
  border-color: rgba(255,80,80,0.55);
  box-shadow: 0 0 0 1px rgba(255,80,80,0.10), 0 18px 60px rgba(255,80,80,0.08);
}

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

.pressure-title {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 950;
  color: #f7d451;
}

.pressure-copy {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.68);
}

.pressure-score {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f7d451;
  font-size: 18px;
  font-weight: 950;
  background: rgba(247,212,81,0.10);
  border: 1px solid rgba(247,212,81,0.34);
}

.pressure-bar {
  height: 8px;
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.pressure-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247,212,81,0.75), rgba(255,85,85,0.85));
  transition: width 0.5s ease;
}

.pressure-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pressure-reasons span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 700;
}

/* Lifecycle Engine */
.lifecycle-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}

.lifecycle-card.hot {
  border-color: rgba(255,90,90,0.45);
}

.lifecycle-card.active {
  border-color: rgba(247,212,81,0.35);
}

.lifecycle-card.cool,
.lifecycle-card.stale {
  border-color: rgba(120,160,255,0.25);
}

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

.lifecycle-title {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 950;
  color: #f7d451;
}

.lifecycle-copy {
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
}

.lifecycle-temp {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 950;
  color: #f7d451;
  border: 1px solid rgba(247,212,81,0.3);
  background: rgba(247,212,81,0.08);
}

.lifecycle-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
  background: rgba(255,255,255,0.08);
}

.lifecycle-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(120,160,255,0.85),
      rgba(247,212,81,0.9),
      rgba(255,90,90,0.9)
    );
  transition: width 0.45s ease;
}

.lifecycle-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lifecycle-signals span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 700;
}

/* Executive Market Command Center */
.executive-intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 16px;
}

.exec-card {
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(247,212,81,0.10), transparent 35%),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  min-height: 132px;
}

.exec-label {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.exec-value {
  margin-top: 10px;
  color: #f7d451;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.exec-value.small {
  font-size: 20px;
  line-height: 1.1;
}

.exec-copy {
  margin-top: 10px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.42;
}

@media (max-width: 1300px) {
  .executive-intel-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .executive-intel-grid {
    grid-template-columns: 1fr;
  }
}

/* Acquisition Heatmap */

.heatmap-section {
  margin: 18px 0 22px;
}

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-headline h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.section-headline p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
}

.heatmap-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  min-height: 190px;

  background:
    radial-gradient(circle at top left, rgba(247,212,81,0.10), transparent 35%),
    rgba(255,255,255,0.045);

  border: 1px solid rgba(255,255,255,0.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.heatmap-card:hover {
  transform: translateY(-3px);
}

.heatmap-card.hot {
  border-color: rgba(255,90,90,0.38);
  box-shadow: 0 20px 60px rgba(255,90,90,0.08);
}

.heatmap-card.active {
  border-color: rgba(247,212,81,0.30);
  box-shadow: 0 20px 60px rgba(247,212,81,0.06);
}

.heatmap-card.cool {
  border-color: rgba(120,160,255,0.30);
}

.heatmap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heatmap-category {
  font-size: 16px;
  font-weight: 900;
}

.heatmap-status {
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.heatmap-score {
  margin-top: 18px;
  font-size: 54px;
  line-height: 1;
  font-weight: 950;
  color: #f7d451;
}

.heatmap-metrics {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heatmap-metrics div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heatmap-metrics span {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}

.heatmap-metrics strong {
  font-size: 13px;
}

@media (max-width: 1600px) {
  .heatmap-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .heatmap-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}


/* =========================================================
   2026 UI Refresh - calmer color, cleaner hierarchy, tighter UI
   ========================================================= */
:root {
  --gold-500: #d8a728;
  --gold-400: #f0c95a;
  --gold-300: #ffe08a;
  --gold-700: #9b741c;
  --ink-1000: #080b10;
  --ink-900: #0d1118;
  --ink-800: #141922;
  --ink-700: #1b2230;
  --ink-600: #2a3444;
  --ink-500: #3e4a5d;
  --ink-300: #9aa8bc;
  --ink-200: #c8d1de;
  --ink-100: #f3f6fa;
  --good: #31d59a;
  --warn: #f4b740;
  --bad: #ff6b6b;
  --info: #5ac8fa;
  --accent-blue: #6ea8fe;
  --accent-teal: #3dd6c6;
  --accent-rose: #ff7a90;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.05) inset, 0 14px 34px rgba(0,0,0,.22);
  --shadow-2: 0 20px 60px rgba(0,0,0,.36);
  --gold-glow: 0 0 0 1px rgba(240,201,90,.28), 0 12px 32px rgba(216,167,40,.12);
}

html, body {
  background: #080b10;
  color: var(--ink-100);
  font-size: 15px;
  line-height: 1.5;
}

body {
  background-image: linear-gradient(180deg, #0c1118 0%, #080b10 42%, #0b0e14 100%);
}

h1, h2, h3, h4,
.lead-title,
.kpi-value,
.exec-value,
.heatmap-score,
.intel-buy-title,
.modal-ai-title,
.pressure-title,
.lifecycle-title {
  letter-spacing: 0 !important;
}

h1 {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 750;
}

h2, .section-headline h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 760;
}

h3, .kpi-label, .exec-label, .script-title, .pipe-col-head {
  letter-spacing: .05em;
}

.muted, .topbar-sub, .exec-copy, .lead-meta, .buy-now-meta,
.modal-ai-reason, .pressure-copy, .lifecycle-copy, .section-headline p {
  color: var(--ink-200) !important;
}

.app {
  background: transparent;
}

.sidebar {
  background: #0a0e15;
  border-right: 1px solid rgba(200,209,222,.1);
  padding: 26px 18px;
}

.brand {
  gap: 12px;
  font-size: 16px;
  margin-bottom: 28px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, var(--gold-300), var(--accent-teal));
  box-shadow: 0 0 0 5px rgba(61,214,198,.1);
}

.nav {
  gap: 6px;
}

.nav-item {
  min-height: 42px;
  border-radius: 8px;
  color: #d8e0ec;
  font-weight: 650;
  padding: 12px 12px;
}

.nav-item:hover {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.08);
}

.nav-item[aria-current="page"] {
  background: linear-gradient(90deg, rgba(240,201,90,.16), rgba(110,168,254,.09));
  border-color: rgba(240,201,90,.32);
  box-shadow: inset 3px 0 0 var(--gold-400);
}

.nav-count {
  background: rgba(255,255,255,.07);
  color: #dce5f2;
}

.user-pill,
.panel,
.kpi,
.lead-card,
.pipe-col,
.pipe-card,
.modal-card,
.login-card,
.exec-card,
.heatmap-card,
.buy-now-card,
.mini-command-card,
.radar-item,
.competition-pressure-card,
.lifecycle-card,
.intel-card,
.ai-scan-box,
.intel-execution-card,
.live-feed,
.market-ticker-wrap {
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border: 1px solid rgba(200,209,222,.12) !important;
  box-shadow: var(--shadow-1);
}

.panel, .kpi, .lead-card, .exec-card, .heatmap-card {
  backdrop-filter: blur(10px);
}

.panel-head,
.section-headline,
.modal-section-head,
.topbar {
  align-items: center;
}

.panel-head h2,
.section-headline h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main {
  padding: 30px 34px 48px;
}

.topbar {
  background: rgba(8,11,16,.88);
  border-bottom: 1px solid rgba(200,209,222,.08);
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
}

.kpi-grid,
.executive-intel-grid,
.heatmap-grid,
.ai-command-layout {
  gap: 16px;
}

.kpi {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label,
.exec-label,
.intel-label {
  color: #aebbd0 !important;
  font-size: 11px;
  font-weight: 800;
}

.kpi-value,
.exec-value,
.heatmap-score,
.intel-value {
  color: #fff7d8 !important;
  text-shadow: 0 0 22px rgba(240,201,90,.1);
}

.kpi-value {
  font-size: 34px;
}

.btn, .icon-btn, input, select, textarea {
  border-radius: 8px !important;
}

.btn {
  min-height: 40px;
  border-color: rgba(200,209,222,.14);
  background: rgba(255,255,255,.065);
  color: #f4f7fb;
  font-weight: 750;
}

.btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(200,209,222,.22);
}

.btn-primary {
  background: linear-gradient(180deg, #ffe08a, #d8a728) !important;
  color: #161106 !important;
  border-color: rgba(255,224,138,.7) !important;
}

.btn-ghost {
  background: rgba(255,255,255,.035);
  color: #d4deeb;
}

.icon-btn {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.06);
}

input, select, textarea {
  background: rgba(5,8,13,.72) !important;
  border-color: rgba(200,209,222,.16) !important;
  color: #f5f8fc !important;
}

input::placeholder, textarea::placeholder {
  color: #7f8ea3;
}

.filters {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(200,209,222,.1);
  border-radius: 8px;
  padding: 12px;
}

.lead-grid {
  gap: 16px;
}

.lead-card {
  overflow: hidden;
}

.lead-card:hover,
.buy-now-card:hover,
.mini-command-card:hover,
.radar-item:hover,
.heatmap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240,201,90,.34) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.lead-body {
  gap: 12px;
  padding: 16px;
}

.lead-title,
.buy-now-title,
.mini-command-title,
.radar-title {
  color: #f8fbff !important;
  font-weight: 780;
}

.lead-stats {
  gap: 8px;
  background: transparent;
  border: 0;
}

.lead-stats .stat,
.modal-stat,
.ai-out,
.timeline-item,
.user-row,
.leaderboard .row,
.lead-list.compact .row {
  border-radius: 8px !important;
  background: rgba(0,0,0,.18) !important;
  border: 1px solid rgba(200,209,222,.1) !important;
}

.lead-stats .stat .label {
  color: #9facbf;
  letter-spacing: .05em;
}

.lead-ai,
.intel-strategy {
  background: rgba(240,201,90,.07) !important;
  border: 1px solid rgba(240,201,90,.16) !important;
  border-left: 3px solid var(--gold-400) !important;
}

.badge, .score-chip, .modal-badge, .ticker-item,
.pressure-reasons span, .lifecycle-signals span, .intel-pill {
  border-radius: 999px !important;
  font-weight: 800;
}

.score-chip.hot,
.deal-chip.great,
.deal-chip.hot,
.ticker-buy,
.buy-now-top,
.market-ticker-label,
.mini-command-score,
.mini-command-profit {
  color: var(--gold-300) !important;
}

.badge.stage-engaged,
.radar-priority.high {
  color: var(--accent-blue) !important;
  border-color: rgba(110,168,254,.35) !important;
  background: rgba(110,168,254,.1) !important;
}

.badge.stage-stocked,
.badge.won,
.badge.is-active,
.ticker-profit {
  color: var(--accent-teal) !important;
  border-color: rgba(61,214,198,.35) !important;
  background: rgba(61,214,198,.1) !important;
}

.pipe-active {
  gap: 14px;
}

.pipe-col {
  padding: 14px;
  min-height: 180px;
}

.pipe-col-head {
  border-bottom: 1px solid rgba(200,209,222,.09);
  padding-bottom: 10px;
}

.pipe-card {
  padding: 12px;
}

.market-msg.user {
  background: rgba(110,168,254,.16) !important;
  border: 1px solid rgba(110,168,254,.22);
}

.market-msg.bot {
  background: rgba(255,255,255,.05) !important;
}

.live-feed {
  width: 360px;
  background: rgba(10,14,21,.94) !important;
}

.live-feed-head {
  background: rgba(255,255,255,.035);
}

.buy-now-card,
.mini-command-card,
.radar-item {
  margin-bottom: 12px;
}

.buy-now-card.buy-now,
.buy-now-card.strong-buy,
.buy-now-panel,
.modal-ai-verdict.buy-now,
.modal-ai-verdict.strong-buy,
.competition-pressure-card.high,
.lifecycle-card.active,
.heatmap-card.active {
  box-shadow: 0 0 0 1px rgba(240,201,90,.08), 0 16px 42px rgba(0,0,0,.24) !important;
}

.buy-now-media,
.modal-hero-img {
  border-radius: 8px !important;
  border-color: rgba(200,209,222,.14) !important;
}

.modal-backdrop {
  background: rgba(4,7,11,.72) !important;
  backdrop-filter: blur(7px);
}

.modal-head,
.modal-foot {
  background: rgba(255,255,255,.025);
  border-color: rgba(200,209,222,.1);
}

.modal-hero-info h2 {
  line-height: 1.15;
}

.heatmap-card {
  min-height: 176px;
}

.heatmap-score {
  font-size: 48px;
}

.heatmap-status {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.exec-card,
.heatmap-card,
.modal-ai-verdict,
.ai-scan-box {
  background-image: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)) !important;
}

.toast {
  border-radius: 8px !important;
  background: #121821 !important;
}

@media (max-width: 1100px) {
  .main { padding: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .sidebar { padding: 18px; }
  .main { padding: 18px; }
  .topbar { padding-left: 18px; padding-right: 18px; }
  .filters { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .section-headline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .live-feed { width: auto; }
}

/* Keep the live market feed from covering the working dashboard area. */
.live-feed {
  width: 320px !important;
  max-height: 58px !important;
  transition: max-height .18s ease, box-shadow .18s ease;
}
.live-feed .live-feed-body {
  display: none;
}
.live-feed:hover,
.live-feed:focus-within {
  max-height: 380px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.42) !important;
}
.live-feed:hover .live-feed-body,
.live-feed:focus-within .live-feed-body {
  display: block;
  max-height: 310px;
}
.live-feed-head {
  min-height: 58px;
}
@media (max-width: 900px) {
  .live-feed {
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
  }
}

/* Lead card text and action polish */
.lead-card .lead-title {
  font-size: 15px;
  line-height: 1.28;
  text-transform: uppercase;
}
.lead-card .score-chip {
  background: rgba(240,201,90,.12) !important;
  border-color: rgba(240,201,90,.42) !important;
  color: #ffe08a !important;
}
.lead-stats .stat .label {
  color: #b8c5d8 !important;
}
.lead-stats .stat .value {
  font-size: 15px !important;
  color: #f8fbff !important;
}
.lead-stats .stat .delta.good {
  color: #31d59a !important;
  font-weight: 800;
}
.lead-ai {
  color: #f4f7fb !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.lead-actions .lead-primary-action,
.lead-actions .lead-secondary-action {
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.lead-actions .lead-primary-action:hover {
  background: linear-gradient(180deg, #35e0b7, #10b981) !important;
  border-color: rgba(53,224,183,.9) !important;
  color: #03130f !important;
  box-shadow: 0 12px 28px rgba(16,185,129,.22) !important;
  transform: translateY(-1px);
}
.lead-actions .lead-secondary-action:hover {
  background: rgba(110,168,254,.18) !important;
  border-color: rgba(110,168,254,.55) !important;
  color: #d9e8ff !important;
  box-shadow: 0 10px 24px rgba(110,168,254,.14) !important;
  transform: translateY(-1px);
}
.lead-actions .lead-primary-action:active,
.lead-actions .lead-secondary-action:active {
  transform: translateY(0);
}

/* Professional lead detail modal refresh */
.modal {
  padding: 18px !important;
  align-items: center !important;
}
.modal-backdrop {
  background: rgba(3, 6, 10, .78) !important;
  backdrop-filter: blur(8px) saturate(115%) !important;
}
.modal-card {
  width: min(980px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 28px) !important;
  border-radius: 10px !important;
  background: #0d121a !important;
  border: 1px solid rgba(200, 209, 222, .16) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset !important;
}
.modal-head.premium-modal-head {
  padding: 20px 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border-bottom: 1px solid rgba(200,209,222,.12) !important;
}
.modal-hero {
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 18px !important;
}
.modal-hero-img {
  width: 170px !important;
  height: 124px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(200,209,222,.18) !important;
  background: #111820 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.28) !important;
}
.modal-hero-info .muted.small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d2e2 !important;
  font-size: 12px !important;
  margin-bottom: 6px;
}
.modal-hero-info h2 {
  max-width: 680px;
  margin: 0 !important;
  color: #f8fbff !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  line-height: 1.05 !important;
  font-weight: 820 !important;
}
.modal-hero-badges {
  margin-top: 14px !important;
  gap: 8px !important;
}
.modal-badge {
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(240,201,90,.11) !important;
  border: 1px solid rgba(240,201,90,.34) !important;
  color: #ffe08a !important;
  font-size: 11px !important;
}
.modal-head-actions .btn,
.modal-head-actions .icon-btn {
  min-height: 38px !important;
  border-radius: 8px !important;
}
.modal-head-actions .btn:hover,
.modal-head-actions .icon-btn:hover {
  background: rgba(110,168,254,.16) !important;
  border-color: rgba(110,168,254,.45) !important;
  color: #dbeaff !important;
}
.modal-body {
  padding: 22px !important;
  gap: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 220px),
    #0b1017 !important;
}
.modal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.modal-stat {
  min-height: 92px;
  padding: 15px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border: 1px solid rgba(200,209,222,.13) !important;
  box-shadow: none !important;
}
.modal-stat .muted,
.modal-stat > .small:first-child {
  color: #aebbd0 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}
.modal-stat-value {
  margin-top: 12px !important;
  color: #fff4cc !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}
.modal-section {
  gap: 12px !important;
}
.modal-section-head {
  padding-top: 4px;
}
.modal-section-head h3,
.modal-section h3 {
  color: #d7e1ef !important;
  font-size: 12px !important;
  letter-spacing: .055em !important;
  font-weight: 850 !important;
}
.modal-ai-verdict,
.intel-execution-card,
.ai-scan-box,
.ai-out,
.competition-pressure-card,
.lifecycle-card {
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border: 1px solid rgba(200,209,222,.13) !important;
  box-shadow: none !important;
}
.modal-ai-verdict {
  padding: 18px !important;
  margin-bottom: 16px !important;
}
.modal-ai-title,
.intel-execution-title,
.pressure-title,
.lifecycle-title,
.ai-scan-title {
  color: #ffe08a !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}
.modal-ai-reason,
.intel-execution-copy,
.pressure-copy,
.lifecycle-copy,
.ai-out {
  color: #d6e0ee !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.modal-ai-score,
.pressure-score,
.lifecycle-temp {
  width: 72px !important;
  height: 72px !important;
  color: #fff4cc !important;
  background: rgba(240,201,90,.1) !important;
  border: 1px solid rgba(240,201,90,.35) !important;
  box-shadow: 0 0 28px rgba(240,201,90,.08) !important;
}
.intel-wrap {
  gap: 16px !important;
  margin-top: 0 !important;
}
.intel-grid {
  gap: 12px !important;
}
.intel-card {
  min-height: 108px !important;
  padding: 16px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.022)) !important;
  border: 1px solid rgba(200,209,222,.13) !important;
}
.intel-label {
  color: #aebbd0 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
}
.intel-value {
  color: #fff4cc !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
}
.ai-scan-step {
  border-radius: 8px !important;
  color: #aebbd0 !important;
}
.ai-scan-step.active {
  color: #f8fbff !important;
  background: rgba(110,168,254,.12) !important;
  border-color: rgba(110,168,254,.3) !important;
  transform: none !important;
}
.timeline-item,
.dupe-warning,
.dupe-panel,
.note-form textarea {
  border-radius: 8px !important;
}
.modal-foot {
  padding: 14px 22px !important;
  background: rgba(9,13,19,.96) !important;
  border-top: 1px solid rgba(200,209,222,.12) !important;
}
.modal-foot .btn {
  border-radius: 8px !important;
  min-height: 40px !important;
}
.modal-foot .btn-primary:hover {
  background: linear-gradient(180deg, #35e0b7, #10b981) !important;
  border-color: rgba(53,224,183,.9) !important;
  color: #03130f !important;
  box-shadow: 0 12px 28px rgba(16,185,129,.22) !important;
}
.modal-foot .btn-ghost:hover,
.modal-foot .link:hover {
  background: rgba(110,168,254,.16) !important;
  border-color: rgba(110,168,254,.45) !important;
  color: #dbeaff !important;
}
.modal-foot-right {
  gap: 10px !important;
}
.modal-foot select,
.modal-foot .select-sm {
  min-width: 132px;
  background: #060a10 !important;
}
@media (max-width: 820px) {
  .modal-card { width: calc(100vw - 18px) !important; }
  .modal-head.premium-modal-head { padding: 16px !important; }
  .modal-body { padding: 16px !important; }
  .modal-hero { grid-template-columns: 1fr !important; }
  .modal-hero-img { width: 100% !important; height: 190px !important; }
  .modal-grid, .intel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .modal-foot { align-items: stretch !important; flex-direction: column !important; }
  .modal-foot-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
  .modal-grid, .intel-grid { grid-template-columns: 1fr !important; }
  .modal-foot-right { flex-direction: column; align-items: stretch !important; }
  .modal-foot-right .btn, .modal-foot-right select { width: 100%; }
}

/* Keep floating widgets out of focused modal workflows. */
body:has(.modal:not([hidden])) .live-feed,
body:has(.modal[style*="display: grid"]) .live-feed,
body:has(.modal-card) .live-feed {
  display: none !important;
}

/* Compact AI coach metric cards inside lead detail modal */
.modal-card .intel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.modal-card .intel-card {
  min-height: 74px !important;
  height: auto !important;
  padding: 12px 14px !important;
  gap: 8px !important;
  justify-content: center !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)) !important;
}
.modal-card .intel-label {
  font-size: 10px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  letter-spacing: .04em !important;
  color: #aebbd0 !important;
}
.modal-card .intel-value {
  font-size: 22px !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.modal-card .intel-card:has(.intel-value:empty) {
  display: none !important;
}
.modal-card .intel-wrap {
  gap: 12px !important;
}
.modal-card .intel-strategy,
.modal-card .intel-execution-card {
  padding: 14px !important;
  margin-bottom: 10px !important;
}
@media (max-width: 820px) {
  .modal-card .intel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .modal-card .intel-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Compact AI coach loading/analyzing state too */
.modal-card .ai-scan-box {
  padding: 14px !important;
}
.modal-card .ai-scan-title {
  margin-bottom: 10px !important;
  font-size: 18px !important;
}
.modal-card .ai-scan-step {
  padding: 8px 10px !important;
  margin-top: 6px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
}
.modal-card .modal-section:has(.ai-scan-box),
.modal-card .modal-section:has(.intel-grid) {
  gap: 10px !important;
}

/* Second pass: make completed AI coach results much denser */
.modal-card .intel-execution-card {
  min-height: 132px !important;
  padding: 14px 16px !important;
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
}
.modal-card .intel-execution-title {
  font-size: 17px !important;
  margin: 0 !important;
}
.modal-card .intel-execution-copy {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.modal-card .intel-grid {
  align-items: start !important;
  grid-auto-rows: 82px !important;
}
.modal-card .intel-card {
  min-height: 82px !important;
  height: 82px !important;
  padding: 10px 12px !important;
  align-content: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.modal-card .intel-card .intel-value,
.modal-card .intel-value {
  font-size: 20px !important;
  text-align: left !important;
}
.modal-card .intel-card .intel-label {
  min-height: 12px !important;
}
.modal-card .intel-strategy {
  padding: 12px 14px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* Dashboard focus pass: keep the GM view executive and action-first. */
#view-dashboard .command-panel:has(#hotBuyList),
#view-dashboard .command-panel:has(#bigProfitList),
#view-dashboard .command-panel:has(#fastFlipList),
#view-dashboard .command-panel:has(#freshLeadList),
#view-dashboard .command-panel:has(#marketAlerts),
#view-dashboard .command-panel:has(#sourceIntel),
#view-dashboard .command-panel:has(#sourceBreakdown),
#view-dashboard .command-panel:has(#topLeads) {
  display: none !important;
}

#view-dashboard .ai-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

#view-dashboard .buy-now-panel {
  max-width: none;
}

#view-dashboard .premium-intelligence-layer {
  margin-top: 28px;
}

#view-dashboard .premium-intelligence-layer .intel-header,
#view-dashboard .heatmap-section,
#view-dashboard .buy-now-panel,
#view-dashboard .intel-card {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

#view-dashboard .hottest-card,
#view-dashboard .intel-card:has(#undervaluedList),
#view-dashboard .intel-card:has(#floridaRealMap) {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  #view-dashboard .premium-intelligence-layer {
    margin-top: 20px;
  }
}

/* Final dashboard duplicate cleanup. */
#view-dashboard .command-panel:has(#freshList),
#view-dashboard .command-panel:has(#dashboardAlerts) {
  display: none !important;
}



.scraper-health-card { position: relative; overflow: hidden; }
.scraper-health-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.scraper-health-summary div { border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.58); border-radius: 8px; padding: 10px 12px; }
.scraper-health-summary strong { display: block; color: #f8fafc; font-size: 22px; line-height: 1; }
.scraper-health-summary span { display: block; margin-top: 5px; color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.scraper-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scraper-source { display: flex; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 8px; background: rgba(2, 6, 23, 0.42); }
.scraper-source-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.scraper-source-main strong, .scraper-source-main small, .scraper-source-meta small { display: block; }
.scraper-source-main strong { color: #f8fafc; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scraper-source-main small, .scraper-source-meta small { color: #94a3b8; font-size: 11px; margin-top: 4px; }
.scraper-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 4px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 14px rgba(239, 68, 68, .7); }
.scraper-source.live .scraper-dot { background: #22c55e; box-shadow: 0 0 14px rgba(34, 197, 94, .7); }
.scraper-source.capture-ready .scraper-dot { background: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, .7); }
.scraper-source-meta { text-align: right; flex: 0 0 auto; }
.scraper-source-meta span { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; color: #dbeafe; background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.scraper-source.needs-review .scraper-source-meta span { color: #fecaca; background: rgba(239, 68, 68, .12); border-color: rgba(248, 113, 113, .22); }
.scraper-source-meta b { display: block; color: #f8fafc; font-size: 16px; margin-top: 6px; }
.scraper-health-empty { grid-column: 1 / -1; color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 8px; padding: 16px; }
@media (max-width: 900px) { .scraper-health-grid { grid-template-columns: 1fr; } }

.collector-download-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.collector-download-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
}

.collector-download-card p,
.collector-admin-body p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.collector-download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.collector-download-link {
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: none;
}

.collector-download-link:hover {
  color: #dbeafe;
}

.collector-admin-panel {
  margin-top: 18px;
}

.collector-admin-body {
  padding-top: 4px;
}


.lead-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lead-select-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,12,19,.82);
  color: #d9e4ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}
.lead-select-toggle.selected {
  background: rgba(245, 197, 66, .18);
  border-color: rgba(245, 197, 66, .7);
  color: #f5cf62;
}
.lead-card.selected {
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .7), 0 18px 32px rgba(0,0,0,.32);
}
@media (max-width: 960px) {
  .lead-admin-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* GH FIX: clean seller lead bulk select circle */
.lead-select-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 90, .75);
  background: rgba(8, 11, 16, .82);
  color: #ffd45a;
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

.lead-select-toggle.selected {
  background: linear-gradient(135deg, #f7d767, #c99a22);
  color: #111;
  border-color: #ffe79a;
}

.lead-card.selected {
  border-color: #f7d767 !important;
  box-shadow: 0 0 0 2px rgba(247, 215, 103, .45), 0 18px 40px rgba(0,0,0,.45);
}

/* GH FIX: move bulk select circle to bottom-right of image */
.lead-card .lead-select-toggle {
  top: 178px !important;
  right: 12px !important;
}

/* Hide unused bottom admin blocks */
#activityPanel,
#leaderboard,
#leaderboardPanel,
.admin-bottom-grid,
.admin-activity-card {
  display: none !important;
}

/* Hide dashboard intelligence sections when Admin view is active */
body:has(#view-admin:not([hidden])) .premium-intelligence-layer,
body:has(#view-admin:not([hidden])) .top-hot-vehicles-section,
body:has(#view-admin:not([hidden])) #topLeads {
  display: none !important;
}

/* Hide app chrome before login */
body:not(.is-authenticated) .sidebar,
body:not(.is-authenticated) #ghCopilotFab,
body:not(.is-authenticated) .gh-copilot-fab,
body:not(.is-authenticated) .floating-copilot,
body:not(.is-authenticated) [id*="copilot"][class*="fab"] {
  display: none !important;
}

body:not(.is-authenticated) main,
body:not(.is-authenticated) .main {
  margin-left: 0 !important;
}

/* Login screen should not show sidebar/app navigation */
body:has(#loginView:not([hidden])) aside,
body:has(#loginView:not([hidden])) nav,
body:has(#loginView:not([hidden])) .sidebar,
body:has(#loginView:not([hidden])) .app-sidebar,
body:has(#loginView:not([hidden])) .side-nav,
body:has(#loginView:not([hidden])) .left-rail {
  display: none !important;
}

body:has(#loginView:not([hidden])) .app,
body:has(#loginView:not([hidden])) .app-shell,
body:has(#loginView:not([hidden])) main {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* AcquireIQ final login lock: hide app shell/sidebar when login is visible */
#loginOverlay:not([hidden]) ~ #app,
#loginOverlay:not([hidden]) ~ #app .sidebar,
#loginOverlay:not([hidden]) ~ .app,
#loginOverlay:not([hidden]) ~ .sidebar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide toast/status bubbles on login screen */
#loginOverlay:not([hidden]) ~ .toast,
#loginOverlay:not([hidden]) ~ #toast,
#loginOverlay:not([hidden]) ~ .toast-container,
#loginOverlay:not([hidden]) ~ [class*="toast"],
body:has(#loginOverlay:not([hidden])) .toast,
body:has(#loginOverlay:not([hidden])) #toast,
body:has(#loginOverlay:not([hidden])) .toast-container,
body:has(#loginOverlay:not([hidden])) [class*="toast"] {
  display: none !important;
  visibility: hidden !important;
}

/* AcquireIQ Copilot clickable cards */
.copilot-result-card {
  cursor: pointer;
  position: relative;
}

.copilot-result-card::after {
  content: "Click card for full lead details";
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.copilot-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229,199,122,.55) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

/* AcquireIQ Copilot CRM badges */
.copilot-crm-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}

.copilot-crm-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.72);
  color:rgba(255,255,255,.82);
}

.copilot-crm-badge.status{
  border-color:rgba(34,197,94,.32);
  background:rgba(34,197,94,.12);
  color:#9ff7bd;
}

.copilot-crm-badge.assigned{
  border-color:rgba(229,199,122,.32);
  background:rgba(229,199,122,.10);
  color:#f8e7a2;
}
