:root{
  --bg:#0b0f14;
  --card:#111826;
  --card2:#0f1623;
  --text:#e7eefb;
  --muted:#9fb0c6;
  --line:rgba(231,238,251,.10);
  --shadow:0 12px 40px rgba(0,0,0,.45);
  --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:linear-gradient(180deg,#070a0f 0%, #0b0f14 40%, #070a0f 100%);
  color:var(--text);
}

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

.hidden{display:none !important;}
.muted{color:var(--muted);}
.dot{opacity:.6; padding:0 .4rem;}

.header{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(10,14,20,.85);
  backdrop-filter:blur(10px);
}

.brand{display:flex; align-items:center; gap:10px; min-width:0;}
.brand-mark{font-size:20px;}
.brand-text{display:flex; flex-direction:column; min-width:0;}
.brand-title{font-weight:800; letter-spacing:.2px;}
.brand-subtitle{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

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

.controls{
  display:grid;
  grid-template-columns: 1fr 220px 200px auto;
  gap:10px;
  align-items:center;
  margin-top:6px;
}
@media (max-width: 860px){
  .controls{grid-template-columns:1fr 1fr;}
}

.input{
  width:100%;
  padding:12px 12px;
  background:rgba(17,24,38,.7);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(231,238,251,.25);}

.btn{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(17,24,38,.7);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{border-color:rgba(231,238,251,.25);}
.btn-ghost{background:transparent;}
.btn-danger{border-color:rgba(255,99,99,.25);}
.btn-danger:hover{border-color:rgba(255,99,99,.5);}

.subline{display:flex; align-items:center; margin:12px 2px 16px;}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 620px){
  .grid{grid-template-columns:1fr;}
}

.card{
  display:flex;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(17,24,38,.85) 0%, rgba(15,22,35,.85) 100%);
  box-shadow:var(--shadow);
  transition:transform .12s ease, border-color .12s ease;
}
.card:hover{transform:translateY(-1px); border-color:rgba(231,238,251,.22);}

.card-img{
  width:88px; height:56px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.card-img img{width:100%; height:100%; object-fit:cover; display:block;}

.card-main{min-width:0; flex:1;}
.card-name{font-weight:800; margin:0 0 4px; font-size:15px; color:#f8fbff;}
.card-meta{font-size:12px; color:var(--muted);}
.card-verdict{margin-top:8px; font-size:13px; color:rgba(231,238,251,.92);}

.pillrow{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px;}
.pill{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.detail-head{display:flex; align-items:flex-start; gap:12px; margin:6px 0 14px;}
.detail-head-text h1{margin:0; font-size:22px; color:#f8fbff;}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px;}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(17,24,38,.7);
  color:var(--text);
  cursor:pointer;
  font-size:13px;
}
.chip.active{border-color:rgba(231,238,251,.28); background:rgba(255,255,255,.04);}

.benefits{display:flex; flex-direction:column; gap:10px;}

.benefit{
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(17,24,38,.7);
}
.benefit-top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start;}
.benefit-title{font-weight:800; margin:0 0 4px;}
.benefit-sub{font-size:12px; color:var(--muted);}
.benefit-actions{display:flex; gap:8px; align-items:center; flex:0 0 auto;}

.check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.check.used{border-color:rgba(82,204,152,.35);}

.detail-actions{display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 6px;}

.about{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:20;
}
.about-card{
  max-width:720px;
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(17,24,38,.95);
  box-shadow:var(--shadow);
  padding:16px;
}
.about-title{font-weight:900; margin-bottom:8px;}
.about ul{margin:10px 0 14px 18px; color:var(--muted);}
