/* ==========================================================================
   LUME — UI COMPONENTS (Font Awesome Iconography + Modern Cards)
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 18px;
}

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

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--brand);
}

.hashtag {
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition);
}

.hashtag:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.pulso-caption .hashtag {
  color: #FF85B3;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.tag-chip:hover,
.tag-chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.tag-chip-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(225, 45, 117, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(225, 45, 117, 0.42);
  filter: brightness(1.04);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-soft:hover {
  background: rgba(225, 45, 117, 0.19);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0.96rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-icon:hover {
  background: var(--surface-hover);
  color: var(--brand);
  border-color: var(--brand);
}

.icon-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input, .textarea, .select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.textarea {
  resize: vertical;
  min-height: 84px;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* Avatar */
.avatar {
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -0.02em;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font-size: 0.58rem;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Left Rail Profile Summary Card */
.mini-profile-card {
  overflow: hidden;
  flex-shrink: 0;
  height: auto;
}

.mini-profile-cover {
  height: 78px;
  position: relative;
  z-index: 1;
  background-size: cover !important;
  background-position: center !important;
  flex-shrink: 0;
}

.mini-profile-body {
  padding: 0 16px 16px;
  position: relative;
  z-index: 3;
  min-width: 0;
}

.mini-profile-avatar-wrap {
  margin-top: -34px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 4;
}

.mini-profile-actions {
  padding-top: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mini-profile-avatar {
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 5;
}

.mini-profile-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  word-break: break-word;
}

.mini-profile-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 3px 0 8px;
  line-height: 1.35;
  word-break: break-word;
}

.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  width: 100%;
  margin-bottom: 12px;
}

.mood-pill i {
  color: var(--brand);
  flex-shrink: 0;
}

.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.mini-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Orkut-inspired 3 Seals with Font Awesome */
.seals-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.seal-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.seal-avg {
  color: var(--text-muted);
  font-weight: 500;
}

.seal-pips {
  display: inline-flex;
  gap: 6px;
}

.seal-pip {
  font-size: 0.95rem;
  opacity: 0.22;
  transition: transform var(--transition), opacity var(--transition);
  padding: 2px;
}

.seal-pip.seal-sky   { color: var(--sky); }
.seal-pip.seal-amber { color: var(--amber); }
.seal-pip.seal-brand { color: var(--brand); }

.seal-pip.filled {
  opacity: 1;
}

.seal-pip.interactive {
  cursor: pointer;
}

.seal-pip.interactive:hover {
  transform: scale(1.22);
  opacity: 1;
}

/* 3-card Seals Grid (Profile Page — looks awesome on desktop & mobile!) */
.seals-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.seal-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seal-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.seal-tile-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.seal-tile-avg {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

/* Stories Bar — padding vertical generoso evita cortar o anel no hover! */
.stories-card {
  padding: 10px 14px 12px;
  overflow: visible;
}

.stories-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 4px 6px;
  scrollbar-width: none;
}

.stories-strip::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.story-item:hover {
  z-index: 3;
}

.story-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: var(--story-ring);
  display: grid;
  place-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.story-item:hover .story-ring {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(225, 45, 117, 0.28);
}

.story-ring.viewed {
  background: var(--border-strong);
}

.story-ring.add-ring {
  background: var(--bg);
  border: 2px dashed var(--brand);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.story-add-plus {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}

.story-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Composer */
.composer-card {
  padding: 16px 18px;
}

.composer-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.composer-textarea {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  min-height: 54px;
  font-size: 0.96rem;
  outline: none;
  color: var(--text);
  padding-top: 6px;
}

.composer-preview {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.composer-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.filter-strip {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
  overflow-x: auto;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.composer-poll-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.composer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tool-pill:hover, .tool-pill.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(225, 45, 117, 0.25);
}

/* Filter Tabs */
.pill-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pill-tabs::-webkit-scrollbar {
  display: none;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pill-tab.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(225, 45, 117, 0.28);
}

/* Post Card */
.post-card {
  overflow: hidden;
  transition: border-color var(--transition);
}

.post-header {
  padding: 15px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.post-author-meta {
  min-width: 0;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-author-name:hover {
  color: var(--brand);
}

.post-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comm-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.73rem;
}

.post-text {
  padding: 0 18px 12px;
  font-size: 0.95rem;
  line-height: 1.56;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-media-wrap {
  position: relative;
  background: #0F131C;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.post-media-wrap img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 4.8rem;
  color: #FF2E63;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  animation: heartPop 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heartPop {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  30%  { transform: translate(-50%, -50%) scale(1.22); opacity: 1; }
  65%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

/* Poll Options */
.poll-list {
  padding: 4px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-opt {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition);
}

.poll-opt:hover, .poll-opt.voted {
  border-color: var(--brand);
}

.poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand-soft);
  transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.poll-opt-text, .poll-opt-pct {
  position: relative;
  z-index: 1;
}

.poll-opt-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.poll-opt-pct {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 0.82rem;
}

/* Post Action Bar */
.post-actions {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.action-btn i {
  font-size: 1.02rem;
}

.action-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.action-btn.liked {
  color: #F43F5E;
  background: rgba(244, 63, 94, 0.11);
}

.action-btn.saved {
  color: var(--amber);
  background: var(--amber-soft);
}

/* Post Comments */
.post-comments {
  padding: 10px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-hover);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.86rem;
}

.comment-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
  flex: 1;
}

.comment-bubble strong {
  margin-right: 6px;
  font-size: 0.84rem;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.comment-form input {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  outline: none;
}

.comment-form input:focus {
  border-color: var(--brand);
}

/* Sorte do Dia Widget */
.fortune-card {
  background: linear-gradient(135deg, rgba(225, 45, 117, 0.10), rgba(124, 58, 237, 0.10));
  border: 1px solid rgba(225, 45, 117, 0.22);
  padding: 16px;
  border-radius: var(--radius-md);
}

.fortune-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 6px;
}

.fortune-text {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   PULSOS — TIKTOK / REELS VERTICAL IMMERSIVE FEED
   ========================================================================== */
.pulsos-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pulsos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulsos-feed {
  height: calc(100vh - 154px);
  min-height: 540px;
  max-height: 760px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0;
  align-items: center;
  scrollbar-width: none;
}

.pulsos-feed::-webkit-scrollbar {
  display: none;
}

.pulso-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 100%;
  max-width: 410px;
  height: 100%;
  min-height: 530px;
  flex-shrink: 0;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #0B0D14;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pulso-canvas,
.pulso-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pulso-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, transparent 26%, transparent 56%, rgba(0,0,0,0.84) 100%);
  pointer-events: none;
}

.pulso-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
}

.pulso-pill {
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulso-rail {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pulso-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.pulso-rail-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 20, 32, 0.56);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  transition: transform var(--transition), background var(--transition);
}

.pulso-rail-btn:hover .pulso-rail-circle {
  transform: scale(1.1);
}

.pulso-rail-btn.liked .pulso-rail-circle {
  background: rgba(244, 63, 94, 0.9);
  border-color: transparent;
}

.pulso-rail-btn.saved .pulso-rail-circle {
  background: rgba(245, 158, 11, 0.9);
  border-color: transparent;
}

.pulso-info {
  position: absolute;
  left: 16px;
  right: 76px;
  bottom: 22px;
  z-index: 5;
  color: #fff;
}

.pulso-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.94rem;
}

