:root {
  --bg: #000000;
  --surface: #221D28;
  --surface-2: #150012;
  --line: rgba(247, 246, 245, 0.12);
  --text: #F7F6F5;
  --muted: #B7B7BA;
  --purple: #AA4FEF;
  --pink: #ED95EB;
  --blue: #5080E9;
  --cyan: #30C9D3;
  --error: #FF7A8A;
  --radius: 20px;
  --display: "Unbounded", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -20vh;
  right: 0;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(170, 79, 239, 0.45), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(80, 128, 233, 0.3), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--pink); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(34, 29, 40, 0.6);
  backdrop-filter: blur(12px);
}
.brand b { color: var(--pink); }

.view {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.hero { padding: 48px 0 32px; }
.hero.small { padding: 24px 0 16px; }

.eyebrow {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--muted);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(32px, 6vw, 64px); }
h1, h2 { overflow-wrap: anywhere; }
h2 { font-size: clamp(17px, 5vw, 22px); margin-bottom: 20px; }

.grad {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.login {
  max-width: 440px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

input {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  color: var(--text);
}

.primary {
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}
.primary:disabled { opacity: 0.6; cursor: wait; }

.ghost {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
}
.ghost:hover { border-color: var(--purple); }

.error { margin: 0; color: var(--error); font-weight: 600; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(170, 79, 239, 0.25), rgba(80, 128, 233, 0.15));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--display);
  font-size: 14px;
}

.materials { margin-bottom: 28px; }
.materials h2 { margin-bottom: 8px; }

.material {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.material:last-child { padding-bottom: 0; }
.material h3 { margin: 0 0 4px; font-size: 17px; }
.material p { margin: 0; color: var(--muted); }
.material .primary { min-width: 200px; }

.toolbar { margin-bottom: 16px; max-width: 320px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.account { display: grid; gap: 12px; padding: 20px; }

.account .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  color: var(--pink);
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field code {
  display: block;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.field > div { flex: 1; min-width: 0; }

.copy {
  flex: none;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(170, 79, 239, 0.25);
}
.copy:hover { background: rgba(170, 79, 239, 0.5); }

.empty { color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .card { padding: 20px; }
  .account { padding: 16px; }
  .field code { font-size: 13px; }
}
