button.stat-chip {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.online-stats-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}
.online-stats-backdrop[hidden] {
  display: none;
}
.online-stats-dialog {
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(132, 199, 255, 0.24);
  background: linear-gradient(135deg, #0b1d38, #071323);
  color: #e7f4ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.online-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.online-stats-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.online-stats-head h3 i {
  color: #38bdf8;
}
.online-stats-close {
  border: 1px solid rgba(132, 199, 255, 0.3);
  background: rgba(8, 27, 52, 0.9);
  color: #e7f4ff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.online-stats-close:hover,
.online-stats-close:focus-visible {
  border-color: #38bdf8;
  outline: none;
}
.online-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.online-stats-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 27, 52, 0.85);
  border: 1px solid rgba(132, 199, 255, 0.18);
}
.online-stats-card small,
.online-stats-card span,
.online-stats-foot {
  display: block;
  color: #9fb8d4;
  font-size: 0.8rem;
}
.online-stats-card strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
}
.online-stats-section {
  margin-bottom: 14px;
}
.online-stats-section h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9fb8d4;
}
.online-stats-chart {
  position: relative;
  height: 200px;
}
.online-stats-pages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.online-stats-pages li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8, 27, 52, 0.7);
  margin-bottom: 6px;
}
.online-stats-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.online-stats-pages strong {
  color: #fff;
}
.online-stats-foot {
  margin-top: 6px;
  text-align: right;
}

@media (max-width: 575.98px) {
  .online-stats-cards {
    grid-template-columns: 1fr;
  }
  .online-stats-chart {
    height: 170px;
  }
}
