/* Voxta Social — Twitter/X-ish UI */
:root{
  --bg:#0b0f14;
  --panel:#0f1520;
  --panel2:#0d121b;
  --text:#e6edf3;
  --muted:#9aa6b2;
  --line:#1e2a3a;
  --brand:#1d9bf0;
  --brand2:#62b6ff;
  --danger:#ff4d4d;
  --ok:#1db954;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max:1200px;
  --col-gap:18px;
  --feed-w: 640px;
}

html.light{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --panel2:#ffffff;
  --text:#0b1220;
  --muted:#546276;
  --line:#e8edf4;
  --shadow: 0 12px 26px rgba(10,20,30,.10);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 30% -20%, rgba(29,155,240,.22), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(98,182,255,.18), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
code{background:rgba(255,255,255,.06); padding:.15rem .35rem; border-radius:8px; border:1px solid rgba(255,255,255,.08)}
html.light code{background:rgba(10,20,30,.04); border-color:rgba(10,20,30,.06)}

.app{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns: 270px minmax(0,var(--feed-w)) 1fr;
  gap:var(--col-gap);
  padding:18px;
  align-items:start;
}

@media (max-width: 1050px){
  .app{grid-template-columns: 250px 1fr; }
  .rightbar{display:none}
}
@media (max-width: 820px){
  .app{grid-template-columns: 1fr; }
  .sidebar{position:sticky; top:0; z-index:10}
  .rightbar{display:none}
}

.sidebar{
  position:sticky;
  top:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), transparent 65%);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
}

.brand{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 10px 14px 10px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}
.brand a{
  font-weight:800;
  letter-spacing:.2px;
}
.toggle{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}

.nav{display:flex; flex-direction:column; gap:6px}
.nav a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.06);
}
.nav a.active{
  background:rgba(29,155,240,.14);
  border-color:rgba(29,155,240,.35);
}
.nav span{font-weight:650}

.sidebox{
  margin-top:14px;
  padding:12px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.feed{
  min-height: calc(100vh - 36px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,.02);
  box-shadow:var(--shadow);
}

.feed-header{
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
}
.feed-header h1{font-size:18px; margin:0}
.badge{font-size:12px; color:var(--muted); border:1px solid var(--line); padding:6px 10px; border-radius:999px}

.rightbar{
  position:sticky;
  top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:var(--shadow);
}
.card-title{font-weight:800; margin-bottom:10px}
.trend{padding:8px 10px; border-radius:12px; border:1px solid transparent}
.trend:hover{background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.06)}

.flash{margin:12px; padding:10px 12px; border-radius:14px; border:1px solid var(--line)}
.flash.ok{border-color:rgba(29,185,84,.35); background:rgba(29,185,84,.10)}
.flash.err{border-color:rgba(255,77,77,.35); background:rgba(255,77,77,.10)}

.compose{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
textarea, input, select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.15);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
html.light textarea, html.light input, html.light select{background:rgba(10,20,30,.03)}
textarea{min-height:90px; resize:vertical}
.row{display:flex; gap:10px; align-items:center}
.row > *{flex:1}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:999px;
  padding:10px 14px;
  border:1px solid transparent;
  font-weight:750;
  cursor:pointer;
  user-select:none;
}
.btn.primary{background:var(--brand); color:white}
.btn.primary:hover{background:var(--brand2)}
.btn.ghost{background:rgba(255,255,255,.03); border-color:var(--line)}
.btn.ghost:hover{background:rgba(255,255,255,.05)}
.btn.danger{background:rgba(255,77,77,.16); border-color:rgba(255,77,77,.35)}
.small{font-size:12px}
.muted{color:var(--muted)}
.sep{height:1px; background:var(--line); margin:10px 0}

.post{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex; gap:12px;
}
.avatar{
  width:44px; height:44px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(29,155,240,.6), rgba(98,182,255,.35));
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  flex:0 0 auto;
}
.post .body{flex:1; min-width:0}
.post .meta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.post .user{font-weight:850}
.post .time{color:var(--muted); font-size:12px}
.post .content{margin:6px 0 10px 0; white-space:pre-wrap; line-height:1.35}
.actions{display:flex; gap:8px; flex-wrap:wrap}
.iconbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  cursor:pointer;
}
.iconbtn.active{border-color:rgba(29,155,240,.5); background:rgba(29,155,240,.10)}
.iconbtn:hover{background:rgba(255,255,255,.05)}
.kpi{color:var(--muted); font-size:12px}

.form-card{
  margin:12px;
  padding:14px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.form-card h2{margin:0 0 10px 0; font-size:16px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width:520px){.grid2{grid-template-columns:1fr}}
.label{font-size:12px; color:var(--muted); margin:6px 0}

.profile-hero{
  padding:16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(29,155,240,.12), transparent 60%);
}
.profile-hero .top{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.profile-hero h2{margin:0; font-size:18px}
.pill{display:inline-flex; gap:8px; align-items:center; border:1px solid var(--line); padding:6px 10px; border-radius:999px; color:var(--muted); font-size:12px}

.dm-list a{
  display:block;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.dm-list a:hover{background:rgba(255,255,255,.04)}
.dm-msg{
  padding:10px 14px;
  border-bottom:1px solid var(--line);
}
.dm-msg.me{background:rgba(29,155,240,.06)}
.dm-audio{margin-top:8px}
