
/* ═══════════════════════════════════════════════════════════════
   CRM Hub — scoped redesign
   All rules live under .crm-hub so other pages are unaffected.
   ═══════════════════════════════════════════════════════════════ */

.crm-hub {
  --crm-radius: 20px;
  --crm-radius-sm: 14px;
  --crm-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px -4px rgba(99, 102, 241, 0.06);
  --crm-shadow-hover:
    0 12px 32px -6px rgba(99, 102, 241, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.04);
  --crm-indigo: #6366f1;
  --crm-teal: #0d9488;
  --crm-amber: #f59e0b;
  --crm-red: #ef4444;
  --crm-green: #10b981;
  --crm-subtle-bg: rgba(248, 250, 252, 0.7);
  --crm-inner-glow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.85);
  max-width: 1280px;
}

/* --- Hero header --- */
.crm-hero {
  background:
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(99, 102, 241, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(13, 148, 136, 0.05), transparent 50%),
    var(--crm-subtle-bg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  padding: 32px 32px 28px;
  margin-bottom: 20px;
}

.crm-hero .page-head {
  margin-bottom: 20px;
}

.crm-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.crm-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--crm-indigo);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 10px;
}

/* --- KPI strip --- */
.crm-hub .crm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.crm-kpi-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  padding: 16px 18px;
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: fdash-rise 320ms ease-out both;
}

.crm-kpi-card:nth-child(1) { animation-delay: 0ms; }
.crm-kpi-card:nth-child(2) { animation-delay: 50ms; }
.crm-kpi-card:nth-child(3) { animation-delay: 100ms; }
.crm-kpi-card:nth-child(4) { animation-delay: 150ms; }
.crm-kpi-card:nth-child(5) { animation-delay: 200ms; }
.crm-kpi-card:nth-child(6) { animation-delay: 250ms; }

.crm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--crm-shadow-hover), var(--crm-inner-glow);
}

.crm-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.crm-kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.crm-kpi-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

/* --- Section panels --- */
.crm-section {
  margin-bottom: 20px;
}

.crm-section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

.crm-section-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.crm-hub .crm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

/* --- Elevated panel used inside .crm-hub --- */
.crm-hub .crm-panel {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  padding: 24px;
}

/* --- Pipeline stage cards --- */
.crm-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.crm-stage-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  padding: 18px 20px;
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: fdash-rise 320ms ease-out both;
}

.crm-stage-card:nth-child(1) { animation-delay: 0ms; }
.crm-stage-card:nth-child(2) { animation-delay: 50ms; }
.crm-stage-card:nth-child(3) { animation-delay: 100ms; }
.crm-stage-card:nth-child(4) { animation-delay: 150ms; }
.crm-stage-card:nth-child(5) { animation-delay: 200ms; }
.crm-stage-card:nth-child(6) { animation-delay: 250ms; }

.crm-stage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--crm-shadow-hover), var(--crm-inner-glow);
  text-decoration: none;
}

.crm-stage-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

.crm-stage-count {
  font-size: 13px;
  color: var(--muted);
}

.crm-stage-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* --- Two-col or three-col section grid --- */
.crm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.crm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* --- Action item list (overdue tasks, attention deals, etc.) --- */
.crm-action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-action-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--crm-radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: var(--crm-subtle-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.crm-action-item:hover {
  border-color: var(--crm-indigo);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.crm-action-item strong {
  font-size: 14px;
}

.crm-action-item .muted {
  font-size: 12px;
}

.crm-action-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* --- CRM metric badge (reuses finance pattern) --- */
.crm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.crm-badge.is-green {
  background: rgba(16, 185, 129, 0.10);
  color: #059669;
}

.crm-badge.is-amber {
  background: rgba(245, 158, 11, 0.10);
  color: #b45309;
}

.crm-badge.is-red {
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
}

.crm-badge.is-indigo {
  background: rgba(99, 102, 241, 0.10);
  color: #4338ca;
}

.crm-badge.is-neutral {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.60);
}

/* --- CRM empty state --- */
.crm-empty {
  text-align: center;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crm-empty-ico {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--crm-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.crm-empty-ico svg {
  width: 20px;
  height: 20px;
}

.crm-empty-ico.is-neutral {
  background: rgba(100, 116, 139, 0.08);
  color: #64748b;
}

.crm-empty-ico.is-warning {
  background: rgba(245, 158, 11, 0.08);
  color: var(--crm-amber);
}

/* --- CRM list page entity cards (deals, quotes, tasks) --- */
.crm-hub .crm-entity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-entity-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.crm-entity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--crm-shadow-hover), var(--crm-inner-glow);
  text-decoration: none;
}

.crm-entity-main {
  flex: 1;
  min-width: 0;
}

.crm-entity-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.crm-entity-name strong {
  font-size: 14px;
}

.crm-entity-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted);
}

.crm-entity-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  opacity: 0.5;
  margin-right: 3px;
}

.crm-entity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* --- CRM detail page KPI row --- */
.crm-detail-kpis {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  margin-bottom: 18px;
}

.crm-detail-kpi {
  min-width: 0;
}

.crm-detail-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.crm-detail-kpi-value {
  font-weight: 700;
  font-size: 15px;
}

/* --- CRM detail parties --- */
.crm-detail-parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.crm-detail-party {
  background: var(--crm-subtle-bg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--crm-radius-sm);
  padding: 18px 20px;
}

.crm-detail-party-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.crm-detail-party-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

/* --- CRM detail section --- */
.crm-detail-section {
  margin-bottom: 18px;
}

.crm-detail-section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

