:root{
  --bg:#0b0f17;
  --card:#111827;
  --card2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
  --accent:#fbbf24;
  --accent2:#60a5fa;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(96,165,250,.12), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(251,191,36,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:22px}

.topbar{
  position:sticky; top:0;
  background:rgba(11,15,23,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:44px;height:44px;border-radius:14px;box-shadow:var(--shadow)}
.brand-name{font-weight:800;letter-spacing:.3px}
.brand-sub{font-size:12px;color:var(--muted)}

.nav{display:flex;gap:14px}
.nav a{
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:14px;
  color:var(--muted);
}
.nav a:hover{
  border-color:var(--line);
  color:var(--text);
  background:rgba(255,255,255,.03);
}

.hero{
  margin-top:16px;
  padding:22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,24,39,.82), rgba(15,23,42,.82));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero h1{margin:0 0 10px;font-size:34px}
.hero p{margin:0;color:var(--muted);line-height:1.5}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
}

@media (max-width: 900px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  background:rgba(17,24,39,.85);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.card-cover{
  height:90px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.card-cover:after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
}

.card-body{padding:14px}
.card-title{font-weight:800;margin:0 0 6px}
.card-desc{margin:0;color:var(--muted);font-size:14px;line-height:1.45}

.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.02);
}

.btn{
  display:inline-block;
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(251,191,36,.35);
  background:rgba(251,191,36,.12);
  color:var(--text);
  font-weight:700;
}
.btn:hover{
  background:rgba(251,191,36,.18);
}

.muted{color:var(--muted)}
.footer{
  margin-top:34px;
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.15);
}
.footer-inner{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:18px 22px;
}

.searchbar{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.searchbar input{
  flex:1;
  min-width:240px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

.searchbar input::placeholder{color:rgba(156,163,175,.9)}
.searchbar input:focus{
  border-color:rgba(96,165,250,.35);
  box-shadow: 0 0 0 4px rgba(96,165,250,.10);
}

.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-top:22px;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(251,191,36,.25);
  background:rgba(251,191,36,.10);
  color:var(--text);
}

.empty{
  margin-top:14px;
  padding:14px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
}
