:root{
  --insta-grad: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);
  --bg-dark: #05030a;
}

body{
  margin:0;
  padding:0;
  background: radial-gradient(circle at top,#1b1130 0,#05030a 50%,#000 100%);
  color:#fff;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding-top:60px;
  padding-bottom:16px;
}

/* Barra estilo Instagram */
.navbar-insta{
  background: var(--insta-grad); /*rgba(0,0,0,0.8);*/
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-insta .logo-text{
  font-family: "Segoe Script","Pacifico",cursive;
  font-size:1.3rem;
}

/* Stories */
.stories-wrapper{
  overflow-x:auto;
  white-space:nowrap;
  padding:8px 0 4px;
}
.story-item{
  display:inline-block;
  text-align:center;
  margin-right:10px;
  font-size:0.7rem;
  color:#eee;
  cursor:pointer;
}
.story-ring{
  width:64px;
  height:64px;
  padding:2px;
  border-radius:50%;
  background:var(--insta-grad);
  display:flex;
  align-items:center;
  justify-content:center;
}
.story-ring img{
  width:56px;
  height:56px;
  border-radius:50%;
  border:2px solid #000;
  object-fit:cover;
}

/* Story principal (9:16) */
.story-frame{
  background:#000;
  border-radius:24px;
  overflow:hidden;
  max-width:430px;
  margin:0 auto;
  box-shadow:0 18px 40px rgba(0,0,0,0.8);
  border:1px solid rgba(255,255,255,0.12);
  cursor:pointer;
  position:relative;
}
.story-header{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:0.8rem;
  z-index:10;
  color:#fff;
  pointer-events:none;
}
.story-header .left{
  display:flex;
  align-items:center;
  gap:6px;
}
.story-header .story-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--insta-grad);
  padding:2px;
}
.story-header .story-avatar img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #000;
}
.story-body img{
  width:100%;
  height:auto;
  display:block;
}
.story-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px 14px;
  background: linear-gradient(to top,rgba(0,0,0,0.9),rgba(0,0,0,0));
  color:#fff;
  font-size:0.85rem;
  pointer-events:none;
}

/* Feed cards */
.feed-card{
  background:rgba(0,0,0,0.75);
  border-radius:18px;
  padding:10px;
  margin-top:16px;
  border:1px solid rgba(255,255,255,0.08);
}
.feed-card img{
  width:100%;
  border-radius:14px;
  margin-top:8px;
  cursor:pointer;
}
.feed-header-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--insta-grad);
  padding:2px;
  margin-right:8px;
}
.feed-header-avatar img{
  width:100%;
  height:100%;
  border-radius:50%;
  border:2px solid #000;
  object-fit:cover;
}

.chip-cat{
  border-radius:999px;
  border:none;
  padding:3px 10px;
  font-size:0.7rem;
  background:var(--insta-grad);
  color:#fff;
}

/* Grades de múltiplas imagens nos cards */
.multi-grid{
  display:grid;
  gap:6px;
  margin-top:8px;
}
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(2,1fr); }
.grid-5{ grid-template-columns:repeat(3,1fr); }
.multi-grid img{
  width:100%;
  border-radius:12px;
  object-fit:cover;
  aspect-ratio:1/1;
}

/* Barra de progresso do Story (fake) */
.story-progress{
  position:absolute;
  top:5px;
  left:5px;
  right:5px;
  height:3px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,0.25);
  z-index:11;
  pointer-events:none;
}
.story-progress div{
  width:70%;
  height:100%;
  background:#fff;
}

/* Modal lightbox */
.modal-dark .modal-content{
  background:#000;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
}
.modal-dark .btn-close{
  filter:invert(1);
}
.lightbox-img{
  width:100%;
  border-radius:12px;
  max-height:80vh;
  object-fit:contain;
  background:#000;
}

/* Comentários estilo Facebook no modal */
.fb-comments-block{
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:8px;
  padding-top:6px;
  font-size:0.8rem;
  max-height:45vh;
  overflow-y:auto;
}
.fb-comment{
  display:flex;
  align-items:flex-start;
  margin-bottom:6px;
}
.fb-comment-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  overflow:hidden;
  margin-right:6px;
  flex-shrink:0;
}
.fb-comment-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.fb-comment-body{
  background:#18202a;
  border-radius:16px;
  padding:4px 8px;
}
.fb-comment-author{
  font-weight:600;
  font-size:0.78rem;
}
.fb-comment-text{
  font-size:0.78rem;
}
.fb-comment-meta{
  font-size:0.7rem;
  color:#9fa6b2;
  margin-left:34px;
  margin-bottom:3px;
}

.fb-comment-input{
  display:flex;
  align-items:center;
  margin-top:4px;
}
.fb-comment-input .avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  overflow:hidden;
  margin-right:6px;
  flex-shrink:0;
}
.fb-comment-input .avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.fb-comment-input input{
  border-radius:16px;
  border:none;
  padding:4px 10px;
  font-size:0.78rem;
  width:100%;
  background:#111827;
  color:#fff;
}
.fb-comment-input input:focus{
  outline:none;
  box-shadow:0 0 0 1px #2563eb;
}
.fb-comment-icons{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:0.9rem;
  color:#9ca3af;
}
.fb-comment-input-wrap{
  position:relative;
  width:100%;
}

@media (max-width: 767.98px){
  .modal-dialog{
	margin:0;
  }
  .grid-5{ grid-template-columns:repeat(2,1fr); }
}

/* Caixa de título + texto da charge dentro do popup */
.caption-box{
  max-height:600px;
  overflow-y:auto;
  padding-right:4px;
}
@media (max-width: 767.98px){
  .caption-box{
	max-height:300px;
  }
}

/* SIDEBAR LATERAL DENTRO DO CONTAINER (COL-4) */
.sidebar-container{
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:16px;
  padding:18px 16px;
  margin-top:8px;
}

/* Em telas grandes: sidebar "fixo" (sticky) */
@media (min-width: 992px){
  .sidebar-container{
	position:sticky;
	top:70px;
	max-height: calc(100vh - 90px);
	overflow-y:auto;
  }
}

.sidebar-title{
  font-size: 0.9rem;
  font-weight: 600;
  color:#fdfdfd;
  margin-bottom: 6px;
}

.sidebar-links a{
  color:#d8d8d8;
  font-size:0.85rem;
  text-decoration:none;
  display:block;
  padding:4px 0;
}

.sidebar-links a:hover{
  color:#fff;
  text-decoration:underline;
}

.sidebar-ad{
  background:#111827;
  border-radius:12px;
  padding:10px;
  margin-top:18px;
  border:1px solid rgba(255,255,255,0.1);
  text-align:center;
}

.sidebar-ad img{
  width:100%;
  border-radius:10px;
}

.sponsor-box{
  background:#0f1620;
  border-radius:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,0.1);
  margin-top:18px;
}

.sponsor-item{
  display:flex;
  align-items:center;
  margin-bottom:10px;
}

.sponsor-item img{
  width:42px;
  height:42px;
  border-radius:10px;
  object-fit:cover;
  margin-right:8px;
}
