.backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000; /* Ensure it’s above other content */
}

.backToTop.show {
  display: block;
  animation: appearBackToTop 0.3s ease forwards;
}

@keyframes appearBackToTop {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.7;
  }
}

.backToTop button {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  position: relative;
}

.backToTop button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.backToTop button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  background: var(--color-gradient);
  z-index: -1;
}

.backToTop button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: white;
  z-index: -1;
}
