:root{
  --bg:#070a12;
  --panel:#0e1424;
  --panel2:#0b1120;
  --border:rgba(255,255,255,.08);
  --text:#e7ecff;
  --muted:rgba(231,236,255,.7);
  --muted2:rgba(231,236,255,.5);
  --accent:#3abef8;
  --good:#39d98a;
  --warn:#ffcc66;
  --bad:#ff5c77;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r:18px;
  --r2:14px;
}

html{height:100%;background:var(--bg);}
body{min-height:100%;}

*{box-sizing:border-box}
html,body{min-height:100%;background:#050816}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(58,190,248,.15), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, rgba(57,217,138,.10), transparent 65%),
    radial-gradient(900px 500px at 70% 100%, rgba(255,92,119,.08), transparent 55%),
    var(--bg);
  min-height:100vh;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
small{color:var(--muted)}

.container{max-width:1200px;margin:0 auto;padding:26px}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns: 1.05fr .95fr}
@media (max-width:980px){ .grid-2{grid-template-columns:1fr} }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:18px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  border:1px solid var(--border);
  background: rgba(58,190,248,.12);
  font-weight:900;
}
.pills{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pill{
  display:inline-flex;gap:10px;align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.25);
  color:var(--muted);
  font-size:12px;
}
.dot{width:8px;height:8px;border-radius:50%}
.dot.good{background:var(--good)}
.dot.bad{background:var(--bad)}

h1,h2,h3{margin:0}
h1{font-size:18px}
h2{font-size:15px}
.sub{margin:2px 0 0;color:var(--muted);font-size:12px}

hr.sep{
  border:none;border-top:1px solid var(--border);
  margin:14px 0;
}

label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
input,select,textarea{
  width:100%;
  background: rgba(2,6,23,.35);
  border:1px solid var(--border);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}
textarea{min-height:92px;resize:vertical}
input[type="number"]{appearance:textfield}
.row{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.row-3{display:grid;gap:10px;grid-template-columns:1fr 1fr 1fr}
@media(max-width:980px){.row,.row-3{grid-template-columns:1fr}}

.btnbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.btn{
  cursor:pointer;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(58,190,248,.15);
  color:var(--text);
  padding:10px 12px;
  font-weight:850;
}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{background: rgba(255,255,255,.04)}
.btn.danger{background: rgba(255,92,119,.12); border-color: rgba(255,92,119,.35)}
.btn.good{background: rgba(57,217,138,.12); border-color: rgba(57,217,138,.35)}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  background: rgba(2,6,23,.25);
}

.kbd{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;color:rgba(231,236,255,.9);
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:2px 6px;border-radius:10px
}

.table{
  width:100%;
  border-collapse: collapse;
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
}
.table th,.table td{
  padding:10px;
  border-bottom:1px solid var(--border);
  font-size:13px;
}
.table th{
  text-align:left;
  color:rgba(231,236,255,.85);
  background: rgba(2,6,23,.35);
}
.table tr:hover td{background: rgba(255,255,255,.02)}
.table td.muted{color:var(--muted)}
.table td.right{text-align:right}

.notice{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.25);
  color: var(--muted);
  font-size:13px;
}
.notice.bad{border-color: rgba(255,92,119,.35); background: rgba(255,92,119,.08); color:#ffd1d9}
.notice.good{border-color: rgba(57,217,138,.35); background: rgba(57,217,138,.08); color:#c6ffe6}

.tabs{display:flex;gap:10px;flex-wrap:wrap}
.tab{
  cursor:pointer;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:800;
}
.tab.active{background: rgba(58,190,248,.15); color: var(--text); border-color: rgba(58,190,248,.35)}

.hide{display:none!important}

/* Scrollable tables to prevent page from stretching */
.table-scroll{max-height:280px;overflow:auto;border:1px solid var(--border);border-radius:12px}
.table-scroll table{border:none}
.table-scroll thead th{position:sticky;top:0;background:rgba(6,10,20,.9);backdrop-filter:blur(10px)}

.iframe-wrap{max-height:520px;overflow:auto;border-radius:16px;}
.iframe-wrap iframe{width:100%;height:720px;border:0;border-radius:14px;}
