:root {
  --page-bg: #F6F7F5;
  --card-bg: #FFFFFF;
  --border: #E7E9E4;
  --teal: #0F6E63;
  --teal-soft: #E4F1EE;
  --amber: #D99A3D;
  --ink: #1B2521;
  --muted: #6B7268;
  --green: #2F8F5B;
  --red: #B5432E;
  --amber-soft: #FBF3E4;
  --amber-soft-hover: #f5e6c8;
  --amber-soft-border: #EFD9AF;
  --red-soft: #FBEAE6;
  --red-soft-border: #F0CFC6;
  --teal-soft-hover: #d5ebe6;
}

:root[data-theme="dark"] {
  --page-bg: #101512;
  --card-bg: #1A211D;
  --border: #2B342F;
  --teal: #2FA897;
  --teal-soft: #16302B;
  --amber: #E3AD5C;
  --ink: #E9EDE9;
  --muted: #8B968E;
  --green: #45B279;
  --red: #E06B52;
  --amber-soft: #362A18;
  --amber-soft-hover: #423420;
  --amber-soft-border: #4A3A22;
  --red-soft: #3A2420;
  --red-soft-border: #5A362C;
  --teal-soft-hover: #1D3D37;
}

:root[data-theme="dark"] .composer-textarea:focus,
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .search-pill:focus {
  background: var(--card-bg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }

/* Topbar */

.topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 15px;
}
.brand-name { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.search-pill {
  background: var(--page-bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 16px; font-size: 13px; color: var(--muted); width: 220px;
}
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-logout { font-size: 12px; color: var(--muted); }
.topbar-logout:hover { color: var(--teal); }
.search-icon-mobile { display: none; flex-shrink: 0; }

.icone { display: block; flex-shrink: 0; }

.notif-wrap { position: relative; }
.notif-bell {
  position: relative; background: none; border: none; color: var(--ink); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.notif-bell:hover { background: var(--page-bg); }
.notif-badge {
  position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 30;
}
.notif-vazio { padding: 20px; text-align: center; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--page-bg); }
.notif-item.notif-nao-lida { background: var(--teal-soft); }
.notif-texto { font-size: 13px; line-height: 1.4; }
.notif-tempo { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand-name { display: none; }
  .topbar-actions { gap: 4px; }
  .topbar .search-form { display: none; }
  .search-icon-mobile { display: flex; }
  .notif-dropdown { width: calc(100vw - 24px); max-width: 320px; }
  .topbar-user { gap: 6px; }
}

/* Avatares */

.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 13px; color: #fff;
}
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-md { width: 46px; height: 46px; font-size: 17px; }
.avatar-teal { background: var(--teal); }
.avatar-amber { background: var(--amber); }
.avatar-green { background: var(--green); }

/* Layout principal */

main { max-width: 600px; margin: 0 auto; padding: 24px 16px 80px; }
main.main-wide { max-width: 900px; }
main.main-feed { max-width: 1100px; }

.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 16px 28px; font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }

.legal-page { max-width: 720px; margin: 0 auto; line-height: 1.6; }
.legal-page h5 { margin-top: 24px; margin-bottom: 8px; font-weight: 700; }
.legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page li { margin-bottom: 4px; }

.landing-precos-hero { padding-bottom: 48px; }
.landing-precos-secao { padding: 8px 24px 64px; }
.landing-precos-porque { border-top: 1px solid var(--border); padding: 56px 24px; }

