:root{
  --bg:#0b1220;
  --bg2:#0f172a;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text:#e5e7eb;
  --muted:#a7b0c0;
  --primary:#6366f1;
  --primary2:#7c3aed;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;
  --max: 1140px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(99,102,241,.25), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(700px 500px at 65% 75%, rgba(34,197,94,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{width:92%;max-width:var(--max);margin:0 auto}

.topbar{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(16px);
  background: rgba(11,18,32,.62);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:900;letter-spacing:.2px;
}

.brand svg{width:26px;height:26px;flex:0 0 auto}

.navlinks{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.navlinks a{
  font-weight:700;
  color:var(--muted);
  padding:10px 10px;
  border-radius:12px;
}
.navlinks a:hover{color:var(--text);background:rgba(255,255,255,.06)}

.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:12px 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover{transform: translateY(-1px);background: rgba(255,255,255,.08);border-color: rgba(255,255,255,.18)}
.btn.primary{
  border-color: rgba(99,102,241,.45);
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(124,58,237,.92));
  box-shadow: 0 14px 38px rgba(99,102,241,.18);
}
.btn.primary:hover{border-color: rgba(99,102,241,.7)}
.btn.ghost{background:transparent}
.btn.small{padding:10px 12px;border-radius:12px;font-weight:850}
.btn.danger{border-color: rgba(239,68,68,.35)}
.btn.danger:hover{border-color: rgba(239,68,68,.6);background: rgba(239,68,68,.08)}

@media(max-width:980px){
  .navlinks{display:none}
}

.hero{padding:64px 0 28px 0}
.heroGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
@media(max-width:980px){
  .heroGrid{grid-template-columns:1fr}
}

.h1{
  font-size:52px;
  line-height:1.02;
  margin:0 0 16px 0;
  letter-spacing:-.9px;
}
.sub{
  font-size:18px;
  line-height:1.55;
  color:var(--muted);
  margin:0 0 22px 0;
  max-width: 56ch;
}

.panel{
  border:1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.panel.pad{padding:20px}

.badges{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px 0}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}
.badge span.dot{width:8px;height:8px;border-radius:999px;background:rgba(34,197,94,.9);display:inline-block}

.section{padding:38px 0}
.section h2{margin:0 0 14px 0;font-size:30px;letter-spacing:-.4px}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:980px){.grid3{grid-template-columns:1fr}}

.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:980px){.twocol{grid-template-columns:1fr}}

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius2);
  padding:18px;
}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted);line-height:1.5}

.hr{height:1px;background:rgba(255,255,255,.10);margin:18px 0}

.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
.input:focus{border-color: rgba(99,102,241,.6)}

.label{font-weight:900;margin:0 0 8px 0}
.formRow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:980px){.formRow{grid-template-columns:1fr}}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:900;
  font-size:12px;
}
.pill.good{border-color:rgba(34,197,94,.35);color:rgba(34,197,94,.95)}
.pill.warn{border-color:rgba(245,158,11,.35);color:rgba(245,158,11,.95)}
.pill.bad{border-color:rgba(239,68,68,.35);color:rgba(239,68,68,.95)}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid var(--border);
}
.table th, .table td{
  text-align:left;
  padding:12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-weight:750;
}
.table th{color:var(--text);background: rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:none}

.footer{
  padding:32px 0 44px 0;
  color: var(--muted);
}
.footer .row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.small{font-size:13px}

.toast{
  position: fixed; right: 16px; bottom: 16px; z-index: 99;
  min-width: 260px;
  border:1px solid var(--border);
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display:none;
}
.toast.show{display:block}
.toast .t{font-weight:950}
.toast .m{margin-top:6px;color:var(--muted);font-weight:750}

.modalBackdrop{
  position:fixed;inset:0;z-index:90;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;justify-content:center;
  padding: 18px;
}
.modalBackdrop.show{display:flex}
.modal{
  width:min(760px, 100%);
  border:1px solid var(--border);
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.modalHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.modalTitle{font-weight:950}
.modalBody{margin-top:12px;color:var(--text)}
pre{
  white-space: pre-wrap;
  word-wrap: break-word;
  margin:0;
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
}
