.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.top-loader.active { opacity: 1; }
.top-loader span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, .7);
  border-radius: 0 3px 3px 0;
}
.top-loader.active span { animation: loaderGrow 8s cubic-bezier(.1, .8, .2, 1) forwards; }
.top-loader.done span { width: 100% !important; animation: none; transition: width .25s ease; }

@keyframes loaderGrow {
  0% { width: 0; }
  20% { width: 45%; }
  100% { width: 92%; }
}
