:root{
  --bg:#0b0d12;
  --panel:#121726;
  --muted:#98a2b3;
  --text:#e6e8ee;
  --link:#7dd3fc;
  --border:#263042;
  --accent:#fbbf24;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:linear-gradient(180deg,#070911, #0b0d12 40%, #070911);
  color:var(--text);
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:980px;margin:0 auto;padding:16px}
.topbar{
  position:sticky;top:0;z-index:10;
  background:rgba(18,23,38,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font-weight:800;letter-spacing:.3px}
.nav a{margin-left:12px;color:var(--text);opacity:.9}
.card{
  background:rgba(18,23,38,.85);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width: 840px){ .grid{grid-template-columns: 1fr 1fr} }
h1,h2,h3{margin:0 0 10px 0}
small,.muted{color:var(--muted)}
.footer{opacity:.8}
.input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#0e1423;
  color:var(--text);
}
.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#141b2f;
  color:var(--text);
  cursor:pointer;
}
.btn.primary{border-color:#2b3b59;background:#1b2a45}
.btn.danger{border-color:#6b1d1d;background:#2a1111}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row > *{flex:1}
.row .shrink{flex:0 0 auto}
.hr{height:1px;background:var(--border);margin:12px 0}
.ads{margin-top:14px}
.ad-slot{margin:10px 0}
.ad-slot a{display:inline-block}
#adWrap img{max-width:100%;height:auto;border-radius:12px;border:1px solid var(--border)}
.page-body img{max-width:100%;height:auto;border-radius:12px;border:1px solid var(--border)}
.badge{display:inline-block;font-size:12px;padding:3px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted)}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.tab{padding:8px 10px;border:1px solid var(--border);border-radius:10px;color:var(--text);opacity:.85}
.tab.active{opacity:1;border-color:#33507e}
