:root {
  --bg: #0b0f1a;
  --bg-2: #121a2b;
  --card: rgba(22, 30, 48, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9aa6c3;
  --accent: #2aabee;
  --accent-2: #1d8fd1;
  --ok: #22c55e;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 171, 238, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(124, 58, 237, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  gap: 18px;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  animation: rise 0.6s cubic-bezier(.2, .8, .2, 1) both;
}

.badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.25);
}

h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }

.subtitle { margin-top: 8px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

.check {
  margin-top: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.check:hover { border-color: rgba(42, 171, 238, 0.45); }
.check:active { transform: scale(0.99); }
.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check[aria-disabled="true"] { cursor: default; }

.box {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 2px solid #5b6787;
  background: #0f1524;
  transition: border-color .25s, background .25s;
}

.spinner {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid rgba(42, 171, 238, 0.2);
  border-top-color: var(--accent);
  opacity: 0;
}

.tick {
  position: absolute;
  inset: 2px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.check.loading .box { border-color: transparent; background: transparent; }
.check.loading .spinner { opacity: 1; animation: spin .7s linear infinite; }

.check.done { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.08); }
.check.done .box { border-color: var(--ok); background: var(--ok); animation: pop .35s ease-out; }
.check.done .tick { animation: draw .35s .1s ease-out forwards; }

.status { min-height: 1.4em; margin-top: 12px; color: var(--ok); font-size: 0.92rem; opacity: 0; transition: opacity .3s; }
.status.show { opacity: 1; }

.continue {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.35);
  transition: transform .15s, box-shadow .2s;
}
.continue:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(42, 171, 238, 0.45); }
.continue:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.continue.reveal { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both, pulse 2.4s 1s ease-in-out infinite; }

.foot { max-width: 400px; color: #6b7694; font-size: 0.8rem; text-align: center; line-height: 1.4; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(42, 171, 238, 0.35); }
  50% { box-shadow: 0 10px 40px rgba(42, 171, 238, 0.6); }
}

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