.xp-scroll-jumps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2200;
  pointer-events: none;
}

.xp-scroll-jumps[hidden] {
  display: none !important;
}

.xp-scroll-jump-btn {
  pointer-events: auto;
  border: 2px solid #2257a1;
  background: linear-gradient(180deg, #ffffff 0%, #cfe4ff 100%);
  color: #184a88;
  box-shadow: 2px 2px 0 rgba(23, 63, 126, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.xp-scroll-jump-btn[hidden] {
  display: none !important;
}

.xp-scroll-jump-btn:hover,
.xp-scroll-jump-btn:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #dfedff 100%);
}

.xp-scroll-jump-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(23, 63, 126, 0.35);
}

.chat-jumps,
.feed-jumps {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.chat-jumps {
  bottom: clamp(70px, 10vh, 98px);
}

.feed-jumps {
  bottom: 10px;
}

.chat-jumps .xp-scroll-jump-btn,
.feed-jumps .xp-scroll-jump-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 15px;
}

.popup-chat-jumps {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
}

.popup-chat-jumps .xp-scroll-jump-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
}

.xp-scroll-jump-down.has-new-message {
  border-color: #9b1e1e;
  color: #8e1010;
  background: linear-gradient(180deg, #fff6f6 0%, #ffcccc 100%);
  box-shadow: 0 0 0 2px rgba(255, 120, 120, 0.45), 2px 2px 0 rgba(128, 0, 0, 0.3);
  animation: chatDownAlertPulse 1.05s ease-in-out infinite;
}

@keyframes chatDownAlertPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.profile-page-jumps {
  position: fixed;
  left: clamp(8px, calc((100vw - 1150px) / 2 - 60px), 72px);
  bottom: 22px;
  transform: none;
}

.profile-page-jumps .xp-scroll-jump-btn {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 3px 3px 0 rgba(23, 63, 126, 0.35);
}

@media (max-width: 900px) {
  .profile-page-jumps {
    left: 8px;
    bottom: 12px;
  }

  .profile-page-jumps .xp-scroll-jump-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xp-scroll-jump-btn {
    transition: none;
  }

  .xp-scroll-jump-down.has-new-message {
    animation: none;
  }
}
