:root {
  color: #0f172a;
  background: #f6f8fc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.1), transparent 32rem),
    radial-gradient(circle at 88% 92%, rgba(96, 165, 250, 0.08), transparent 28rem),
    #f6f8fc;
}

button,
input,
select,
textarea {
  font: inherit;
}

.verify-page {
  display: flex;
  width: min(100%, 590px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.verify-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.verify-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.24);
}

.verify-brand__mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.verify-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.verify-brand strong {
  color: #0f172a;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.verify-brand small {
  color: #64748b;
  font-size: 12px;
}

.verify-journey {
  padding: 16px 22px 17px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
}

.verify-journey__summary {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.verify-journey__summary span:first-child {
  color: #334155;
  font-weight: 700;
}

.verify-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.verify-progress__line {
  position: absolute;
  top: 12px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.verify-progress__line > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 220ms ease;
}

.verify-progress__step {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.verify-progress__dot {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #dbe4ef;
  border-radius: 50%;
  color: #64748b;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  transition: 180ms ease;
}

.verify-progress__step.is-active,
.verify-progress__step.is-complete {
  color: #1e40af;
}

.verify-progress__step.is-active .verify-progress__dot {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}

.verify-progress__step.is-complete .verify-progress__dot {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.verify-card {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11), 0 3px 10px rgba(15, 23, 42, 0.04);
}

.verify-flow {
  width: 100%;
  min-height: 600px;
  height: min(720px, calc(100dvh - 150px));
}

.verify-flow > div {
  height: 100%;
}

.verify-status,
.verify-result {
  display: flex;
  min-height: 600px;
  padding: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.verify-status[hidden],
.verify-flow[hidden],
.verify-result[hidden] {
  display: none;
}

.verify-status {
  color: #64748b;
  font-size: 14px;
}

.verify-status__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: verify-spin 0.8s linear infinite;
}

.verify-result__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: #12966f;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 150, 111, 0.24);
}

.verify-result--error .verify-result__icon {
  background: #d64242;
  box-shadow: 0 12px 28px rgba(214, 66, 66, 0.2);
}

.verify-result h1,
.verify-result p {
  margin: 0;
}

.verify-result h1 {
  color: #0f172a;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.verify-result p {
  max-width: 390px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

.verify-result button {
  min-width: 190px;
  margin-top: 12px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #2563eb;
  cursor: pointer;
  font-weight: 750;
}

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

@media (max-width: 620px) {
  .verify-page {
    width: 100%;
    min-height: 100dvh;
    padding: 12px 0 0;
    justify-content: flex-start;
    gap: 10px;
  }

  .verify-brand {
    padding: 2px 16px;
  }

  .verify-journey {
    margin: 0 12px;
    padding: 13px 15px 14px;
    border-radius: 16px;
  }

  .verify-journey__summary {
    margin-bottom: 10px;
  }

  .verify-card {
    min-height: calc(100dvh - 170px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 34px rgba(38, 56, 88, 0.08);
  }

  .verify-flow,
  .verify-status,
  .verify-result {
    min-height: calc(100dvh - 170px);
    height: calc(100dvh - 170px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .verify-status__spinner {
    animation-duration: 1.8s;
  }
}
