:root {
  color: #f4f7f5;
  background: #181c1b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --green: #63e582;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #929a96;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 229, 130, 0.055), transparent 32%),
    #181c1b;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.page-shell {
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #202422;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.verification-content {
  padding: 52px 48px 42px;
  text-align: center;
}

.brand-logo-wrap {
  position: relative;
  width: 100px;
  height: 112px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 22px rgba(78, 219, 115, 0.12));
}

.bc-logo {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: contain;
}

.status-pill {
  width: fit-content;
  margin: 0 auto 17px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(99, 229, 130, 0.17);
  border-radius: 7px;
  color: #a5eeb6;
  background: rgba(99, 229, 130, 0.06);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 229, 130, 0.09);
  animation: pulse 1.2s ease infinite;
}
.status-pill.complete .status-dot { animation: none; }

.verification-card h2 {
  margin: 0;
  color: #f6f8f7;
  font-size: clamp(25px, 6vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.description {
  min-height: 42px;
  max-width: 340px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.progress {
  width: 100%;
  height: 5px;
  margin-top: 27px;
  overflow: hidden;
  border-radius: 3px;
  background: #303532;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 12px rgba(99, 229, 130, 0.25);
  animation: loading 3s ease-in-out forwards;
}
.progress.complete span { width: 100%; animation: none; }

.continue-button {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  color: #132217;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(78, 219, 115, 0.16);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background 160ms ease;
}
.continue-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.continue-button:hover { transform: translateY(-1px); background: #75ec90; }
.continue-button:focus-visible { outline: 3px solid rgba(99, 229, 130, 0.25); outline-offset: 4px; }

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 195, 91, 0.3);
  border-radius: 10px;
  color: #ffe4b3;
  background: #261d10;
  text-align: center;
}

@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes loading {
  0% { width: 0; }
  45% { width: 58%; }
  78% { width: 86%; }
  100% { width: 100%; }
}
@media (max-width: 520px) {
  main {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(16px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .page-shell {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  }

  .verification-content {
    padding: 42px clamp(20px, 7vw, 28px) 34px;
  }

  .brand-logo-wrap {
    width: 90px;
    height: 102px;
    margin-bottom: 20px;
  }

  .bc-logo { width: 80px; height: 80px; }

  .status-pill {
    max-width: 100%;
    margin-bottom: 15px;
    font-size: 9px;
    line-height: 1.3;
  }

  .verification-card h2 {
    font-size: clamp(24px, 7.5vw, 29px);
    overflow-wrap: anywhere;
  }

  .description {
    min-height: 44px;
    max-width: 300px;
    font-size: 14px;
  }

  .progress { margin-top: 24px; }

  .continue-button {
    min-height: 52px;
    font-size: 15px;
  }

  .noscript {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
  }
}

@media (max-width: 360px) {
  .verification-content { padding: 34px 18px 28px; }
  .brand-logo-wrap { width: 82px; height: 92px; margin-bottom: 17px; }
  .bc-logo { width: 72px; height: 72px; }
  .verification-card h2 { font-size: 23px; }
  .description { font-size: 13px; }
  .progress { margin-top: 20px; }
}

@media (max-height: 620px) and (max-width: 520px) {
  .verification-content { padding-top: 26px; padding-bottom: 24px; }
  .brand-logo-wrap { width: 74px; height: 82px; margin-bottom: 14px; }
  .bc-logo { width: 64px; height: 64px; }
  .status-pill { margin-bottom: 12px; }
  .description { min-height: 34px; margin-top: 8px; }
  .progress { margin-top: 18px; }
  .continue-button { min-height: 46px; margin-top: 16px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  main {
    padding:
      max(10px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .page-shell { width: min(100%, 680px); }

  .verification-content {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "visual status"
      "visual title"
      "visual description"
      "visual progress"
      "visual button";
    align-items: center;
    column-gap: 28px;
    padding: 24px 30px;
    text-align: left;
  }

  .brand-logo-wrap { grid-area: visual; margin: 0 auto; }
  .status-pill { grid-area: status; justify-self: start; margin: 0 0 10px; }
  .verification-card h2 { grid-area: title; }
  .description { grid-area: description; min-height: 0; margin: 8px 0 0; }
  .progress { grid-area: progress; margin-top: 18px; }
  .continue-button { grid-area: button; margin-top: 14px; }
}

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