/* ============================================================
   Bridge360 CRM Dashboard Mockup Styles
   Used on vertical landing pages as "process as proof"
   ============================================================ */

.crm-mockup {
  background: #0E0E14;
  border: 1px solid #2A2A36;
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #C8C6D0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,98,42,0.1);
  max-width: 100%;
}

/* ── Top bar ── */
.crm-topbar {
  background: #131318;
  border-bottom: 1px solid #2A2A36;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crm-logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crm-logo-mark {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crm-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #F0EDE8;
  letter-spacing: -0.01em;
}
.crm-logo-text span { color: #E8622A; }
.crm-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.crm-status-label { font-size: 0.6875rem; color: #22C55E; font-weight: 600; }
.crm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8622A;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

/* ── Body layout ── */
.crm-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 380px;
}

/* ── Sidebar ── */
.crm-sidebar {
  background: #0C0C10;
  border-right: 1px solid #2A2A36;
  padding: 0.75rem 0;
}
.crm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: #5C5A66;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  position: relative;
  font-size: 0.6875rem;
  font-weight: 500;
}
.crm-nav-item:hover { color: #9896A0; background: rgba(255,255,255,0.03); }
.crm-nav-item.active {
  color: #F0EDE8;
  background: rgba(232,98,42,0.08);
  border-left: 2px solid #E8622A;
}
.crm-badge {
  margin-left: auto;
  background: #E8622A;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  min-width: 16px;
  text-align: center;
}

/* ── Main content ── */
.crm-main {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  overflow: hidden;
}

/* ── Stats row ── */
.crm-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.crm-stat-card {
  background: #131318;
  border: 1px solid #2A2A36;
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
}
.crm-stat-card.highlight { border-color: rgba(232,98,42,0.3); background: rgba(232,98,42,0.05); }
.crm-stat-label { font-size: 0.5625rem; color: #5C5A66; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.crm-stat-num { font-family: 'Syne', sans-serif; font-size: 1.375rem; font-weight: 800; color: #F0EDE8; line-height: 1; }
.crm-stat-num.crm-forge { color: #E8622A; }
.crm-stat-change { font-size: 0.5625rem; color: #22C55E; margin-top: 0.25rem; }
.crm-stat-change.up { color: #22C55E; }

/* ── Split panel ── */
.crm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
}

/* ── Panel shared ── */
.crm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.crm-panel-title { font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 700; color: #F0EDE8; }
.crm-panel-sub { font-size: 0.5625rem; color: #5C5A66; }

/* ── Pipeline panel ── */
.crm-pipeline-panel {
  background: #131318;
  border: 1px solid #2A2A36;
  border-radius: 10px;
  padding: 0.75rem;
  overflow: hidden;
}
.crm-pipeline-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.crm-pipeline-col { }
.crm-col-header {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C5A66;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.crm-col-count {
  background: #2A2A36;
  color: #9896A0;
  border-radius: 999px;
  padding: 0.05rem 0.3rem;
  font-size: 0.5rem;
}
.crm-lead-card {
  background: #0C0C10;
  border: 1px solid #2A2A36;
  border-radius: 6px;
  padding: 0.375rem 0.5rem;
  margin-bottom: 0.375rem;
}
.crm-lead-card.ai-responded { border-color: rgba(232,98,42,0.3); }
.crm-lead-card.won { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.04); }
.crm-lead-name { font-size: 0.625rem; font-weight: 600; color: #F0EDE8; }
.crm-lead-meta { font-size: 0.5625rem; color: #5C5A66; margin-top: 0.125rem; }
.crm-forge { color: #E8622A !important; }

/* ── Conversation panel ── */
.crm-convo-panel {
  background: #131318;
  border: 1px solid #2A2A36;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.crm-ai-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.5625rem;
  color: #E8622A;
  background: rgba(232,98,42,0.1);
  border: 1px solid rgba(232,98,42,0.2);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.crm-ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E8622A;
  animation: pulse-green 1.5s ease-in-out infinite;
}
.crm-convo-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #2A2A36;
  margin-bottom: 0.5rem;
}
.crm-convo-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2A2A36;
  color: #9896A0;
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.crm-convo-name { font-size: 0.625rem; font-weight: 600; color: #F0EDE8; }
.crm-convo-source { font-size: 0.5rem; color: #5C5A66; }
.crm-messages {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  overflow: hidden;
  flex: 1;
}
.crm-msg { display: flex; flex-direction: column; }
.crm-msg.outbound { align-items: flex-end; }
.crm-msg.inbound { align-items: flex-start; }
.crm-msg-bubble {
  max-width: 85%;
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  font-size: 0.5625rem;
  line-height: 1.5;
}
.crm-msg.outbound .crm-msg-bubble {
  background: rgba(232,98,42,0.15);
  border: 1px solid rgba(232,98,42,0.2);
  color: #F0EDE8;
  border-bottom-right-radius: 2px;
}
.crm-msg.inbound .crm-msg-bubble {
  background: #1A1A22;
  border: 1px solid #2A2A36;
  color: #C8C6D0;
  border-bottom-left-radius: 2px;
}
.crm-msg.ai-action .crm-msg-bubble {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
}
.crm-action-tag {
  display: block;
  font-size: 0.5rem;
  color: #22C55E;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.crm-msg-time { font-size: 0.5rem; color: #3C3A46; margin-top: 0.125rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .crm-body { grid-template-columns: 1fr; }
  .crm-sidebar { display: none; }
  .crm-stats-row { grid-template-columns: repeat(2, 1fr); }
  .crm-split { grid-template-columns: 1fr; }
  .crm-pipeline-panel { display: none; }
}
