:root{
  --bg:#0b0b10;
  --card:#12121b;
  --card2:#171726;
  --text:#eaeaf2;
  --muted:#a7a7c2;
  --line:#24243a;
  --hot:#ff2d7d;
  --hot2:#7c4dff;
  --ok:#2df2a7;
  --shadow: 0 14px 40px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,45,125,.18), transparent 50%),
              radial-gradient(1200px 600px at 80% 0%, rgba(124,77,255,.18), transparent 50%),
              var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:980px;margin:0 auto;padding:22px}

.nav{
  position:sticky;top:0;z-index:9;
  backdrop-filter: blur(14px);
  background: rgba(11,11,16,.65);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav .inner{
  max-width:980px;margin:0 auto;padding:14px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{
  display:flex;align-items:center;gap:10px;font-weight:800;
  letter-spacing:.6px;
}
.logo{
  width:38px;height:38px;border-radius:14px;
  background: linear-gradient(135deg, var(--hot), var(--hot2));
  box-shadow: 0 10px 25px rgba(255,45,125,.22);
}
.brand span{font-size:18px}
.badge{
  font-size:12px;color:rgba(255,255,255,.75);
  padding:4px 10px;border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
}

.btn{
  border:0;cursor:pointer;
  padding:10px 14px;border-radius:14px;
  color:var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  transition:.18s transform, .18s background;
  display:inline-flex;align-items:center;gap:8px;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09)}
.btn.hot{
  background: linear-gradient(135deg, var(--hot), var(--hot2));
  border:0;
}
.btn.hot:hover{filter:brightness(1.06)}
.btn.ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.14);
}

.grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:18px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 110%),
              var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .head{
  padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.card .body{padding:16px}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(255,45,125,.55); box-shadow:0 0 0 3px rgba(255,45,125,.12)}

label{display:block;color:var(--muted);font-size:12px;margin:10px 0 6px}
.small{color:var(--muted);font-size:12px}
.error{
  padding:10px 12px;border-radius:14px;
  background: rgba(255,45,125,.10);
  border:1px solid rgba(255,45,125,.25);
  color:#ffd1e3;
}
.ok{
  padding:10px 12px;border-radius:14px;
  background: rgba(45,242,167,.10);
  border:1px solid rgba(45,242,167,.25);
  color:#c9ffea;
}

.post{ margin-bottom:16px; }
.post .meta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;
}
.userchip{ display:flex;align-items:center;gap:10px; }
.avatar{
  width:40px;height:40px;border-radius:14px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.avatar img{width:100%;height:100%;object-fit:cover}
.username{font-weight:750}
.time{color:var(--muted);font-size:12px}

.media{
  width:100%;
  background: #07070c;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.media img, .media video{
  width:100%; display:block;
  max-height:560px;
  object-fit: cover;
}
.caption{padding:14px 16px;color:rgba(255,255,255,.92)}
.actions{
  display:flex;align-items:center;gap:10px;
  padding:14px 16px;
  flex-wrap: wrap;
}
.pill{
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  display:inline-flex;align-items:center;gap:8px;
  font-weight:650;
}
.pill .dot{
  width:8px;height:8px;border-radius:99px;
  background: var(--hot);
  box-shadow: 0 0 0 3px rgba(255,45,125,.15);
}
hr.sep{
  border:0;border-top:1px solid rgba(255,255,255,.08);
  margin:12px 0;
}
.comment{
  padding:10px 12px;border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  margin-bottom:10px;
}
.comment b{color:#fff}
.footer-note{color:rgba(255,255,255,.55);font-size:12px;padding:18px 0;text-align:center}

/* extra ui */
.kpi{display:flex;gap:10px;flex-wrap:wrap}
.kpi .pill{font-size:13px}
.tabs{display:flex;gap:10px;flex-wrap:wrap}
.tabs a{padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05)}
.tabs a.active{background:linear-gradient(135deg,var(--hot),var(--hot2));border:0}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.right{margin-left:auto}
.mini{font-size:12px;color:rgba(255,255,255,.7)}
.link{color:#fff;border-bottom:1px dashed rgba(255,255,255,.35)}
.toast{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  background:rgba(18,18,27,.92);border:1px solid rgba(255,255,255,.10);
  padding:10px 12px;border-radius:14px;box-shadow:var(--shadow);
  display:none;z-index:99;
}

/* ===== Grid posts perfil ===== */
.gridposts{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 720px){
  .gridposts{grid-template-columns: repeat(2, 1fr);}
}
.tile{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  aspect-ratio: 1 / 1;
}
.tile img, .tile video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tile .overlay{
  position:absolute; inset:auto 0 0 0;
  padding:10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.70));
  display:flex; gap:10px; justify-content:flex-start; align-items:center;
}
.tile .overlay span{
  font-size:12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  padding:6px 10px;
  border-radius:999px;
}

/* ===== Stories ===== */
.stories{
  display:flex; gap:12px; overflow:auto; padding-bottom:6px;
}
.story-bubble{ min-width:74px; text-align:center; }
.story-ring{
  width:64px;height:64px;border-radius:22px;
  padding:2px;
  background: linear-gradient(135deg, var(--hot), var(--hot2));
  box-shadow: 0 10px 25px rgba(255,45,125,.18);
  margin:0 auto;
}
.story-ring .inner{
  width:100%;height:100%;border-radius:20px;
  background: rgba(12,12,18,.95);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.story-ring img{width:100%;height:100%;object-fit:cover}
.story-name{margin-top:6px;font-size:12px;color:rgba(255,255,255,.78)}

/* ===== DM ===== */
.dm-list .comment{cursor:pointer}
.dm-badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(255,45,125,.12);
  border:1px solid rgba(255,45,125,.25);
}
.bubble{
  max-width:78%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  margin:8px 0;
}
.bubble.me{
  margin-left:auto;
  background: linear-gradient(135deg, rgba(255,45,125,.22), rgba(124,77,255,.18));
  border-color: rgba(255,45,125,.18);
}
.bubble .meta{font-size:11px;color:rgba(255,255,255,.65);margin-bottom:6px}