:root{
  --bg:#070b12;
  --card:#0f1624;
  --muted:#93a4b7;
  --text:#eaf0f7;
  --accent:#4fd1c5;
  --border:#1c2a40;
  --chip:#0b1220;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(79,209,197,.12), transparent 50%),
              radial-gradient(900px 700px at 80% 20%, rgba(255,77,109,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:18px}
.topbar{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:10;
  background: rgba(7,11,18,.75); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; gap:10px; align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, rgba(79,209,197,.35), rgba(79,209,197,.05));
  border:1px solid rgba(79,209,197,.35);
  display:grid; place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.logo span{font-weight:800;color:var(--accent)}
.brand h1{font-size:16px;margin:0;letter-spacing:.3px}
.brand p{margin:0;color:var(--muted);font-size:12px}
.searchbar{flex:1; display:flex; gap:10px; justify-content:flex-end; align-items:center; flex-wrap:wrap}
.input, select{
  background: rgba(15,22,36,.65);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
.input{min-width: 280px;}
.btn{
  background: linear-gradient(135deg, rgba(79,209,197,.35), rgba(79,209,197,.15));
  border:1px solid rgba(79,209,197,.40);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.08)}
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:14px;
}
@media (max-width: 1120px){ .grid{grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 880px){ .grid{grid-template-columns: repeat(3, 1fr);} .input{min-width:200px;} }
@media (max-width: 620px){ .grid{grid-template-columns: repeat(2, 1fr);} .input{min-width:100%;} }
.card{
  background: rgba(15,22,36,.72);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(79,209,197,.35);}
.card .img{
  background: rgba(11,18,32,.65);
  display:grid;
  place-items:center;
  padding:10px;
}
.card img{width:100%; height:auto; border-radius:12px;}
.card .meta{padding:10px 12px}
.card .name{font-size:13px; font-weight:700; margin:0 0 6px 0; line-height:1.2}
.card .sub{margin:0; color:var(--muted); font-size:12px}
.chips{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px}
.chip{
  font-size:11px; color:var(--muted);
  background: rgba(11,18,32,.7);
  border:1px solid var(--border);
  padding:4px 8px;
  border-radius:999px;
}
.price{
  margin-top:8px;
  font-weight:800;
  letter-spacing:.2px;
}
.price small{color:var(--muted); font-weight:600}
.footer{
  margin-top:24px;
  color:var(--muted);
  font-size:12px;
  padding:16px 0 30px 0;
  border-top:1px solid var(--border);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(15,22,36,.72);
}
.table th,.table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(28,42,64,.7);
  text-align:left;
  font-size:13px;
}
.table th{color:var(--muted); font-weight:700; background: rgba(11,18,32,.55);}
.table tr:last-child td{border-bottom:0}
.kpi{
  margin:16px 0 6px 0;
  display:flex; gap:10px; flex-wrap:wrap;
}
.kpi .box{
  flex:1;
  min-width:220px;
  background: rgba(15,22,36,.72);
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px 14px;
}
.kpi .box h3{margin:0; font-size:12px; color:var(--muted); font-weight:700}
.kpi .box p{margin:6px 0 0 0; font-size:18px; font-weight:900}
.notice{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

/* --- Ads + Donate --- */
.ad-slot{
  background: rgba(11,18,32,.55);
  border:1px dashed rgba(147,164,183,.45);
  border-radius:18px;
  padding:14px;
  color: var(--muted);
}
.ad-slot strong{color: var(--text); font-weight:800}
.ad-row{display:grid; grid-template-columns: 1fr 320px; gap:14px; margin-top:16px;}
@media (max-width: 960px){ .ad-row{grid-template-columns: 1fr;} }

.sidebar{
  position: sticky;
  top: 84px;
  align-self: start;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 999;
  padding: 18px;
}
.modal{
  width: min(900px, 100%);
  background: rgba(15,22,36,.92);
  border: 1px solid rgba(79,209,197,.25);
  border-radius: 22px;
  box-shadow: 0 25px 120px rgba(0,0,0,.55);
  overflow:hidden;
}
.modal header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom:1px solid rgba(28,42,64,.7);
}
.modal header h3{margin:0; font-size:14px; letter-spacing:.2px}
.modal header button{
  border:1px solid rgba(28,42,64,.8);
  background: rgba(11,18,32,.7);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.modal .body{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  padding: 16px;
}
@media (max-width: 860px){ .modal .body{grid-template-columns: 1fr;} }
.modal .copy{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.modal .qr{
  background: rgba(11,18,32,.7);
  border:1px solid rgba(28,42,64,.8);
  border-radius: 18px;
  padding: 12px;
}
.modal .qr img{width:100%; height:auto; border-radius: 14px;}
.modal .actions{
  display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px;
}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  background: rgba(79,209,197,.12);
  border:1px solid rgba(79,209,197,.25);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
}
.footer-donate{
  display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
.footer-donate img{width:84px; height:84px; border-radius:14px; border:1px solid rgba(28,42,64,.8); background: rgba(11,18,32,.7)}
