.tgwv-view-count-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.35rem 0 0.85rem;
}

.tgwv-view-count-bar--under-title {
  margin-top: 0.45rem;
  margin-bottom: 1rem;
}

.site-breadcrumb + .tgwv-view-count-bar--under-title {
  margin-top: 0.35rem;
}

.site-container > .tgwv-view-count-bar--under-title:first-child {
  margin-top: 0.75rem;
}

.tgwv-inline-share {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.tgwv-inline-share__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--tgwv-text, #334155) 62%, transparent);
}

.tgwv-inline-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.tgwv-inline-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: none;
  background: #64748b;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(15 23 42 / 12%);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.tgwv-inline-share__btn:hover,
.tgwv-inline-share__btn:focus-visible {
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 3px 8px rgb(15 23 42 / 18%);
}

.tgwv-inline-share__btn--facebook {
  background: #1877f2;
}

.tgwv-inline-share__btn--twitter {
  background: #1da1f2;
}

.tgwv-inline-share__btn--linkedin {
  background: #0a66c2;
}

.tgwv-inline-share__btn--telegram {
  background: #2aabee;
}

.tgwv-inline-share__btn--whatsapp {
  background: #25d366;
}

.tgwv-inline-share__btn--copy {
  background: #475569;
}

.tgwv-inline-share__btn--copy.is-copied {
  background: var(--tgwv-brand, #0f172a);
}

.tgwv-inline-share__btn i {
  font-size: 0.95rem;
  line-height: 1;
}

.tgwv-inline-share__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tgwv-view-count {
  --tgwv-vc-fg: color-mix(in srgb, var(--tgwv-text, #334155) 72%, transparent);
  --tgwv-vc-bg: color-mix(in srgb, var(--tgwv-text, #334155) 6%, transparent);
  --tgwv-vc-border: color-mix(in srgb, var(--tgwv-text, #334155) 12%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--tgwv-vc-border);
  background: var(--tgwv-vc-bg);
  color: var(--tgwv-vc-fg);
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tgwv-view-count__icon {
  font-size: 0.78em;
  opacity: 0.85;
  color: var(--tgwv-brand, var(--tgwv-vc-fg));
}

.tgwv-view-count__num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--tgwv-text, #1e293b);
}

.tgwv-view-count__label {
  font-weight: 500;
  opacity: 0.9;
}

.tgwv-view-count--tracker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
}

/* Inside article builder meta row — keep tonal, less “pill” */
.tgwv-article-detail-meta .tgwv-view-count {
  margin-left: 0;
  padding: 0.15rem 0.55rem;
  font-size: inherit;
  color: inherit;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-color: color-mix(in srgb, currentColor 14%, transparent);
}

.tgwv-article-detail-meta .tgwv-view-count__num {
  color: inherit;
  font-weight: 700;
}

.tgwv-article-detail-meta .tgwv-view-count__icon {
  color: inherit;
  opacity: 0.75;
}

.entry-title + .tgwv-view-count-bar,
.product-detail__title + .tgwv-view-count-bar {
  margin-top: 0.45rem;
}

@media (max-width: 575.98px) {
  .tgwv-view-count-bar {
    gap: 0.5rem 0.75rem;
  }

  .tgwv-inline-share__btn {
    width: 1.85rem;
    height: 1.85rem;
  }

  .tgwv-view-count {
    font-size: 0.75rem;
    padding: 0.24rem 0.6rem;
    gap: 0.32rem;
  }
}

/* Footer bottom-bar site traffic stats */
.tgwv-site-stats {
  --tgwv-ss-chip: #f4f7fb;
  --tgwv-ss-chip-border: #dbe3ee;
  --tgwv-ss-muted: #5b6b7c;
  --tgwv-ss-value: #152033;
  --tgwv-ss-shadow: 0 1px 2px rgb(15 23 42 / 12%), 0 6px 14px rgb(15 23 42 / 10%);
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.2;
  color: inherit;
}

.tgwv-site-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .tgwv-footer-default__bottom .tgwv-site-stats__list,
  .tgwv-footer-1__bottom .tgwv-site-stats__list {
    justify-content: flex-end;
  }
}

.tgwv-site-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.78rem 0.4rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--tgwv-ss-chip-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--tgwv-ss-chip) 100%);
  box-shadow: var(--tgwv-ss-shadow);
  color: var(--tgwv-ss-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tgwv-site-stats__item:hover {
    border-color: #c7d3e3;
    box-shadow: 0 2px 4px rgb(15 23 42 / 12%), 0 10px 18px rgb(15 23 42 / 12%);
    transform: translateY(-1px);
  }
}

.tgwv-site-stats__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tgwv-ss-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tgwv-site-stats__item--online .tgwv-site-stats__label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 22%, transparent);
  animation: tgwv-site-stats-pulse 2s ease-in-out infinite;
}

.tgwv-site-stats__value {
  color: var(--tgwv-ss-value);
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  min-width: 0.75em;
  text-align: right;
}

.tgwv-site-stats__item--online {
  --tgwv-ss-chip: #ecfdf3;
  --tgwv-ss-chip-border: #b7ebc9;
  --tgwv-ss-muted: #166534;
  --tgwv-ss-value: #14532d;
}

.tgwv-site-stats__item--week {
  --tgwv-ss-chip: #eef6ff;
  --tgwv-ss-chip-border: #c7dbf5;
  --tgwv-ss-muted: #1d4f91;
  --tgwv-ss-value: #0f3a6e;
}

.tgwv-site-stats__item--month {
  --tgwv-ss-chip: #fff7ed;
  --tgwv-ss-chip-border: #f3d5b5;
  --tgwv-ss-muted: #9a5b16;
  --tgwv-ss-value: #7c3f0a;
}

.tgwv-site-stats__item--total {
  --tgwv-ss-chip: #eefaf7;
  --tgwv-ss-chip-border: #b7e4d8;
  --tgwv-ss-muted: #0f766e;
  --tgwv-ss-value: #115e59;
}

@keyframes tgwv-site-stats-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 22%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, #16a34a 10%, transparent);
  }
}

@media (max-width: 575.98px) {
  .tgwv-site-stats__list {
    gap: 0.35rem;
    justify-content: center;
  }

  .tgwv-site-stats__item {
    padding: 0.34rem 0.62rem 0.34rem 0.52rem;
    gap: 0.35rem;
    font-size: 0.7rem;
  }

  .tgwv-site-stats__value {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgwv-site-stats__item {
    transition: none;
  }

  .tgwv-site-stats__item--online .tgwv-site-stats__label::before {
    animation: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .tgwv-site-stats__item:hover {
      transform: none;
    }
  }
}
