:root {
  --red: #ff444f;
  --red-hover: #eb3e48;
  --ink: #181c25;
  --muted: #6d7380;
  --line: #eceef2;
  --bg: #f4f5f8;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(90% 50% at 80% -10%, rgba(255,68,79,.18), transparent 60%),
    linear-gradient(180deg, #181c25 0%, #181c25 220px, var(--bg) 220px);
  z-index: 0;
}
.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 48px 20px 80px; }
.card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(24,28,37,.08);
}
.login-card { max-width: 440px; margin: 12vh auto 0; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0 0 8px; font-size: 28px; }
h2 { margin: 0 0 8px; font-size: 18px; }
h3 { margin: 22px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lede, .hint, .banner-label, .banner-updated { color: var(--muted); }
.lede { margin: 0 0 24px; line-height: 1.5; }
.hint { font-size: 13px; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fafbfc;
}
input:focus, select:focus { outline: 2px solid rgba(255,68,79,.25); border-color: var(--red); background: var(--white); }
.row { display: flex; gap: 12px; margin-bottom: 12px; }
.field { min-width: 92px; }
.grow { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px;
  background: var(--red); color: var(--white); border: 0;
  border-radius: 999px; padding: 12px 18px;
  font: 700 14px Inter, sans-serif; cursor: pointer;
}
.btn:hover { background: var(--red-hover); }
.btn.ghost { width: auto; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.top { display: flex; justify-content: space-between; align-items: end; color: var(--white); margin-bottom: 24px; }
.top h1, .top .eyebrow { color: inherit; }
.grid { display: grid; gap: 20px; grid-template-columns: 1.2fr .8fr; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } .top { align-items: start; gap: 12px; } }
.error { color: #d32f2f; font-size: 13px; margin: 8px 0 0; }
.ok { color: #0f8a4b; font-size: 13px; margin: 8px 0 0; }
.banner {
  background: #181c25;
  color: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.banner-label { margin: 0; font-size: 12px; color: rgba(255,255,255,.7); }
.banner-total { margin: 6px 0 8px; font-size: 28px; font-weight: 800; }
.banner-updated { margin: 0; font-size: 12px; color: rgba(255,255,255,.7); }
.accounts { list-style: none; padding: 0; margin: 18px 0; }
.accounts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.accounts li span { color: var(--muted); }
.btn.inline { width: auto; margin-top: 22px; padding-left: 22px; padding-right: 22px; }
.create-row { align-items: end; }
.created {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff6f6;
  border: 1px solid #ffd5d7;
}
.created p { margin: 0 0 8px; }
.code-line { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
code {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #181c25;
  color: #fff;
  word-break: break-all;
  font-size: 13px;
}
.people { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.person {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px;
}
.person strong { display: block; }
.person small { color: var(--muted); }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.person-actions .btn, .btn.ghost.dark {
  width: auto; margin: 0; padding: 8px 12px; font-size: 12px;
}
.btn.ghost.dark { color: var(--ink); border-color: var(--line); background: #fff; }
.btn.ghost.dark:hover { background: var(--bg); }
.pair-code {
  margin: 8px 0 12px;
  font-size: 32px;
  letter-spacing: .28em;
  font-weight: 800;
  text-align: center;
}
.qr { display: block; width: 180px; height: 180px; margin: 0 auto 12px; border-radius: 12px; background: #fff; }
.pair-url { font-size: 12px; word-break: break-all; text-align: center; }
.preview-head { margin-top: 28px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #181c25; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; z-index: 50;
}
