:root {
  --bg: #07141c;
  --bg-2: #0c1e29;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(143, 214, 232, 0.08);
  --line: rgba(143, 214, 232, 0.22);
  --cyan: #9adced;
  --cyan-deep: #67c3d8;
  --text: #e8f4f8;
  --muted: #b4c9d2;
  --faint: #8aa6b2;
  --danger: #ffb0a4;
  --ok: #9ee0c2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(103, 195, 216, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(20, 70, 90, 0.55), transparent 50%),
    var(--bg);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand strong { display: block; font-family: Outfit, Manrope, sans-serif; letter-spacing: 0.16em; font-size: 14px; font-weight: 600; }
.brand span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.ghost, .solid, .texty {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}
.ghost { background: transparent; border: 1px solid var(--line); }
.solid { background: var(--cyan); color: #06202a; border: 0; font-weight: 700; }
.texty { background: none; border: 0; color: var(--cyan); padding: 0; min-height: 0; }
.ghost:hover, .solid:hover { transform: translateY(-1px); }
.solid:disabled, .ghost:disabled { opacity: 0.55; cursor: wait; transform: none; }

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.hero, .panel { padding: 48px 7vw; }
.hero { display: flex; flex-direction: column; justify-content: space-between; }
.kicker { letter-spacing: 0.22em; font-size: 12px; color: var(--cyan); font-family: Outfit, Manrope, sans-serif; }
.hero h1 {
  font-family: Outfit, Manrope, sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  margin: 18px 0 16px;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.lede { max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.points { display: flex; gap: 18px; color: var(--faint); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel { display: flex; align-items: center; }
.card {
  width: min(440px, 100%);
  background: rgba(8, 22, 31, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { background: transparent; border: 0; color: var(--faint); min-height: 40px; padding: 0 12px; border-radius: 999px; }
.tabs button.on { color: #06202a; background: var(--cyan); font-weight: 700; }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
}
input:focus, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card .solid { width: 100%; margin-top: 18px; }
.alert { color: var(--danger); min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.fine { color: var(--faint); font-size: 13px; line-height: 1.5; }
.fine a { color: var(--muted); }

.page { padding-bottom: 64px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 28px 0 18px; }
.head h2 { font-family: Outfit, Manrope, sans-serif; font-weight: 500; font-size: 34px; margin: 0 0 6px; }
.head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.device, .choice {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.device:hover, .choice:hover { background: var(--card-2); }
.eyebrow { color: var(--cyan); letter-spacing: 0.14em; font-size: 11px; font-family: Outfit, Manrope, sans-serif; }
.device h3, .choice strong { margin: 8px 0 4px; font-size: 18px; font-weight: 650; }
.device p, .choice span { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; color: var(--faint); font-size: 13px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.pill.live { color: var(--ok); border-color: rgba(158, 224, 194, 0.4); }
.pill.wait { color: var(--cyan); }
.empty {
  border: 1px dashed var(--line);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
}
.empty h2 { font-family: Outfit, Manrope, sans-serif; font-weight: 500; font-size: 32px; margin-bottom: 8px; }

.back { margin: 18px 0; }
.brand-block { margin: 0 0 22px; }
.brand-block h3 { margin: 0 0 10px; font-family: Outfit, Manrope, sans-serif; font-weight: 500; font-size: 22px; }
.products { display: grid; gap: 8px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.kind { color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.reader { min-height: 240px; border-radius: 18px; overflow: hidden; background: #041017; border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(103, 195, 216, 0.08);
  color: var(--muted);
  line-height: 1.5;
}
.token {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}
.qr { width: 180px; height: 180px; background: #e8f4f8; border-radius: 16px; padding: 10px; }
.qr svg { width: 100%; height: 100%; }
.detail { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.gauge-wrap, .side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.gauge {
  width: 210px;
  height: 210px;
  margin: 8px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}
.gauge i {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: #07141c;
  display: grid;
  place-items: center;
  text-align: center;
  font-style: normal;
}
.gauge b { display: block; font-family: Outfit, Manrope, sans-serif; font-size: 42px; font-weight: 500; }
.gauge small { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.stat { background: rgba(255,255,255,0.03); border-radius: 14px; padding: 12px; }
.stat span { display: block; color: var(--faint); font-size: 12px; margin-bottom: 4px; }
.spark { width: 100%; height: 72px; margin-top: 8px; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 2; }
.rows { display: grid; gap: 8px; margin-top: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; border-bottom: 1px solid rgba(143, 214, 232, 0.1); padding-bottom: 8px; }
.danger { color: var(--danger); background: none; border: 0; min-height: 44px; padding: 0; }

@media (max-width: 860px) {
  .auth, .split, .detail { grid-template-columns: 1fr; }
  .hero { padding: 32px 20px 8px; }
  .panel { padding: 12px 20px 32px; }
  .points { display: none; }
  .head { align-items: stretch; flex-direction: column; }
  .who span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ghost:hover, .solid:hover { transform: none; }
}
