/* ═══════════════════════════════════════════════════════════════
   CRM-LANDING.CSS — Complément à financial-reports-landing.css /
   deal-room-landing.css. Réutilise les tokens --lp-* et les
   classes .lab-* génériques. N'ajoute QUE les classes du mockup
   CRM Command Center (lab-crm-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── KPI Cards ── */
.lab-crm-kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:22px; }
.lab-crm-kpi-card{ background:rgba(255,255,255,.04); border:1px solid var(--lp-border-soft); border-radius:14px; padding:16px; position:relative; overflow:hidden; }
.lab-crm-kpi-icon{ width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; color:#fff; font-size:.85rem; margin-bottom:10px; }
.lab-crm-kpi-value{ font-size:1.5rem; font-weight:900; color:#fff; line-height:1; margin-bottom:4px; }
.lab-crm-kpi-label{ font-size:.68rem; font-weight:700; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.4px; }
.lab-crm-kpi-sub{ font-size:.68rem; color:rgba(255,255,255,.4); margin-top:2px; }
.lab-crm-kpi-badge{ position:absolute; top:14px; right:14px; font-size:.58rem; font-weight:800; padding:2px 8px; border-radius:10px; background:rgba(220,38,38,.15); color:#fca5a5; border:1px solid rgba(220,38,38,.25); }

/* ── Panels (reprend le pattern lab-dr-panel) ── */
.lab-crm-two-col{ display:grid; grid-template-columns:1.1fr .9fr; gap:18px; margin-bottom:22px; }
@media(max-width:900px){ .lab-crm-two-col{ grid-template-columns:1fr; } }
.lab-crm-panel{ background:rgba(255,255,255,.04); border:1px solid var(--lp-border-soft); border-radius:14px; padding:18px; }
.lab-crm-panel-head{ font-size:.85rem; font-weight:800; color:#fff; margin-bottom:14px; display:flex; align-items:center; gap:8px; justify-content:space-between; }
.lab-crm-panel-head-sm{ font-size:.8rem; font-weight:800; color:#fff; margin-bottom:14px; display:flex; align-items:center; gap:8px; }

/* ── Deal Pipeline Funnel ── */
.lab-crm-funnel{ display:flex; flex-direction:column; gap:9px; }
.lab-crm-funnel-row{ cursor:default; }
.lab-crm-funnel-top{ display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.lab-crm-funnel-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.lab-crm-funnel-name{ font-size:.75rem; font-weight:700; color:rgba(255,255,255,.75); flex:1; }
.lab-crm-funnel-count{ font-size:.8rem; font-weight:900; color:#fff; }
.lab-crm-funnel-bar-wrap{ height:8px; background:rgba(255,255,255,.06); border-radius:6px; overflow:hidden; }
.lab-crm-funnel-bar{ height:100%; border-radius:6px; background:linear-gradient(90deg,#667eea,#764ba2); }
.lab-crm-funnel-value{ font-size:.65rem; color:rgba(255,255,255,.45); margin-top:3px; text-align:right; }

/* ── Fundraising thermometer ── */
.lab-crm-fund-wrap{ display:flex; gap:20px; align-items:center; }
.lab-crm-thermo{ width:34px; height:130px; border-radius:20px; background:rgba(255,255,255,.06); position:relative; overflow:hidden; flex-shrink:0; border:1px solid rgba(255,255,255,.1); }
.lab-crm-thermo-fill{ position:absolute; bottom:0; left:0; right:0; border-radius:20px; background:linear-gradient(to top,#10b981,#34d399); }
.lab-crm-thermo-info{ flex:1; }
.lab-crm-thermo-pct{ font-size:1.8rem; font-weight:900; color:#10b981; line-height:1; }
.lab-crm-thermo-label{ font-size:.68rem; color:rgba(255,255,255,.5); margin-bottom:6px; }
.lab-crm-thermo-amount{ font-size:.85rem; font-weight:700; color:#fff; }
.lab-crm-thermo-target{ font-size:.7rem; color:rgba(255,255,255,.45); }
.lab-crm-commit-row{ display:flex; gap:8px; margin-top:10px; }
.lab-crm-commit-badge{ font-size:.65rem; font-weight:800; padding:4px 10px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.7); display:flex; align-items:center; gap:5px; }
.lab-crm-commit-badge.hard{ background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.25); color:#6ee7b7; }

/* ── LP Stage rows ── */
.lab-crm-lp-row{ display:flex; align-items:center; gap:10px; padding:6px 0; }
.lab-crm-lp-dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.lab-crm-lp-label{ font-size:.7rem; font-weight:700; color:rgba(255,255,255,.6); width:100px; flex-shrink:0; }
.lab-crm-lp-bar-wrap{ flex:1; height:7px; background:rgba(255,255,255,.06); border-radius:6px; overflow:hidden; }
.lab-crm-lp-bar{ height:100%; border-radius:6px; background:linear-gradient(90deg,#667eea,#764ba2); }
.lab-crm-lp-count{ font-size:.72rem; font-weight:800; color:#fff; width:20px; text-align:right; }
.lab-crm-lp-amount{ font-size:.65rem; color:rgba(255,255,255,.4); width:50px; text-align:right; }

/* ── Contact Cards (Relationship Intelligence) ── */
.lab-crm-contact-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media(max-width:700px){ .lab-crm-contact-grid{ grid-template-columns:1fr; } }
.lab-crm-contact-card{ background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:14px; }
.lab-crm-contact-top{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.lab-crm-contact-avatar{ width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; font-size:.75rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; }
.lab-crm-health-dot{ position:absolute; bottom:-1px; right:-1px; width:11px; height:11px; border-radius:50%; border:2px solid #14151a; }
.lab-crm-contact-name{ font-size:.8rem; font-weight:700; color:#fff; }
.lab-crm-contact-sub{ font-size:.66rem; color:rgba(255,255,255,.45); }
.lab-crm-contact-score{ margin-left:auto; font-size:.72rem; font-weight:900; padding:3px 9px; border-radius:10px; }
.lab-crm-contact-stats{ display:flex; gap:12px; font-size:.65rem; color:rgba(255,255,255,.5); margin-bottom:6px; }
.lab-crm-warm-path{ font-size:.65rem; color:rgba(255,255,255,.55); background:rgba(255,255,255,.04); border-radius:8px; padding:6px 8px; display:flex; gap:6px; align-items:flex-start; }

/* ── AI Alerts (Claude Sonnet 4.6) ── */
.lab-crm-ai-card{ background:rgba(255,255,255,.05); border:1px solid var(--lp-glass-border); border-radius:18px; padding:24px 26px; margin-bottom:22px; }
.lab-crm-ai-top{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.lab-crm-ai-logo{ width:36px; height:36px; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lab-crm-ai-logo img{ width:70%; height:70%; object-fit:contain; }
.lab-crm-ai-eyebrow{ font-size:.66rem; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:1.1px; font-weight:700; }
.lab-crm-ai-title{ font-size:1.05rem; font-weight:900; color:#fff; }
.lab-crm-alert{ display:flex; gap:12px; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); margin-bottom:8px; }
.lab-crm-alert.urgent{ border-left:3px solid #dc2626; }
.lab-crm-alert.high{ border-left:3px solid rgba(255,255,255,.4); }
.lab-crm-alert-icon{ width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.8rem; color:rgba(255,255,255,.7); }
.lab-crm-alert-title{ font-size:.78rem; font-weight:800; color:#fff; margin-bottom:3px; }
.lab-crm-alert-msg{ font-size:.72rem; color:rgba(255,255,255,.55); line-height:1.5; }
.lab-crm-alert-action{ font-size:.66rem; color:#a5b4fc; margin-top:6px; display:flex; align-items:center; gap:5px; }
.lab-crm-priority-badge{ font-size:.58rem; font-weight:800; padding:2px 8px; border-radius:10px; text-transform:uppercase; height:fit-content; flex-shrink:0; }

/* ── Team Roles ── */
.lab-crm-team-grid{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.lab-crm-team-avatar{ width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; font-size:.85rem; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 6px; position:relative; }
.lab-crm-team-status{ position:absolute; bottom:0; right:0; width:11px; height:11px; border-radius:50%; border:2px solid #14151a; background:#10b981; }
.lab-crm-team-card{ text-align:center; width:90px; }
.lab-crm-team-name{ font-size:.7rem; font-weight:700; color:#fff; }
.lab-crm-team-role{ font-size:.6rem; color:rgba(255,255,255,.5); margin-top:2px; }

/* ── Quick Actions Bar ── */
.lab-crm-qa-bar{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:20px; }
.lab-crm-qa-btn{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 16px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); min-width:96px; }
.lab-crm-qa-icon{ width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#fff; font-size:.8rem; }
.lab-crm-qa-label{ font-size:.66rem; font-weight:700; color:rgba(255,255,255,.65); }

@media(max-width:768px){
    .lab-crm-fund-wrap{ flex-direction:column; align-items:flex-start; }
}