/* Treatly — holographic path trails when AI acts in the app */

.treatly-holo-trail-root {
  position: fixed;
  inset: 0;
  z-index: 955;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.treatly-holo-trail-root--on {
  opacity: 1;
}

.treatly-holo-trail-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.treatly-holo-trail-dot {
  filter: drop-shadow(0 0 6px rgba(107, 255, 218, 0.9))
    drop-shadow(0 0 14px rgba(124, 108, 255, 0.55));
}

.treatly-holo-trail-path--dash {
  animation: treatly-holo-trail-march 0.55s linear infinite;
}

@keyframes treatly-holo-trail-march {
  to {
    stroke-dashoffset: -24;
  }
}

#n-add.treatly-holo-trail-source .ni-add-holo[data-holo-logo],
#n-add.treatly-holo-trail-source .holo-logo-canvas {
  filter: drop-shadow(0 0 14px rgba(50, 181, 190, 0.65))
    drop-shadow(0 0 28px rgba(124, 108, 255, 0.4));
}

.treatly-holo-trail-hit {
  animation: treatly-holo-trail-land 0.9s ease-out;
}

@keyframes treatly-holo-trail-land {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 181, 190, 0.55);
  }
  35% {
    box-shadow:
      0 0 0 3px rgba(124, 108, 255, 0.35),
      0 0 28px rgba(50, 181, 190, 0.45);
  }
  100% {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatly-holo-trail-root {
    display: none !important;
  }
}
