.admin {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.admin-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-logo {
  height: 40px;
  width: auto;
  display: block;
}
.admin-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--muted-2);
}
.admin-head .btn {
  margin-left: auto;
}
.admin-msg {
  color: var(--muted-2);
  font-size: 15px;
  padding: 50px 0;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.stat-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  animation: dk-up 0.45s ease both;
}
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }
.stat-card--accent {
  background: linear-gradient(135deg, #6b5ce7, #5343d9);
  border: none;
  color: #fff;
  box-shadow: 0 12px 34px rgba(107, 92, 231, 0.28);
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-card--accent .stat-label { color: rgba(255, 255, 255, 0.82); }
.stat-num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
}
.stat-sub {
  font-size: 13px;
  color: var(--muted);
}
.stat-card--accent .stat-sub { color: rgba(255, 255, 255, 0.82); }

/* Диаграмма сравнения пользователей */
.chart-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 24px 26px;
  background: #fff;
  margin-top: 18px;
  animation: dk-up 0.45s ease both;
  animation-delay: 0.2s;
}
.chart-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bar-label {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
}
.bar-track {
  height: 26px;
  background: var(--bg-soft);
  border-radius: 8px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  transition: width 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-fill--all { background: linear-gradient(90deg, #c9c3f2, #a99ff0); }
.bar-fill--active { background: linear-gradient(90deg, #6b5ce7, #5343d9); }
.bar-val {
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chart-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
  .stat-card, .chart-card { animation: none; }
}
@media (max-width: 520px) {
  .bar-row { grid-template-columns: 84px 1fr 46px; gap: 8px; }
  .bar-label { font-size: 12px; }
}
