:root {
  color-scheme: light;
  --ink: #14201a;
  --muted: #637169;
  --green: #07c160;
  --green-dark: #06ad56;
  --line: #dfe9e3;
  --surface: rgba(255, 255, 255, 0.94);
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(7, 193, 96, 0.15), transparent 34%),
    linear-gradient(155deg, #f8fbf9 0%, #edf7f1 55%, #f6faf7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

.card {
  padding: 34px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 72, 48, 0.12);
  text-align: center;
  backdrop-filter: blur(16px);
}

.brand-mark { position: relative; width: 66px; height: 58px; margin: 0 auto 18px; }
.brand-mark span {
  position: absolute;
  width: 44px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.2);
}
.brand-mark span:first-child { left: 0; top: 0; }
.brand-mark span:last-child { right: 0; bottom: 0; background: #35d77e; }
.brand-mark span::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 1px;
  width: 12px;
  height: 10px;
  background: inherit;
  clip-path: polygon(0 0, 100% 30%, 100% 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 { margin: 0; font-size: clamp(27px, 7vw, 36px); line-height: 1.22; }
.intro {
  margin: 16px auto 24px;
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.24);
}
.primary-button:active { transform: translateY(1px); background: var(--green-dark); }
.primary-button.is-disabled {
  color: #8a9690;
  background: #e6ece8;
  box-shadow: none;
  pointer-events: none;
}

.secondary-button {
  margin-top: 12px;
  border: 1px solid var(--line);
  color: #296241;
  background: #fff;
}

.status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: #849089;
  font-size: 13px;
}
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.qr-panel { margin: 0; }
.qr-panel img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto;
  border: 12px solid #fff;
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(31, 61, 44, 0.1);
}
.qr-panel figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.trust-note { margin: 16px 18px 0; color: #748178; font-size: 12px; line-height: 1.6; text-align: center; }

@media (max-width: 360px) {
  .shell { padding-inline: 12px; }
  .card { padding-inline: 18px; }
}
