:root {
  --boot-bg-start: #f5f7fb;
  --boot-bg-end: #eef2f8;
  --boot-surface: rgba(255, 255, 255, 0.9);
  --boot-border: rgba(15, 23, 42, 0.08);
  --boot-text: #0f172a;
  --boot-text-soft: #5b6475;
  --boot-accent: #007aff;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
}

[data-app-shell][hidden] {
  display: none !important;
}

.boot-loader[hidden] {
  display: none !important;
}

.boot-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(0, 122, 255, 0.1), transparent 38%),
    linear-gradient(180deg, var(--boot-bg-start) 0%, var(--boot-bg-end) 100%);
  color: var(--boot-text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.boot-loader__spinner {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 26%, transparent 27% 100%),
    conic-gradient(
      from 180deg,
      rgba(0, 122, 255, 0.08) 0deg,
      rgba(0, 122, 255, 0.22) 90deg,
      rgba(0, 122, 255, 0.92) 180deg,
      rgba(0, 122, 255, 0.32) 255deg,
      rgba(0, 122, 255, 0.08) 360deg
    );
  box-shadow:
    0 18px 44px rgba(0, 122, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  animation: boot-spin 1.05s cubic-bezier(0.68, -0.15, 0.32, 1.15) infinite;
}

.boot-loader__spinner::before,
.boot-loader__spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.boot-loader__spinner::before {
  inset: 8px;
  background:
    radial-gradient(circle at center, transparent 0 58%, rgba(255, 255, 255, 0.95) 59% 66%, transparent 67% 100%),
    conic-gradient(
      from 30deg,
      transparent 0deg 205deg,
      rgba(0, 122, 255, 0.22) 206deg 262deg,
      rgba(0, 122, 255, 0.88) 263deg 320deg,
      transparent 321deg 360deg
    );
  animation: boot-spin-reverse 1.7s linear infinite;
}

.boot-loader__spinner::after {
  inset: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 52%, transparent 53% 100%),
    conic-gradient(
      from 220deg,
      transparent 0deg 220deg,
      rgba(0, 122, 255, 0.82) 221deg 300deg,
      transparent 301deg 360deg
    );
  box-shadow:
    inset 0 0 18px rgba(0, 122, 255, 0.12),
    0 0 24px rgba(0, 122, 255, 0.14);
  animation: boot-pulse 1.4s ease-in-out infinite;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes boot-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes boot-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.92;
  }

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