:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08050d;
  color: #f7f3fb;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(126, 34, 206, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 25%, rgba(76, 29, 149, 0.14), transparent 24rem),
    #08050d;
}

button, input, textarea { font: inherit; }

.wl-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 5, 13, 0.84);
  backdrop-filter: blur(18px);
}

.wl-brand { display: flex; align-items: center; gap: 0.85rem; color: inherit; text-decoration: none; }
.wl-brand img { width: 2.65rem; height: 2.65rem; object-fit: contain; }
.wl-brand span { display: grid; }
.wl-brand strong { text-transform: uppercase; letter-spacing: 0.055em; }
.wl-brand small { color: #bcaec8; margin-top: 0.1rem; }
.wl-header-actions { display: flex; align-items: center; gap: 0.9rem; color: #cfc4d8; }
.wl-header-actions a, .wl-header-actions button {
  border: 0; background: none; color: inherit; text-decoration: none; cursor: pointer; padding: 0.55rem;
}
.wl-header-actions a:hover, .wl-header-actions button:hover { color: #fff; }

.wl-shell { width: min(58rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) 0 5rem; }
.wl-intro { max-width: 45rem; margin-bottom: 2rem; }
.wl-eyebrow, .wl-step-label { margin: 0 0 0.55rem; color: #c084fc; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.wl-intro h1 { margin: 0; max-width: 42rem; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.045em; }
.wl-intro > p:last-child { max-width: 38rem; color: #bdb2c7; font-size: 1.05rem; line-height: 1.7; }

.wl-progress {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 0 0 1.2rem; padding: 0;
}
.wl-progress li {
  display: flex; align-items: center; gap: 0.55rem; min-height: 3.2rem; padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.85rem; color: #94899d; background: rgba(255, 255, 255, 0.025); font-size: 0.86rem;
}
.wl-progress span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #211629; font-weight: 800; }
.wl-progress li.is-active { border-color: rgba(192, 132, 252, 0.55); color: #fff; }
.wl-progress li.is-done { color: #b7efc6; }
.wl-progress li.is-done span { background: #166534; color: #fff; }

.wl-card {
  padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid rgba(192, 132, 252, 0.16); border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(26, 17, 34, 0.96), rgba(13, 9, 18, 0.97)); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}
.wl-card[hidden] { display: none; }
.wl-card h2 { margin: 0 0 0.75rem; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.wl-card > p:not(.wl-step-label):not(.wl-feedback) { color: #bdb2c7; line-height: 1.65; }
.wl-link-form { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
label { font-weight: 700; color: #e8e0ee; }
input, textarea {
  width: 100%; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 0.85rem; outline: none;
  background: rgba(255, 255, 255, 0.045); color: #fff; padding: 0.9rem 1rem; line-height: 1.5;
}
input:focus, textarea:focus { border-color: #a855f7; box-shadow: 0 0 0 0.22rem rgba(168, 85, 247, 0.13); }
#linkCode { max-width: 21rem; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
button[type="submit"], .wl-button-link {
  width: fit-content; border: 0; border-radius: 0.85rem; background: linear-gradient(135deg, #7e22ce, #a855f7); color: #fff;
  padding: 0.85rem 1.25rem; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 0.8rem 1.8rem rgba(126, 34, 206, 0.22);
}
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
.wl-questions { display: grid; gap: 1.1rem; margin: 1.8rem 0; }
.wl-question { border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 1rem; padding: 1.1rem; background: rgba(255, 255, 255, 0.025); }
.wl-question > label, .wl-question legend { display: block; margin-bottom: 0.8rem; }
.wl-question fieldset { border: 0; margin: 0; padding: 0; }
.wl-options { display: grid; gap: 0.55rem; }
.wl-option { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.7rem; border-radius: 0.65rem; color: #cfc4d8; font-weight: 500; cursor: pointer; }
.wl-option:hover { background: rgba(192, 132, 252, 0.07); }
.wl-option input { width: auto; margin-top: 0.2rem; }
.wl-submit { margin-top: 0.3rem; }
.wl-feedback { min-height: 1.5rem; color: #f0abfc; font-weight: 700; }
.wl-feedback.is-error { color: #fca5a5; }
.wl-result { text-align: center; }
.wl-result-icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: #166534; font-size: 2rem; }
.wl-result-wait { background: #854d0e; }
.wl-result code { display: inline-block; margin-top: 0.6rem; padding: 0.75rem 1rem; border-radius: 0.7rem; background: #0a070d; color: #d8b4fe; }

@media (max-width: 42rem) {
  .wl-header { align-items: flex-start; }
  #accountName { display: none; }
  .wl-progress { grid-template-columns: repeat(2, 1fr); }
  .wl-progress li { min-height: 2.8rem; }
}
