:root{
  --bg:#0b0d12;
  --panel:#111526;
  --text:#e7ecff;
  --muted:#aab3d6;
  --border:rgba(255,255,255,.08);
  --accent:#63e6be;
  --accent2:#74c0fc;
  --warn:#ffd43b;
  --danger:#ff6b6b;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:26px;
  --max:1080px;
}
*{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, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 15% 10%, rgba(116,192,252,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(99,230,190,.14), transparent 55%),
    radial-gradient(900px 700px at 55% 100%, rgba(255,212,59,.10), transparent 60%),
    var(--bg);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
small{color:var(--muted)}
.container{max-width:var(--max); margin:0 auto; padding:22px 18px 56px;}
.topbar{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0 22px;}
.brand{display:flex; align-items:center; gap:12px;}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, rgba(99,230,190,.95), rgba(116,192,252,.95));
  box-shadow: var(--shadow);
  display:grid; place-items:center;
  color:#081018; font-weight:900; letter-spacing:.5px;
}
.brand h1{font-size:20px; margin:0; line-height:1.0;}
.brand .tagline{margin-top:3px; font-size:12.5px; color:var(--muted);}
.nav{display:flex; gap:10px; flex-wrap:wrap;}
.nav a{
  padding:10px 12px; border:1px solid var(--border); border-radius:999px;
  background: rgba(255,255,255,.02); font-size:13px;
}
.nav a.active{border-color: rgba(99,230,190,.35); background: rgba(99,230,190,.08);}
.hero{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border-radius: var(--radius2);
  padding:22px 18px;
  box-shadow: var(--shadow);
}
.hero h2{margin:0 0 10px; font-size:26px; letter-spacing:.2px;}
.hero p{margin:0; color:var(--muted); line-height:1.55; max-width:70ch;}
.controls{margin-top:16px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between;}
.search{
  flex: 1 1 320px; display:flex; align-items:center; gap:10px;
  padding:12px 14px; border:1px solid var(--border); border-radius:999px;
  background: rgba(0,0,0,.18);
}
.search input{width:100%; background:transparent; border:0; outline:none; color:var(--text); font-size:14px;}
.search .hint{font-size:12px; color:var(--muted)}
.tags{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.tag{
  border:1px solid var(--border); background: rgba(255,255,255,.02);
  color:var(--text); font-size:12.5px; padding:8px 10px; border-radius:999px;
  cursor:pointer; user-select:none;
}
.tag:hover{background: rgba(255,255,255,.04)}
.tag.on{border-color: rgba(116,192,252,.40); background: rgba(116,192,252,.10);}
.section{margin-top:20px;}
.section h3{margin:0 0 10px; font-size:16px; color:var(--text); letter-spacing:.2px;}
.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:12px;}
.card{
  grid-column: span 6;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding:14px 14px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{transform: translateY(-1px); border-color: rgba(99,230,190,.22); background: rgba(255,255,255,.03);}
.card .meta{display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; color:var(--muted); font-size:12px;}
.card h4{margin:0 0 6px; font-size:16px;}
.card p{margin:0 0 10px; color:var(--muted); line-height:1.5; font-size:13.5px;}
.pills{display:flex; gap:6px; flex-wrap:wrap;}
.pill{
  font-size:12px; padding:6px 8px; border-radius:999px;
  border:1px solid var(--border); background: rgba(0,0,0,.15); color:var(--muted);
}
.pill.accent{border-color: rgba(99,230,190,.25); color: var(--text)}
.pill.warn{border-color: rgba(255,212,59,.25); color: var(--text)}
.pill.danger{border-color: rgba(255,107,107,.25); color: var(--text)}
.note{
  margin-top:14px;
  border:1px dashed rgba(255,255,255,.18);
  padding:12px 12px; border-radius:14px;
  color: var(--muted); background: rgba(0,0,0,.12);
  font-size:13px; line-height:1.55;
}
.footer{
  margin-top:28px; padding-top:18px; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px;
  color: var(--muted); font-size:12.5px;
}
.breadcrumbs{
  display:flex; gap:8px; flex-wrap:wrap;
  color: var(--muted); font-size:12.5px; margin: 4px 0 14px;
}
.breadcrumbs a{color: var(--muted)}
.breadcrumbs a:hover{color: var(--text)}
.article{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius2);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.article h2{margin:0 0 8px; font-size:22px}
.article p{color: var(--muted); line-height:1.6}
.code{
  margin:12px 0; padding:12px 12px; border-radius:14px;
  border:1px solid var(--border); background: rgba(0,0,0,.28); overflow:auto;
}
code, pre{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
pre{margin:0; font-size:13px; color: var(--text)}
.copyrow{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px;}
.btn{
  border:1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--text); padding:8px 10px; border-radius:12px;
  font-size:12.5px; cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.06)}
@media (max-width: 880px){
  .card{grid-column: span 12;}
  .controls{justify-content:flex-start}
  .tags{justify-content:flex-start}
}

/* Copy icon button */
.btn.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 10px;
}
.btn.icon .copy-ico{width:16px;height:16px}
.btn.copied{
  border-color: rgba(99,230,190,.35);
  background: rgba(99,230,190,.08);
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