.pulso-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.pulso-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 10px;
  line-height: 1.4;
}

.pulso-audio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ==========================================================================
   COMMUNITIES
   ========================================================================== */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}

.comm-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.comm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.comm-card-banner {
  height: 92px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background-size: cover !important;
  background-position: center !important;
}

.comm-emoji-badge,
.comm-avatar-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--surface);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--surface);
  overflow: hidden;
  transform: translateY(24px);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.comm-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comm-mini-avatar {
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: var(--brand-gradient);
}

.comm-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comm-cat-pill {
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 10px;
  border-radius: 999px;
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto !important;
  left: auto !important;
  height: auto !important;
  z-index: 6;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comm-card-body {
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.comm-card-name {
  font-weight: 800;
  font-size: 1.02rem;
  margin: 0 0 6px;
  line-height: 1.25;
}

.comm-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.icon-pick-btn {
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.icon-pick-btn.active,
.icon-pick-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

/* ==========================================================================
   REDDIT-STYLE COMMUNITY FORUM (Feed, Upvotes, Flairs & Nested Threads)
   ========================================================================== */
.topic-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.13);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.forum-toolbar {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.forum-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.forum-sort-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.forum-sort-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(225, 45, 117, 0.32);
}

.flair-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 2px;
}

.flair-filter-row::-webkit-scrollbar {
  display: none;
}

.flair-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.flair-filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.flair-filter-chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* Color-coded Reddit Flair Badges */
.flair-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--violet-soft);
  color: var(--violet);
}

.flair-pill[data-flair="Pergunta"] {
  background: rgba(59, 130, 246, 0.14);
  color: #3B82F6;
}

.flair-pill[data-flair="Nostalgia"] {
  background: var(--brand-soft);
  color: var(--brand);
}

.flair-pill[data-flair="Dica"] {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
}

.flair-pill[data-flair="Humor"] {
  background: rgba(245, 158, 11, 0.16);
  color: #D97706;
}

.flair-pill[data-flair="Debate"] {
  background: rgba(244, 63, 94, 0.14);
  color: #F43F5E;
}

.flair-pill[data-flair="Aviso"] {
  background: rgba(14, 165, 233, 0.15);
  color: #0284C7;
}

.reddit-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reddit-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.reddit-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.vote-rail {
  background: var(--surface-hover);
  border-right: 1px solid var(--border);
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vote-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition), transform 120ms ease;
}

.vote-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.vote-btn:active {
  transform: scale(0.9);
}

.vote-btn.up-active,
.vote-btn.vote-up:hover {
  color: #F97316;
  background: rgba(249, 115, 22, 0.14);
}

.vote-btn.down-active,
.vote-btn.vote-down:hover {
  color: #6366F1;
  background: rgba(99, 102, 241, 0.14);
}

.vote-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.2;
  user-select: none;
}

.vote-score.up {
  color: #F97316;
}

.vote-score.down {
  color: #6366F1;
}

/* Horizontal Pill Vote Control (Mobile & Nested Comments) */
.vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 4px;
}

.vote-pill.up {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.08);
}

.vote-pill.down {
  border-color: rgba(99, 102, 241, 0.38);
  background: rgba(99, 102, 241, 0.08);
}

.vote-pill .vote-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.vote-pill .vote-score {
  min-width: 20px;
  text-align: center;
  font-size: 0.8rem;
  padding: 0 2px;
}

.vote-pill-mobile {
  display: none;
}

.reddit-card-main {
  padding: 13px 16px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.reddit-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.reddit-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-secondary);
}

.reddit-author-link:hover {
  color: var(--brand);
}

.reddit-title-link {
  display: block;
}

.reddit-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
  transition: color var(--transition);
  word-break: break-word;
}

.reddit-title-link:hover .reddit-title {
  color: var(--brand);
}

.reddit-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.89rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.reddit-body-full {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

.reddit-media-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0F131C;
  max-height: 380px;
  cursor: zoom-in;
}

.reddit-media-box img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.reddit-media-box.detail-media {
  max-height: 540px;
}

.reddit-media-box.detail-media img {
  max-height: 540px;
  object-fit: contain;
  margin: 0 auto;
}

