.online-counter {
  display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.online-counter__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.online-counter__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: onlinePulse 2s ease-out infinite;
}

.online-counter__num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
  transition: color .3s;
}
.online-counter__label { opacity: .7; }

.online-counter.is-up   .online-counter__num { color: #22c55e; }
.online-counter.is-down .online-counter__num { color: #f87171; }

@keyframes onlinePulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 600px) {
  .online-counter { height: 32px; padding: 0 10px; font-size: 13px; }
  .online-counter__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .online-counter__dot::after { animation: none; }
}
