/* Visual-only “users online” presence — ARB public brand styling */

.arb-online-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 94, 255, 0.35);
  background: linear-gradient(135deg, #3a11b0 0%, #2d0f86 55%, #1a0b2e 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(58, 17, 176, 0.35);
  font-family: Poppins, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  flex: 0 0 auto;
}

.arb-online-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #28e0e0;
  box-shadow: 0 0 0 0 rgba(40, 224, 224, 0.45);
  animation: arb-online-pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

.arb-online-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-width: 3.1em;
  text-align: right;
  color: #ffffff;
  font-weight: 800;
  font-size: 1em;
}

.arb-online-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.86em;
  text-transform: none;
}

@keyframes arb-online-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(40, 224, 224, 0.45);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(40, 224, 224, 0);
    opacity: 0.85;
  }
}

@media (max-width: 991px) {
  .arb-online-presence {
    margin-right: 0.55rem;
    padding: 0.48rem 0.78rem 0.48rem 0.62rem;
    font-size: 0.82rem;
    box-shadow: 0 8px 22px rgba(58, 17, 176, 0.3);
  }
}

@media (max-width: 479px) {
  .arb-online-presence {
    gap: 0.38rem;
    padding: 0.42rem 0.65rem 0.42rem 0.55rem;
    font-size: 0.74rem;
  }

  .arb-online-count {
    min-width: 2.7em;
  }
}

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

/* Keep clear of fullscreen chat on mobile */
body.arb-chat-scroll-lock .arb-online-presence {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
