/* Threatley — custom cursor + terug-naar-boven (gelijkgetrokken met threatley.nl)
   De cursor-regels gelden ALLEEN op <body class="cursor-fx"> (de publieke
   pagina's). Werk-schermen zoals de chat laden dit bestand ook, maar houden
   zonder die class gewoon de systeemcursor. */

#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 8999;
  width: 40px; height: 40px;
  background: rgba(14,165,233,.15); border: 1px solid rgba(14,165,233,.4);
  color: #0ea5e9; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s, border-color .2s;
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top:hover { background: rgba(14,165,233,.3); border-color: #0ea5e9; }
@media (max-width: 768px) { #scroll-top { bottom: 20px; right: 20px; width: 36px; height: 36px; } }

@media (pointer: fine) {
  body.cursor-fx { cursor: none; }
  body.cursor-fx #cursor-dot,
  body.cursor-fx #cursor-ring {
    position: fixed; border-radius: 50%; pointer-events: none;
    z-index: 99999; transition: opacity .25s ease;
  }
  body.cursor-fx #cursor-dot {
    width: 6px; height: 6px; background: #0ea5e9;
    transform: translate(-50%,-50%); box-shadow: 0 0 8px #0ea5e9;
  }
  body.cursor-fx #cursor-ring {
    width: 28px; height: 28px; border: 1.5px solid rgba(14,165,233,.6);
    transform: translate(-50%,-50%);
    transition: width .2s, height .2s, border-color .2s, opacity .25s ease;
  }
  body.cursor-fx.cursor-hover #cursor-ring { width: 44px; height: 44px; border-color: #22d3ee; }
}
