:root{
  --bg:#0b1220;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --text:#e6edf7;
  --muted:#a6b3c7;
  --border:rgba(255,255,255,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --accent:#7c5cff;
  --accent2:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(34,197,94,.25), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(59,130,246,.18), transparent 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:22px 16px 40px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  border-radius:999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.nav a:hover{
  border-color:var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.nav a.primary{
  color:var(--text);
  background:linear-gradient(90deg, rgba(124,92,255,.9), rgba(34,197,94,.7));
  border-color:transparent;
}

.hero{
  margin-top:18px;
  padding:22px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.h-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.h-sub{
  margin:10px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .hd{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card .hd h2{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.card .bd{ padding:16px; }

.kv{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:10px 14px;
  margin:0;
}
@media (max-width: 520px){
  .kv{grid-template-columns: 1fr}
}
.kv dt{
  color:var(--muted);
  font-size:13px;
}
.kv dd{
  margin:0;
  font-size:14px;
  overflow-wrap:anywhere;
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  font-size:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  border-radius:999px;
  padding:6px 10px;
  color:var(--muted);
}

.ok{color:var(--accent2)}
.muted{color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.footer{
  margin-top:16px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
/* --- Status page extras --- */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,.12);
}

.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px; /* na mobile będzie scroll poziomy */
  font-size:14px;
}

.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  vertical-align:top;
}

.table th{
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size:12px;
  white-space: nowrap;
}

.tag.ok{ color: var(--accent2); }
.tag.warn{ color: var(--warn); }
.tag.bad{ color: var(--danger); }

.note{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}


