:root{
  --bg1:#070a12;
  --bg2:#0b1531;
  --card:#0b1224ee;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --btn:#2563eb;
  --btn2:#1d4ed8;
  --bad:#ef4444;
  --good:#22c55e;
  --warn:#f59e0b;
  --shadow: 0 18px 60px rgba(0,0,0,.5);
  --r: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 600px at 18% 18%, #1a2c6a 0%, transparent 60%),
    radial-gradient(700px 520px at 84% 76%, #3b0f56 0%, transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.bg{
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 26%, black 0%, transparent 72%);
  opacity:.7;
  pointer-events:none;
}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 18px;
}

.card{
  width:min(520px, 100%);
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  padding:22px 22px 14px;
}

.hdr{display:flex; gap:14px; align-items:center; margin-bottom:16px;}
.logo{
  width:46px; height:46px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(168,85,247,.95));
  box-shadow: 0 10px 30px rgba(37,99,235,.25);
  font-weight:800; letter-spacing:.8px;
}
.logo span{font-size:12px; opacity:.95}

h1{font-size:20px; margin:0}
.sub{margin:2px 0 0; color:var(--muted); font-size:13px}

.banner{
  font-size:12px;
  color:#cbd5e1;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:14px;
}

.lbl{display:block; font-size:12px; color:#cbd5e1; margin:10px 0 0;}
input{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.55);
  color:var(--text);
  outline:none;
}
input:focus{
  border-color: rgba(37,99,235,.8);
  box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}

.row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px;}
.chk{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px;}
.chk input{width:auto; margin:0}
.pill{
  font-size:11px; color:#cbd5e1;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding:6px 10px; border-radius:999px;
}

.btn{
  width:100%;
  margin-top:14px;
  padding:12px 14px;
  border:0; border-radius:12px;
  background: linear-gradient(180deg, var(--btn), var(--btn2));
  color:white; font-weight:600; cursor:pointer;
}
.btn:active{transform: translateY(1px)}
.btn[disabled]{opacity:.7; cursor:not-allowed}

.meta{
  margin-top:12px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.meta a{color:#cbd5e1; text-decoration:none}
.meta a:hover{text-decoration:underline}
.dot{opacity:.6}

.err{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  color:#fecaca;
  font-size:12px;
}

.ftr{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}
.k{opacity:.85}
.v{color:#cbd5e1}
.v.ok{color:var(--good)}
.v.warn{color:var(--warn)}
.sep{opacity:.45}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.tile{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px;
}
.tkey{font-size:12px; color:#cbd5e1; opacity:.9}
.tval{font-size:14px; font-weight:700; margin-top:6px}
.tval.ok{color:var(--good)}
.tval.warn{color:var(--warn)}
.tmeta{font-size:12px; color:var(--muted); margin-top:6px}

.faq details{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
}
.faq summary{cursor:pointer; font-weight:600}
.faq p{margin:8px 0 0; color:#cbd5e1; font-size:13px; line-height:1.35}

.toast{
  position:fixed; bottom:18px; left:50%;
  transform:translateX(-50%);
  background: rgba(11,18,36,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding:12px 14px;
  color:var(--text);
  font-size:13px;
  max-width:min(560px, calc(100% - 24px));
}
