/* Refined profile halo and CountUp finish mark. */
.profile-visualizer-wrapper {
  isolation: isolate;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38)) !important;
}

.profile-visualizer-wrapper::before,
.profile-visualizer-wrapper::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.profile-visualizer-wrapper::before {
  inset: 6.5% !important;
  z-index: 1;
  border: 0 !important;
  background: conic-gradient(
    from 30deg,
    transparent 0 20%,
    rgba(255, 255, 255, 0.08) 31%,
    rgba(255, 255, 255, 0.74) 42%,
    rgba(255, 255, 255, 0.1) 53%,
    transparent 64% 100%
  ) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  box-shadow: none !important;
  opacity: 0.72 !important;
  animation: refinedHaloOrbit 9s linear infinite;
}

.profile-visualizer-wrapper::after {
  inset: 9.5% !important;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent !important;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.12),
    0 0 0 6px rgba(255, 255, 255, 0.025),
    inset 0 0 18px rgba(0, 0, 0, 0.34);
  opacity: 0.9 !important;
  animation: refinedHaloPulse 4.8s ease-in-out infinite;
}

.profile-visualizer-wrapper .profile-img {
  z-index: 2;
}

.profile-visualizer-wrapper .visitor-counter {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  min-width: 68px !important;
  min-height: 28px;
  padding: 5px 10px !important;
  overflow: visible !important;
  background: rgba(3, 4, 7, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.visitor-counter .count {
  min-width: 3ch;
  color: rgba(255, 255, 255, 0.92);
  font: 600 0.78rem/1 "Poppins", sans-serif !important;
  letter-spacing: 0.035em !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 13px rgba(255, 255, 255, 0.2);
}

.count-sigil {
  display: inline-grid;
  place-items: center;
  width: 0;
  color: #f2f2f4;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", serif;
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.35));
  transform: translateY(5px) rotate(-28deg) scale(0.35);
}

.visitor-counter.is-complete .count-sigil {
  width: 18px;
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  transition:
    width 260ms ease,
    opacity 360ms ease 80ms,
    transform 520ms cubic-bezier(0.18, 0.9, 0.22, 1.35) 80ms;
}

@keyframes refinedHaloOrbit {
  to { transform: rotate(1turn); }
}

@keyframes refinedHaloPulse {
  0%, 100% {
    transform: scale(0.985);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.018);
    opacity: 0.96;
  }
}

@media (max-width: 768px) {
  .profile-visualizer-wrapper::before {
    animation-duration: 14s;
  }

  .profile-visualizer-wrapper::after {
    animation: none;
  }

  .profile-visualizer-wrapper .visitor-counter {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-visualizer-wrapper::before,
  .profile-visualizer-wrapper::after {
    animation: none !important;
  }
}
