* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #182248 0%, #090d1b 70%);
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loader-card {
  width: 100%;
  max-width: 420px;
  background: rgba(16, 22, 44, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.logo-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, #6366f1, #38bdf8, #34d399);
  animation: pulseLogo 2s ease-in-out infinite;
}

.logo-core {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  background: #0d1326;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 26px rgba(99, 102, 241, 0.35);
  }
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.status-text {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
  min-height: 20px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #34d399);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.progress-percent {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
}

.action-area {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-main {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-main:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.error-cause {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
}

.hidden {
  display: none;
}