:root{
  --bg0:#070a12;
  --bg1:#0b1020;
  --card:#0f1733cc;
  --border:#263055;
  --text:#e6e9f2;
  --muted:#9aa3b2;
  --accent:#7c3aed; /* purple glow */
  --accent2:#22d3ee; /* cyan glow */
  --danger:#ef4444;
  --ok:#10b981;
  --shadow: 0 0 22px rgba(124,58,237,.35), 0 0 60px rgba(34,211,238,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Bengali", "Noto Sans", sans-serif;
  background: radial-gradient(1200px 800px at 20% 20%, rgba(124,58,237,.22), transparent 60%),
              radial-gradient(1200px 800px at 80% 20%, rgba(34,211,238,.14), transparent 60%),
              radial-gradient(900px 700px at 50% 100%, rgba(16,185,129,.10), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color:var(--text);
}

a{color:var(--accent2); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1100px, 92vw);
  margin: 0 auto;
  padding: 22px 0 40px;
}

.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(11,16,32,.75), rgba(7,10,18,.55));
  border-bottom: 1px solid rgba(38,48,85,.6);
}

.nav .inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  font-weight:800;
  letter-spacing:.4px;
  color:var(--text);
  text-shadow: 0 0 18px rgba(124,58,237,.35);
}
.brand span{color:var(--accent2)}
.navlinks{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.navlinks a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--text);
  opacity:.92;
}
.navlinks a:hover{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.06);
  text-decoration:none;
}

.lang-switch{
  display:flex; gap:8px; align-items:center;
}
.badge{
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(38,48,85,.85);
  color:var(--muted);
  background: rgba(15,23,51,.55);
}
.badge.glow{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 12px rgba(124,58,237,.25);
  color:var(--text);
}

.card{
  background: linear-gradient(180deg, rgba(15,23,51,.72), rgba(15,23,51,.42));
  border:1px solid rgba(38,48,85,.8);
  border-radius: 16px;
  padding:16px;
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  gap:16px;
}
.grid.two{grid-template-columns: 1fr 1fr}
@media (max-width:900px){ .grid.two{grid-template-columns:1fr} }

.h1{font-size:28px; margin:0 0 6px}
.h2{font-size:20px; margin:0 0 10px}
.muted{color:var(--muted)}
.small{font-size:13px}

hr.sep{
  border:0;
  border-top:1px solid rgba(38,48,85,.6);
  margin:14px 0;
}

input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(38,48,85,.9);
  background: rgba(7,10,18,.55);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
textarea{min-height:160px; resize:vertical}

.row{display:flex; gap:12px; align-items:center}
.row > * {flex:1}
@media (max-width:700px){ .row{flex-direction:column; align-items:stretch} }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  border:1px solid rgba(38,48,85,.9);
  background: rgba(15,23,51,.65);
  padding:10px 14px;
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{filter:brightness(1.1)}
.btn.primary{
  border-color: rgba(124,58,237,.7);
  background: rgba(124,58,237,.18);
  box-shadow: 0 0 16px rgba(124,58,237,.25);
}
.btn.cyan{
  border-color: rgba(34,211,238,.75);
  background: rgba(34,211,238,.14);
  box-shadow: 0 0 16px rgba(34,211,238,.18);
}
.btn.danger{
  border-color: rgba(239,68,68,.8);
  background: rgba(239,68,68,.12);
}
.btn.ghost{
  background: transparent;
}

.alert{
  border-radius:14px;
  padding:12px 14px;
  margin: 10px 0 0;
  border:1px solid rgba(38,48,85,.8);
  background: rgba(15,23,51,.45);
}
.alert.ok{ border-color: rgba(16,185,129,.65); }
.alert.err{ border-color: rgba(239,68,68,.65); }

.post-title{
  font-size:22px;
  margin:0 0 6px;
}
.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:13px;
}

.thumb{
  width:100%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(38,48,85,.7);
  margin-top:10px;
}
.thumb img{
  width:100%;
  display:block;
}

.reactbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  align-items:center;
}
.react-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(38,48,85,.9);
  background: rgba(7,10,18,.35);
}
.react-pill strong{color:var(--text)}
.react-love{border-color: rgba(16,185,129,.55)}
.react-hate{border-color: rgba(239,68,68,.55)}

.table{
  width:100%;
  border-collapse:collapse;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(38,48,85,.55);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.table th{color:var(--muted); font-weight:700}
.table tr:hover td{background: rgba(34,211,238,.03)}

.footer{
  margin-top:24px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
  opacity:.9;
}
