body {
  margin: 0;
  background: #050510;
}

#static-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #111827, #1e1b4b20, #111827);
  z-index: 9999;
  font-family: system-ui, -apple-system, sans-serif;
}

#static-loader.hidden {
  display: none;
}

.loader-spinner {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 24px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loader-ring-1 {
  border-top-color: #a855f7;
}

.loader-ring-2 {
  inset: 8px;
  border-bottom-color: #22d3ee;
  animation-direction: reverse;
  animation-duration: 2s;
}

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

.loader-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

.loader-text {
  color: #a78bfa;
  font-size: 14px;
  margin: 0;
}

.loader-error {
  display: none;
  text-align: center;
  padding: 20px;
  max-width: 320px;
}

.loader-error.show {
  display: block;
}

.loader-error-title {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.loader-error-text {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.loader-retry-btn {
  background: linear-gradient(to right, #a855f7, #22d3ee);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.loader-retry-btn:hover {
  opacity: 0.9;
}

.loader-clear-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #374151;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 12px;
}
