:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #0d0d18;
  color: #f8f7ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, #42356d 0, transparent 34rem),
    radial-gradient(circle at 90% 85%, #203d46 0, transparent 30rem),
    #0d0d18;
}
.shell {
  width: min(1060px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.shell.compact { grid-template-columns: minmax(280px, 520px); justify-content: center; }
.brand { display: flex; gap: 24px; align-items: flex-start; }
.mark {
  display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto;
  border-radius: 18px; background: #e9de5f; color: #17172b; font-size: 32px; font-weight: 900;
}
.eyebrow, .step { color: #e9de5f; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.05; margin: 14px 0 20px; }
h2 { font-size: 29px; margin: 8px 0 12px; }
.lead, .panel p { color: #c2bfd1; line-height: 1.65; }
.panel {
  background: rgba(30, 29, 48, .92);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  border-radius: 28px;
  padding: 34px;
}
.centered, .result { text-align: center; }
label { display: block; margin: 24px 0 8px; color: #dad7e8; font-size: 14px; }
input {
  width: 100%; padding: 15px 16px; border: 1px solid #54506b; border-radius: 13px;
  background: #12111f; color: white; font: inherit; font-size: 19px; direction: ltr;
}
input:focus { outline: 3px solid rgba(233,222,95,.25); border-color: #e9de5f; }
button, .primary-link, .wallet-button {
  display: block; width: 100%; margin-top: 16px; padding: 15px 20px; border: 0;
  border-radius: 13px; background: #e9de5f; color: #17172b; text-align: center;
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
}
button:disabled { opacity: .55; cursor: wait; }
.link-button { background: transparent; color: #bdb9d0; margin-top: 6px; font-weight: 600; }
.wallet-button { background: #050505; color: white; border: 1px solid #424242; direction: ltr; }
.error { padding: 12px; background: #50262d; color: #ffd8de !important; border-radius: 10px; }
.desktop img, .small-qr {
  display: block; width: min(240px, 100%); margin: 24px auto; padding: 12px;
  border-radius: 18px; background: white;
}
.small-qr { width: 175px; }
.safe, .expiry { font-size: 13px; }
.success, .expired {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #294b38; color: #83e2a2; font-size: 34px;
}
.expired { background: #50262d; color: #ff9cab; }
.phone-icon { font-size: 60px; color: #e9de5f; }
.spinner {
  width: 36px; height: 36px; margin: auto; border: 4px solid #4d4962;
  border-top-color: #e9de5f; border-radius: 50%; animation: spin .8s linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .brand { justify-content: center; }
  .brand h1 { font-size: 38px; }
  .panel { padding: 26px; }
}
