:root{
  --bg:#0b0f1a;
  --card:#11182a;
  --card2:#0f1626;
  --text:#eaf0ff;
  --muted:#9fb0d3;
  --line:rgba(255,255,255,.08);
  --blue:#4aa3ff;
  --green:#22c55e;
  --red:#ef4444;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 30% 10%, rgba(74,163,255,.18), transparent 60%),
              radial-gradient(800px 500px at 80% 30%, rgba(34,197,94,.14), transparent 55%),
              radial-gradient(900px 600px at 50% 90%, rgba(239,68,68,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:100%;
  max-width:680px;
  margin:0 auto;
  padding:14px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,26,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  max-width:680px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand .title{
  font-weight:800;
  letter-spacing:.2px;
  font-size:16px;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:.15s;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border-color: rgba(74,163,255,.35);
  background: linear-gradient(135deg, rgba(74,163,255,.20), rgba(255,255,255,.04));
}
.btn.good{
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(255,255,255,.04));
}
.btn.danger{
  border-color: rgba(239,68,68,.35);
  background: linear-gradient(135deg, rgba(239,68,68,.20), rgba(255,255,255,.04));
}

.card{
  background: linear-gradient(180deg, rgba(17,24,42,.92), rgba(15,22,38,.92));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:14px;
  margin:14px 0;
}

.small{
  color:var(--muted);
  font-size:12px;
}

.h1{
  font-size:16px;
  font-weight:800;
  margin:0 0 10px 0;
}

.input, textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  outline:none;
  color:var(--text);
  font-size:14px;
}
textarea{ min-height:110px; resize:none; }

.row{
  display:flex;
  gap:10px;
}
.row > div{ flex:1; }

hr.sep{
  border:0;
  height:1px;
  background: var(--line);
  margin:12px 0;
}

.post-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.post-author{
  font-weight:800;
  font-size:14px;
}
.post-date{
  font-size:12px;
  color:var(--muted);
}
.post-text{
  margin:10px 0 0 0;
  line-height:1.35;
  white-space:pre-wrap;
  font-size:14px;
}

.post-img{
  margin-top:12px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
}

.post-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.comment{
  padding:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  margin-top:8px;
}
.comment b{
  font-size:13px;
}
.comment p{
  margin:6px 0 0 0;
  color:var(--text);
  font-size:13px;
  white-space:pre-wrap;
}

.msg{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  margin:12px 0;
  font-size:13px;
}
.msg.ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
}
.msg.err{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}

/* PC: só aumenta o espaçamento, mas mantém o foco estilo app */
@media (min-width: 900px){
  .container{ padding:18px; }
  .card{ padding:16px; }
  .brand .title{ font-size:18px; }
}
