* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  overflow-x: hidden;
  height: -webkit-fill-available;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #343443; border-radius: 999px; }
::-webkit-scrollbar-corner { background: transparent; }

:root {
  --bg: #141418;
  --panel: #1e1e24;
  --panel-2: #23232b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f3f6;
  --muted: #a4a4b3;
  --purple: #7c5cff;
  --purple-dark: #5d3df0;
}

body {
  background: radial-gradient(circle at top, #1b1b24 0%, #111116 60%);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(12px);
}

.topbar-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 340px;
  padding: 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s;
}
.topbar-composer:hover {
  border-color: var(--purple);
  background: rgba(124,92,255,0.07);
}
.topbar-composer-avatar {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.62rem !important;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c5cff, #4e2edf);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 0 0 1.5px rgba(124, 92, 255, 0.4), 0 4px 12px rgba(124, 92, 255, 0.35);
}

.brand h1 {
  font-size: 1.1rem;
}

.brand span {
  color: var(--purple);
}

.main-nav {
  display: flex;
  gap: 14px;
}

.main-nav a {
  color: #d7d7de;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(124, 92, 255, 0.14);
  color: #bcaeff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.top-actions {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.icon-btn {
  border: none;
  background: transparent;
  color: #d7d7de;
  cursor: pointer;
  position: relative;
}

.notification-btn .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--purple);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 22px;
  padding: 16px 22px;
  height: calc(100vh - 72px);
  overflow: hidden;
}

.left-column,
.right-column,
.center-column {
  min-height: 0;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-top: 2px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.center-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.center-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.card {
  background: rgba(31, 31, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

/* card de perfil lateral */
.profile-card {
  overflow: hidden;
  text-align: center;
  padding-bottom: 22px;
  flex-shrink: 0;
}

.profile-banner {
  height: 82px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 30% 40%, #2b2c35, #09090c 60%);
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: -30px auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8f72ff, #4e2edf);
  font-weight: bold;
}

.profile-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: -36px auto 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8f72ff, #4e2edf);
  color: white;
  font-weight: 700;
  font-size: 1.7rem;
}

.profile-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.profile-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.profile-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stats strong {
  font-size: 1.7rem;
  color: #ffffff;
}

.profile-stats span {
  font-size: 0.75rem;
  color: #8f8fa0;
}

.menu-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  border: none;
  background: transparent;
  color: #dedee6;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  width: 100%;
}

.menu-item.active,
.menu-item:hover {
  background: rgba(124, 92, 255, 0.16);
  color: #c4b7ff;
}

.trending-card,
.groups-card,
.subjects-card {
  padding: 18px;
}

.pro-banner-card {
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(124,92,255,0.05));
  border: 1px solid rgba(124,92,255,0.35);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pro-banner-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #f1f1f5;
}
.pro-banner-top i { width: 18px; height: 18px; color: #f5c542; }
.pro-banner-card p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.pro-banner-preco { font-size: 1.4rem; font-weight: 700; color: #f1f1f5; }
.pro-banner-preco span { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.pro-banner-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7c5cff, #a78bfa);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.pro-banner-btn:hover { opacity: 0.88; }

.trending-card h3,
.groups-card h3,
.subjects-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.trending-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trending-card li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #f0f0f2;
}

.trending-card li span {
  color: var(--purple);
  font-weight: bold;
}

.trending-card small {
  color: var(--muted);
}

.create-post {
  padding: 18px 20px;
}

/* Barra compacta */
.create-post-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.create-post-bar:hover { background: var(--panel-2); }
.create-post-bar-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Modal compositor */
.composer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.composer-overlay.hidden { display: none; }

.composer-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}

.composer-body {
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.create-top {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8f72ff, #4e2edf);
  font-weight: bold;
  flex-shrink: 0;
}

.mini-avatar.purple {
  background: linear-gradient(135deg, #b270ff, #7c2fff);
}

.mini-avatar.green {
  background: linear-gradient(135deg, #26d0a8, #119f7f);
}

.create-top input,
.create-top textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #23232b;
  color: white;
  padding: 12px 18px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  line-height: 1.5;
  min-height: 44px;
  max-height: 180px;
  overflow-y: auto;
}
.create-top textarea::placeholder { color: var(--muted); }

.create-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  gap: 12px;
}

.post-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-types button,
.publish-btn,
.group-item button {
  cursor: pointer;
}

.post-types button {
  border: none;
  background: transparent;
  color: #c9c9d4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-btn {
  border: none;
  background: linear-gradient(135deg, #8f72ff, #6f48ff);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
}

/* ===== BUSCA FEED ===== */
.feed-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 4px;
}
.feed-search-wrap i { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.feed-search-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #d7d7de; font-size: 0.9rem;
}
.feed-search-wrap input::placeholder { color: var(--muted); }

/* ===== ABAS FEED ===== */
.feed-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.feed-tab {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  margin-bottom: -1px;
}

.feed-tab:hover { color: var(--text); }
.feed-tab.active { color: #c4b7ff; border-bottom-color: var(--purple); }

/* ===== BANNER NOVOS POSTS ===== */
.new-posts-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--purple);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  margin: 8px auto;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(124,92,255,0.4);
  animation: toastIn 0.3s ease;
  transition: 0.18s;
}

.new-posts-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,92,255,0.5); }
.new-posts-banner.hidden { display: none; }

.feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-scroll::-webkit-scrollbar {
  width: 8px;
}

.feed-scroll::-webkit-scrollbar-thumb {
  background: #343443;
  border-radius: 999px;
}

.post-card {
  padding: 18px 20px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.post-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-user h4 {
  font-size: 1rem;
}

.post-user p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.small {
  color: #9e9eaa;
}

.post-card h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.post-humor {
  font-size: 0.82rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}

.post-text {
  color: #c6c6d0;
  line-height: 1.65;
  margin-bottom: 14px;
}

.post-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.post-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 92, 255, 0.12);
  color: #bcaeff;
  border: 1px solid rgba(124, 92, 255, 0.25);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 14px;
}
.post-file-link:hover { background: rgba(124, 92, 255, 0.22); }

.humor-opt {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.humor-opt:hover, .humor-opt.active {
  background: rgba(124, 92, 255, 0.25);
  border-color: var(--purple);
  color: #bcaeff;
}

#btnHumor.active {
  background: rgba(124, 92, 255, 0.2);
  color: #bcaeff;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tags span {
  background: rgba(124, 92, 255, 0.16);
  color: #bcaeff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.action-btn {
  border: none;
  background: transparent;
  color: #c4c4cf;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.action-btn.right {
  margin-left: auto;
}

.action-btn.liked,
.action-btn.saved {
  color: #a98fff;
}

.save-post-btn.saved {
  color: #a98fff;
}
.save-post-btn.saved i { fill: #a98fff; }

.group-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.group-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
}

