#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: loaderFade 0.5s ease both;
}

.loader-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 30px;
  position: relative;
}

.loader-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  border: 1px solid var(--border);
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
}

.loader-role {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.loader-line {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  overflow: hidden;
  position: relative;
}

.loader-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: var(--text-primary);
  border-radius: inherit;
  animation: loaderSlide 1.1s ease-in-out infinite;
}

@keyframes loaderFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes loaderSlide {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(260%);
  }
}
