:root {
  --bg: #08080c;
  --surface: rgba(22, 22, 30, 0.72);
  --surface-solid: #16161e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ececf3;
  --muted: #8d8d9c;
  --accent: #8f7dff;
  --accent-2: #4fd1ff;
  --danger: #ff6b7a;
  --ok: #4ade80;
  --radius: 18px;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }

.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 50vh at 15% 0%, rgba(143, 125, 255, 0.18), transparent 70%),
    radial-gradient(50vw 40vh at 100% 100%, rgba(79, 209, 255, 0.12), transparent 70%),
    var(--bg);
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 18px; }
nav { display: flex; gap: 8px; align-items: center; }
nav a, nav button { color: var(--muted); text-decoration: none; font-size: 14px; }

.app { flex: 1; display: grid; place-items: start center; padding: 24px 20px 60px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

.card {
  width: min(440px, 100%);
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: rise .35s cubic-bezier(.2,.8,.2,1);
}
.card.wide { width: min(760px, 100%); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 650; }
h2 { font-size: 15px; margin: 28px 0 12px; color: var(--muted); font-weight: 550; text-transform: uppercase; letter-spacing: .08em; }
p.sub { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px; outline: none; transition: border-color .15s, background .15s;
}
input:focus { border-color: var(--accent); background: rgba(143,125,255,0.06); }
input.code { text-align: center; font-size: 28px; letter-spacing: .25em; font-weight: 600; text-transform: uppercase; padding: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 22px; padding: 13px 18px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; color: #0b0b10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform .12s, filter .15s, opacity .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { width: auto; margin: 0; padding: 8px 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,107,122,.3); }

.alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.alt a { color: var(--accent); text-decoration: none; }
.error { color: var(--danger); font-size: 14px; margin-top: 14px; min-height: 1em; }
.success { color: var(--ok); }

.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.row .meta { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .detail { color: var(--muted); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #55556a; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 12px rgba(74, 222, 128, .6); }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(143,125,255,.15); color: var(--accent); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(143,125,255,.25), rgba(79,209,255,.18)); font-size: 26px; }