.purple-bg { background: linear-gradient(135deg, #8f72ff, #6c44ff); }
.green-bg  { background: linear-gradient(135deg, #20d3ae, #10a47f); }
.orange-bg { background: linear-gradient(135deg, #ffb144, #ff6a33); }
.pink-bg   { background: linear-gradient(135deg, #ff6ec7, #b63cff); }
.blue-bg   { background: linear-gradient(135deg, #6d8bff, #5367ff); }

.group-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-info small {
  color: var(--muted);
}

.group-item button {
  background: transparent;
  border: 1px solid rgba(124, 92, 255, 0.55);
  color: #bcaeff;
  border-radius: 999px;
  padding: 9px 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #d5d5dc;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== FAB (mobile) ===== */
.mob-fab {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: calc(72px + var(--browser-bottom-offset, 0px));
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #4e2edf);
  border: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,92,255,0.5);
  cursor: pointer;
  z-index: 200;
}
.mob-fab i { width: 24px; height: 24px; }

/* ===== BOTTOM NAV (mobile) ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: var(--browser-bottom-offset, 0px); left: 0; right: 0;
  z-index: 999;
  background: rgba(18,18,24,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 4px;
  /* Empurra itens acima do home indicator — requer viewport-fit=cover */
  padding-bottom: max(env(safe-area-inset-bottom), 8px);
  justify-content: space-around;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
  min-width: 52px;
}

.mob-nav-item i { display: block; width: 22px; height: 22px; }
.mob-nav-item.active { color: var(--purple); }
.mob-nav-item:active { opacity: 0.7; }

.mob-notif-wrap { position: relative; }
.mob-notif-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  border: 2px solid rgba(18,18,24,0.97);
  display: none;
}
.mob-notif-dot.visible { display: block; }

/* ===== BADGE DE MENSAGENS NO NAV ===== */
.main-nav a { position: relative; }
.mob-nav-item { position: relative; }

.nav-chat-badge {
  position: absolute;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid #12121a;
  pointer-events: none;
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* Desktop: canto superior direito do botão do nav */
.main-nav a .nav-chat-badge {
  top: 7px;
  right: 7px;
}

/* Mobile: posicionado sobre o ícone */
.mob-nav-item .nav-chat-badge {
  top: 1px;
  right: calc(50% - 18px);
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 250px 1fr;
  }
  .right-column { display: none; }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 72px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0 16px;
    height: 58px;
  }

  .brand h1 { font-size: 0.95rem; }
  .main-nav { display: none; }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding: 12px;
    gap: 14px;
  }

  .left-column { display: none; }
  .right-column { display: none; }

  .center-column {
    overflow: visible;
    height: auto;
    min-height: 0;
    /* gap quebraria o sticky, vira padding nos filhos */
    gap: 0;
  }

  .post-composer textarea { font-size: 0.95rem; }

  .mobile-bottom-nav { display: flex; }

  /* Espaço suficiente para a nav bar + safe area do iPhone */
  body { padding-bottom: 72px; }

  /* Esconde composer da topbar no mobile */
  .topbar-composer { display: none; }

  /* FAB criar post */
  .mob-fab { display: flex !important; }

  /* Feed scroll vira scroll natural do body no mobile */
  .feed-scroll {
    overflow-y: visible;
    flex: none;
    height: auto;
    padding-bottom: 24px;
  }

  /* Tabs e busca ficam grudadas abaixo da topbar (prefixo webkit pro Safari iOS) */
  .feed-tabs {
    position: -webkit-sticky;
    position: sticky;
    top: 58px;
    z-index: 100;
    background: var(--bg);
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feed-search-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 106px;
    z-index: 99;
    background: var(--bg);
    margin-top: 8px;
  }

  /* Espaçamento entre elementos do feed sem usar gap (que quebra sticky) */
  .new-posts-banner { margin-top: 8px; }
  #feedList { margin-top: 8px; }
}

/* ===== ÁREA DE COMENTÁRIOS ===== */
.hidden {
  display: none !important;
}

/* ===== COMENTÁRIOS ===== */
.comments-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.comments-section.hidden { display: none !important; }

.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.comment-input-wrap {
  flex: 1;
  position: relative;
}
.comment-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: #e5e5ee;
  padding: 8px 14px;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.comment-input:focus { border-color: rgba(124,92,255,0.5); }
.comment-input::placeholder { color: #8f8f9c; }

.comment-send {
  background: rgba(124,92,255,0.15);
  border: 1px solid rgba(124,92,255,0.3);
  color: #c8bbff;
  padding: 8px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.comment-send:hover { background: rgba(124,92,255,0.35); color: #fff; }

/* --- item --- */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-item:last-child { border-bottom: none; }

.comment-mini-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #8f72ff, #4e2edf);
  overflow: hidden;
}
.comment-mini-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }

.comment-nome {
  color: #f1f1f5; font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.comment-nome:hover { color: var(--purple); }
.comment-time { color: var(--muted); font-size: 0.78rem; }

.comment-text {
  color: #c9c9d4; font-size: 0.9rem; line-height: 1.5; margin: 0; word-break: break-word;
}
.comment-footer { margin-top: 4px; }

.comment-reply-btn {
  background: none; border: none;
  color: var(--muted); font-size: 0.8rem;
  cursor: pointer; padding: 0; font-weight: 600; transition: color 0.15s;
}
.comment-reply-btn:hover { color: var(--purple); }

/* --- replies --- */
.comment-replies { margin-top: 8px; }
.comment-reply-item {
  display: flex; gap: 8px;
  padding: 8px 0 6px 10px;
  border-left: 2px solid rgba(124,92,255,0.25);
  margin-bottom: 4px;
}

/* --- reply form --- */
.reply-form {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding-left: 10px;
  border-left: 2px solid rgba(124,92,255,0.25);
}
.reply-input-wrap { flex: 1; position: relative; }
.reply-input {
  width: 100%; box-sizing: border-box;
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 14px; color: #e5e5ee;
  padding: 6px 12px; outline: none; font-size: 0.87rem;
}
.reply-send {
  background: rgba(124,92,255,0.2);
  border: 1px solid rgba(124,92,255,0.4);
  color: #c8bbff; padding: 6px 11px; border-radius: 12px;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
  flex-shrink: 0; transition: 0.2s;
}
.reply-send:hover { background: rgba(124,92,255,0.4); color: #fff; }
.reply-cancel {
  background: none; border: none; color: var(--muted);
  font-size: 0.78rem; cursor: pointer; flex-shrink: 0; padding: 0 2px;
}
.reply-cancel:hover { color: #f1f1f5; }

/* --- @mention --- */
.mention { color: #a78bfa; font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }

.mention-dropdown {
  position: absolute; bottom: calc(100% + 4px); left: 0; right: 0;
  background: #1a1a26; border: 1px solid rgba(124,92,255,0.3);
  border-radius: 12px; overflow: hidden; z-index: 200;
  max-height: 180px; overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5); display: none;
}
.mention-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; transition: background 0.12s;
}
.mention-item:hover { background: rgba(124,92,255,0.15); }
.mention-item-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #8f72ff, #4e2edf); overflow: hidden;
}
.mention-item-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mention-item-nome { color: #f1f1f5; font-size: 0.88rem; }

/* ===== LINKS DE AUTOR NOS POSTS ===== */
.author-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.author-link:hover { color: #c4b7ff; }

.avatar-link {
  display: contents;
  text-decoration: none;
}

/* ===== ANIMAÇÕES E INTERAÇÕES ===== */
.post-card {
  animation: aparecerPost 0.3s ease;
}

@keyframes aparecerPost {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.action-btn:hover,
.group-item button:hover,
.publish-btn:hover,
.comment-send:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: 0.2s ease;
}
/* ===== BANNER PRO NO FEED ===== */
.pro-banner-feed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(28,20,56,0.95), rgba(20,16,40,0.95));
  border: 1px solid rgba(124,92,255,0.4);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 0 0 1px rgba(124,92,255,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: aparecerPost 0.4s ease;
  flex-shrink: 0;
}

.pro-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pro-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #1a1000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pro-banner-left div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pro-banner-left strong {
  font-size: 0.9rem;
  color: #e8e0ff;
}

.pro-banner-left span {
  font-size: 0.8rem;
  color: #8888aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-banner-btn {
  background: linear-gradient(135deg, #8f72ff, #5d3df0);
  color: white;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: 0.2s;
}

.pro-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,92,255,0.4);
}

/* ===== TÍTULO BADGE NOS POSTS ===== */
.titulo-post-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.03em;
}

/* ===== PRO: BADGES INLINE NO FEED ===== */
.pro-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  color: #1a1000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.pro-badge-inline i { width: 10px; height: 10px; }

.verified-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: #4fa3ff;
  margin-left: 2px;
}

.verified-inline i { width: 16px; height: 16px; }

/* ===== PRO: BADGE E VERIFIED NOS POSTS ===== */
.pro-badge-post {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  color: #1a1000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: 0.04em;
}

.pro-badge-post i { width: 10px; height: 10px; }

.verified-post {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: #4fa3ff;
  margin-left: 3px;
  cursor: default;
}

.verified-post i { width: 15px; height: 15px; }

/* ===== PRO: POST EM DESTAQUE ===== */
.post-card.post-featured {
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  background: linear-gradient(160deg, rgba(255,185,0,0.07) 0%, rgba(31,31,39,0.98) 50%) !important;
  box-shadow: 0 0 0 1px rgba(255,215,0,0.1), 0 8px 32px rgba(255,185,0,0.12) !important;
  position: relative;
}

.post-card.post-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, #ff9500, transparent);
}

.post-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1000;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(255,185,0,0.3);
}

.post-featured-label i { width: 11px; height: 11px; }

/* ===== PRO: CORES AVATAR NO FEED ===== */
.mini-avatar.av-pro-gold    { background: linear-gradient(135deg, #ffd700, #ff9500); }
.mini-avatar.av-pro-teal    { background: linear-gradient(135deg, #00d2d3, #00b4b4); }
.mini-avatar.av-pro-neon    { background: linear-gradient(135deg, #39ff14, #15a800); }
.mini-avatar.av-pro-ocean   { background: linear-gradient(135deg, #0052d4, #0093d0); }
.mini-avatar.av-pro-magenta { background: linear-gradient(135deg, #e600ff, #8800cc); }
.mini-avatar.av-pro-sunset  { background: linear-gradient(135deg, #ff6b35, #f7c59f); }
.mini-avatar.av-pro-ruby    { background: linear-gradient(135deg, #e11d48, #be123c); }
.mini-avatar.av-pro-ice     { background: linear-gradient(135deg, #67e8f9, #06b6d4); }
.mini-avatar.av-pro-lime    { background: linear-gradient(135deg, #a3e635, #65a30d); }
.mini-avatar.av-pro-violet  { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.mini-avatar.av-pro-coral   { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.mini-avatar.av-pro-mint    { background: linear-gradient(135deg, #6ee7b7, #10b981); }

.profile-avatar.av-pro-gold    { background: linear-gradient(135deg, #ffd700, #ff9500); }
.profile-avatar.av-pro-teal    { background: linear-gradient(135deg, #00d2d3, #00b4b4); }
.profile-avatar.av-pro-neon    { background: linear-gradient(135deg, #39ff14, #15a800); }
.profile-avatar.av-pro-ocean   { background: linear-gradient(135deg, #0052d4, #0093d0); }
.profile-avatar.av-pro-magenta { background: linear-gradient(135deg, #e600ff, #8800cc); }
.profile-avatar.av-pro-sunset  { background: linear-gradient(135deg, #ff6b35, #f7c59f); }
.profile-avatar.av-pro-ruby    { background: linear-gradient(135deg, #e11d48, #be123c); }
.profile-avatar.av-pro-ice     { background: linear-gradient(135deg, #67e8f9, #06b6d4); }
.profile-avatar.av-pro-lime    { background: linear-gradient(135deg, #a3e635, #65a30d); }
.profile-avatar.av-pro-violet  { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.profile-avatar.av-pro-coral   { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.profile-avatar.av-pro-mint    { background: linear-gradient(135deg, #6ee7b7, #10b981); }

/* ===== ABA: ESTADO VAZIO ===== */
.aba-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}
.aba-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}
.aba-empty h3 {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.7;
}
.aba-empty p {
  font-size: 0.9rem;
}

/* ===== ABA: CONFIGURAÇÕES ===== */
.config-painel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
}
.config-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.config-titulo svg { width: 22px; height: 22px; color: var(--purple); }
.config-grupo {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.config-grupo h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.config-grupo h4 svg { width: 16px; height: 16px; }
.config-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  cursor: pointer;
}
.toggle-wrap {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s, background 0.2s;
}
.toggle-input:checked + .toggle-slider {
  background: var(--purple);
  border-color: var(--purple);
}
.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}
.config-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.config-link-btn:hover {
  border-color: var(--purple);
  background: rgba(124,92,255,0.08);
}
.config-link-btn.is-pro {
  border-color: rgba(255,215,0,0.3);
  color: #ffd700;
}
.config-link-btn.is-pro:hover {
  background: rgba(255,215,0,0.08);
  border-color: #ffd700;
}
.config-link-btn svg { width: 18px; height: 18px; }
.config-sair-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,75,110,0.08);
  border: 1px solid rgba(255,75,110,0.2);
  border-radius: 12px;
  color: #ff4b6e;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.config-sair-btn:hover {
  background: rgba(255,75,110,0.16);
  border-color: #ff4b6e;
}
.config-sair-btn svg { width: 18px; height: 18px; }

/* ===== MODAL DE PESQUISA ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  animation: fadeInOverlay 0.2s ease;
}

.search-overlay.hidden {
  display: none;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.search-modal {
  width: 100%;
  max-width: 620px;
  background: #1e1e24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: slideDownModal 0.2s ease;
}

@keyframes slideDownModal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #a4a4b3;
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f3f3f6;
  font-size: 1.05rem;
}

.search-input-wrap input::placeholder {
  color: #5a5a70;
}

.search-close {
  background: transparent;
  border: none;
  color: #a4a4b3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.search-close:hover { color: white; }

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 0;
}

.search-results::-webkit-scrollbar { width: 5px; }
.search-results::-webkit-scrollbar-thumb { background: #343443; border-radius: 999px; }

.search-hint {
  text-align: center;
  color: #5a5a70;
  font-size: 0.9rem;
  padding: 24px;
}

/* ===== FILTROS AVANÇADOS (Pro) ===== */
.search-filters-row {
  display: flex; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.search-filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.search-filter-group label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.search-filter-select {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text);
  padding: 6px 10px; border-radius: 8px; font-size: 0.82rem; font-family: inherit;
  cursor: pointer; outline: none;
}
.search-filter-select:focus { border-color: var(--purple); }
.search-filters-locked {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 0.8rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.search-filters-locked i { width: 14px; height: 14px; }

.search-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c5cff;
  letter-spacing: 0.08em;
  padding: 10px 20px 6px;
  text-transform: uppercase;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-item:hover {
  background: rgba(255,255,255,0.05);
}

.search-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.search-item-icon.post-icon  { background: linear-gradient(135deg, #7c5cff, #4e2edf); }
.search-item-icon.group-icon { background: linear-gradient(135deg, #26d0a8, #119f7f); }
.search-item-icon.user-icon  { background: linear-gradient(135deg, #ff6ec7, #b63cff); }
.search-item-icon.chat-icon  { background: linear-gradient(135deg, #6d8bff, #5367ff); }

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f3f3f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-sub {
  font-size: 0.8rem;
  color: #a4a4b3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  text-align: center;
  color: #5a5a70;
  font-size: 0.9rem;
  padding: 32px;
}

/* ===== DENÚNCIA ===== */
.report-motivos { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.report-motivo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer; transition: 0.15s;
  font-size: 0.88rem; color: #c8c8d8;
}
.report-motivo-item:has(input:checked) { border-color: rgba(124,92,255,0.5); background: rgba(124,92,255,0.08); color: #f1f1f5; }
.report-motivo-item input { accent-color: #7c5cff; width: 15px; height: 15px; flex-shrink: 0; }

/* ===== MODAL DE CONFIRMAÇÃO DE EXCLUSÃO ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: confirmFadeIn 0.18s ease;
}

@keyframes confirmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.confirm-box {
  width: 100%;
  max-width: 380px;
  background: #1e1e26;
  border: 1px solid rgba(255, 75, 75, 0.2);
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: confirmSlideUp 0.2s ease;
}

@keyframes confirmSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid rgba(255, 75, 75, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
}

.confirm-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f3f3f6;
  margin-bottom: 10px;
}

.confirm-box p {
  font-size: 0.88rem;
  color: #a4a4b3;
  line-height: 1.6;
  margin-bottom: 26px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-btn-cancel {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #d0d0de;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.confirm-btn-delete {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #e53935;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.confirm-btn-delete:hover {
  background: #c62828;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
.confirm-btn-neutral {
  background: var(--purple) !important;
  box-shadow: 0 4px 14px rgba(124,92,255,0.3) !important;
}
.confirm-btn-neutral:hover {
  background: #6d3aff !important;
  box-shadow: 0 4px 14px rgba(124,92,255,0.45) !important;
}

/* ===== LIGHTBOX (compartilhado) ===== */
.lightbox-dialog { border: none; background: rgba(0,0,0,0.93); padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; display: flex; align-items: center; justify-content: center; animation: lb-fade 0.18s ease; }
.lightbox-dialog::backdrop { display: none; }
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox-dialog .lightbox-box { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-dialog .lightbox-box img { display: block; max-width: min(580px, 88vw); max-height: 78vh; border-radius: 6px; object-fit: contain; }
.lightbox-dialog .lightbox-close { position: fixed; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; }
.lightbox-dialog .lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-dialog .lightbox-close i { width: 18px; height: 18px; }


/* ===== MODAL COMPARTILHAR POST ===== */
.compartilhar-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: compartilharFadeIn 0.22s ease;
}
.compartilhar-overlay.hiding {
  animation: compartilharFadeOut 0.28s ease forwards;
  pointer-events: none;
}
.compartilhar-overlay.hidden { display: none; }

@keyframes compartilharFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes compartilharFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.compartilhar-modal {
  background: var(--panel, #1a1a2e);
  border: 1px solid var(--border, #2e2e45);
  border-radius: 16px;
  width: 100%; max-width: 420px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: compartilharSlideIn 0.28s cubic-bezier(0.34,1.4,0.64,1);
}
.compartilhar-overlay.hiding .compartilhar-modal {
  animation: compartilharSlideOut 0.28s ease forwards;
}

@keyframes compartilharSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes compartilharSlideOut {
  from { opacity: 1; transform: translateY(0)    scale(1);    }
  to   { opacity: 0; transform: translateY(16px) scale(0.97); }
}
.compartilhar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border, #2e2e45);
}
.compartilhar-header h3 { font-size: 1rem; font-weight: 700; color: var(--text, #fff); }
.compartilhar-busca-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 6px;
  padding: 10px 14px;
  background: var(--panel-2, #12121e);
  border: 1px solid var(--border, #2e2e45);
  border-radius: 10px;
  color: var(--muted, #888);
}
.compartilhar-busca-wrap i { width: 16px; height: 16px; flex-shrink: 0; }
.compartilhar-busca-wrap input {
  background: transparent; border: none; outline: none;
  color: var(--text, #fff); font-size: 0.9rem; width: 100%;
}
.compartilhar-busca-wrap input::placeholder { color: var(--muted, #888); }
.compartilhar-lista {
  flex: 1; overflow-y: auto; padding: 6px 0;
}
.compartilhar-vazio {
  text-align: center; color: var(--muted, #888);
  font-size: 0.88rem; padding: 24px;
}
.compartilhar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  transition: background 0.15s;
}
.compartilhar-item:hover { background: rgba(124,92,255,0.07); }
.compartilhar-av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  color: #fff;
}
.compartilhar-av.group {
  background: linear-gradient(135deg,#7c5cff,#a78bff);
  font-size: 1.1rem;
}
.compartilhar-av.comunidade {
  background: linear-gradient(135deg,#26d0a8,#119f7f);
  font-size: 1.1rem;
}
.compartilhar-item-info {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.compartilhar-item-nome {
  font-size: 0.9rem; font-weight: 600; color: var(--text, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.compartilhar-item-sub { font-size: 0.78rem; color: var(--muted, #888); }

.compartilhar-enviar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #7c5cff, #4e2edf);
  color: #fff; border: none; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.compartilhar-enviar-btn i { width: 13px; height: 13px; }
.compartilhar-enviar-btn:hover { opacity: 0.88; transform: scale(1.03); }
.compartilhar-enviar-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.compartilhar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border, #2e2e45);
}
.compartilhar-footer input {
  width: 100%; background: var(--panel-2, #12121e);
  border: 1px solid var(--border, #2e2e45); border-radius: 10px;
  color: var(--text, #fff); font-size: 0.88rem;
  padding: 10px 14px; outline: none;
}
.compartilhar-footer input::placeholder { color: var(--muted, #888); }

@keyframes spin { to { transform: rotate(360deg); } }

/* === MODAL SEGUIDORES / SEGUINDO === */
.seg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  backdrop-filter: blur(4px);
}
.seg-modal-overlay.hidden { display: none; }

.seg-modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: min(460px, 96vw);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.seg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.seg-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 3px;
}

.seg-tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.seg-tab-btn.active { background: var(--purple); color: #fff; }

.seg-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
}
.seg-modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.seg-modal-body {
  overflow-y: auto;
  padding: 6px 0;
  flex: 1;
  min-height: 120px;
}

.seg-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.14s;
}
.seg-user-item:hover { background: rgba(255,255,255,0.05); }

.seg-user-info { flex: 1; min-width: 0; }
.seg-user-nome { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-user-sub  { font-size: 0.77rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.seg-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.seg-loading {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-clickable { cursor: pointer; }
.stat-clickable:hover strong { color: var(--purple) !important; transition: color 0.15s; }

.seg-search-wrap {
  padding: 10px 18px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.seg-search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.seg-search-input:focus { border-color: var(--purple); }
.seg-search-input::placeholder { color: var(--muted); }

.seg-action-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.seg-action-btn:hover:not(:disabled) {
  border-color: #ff4b6e;
  color: #ff4b6e;
  background: rgba(255,75,110,0.08);
}
.seg-action-btn:disabled { opacity: 0.4; cursor: default; }
