.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 14px 8px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stats > div {
  position: relative;
  min-width: 0;
  min-height: 82px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(12, 40, 85, 0.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stats > div:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 115, 255, .22);
  box-shadow: 0 12px 28px rgba(12, 40, 85, .08);
}

.stats > div::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.stats > div:nth-child(1)::before { content: "☷"; color: #2563eb; background: #eaf4ff; }
.stats > div:nth-child(2)::before { content: "✦"; color: #7c3aed; background: #f1eaff; }
.stats > div:nth-child(3)::before { content: "!"; color: #d97706; background: #fff4dd; }
.stats > div:nth-child(4)::before { content: "✓"; color: #059669; background: #e8faf3; }

.stats span {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.stats small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.dark .stats > div {
  border-color: rgba(148, 163, 184, .12);
  background: #0d1731;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

body.dark .stats > div:hover {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

body.dark .stats span { color: #f8fafc; }
body.dark .stats small { color: #94a3b8; }
body.dark .stats > div:nth-child(1)::before { color: #60a5fa; background: rgba(37, 99, 235, .14); }
body.dark .stats > div:nth-child(2)::before { color: #c4b5fd; background: rgba(124, 58, 237, .14); }
body.dark .stats > div:nth-child(3)::before { color: #fbbf24; background: rgba(217, 119, 6, .14); }
body.dark .stats > div:nth-child(4)::before { color: #34d399; background: rgba(5, 150, 105, .14); }

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stats > div { min-height: 76px; padding: 11px 12px; border-radius: 13px; }
  .stats > div::before { width: 24px; height: 24px; margin-bottom: 6px; }
  .stats span { font-size: 18px; }
  .stats small { font-size: 9px; }
}
