/* ═══════════════════════════════════════════════════════════════
   Jasper 360 — CRM  ·  Matches Admin Dashboard Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=Inter:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables (mirrors admin.css) ── */
:root {
  --bg:       #000000;
  --surface:  #0f0f0d;
  --surface2: #181816;
  --border:   rgba(249,248,246,0.07);
  --accent:   #63d72a;
  --text:     #f9f8f6;
  --muted:    #7a7875;
  --success:  #63d72a;
  --danger:   #ef4444;
  --warning:  #f59e0b;
  --purple:   #a855f7;
  --blue:     #3b82f6;
  --r:        12px;
  --t:        0.18s cubic-bezier(0.4,0,0.2,1);
  --sw:       240px;
}

/* ── Animations ── */
@keyframes fade-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin     { to { transform:rotate(360deg); } }
@keyframes ai-pulse { 0%,100% { opacity:.6; } 50% { opacity:1; } }

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; font-family:'Inter','DM Sans',-apple-system,sans-serif; background:var(--bg); color:var(--text); }
body { display:flex; overflow:hidden; position:relative; }
a { color:inherit; text-decoration:none; }

/* Scrollbar */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(99,215,42,.2); border-radius:4px; }

/* ══════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════ */
.sidebar {
  width:var(--sw); min-width:var(--sw);
  background:rgba(0,0,0,.98);
  border-right:1px solid rgba(255,255,255,.05);
  display:flex; flex-direction:column;
  height:100vh; position:fixed; top:0; left:0; z-index:60;
  box-shadow:2px 0 20px rgba(0,0,0,.5);
}
.sidebar-logo {
  padding:14px 10px 12px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.sidebar-logo img { width:100%; height:auto; display:block; }

.sidebar-nav { padding:16px 12px; flex:1; overflow-y:auto; }
.nav-section {
  font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(113,113,122,.5); padding:18px 10px 8px;
}
.nav-item {
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:10px; cursor:pointer;
  font-size:14px; font-weight:500; letter-spacing:.01em;
  color:var(--muted); transition:var(--t); margin-bottom:3px; user-select:none;
}
.nav-item:hover { background:rgba(255,255,255,.05); color:var(--text); }
.nav-item.active {
  background:rgba(99,215,42,.14); color:var(--accent); font-weight:600;
}
.nav-item.active .nav-icon svg { stroke:var(--accent); }
.nav-icon { width:18px; height:18px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.nav-badge {
  margin-left:auto; background:rgba(99,215,42,.18); color:var(--accent);
  border-radius:20px; padding:2px 8px; font-size:10px; font-weight:700;
  font-family:'Share Tech Mono',monospace;
}

.sidebar-footer {
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; border-top:1px solid rgba(255,255,255,.05);
}
.avatar {
  width:34px; height:34px; border-radius:10px; flex-shrink:0;
  background:linear-gradient(135deg,rgba(99,215,42,.3),rgba(99,215,42,.1));
  border:1px solid rgba(99,215,42,.25);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--accent);
  font-family:'Orbitron',sans-serif;
}
.avatar-name { font-size:13px; font-weight:600; color:var(--text); }
.sidebar-back {
  display:flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:8px; cursor:pointer;
  font-size:12px; color:var(--muted); transition:var(--t);
  border:1px solid rgba(255,255,255,.07);
  margin:0 12px 12px;
}
.sidebar-back:hover { color:var(--text); background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.12); }

/* ══════════════════════════════════════════════════════
   MAIN / TOPBAR
   ══════════════════════════════════════════════════════ */
.main {
  margin-left:var(--sw);
  flex:1; display:flex; flex-direction:column;
  height:100vh; overflow:hidden;
}
.topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; height:60px; flex-shrink:0;
  background:rgba(0,0,0,.88); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.05);
  position:sticky; top:0; z-index:40;
}
.topbar-title {
  font-family:'Orbitron',sans-serif;
  font-size:15px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--text);
}
.topbar-actions { display:flex; align-items:center; gap:10px; }
.topbar-back {
  display:flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:8px; cursor:pointer;
  font-size:12px; color:var(--muted); transition:var(--t);
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07);
}
.topbar-back:hover { color:var(--text); background:rgba(255,255,255,.08); }

/* ══════════════════════════════════════════════════════
   VIEWS
   ══════════════════════════════════════════════════════ */
.content { flex:1; overflow-y:auto; padding:24px; }
.crm-view { display:none; animation:fade-in .2s ease; }
.crm-view.active { display:block; }

/* ══════════════════════════════════════════════════════
   BUTTONS (mirrors admin)
   ══════════════════════════════════════════════════════ */
