#scrollTopBtn {
  position: fixed;
  right: 30px;
  bottom: 32px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  background: #96071a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.11);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0.92;
  padding: 0;
  box-sizing: border-box; /* <-- add this line */
  /* Prevent overflow on small screens */
  max-width: 96vw;
  max-height: 96vw;
}

#scrollTopBtn svg {
  display: block;
  margin: auto;
}

#scrollTopBtn:hover {
  background: #a80018;
  opacity: 1;
  box-shadow: 0 6px 26px rgba(201,0,30,0.22);
}

@media (max-width: 600px) {
  #scrollTopBtn {
    right: 8px; /* <-- change from 12px to 8px */
    bottom: 8px; /* <-- change from 14px to 8px */
    width: 40px; /* <-- change from 46px to 40px */
    height: 40px; /* <-- change from 46px to 40px */
    max-width: 90vw; /* <-- ensure doesn't overflow */
    max-height: 90vw;
  }
  #scrollTopBtn svg {
    width: 18px;
    height: 18px;
  }
}