.hicom-stats-dock {
  --hcs-cyan: #11b9d5;
  --hcs-white: #fff;
  --hcs-muted: rgba(224, 242, 247, .68);
  --hcs-line: rgba(138, 215, 229, .18);
  position: relative;
  width: min(100%, 660px);
  margin: clamp(10px, 1.5vw, 22px) 0 0 auto;
  padding: 10px 6px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hcs-white);
  box-sizing: border-box;
  isolation: isolate;
  contain: layout paint style;
  font-family: Poppins, Arial, sans-serif;
}

.hicom-stats-dock::before { display: none; }

.hicom-stats-dock__line { display: none; }

.hicom-stats-dock__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.hicom-stat {
  position: relative;
  min-width: 0;
  padding: 0 clamp(13px, 2vw, 25px);
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 5px, 0);
  transition:
    opacity .9s ease,
    transform 1.05s cubic-bezier(.22, .72, .2, 1);
}

.hicom-stats-dock.is-visible .hicom-stat {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hicom-stats-dock.is-visible .hicom-stat:nth-child(2) { transition-delay: .1s; }
.hicom-stats-dock.is-visible .hicom-stat:nth-child(3) { transition-delay: .2s; }

.hicom-stat + .hicom-stat::before {
  content: '';
  position: absolute;
  top: 27%;
  bottom: 27%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(178, 226, 235, .13), transparent);
}

.hicom-stat__number {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-height: 1.12em;
  color: var(--hcs-white);
  font-size: clamp(30px, 2.35vw, 43px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: 0 7px 25px rgba(0, 0, 0, .14);
  transition: transform .28s ease, text-shadow .28s ease;
}

.hicom-stat__value {
  display: inline-block;
  min-width: 2.15ch;
}

.hicom-stat:first-child .hicom-stat__value { min-width: 5.1ch; }

.hicom-stat__plus {
  margin-left: .09em;
  color: var(--hcs-cyan);
  font-size: .59em;
  font-weight: 600;
  letter-spacing: 0;
  transform: translateY(-.42em);
  text-shadow: 0 0 20px rgba(17, 185, 213, .36);
}

.hicom-stat__label {
  display: block;
  margin-top: 7px;
  color: var(--hcs-muted);
  font-size: clamp(9px, .73vw, 11px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: color .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hicom-stat:hover .hicom-stat__number {
    transform: translateY(-3px);
    text-shadow: 0 11px 30px rgba(17, 185, 213, .2);
  }

  .hicom-stat:hover .hicom-stat__label { color: rgba(240, 252, 255, .9); }
}

/* Keep the final metric away from floating chat controls on wide screens. */
@media (min-width: 1320px) {
  .hicom-stats-dock {
    --hcs-chat-safe: clamp(54px, 4.4vw, 88px);
    width: min(calc(100% - var(--hcs-chat-safe)), 660px);
    margin-right: var(--hcs-chat-safe);
  }
}

/* Narrow desktop: keep the dock inside the right-hand hero column. */
@media (min-width: 769px) and (max-width: 1180px) {
  .hicom-stats-dock {
    width: min(100%, 570px);
    padding-inline: 0;
  }

  .hicom-stat { padding-inline: 11px; }
  .hicom-stat__number { font-size: clamp(27px, 3vw, 35px); }
  .hicom-stat__label { font-size: 9px; letter-spacing: .06em; }
}

/* Mobile/tablet: the shortcode returns to normal document flow. */
@media (max-width: 768px) {
  .hicom-stats-dock {
    width: 100%;
    max-width: none;
    margin: 16px auto 0;
    padding: 10px 0 8px;
  }

  .hicom-stat { padding-inline: clamp(7px, 3vw, 17px); }
  .hicom-stat__number { font-size: clamp(25px, 7vw, 32px); }
  .hicom-stat__label {
    margin-top: 6px;
    font-size: clamp(8px, 2.35vw, 10px);
    line-height: 1.3;
    letter-spacing: .045em;
  }
}

@media (max-width: 359px) {
  .hicom-stat { padding-inline: 5px; }
  .hicom-stat__number { font-size: 23px; }
  .hicom-stat__label { font-size: 7.5px; letter-spacing: .025em; }
}

@media (prefers-reduced-motion: reduce) {
  .hicom-stat {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hicom-stats-dock__line { display: none; }
}
