:root{
  --bg:#0b1220;
  --card:#111827;
  --card2:#0f172a;
  --txt:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
  --accent:#a855f7;
  --accent2:#22c55e;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --r:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(168,85,247,.25), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--txt);
}

a{color:inherit; text-decoration:none}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background:rgba(11,18,32,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.brand{display:flex; gap:10px; align-items:center}
.logo{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(168,85,247,.9), rgba(34,197,94,.75));
  font-weight:800;
}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted)}

.container{
  padding:16px 16px 86px;
  max-width:980px;
  margin:0 auto;
}

.hero{
  padding:18px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 6px; font-size:22px}
.hero p{margin:0 0 14px; color:var(--muted)}

.search-wrap input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  background:rgba(17,24,39,.65);
  color:var(--txt);
}

.chips{display:flex; gap:10px; padding:14px 2px 6px; overflow:auto}
.chip{
  border:1px solid var(--line);
  background:rgba(17,24,39,.55);
  color:var(--txt);
  padding:10px 12px;
  border-radius:999px;
  white-space:nowrap;
  cursor:pointer;
}
.chip.active{
  border-color:rgba(168,85,247,.55);
  box-shadow:0 0 0 3px rgba(168,85,247,.12);
}

.status{
  margin:10px 0 12px;
  color:var(--muted);
  font-size:13px;
}

.list{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width:780px){
  .list{grid-template-columns: 1fr 1fr;}
}

.card{
  border:1px solid var(--line);
  border-radius: var(--r);
  overflow:hidden;
  background:rgba(17,24,39,.55);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
}
.thumb{
  width:100%;
  aspect-ratio: 16/9;
  background:rgba(255,255,255,.06);
  display:block;
  object-fit:cover;
}
.card-body{padding:14px}
.meta{display:flex; gap:10px; align-items:center; color:var(--muted); font-size:12px; margin-bottom:8px}
.badge{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(168,85,247,.18);
  border:1px solid rgba(168,85,247,.25);
  color:#e9d5ff;
}
.title{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25;
  font-weight:800;
}
.excerpt{margin:0; color:var(--muted); font-size:13px; line-height:1.4}

.actions{
  display:flex; gap:10px;
  padding:0 14px 14px;
}
.btn{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(15,23,42,.6);
  color:var(--txt);
  cursor:pointer;
  font-weight:700;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(168,85,247,.95), rgba(34,197,94,.85));
  border-color: rgba(255,255,255,.18);
}
.btn.ghost{background:transparent}

.bottombar{
  position:fixed; bottom:0; left:0; right:0;
  display:flex;
  background:rgba(11,18,32,.70);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
  z-index:60;
}
.tab{
  flex:1;
  padding:14px 10px;
  text-align:center;
  font-weight:800;
  color:var(--muted);
}
.tab.active{color:var(--txt)}
.tab.active::after{
  content:"";
  display:block;
  width:42px; height:3px;
  margin:8px auto 0;
  border-radius:999px;
  background:rgba(168,85,247,.85);
}

.sheet{
  position:fixed; inset:0;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(0,0,0,.55);
  z-index:80;
  padding:18px;
}
.sheet.show{display:flex}
.sheet-card{
  width:min(760px,100%);
  border-radius: 22px;
  background:rgba(17,24,39,.92);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sheet-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.sheet-title{font-weight:900}
.sheet-sub{font-size:12px; color:var(--muted); margin-top:2px}

.form{padding:14px; display:grid; gap:10px}
label{font-size:12px; color:var(--muted)}
input,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  background:rgba(15,23,42,.55);
  color:var(--txt);
}
.hint{font-size:12px; color:var(--muted); line-height:1.35}

.contact-grid{
  padding:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.contact{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(15,23,42,.55);
}
.contact-title{font-weight:900}
.contact-sub{font-size:12px; color:var(--muted); margin-top:4px}