/**
 * Dashboard global components: KPI cards, section headers, quick actions
 */
.dashboard-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Section headers (LIVE PRICES, LIVE SIGNALS, CONNECTIONS) */
.dashboard-section {
  margin-bottom: 28px;
}
.dashboard-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-section-title .section-icon,
.dashboard-section-title img.section-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  object-fit: contain;
}

/* KPI cards — Markets .funding-card surface + heatmap sheen; tabs border scale */
/* Always one row of four cards; minmax(0,1fr) lets columns shrink on narrow viewports */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch; /* equal card height per row (same as Markets tab row) */
}

/* Desktop (≥1025px): same fixed height as Markets .view-tab — see dashboard-responsive for ≤1024 */
.dashboard-kpi-card {
  background: var(--dash-bg, #000000);
  border: 1px solid var(--dash-kpi-surface-border, #294884);
  border-radius: 8px;
  padding: 14px 16px;
  position: relative;
  min-width: 0;
  height: var(--dash-kpi-view-height, 110px);
  min-height: var(--dash-kpi-view-height, 110px);
  max-height: var(--dash-kpi-view-height, 110px);
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s,
    transform 0.15s ease;
}

/* Heatmap-style gloss sheen — visible on hover/focus when navy fill shows */
.dashboard-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(
    --dash-kpi-sheen,
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%)
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dashboard-kpi-card::after {
  display: none;
}

.dashboard-kpi-card:focus-visible {
  outline: none;
  border-color: var(--dash-accent);
  box-shadow: 0 0 0 2px var(--dash-accent-soft);
  background: var(--dash-kpi-surface-bg, rgba(19, 36, 71, 0.3));
}
.dashboard-kpi-card:focus-visible::before {
  opacity: 1;
}

.dashboard-kpi-card .kpi-label,
.dashboard-kpi-card .kpi-value {
  position: relative;
  z-index: 1;
}

.dashboard-kpi-card .kpi-value {
  font-variant-numeric: tabular-nums;
  font-family: var(--dash-font);
}
/* Label: same as Markets .mk-panel-label; value: same scale as .view-tab label text */
.dashboard-kpi-card .kpi-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: #ffffff66;
  transition: color 0.15s ease;
  line-height: 1.2;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}
.dashboard-kpi-card .kpi-value {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
  color: #ffffff;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* Accent line under card — removed */
.dashboard-kpi-card .kpi-accent-line {
  display: none;
}

/* Strategy, Mode, Active Coins, Signals — only label and value colors */
.dashboard-kpi-card.kpi-strategy .kpi-label,
.dashboard-kpi-card.kpi-mode .kpi-label,
.dashboard-kpi-card.kpi-coins .kpi-label,
.dashboard-kpi-card.kpi-signals .kpi-label {
  color: var(--dash-text-muted);
}
.dashboard-kpi-card.kpi-strategy .kpi-value,
.dashboard-kpi-card.kpi-mode .kpi-value,
.dashboard-kpi-card.kpi-coins .kpi-value,
.dashboard-kpi-card.kpi-signals .kpi-value {
  color: var(--dash-text);
}

/*
 * Hover: same navy tint as former default fill; border unchanged
 */
.dashboard-kpi-card:hover {
  background: var(--dash-kpi-surface-bg, rgba(19, 36, 71, 0.3));
  border-color: var(--dash-kpi-surface-border, #294884);
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-1px);
}
.dashboard-kpi-card:hover::before {
  opacity: 1;
}

/* Beat .kpi-* color overrides (needs .dashboard-kpi-grid for specificity) */
.dashboard-kpi-grid .dashboard-kpi-card:hover .kpi-label {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-kpi-grid .dashboard-kpi-card:hover .kpi-value {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-kpi-card:hover {
    transform: none;
  }
}

/* Quick actions - removed from design; hide if present */
.dashboard-actions {
  display: none;
}
.dashboard-actions a {
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dashboard-actions a.primary {
  background: linear-gradient(135deg, var(--dash-blue), #2B7BD4);
  color: white;
  box-shadow: 0 2px 10px rgba(63, 169, 245, 0.2);
}
.dashboard-actions a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(63, 169, 245, 0.3);
  color: white;
}
.dashboard-actions a.secondary {
  background: var(--dash-card-bg);
  color: var(--dash-link);
  box-shadow: 0 0 0 1px var(--dash-card-border);
}
.dashboard-actions a.secondary:hover {
  box-shadow: 0 0 0 1px rgba(94, 136, 255, 0.4);
  color: var(--dash-link);
}
