.visitor-counter-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 18px 0;
}

.visitor-counter[hidden] {
  display: none !important;
}

.visitor-counter {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(199, 210, 254, .9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 10%, rgba(99, 102, 241, .11), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(238, 242, 255, .93));
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .22s ease, transform .22s ease;
}

.visitor-counter.is-ready {
  opacity: 1;
  transform: none;
}

.visitor-counter__hello {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.visitor-counter__wave {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .12), 0 6px 18px rgba(79, 70, 229, .09);
  font-size: 21px;
}

.visitor-counter__hello strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.visitor-counter__hello strong span {
  color: #4f46e5;
  font-weight: 900;
}

.visitor-counter__hello small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 700;
}

.visitor-counter__metrics {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.visitor-counter__metric {
  min-width: 112px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 7px;
  border: 1px solid rgba(228, 231, 236, .95);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
}

.visitor-counter__metric strong {
  color: #111827;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.visitor-counter__metric small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #667085;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.visitor-counter__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
  animation: visitorPulse 2s ease-in-out infinite;
}

@keyframes visitorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .68; }
}

@media (max-width: 700px) {
  .visitor-counter-wrap {
    padding: 10px 13px 0;
  }

  .visitor-counter {
    padding: 13px;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    border-radius: 16px;
  }

  .visitor-counter__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visitor-counter__metric {
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .visitor-counter__wave {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .visitor-counter__hello strong {
    font-size: 14px;
  }
}
