:root {
  --bg: #0d1514;
  --bg-soft: #13221f;
  --surface: #ffffff;
  --ink: #10201d;
  --muted: #62736e;
  --line: rgba(16, 32, 29, 0.13);
  --accent: #168861;
  --accent-dark: #0f6d4d;
  --focus: rgba(22, 136, 97, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 18%, rgba(22, 136, 97, 0.35), transparent 29%),
    radial-gradient(circle at 80% 78%, rgba(61, 194, 152, 0.18), transparent 32%),
    linear-gradient(145deg, var(--bg), var(--bg-soft) 58%, #0a1110);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.verify-card {
  width: min(100%, 430px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 44%),
    var(--accent);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 10px 22px rgba(22, 136, 97, 0.28);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f3f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease;
}

.language-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.language-button.is-active {
  color: #ffffff;
  background: var(--accent);
}

.language-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.copy {
  margin-top: 30px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.check-row {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 16px;
  color: var(--ink);
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.check-row:hover {
  background: #ffffff;
  border-color: rgba(22, 136, 97, 0.32);
  transform: translateY(-1px);
}

.check-row:focus-visible,
.continue-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.box {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #ffffff;
  border: 2px solid rgba(16, 32, 29, 0.2);
  border-radius: 8px;
  transition: background 160ms ease, border-color 160ms ease;
}

.check-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
}

.check-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(22, 136, 97, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.check-text {
  display: grid;
  gap: 4px;
}

.check-text strong {
  font-size: 17px;
  font-weight: 850;
}

.check-text small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.check-row.is-loading {
  pointer-events: none;
}

.check-row.is-loading .spinner {
  opacity: 1;
  animation: spin 850ms linear infinite;
}

.check-row.is-loading .box {
  border-color: rgba(22, 136, 97, 0.35);
}

.check-row.is-done .box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-row.is-done .check-icon {
  opacity: 1;
  transform: scale(1);
}

.continue-link {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(22, 136, 97, 0.25);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.continue-link:hover {
  background: var(--accent-dark);
  box-shadow: 0 18px 38px rgba(22, 136, 97, 0.32);
  transform: translateY(-1px);
}

.continue-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

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

@media (max-width: 520px) {
  .screen {
    padding: 16px;
  }

  .verify-card {
    padding: 22px;
  }

  h1 {
    font-size: 30px;
  }

  .check-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .box {
    width: 38px;
    height: 38px;
  }
}