.btn {
  padding:10px 18px; border-radius:8px; font-size:13px; font-weight:500;
  cursor:pointer; border:none; transition:var(--t);
  display:inline-flex; align-items:center; gap:8px;
  white-space:nowrap; user-select:none; letter-spacing:.01em;
  font-family:'Inter','DM Sans',sans-serif; background:rgba(255,255,255,.06);
  color:var(--muted); border:1px solid rgba(255,255,255,.08);
}
.btn:active { transform:scale(.97); }
.btn-gold {
  background:var(--accent); color:#fff; border-color:transparent;
  box-shadow:0 2px 12px rgba(99,215,42,.25);
}
.btn-gold:hover { background:#52c21e; box-shadow:0 4px 18px rgba(99,215,42,.35); }
.btn-secondary { background:rgba(255,255,255,.06); color:var(--muted); border:1px solid rgba(255,255,255,.08); }
.btn-secondary:hover { background:rgba(255,255,255,.10); color:var(--text); }
.btn-danger { background:rgba(239,68,68,.08); color:var(--danger); border:1px solid rgba(239,68,68,.18); }
.btn-danger:hover { background:rgba(239,68,68,.16); }
.btn-sm  { padding:7px 14px; font-size:12px; border-radius:7px; }
.btn-xs  { padding:4px 10px; font-size:11px; border-radius:6px; }

/* ══════════════════════════════════════════════════════
   FORMS (mirrors admin)
   ══════════════════════════════════════════════════════ */
.fg  { margin-bottom:18px; }
.fl  { font-size:11px; color:var(--muted); letter-spacing:.04em; margin-bottom:8px; display:block; text-transform:uppercase; font-weight:600; }
.fi  {
  width:100%; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px; padding:11px 14px;
  color:var(--text); font-family:'Inter','DM Sans',sans-serif;
  font-size:13px; outline:none;
  transition:border-color .18s, box-shadow .18s;
}
.fi:focus { border-color:rgba(255,255,255,.25); box-shadow:0 0 0 3px rgba(255,255,255,.05); }
.fi::placeholder { color:var(--muted); }
select.fi {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2371717a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; padding-right:32px;
}
select.fi option { background:#181816; color:var(--text); }
.fr  { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fta { min-height:80px; resize:vertical; }

/* ══════════════════════════════════════════════════════
   STAT CARDS (dashboard)
   ══════════════════════════════════════════════════════ */
.stats-row {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:14px; margin-bottom:24px;
}
.stat-card {
  background:#0a0a0a;
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px; overflow:hidden;
  box-shadow:0 2px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  transition:transform .16s ease, box-shadow .16s ease;
}
.stat-card:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06); }
.sc-inner { display:flex; align-items:center; padding:20px 20px 18px; gap:14px; min-height:110px; }
.sc-text { flex:1; min-width:0; }
.sc-lbl { font-size:13px; font-weight:500; color:rgba(255,255,255,.7); margin-bottom:6px; }
.sc-num { font-size:34px; font-weight:700; color:#fff; line-height:1; letter-spacing:-.03em; }
.sc-sub { font-size:11px; color:var(--muted); margin-top:4px; }
.sc-icon {
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD — Pipeline breakdown
   ══════════════════════════════════════════════════════ */
.dash-grid {
  display:grid; grid-template-columns:1fr 1.4fr;
  gap:16px;
}
.dash-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:20px;
}
.dash-card-title {
  font-size:13px; font-weight:600; color:var(--text);
  margin-bottom:16px; letter-spacing:.01em;
}

.pb-row {
  display:flex; align-items:center; gap:10px;
  margin-bottom:10px;
}
.pb-label {
  display:flex; align-items:center; gap:7px;
  font-size:12px; color:var(--muted); min-width:120px;
}
.pb-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.pb-bar-track {
  flex:1; height:4px; background:rgba(255,255,255,.06);
  border-radius:4px; overflow:hidden;
}
.pb-bar-fill { height:100%; border-radius:4px; transition:width .4s ease; }
.pb-meta {
  display:flex; gap:10px; font-size:11px; color:var(--muted); min-width:80px;
  justify-content:flex-end;
}
.pb-val { color:var(--text); font-weight:600; }

/* ── Recent Activity ── */
.act-row {
  display:flex; align-items:flex-start; gap:12px;
  padding:10px 0; border-bottom:1px solid rgba(255,255,255,.04);
  cursor:pointer; transition:var(--t);
}
.act-row:last-child { border-bottom:none; }
.act-row:hover { opacity:.8; }
.act-icon { flex-shrink:0; margin-top:1px; display:flex; align-items:center; justify-content:center; width:20px; height:20px; }
.act-body { flex:1; min-width:0; }
.act-title { font-size:13px; font-weight:500; color:var(--text); }
.act-sub { font-size:11px; color:var(--muted); margin-top:2px; }
.act-right { text-align:right; flex-shrink:0; }
.act-time { font-size:11px; color:var(--muted); margin-bottom:4px; }
.act-outcome {
  font-size:10px; font-weight:600; border-radius:20px;
  padding:2px 8px; text-transform:capitalize;
}

/* ══════════════════════════════════════════════════════
   CONTACTS — filters + grid
   ══════════════════════════════════════════════════════ */
.contacts-toolbar {
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap; margin-bottom:18px;
}
.filter-pills { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
.filter-pill {
  display:flex; align-items:center; gap:5px;
  padding:6px 12px; border-radius:20px; cursor:pointer;
  font-size:12px; font-weight:500; border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04); color:var(--muted); transition:var(--t);
  user-select:none;
}
.filter-pill:hover { border-color:rgba(255,255,255,.14); color:var(--text); }
.filter-pill.active { background:rgba(99,215,42,.12); border-color:rgba(99,215,42,.3); color:var(--accent); }
.filter-count {
  background:rgba(255,255,255,.08); border-radius:20px;
  padding:1px 6px; font-size:10px; font-weight:700;
}
.filter-pill.active .filter-count { background:rgba(99,215,42,.2); }

.contacts-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:14px;
}
.contact-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:16px; cursor:pointer;
  transition:var(--t);
}
.contact-card:hover {
  border-color:rgba(255,255,255,.12); background:var(--surface2);
  transform:translateY(-1px);
}
.cc-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.cc-avatar {
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  background:var(--sc, #D0FF00); border:none;
  color:var(--sc-text, #111111); font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif;
}
.cc-info { flex:1; min-width:0; }
.cc-name { font-size:14px; font-weight:600; color:var(--text); }
.cc-role { font-size:11px; color:var(--muted); margin-top:2px; }
.stage-badge {
  padding:4px 10px; border-radius:20px; font-size:10px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; flex-shrink:0;
  background:var(--sc); color:var(--sc-text, #111111); border:none;
}
.cc-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.cc-del {
  display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:6px; border:none; cursor:pointer;
  background:transparent; color:var(--muted);
  opacity:0; transition:opacity .15s, color .15s, background .15s;
}
.contact-card:hover .cc-del { opacity:1; }
.cc-del:hover { color:var(--danger); background:rgba(244,91,105,.1); }
.cc-row {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:6px;
}
.cc-deal { font-size:15px; font-weight:700; color:var(--text); }
.cc-ints { font-size:11px; color:var(--muted); }
.cc-last { font-size:11px; color:var(--muted); margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cc-nextstep { font-size:11px; color:var(--accent); font-weight:500; margin-bottom:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cc-tags { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px; }
.cc-followup {
  display:flex; align-items:center; gap:5px;
  font-size:11px; color:var(--muted); margin-bottom:6px;
}
.cc-followup--overdue { color:var(--danger); font-weight:600; }
.cc-followup--today   { color:var(--warning); font-weight:600; }
.cc-footer { display:flex; align-items:center; justify-content:space-between; margin-top:6px; flex-wrap:wrap; gap:6px; }
.cc-footer .cc-tags { margin-top:0; }
.pc-nextstep { font-size:10px; color:var(--accent); font-weight:500; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-followup {
  display:flex; align-items:center; gap:4px;
  font-size:10px; color:var(--muted); margin-top:4px;
}
.pc-followup--overdue { color:var(--danger); font-weight:600; }
.pc-followup--today   { color:var(--warning); font-weight:600; }
.ctag {
  background:rgba(99,215,42,.08); border:1px solid rgba(99,215,42,.18);
  color:rgba(99,215,42,.8); border-radius:20px; padding:2px 8px;
  font-size:10px; font-weight:600;
}

/* ══════════════════════════════════════════════════════
   PIPELINE — Velocity strip + Kanban board
   ══════════════════════════════════════════════════════ */
#view-pipeline.active {
  display:flex; flex-direction:column; gap:16px;
  height:calc(100vh - 120px);
}
#view-pipeline .pipeline-board { flex:1; min-height:0; height:auto; }

/* Velocity strip */
.vs-wrap {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:10px 16px; flex-shrink:0;
  display:flex; align-items:center; gap:16px;
}
.vs-header {
  display:flex; flex-direction:column; gap:2px; flex-shrink:0;
}
.vs-header-left { display:flex; flex-direction:column; gap:2px; }
.vs-title {
  display:flex; align-items:center; gap:6px;
  font-size:11px; font-weight:700; color:var(--text);
  white-space:nowrap;
}
.vs-title svg { stroke:var(--accent); flex-shrink:0; }
.vs-sub { font-size:10px; color:var(--muted); white-space:nowrap; }
.vs-close-avg { display:flex; flex-direction:column; align-items:flex-end; flex-shrink:0; }
.vs-close-num { font-size:16px; font-weight:800; color:var(--text); font-family:'Orbitron',sans-serif; line-height:1; }
.vs-close-lbl { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.vs-stages {
  display:grid; gap:8px; flex:1; min-width:0;
  grid-template-columns:repeat(5, 1fr);
}
.vs-stage {
  display:flex; flex-direction:column; gap:3px;
}
.vs-stage--bottleneck .vs-avg { color:var(--danger); }
.vs-stage-name {
  display:flex; align-items:center; gap:4px;
  font-size:9px; font-weight:600; color:var(--muted);
  text-transform:uppercase; letter-spacing:.05em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.vs-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.vs-badge {
  background:rgba(239,68,68,.15); color:var(--danger);
  border:1px solid rgba(239,68,68,.3);
  border-radius:20px; padding:1px 5px; font-size:8px; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; margin-left:2px;
}
.vs-avg {
  font-size:14px; font-weight:800; color:var(--text);
  font-family:'Orbitron',sans-serif; line-height:1;
}
.vs-bar-track {
  height:3px; background:rgba(255,255,255,.06); border-radius:4px; overflow:hidden;
}
.vs-bar { height:100%; border-radius:4px; transition:width .4s ease; }
.vs-count { font-size:9px; color:var(--muted); }

/* Time-in-stage badge on pipeline cards */
.pc-velocity {
  display:flex; align-items:center; gap:4px;
  font-size:10px; color:var(--muted); margin-top:4px;
}
.pc-velocity--warn  { color:var(--warning); }
.pc-velocity--alert { color:var(--danger); font-weight:600; }

/* Assignee chip */
.av-chip {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%; flex-shrink:0;
  background:transparent;
  outline:1.5px solid var(--avc);
  color:var(--avc); font-size:9px; font-weight:800;
  font-family:'Orbitron',sans-serif; letter-spacing:-.01em;
  cursor:default; box-shadow:0 0 0 4px rgba(0,0,0,.25) inset;
}
.av-row { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.av-name { font-size:11px; font-weight:600; color:var(--muted); }

/* Pipeline card — assignee avatar floated right in head */
.pc-card-info { flex:1; min-width:0; }

/* Contact detail strip — 5 columns */
.cd-strip--5 { grid-template-columns:repeat(5,1fr); }

.pipeline-board {
  display:flex; gap:12px; overflow-x:auto;
  padding-bottom:16px;
}
.pipeline-board::-webkit-scrollbar { height:6px; }

.pc-col {
  min-width:220px; width:220px; flex-shrink:0;
  background:rgba(255,255,255,.02); border:1px solid var(--border);
  border-radius:var(--r); display:flex; flex-direction:column; overflow:hidden;
}
.pc-col-header {
  padding:12px 14px 10px; border-bottom:1px solid rgba(255,255,255,.05);
  flex-shrink:0;
}
.pc-col-title {
  display:flex; align-items:center; gap:7px;
  font-size:12px; font-weight:700; color:var(--text);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px;
}
.pc-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.pc-col-meta { display:flex; justify-content:space-between; align-items:center; }
.pc-count { font-size:11px; color:var(--muted); }
.pc-total { font-size:11px; font-weight:600; color:var(--text); }

.pc-cards { flex:1; overflow-y:auto; padding:10px 10px 10px; display:flex; flex-direction:column; gap:8px; }
.pc-empty { font-size:11px; color:rgba(113,113,122,.4); text-align:center; padding:20px 0; }

.pc-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:10px; padding:12px; cursor:pointer; transition:var(--t);
}
.pc-card:hover { border-color:rgba(255,255,255,.12); background:var(--surface2); }
.pc-card-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.pc-avatar {
  width:30px; height:30px; border-radius:8px; flex-shrink:0;
  background:var(--sc, #D0FF00); border:none;
  color:var(--sc-text, #111111); font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif;
}
.pc-name { font-size:12px; font-weight:600; color:var(--text); }
.pc-company { font-size:10px; color:var(--muted); }
.pc-value { font-size:13px; font-weight:700; color:var(--text); margin-bottom:4px; }
.pc-last { font-size:10px; color:var(--muted); }

/* ══════════════════════════════════════════════════════
   INTERACTIONS — log view
   ══════════════════════════════════════════════════════ */
.int-row {
  display:flex; align-items:flex-start; gap:14px;
  padding:16px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); cursor:pointer; transition:var(--t); margin-bottom:10px;
}
.int-row:hover { border-color:rgba(255,255,255,.12); background:var(--surface2); }
.int-icon { flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; width:24px; height:24px; }
.int-body { flex:1; min-width:0; }
.int-subject { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; }
.int-meta { display:flex; gap:8px; font-size:11px; color:var(--muted); margin-bottom:6px; flex-wrap:wrap; }
.int-meta span::after { content:'·'; margin-left:8px; }
.int-meta span:last-child::after { content:''; }
.int-notes {
  font-size:12px; color:var(--muted); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.int-nextstep { font-size:11px; color:var(--accent); margin-top:6px; }
.int-right { text-align:right; flex-shrink:0; }
.int-date { font-size:11px; color:var(--muted); margin-bottom:6px; }
.int-outcome {
  font-size:10px; font-weight:600; border-radius:20px;
  padding:2px 8px; text-transform:capitalize; margin-bottom:4px; display:inline-block;
}
.int-type { font-size:11px; color:var(--muted); }

/* ══════════════════════════════════════════════════════
   CONTACT DETAIL
   ══════════════════════════════════════════════════════ */
.cd-layout {
  display:grid; grid-template-columns:1fr 360px;
  gap:20px; align-items:start;
}
.cd-left { display:flex; flex-direction:column; gap:16px; }

.cd-profile {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:20px;
  display:flex; align-items:flex-start; gap:16px;
}
.cd-big-avatar {
  width:52px; height:52px; border-radius:14px; flex-shrink:0;
  background:var(--sc, #D0FF00); border:none;
  color:var(--sc-text, #111111); font-size:18px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif;
}
.cd-profile-info { flex:1; min-width:0; }
.cd-name { font-size:20px; font-weight:700; color:var(--text); margin-bottom:3px; }
.cd-role-company { font-size:13px; color:var(--muted); margin-bottom:8px; }
.cd-contact-links { display:flex; gap:12px; flex-wrap:wrap; }
.cd-link { font-size:12px; color:var(--muted); transition:var(--t); display:inline-flex; align-items:center; gap:5px; }
.cd-link:hover { color:var(--accent); }
.cd-profile-actions { display:flex; gap:8px; flex-shrink:0; }

.cd-strip {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:16px 20px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.cd-strip-label { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; font-weight:600; margin-bottom:6px; }
.cd-strip-val { font-size:13px; font-weight:600; color:var(--text); }
.cd-stage-sel {
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:6px; padding:5px 10px; color:var(--text); font-size:13px; font-weight:600;
  cursor:pointer; outline:none; transition:var(--t);
  appearance:none; width:100%;
}
.cd-stage-sel:focus { border-color:rgba(255,255,255,.2); }

.cd-section {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:16px 20px;
}
.cd-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.cd-section-label { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.07em; }
.cd-notes-text { font-size:13px; color:var(--muted); line-height:1.65; }
.cd-tags { display:flex; gap:6px; flex-wrap:wrap; }

/* ── Timeline ── */
.cd-timeline { display:flex; flex-direction:column; gap:0; }
.tl-item {
  display:flex; gap:12px; padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.tl-item:last-child { border-bottom:none; }
.tl-icon {
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.tl-body { flex:1; min-width:0; }
.tl-head {
  display:flex; align-items:center; gap:8px; margin-bottom:3px;
  flex-wrap:wrap;
}
.tl-subject { font-size:13px; font-weight:600; color:var(--text); flex:1; min-width:0; }
.tl-date { font-size:11px; color:var(--muted); flex-shrink:0; }
.tl-edit {
  background:none; border:none; color:rgba(113,113,122,.5); cursor:pointer;
  padding:0 2px; flex-shrink:0; display:flex; align-items:center;
  transition:color .15s;
}
.tl-edit:hover { color:var(--accent); }
.tl-del {
  background:none; border:none; color:rgba(239,68,68,.5); cursor:pointer;
  padding:0 2px; flex-shrink:0; display:flex; align-items:center;
  transition:color .15s;
}
.tl-del:hover { color:var(--danger); }
.tl-type { font-size:11px; color:var(--muted); margin-bottom:6px; }
.tl-notes { font-size:12px; color:var(--muted); line-height:1.65; margin-bottom:6px; }
.tl-next { font-size:11px; color:var(--accent); font-style:italic; }

/* ══════════════════════════════════════════════════════
   AI ADVISOR PANEL
   ══════════════════════════════════════════════════════ */
.cd-right { position:sticky; top:0; }
.ai-panel {
  background:linear-gradient(160deg, #0d1117 0%, #101820 100%);
  border:1px solid rgba(99,215,42,.18);
  border-radius:var(--r);
  box-shadow:0 0 40px rgba(99,215,42,.05), inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
}
.ai-header {
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-bottom:1px solid rgba(99,215,42,.1);
  background:rgba(99,215,42,.04);
}
.ai-glyph {
  width:36px; height:36px; border-radius:10px; flex-shrink:0;
  background:rgba(99,215,42,.12); border:1px solid rgba(99,215,42,.25);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
  animation:ai-pulse 3s ease-in-out infinite;
}
.ai-title { font-size:14px; font-weight:700; color:var(--text); }
.ai-sub { font-size:11px; color:var(--muted); margin-top:1px; }
.ai-list { padding:12px; display:flex; flex-direction:column; gap:10px; max-height:calc(100vh - 200px); overflow-y:auto; }

.ai-card {
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06);
  border-radius:10px; padding:14px; transition:var(--t);
}
.ai-card:hover { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); }
.ai-card--top {
  background:rgba(99,215,42,.05); border-color:rgba(99,215,42,.2);
  box-shadow:0 2px 12px rgba(99,215,42,.08);
}
.ai-card-head {
  display:flex; align-items:center; gap:7px; margin-bottom:7px;
}
.ai-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.ai-cat { font-size:10px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; flex:1; }
.ai-pri { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.ai-card-title { font-size:13px; font-weight:700; color:var(--text); margin-bottom:6px; line-height:1.3; }
.ai-card-detail { font-size:11px; color:var(--muted); line-height:1.65; margin-bottom:10px; }
.ai-action {
  display:inline-flex; align-items:center;
  background:rgba(99,215,42,.1); border:1px solid rgba(99,215,42,.2);
  color:var(--accent); border-radius:6px;
  padding:5px 10px; font-size:11px; font-weight:600;
  cursor:pointer; transition:var(--t); letter-spacing:.01em;
  font-family:'Inter',sans-serif;
}
.ai-action:hover { background:rgba(99,215,42,.18); border-color:rgba(99,215,42,.35); }

/* ══════════════════════════════════════════════════════
   MODAL (mirrors admin)
   ══════════════════════════════════════════════════════ */
.backdrop {
  position:fixed; inset:0; background:rgba(0,0,0,.7);
  backdrop-filter:blur(6px); z-index:200;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .2s;
}
.backdrop.open { opacity:1; }
.modal {
  background:var(--surface); border:1px solid rgba(99,215,42,.12);
  border-radius:16px; width:min(580px,92vw);
  box-shadow:0 24px 60px rgba(0,0,0,.6);
  transform:translateY(12px) scale(.98); transition:transform .22s ease, opacity .22s;
}
.backdrop.open .modal { transform:translateY(0) scale(1); }
.modal-hd {
  padding:20px 24px 16px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(99,215,42,.08);
}
.modal-title { font-size:15px; font-weight:600; color:var(--text); }
.modal-x {
  width:32px; height:32px; background:rgba(239,68,68,.07);
  border:1px solid rgba(239,68,68,.15); border-radius:8px;
  cursor:pointer; color:var(--danger); font-size:16px;
  display:flex; align-items:center; justify-content:center; transition:var(--t);
}
.modal-x:hover { background:rgba(239,68,68,.18); }
.modal-bd { padding:20px 24px; max-height:60vh; overflow-y:auto; }
.modal-ft {
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; padding:14px 24px;
  border-top:1px solid rgba(99,215,42,.08);
  background:rgba(0,0,0,.2); border-radius:0 0 16px 16px;
}

/* ══════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════ */
.crm-toast {
  position:fixed; bottom:24px; right:24px; z-index:999;
  background:var(--surface2); border:1px solid rgba(255,255,255,.1);
  border-radius:10px; padding:12px 18px; font-size:13px; font-weight:500;
  color:var(--text); box-shadow:0 8px 24px rgba(0,0,0,.4);
  transform:translateY(16px); opacity:0;
  transition:transform .22s ease, opacity .22s ease;
  max-width:340px; pointer-events:none;
}
.crm-toast--show { transform:translateY(0); opacity:1; }
.crm-toast--success { border-color:rgba(34,197,94,.3); color:var(--success); background:rgba(34,197,94,.07); }
.crm-toast--error   { border-color:rgba(239,68,68,.3);  color:var(--danger);  background:rgba(239,68,68,.07); }

/* ══════════════════════════════════════════════════════
   MISC UTILITIES
   ══════════════════════════════════════════════════════ */
.crm-empty {
  font-size:13px; color:var(--muted); text-align:center;
  padding:36px 20px; opacity:.6;
}
.section-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}
.section-title {
  font-size:13px; font-weight:700; color:var(--text); letter-spacing:.01em;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cd-layout { grid-template-columns:1fr; }
  .cd-right { position:static; }
  .dash-grid { grid-template-columns:1fr; }
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns:1fr 1fr; }
  .cd-strip  { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .contacts-grid { grid-template-columns:1fr; }
  .stats-row { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════════════════════
   HAMBURGER BUTTON (hidden on desktop)
   ══════════════════════════════════════════════════════ */
.hamburger {
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  color:var(--text); cursor:pointer; flex-shrink:0;
  transition:var(--t);
}
.hamburger:hover { background:rgba(255,255,255,.1); }
.hamburger:active { transform:scale(.94); }

.topbar-left { display:flex; align-items:center; gap:12px; }

/* ══════════════════════════════════════════════════════
   MOBILE SIDEBAR OVERLAY
   ══════════════════════════════════════════════════════ */
.sidebar-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.65); backdrop-filter:blur(4px);
  z-index:59; opacity:0; transition:opacity .25s;
}
.sidebar-overlay.active { opacity:1; }

/* ══════════════════════════════════════════════════════
   MOBILE — iPhone-friendly layout  (<= 768px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Show hamburger, overlay */
  .hamburger { display:flex; }
  .sidebar-overlay { display:block; }

  /* Sidebar slides in from left */
  .sidebar {
    transform:translateX(-100%);
    transition:transform .28s cubic-bezier(0.4,0,0.2,1);
    z-index:60;
  }
  .sidebar.mobile-open { transform:translateX(0); }

  /* Main takes full width */
  .main { margin-left:0; }

  /* Topbar */
  .topbar { padding:0 14px; height:56px; }
  .topbar-title { font-size:13px; letter-spacing:.05em; }
  .btn-label { display:none; }
  .btn-gold.btn-sm { padding:9px 12px; }

  /* Content area */
  .content { padding:14px; }

  /* Dashboard grid → single column */
  .db-grid {
    grid-template-columns:1fr !important;
    gap:12px;
  }
  .db-overview-card { grid-column:auto !important; }
  .db-right { flex-direction:column; }
  .db-ai-preview, .db-activity-card { flex:1; }

  /* Pipeline value metrics → 2 cols */
  .dbv-metrics { grid-template-columns:1fr 1fr; }
  .dbv-amount { font-size:32px; }

  /* Contacts toolbar → filter pills scroll horizontally */
  .contacts-toolbar {
    flex-direction:column; align-items:stretch; gap:10px;
  }
  .filter-pills {
    flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    padding-bottom:4px; gap:6px;
  }
  .filter-pills::-webkit-scrollbar { display:none; }
  .filter-pill { flex-shrink:0; }

  /* Search full-width */
  #contacts-search { width:100% !important; }

  /* Contact detail strip → 2 cols */
  .cd-strip { grid-template-columns:1fr 1fr; gap:12px; }

  /* Contact detail layout → stack */
  .cd-layout { grid-template-columns:1fr; gap:14px; }
  .cd-right { position:static; }

  /* Profile card → stack on very small screens */
  .cd-profile { flex-direction:column; gap:14px; }
  .cd-profile-actions { flex-direction:row; flex-wrap:wrap; gap:6px; }

  /* Interaction rows */
  .int-row { flex-direction:column; gap:8px; }
  .int-right { text-align:left; display:flex; gap:10px; align-items:center; }

  /* Pipeline board — already horizontally scrollable, improve touch */
  #view-pipeline.active { height:calc(100vh - 80px); gap:10px; }
  .vs-stages { grid-template-columns:repeat(3, 1fr); }
  .vs-close-avg { display:none; }
  .pc-col { min-width:200px; width:200px; }

  /* Modal — near full screen */
  .modal { width:95vw; border-radius:14px; }
  .modal-bd { max-height:55vh; }

  /* Toast — spans full bottom */
  .crm-toast {
    bottom:16px; right:12px; left:12px; max-width:none;
    font-size:12px;
  }

  /* Dashboard table → horizontal scroll */
  .dbt-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .db-table { min-width:500px; }

  /* AI panel list max-height */
  .ai-list { max-height:none; }

  /* Bigger tap targets for nav items */
  .nav-item { padding:13px 14px; }

  /* Form row → single column */
  .fr { grid-template-columns:1fr; }
}

/* Extra small (iPhone SE, 375px) */
@media (max-width: 420px) {
  .cd-strip { grid-template-columns:1fr; }
  .dbv-metrics { grid-template-columns:1fr 1fr; }
  .topbar-title { font-size:11px; }
  .content { padding:10px; }
  .pc-col { min-width:180px; width:180px; }
}

/* ══════════════════════════════════════════════════════
   DASHBOARD — 3-column reference layout
   ══════════════════════════════════════════════════════ */
.db-grid {
  display:grid;
  grid-template-columns:272px 1fr 268px;
  gap:14px; margin-bottom:14px; align-items:start;
}

.db-card {
  background:#080808;
  border:1px solid rgba(255,255,255,.055);
  border-radius:16px; overflow:hidden;
}

/* ── Left: Deal Overview ── */
.db-overview-card { display:flex; flex-direction:column; }

.dbo-header { padding:18px 18px 14px; }

.dbo-eyebrow {
  font-size:10px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent); margin-bottom:3px;
}

.dbo-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:2px; }
.dbo-sub   { font-size:11px; color:var(--muted); }

.dbo-chart-wrap {
  height:90px; position:relative; overflow:hidden;
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
}

.db-sparkline { width:100%; height:100%; display:block; }

.dbo-stats {
  display:flex; align-items:center;
  border-bottom:1px solid rgba(255,255,255,.04);
}

.dbo-stat { flex:1; padding:12px 18px; }

.dbo-stat-val {
  font-size:17px; font-weight:700; color:var(--text);
  line-height:1; margin-bottom:3px; letter-spacing:-.01em;
}

.dbo-stat-lbl {
  font-size:10px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.06em;
}

.dbo-stat-divider { width:1px; height:32px; background:rgba(255,255,255,.07); flex-shrink:0; }

.dbo-contacts-section { padding:14px 18px; flex:1; }

.dbo-section-title {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:rgba(113,113,122,.6); margin-bottom:10px;
}

.dbo-contact-row {
  display:flex; align-items:center; gap:10px;
  padding:6px 0; cursor:pointer; transition:opacity .15s;
}
.dbo-contact-row:hover { opacity:.7; }

.dbo-contact-av {
  width:28px; height:28px; border-radius:7px; flex-shrink:0;
  background:var(--sc, #D0FF00); border:none;
  color:var(--sc-text, #111111); font-size:9px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif;
}

.dbo-contact-info { flex:1; min-width:0; }

.dbo-contact-name {
  font-size:12px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.dbo-contact-company {
  font-size:10px; color:var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.dbo-contact-deal { font-size:11px; font-weight:700; color:var(--text); flex-shrink:0; }

/* ── Center: Pipeline Value ── */
.db-value-card {
  padding:22px; display:flex; flex-direction:column;
}

.dbv-label {
  font-size:11px; font-weight:600; color:var(--muted);
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:10px;
}

.dbv-amount {
  font-size:46px; font-weight:800; color:#fff;
  line-height:1; letter-spacing:-.03em; margin-bottom:8px;
  text-shadow:0 0 48px rgba(99,215,42,.12);
}

.dbv-sub { font-size:12px; color:var(--muted); margin-bottom:22px; }

.dbv-divider {
  height:1px; background:rgba(255,255,255,.06); margin-bottom:18px;
}

.dbv-stage-title {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:rgba(113,113,122,.6); margin-bottom:12px;
}

.dbv-stages { flex:1; }

.dbv-stage-row { display:flex; align-items:center; gap:10px; margin-bottom:9px; }

.dbv-stage-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }

.dbv-stage-name { font-size:12px; color:var(--muted); min-width:96px; flex-shrink:0; }

.dbv-stage-bar-track {
  flex:1; height:4px; background:rgba(255,255,255,.06);
  border-radius:4px; overflow:hidden;
}

.dbv-stage-bar { height:100%; border-radius:4px; transition:width .5s ease; }

.dbv-stage-meta {
  display:flex; gap:8px; min-width:84px; justify-content:flex-end;
  font-size:11px; color:var(--muted);
}

.dbv-stage-val { font-weight:600; color:var(--text); }

.dbv-metrics {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:8px; margin-top:20px; padding-top:18px;
  border-top:1px solid rgba(255,255,255,.06);
}

.dbv-metric {
  text-align:center; padding:10px 6px;
  background:rgba(255,255,255,.03);
  border-radius:10px; border:1px solid rgba(255,255,255,.05);
}

.dbv-metric-val {
  font-size:20px; font-weight:700; color:var(--text);
  line-height:1; margin-bottom:4px;
}

.dbv-metric-lbl {
  font-size:9px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.06em;
}

/* ── Right column ── */
.db-right { display:flex; flex-direction:column; gap:14px; }

.db-ai-preview { padding:18px; }

.dbai-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }

.dbai-icon {
  width:32px; height:32px; border-radius:9px; flex-shrink:0;
  background:rgba(99,215,42,.12); border:1px solid rgba(99,215,42,.22);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
}

.dbai-title { font-size:13px; font-weight:700; color:var(--text); line-height:1.2; }
.dbai-sub   { font-size:10px; color:var(--muted); margin-top:1px; }

.dbai-body { margin-bottom:14px; }

.dbai-contact-tag {
  font-size:10px; font-weight:700; color:var(--accent);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:7px;
}

.dbai-suggestion-title {
  font-size:13px; font-weight:700; color:var(--text);
  line-height:1.3; margin-bottom:6px;
}

.dbai-suggestion-detail {
  font-size:11px; color:var(--muted); line-height:1.6;
}

.dbai-btn {
  width:100%; padding:9px; text-align:center;
  background:rgba(99,215,42,.08); border:1px solid rgba(99,215,42,.2);
  border-radius:8px; color:var(--accent);
  font-size:12px; font-weight:600; cursor:pointer; transition:var(--t);
  font-family:'Inter',sans-serif;
}
.dbai-btn:hover { background:rgba(99,215,42,.16); border-color:rgba(99,215,42,.35); }

.db-activity-card { padding:18px; flex:1; }

.dba-title {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:rgba(113,113,122,.6); margin-bottom:12px;
}

.dba-row {
  display:flex; align-items:flex-start; gap:10px;
  padding:8px 0; border-bottom:1px solid rgba(255,255,255,.04);
  cursor:pointer; transition:opacity .15s;
}
.dba-row:last-child { border-bottom:none; }
.dba-row:hover { opacity:.7; }

.dba-icon-wrap {
  width:26px; height:26px; border-radius:7px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

.dba-info { flex:1; min-width:0; }

.dba-subject {
  font-size:11px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:2px;
}

.dba-who  { font-size:10px; color:var(--muted); }
.dba-time { font-size:10px; color:var(--muted); flex-shrink:0; margin-top:1px; }

/* ── Bottom Table ── */
.db-table-card { padding:18px 20px; }

.dbt-scroll {
  max-height:320px; overflow-y:auto;
}
.dbt-scroll::-webkit-scrollbar { width:4px; }
.dbt-scroll::-webkit-scrollbar-track { background:transparent; }
.dbt-scroll::-webkit-scrollbar-thumb { background:rgba(255,255,255,.1); border-radius:2px; }
.dbt-scroll::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,.2); }
.db-table thead th { position:sticky; top:0; background:#080808; z-index:1; }

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

.dbt-title { font-size:13px; font-weight:700; color:var(--text); }

.db-table { width:100%; border-collapse:collapse; }

.db-table th {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:rgba(113,113,122,.7);
  padding:0 12px 10px; text-align:left;
  border-bottom:1px solid rgba(255,255,255,.06);
  white-space:nowrap;
}

.db-table td {
  padding:11px 12px; font-size:12px; color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,.04);
  vertical-align:middle;
}

.db-table tr:last-child td { border-bottom:none; }
.db-table tbody tr { cursor:pointer; transition:background .14s; }
.db-table tbody tr:hover td { background:rgba(255,255,255,.025); }

.dbt-name-cell { display:flex; align-items:center; gap:10px; }

.dbt-av {
  width:30px; height:30px; border-radius:8px; flex-shrink:0;
  background:var(--sc, #D0FF00); border:none;
  color:var(--sc-text, #111111); font-size:9px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Orbitron',sans-serif;
}

.dbt-name { font-size:13px; font-weight:600; color:var(--text); line-height:1.2; }
.dbt-role { font-size:10px; color:var(--muted); }
.dbt-company { font-size:12px; color:var(--text); }
.dbt-deal { font-size:13px; font-weight:700; color:var(--text); }

.dbt-action-btn {
  padding:5px 12px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07);
  border-radius:6px; color:var(--muted); font-size:11px; font-weight:500;
  cursor:pointer; transition:var(--t); font-family:'Inter',sans-serif;
  white-space:nowrap;
}
.dbt-action-btn:hover {
  background:rgba(99,215,42,.09); border-color:rgba(99,215,42,.2);
  color:var(--accent);
}

/* ── Dashboard Responsive ── */
@media (max-width:1250px) {
  .db-grid { grid-template-columns:240px 1fr 240px; }
  .dbv-amount { font-size:38px; }
}
@media (max-width:1020px) {
  .db-grid { grid-template-columns:1fr 1fr; }
  .db-overview-card { grid-column:span 2; }
  .db-right { flex-direction:row; }
  .db-ai-preview,.db-activity-card { flex:1; }
}
@media (max-width:740px) {
  .db-grid { grid-template-columns:1fr; }
  .db-overview-card { grid-column:auto; }
  .db-right { flex-direction:column; }
  .dbv-metrics { grid-template-columns:repeat(2,1fr); }
  .dbv-amount { font-size:34px; }
}
