html.app-loading,
html.app-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(38, 139, 248, 0.16), transparent 34%),
    linear-gradient(180deg, #071225 0%, #09162d 48%, #050d1d 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

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

.page-loader__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 28%),
    radial-gradient(circle at center, rgba(59,130,246,0.09), transparent 46%);
}

.page-loader__content {
  position: relative;
  z-index: 2;
  width: min(92vw, 430px);
  padding: 34px 24px;
  border-radius: 28px;
  text-align: center;
  background: rgba(8, 15, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-loader__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-loader__logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(38, 139, 248, 0.22));
  animation: loaderFloat 2.2s ease-in-out infinite;
}

.page-loader__spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.page-loader__spinner span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #268bf8 0%, #22c55e 100%);
  box-shadow: 0 4px 14px rgba(38, 139, 248, 0.3);
  animation: pageLoaderBounce 0.9s infinite ease-in-out;
}

.page-loader__spinner span:nth-child(2) {
  animation-delay: 0.12s;
}

.page-loader__spinner span:nth-child(3) {
  animation-delay: 0.24s;
}

.page-loader__title {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.page-loader__text {
  color: rgba(203, 213, 225, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes pageLoaderBounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-8px) scale(1);
    opacity: 1;
  }
}

@keyframes loaderFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .page-loader__content {
    width: min(92vw, 360px);
    padding: 28px 18px;
    border-radius: 22px;
  }

  .page-loader__logo {
    width: 64px;
    height: 64px;
  }

  .page-loader__title {
    font-size: 19px;
  }

  .page-loader__text {
    font-size: 13px;
  }
}