.boban-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 19, 0.12);
  border-radius: 50%;
  color: #20262c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(20, 31, 42, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 240ms;
}

.boban-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.boban-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boban-to-top:hover {
  color: #087fc1;
  border-color: rgba(8, 127, 193, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 11px 30px rgba(20, 31, 42, 0.16);
}

.boban-to-top:focus-visible {
  outline: 2px solid #1687c7;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .boban-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boban-to-top { transition: none; }
}
