:root {
  --bg: #0f1419;
  --bg-card: #1a222c;
  --text: #e8eef4;
  --text-muted: #8b9aab;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.2);
  --track: #2a3542;
  --error: #f3c1c1;
  --error-bg: rgba(232, 93, 93, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1d2b3d 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  margin: 0;
  padding: 24px;
  text-align: center;
}

.container {
  background: var(--bg-card);
  max-width: 480px;
  margin: 12vh auto 0;
  padding: 40px 36px 36px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

#status {
  font-size: 16px;
  margin: 12px 0 28px;
  color: var(--text-muted);
  min-height: 24px;
}

#status.status-error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 14px;
  background-color: var(--track);
  border-radius: 999px;
  overflow: visible;
  margin: 8px 0 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2f6fdb, var(--accent));
  border-radius: 999px;
  transition: width 1s linear;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.progress-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  transform: translateY(-50%);
  transition: left 1s linear;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.page-fp-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.success_load_fp {
  display: none;
  width: min(220px, 46vw);
  height: auto;
  margin: 0 auto;
}

.success_load_fp.is-visible {
  display: block;
  animation: fp-pop 0.45s ease;
}

@keyframes fp-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