.reddit-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.forum-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.forum-pill-action:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.forum-pill-action.danger:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.forum-pill-action.pin-active {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

/* Thread Detail Page */
.thread-breadcrumb {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-comm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.thread-detail-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  overflow: hidden;
}

.thread-composer-card {
  padding: 14px 16px;
}

.thread-composer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thread-comments-card {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thread-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Nested Threaded Comments Tree */
.thread-tree {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thread-node {
  display: flex;
  flex-direction: column;
}

.thread-node-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.thread-node-author {
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thread-node-author:hover {
  color: var(--brand);
}

.op-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thread-collapse-btn {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  transition: background var(--transition), color var(--transition);
}

.thread-collapse-btn:hover {
  background: var(--bg);
  color: var(--brand);
}

.thread-node-body-wrap {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.thread-rail-btn {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  height: 100%;
}

.thread-rail-line {
  width: 2px;
  height: 100%;
  min-height: 18px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background var(--transition), width 120ms ease;
}

.thread-rail-btn:hover .thread-rail-line {
  background: var(--brand);
  width: 3px;
}

.thread-node-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.thread-comment-text {
  font-size: 0.9rem;
  line-height: 1.54;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-comment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.thread-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.thread-action-link:hover {
  background: var(--bg);
  color: var(--text);
}

.thread-action-link.danger:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.inline-reply-box {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-children {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thread-node.collapsed > .thread-node-body-wrap {
  display: none;
}

.thread-collapsed-pill {
  display: none;
  margin-top: 4px;
  margin-left: 34px;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.thread-collapsed-pill:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.thread-node.collapsed > .thread-collapsed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PROFILE
   ========================================================================== */
.profile-banner {
  height: 168px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  z-index: 1;
  background-size: cover !important;
  background-position: center !important;
}

.profile-head-body {
  padding: 0 22px 20px;
  position: relative;
  z-index: 3;
}

.profile-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: -48px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

.profile-avatar-lg {
  border: 5px solid var(--surface);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
}

.profile-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 56px;
}

.profile-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-chip i {
  color: var(--brand);
  font-size: 0.76rem;
}

/* Scrapbook Card */
.scrap-card {
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.scrap-sticker {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sticker-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sticker-opt {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  transition: transform var(--transition), border-color var(--transition);
}

.sticker-opt:hover, .sticker-opt.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: scale(1.08);
}

/* Testimonial Highlight Card */
.testimonial-card {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
  border-left: 4px solid var(--brand);
  position: relative;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text);
  margin: 10px 0 0;
  font-style: italic;
}

.pending-banner {
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   DIRECT MESSAGES
   ========================================================================== */
.messages-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  height: calc(100vh - 130px);
  min-height: 520px;
  overflow: hidden;
}

.dm-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dm-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  width: 100%;
}

.dm-contact:hover {
  background: var(--surface-hover);
}

.dm-contact.active {
  background: var(--brand-soft);
}

.dm-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dm-chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-bubble {
  max-width: 74%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dm-bubble.mine {
  align-self: flex-end;
  background: var(--brand-gradient);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.dm-bubble.theirs {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.dm-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   MODALS, BOTTOM SHEETS, STORY VIEWER & TOASTS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 150ms ease-out;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-handle {
  display: none;
}

.story-viewer-box {
  width: 100%;
  max-width: 410px;
  height: min(86vh, 720px);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-progress-bars {
  display: flex;
  gap: 5px;
  padding: 14px 16px 8px;
  position: relative;
  z-index: 5;
}

.story-prog-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.story-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 120ms linear;
}

.notif-popover {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  right: 20px;
  width: min(370px, calc(100vw - 24px));
  max-height: 480px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 14px;
}

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.notif-row:hover {
  background: var(--surface-hover);
}

.notif-row.unread {
  background: var(--brand-soft);
}

/* Action Sheet Menu Items */
.create-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.create-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color var(--transition), transform var(--transition);
}

.create-sheet-item:active {
  transform: scale(0.97);
}

.create-sheet-item:hover {
  border-color: var(--brand);
}

.create-sheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  color: #fff;
}

/* Toasts */
#toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideUp 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.toast.error {
  background: var(--danger);
  color: #fff;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.45rem;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   FULLSCREEN IMAGE LIGHTBOX (Desktop & Mobile)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 150ms ease-out;
  color: #fff;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top, 14px));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  position: relative;
  z-index: 4;
}

.lightbox-meta {
  min-width: 0;
}

.lightbox-title {
  font-weight: 700;
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-btn:active {
  transform: scale(0.92);
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: zoom-in;
}

.lightbox-stage.zoomed {
  cursor: zoom-out;
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.lightbox-stage.zoomed .lightbox-img {
  max-width: none;
  max-height: none;
  width: min(1600px, 185vw);
  margin: auto;
}

.lightbox-caption {
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.media-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 14, 24, 0.58);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.85;
}

/* ==========================================================================
   GLOBAL ANNOUNCEMENT BANNER & PAINEL MESTRE (WP-ADMIN STYLE)
   ========================================================================== */
.announcement-bar {
  background: var(--brand-gradient);
  color: #fff;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.admin-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.98rem;
}

.admin-kpi-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.admin-kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-pill.admin {
  background: var(--brand-soft);
  color: var(--brand);
}

.role-pill.mod {
  background: var(--sky-soft);
  color: var(--sky);
}

.role-pill.user {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.role-pill.banned {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

/* ==========================================================================
   SPLIT-VIEW INTERACTIVE MEDIA LIGHTBOX (Image + Live Comments Sidebar)
   ========================================================================== */
.lightbox-split {
  width: min(1140px, 95vw);
  height: min(88vh, 760px);
  margin: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lb-media-col {
  background: #070A10;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.lb-media-col .lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.lb-media-col .lightbox-stage {
  height: 100%;
  padding: 58px 18px 18px;
}

.lb-side-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  min-height: 0;
}

.lb-side-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-side-caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
}

.lb-side-comments {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-hover);
}

.lb-side-actions {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lb-side-form {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--surface);
}

.lb-side-form input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.86rem;
  outline: none;
}

.lb-side-form input:focus {
  border-color: var(--brand);
  background: var(--surface);
}

/* ==========================================================================
   REPOST EMBED CARD & RICH SHARE MODAL (Facebook / X Style)
   ========================================================================== */
.repost-header-bar {
  padding: 10px 18px 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.repost-header-bar i {
  color: var(--emerald);
}

.repost-embed {
  margin: 0 18px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.repost-embed-head {
  padding: 11px 13px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.repost-embed-text {
  padding: 0 13px 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.repost-embed-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  cursor: zoom-in;
}

.share-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.share-channel-btn {
  width: 100%;
  min-height: 86px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.share-channel-btn span:last-child {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-channel-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.share-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.share-dm-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
}

.share-dm-strip::-webkit-scrollbar { display: none; }

.share-dm-chip {
  flex: 0 0 82px;
  width: 82px;
  min-height: 82px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.share-dm-chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ==========================================================================
   INSTITUTIONAL FOOTER (Auth Landing + Right Rail + Mobile Footer)
   ========================================================================== */
.institutional-footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.institutional-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.rail-institutional-footer {
  padding: 4px 6px 12px;
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-institutional-footer .footer-links {
  justify-content: flex-start;
  gap: 5px 11px;
}

.rail-institutional-footer .footer-link {
  font-size: 0.72rem;
}

/* ==========================================================================
   USER SETTINGS VIEW (#/settings)
   ========================================================================== */
.settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
}

.ui-switch {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 180ms ease;
}

.ui-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease;
}

.ui-switch:checked {
  background: var(--brand);
}

.ui-switch:checked::after {
  transform: translateX(20px);
}

/* ==========================================================================
   ELABORATED INSTITUTIONAL PAGES & FEEDBACK PORTAL (#/page/{slug})
   ========================================================================== */
.guest-doc-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 22px auto 34px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-nav-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.doc-nav-strip::-webkit-scrollbar {
  display: none;
}

.doc-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.doc-nav-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.doc-nav-pill.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(225, 45, 117, 0.28);
}

.doc-hero-card {
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.doc-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-gradient);
}

.doc-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.doc-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(225, 45, 117, 0.25);
}

.doc-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.doc-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
}

.doc-hero-sub {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.doc-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.doc-copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.doc-copy-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.doc-toc-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-toc-label {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-toc-chip {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.doc-toc-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.doc-article-card {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-h2 {
  margin: 10px 0 2px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}

.doc-h2:first-child {
  margin-top: 0;
}

.doc-h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--text);
}

.doc-p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.doc-list {
  margin: 2px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.doc-list li i {
  color: var(--brand);
  margin-top: 5px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.doc-callout {
  margin: 4px 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(225, 45, 117, 0.09), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(225, 45, 117, 0.22);
  border-left: 4px solid var(--brand);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text);
}

.doc-callout i {
  color: var(--brand);
  margin-top: 3px;
  flex-shrink: 0;
}

.doc-code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83em;
  color: var(--brand);
}

.doc-cta-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.doc-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Interactive Feedback Form & History */
.doc-feedback-card {
  padding: 22px 24px;
}

.fb-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.fb-cat-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.fb-cat-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.fb-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-star-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--border-strong);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition: transform 120ms ease, color 140ms ease, border-color 140ms ease;
}

.fb-star-btn:hover {
  transform: scale(1.06);
  color: #F59E0B;
}

.fb-star-btn.filled {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.fb-star-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.fb-logged-banner {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.fb-logged-banner i {
  color: #10B981;
}

.fb-history-item {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-history-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.fb-cat-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.fb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 800;
}

.fb-st-new      { background: rgba(59, 130, 246, 0.14); color: #3B82F6; }
.fb-st-review   { background: rgba(245, 158, 11, 0.16); color: #D97706; }
.fb-st-resolved { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.fb-st-archived { background: var(--surface-hover); color: var(--text-muted); }

.fb-admin-reply {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-left: 3px solid #10B981;
  font-size: 0.85rem;
  color: var(--text);
}

.fb-admin-reply-head {
  font-size: 0.74rem;
  font-weight: 800;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}



/* ==========================================================================
   V8 — MENÇÕES, LOCALIZAÇÃO, MÚSICA FUNCIONAL, VÍDEO NO FEED, STORIES ISOLADOS,
        DM APAGAR/ARQUIVAR, CHAT POPUP DESKTOP & SEGUIDORES HÍBRIDOS
   ========================================================================== */

/* Menções (@usuario) & Autocomplete Popover */
.mention-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 0 3px;
  background: var(--brand-soft);
  transition: background var(--transition), color var(--transition);
}

.mention-link:hover {
  background: var(--brand);
  color: #fff;
}

.mention-popover {
  position: fixed;
  z-index: 9999;
  width: 248px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mention-pop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  text-align: left;
  color: var(--text);
  transition: background var(--transition);
}

.mention-pop-item:hover {
  background: var(--bg);
}

/* Badge de Localização clicável */
.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0EA5E9;
  font-weight: 700;
  font-size: 0.72rem;
  transition: background var(--transition), color var(--transition);
}

.loc-tag:hover {
  background: #0EA5E9;
  color: #fff;
}

/* Vídeo Inline no Feed & Barra de Destino (Feed / Pulsos / Ambos) */
.post-video-wrap {
  background: #05070B;
  position: relative;
  overflow: hidden;
}

.post-video-player {
  width: 100%;
  max-height: 540px;
  display: block;
  background: #000;
}

.video-dest-bar {
  padding: 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-dest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-addon-box {
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Player de Música Funcional (YouTube, Spotify, SoundCloud, Lume Synth) */
.music-player-card {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 45, 117, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-viewer-box .music-player-card,
.pulso-stage .music-player-card {
  background: rgba(10, 13, 20, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  color: #fff;
}

.story-viewer-box .music-player-title,
.pulso-stage .music-player-title {
  color: #fff;
}

.music-player-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-provider-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
  flex-shrink: 0;
}

.music-player-meta {
  flex: 1;
  min-width: 0;
}

.music-player-title {
  font-weight: 700;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-player-sub {
  font-size: 0.71rem;
  opacity: 0.78;
}

.music-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.music-play-btn:hover {
  transform: translateY(-1px);
}

.music-play-btn.playing {
  background: #10B981;
}

.music-embed-slot {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* Stories Isolados por Perfil: Badge contador + Drawer "Quem viu" + Grid Arquivados */
.story-ring {
  position: relative;
}

.story-count-pill {
  position: absolute;
  bottom: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--surface);
  font-size: 0.66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 3;
}

.story-viewers-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 62%;
  z-index: 9;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.45);
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.story-viewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

.story-viewer-row:hover {
  background: var(--surface-hover);
}

.archived-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 10px;
}

.archived-story-tile {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.archived-story-tile:hover {
  transform: translateY(-2px);
}

.archived-story-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archived-story-overlay {
  position: absolute;
  inset: 0;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.archived-story-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
}

.archived-story-caption {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mensagens Diretas: Pastas Entrada/Arquivadas + Botão Apagar por Bolha */
.dm-folder-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dm-folder-btn {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition);
}

.dm-folder-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(225, 45, 117, 0.35);
}

.dm-msg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 82%;
}

.dm-msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.dm-msg-row.theirs {
  align-self: flex-start;
}

.dm-msg-row .dm-bubble {
  max-width: 100%;
}

.dm-bubble.deleted {
  opacity: 0.68;
  font-style: italic;
}

.dm-bubble-del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.dm-msg-row:hover .dm-bubble-del,
.dm-bubble-del:focus {
  opacity: 1;
}

.dm-bubble-del:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

/* ==========================================================================
   DESKTOP FLOATING CHAT DOCK & POPUP WINDOWS (Messenger Style)
   ========================================================================== */
.chat-dock {
  position: fixed;
  right: 18px;
  bottom: 0;
  z-index: 480;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.chat-dock-windows,
.chat-dock-launcher-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.chat-dock-launcher-wrap {
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.chat-dock-pill {
  width: 268px;
  height: 46px;
  padding: 0 16px;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.88rem;
}

.chat-dock-pill:hover {
  background: var(--surface-hover);
}

.chat-dock-drawer {
  width: 296px;
  height: 390px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: -1px;
}

.chat-dock-drawer-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-dock-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.chat-dock-tabs button {
  padding: 8px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.chat-dock-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.chat-dock-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-dock-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  color: var(--text);
  transition: background var(--transition);
}

.chat-dock-contact:hover {
  background: var(--bg);
}

.chat-popup {
  width: 318px;
  height: 410px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-popup.minimized {
  height: 48px;
}

.chat-popup-head {
  height: 48px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-popup-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.chat-popup-controls button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.chat-popup-controls button:hover {
  background: var(--bg);
  color: var(--text);
}

.chat-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-pop-msg-row {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 88%;
}

.chat-pop-msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-pop-msg-row.theirs {
  align-self: flex-start;
}

.chat-pop-bubble {
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-pop-bubble.mine {
  background: var(--brand-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-pop-bubble.mine a {
  color: #fff;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.18);
}

.chat-pop-bubble.theirs {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-pop-bubble.deleted {
  opacity: 0.68;
  font-style: italic;
}

.chat-pop-time {
  font-size: 0.62rem;
  opacity: 0.72;
  margin-top: 2px;
}

.chat-pop-del-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.chat-pop-msg-row:hover .chat-pop-del-btn {
  opacity: 1;
}

.chat-pop-del-btn:hover {
  color: var(--danger);
}

.chat-popup-form {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  background: var(--surface);
}

.chat-popup-form .input {
  height: 34px;
  font-size: 0.82rem;
  padding: 0 11px;
}

/* Página Híbrida de Seguidores & Amigos (#/connections) */
.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 12px;
}

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

.conn-person-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.conn-person-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.conn-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
}

.conn-mini-pill.friend {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

/* ==========================================================================
   V9 — EMBEDS NATIVOS (ESTILO INSTAGRAM/TIKTOK SEM POPUP) +
        FEED ENRIQUECIDO COM ALGORITMO INTELIGENTE & CARROSSÉIS DE DESCOBERTA
   ========================================================================== */

/* Tag de recomendação do algoritmo no topo do post */
.algo-reason-bar {
  padding: 7px 18px;
  background: linear-gradient(90deg, rgba(225, 45, 117, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Barra de seleção do Modo do Algoritmo (Inteligente / Em Alta / Recentes) */
.feed-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.algo-mode-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.algo-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.algo-mode-btn:hover {
  color: var(--text);
}

.algo-mode-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Vídeo Nativo no Feed (Auto-play na rolagem + botão de som estilo Instagram/TikTok) */
.post-video-wrap {
  position: relative;
  background: #05070B;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.ig-video-sound-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  transition: transform var(--transition), background var(--transition);
}

.ig-video-sound-btn:hover {
  transform: scale(1.06);
  background: rgba(10, 13, 20, 0.9);
}

.ig-video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 4;
}

.post-video-wrap.is-paused .ig-video-play-indicator,
.repost-embed-media.is-paused .ig-video-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Quadro Nativo de Vídeo do YouTube no Post (16:9 ou 9:16 para Shorts, sem popup!) */
.post-inline-media-slot {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #070A10;
}

.post-native-yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.post-native-yt-frame.is-short {
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.post-native-yt-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Barra de Áudio / Música Nativa Integrada ao Conteúdo (Estilo Instagram / TikTok) */
.post-media-audio-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  pointer-events: auto;
}

.post-media-audio-overlay.with-sound-btn {
  right: 58px;
}

.ig-audio-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text);
}

.ig-audio-bar.overlay-mode {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.ig-audio-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: inherit;
}

.ig-audio-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.ig-audio-bar.is-playing .ig-audio-disc {
  animation: igDiscSpin 4.2s linear infinite;
}

@keyframes igDiscSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ig-audio-marquee {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ig-audio-marquee strong {
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-audio-marquee small {
  font-size: 0.7rem;
  opacity: 0.82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  padding: 0 4px;
  flex-shrink: 0;
}

.ig-eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  transition: height 150ms ease;
}

.ig-audio-bar.is-playing .ig-eq-bars i {
  opacity: 1;
  color: #10B981;
  animation: igEqBounce 0.75s ease-in-out infinite alternate;
}

.ig-audio-bar.is-playing .ig-eq-bars i:nth-child(2) { animation-delay: 0.15s; }
.ig-audio-bar.is-playing .ig-eq-bars i:nth-child(3) { animation-delay: 0.3s; }
.ig-audio-bar.is-playing .ig-eq-bars i:nth-child(4) { animation-delay: 0.45s; }

@keyframes igEqBounce {
  0%   { height: 4px; }
  100% { height: 16px; }
}

.ig-hidden-audio-engine {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.ig-inline-stream-bar {
  width: 100%;
  background: #0B0F17;
  overflow: hidden;
}

.ig-inline-stream-bar.is-overlay {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.ig-inline-stream-bar iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ==========================================================================
   BLOCOS DE DESCOBERTA INTELIGENTE INJETADOS NA ROLAGEM DO FEED
   ========================================================================== */
.feed-discovery-card {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.feed-discovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-discovery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.feed-discovery-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.feed-discovery-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.feed-discovery-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feed-discovery-rail::-webkit-scrollbar {
  display: none;
}

/* 1. Card de Sugestão de Seguidor no Feed */
.disc-follower-card {
  scroll-snap-align: start;
  flex: 0 0 162px;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.disc-follower-name {
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.disc-follower-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disc-follower-handle {
  font-size: 0.73rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.disc-reason-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  margin: 3px 0 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. Card de Sugestão de Pulso (Vídeo 9:16) no Feed */
.disc-pulso-card {
  scroll-snap-align: start;
  flex: 0 0 158px;
  aspect-ratio: 9 / 15;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform var(--transition);
}

.disc-pulso-card:hover {
  transform: translateY(-2px);
}

.disc-pulso-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.disc-pulso-shade,
.disc-story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 38%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.disc-pulso-top,
.disc-pulso-bottom,
.disc-story-top,
.disc-story-bottom {
  position: relative;
  z-index: 3;
}

.disc-pulso-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.disc-pulso-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.disc-pulso-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.disc-pulso-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.disc-pulso-title {
  font-size: 0.82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.disc-pulso-audio {
  font-size: 0.67rem;
  opacity: 0.86;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 3. Card de Sugestão de Story no Meio do Feed */
.disc-story-card {
  scroll-snap-align: start;
  flex: 0 0 138px;
  aspect-ratio: 9 / 14;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--transition);
}

.disc-story-card:hover {
  transform: translateY(-2px);
}

.disc-story-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.disc-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.disc-story-cnt {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.66rem;
  font-weight: 800;
}

.disc-story-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.disc-story-bottom strong {
  font-size: 0.84rem;
}

.disc-story-bottom span {
  font-size: 0.7rem;
  opacity: 0.86;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4. Card de Sugestão de Comunidade no Feed */
.disc-comm-card {
  scroll-snap-align: start;
  flex: 0 0 218px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.disc-comm-banner {
  height: 68px;
  padding: 10px 12px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background-size: cover !important;
  background-position: center !important;
}

.disc-comm-banner .comm-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  transform: translateY(22px);
}

.disc-comm-body {
  padding: 26px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}

.disc-comm-name {
  font-weight: 800;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disc-comm-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* 5. Lista de Tópicos em Alta dos Fóruns no Feed */
.disc-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-topic-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.disc-topic-row:hover {
  border-color: var(--brand);
  transform: translateX(2px);
}

.disc-topic-score {
  min-width: 40px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.74rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.disc-topic-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.disc-topic-title {
  font-weight: 700;
  font-size: 0.89rem;
  margin-top: 2px;
  color: var(--text);
}

.disc-topic-comments {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-scroll-sentinel {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
}

/* ==========================================================================
   V11 — TELA DE MANUTENÇÃO COM ILUSTRAÇÃO BOBINHA & EASTER EGG INTERATIVO
         (SEM LINK PARA /painel)
   ========================================================================== */
.maint-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 10%, rgba(225, 45, 117, 0.14), transparent 60%), var(--bg);
  position: relative;
}

.maint-theme-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.maint-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.maint-speech {
  background: var(--bg);
  border: 1.5px dashed var(--brand);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.38;
  max-width: 420px;
  position: relative;
  transition: transform 180ms ease;
}

.maint-mascot-stage {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding: 4px 10px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.maint-mascot-stage:hover {
  transform: scale(1.04);
}

.maint-mascot-stage.is-bouncing {
  animation: maintMascotBoing 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes maintMascotBoing {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.12, 0.9) rotate(-5deg); }
  65%  { transform: scale(0.95, 1.08) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.maint-mascot-svg {
  width: 220px;
  height: 180px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.maint-pupil {
  transition: transform 70ms linear;
}

.maint-donut {
  animation: maintDonutFloat 2.4s ease-in-out infinite alternate;
}

@keyframes maintDonutFloat {
  from { transform: translate(222px, 84px) rotate(-6deg); }
  to   { transform: translate(222px, 75px) rotate(10deg); }
}

.maint-spark {
  animation: maintSparkBlink 0.7s ease-in-out infinite alternate;
}

.maint-spark.s2 {
  animation-delay: 0.35s;
}

@keyframes maintSparkBlink {
  0%   { opacity: 0.15; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1.25); }
}

.maint-poke-badge {
  display: inline-block;
  margin-top: -4px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.maint-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.48rem;
}

.maint-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 420px;
}

.maint-easter-box {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maint-easter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.maint-score-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.74rem;
}

.maint-game-arena {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
}

.maint-game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.maint-game-stage {
  position: relative;
  height: 145px;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(225, 45, 117, 0.06), transparent 70%), var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maint-target-item {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: maintTargetPop 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.maint-target-item:hover {
  transform: scale(1.15);
}

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

/* ==========================================================================
   V12 — AVISO DE FIM DO FEED ("VOCÊ ESTÁ EM DIA") +
         CHAT DOCK ALINHADO, SUBSTITUIÇÃO LIMPA DA BARRA & OPÇÃO DE OCULTAR
   ========================================================================== */
.feed-end-card {
  margin-top: 16px;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px dashed var(--border-strong);
}

.feed-end-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.feed-end-card strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.feed-end-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  max-width: 390px;
  line-height: 1.45;
}

.feed-end-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Ajuste de alinhamento perfeito do Chat Dock + botão de ocultar/fechar */
.chat-dock-pill {
  width: 286px;
  height: 46px;
  padding: 0 6px 0 14px;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.chat-dock-pill-main {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 0.88rem;
  padding-right: 6px;
}

.chat-dock-pill-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.chat-dock-pill-close:hover {
  background: var(--bg);
  color: var(--danger);
}

.chat-dock-drawer {
  width: 304px;
  height: 410px;
  margin-bottom: 0;
}

.chat-dock-drawer-head {
  height: 48px;
  padding: 0 10px 0 14px;
  cursor: pointer;
}

.chat-dock-restore-btn {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  position: relative;
  transition: transform var(--transition), background var(--transition);
}

.chat-dock-restore-btn:hover {
  transform: scale(1.08);
  background: var(--brand-soft);
}

.chat-dock-restore-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

/* ==========================================================================
   V13 — CUSTOM DROPDOWNS (.lume-select-wrap), DESKTOP CAROUSEL ARROWS
         (.lume-carousel-wrap) & DYNAMIC CONTEXTUAL LEFT RAIL
   ========================================================================== */
.filter-strip {
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.disc-follower-city {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 1. Custom Dropdown Select Menus (.lume-select-wrap) */
.lume-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: middle;
}

.lume-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.lume-select-btn {
  width: 100%;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.lume-select-wrap.is-pill .lume-select-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.lume-select-btn:hover {
  border-color: var(--border-strong, var(--brand));
  background: var(--surface);
}

.lume-select-wrap.is-open .lume-select-btn,
.lume-select-btn:focus-visible {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}

.lume-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.lume-select-caret {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.lume-select-wrap.is-open .lume-select-caret {
  transform: rotate(180deg);
  color: var(--brand);
}

.lume-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: max(100%, 195px);
  max-width: 310px;
  max-height: 256px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong, var(--border));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2), 0 3px 10px rgba(15, 23, 42, 0.08);
  z-index: 1500;
  display: none;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  animation: lumeSelectFade 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lume-select-wrap.is-open .lume-select-menu {
  display: flex;
}

.lume-select-wrap.open-up .lume-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.lume-select-wrap.align-right .lume-select-menu {
  left: auto;
  right: 0;
}

@keyframes lumeSelectFade {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lume-select-option {
  width: 100%;
  padding: 8px 11px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.lume-select-option:hover {
  background: var(--bg);
  color: var(--brand);
}

.lume-select-option.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.lume-select-opt-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.lume-select-opt-check {
  font-size: 0.74rem;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 140ms ease, transform 140ms ease;
  color: var(--brand);
  flex-shrink: 0;
  pointer-events: none;
}

.lume-select-option.active .lume-select-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* 2. Desktop Carousel Wrapper & Side Arrow Buttons (< / >) */
.lume-carousel-wrap {
  position: relative;
  width: 100%;
}

.lume-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong, var(--border));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 12;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.lume-carousel-arrow.prev {
  left: -8px;
}

.lume-carousel-arrow.next {
  right: -8px;
}

.lume-carousel-wrap.is-stories-carousel .lume-carousel-arrow.prev {
  left: -6px;
}

.lume-carousel-wrap.is-stories-carousel .lume-carousel-arrow.next {
  right: -6px;
}

.lume-carousel-wrap.is-compact-carousel .lume-carousel-arrow {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.lume-carousel-wrap.is-compact-carousel .lume-carousel-arrow.prev {
  left: 2px;
}

.lume-carousel-wrap.is-compact-carousel .lume-carousel-arrow.next {
  right: 2px;
}

.lume-carousel-arrow:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.08);
}

.lume-carousel-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}

/* 3. Dynamic Left Rail Context Card (#mini-profile-slot) */
.left-ctx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.left-ctx-comm-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

.left-ctx-comm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-ctx-desc {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.left-ctx-btns {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.left-ctx-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

.left-ctx-footer-link:hover {
  color: var(--brand);
}

/* ==========================================================================
   V14 — EDIÇÃO & FIXAÇÃO DE POSTS, COMENTÁRIOS INTERATIVOS, REAÇÕES EM
         STORIES, DESTAQUES DO PERFIL, STATUS ONLINE & DENÚNCIAS
   ========================================================================== */
.pinned-post-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
}

.post-card.is-pinned-post {
  border-color: rgba(225, 45, 117, 0.35);
}

.post-edited-tag {
  font-size: 0.71rem;
  font-style: italic;
  color: var(--text-muted);
}

.post-head-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.post-head-tools .is-pinned-btn {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Comentários Interativos (Curtir, Responder @usuário, Excluir, Denunciar) */
.comment-bubble-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.comment-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.comment-act-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 140ms ease;
}

.comment-act-btn:hover {
  color: var(--brand);
}

.comment-act-btn.liked {
  color: var(--brand);
}

.comment-act-btn.danger:hover {
  color: var(--danger);
}

/* Barra de Resposta Direta e Reações Rápidas nos Stories */
.story-reply-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.story-reply-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
}

.story-reply-bar input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.story-reply-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.story-reply-send:hover {
  transform: scale(1.06);
}

.story-react-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.94rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.story-react-btn:hover {
  background: var(--brand);
  transform: translateY(-2px) scale(1.08);
}

/* Destaques de Stories no Perfil (Story Highlights) */
.profile-highlights-wrap {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.profile-highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.profile-highlights-strip {
  padding: 4px 2px 2px;
}

.story-ring.highlight-ring {
  background: linear-gradient(135deg, #F59E0B 0%, #E12D75 55%, #7C3AED 100%);
}

/* Status Online em Tempo Real */
.online-dot-inline {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
  vertical-align: middle;
}

.online-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: middle;
}

/* ==========================================================================
   V15 — MENU "MAIS OPÇÕES" NO PERFIL, COMUNIDADES PÚBLICAS/PRIVADAS,
         SALAS DE BATE-PAPO EM TEMPO REAL & DIRETÓRIO DE MEMBROS
   ========================================================================== */
.profile-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-more-wrap {
  position: relative;
  display: inline-flex;
}

.profile-more-trigger {
  width: 36px;
  min-width: 36px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.profile-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong, var(--border));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2), 0 3px 10px rgba(15, 23, 42, 0.08);
  z-index: 1500;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: lumeSelectFade 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-more-wrap.is-open .profile-more-menu {
  display: flex;
}

.profile-more-item {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.profile-more-item:hover {
  background: var(--bg);
  color: var(--brand);
}

.profile-more-item.danger {
  color: var(--danger);
}

.profile-more-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Badge de Visibilidade da Comunidade (Pública / Privada) */
.comm-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.comm-privacy-pill.public {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.comm-privacy-pill.private {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

/* Salas de Bate-Papo das Comunidades (Canais & Chat ao Vivo) */
.comm-rooms-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 490px;
  max-height: 580px;
  overflow: hidden;
  padding: 0;
}

.comm-rooms-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.comm-rooms-sb-head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}

.comm-rooms-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comm-room-channel {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.comm-room-channel:hover {
  background: var(--surface);
  color: var(--text);
}

.comm-room-channel.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(225, 45, 117, 0.25);
  font-weight: 700;
}

.comm-room-ch-icon {
  font-size: 0.82rem;
  opacity: 0.85;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.comm-room-ch-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-room-ch-cnt {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
}

.comm-room-channel.active .comm-room-ch-cnt {
  background: var(--brand);
  color: #fff;
}

.comm-room-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
}

.comm-room-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comm-room-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comm-room-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background 140ms ease;
}

.comm-room-msg:hover {
  background: var(--bg);
}

.comm-room-msg-body {
  flex: 1;
  min-width: 0;
}

.comm-room-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comm-room-msg-text {
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.comm-room-input-bar {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lista de Membros da Comunidade */
.comm-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.comm-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.comm-member-card:hover {
  border-color: var(--brand);
}

.comm-role-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.comm-role-tag.owner {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
}

.comm-role-tag.mod {
  background: rgba(14, 165, 233, 0.14);
  color: #0EA5E9;
  border-color: transparent;
}

/* ==========================================================================
   V16 — LAYOUT 2 COLUNAS, SORTE & ASSUNTOS NO FEED, NAVEGAÇÃO DESKTOP DE PÍLULAS
   ========================================================================== */

/* Navegação elegante sem barra de rolagem horizontal para menus de pílula (.pill-tabs, .flair-filter-row, .doc-nav-strip, .comm-members-strip) */
.lume-carousel-wrap.is-tabs-carousel {
  min-width: 0;
}

.lume-carousel-wrap.is-tabs-carousel > .lume-carousel-track {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.lume-carousel-wrap.is-tabs-carousel > .lume-carousel-track::-webkit-scrollbar {
  display: none;
}

.lume-carousel-wrap.is-tabs-carousel .lume-carousel-arrow {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.lume-carousel-wrap.is-tabs-carousel .lume-carousel-arrow.prev {
  left: 2px;
}

.lume-carousel-wrap.is-tabs-carousel .lume-carousel-arrow.next {
  right: 2px;
}

/* Máscara suave nas bordas com overflow — transparente sobre qualquer cor de fundo (claro/escuro) */
.lume-carousel-wrap.is-tabs-carousel.has-right-overflow:not(.has-left-overflow) > .lume-carousel-track {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 46px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 46px), transparent 100%);
}

.lume-carousel-wrap.is-tabs-carousel.has-left-overflow:not(.has-right-overflow) > .lume-carousel-track {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 46px);
  mask-image: linear-gradient(to right, transparent 0%, #000 46px);
}

.lume-carousel-wrap.is-tabs-carousel.has-left-overflow.has-right-overflow > .lume-carousel-track {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 46px, #000 calc(100% - 46px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 46px, #000 calc(100% - 46px), transparent 100%);
}

.comm-members-strip::-webkit-scrollbar {
  display: none;
}

/* Cartão dinâmico "Sorte do Dia" injetado no Feed */
.feed-discovery-fortune {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(225, 45, 117, 0.09) 0%, rgba(124, 58, 237, 0.09) 100%);
  border: 1px solid rgba(225, 45, 117, 0.22);
  position: relative;
  overflow: hidden;
}

.disc-fortune-emblem {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(225, 45, 117, 0.28);
}

.disc-fortune-body {
  flex: 1;
  min-width: 0;
}

.disc-fortune-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.disc-fortune-share {
  height: 28px;
  padding: 0 11px;
  font-size: 0.74rem;
}

.disc-fortune-quote {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* Cartão dinâmico "Assuntos do Momento" (#Hashtags em Alta) injetado no Feed */
.disc-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 9px;
}

.disc-tag-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  min-width: 0;
}

.disc-tag-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.disc-tag-rank {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.disc-tag-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.disc-tag-info strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-tag-card:hover .disc-tag-info strong {
  color: var(--brand);
}

.disc-tag-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.disc-tag-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.disc-tag-card:hover .disc-tag-arrow {
  transform: translateX(2px);
  color: var(--brand);
}

/* ==========================================================================
   V17 — COMUNIDADES MODULARES, HASHTAGS CONTEXTUAIS, BUSCA & ANEXOS NO DIRECT, JOGOS
   ========================================================================== */

/* 1. Comunidades Modulares (Construtor + Badges de funções) */
.comm-mods-builder {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.comm-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.comm-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all var(--transition);
}

.comm-preset-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.comm-preset-chip.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}

.comm-mod-toggles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.comm-mod-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.comm-mod-toggle input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.comm-mod-toggle i {
  color: var(--brand);
  width: 15px;
  text-align: center;
}

.comm-mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px;
}

.comm-mod-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comm-mod-tags span i {
  color: var(--brand);
  font-size: 0.64rem;
}

/* 2. Hashtags Contextuais */
.tag-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag-scope-pill.community {
  background: rgba(124, 58, 237, 0.14);
  color: #7C3AED;
}

.tag-scope-pill.general {
  background: rgba(14, 165, 233, 0.14);
  color: #0EA5E9;
}

.tag-origin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* 3. Busca nas Mensagens & Cards Clicáveis de Stories/Conteúdos no Direct */
.dm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 11px;
  height: 36px;
  gap: 8px;
  transition: border-color var(--transition);
}

.dm-search-box:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}

.dm-search-box > i {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dm-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
}

.dm-search-clear {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 2px 4px;
}

.dm-search-section-label {
  padding: 8px 14px 4px;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-search-hit {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.dm-search-hit:hover {
  background: var(--brand-soft);
}

.dm-search-hit-snippet {
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.dm-thread-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.dm-thread-search-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.dm-search-mark {
  background: rgba(250, 204, 21, 0.45);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.dm-msg-flash .dm-bubble,
.dm-msg-match-active .dm-bubble {
  box-shadow: 0 0 0 2.5px var(--brand), 0 6px 18px rgba(225, 45, 117, 0.28);
}

/* Cartões interativos dentro das bolhas de Direct e Popup */
.dm-ref-card {
  width: 100%;
  min-width: 215px;
  max-width: 280px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, background 150ms ease;
}

.dm-bubble.theirs .dm-ref-card,
.chat-pop-bubble.theirs .dm-ref-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.dm-ref-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.dm-ref-card.is-compact {
  min-width: 175px;
  max-width: 230px;
  padding: 6px;
  gap: 8px;
}

.dm-ref-story-thumb {
  width: 48px;
  min-height: 68px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.dm-ref-card.is-compact .dm-ref-story-thumb {
  width: 40px;
  min-height: 58px;
}

.dm-ref-story-thumb img,
.dm-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-ref-react-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dm-ref-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
  align-self: center;
}

.dm-ref-card.is-compact .dm-ref-thumb {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.dm-ref-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.dm-ref-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-ref-title {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-ref-sub {
  font-size: 0.72rem;
  opacity: 0.82;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.dm-ref-cta {
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-bubble.theirs .dm-ref-cta,
.chat-pop-bubble.theirs .dm-ref-cta {
  color: var(--brand);
}

/* 4. Sistema de Jogos (Central + Arena + 4 Jogos + Ranking) */
.games-hero-card {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(225, 45, 117, 0.12) 100%);
  border-color: rgba(225, 45, 117, 0.22);
}

.games-hero-left {
  flex: 1;
  min-width: 240px;
}

.games-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.games-hero-title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.2;
}

.games-hero-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.games-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.game-ach-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text);
}

.game-ach-badge i {
  color: var(--ach-color, var(--brand));
}

.games-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
}

.game-kpi-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}

.game-kpi-box strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand);
}

.game-kpi-box span {
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 600;
}

.games-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-tile-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.game-tile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.game-tile-banner {
  height: 112px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
}

.game-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.game-cat-chip {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.game-plays-chip {
  position: absolute;
  bottom: 10px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.game-tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-tile-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.game-tile-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.game-tile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-top: auto;
}

.game-tile-record span,
.game-tile-leader span {
  display: block;
  font-size: 0.69rem;
  color: var(--text-muted);
  font-weight: 700;
}

.game-tile-record strong,
.game-tile-leader strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-tile-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Ranking List */
.game-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-rank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.game-rank-row:hover {
  border-color: var(--brand);
  transform: translateX(2px);
}

.game-rank-row.is-me {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.game-rank-pos {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.game-rank-pos.gold { background: rgba(245, 158, 11, 0.18); color: #D97706; border-color: rgba(245, 158, 11, 0.45); }
.game-rank-pos.silver { background: rgba(148, 163, 184, 0.22); color: #64748B; border-color: rgba(148, 163, 184, 0.5); }
.game-rank-pos.bronze { background: rgba(217, 119, 6, 0.18); color: #B45309; border-color: rgba(217, 119, 6, 0.4); }

.game-rank-pts {
  text-align: right;
  flex-shrink: 0;
}

.game-rank-pts strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.game-rank-pts span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Arena de Jogo */
.game-arena-header {
  padding: 18px 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.game-arena-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.game-arena-best-pill {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: right;
}

.game-arena-best-pill span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

.game-arena-best-pill strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.game-arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.game-hud-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.game-hud-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 6px 12px;
  min-width: 74px;
}

.game-hud-stat span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.game-hud-stat strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

/* Snake */
.snake-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-strong, var(--border));
  background: #0B1120;
}

.snake-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #fff;
}

.game-overlay-card h3 {
  margin: 8px 0 6px;
  font-size: 1.2rem;
}

.game-overlay-card p {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}

.game-dpad {
  margin: 14px auto 0;
  width: 164px;
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(2, 46px);
  gap: 7px;
  justify-content: center;
}

.dpad-btn {
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}

.dpad-btn:hover, .dpad-btn:active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.dpad-btn.up { grid-column: 2; grid-row: 1; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 2; }
.dpad-btn.right { grid-column: 3; grid-row: 2; }

/* Memory Game */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.memory-card {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  position: relative;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.memory-card:hover:not(:disabled) {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.memory-card .memory-card-face.front {
  color: var(--brand);
  opacity: 0.45;
  font-size: 1.15rem;
}

.memory-card .memory-card-face.back {
  display: none;
}

.memory-card.flipped {
  background: var(--surface);
  border-color: var(--brand);
}

.memory-card.flipped .memory-card-face.front { display: none; }
.memory-card.flipped .memory-card-face.back { display: grid; place-items: center; }

.memory-card.matched {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.12);
}

/* 2048 Prisma */
.g2048-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 380px;
  margin: 0 auto;
  touch-action: none;
}

.g2048-tile {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.g2048-tile.t-2 { background: rgba(225, 45, 117, 0.12); color: var(--brand); border-color: transparent; }
.g2048-tile.t-4 { background: rgba(124, 58, 237, 0.16); color: #7C3AED; border-color: transparent; }
.g2048-tile.t-8 { background: #F59E0B; color: #fff; border-color: transparent; }
.g2048-tile.t-16 { background: #F97316; color: #fff; border-color: transparent; }
.g2048-tile.t-32 { background: #EF4444; color: #fff; border-color: transparent; }
.g2048-tile.t-64 { background: #E12D75; color: #fff; border-color: transparent; }
.g2048-tile.t-128 { background: #8B5CF6; color: #fff; border-color: transparent; }
.g2048-tile.t-256 { background: #6366F1; color: #fff; border-color: transparent; }
.g2048-tile.t-512 { background: #0EA5E9; color: #fff; border-color: transparent; }
.g2048-tile.t-1024 { background: #10B981; color: #fff; border-color: transparent; font-size: 1.05rem; }
.g2048-tile.t-2048 { background: linear-gradient(135deg, #F59E0B, #E12D75); color: #fff; border-color: transparent; font-size: 1.05rem; box-shadow: 0 0 18px rgba(245, 158, 11, 0.55); }

/* Quiz da Rede */
.quiz-timer-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 16px;
}

.quiz-timer-fill {
  height: 100%;
  background: var(--brand-gradient);
  transition: width 0.9s linear;
}

.quiz-question-box {
  margin-bottom: 14px;
}

.quiz-question-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.quiz-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}

.quiz-opt-btn.correct {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
}

.quiz-opt-btn.wrong {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.quiz-finish-card {
  text-align: center;
  padding: 28px 16px;
}

.quiz-finish-medal {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #F59E0B, #E12D75);
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.game-win-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   V18 — FEED GLOBAL CONECTADO (CARDS RICOS DE JOGOS, COMUNIDADES, FÓRUNS, SALAS E PULSOS)
   ========================================================================== */

/* Card Rico de Jogo / Recorde no Feed */
.feed-rich-game-card {
  margin-top: 10px;
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.feed-rich-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.2), transparent 52%);
  pointer-events: none;
}

.frg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.frg-cat-pill,
.frg-record-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
  color: #fff;
}

.frg-record-pill {
  background: rgba(250, 204, 21, 0.25);
  border: 1px solid rgba(254, 240, 138, 0.48);
  color: #FEF08A;
}

.frg-main {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.frg-emblem {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

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

.frg-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.frg-sub {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frg-score-box {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 8px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 96px;
}

.frg-score-box span {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FDE047;
}

.frg-score-box strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.frg-score-box small {
  font-size: 0.68rem;
  opacity: 0.82;
}

.frg-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.frg-play-btn {
  background: #fff !important;
  color: #0F172A !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.frg-play-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.frg-challenge-btn {
  background: rgba(15, 23, 42, 0.32) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

/* Card Rico de Comunidade compartilhada no Feed */
.feed-rich-comm-card {
  display: block;
  margin-top: 10px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition);
}

.feed-rich-comm-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.frc-banner {
  height: 54px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.frc-priv-pill,
.frc-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.frc-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.frc-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
}

.frc-desc {
  margin: 2px 0 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frc-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.frc-cta {
  flex-shrink: 0;
}

/* Card Rico de Tópico de Fórum compartilhado no Feed */
.feed-rich-topic-card {
  display: block;
  margin-top: 10px;
  padding: 14px;
  border-radius: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.feed-rich-topic-card:hover {
  border-color: var(--brand);
}

.frt-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--brand);
  margin-bottom: 6px;
}

.frt-body-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.frt-title {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.frt-excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frt-thumb {
  width: 72px;
  height: 72px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.frt-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.frt-open {
  margin-left: auto;
  color: var(--brand);
  font-weight: 800;
}

/* Card Rico de Pulso compartilhado no Feed */
.feed-rich-pulso-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 15px 16px;
  border-radius: 16px;
  color: #fff;
  transition: transform var(--transition), filter var(--transition);
}

.feed-rich-pulso-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.frp-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.frp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frp-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
}

.frp-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.frp-sub {
  font-size: 0.79rem;
  opacity: 0.88;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frp-meta {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* Badges de Atividade Global na Timeline */
.feed-act-verb {
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.feed-act-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.feed-act-badge.game {
  background: rgba(99, 102, 241, 0.14);
  color: #6366F1;
}

.feed-act-badge.pulso {
  background: rgba(225, 45, 117, 0.14);
  color: var(--brand);
}

.feed-topic-title-link h4 {
  margin: 4px 0 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.feed-topic-title-link:hover h4 {
  color: var(--brand);
}

/* Carrosséis de Descoberta: Jogos & Salas Ativas no Feed */
.disc-game-card {
  flex: 0 0 218px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.disc-game-banner {
  height: 78px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
}

.disc-game-cat {
  position: absolute;
  top: 7px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.64rem;
  font-weight: 800;
}

.disc-game-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.disc-game-body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.disc-game-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.disc-game-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.disc-room-card {
  flex: 0 0 246px;
  border-radius: 15px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-room-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.disc-room-comm {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disc-room-channel {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
}

.disc-room-snippet {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.disc-room-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* Tópico compartilhado dentro de uma publicação usando o mesmo estilo oficial dos fóruns */
.feed-embedded-reddit-card {
  margin-top: 10px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: none;
}

.feed-embedded-reddit-card .vote-rail {
  background: rgba(148, 163, 184, 0.08);
}
