/* Stats-specific polish layer on top of the shared app-base foundation. */

#stats {
  --panel-accent: 255, 255, 255 !important;
  --panel-accent-2: 198, 210, 222 !important;
  --stats-clean-pink: #eef7ff !important;
}

#stats > .dashboard-page-head::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1), transparent 78%) !important;
  box-shadow: none !important;
}

#stats .stats-guest-search {
  min-height: min(520px, calc(100vh - var(--topbar-height) - 96px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: clamp(34px, 7vw, 86px) 18px;
  color: rgba(239, 246, 255, 0.92);
  text-align: center;
}

#stats .stats-guest-mark,
#stats .stats-loading-mini span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
  color: #f7fbff !important;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(14, 21, 31, 0.96), rgba(2, 4, 8, 0.96)) !important;
  border: 1px solid rgba(34, 213, 255, 0.24);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    0 0 36px rgba(34, 213, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
  animation: energyLogoFloat 1.35s cubic-bezier(0.2, 0.8, 0.2, 1) infinite !important;
}

#stats .stats-guest-mark img,
#stats .stats-loading-mini span img {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(34, 213, 255, 0.2));
}

#stats .stats-loading-mini span::after {
  inset: -7px !important;
  border-color: rgba(34, 213, 255, 0.34) !important;
  border-top-color: transparent !important;
  border-left-color: transparent !important;
  animation: stats-loading-orbit 1.15s linear infinite !important;
}

#stats .stats-guest-search strong {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 950;
  line-height: 0.95;
}

#stats .stats-guest-search em {
  max-width: 36ch;
  color: rgba(166, 180, 199, 0.76);
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
}

#stats .stats-guest-search label {
  width: min(520px, 100%);
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(113, 218, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 18, 27, 0.94), rgba(8, 12, 19, 0.94));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#stats .stats-guest-search input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  padding: 0 12px;
  color: #f5f8fc;
  font: inherit;
  font-weight: 850;
  background: transparent;
}

#stats .stats-guest-search input::placeholder {
  color: rgba(145, 161, 184, 0.58);
}

#stats .stats-guest-search button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #06090d !important;
  font: inherit;
  font-weight: 950;
  background: linear-gradient(180deg, #ffffff, #dbe3ea) !important;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  cursor: pointer;
  transition: filter 220ms ease, box-shadow 260ms ease, transform 180ms ease;
}

#stats .stats-guest-search button:hover,
#stats .stats-guest-search button:focus-visible {
  transform: none !important;
  filter: none !important;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 620px) {
  #stats .stats-guest-search label {
    grid-template-columns: 1fr;
  }

  #stats .stats-guest-search button {
    width: 100%;
  }
}

@keyframes energyLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(0.98);
  }

  50% {
    transform: translateY(-4px) scale(1.045);
    filter: brightness(1.12);
  }
}
