:root{
  --bg:#070a12;
  --card:#0b1020;
  --card2:#0d1430;
  --text:#eaf0ff;
  --muted:#a7b1d6;
  --line:rgba(255,255,255,.08);
  --brand:#6ae4ff;
  --brand2:#a56bff;
  --danger:#ff4d6d;
  --ok:#2ee59d;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 600px at 20% 10%, rgba(106,228,255,.12), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(165,107,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

.bg-grid{
  position:fixed; inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 30% 20%, black 0%, transparent 60%);
  pointer-events:none;
  opacity:.55;
}

.container{max-width:1100px;margin:0 auto;padding:22px}
.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 22px;
  background: rgba(7,10,18,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:20;
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:42px;height:42px;border-radius:12px;
  background: linear-gradient(135deg, rgba(106,228,255,.25), rgba(165,107,255,.18));
  border:1px solid rgba(255,255,255,.12);
  display:grid;place-items:center;
  font-weight:900;
  box-shadow: 0 0 40px rgba(106,228,255,.10);
}
.brandtext .name{font-weight:800;letter-spacing:.2px}
.brandtext .tag{font-size:12px;color:var(--muted)}

.nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.nav a{
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{border-color:var(--line);background:rgba(255,255,255,.04)}
.pill{border:1px solid rgba(106,228,255,.25)!important;background:rgba(106,228,255,.08)}

.pagehead{margin:18px 0 10px}
h1{margin:0;font-size:28px}
h2{margin:0 0 10px}
h3{margin:14px 0 8px}
.muted{color:var(--muted);line-height:1.5}
.hint{margin-top:10px;color:var(--muted);font-size:13px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  margin:14px 0;
}
.glow{box-shadow: 0 0 60px rgba(106,228,255,.08), 0 12px 40px rgba(0,0,0,.35)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
@media(max-width:900px){.grid2,.grid3{grid-template-columns:1fr}}

.toolcard{
  display:block;
  text-decoration:none;
  color:var(--text);
  background: rgba(255,255,255,.02);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  transition: transform .08s ease, border-color .08s ease;
}
.toolcard:hover{transform: translateY(-2px);border-color: rgba(106,228,255,.25)}
.tooltitle{font-weight:800;margin-bottom:6px}

.form{display:grid;gap:10px}
label{font-size:13px;color:var(--muted)}
input,textarea,select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
textarea{resize:vertical}
.out{background: rgba(0,0,0,.35)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
}
.btn:hover{border-color: rgba(106,228,255,.22)}
.btn.primary{
  border-color: rgba(106,228,255,.35);
  background: rgba(106,228,255,.10);
}
.btn.danger{
  border-color: rgba(255,77,109,.35);
  background: rgba(255,77,109,.10);
}
.actions{display:flex;gap:10px;flex-wrap:wrap}

.flash{
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.flash.success{border-color: rgba(46,229,157,.25); background: rgba(46,229,157,.08)}
.flash.danger{border-color: rgba(255,77,109,.25); background: rgba(255,77,109,.08)}
.flash.info{border-color: rgba(106,228,255,.25); background: rgba(106,228,255,.06)}

.kbd{
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  border-radius:14px;
  padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow:auto;
}

.badge{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(106,228,255,.25);
  background: rgba(106,228,255,.08);
  font-weight:800;
  margin-bottom:10px;
}

.ok{
  border:1px solid rgba(46,229,157,.25);
  background: rgba(46,229,157,.08);
  padding:10px 12px;
  border-radius:14px;
}
.bad{
  border:1px solid rgba(255,77,109,.25);
  background: rgba(255,77,109,.08);
  padding:10px 12px;
  border-radius:14px;
}

.list{margin:0;padding-left:18px}
.list li{margin:6px 0}

.kv{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.kvrow{display:grid;grid-template-columns:220px 1fr;border-top:1px solid var(--line)}
.kvrow:first-child{border-top:none}
.k{padding:10px 12px;color:var(--muted);background:rgba(255,255,255,.02)}
.v{padding:10px 12px;overflow-wrap:anywhere}
@media(max-width:700px){.kvrow{grid-template-columns:1fr}.k{border-bottom:1px solid var(--line)}}

.tablewrap{overflow:auto;border-radius:14px;border:1px solid var(--line)}
.table{width:100%;border-collapse:collapse;min-width:820px}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.table thead th{position:sticky;top:0;background:rgba(7,10,18,.9);backdrop-filter: blur(6px)}
.small{max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pillbox{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px 12px;
  text-transform: lowercase;
}
.stat{display:flex;flex-direction:column;gap:6px}
.statnum{font-size:28px;font-weight:900}

.footer{margin:20px 0 8px;color:var(--muted);font-size:13px}
