/* ========== Mobile dock — floating bar + bubble active (app style) ========== */
:root {
  --jh-dock-blue: #2B479E;
  --jh-dock-red: #e11d2e;
  --jh-dock-accent: #2B479E;
  --jh-dock-ink: #1f2937;
  --jh-dock-muted: #8b93a7;
}

.jh-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-dock__bar {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 8px 8px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(43, 71, 158, 0.08);
  box-shadow:
    0 12px 32px rgba(43, 71, 158, 0.16),
    0 2px 8px rgba(225, 29, 46, 0.06);
  animation: jhDockIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jhDockIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jh-dock__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-decoration: none;
  color: var(--jh-dock-muted);
  padding: 0 2px 2px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.jh-dock__bubble {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    width 0.28s ease,
    height 0.28s ease;
}

.jh-dock__bubble svg {
  width: 22px;
  height: 22px;
  display: block;
}

.jh-dock__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: inherit;
  transition: color 0.2s ease;
}

/* Active = brand blue bubble + red label accent */
.jh-dock__item.is-active {
  color: var(--jh-dock-red);
}

.jh-dock__item.is-active .jh-dock__bubble {
  width: 48px;
  height: 48px;
  margin-top: -22px;
  margin-bottom: 2px;
  background: linear-gradient(160deg, #3a5bb8 0%, var(--jh-dock-blue) 55%, #243a82 100%);
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(43, 71, 158, 0.38),
    0 0 0 3px rgba(225, 29, 46, 0.12);
}

.jh-dock__item.is-active .jh-dock__bubble svg path,
.jh-dock__item.is-active .jh-dock__bubble svg circle,
.jh-dock__item.is-active .jh-dock__bubble svg rect {
  stroke: #ffffff;
}

.jh-dock__item.is-active .jh-dock__bubble svg circle[fill],
.jh-dock__item.is-active .jh-dock__bubble svg path[fill] {
  fill: #ffffff;
  stroke: none;
}

.jh-dock__item.is-active .jh-dock__label {
  color: var(--jh-dock-red);
  font-weight: 700;
}

.jh-dock__item:not(.is-active):hover {
  color: var(--jh-dock-blue);
}

.jh-dock__item:active .jh-dock__bubble {
  transform: scale(0.94);
}

@media (min-width: 768px) {
  .jh-dock {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .floating-contact-icons {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .touria-scrolltop {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .jh-chat-fab-wrap,
  .jh-chat-root--solo .jh-chat-fab-wrap {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