.planos-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plano-card {
  position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.plano-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.plano-pro { border: 2px solid var(--teal); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.plano-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plano-nome { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plano-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.plano-preco { font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.plano-preco span {
  font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.plano-poupa { font-size: 12.5px; font-weight: 600; color: var(--green); margin: -10px 0 16px; }
.plano-lista { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 11px; }
.plano-lista li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
.plano-sim { color: var(--ink); }
.plano-sim .icone { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plano-nao { color: var(--muted); }
.plano-nao .icone { color: var(--muted); flex-shrink: 0; margin-top: 2px; }

.planos-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.plano-atual-btn { display: block; text-align: center; cursor: default; opacity: .75; }

.plano-toggle { display: flex; background: var(--page-bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.plano-toggle-btn {
  flex: 1; background: none; border: none; padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.plano-toggle-btn.active { background: var(--card-bg); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.plano-toggle-tag { background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 999px; }

@media (max-width: 860px) {
  .planos-grid { grid-template-columns: 1fr; }
  .plano-pro { order: initial; }
}

.form-check label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 400; cursor: pointer; }
.form-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--teal); }

/* Composer */

.composer { margin-bottom: 18px; }
.composer form { display: flex; flex-direction: column; gap: 4px; }
.composer-top { display: flex; align-items: flex-start; gap: 12px; }
.composer-textarea {
  flex: 1; background: var(--page-bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 10px 16px; font-size: 15px; color: var(--ink); margin-top: 2px;
  font-family: inherit; resize: none; min-height: 40px; max-height: 220px; overflow-y: auto;
}
.composer-textarea::placeholder { color: var(--muted); }
.composer-textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 2px var(--teal-soft); }
.composer-bottom {
  display: flex; align-items: center; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border);
}
.composer :disabled { opacity: .5; cursor: not-allowed; }

/* Posts */

.post {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  margin-bottom: 16px;
}
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-head .who .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.post-head .who .meta { font-size: 12px; color: var(--muted); }
.post-author-link { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 1; min-width: 0; }
.post-author-link:hover .name { color: var(--teal); }

.cashtag, .cashtag-badge {
  color: var(--teal); background: var(--teal-soft); font-family: 'IBM Plex Mono', monospace;
  font-weight: 600; padding: 1px 6px; border-radius: 5px; font-size: 13px; text-decoration: none;
}
.cashtag-badge:hover { background: var(--teal-soft-hover); }
.mention { color: var(--teal); font-weight: 700; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.hashtag {
  color: var(--amber); background: var(--amber-soft); font-weight: 600; padding: 1px 6px; border-radius: 5px;
  font-size: 13px; text-decoration: none;
}
.hashtag:hover { background: var(--amber-soft-hover); }
.ticker-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
  background: var(--teal-soft); color: var(--teal);
}
.ticker-pill.up::before { content: '▲'; font-size: 9px; color: var(--green); }
.ticker-pill.down::before { content: '▼'; font-size: 9px; color: var(--red); }

.post-body { font-size: 14px; line-height: 1.55; margin-bottom: 13px; white-space: pre-wrap; }

.cashtag-wrap { position: relative; display: inline-block; }
.cashtag-wrap .cashtag { cursor: pointer; }
.cashtag-tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; display: none; z-index: 10;
  background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.cashtag-tip .price { font-family: 'IBM Plex Mono', monospace; font-weight: 600; margin-right: 6px; color: #fff; }
.cashtag-tip .text-muted-custom { color: #cfd3cf; }
.cashtag-wrap:hover .cashtag-tip, .cashtag-wrap:focus-within .cashtag-tip { display: block; }

.post-img-wrap { margin-bottom: 13px; }
.post-img-wrap img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; cursor: zoom-in; }

.ticker-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.ticker-summary-item {
  display: flex; align-items: center; gap: 6px; background: var(--page-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 10px 5px 6px; text-decoration: none;
}
.ticker-summary-item:hover { border-color: var(--teal); background: var(--teal-soft); }
.ts-symbol { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px; color: var(--ink); }
.ts-logo { width: 18px; height: 18px; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.ts-price { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink); }
.ts-change { font-size: 12px; font-weight: 600; }
.ts-1a { font-size: 11px; font-weight: 500; opacity: .85; }

.post-edit-form { margin-bottom: 13px; }
.post-edit-form textarea {
  width: 100%; background: var(--page-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; resize: vertical; min-height: 60px;
}
.post-edit-form .post-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.post-edit-form .post-edit-actions button {
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer;
}
.post-edit-form .btn-save { background: var(--teal); color: #fff; }
.post-edit-form .btn-cancel { background: var(--page-bg); color: var(--muted); border: 1px solid var(--border) !important; }

.post-head-actions { margin-left: auto; display: flex; gap: 10px; }
.post-head-actions button {
  background: none; border: none; padding: 0; font-size: 12px; color: var(--muted); cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.post-head-actions button:hover { color: var(--teal); }
.post-head-actions form { display: contents; }

.ticker-header-card { margin-bottom: 24px; }
.follow-counts { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; }
.follow-counts a { color: var(--muted); text-decoration: none; }
.follow-counts a:hover { color: var(--teal); }
.follow-counts strong { color: var(--ink); }
.top-tickers-label { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 8px; }
.hashtag-header-card { margin-bottom: 24px; }
.hashtag-header-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 22px; color: var(--amber); }
.ticker-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticker-header-symbol { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 20px; color: var(--ink); margin-right: 10px; }
.ticker-header-name { color: var(--muted); font-size: 13px; }
.ticker-header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ticker-header-price { display: flex; align-items: center; gap: 10px; }
.ticker-header-price .ts-price { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: var(--ink); }
.ticker-header-stats { display: flex; gap: 32px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ticker-header-stats .mono { font-size: 14px; font-weight: 600; }
.ticker-header-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--border); }

.range-tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.range-tab {
  background: none; border: none; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.range-tab:hover { color: var(--teal); }
.range-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.range-tab { flex-shrink: 0; }

@media (max-width: 640px) {
  .range-tab { padding: 8px 10px; font-size: 12.5px; }
}

.range-variacao { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 22px; margin-top: 16px; }

.grafico-wrap { margin-top: 8px; }
.grafico-svg { width: 100%; height: 140px; display: block; }
.grafico-vazio { padding: 40px 0; text-align: center; }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 92vh; border-radius: 4px; }

.partilhar-wrap { position: relative; display: inline-block; }
.partilhar-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; min-width: 150px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); flex-direction: column;
}
.partilhar-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 10px;
  font-size: 13px; color: var(--ink); cursor: pointer; border-radius: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.partilhar-menu button:hover:not(:disabled) { background: var(--page-bg); }
.partilhar-menu button:disabled { opacity: .5; cursor: not-allowed; }

.denunciar-wrap { position: relative; display: inline-block; }
.denuncia-popover {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); flex-direction: column; gap: 6px;
}
.denuncia-popover input[type="text"] {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px;
  font-family: inherit; box-sizing: border-box;
}
.denuncia-popover button {
  align-self: flex-end; background: var(--teal); color: #fff; border: none; border-radius: 6px;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.denuncia-popover button:disabled { opacity: .6; cursor: not-allowed; }
.denuncia-enviada { font-size: 12px; color: var(--muted); }

.repost-embed {
  display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  margin-bottom: 13px; background: var(--page-bg); text-decoration: none; color: inherit;
}
.repost-embed:hover { border-color: var(--teal); }
.repost-embed .post-head { margin-bottom: 8px; }
.repost-embed-body { font-size: 13.5px; color: var(--ink); white-space: pre-wrap; line-height: 1.45; }

.link-preview-card {
  display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-bottom: 13px; text-decoration: none; color: inherit; background: var(--page-bg);
}
.link-preview-card:hover { border-color: var(--teal); }
.link-preview-img { width: 120px; flex-shrink: 0; background-size: cover; background-position: center; }
.link-preview-info { padding: 10px 12px; min-width: 0; flex: 1; }
.link-preview-dominio { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.link-preview-titulo {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 3px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.link-preview-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.composer-attach { display: flex; align-items: center; gap: 8px; }
.composer-attach-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: none; border: none; padding: 0; color: var(--muted); font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer;
}
.composer-attach-btn:hover { color: var(--teal); }
.composer-preview { font-size: 12px; color: var(--muted); }
.composer-bottom .composer-preview { flex: 1; min-width: 0; }

.post-actions {
  display: flex; gap: 22px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.post-actions button, .post-actions .action-item {
  display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  font-size: 13px; color: var(--muted); font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; cursor: pointer;
}
.post-actions button:hover:not(:disabled) { color: var(--teal); }
.post-actions button:disabled { opacity: .5; cursor: not-allowed; }
.post-actions button.liked { color: var(--teal); font-weight: 600; }

.comment-item { display: flex; gap: 8px; font-size: 13px; color: var(--ink); margin-top: 12px; }
.comment-item .name { font-weight: 600; color: var(--ink); text-decoration: none; }
.comment-item .name:hover { color: var(--teal); }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; margin-top: 2px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-text { margin-top: 1px; line-height: 1.45; }
.comment-actions { display: flex; gap: 14px; margin-top: 4px; }
.comment-actions form { display: contents; }
.comment-actions button {
  background: none; border: none; padding: 0; font-size: 12px; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; cursor: pointer;
}
.comment-actions button:hover:not(:disabled) { color: var(--teal); }
.comment-actions button:disabled { opacity: .5; cursor: not-allowed; }
.comment-actions button.liked { color: var(--teal); font-weight: 600; }

.ver-todos-comentarios {
  background: none; border: none; padding: 0; margin-top: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--teal); cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.ver-todos-comentarios:hover { text-decoration: underline; }

.comment-children { margin-left: 20px; padding-left: 12px; border-left: 2px solid var(--border); margin-top: 4px; }
.comment-children-flat { margin-left: 0; padding-left: 12px; border-left: 2px solid var(--border); margin-top: 4px; }

.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input[type="text"] {
  flex: 1; background: var(--page-bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 14px; font-size: 13px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.comment-form input[type="text"]:focus { outline: none; border-color: var(--teal-soft); box-shadow: 0 0 0 2px var(--teal-soft); }
.comment-form button {
  background: var(--teal-soft); color: var(--teal); border: none; font-weight: 600; font-size: 12px;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
}
.comment-form button:hover:not(:disabled) { background: #d7ebe6; }
.comment-form :disabled { opacity: .5; cursor: not-allowed; }

.alert-verify {
  background: var(--teal-soft); border: 1px solid var(--teal); color: var(--ink);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px;
}
.form-link-inline { display: inline; }
.form-link-inline button {
  appearance: none; border: 0; padding: 0; background: none; color: var(--teal);
  font: inherit; text-decoration: underline; cursor: pointer;
}
.form-link-inline button:hover { color: var(--ink); }

.upsell-pago {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 12px; padding: 24px;
}
.upsell-pago-texto { font-size: 13.5px; color: var(--ink); max-width: 380px; }

.selo-verificado {
  display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px;
  background: var(--teal); color: #fff; border-radius: 50%; margin-left: 4px; vertical-align: middle;
  flex-shrink: 0;
}
.selo-verificado .icone { width: 9px; height: 9px; stroke-width: 3; }

/* Página de Perfil (perfil.php) */
.avatar-xl { width: 92px; height: 92px; font-size: 32px; border: 4px solid var(--card-bg); }
.perfil-header-card { padding: 0; overflow: hidden; max-width: 560px; margin: 24px auto 0; }
.perfil-banner { height: 84px; background: linear-gradient(135deg, var(--teal), var(--teal-soft)); }
.perfil-header-body { padding: 0 24px 24px; }
.perfil-header-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -46px; }
.perfil-header-top .profile-avatar-label { flex-shrink: 0; }
.perfil-header-nome { display: flex; align-items: center; gap: 2px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); margin: 12px 0 2px; }
.perfil-header-email { font-size: 13px; color: var(--muted); }
.perfil-header-bio { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-top: 10px; }
.perfil-header-acoes { display: flex; gap: 8px; margin-bottom: 10px; }
.pill-aviso {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red-soft-border); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 500; margin-top: 10px;
}
.perfil-stats-row { display: flex; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; gap: 4px; }
.perfil-stats-row a { flex: 1; text-align: center; text-decoration: none; color: var(--ink); padding: 4px; border-radius: 8px; }
.perfil-stats-row a:hover { background: var(--page-bg); }
.perfil-stats-row strong { display: block; font-size: 17px; font-family: 'IBM Plex Mono', monospace; color: var(--ink); }
.perfil-stats-row span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .02em; }
.perfil-form-card { max-width: 560px; margin: 16px auto 0; }
.perfil-form-card h4 { margin-bottom: 2px; }
.perfil-form-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.perfil-pedidos-card { max-width: 560px; margin: 16px auto 0; }

.perfil-publico-header-card { max-width: 640px; margin: 24px auto 0; }
.perfil-publico-header-card > .d-flex { flex-wrap: wrap; row-gap: 12px; }
.perfil-publico-lock { color: var(--muted); vertical-align: middle; margin-left: 2px; }
.perfil-header-acoes-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .perfil-publico-header-card > .d-flex { flex-direction: column; align-items: stretch !important; }
  .perfil-header-acoes-wrap { width: 100%; }
  .perfil-header-acoes-wrap .btn, .perfil-header-acoes-wrap .btn-icon-outline { flex: 1; justify-content: center; }
}
.btn-icon-outline {
  display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.btn-icon-outline:hover { background: var(--teal-soft); }
.btn-icon-outline .icone { width: 15px; height: 15px; }
.kebab-wrap { position: relative; display: inline-block; }
.kebab-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.kebab-btn:hover { background: var(--page-bg); color: var(--ink); }
.kebab-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 180px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); flex-direction: column;
}
.kebab-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none;
  padding: 9px 10px; font-size: 13px; color: var(--red); cursor: pointer; border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.kebab-menu-item:hover { background: var(--red-soft); }
.kebab-menu-item .icone { width: 15px; height: 15px; }
.kebab-menu .denuncia-popover { position: static; box-shadow: none; border: none; padding: 8px 0 0; min-width: 0; }

/* Página de Configurações (configuracoes.php) */
.config-pagina-titulo { max-width: 560px; margin: 24px auto 0; }
.config-secao-card { max-width: 560px; margin: 16px auto 0; }
.config-secao-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.config-plano-teaser { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.config-plano-teaser-info .config-secao-sub { margin-bottom: 0; }

/* Página de Watchlist (watchlist.php) */
.watchlist-lista { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.watchlist-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border); transition: background .12s ease;
}
.watchlist-item:last-child { border-bottom: none; }
.watchlist-item:hover { background: var(--page-bg); }
.watchlist-item-logo {
  width: 38px; height: 38px; border-radius: 8px; object-fit: contain; background: #fff; flex-shrink: 0;
  border: 1px solid var(--border);
}
.watchlist-item-logo-fallback {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px;
}
.watchlist-item-ticker { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; color: var(--ink); }
.watchlist-item-info { min-width: 0; flex-shrink: 0; width: 110px; }
.watchlist-item-preco { flex: 1; min-width: 0; }
.watchlist-item-preco-valor { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--ink); }
.watchlist-item-preco-vazio { font-size: 12.5px; color: var(--muted); }
.watchlist-item-posts {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted);
  background: var(--page-bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px; flex-shrink: 0;
}
.watchlist-item-posts .icone { width: 13px; height: 13px; }
.watchlist-item-remove {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.watchlist-item-remove:hover { background: var(--red-soft); color: var(--red); }
.watchlist-item-remove .icone { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .watchlist-item { flex-wrap: wrap; }
  .watchlist-item-info { width: auto; }
  .watchlist-item-posts { order: 3; margin-left: 52px; }
}

/* Admin — Campanhas de email */
.admin-template-picker { max-width: 320px; }
.admin-campanhas-lista { display: flex; flex-direction: column; gap: 12px; }
.admin-campanha-item {
  display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  text-decoration: none; color: inherit; transition: border-color .12s ease;
}
.admin-campanha-item:hover { border-color: var(--teal); }
.admin-campanha-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.admin-campanha-assunto { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.admin-campanha-estado {
  flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px;
}
.admin-campanha-estado-rascunho { background: var(--page-bg); color: var(--muted); border: 1px solid var(--border); }
.admin-campanha-estado-a_enviar { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-soft-border); }
.admin-campanha-estado-concluida { background: var(--teal-soft); color: var(--teal); border: 1px solid var(--teal); }
.admin-progress-bar { background: var(--page-bg); border-radius: 999px; height: 8px; overflow: hidden; }
.admin-progress-fill { background: var(--teal); height: 100%; border-radius: 999px; transition: width .3s ease; }

/* Página /plano */
.plano-pagina-head { max-width: 720px; margin: 24px auto 0; text-align: center; }
.plano-pagina-alert { max-width: 720px; margin: 14px auto 0; }
.plano-pagina-grid { margin-top: 20px; }
.plano-pagina-nota { max-width: 720px; margin: 18px auto 0; }

/* Cards genéricos (auth, perfil) */

.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
}
.card h1, .card h2, .card h3, .card h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; color: var(--ink);
}

.form-label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: block; }
.form-control {
  width: 100%; background: var(--page-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 14px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.form-control:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 2px var(--teal-soft); }

.btn {
  display: inline-block; font-weight: 600; font-size: 13px; padding: 10px 20px; border-radius: 8px;
  border: none; cursor: pointer; text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.btn-brand { background: var(--teal); color: #fff; }
.btn-brand:hover:not(:disabled) { background: #0c5a51; }
.btn-outline-brand { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-outline-brand:hover { background: var(--teal-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert-danger { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-soft-border); }
.alert-success { background: var(--teal-soft); color: var(--teal); border: 1px solid var(--teal); }
.alert-warning { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-soft-border); }

.text-muted-custom { color: var(--muted); }
.text-center { text-align: center; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.gain { color: var(--green); }
.loss { color: var(--red); }

/* Utilitários */

.auth-wrap { max-width: 400px; margin: 48px auto 0; }
.onboarding-card { max-width: 640px; margin: 32px auto 0; }
.onboarding-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.onboarding-grid .feed-sugestao-item { flex: 1 1 140px; }
.onboarding-perfil { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.onboarding-perfil-bio { flex: 1; min-width: 0; }

@media (max-width: 560px) {
  .onboarding-perfil { flex-direction: column; align-items: center; text-align: center; }
  .onboarding-perfil-bio { width: 100%; }
}
.stack > * + * { margin-top: 16px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-100 { width: 100%; }
.text-end { text-align: right; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.small { font-size: 13px; }

/* Avatares com foto */
img.avatar-sm { object-fit: cover; }

/* Formulário de pesquisa no topbar */
.search-form { display: contents; }
.search-pill:focus { outline: none; border-color: var(--teal); background: #fff; }

/* Ligação de volta ao feed (página de post) */
.voltar-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 13px; text-decoration: none; }
.voltar-link:hover { color: var(--teal); }

/* Destaque breve ao chegar por um link de notificação/repost */
@keyframes destaque-pulso {
  0% { background: var(--teal-soft); }
  100% { background: transparent; }
}
.post.destacado, .comment-item.destacado, .chat-bubble-row.destacado .chat-bubble { animation: destaque-pulso 2s ease-out; border-radius: 12px; }

/* Estatísticas no embed de repost */
.repost-embed-stats { margin-top: 8px; }

/* Modal (repost) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none;
  align-items: center; justify-content: center; z-index: 110; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--card-bg); border-radius: 14px; padding: 20px; width: 100%; max-width: 480px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h4 { margin: 0; }
.modal-close { background: none; border: none; font-size: 16px; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.repost-modal-preview {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; background: var(--page-bg);
}
.repost-modal-preview-autor { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.repost-modal-preview-texto { font-size: 13px; color: var(--muted); white-space: pre-wrap; }
#repost-modal textarea {
  width: 100%; background: var(--page-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; resize: vertical;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal-actions button {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
}
.modal-actions .btn-save { background: var(--teal); color: #fff; }
.modal-actions .btn-cancel { background: var(--page-bg); color: var(--muted); border: 1px solid var(--border) !important; }

/* Foto de perfil (upload) */
.profile-avatar-label { position: relative; display: inline-block; cursor: pointer; }
.profile-avatar-overlay {
  position: absolute; bottom: -2px; right: -2px; background: var(--teal); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px;
  border: 2px solid var(--card-bg);
}

/* Página de pesquisa */
.search-hero { padding: 48px 24px; }
.search-hero-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--teal); }
.search-hero-icon .icone { width: 36px; height: 36px; stroke-width: 1.4; }
.search-hero h4 { margin-bottom: 8px; }
.search-hero-form { display: flex; gap: 8px; max-width: 420px; margin: 16px auto 0; }
.search-hero-form input { flex: 1; }
.search-hero code, .search-header code { background: var(--page-bg); padding: 1px 5px; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; }

.search-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.search-header h4 { margin-bottom: 4px; }
.search-header-form { display: flex; gap: 8px; }
.search-header-form input { width: 220px; }

.search-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.search-filtros a {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--ink); font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.search-filtros a:hover { border-color: var(--teal); color: var(--teal); }
.search-filtros a span {
  background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 1px 7px;
}

.search-section { margin-bottom: 20px; }
.search-section-title { display: flex; align-items: center; gap: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.search-section-title .icone { color: var(--teal); }
.search-person-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; text-decoration: none; color: var(--ink);
  border-radius: 10px;
}
.search-person-item:hover { background: var(--page-bg); }
.search-person-item:hover .name { color: var(--teal); }
.search-person-item .name { font-weight: 600; font-size: 14px; }
.search-ticker-list { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .search-header-form input { width: 140px; }
}
.comunidade-link-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.candidato-item { cursor: pointer; }
.candidato-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--teal); }
.candidatos-lista { max-height: 320px; overflow-y: auto; }
.text-danger { color: var(--red); }

/* Chat */
.chat-inbox-card { padding: 0; overflow: hidden; }
.chat-inbox-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border); transition: background .12s ease;
}
.chat-inbox-item:last-child { border-bottom: none; }
.chat-inbox-item:hover { background: var(--page-bg); }
.chat-inbox-item.nao-lida { background: var(--teal-soft); }
.chat-inbox-item.nao-lida:hover { background: var(--teal-soft); filter: brightness(0.98); }
.chat-inbox-item.nao-lida .chat-inbox-name { font-weight: 700; }
.chat-inbox-item.nao-lida .chat-inbox-time { color: var(--teal); font-weight: 600; }
.chat-inbox-item.nao-lida .chat-inbox-preview { color: var(--ink); font-weight: 500; }
.chat-inbox-info { min-width: 0; flex: 1; }
.chat-inbox-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-inbox-name { font-weight: 600; font-size: 15px; }
.chat-inbox-time { font-size: 12px; flex-shrink: 0; }
.chat-inbox-preview {
  font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}
.chat-unread-dot {
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.chat-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.chat-tabs a {
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.chat-tabs a:hover { color: var(--teal); }
.chat-tabs a.active { color: var(--teal); border-bottom-color: var(--teal); }

.chat-empty-state { padding: 48px 24px; }
.chat-empty-icon { font-size: 34px; margin-bottom: 10px; }
.chat-empty-state p { margin-bottom: 16px; }

.chat-thread-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100vh - 230px); min-height: 420px; }
.chat-thread-header { padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-thread-header .name { font-weight: 700; font-size: 14px; }

.chat-messages {
  padding: 18px; flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.chat-messages::before { content: ""; margin-top: auto; }
.chat-bubble-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 75%; margin-bottom: 8px; }
.chat-bubble-row.minha { align-self: flex-end; align-items: flex-end; }
.chat-bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.chat-bubble-row.minha .chat-bubble-wrap { align-items: flex-end; }
.chat-bubble-view { display: flex; flex-direction: column; align-items: flex-start; }
.chat-bubble-row.minha .chat-bubble-view { align-items: flex-end; }
.chat-bubble {
  background: var(--page-bg); color: var(--ink); padding: 9px 13px; border-radius: 14px; font-size: 14px;
  line-height: 1.4; white-space: pre-wrap; word-break: break-word;
}
.chat-bubble-row.minha .chat-bubble { background: var(--teal); color: #fff; }
.chat-bubble-row.minha .mention { color: #fff; text-decoration: underline; }
.chat-bubble .post-img-wrap { margin-top: 4px; }
.chat-bubble .post-img-wrap img { max-width: 240px; max-height: 240px; }

.chat-bubble-autor { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; padding: 0 4px; }
.chat-bubble-autor-nome { font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-bubble-eliminada { font-style: italic; color: var(--muted); background: transparent; border: 1px dashed var(--border); }
.chat-bubble-row.minha .chat-bubble-eliminada { color: var(--muted); }

.chat-bubble-footer { display: flex; align-items: center; gap: 8px; margin-top: 3px; padding: 0 4px; }
.chat-bubble-row.minha .chat-bubble-footer { flex-direction: row-reverse; }
.chat-bubble-time { font-size: 10px; }
.chat-msg-action, .chat-bubble-footer .like-form button {
  background: none; border: none; padding: 0; font-size: 11px; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; cursor: pointer;
}
.chat-msg-action:hover, .chat-bubble-footer .like-form button:hover { color: var(--teal); }
.chat-bubble-footer .like-form button.liked { color: var(--teal); font-weight: 600; }

.chat-edit-form { display: flex; gap: 6px; margin-top: 6px; min-width: 240px; }
.chat-edit-form input[type="text"] {
  flex: 1; background: var(--page-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px 12px; font-size: 13px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.chat-edit-form button {
  background: var(--teal); color: #fff; border: none; font-weight: 600; font-size: 12px;
  padding: 0 14px; border-radius: 14px; cursor: pointer;
}

.chat-thread-card .composer-preview { padding: 6px 18px 0; }
.chat-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-form-row { display: flex; gap: 8px; }
.chat-form-anexo { display: flex; align-items: center; gap: 8px; }
.chat-form input[type="text"] {
  flex: 1; background: var(--page-bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 10px 16px; font-size: 14px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.chat-form input[type="text"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.chat-form button {
  background: var(--teal); color: #fff; border: none; font-weight: 600; font-size: 13px;
  padding: 0 20px; border-radius: 20px; cursor: pointer;
}
.chat-form button:disabled, .chat-form input:disabled { opacity: .5; cursor: not-allowed; }

.grupo-texto-wrap { position: relative; flex: 1; }
.grupo-texto-wrap input[type="text"] { width: 100%; }
.mencao-dropdown {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 180px; overflow-y: auto;
}
.mencao-item { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.mencao-item:hover { background: var(--page-bg); color: var(--teal); }

.avatar-img-grupo { object-fit: cover; }

.grupo-layout { display: flex; gap: 16px; align-items: flex-start; }
.grupo-chat-col { flex: 1; min-width: 0; }
.grupo-sidebar { width: 260px; flex-shrink: 0; padding: 20px; text-align: center; }
.comunidade-info-card { padding: 20px; text-align: center; }
.comunidade-info-card .grupo-sidebar-acoes .btn { width: 100%; }
.grupo-sidebar-avatar { display: flex; justify-content: center; margin-bottom: 10px; }
.grupo-sidebar h4 { margin: 0 0 6px; }
.grupo-sidebar-ticker { display: inline-block; margin-bottom: 8px; }
.grupo-sidebar-desc { margin-bottom: 14px; }
.grupo-sidebar-membros-label { text-align: left; margin-bottom: 6px; }
.grupo-membros-lista {
  display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto;
  margin-bottom: 14px; text-align: left;
}
.grupo-membro-item {
  display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px;
  font-size: 13px; color: var(--ink); text-decoration: none;
}
.grupo-membro-item:hover { background: var(--page-bg); }
.grupo-sidebar-acoes {
  border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px;
}
.grupo-sidebar-acoes .action-item {
  background: none; border: none; font-size: 13px; color: var(--muted); cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.grupo-sidebar-acoes .action-item:hover { color: var(--teal); }
@media (max-width: 760px) {
  .grupo-layout { flex-direction: column; }
  .grupo-sidebar { width: 100%; }
}

.chat-historico-lista { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.chat-historico-item { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--page-bg); }
.chat-historico-texto { font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.chat-historico-quando { margin-top: 4px; }

/* Feed com barras laterais */
.btn-sm { padding: 6px 12px; font-size: 12px; }

.feed-layout { display: flex; gap: 20px; align-items: flex-start; }
.feed-main { flex: 1; min-width: 0; }
.feed-sidebar-esquerda, .feed-sidebar-direita {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 84px;
}

.feed-perfil-card { padding: 0; overflow: hidden; }
.feed-perfil-header {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 22px 16px 18px; text-decoration: none;
}
.feed-perfil-header:hover .feed-perfil-nome { color: var(--teal); }
.feed-perfil-nome { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); }
.feed-perfil-bio { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.feed-perfil-stats { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feed-perfil-stats a {
  flex: 1; text-align: center; padding: 12px 4px; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--border);
}
.feed-perfil-stats a:last-child { border-right: none; }
.feed-perfil-stats a:hover { background: var(--page-bg); }
.feed-perfil-stats strong { display: block; font-size: 16px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; }
.feed-perfil-stats span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .02em; }
.feed-perfil-nav { padding: 8px; }

.feed-atalho {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
}
.feed-atalho:hover { background: var(--page-bg); }
.feed-atalho.active { background: var(--teal-soft); color: var(--teal); font-weight: 600; }

.feed-widget { padding: 16px; }
.feed-contacto-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pedido-seguir-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pedido-seguir-item:last-child { border-bottom: none; }
.feed-contacto-item .feed-widget-item { flex: 1; min-width: 0; }
.feed-contacto-item .feed-widget-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-contacto-msg {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 13px; color: var(--muted);
}
.feed-contacto-msg:hover { background: var(--teal-soft); color: var(--teal); }
.feed-widget-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.feed-widget-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 13px;
}
.feed-widget-item:hover { color: var(--teal); }
.feed-widget-ver-todos {
  display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--teal); text-decoration: none;
}
.feed-widget-ver-todos:hover { text-decoration: underline; }

.feed-promo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.feed-promo-item:last-of-type { border-bottom: none; }
.feed-promo-item .comunidade-link-info .name { font-size: 13px; font-weight: 600; }

.feed-sugestao-pessoas { margin-bottom: 18px; }
.feed-sugestao-grid { display: flex; gap: 12px; }
.feed-sugestao-item {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 14px 10px; border-radius: 10px; background: var(--page-bg);
}
.feed-sugestao-info { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.feed-sugestao-info .name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.feed-sugestao-info:hover .name { color: var(--teal); }
.feed-sugestao-item form { width: 100%; }
.feed-sugestao-item .btn { width: 100%; }

@media (max-width: 640px) {
  .feed-sugestao-grid { flex-direction: column; }
}

@media (max-width: 980px) {
  .feed-sidebar-esquerda, .feed-sidebar-direita { display: none; }
}

/* Página pública (landing) */

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--card-bg);
}
.landing-nav-actions { display: flex; align-items: center; gap: 18px; }
.landing-nav-entrar { font-size: 14px; font-weight: 600; color: var(--muted); }
.landing-nav-entrar:hover { color: var(--teal); }

.landing-nav .btn, .landing-hero-cta .btn, .landing-cta .btn { border-radius: 999px; }

.landing-eyebrow-pill {
  display: inline-block; background: var(--teal-soft); color: var(--teal); font-size: 12.5px; font-weight: 700;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.landing-eyebrow-label {
  display: block; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--teal); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 10px;
}

.landing-hero { padding: 64px 24px; background: linear-gradient(160deg, var(--teal-soft) 0%, var(--page-bg) 55%); }
.landing-hero-inner {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.landing-hero-texto h1 { font-size: 38px; line-height: 1.2; margin: 0 0 18px; color: var(--ink); }
.landing-hero-sub { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 480px; }
.landing-hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.landing-hero-cta .btn { padding: 13px 26px; font-size: 14.5px; }
.landing-hero-login { font-size: 14px; font-weight: 600; color: var(--muted); }
.landing-hero-login:hover { color: var(--teal); }
.landing-hero-demo { transform: rotate(-1.5deg); }
.landing-hero-demo .post { box-shadow: 0 16px 40px rgba(0,0,0,.1); margin-bottom: 0; }

.landing-stats {
  position: relative; overflow: hidden; padding: 48px 24px;
  background: linear-gradient(135deg, var(--teal) 0%, #0c5a51 100%);
}
.landing-stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,.10), transparent 45%);
}
.landing-stats-inner {
  position: relative; max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.landing-stat-item { text-align: center; }
.landing-stat-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; margin-bottom: 12px;
}
.landing-stat-num { font-family: 'IBM Plex Mono', monospace; font-size: 40px; font-weight: 700; color: #fff; line-height: 1; }
.landing-stat-label { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; }

.landing-explica { border-top: 1px solid var(--border); padding: 56px 24px; }
.landing-explica-inner {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.landing-explica-texto h2 { font-size: 24px; margin: 0 0 14px; color: var(--ink); }
.landing-explica-texto p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 420px; }
.landing-explica-demo {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.landing-explica-demo .comment-item:first-child { margin-top: 0; }

.landing-section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.landing-section-head h1, .landing-section-head h2 { font-size: 28px; margin: 0 0 12px; color: var(--ink); }
.landing-section-head p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.landing-features-section { border-top: 1px solid var(--border); padding: 64px 24px; }
.landing-feature-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.landing-feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.landing-feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); border-color: var(--teal); }
.landing-feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: var(--teal-soft); color: var(--teal); border-radius: 10px; margin-bottom: 14px;
}
.landing-feature-card h3 { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.landing-feature-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

.landing-feature-card-em-breve { position: relative; border-style: dashed; }
.landing-em-breve-tag {
  position: absolute; top: 22px; right: 22px; background: var(--amber-soft); color: var(--amber);
  border: 1px solid var(--amber-soft-border); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 560px) {
  .landing-em-breve-tag { position: static; display: inline-block; margin-bottom: 10px; }
}

.landing-como { background: var(--card-bg); border-top: 1px solid var(--border); padding: 64px 24px; }
.landing-passos { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.landing-passo {
  background: var(--page-bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.landing-passo:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.06); }
.landing-passo-num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: var(--teal); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.landing-passo h3 { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.landing-passo p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

.landing-cta {
  max-width: 1080px; margin: 48px auto; border-radius: 20px; padding: 56px 24px; text-align: center;
  background: linear-gradient(135deg, var(--teal) 0%, #0c5a51 100%);
}
.landing-cta-inner { max-width: 640px; margin: 0 auto; }
.landing-cta h2 { font-size: 26px; margin: 0 0 10px; color: #fff; }
.landing-cta p { font-size: 15px; color: rgba(255,255,255,.78); margin: 0 0 24px; }
.landing-cta-botoes { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.landing-cta .btn { padding: 13px 28px; font-size: 14.5px; }
.landing-cta .btn-brand { background: #fff; color: var(--teal); }
.landing-cta .btn-brand:hover:not(:disabled) { background: rgba(255,255,255,.88); }
.landing-cta-outline { border-color: #fff; color: #fff; }
.landing-cta-outline:hover { background: rgba(255,255,255,.12); }

@media (max-width: 860px) {
  .landing-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .landing-hero-demo { transform: none; order: -1; }
  .landing-explica-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .landing-nav { padding: 12px 16px; }
  .landing-hero { padding: 40px 16px; }
  .landing-hero-texto h1 { font-size: 28px; }
  .landing-explica, .landing-features-section, .landing-como, .landing-precos-secao, .landing-precos-porque { padding-left: 16px; padding-right: 16px; }
  .landing-section-head h1, .landing-section-head h2 { font-size: 22px; }
  .landing-cta { margin: 32px 16px; padding: 40px 20px; }
  .landing-stats { padding: 36px 16px; }
  .landing-stats-inner { gap: 4px; }
  .landing-stat-num { font-size: 24px; }
  .landing-stat-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .landing-stat-label { font-size: 11px; }
}
