:root {
  color-scheme: light;
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-strong: #f7fafc;
  --text: #162033;
  --muted: #637083;
  --line: #d9e2ec;
  --primary: #1769e0;
  --primary-dark: #0f4fae;
  --success: #14885f;
  --warning: #c27a12;
  --shadow: 0 24px 70px rgba(31, 47, 70, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(238, 243, 248, 0.92), rgba(238, 243, 248, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(22, 32, 51, 0.04) 0,
      rgba(22, 32, 51, 0.04) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(22, 32, 51, 0.04) 0,
      rgba(22, 32, 51, 0.04) 1px,
      transparent 1px,
      transparent 56px
    ),
    var(--bg);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.verification-panel {
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(159, 174, 192, 0.45);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  color: #415065;
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(20, 136, 95, 0.13);
}

.brand-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 32px 32px 18px;
}

.shield {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(23, 105, 224, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
}

.shield svg {
  width: 34px;
  height: 34px;
}

.shield path:first-child {
  fill: rgba(23, 105, 224, 0.12);
  stroke: var(--primary);
  stroke-width: 2;
}

.shield path:last-child {
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(23px, 4.7vw, 31px);
  line-height: 1.14;
  font-weight: 760;
  letter-spacing: 0;
}

.scanner {
  position: relative;
  height: 178px;
  margin: 10px 32px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(23, 105, 224, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfdff, #f3f7fb);
}

.scanner-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23, 105, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 15%, transparent 74%);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(23, 105, 224, 0.18) 28%,
    rgba(20, 136, 95, 0.58)
  );
  box-shadow: 0 10px 28px rgba(20, 136, 95, 0.24);
  animation: sweep 2.9s ease-in-out infinite;
}

.scanner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(23, 105, 224, 0.24);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 10px 28px rgba(23, 105, 224, 0.12),
    inset 0 0 0 9px rgba(23, 105, 224, 0.06);
  transform: translate(-50%, -50%);
}

.scanner-core::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: rgba(20, 136, 95, 0.6);
  border-radius: 50%;
  animation: rotate 1.1s linear infinite;
}

.scanner-core span {
  color: var(--primary-dark);
  font-size: 30px;
  font-weight: 780;
}

.progress-wrap {
  padding: 0 32px 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.progress-meta strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f0;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 420ms ease;
}

.checks {
  display: grid;
  gap: 10px;
  padding: 0 32px 28px;
  list-style: none;
}

.check-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.check-item span {
  width: 18px;
  height: 18px;
  border: 2px solid #b7c4d4;
  border-radius: 50%;
}

.check-item.active {
  border-color: rgba(23, 105, 224, 0.34);
  background: #f7fbff;
  color: var(--text);
}

.check-item.active span {
  border-color: var(--primary);
  border-top-color: transparent;
  animation: rotate 800ms linear infinite;
}

.check-item.done {
  color: #2f5548;
}

.check-item.done span {
  display: grid;
  place-items: center;
  border-color: var(--success);
  background: var(--success);
}

.check-item.done span::before {
  content: "";
  width: 8px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.redirect-button {
  display: block;
  width: calc(100% - 64px);
  min-height: 48px;
  margin: 0 auto 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.redirect-button:disabled {
  cursor: wait;
  opacity: 0.54;
}

.redirect-button:not(:disabled):hover {
  box-shadow: 0 12px 26px rgba(23, 105, 224, 0.26);
  transform: translateY(-1px);
}

.helper-text {
  padding: 0 32px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

@keyframes sweep {
  0% {
    transform: translateY(0);
  }
  55%,
  100% {
    transform: translateY(212px);
  }
}

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

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding: 16px;
  }

  .brand-row {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 24px 20px 16px;
  }

  .shield {
    width: 48px;
    height: 48px;
  }

  .scanner {
    height: 158px;
    margin: 6px 20px 22px;
  }

  .progress-wrap,
  .checks,
  .helper-text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .redirect-button {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