/* --- CRM filter bar --- */
.crm-hub .crm-filters {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  padding: 18px 20px;
  margin-bottom: 18px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .crm-hero {
    padding: 22px 18px 20px;
  }

  .crm-hero h1 {
    font-size: 22px;
  }

  .crm-hub .crm-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .crm-stage-grid {
    grid-template-columns: 1fr;
  }

  .crm-grid-2,
  .crm-grid-3 {
    grid-template-columns: 1fr;
  }

  .crm-entity-card {
    flex-direction: column;
    gap: 10px;
  }

  .crm-entity-meta {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .crm-detail-kpis {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Stack list (vertical key-value rows) --- */
.crm-stack-list {
  display: flex;
  flex-direction: column;
}

.crm-stack-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.crm-stack-row:last-child {
  border-bottom: none;
}

/* --- Notice / warning banner --- */
.crm-notice {
  padding: 14px 18px;
  border-radius: var(--crm-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.crm-notice.is-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.crm-notice.is-info {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.14);
  color: #3730a3;
}

.crm-notice.is-success {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.14);
  color: #065f46;
}

/* --- Settings form inside crm-panel --- */
.crm-hub .crm-panel h2,
.crm-hub .crm-panel h3 {
  margin-top: 0;
}

.crm-hub .crm-form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* --- Channel / mailbox info card --- */
.crm-info-card {
  background: var(--crm-subtle-bg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--crm-radius-sm);
  padding: 16px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.crm-info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.crm-info-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.crm-info-card-name {
  font-weight: 700;
  font-size: 14px;
}

/* --- Message bubble (for inbox conversation detail) --- */
.crm-message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-message-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--crm-radius-sm);
  box-shadow: var(--crm-shadow), var(--crm-inner-glow);
  padding: 16px 18px;
}

.crm-message-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.crm-message-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-message-body {
  margin-top: 10px;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
}

.crm-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}

/* --- Inset panel for nested content --- */
.crm-panel-inset {
  background: var(--crm-subtle-bg);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: var(--crm-radius-sm);
  padding: 14px 16px;
}

/* ═══════════════════════════════════════════════════════════
   CRM Hub — dark mode
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] .crm-hub {
  --crm-subtle-bg: rgba(30, 41, 59, 0.6);
  --crm-inner-glow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.03);
  --crm-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
  --crm-shadow-hover:
    0 12px 32px -6px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .crm-hero {
  background:
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(13, 148, 136, 0.06), transparent 50%),
    rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .crm-hero-pill {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.15);
  color: #818cf8;
}

[data-theme="dark"] .crm-kpi-card,
[data-theme="dark"] .crm-stage-card,
[data-theme="dark"] .crm-entity-card,
[data-theme="dark"] .crm-hub .crm-panel,
[data-theme="dark"] .crm-hub .crm-filters,
[data-theme="dark"] .crm-detail-kpis {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-action-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-action-item:hover {
  border-color: #818cf8;
}

[data-theme="dark"] .crm-detail-party {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-badge.is-green {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

[data-theme="dark"] .crm-badge.is-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

[data-theme="dark"] .crm-badge.is-red {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

[data-theme="dark"] .crm-badge.is-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
}

[data-theme="dark"] .crm-badge.is-neutral {
  background: rgba(148, 163, 184, 0.08);
  color: rgba(148, 163, 184, 0.70);
}

[data-theme="dark"] .crm-empty-ico {
  background: rgba(52, 211, 153, 0.08);
}

[data-theme="dark"] .crm-empty-ico.is-neutral {
  background: rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .crm-empty-ico.is-warning {
  background: rgba(251, 191, 36, 0.08);
}

[data-theme="dark"] .crm-stack-row {
  border-bottom-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-notice.is-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

[data-theme="dark"] .crm-notice.is-info {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

[data-theme="dark"] .crm-notice.is-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

[data-theme="dark"] .crm-info-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-message-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .crm-panel-inset {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .crm-hub .crm-form-section-title {
  border-top-color: rgba(148, 163, 184, 0.10);
}

/* --- CRM hub tabs --- */
.crm-hub-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 12px;
}

.crm-hub-tabs,
.crm-hub-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 58%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.crm-hub-tab,
.crm-hub-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.crm-hub-tab:hover,
.crm-hub-subtab:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.crm-hub-tab.is-active,
.crm-hub-subtab.is-active {
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.crm-hub-tab-panel,
.crm-hub-subtab-panel {
  min-width: 0;
}

.crm-hub-tab-panel[aria-busy="true"],
.crm-hub-subtab-panel[aria-busy="true"] {
  opacity: 0.68;
  transition: opacity 120ms ease;
}

.crm-hub-notification-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.crm-hub-count {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .crm-hub-tabs,
  .crm-hub-subtabs {
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .crm-hub-tab,
  .crm-hub-subtab {
    flex: 1 1 140px;
    min-height: 42px;
    padding: 10px 14px;
  }
}

[data-theme="dark"] .crm-hub-tabs,
[data-theme="dark"] .crm-hub-subtabs {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.76)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 58%);
  box-shadow: 0 20px 34px rgba(2, 6, 23, 0.28);
}

[data-theme="dark"] .crm-hub-tab,
[data-theme="dark"] .crm-hub-subtab {
  color: rgba(226, 232, 240, 0.88);
  background: rgba(15, 23, 42, 0.58);
}

[data-theme="dark"] .crm-hub-tab:hover,
[data-theme="dark"] .crm-hub-subtab:hover {
  color: rgba(248, 250, 252, 0.98);
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(30, 41, 59, 0.82);
}
