:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(15,23,42,.10);
  --accent:#0f766e;
  --accent2:#2563eb;
  --radius:16px;
}

*{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:var(--bg);
  color:var(--text);
  line-height:1.45;
}

a{color:inherit;text-decoration:none}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

.hero{
  background: linear-gradient(135deg, rgba(15,118,110,.16), rgba(37,99,235,.12));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px 16px;
}

.hero h1{
  margin:0 0 6px 0;
  font-size: 1.6rem;
  letter-spacing:.2px;
}

.hero p{
  margin:0;
  color:var(--muted);
  max-width:70ch;
}

.sticky{
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}

.panel{
  margin-top:12px;
  background: rgba(246,247,251,.85);
  backdrop-filter: blur(10px);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
  padding:12px;
}

.controls{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

@media (min-width:760px){
  .controls{grid-template-columns: 1.4fr .6fr .6fr}
}

.search{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 999px;
  padding:10px 12px;
}
.search svg{opacity:.7; flex:0 0 auto}
.search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:1rem;
  color:var(--text);
}

.select{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 999px;
  padding:10px 12px;
}
.select select{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:1rem;
  color:var(--text);
}

.btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 999px;
  padding:10px 12px;
  font-weight:900;
  color:var(--muted);
  cursor:pointer;
}
.btn:hover{color:var(--text)}

.az{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.az a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  height: 34px;
  padding:0 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  color:var(--muted);
}
.az a:hover{
  color: var(--accent2);
  border-color: rgba(37,99,235,.25);
  background: rgba(37,99,235,.08);
}

.meta{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:800;
}
.meta .count{color:var(--text); font-weight:1000}

.cards, #cards{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

@media (min-width:640px){
  .cards, #cards{grid-template-columns: 1fr 1fr}
}
@media (min-width:1024px){
  .cards, #cards{grid-template-columns: 1fr 1fr 1fr}
}

.card{
  display:block;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(15,23,42,.14);
  background: #fbfcff;
}

.card h3{
  margin:0 0 6px 0;
  font-size:1.05rem;
  letter-spacing:.2px;
}
.small{color:var(--muted); font-weight:700; font-size:.92rem}

.badges{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius: 999px;
  font-weight:900;
  font-size:.82rem;
  border:1px solid rgba(15,118,110,.18);
  background: rgba(15,118,110,.10);
  color: var(--accent);
}
.badge.gray{
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.06);
  color: var(--muted);
}

.sectionTitle{
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px dashed rgba(15,23,42,.18);
  color: var(--muted);
  font-weight:1000;
  letter-spacing:.5px;
  background: rgba(255,255,255,.6);
}

.footer{
  margin: 18px 0 28px;
  color:var(--muted);
  font-size:.95rem;
}
.sep{border:0;border-top:1px solid var(--border);margin:14px 0}
