/* =========================================================
   RESET
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- FUNDOS (tema escuro) ---- */
  --bg:            #0a0e1a;
  --bg-elev:       #12172a;
  --bg-elev-2:     #1a2038;
  --bg-subtle:     rgba(255, 255, 255, 0.04);

  /* ---- MARCA: cores do tucano ---- */
  --primary:       #1E50E6;   /* Azul Elétrico — cor principal */
  --primary-deep:  #183CC4;   /* Azul mais escuro pro gradient */
  --primary-bright:#3B6BFF;   /* Azul mais vivo pro hover */
  --primary-soft:  rgba(30, 80, 230, 0.14);

  --green:         #00B050;   /* Verde Vivo */
  --green-soft:    rgba(0, 176, 80, 0.14);

  --water:         #00A88F;   /* Verde Água */
  --lime:          #8BC34A;   /* Verde Lima */

  --orange:        #FF6B00;   /* Laranja Vibrante */
  --orange-soft:   rgba(255, 107, 0, 0.14);

  --yellow:        #FFB800;   /* Amarelo */
  --yellow-soft:   rgba(255, 184, 0, 0.14);

  /* ---- TEXTO ---- */
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;

  /* ---- BORDAS E ESTADOS ---- */
  --border:        #2a3145;
  --border-soft:   rgba(255, 255, 255, 0.06);
  --danger:        #ef4444;
  --danger-soft:   rgba(239, 68, 68, 0.12);

  /* ---- COMPONENTES ---- */
  --radius:        16px;
  --radius-sm:     12px;
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md:     0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 24px 60px rgba(0, 0, 0, 0.55);

  /* ---- GRADIENTE DA MARCA (tucano) ---- */
  --grad-brand:    linear-gradient(135deg, #1E50E6 0%, #00B050 40%, #FF6B00 75%, #FFB800 100%);
  --grad-primary:  linear-gradient(135deg, #1E50E6 0%, #183CC4 100%);
  --grad-primary-hover: linear-gradient(135deg, #3B6BFF 0%, #1E50E6 100%);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-anchor: none;
}

/* =========================================================
   FUNDO ANIMADO (escuro com blobs do tucano)
   ========================================================= */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1220 45%, #0f1528 100%);
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: blobFloat 22s ease-in-out infinite;
}
.bg-blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #1E50E6 0%, transparent 70%);
  top: -180px; left: -180px;
}
.bg-blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #FF6B00 0%, transparent 70%);
  bottom: -160px; right: -140px;
  animation-delay: -7s;
}
.bg-blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #00B050 0%, transparent 70%);
  top: 40%; right: 25%;
  animation-delay: -13s;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* =========================================================
   BRAND
   ========================================================= */
.brand {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text);
}
.brand span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}
.brand-hero {
  font-size: clamp(3rem, 6vw, 4.5rem);
  text-align: left;
  margin-bottom: 1.5rem;
  animation: brandIn .8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.brand.small { font-size: 1.7rem; text-align: left; margin-bottom: 0; }
@keyframes brandIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   TELAS
   ========================================================= */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; align-items: center; justify-content: center; }
#screen-home.active { display: block; align-items: unset; }

/* =========================================================
   FIX: esconder topbar pública quando logado
   ========================================================= */
body.is-logged-in .auth-topbar { display: none; }
body.is-logged-in .screen-auth { padding-top: 0; }

/* =========================================================
   TOPBAR PÚBLICA
   ========================================================= */
.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.auth-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-topbar-brand {
  font-size: 1.5rem;
  text-decoration: none;
  transition: opacity .15s;
}
.auth-topbar-brand:hover { opacity: .85; }
.auth-topbar-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.auth-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
  transition: color .15s;
}
.auth-nav-link:hover { color: var(--primary-bright); }
.auth-nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.auth-nav-link:hover::after { transform: scaleX(1); }

.screen-auth { padding-top: 72px; }
.screen-auth.active { align-items: stretch; }

/* =========================================================
   AUTH LAYOUT
   ========================================================= */
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 72px);
  width: 100%;
}
.auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.wave-path { transform-origin: center bottom; }
.wave-1 { animation: waveMove1 18s ease-in-out infinite; }
.wave-2 { animation: waveMove2 22s ease-in-out infinite; animation-delay: -3s; }
.wave-3 { animation: waveMove3 26s ease-in-out infinite; animation-delay: -6s; }
@keyframes waveMove1 {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(-30px) scaleY(1.04); }
}
@keyframes waveMove2 {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(40px) scaleY(0.96); }
}
@keyframes waveMove3 {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(-20px) scaleY(1.05); }
}

.hero-content {
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slogan {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.slogan-line {
  display: block; opacity: 0; transform: translateY(10px);
  animation: sloganIn .7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slogan-line-1 { animation-delay: .3s; }
.slogan-line-2 {
  animation-delay: .55s;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
@keyframes sloganIn { to { opacity: 1; transform: translateY(0); } }
.hero-footer { color: var(--text-muted); font-size: .9rem; letter-spacing: .3px; }

.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background: rgba(18, 23, 42, 0.5);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-left: 1px solid var(--border-soft);
}
.auth-card {
  width: 100%; max-width: 420px;
  animation: cardIn .9s cubic-bezier(0.16, 1, 0.3, 1) .15s both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 2.1rem; letter-spacing: -1px;
  color: var(--text); margin-bottom: .35rem;
}
.auth-subtitle { color: var(--text-muted); font-size: .95rem; margin-bottom: 2rem; }

/* =========================================================
   FORM
   ========================================================= */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-form label { display: flex; flex-direction: column; gap: .45rem; }
.field-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .2px;
}
.auth-form input {
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  box-shadow: var(--shadow-sm);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-sm);
  transform: translateY(-1px);
}
.auth-form input::placeholder { color: var(--text-dim); }

.auth-form textarea {
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
}
.auth-form textarea:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-sm);
}

/* =========================================================
   BOTÕES
   ========================================================= */
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(30, 80, 230, 0.32);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-primary-hover);
  opacity: 0; transition: opacity .2s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 80, 230, 0.48);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: .55rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s, transform .12s;
}
.btn-ghost:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
  background: var(--primary-soft);
  transform: translateY(-1px);
}
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .7rem 1.35rem;
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: filter .15s, transform .12s;
}
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-danger:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* =========================================================
   MENSAGENS
   ========================================================= */
.error-msg {
  color: var(--danger);
  font-size: .85rem;
  min-height: 1.2em;
  text-align: center;
}
.switch-auth {
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
  margin-top: 1.75rem;
}
.switch-auth a {
  color: var(--primary-bright);
  text-decoration: none;
  font-weight: 600;
  margin-left: .25rem;
  position: relative;
}
.switch-auth a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.switch-auth a:hover::after { transform: scaleX(1); }

/* =========================================================
   HOME / TOPBAR (escura, sólida)
   ========================================================= */
.topbar {
  background: rgba(10, 14, 26, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-actions { display: flex; align-items: center; gap: .65rem; margin-left: auto; }

.user-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .8rem .35rem .35rem;
  background: var(--primary-soft);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.user-chip:hover { background: rgba(30, 80, 230, 0.24); }
.user-chip:active { transform: scale(0.98); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.current-user {
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* =========================================================
   FEED
   ========================================================= */
.feed-main { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 8rem; }
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.feed-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: .35rem;
}
.feed-head .muted { color: var(--text-muted); font-size: .95rem; }

.feed-filters {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}
.feed-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.filter-chip:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
  background: var(--primary-soft);
}
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 80, 230, 0.35);
}

.tag-selector-row { margin-bottom: 1.25rem; animation: fadeIn .2s ease-out; }
.tag-selector-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: none;
}
.tag-selector-scroll::-webkit-scrollbar { display: none; }

.tag-pill {
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: .4rem .9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.tag-pill:hover {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}
.tag-pill.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0e1a;
  font-weight: 700;
}

/* =========================================================
   POST CARD
   ========================================================= */
.feed-list { display: flex; flex-direction: column; gap: 1rem; }

.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .2s;
  animation: postIn .35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.post-card:hover {
  border-color: rgba(30, 80, 230, 0.4);
  box-shadow: var(--shadow-md);
}
@keyframes postIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-transform: uppercase;
  overflow: hidden;
}
.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.post-author {
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
}
.post-author:hover { color: var(--primary-bright); }
.post-fullname {
  color: var(--text-muted);
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-time { color: var(--text-muted); font-size: .82rem; }

.post-content {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}
.post-tag-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.post-tag-badge[data-type="estado"] {
  background: var(--primary-soft);
  color: var(--primary-bright);
  border: 1px solid rgba(30, 80, 230, 0.4);
}
.post-tag-badge[data-type="relacionamento"] {
  background: var(--orange-soft);
  color: #ff9a4d;
  border: 1px solid rgba(255, 107, 0, 0.4);
}
.post-tag-badge[data-type="games"] {
  background: rgba(124, 58, 237, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.4);
}
.post-tag-badge[data-type="jogos"] {
  background: var(--danger-soft);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.post-tag-badge[data-type="musica"] {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}
.post-tag-badge[data-type="filmes_series"] {
  background: var(--yellow-soft);
  color: var(--yellow);
  border: 1px solid rgba(255, 184, 0, 0.4);
}
.post-tag-badge[data-type="esportes"] {
  background: var(--green-soft);
  color: #4ade80;
  border: 1px solid rgba(0, 176, 80, 0.4);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.like-btn, .comment-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: .4rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  transition: color .15s, border-color .15s, background .15s, transform .12s;
}
.like-btn:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}
.like-btn.liked {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}
.like-btn:active { transform: scale(0.95); }
.like-btn:disabled { cursor: not-allowed; opacity: .7; }
.like-btn .like-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }

@keyframes likePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.like-btn.just-liked .like-icon { animation: likePop .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.like-count { min-width: 1ch; text-align: center; }

.comment-btn:hover {
  color: var(--primary-bright);
  border-color: rgba(30, 80, 230, 0.5);
  background: var(--primary-soft);
}
.comment-btn.has-comments {
  color: var(--primary-bright);
  border-color: rgba(30, 80, 230, 0.5);
  background: var(--primary-soft);
}
.comment-btn:active { transform: scale(0.95); }
.comment-btn .comment-icon { width: 16px; height: 16px; flex-shrink: 0; }

.post-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  padding: .35rem .6rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.post-delete-btn:hover { color: var(--danger); background: var(--danger-soft); }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(18, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px dashed rgba(30, 80, 230, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.empty-illustration {
  position: relative;
  display: inline-block;
  width: 120px; height: 120px;
  margin-bottom: 1.5rem;
}
.empty-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 80, 230, 0.25), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
.empty-circle-2 {
  inset: 20px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22), transparent 70%);
  animation-delay: -1.5s;
}
.empty-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 12px rgba(30, 80, 230, 0.4));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.1); opacity: 1; }
}
.empty-state h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1.3rem;
  color: var(--text); margin-bottom: .5rem;
}
.empty-state p {
  color: var(--text-muted); font-size: .95rem;
  line-height: 1.6; max-width: 340px; margin: 0 auto;
}

/* =========================================================
   FAB
   ========================================================= */
.fab {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--grad-primary);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(30, 80, 230, 0.5);
  transition: transform .15s, box-shadow .2s;
  z-index: 30;
}
.fab:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 16px 36px rgba(30, 80, 230, 0.7);
}
.fab:active { transform: scale(0.96); }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .15s ease-out;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card-sm { max-width: 400px; }
.modal-card-lg { max-width: 600px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.5px;
  color: var(--text);
}
.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.btn-close:hover { color: var(--danger); background: var(--danger-soft); }

/* =========================================================
   POST FORM
   ========================================================= */
.post-form { display: flex; flex-direction: column; gap: 1.25rem; }
.post-textarea-wrap { position: relative; display: block; }
.post-textarea-wrap textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 2rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  min-height: 140px;
  transition: border-color .18s, box-shadow .18s;
}
.post-textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.post-textarea-wrap textarea::placeholder { color: var(--text-dim); }
.char-count {
  position: absolute;
  right: 1rem; bottom: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-elev);
  padding: .15rem .5rem;
  border-radius: 999px;
  pointer-events: none;
}
.char-count.warning { color: var(--yellow); }
.char-count.danger  { color: var(--danger); }

.tags-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.tags-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tags-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.tags-label small { color: var(--text-muted); font-weight: 400; font-size: .78rem; }
.tags-selected-count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: .2rem .55rem;
  background: var(--bg-elev);
  border-radius: 999px;
}
.tags-selected-count.limit-reached {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 0;
}
.tags-selected:empty { display: none; }

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .6rem .35rem .75rem;
  border-radius: 999px;
}
.selected-tag[data-type="relacionamento"] {
  background: var(--orange);
  color: #fff;
}
.selected-tag[data-type="estado"] {
  background: var(--primary);
  color: #fff;
}
.selected-tag-remove {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  opacity: .8;
  transition: opacity .15s;
}
.selected-tag-remove:hover { opacity: 1; }
.selected-tag-remove svg { width: 10px; height: 10px; }

.tags-search-wrap { display: block; }
.tags-search {
  width: 100%;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .65rem .9rem;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.tags-search:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.tags-search::placeholder { color: var(--text-dim); }

.tags-available {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 0;
}

.available-tag {
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.available-tag:hover:not(:disabled) {
  border-color: var(--primary-bright);
  background: var(--primary-soft);
  color: var(--primary-bright);
}
.available-tag[data-type="relacionamento"]:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: #ff9a4d;
}
.available-tag:disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.available-tag.no-results {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--text-muted);
  font-style: italic;
  padding: .5rem;
}

.tags-available::-webkit-scrollbar { width: 6px; }
.tags-available::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.post-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.post-form-footer .error-msg { text-align: left; flex: 1; margin: 0; }
.post-form-footer .btn-primary { padding: .85rem 1.75rem; white-space: nowrap; }

/* =========================================================
   CONFIRM
   ========================================================= */
.confirm-text { color: var(--text-muted); font-size: .95rem; line-height: 1.5; margin-bottom: 1.75rem; }
.confirm-actions { display: flex; gap: .75rem; justify-content: flex-end; }
.confirm-actions .btn-ghost,
.confirm-actions .btn-danger { padding: .75rem 1.5rem; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev-2);
  color: var(--text);
  padding: .9rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  font-weight: 500;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
  animation: toastIn .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast[hidden] { display: none; }
.toast.success {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}
.toast.error {
  background: var(--danger);
  border-color: transparent;
  color: #fff;
}
.toast.info { background: var(--bg-elev-2); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* =========================================================
   UTIL
   ========================================================= */
[hidden] { display: none !important; }

/* =========================================================
   PERFIL (card escuro de destaque com degradê tucano)
   ========================================================= */
.profile-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 8rem;
}
.profile-back-bar { margin-bottom: 1rem; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-back:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
  background: var(--primary-soft);
}

.profile-card {
  position: relative;
  background: #0a0e1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-bottom: 1.5rem;
  animation: postIn .35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 80, 230, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0, 176, 80, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 0, 0.35) 0%, transparent 55%);
  filter: blur(50px);
  animation: profileGradientShift 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes profileGradientShift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 2%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

.profile-card > * { position: relative; z-index: 1; }

.profile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.profile-avatar-wrap { position: relative; }
.profile-avatar-lg,
.profile-avatar-lg-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  background: var(--grad-primary);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  text-transform: uppercase;
  object-fit: cover;
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  max-width: 520px;
}
.profile-username {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -.5px;
  color: #ffffff;
  line-height: 1.1;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.profile-fullname { color: #cbd5e1; font-size: 1rem; font-weight: 500; }
.profile-bio {
  color: #e2e8f0;
  font-size: .95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  margin-top: .35rem;
}
.profile-bio.muted { color: #94a3b8; font-style: italic; }

.profile-stats {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: .35rem;
  margin-top: .75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .85rem .5rem;
  border-radius: 10px;
}
.profile-stat + .profile-stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.profile-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  background: linear-gradient(135deg, #FFB800 0%, #FF6B00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-stat-label {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .75rem;
}
.btn-like-profile, .btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-like-profile:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}
.btn-like-profile.liked {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fee2e2;
}
.btn-like-profile.liked .like-icon { fill: #fecaca; stroke: #fecaca; }
.btn-like-profile .like-icon { width: 16px; height: 16px; transition: transform .2s; }
.btn-like-profile.just-liked .like-icon { animation: likePop .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-edit-profile:hover {
  background: rgba(255, 184, 0, 0.25);
  border-color: rgba(255, 184, 0, 0.5);
  color: #fef3c7;
}

.profile-posts-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.profile-posts-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.3px;
  color: var(--text);
}
.empty-state-sm { padding: 2rem 1.5rem; text-align: center; }
.empty-state-sm p { color: var(--text-muted); font-size: .9rem; }
.profile-loading { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* =========================================================
   AVATAR HELPERS
   ========================================================= */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   EDITAR PERFIL — FOTO
   ========================================================= */
.edit-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.edit-photo-preview-wrap { position: relative; }
.edit-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  overflow: hidden;
  border: 3px solid var(--bg-elev);
  box-shadow: 0 8px 20px rgba(30, 80, 230, 0.4);
  object-fit: cover;
}
.edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-photo-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.edit-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  font-size: .82rem;
  padding: .5rem .9rem;
}
.edit-photo-btn.danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--danger);
}
.edit-photo-btn.danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.edit-photo-hint {
  color: var(--text-muted);
  font-size: .75rem;
  text-align: center;
}
#edit-avatar-error { text-align: center; min-height: 0; }

/* =========================================================
   COMENTÁRIOS
   ========================================================= */
.comments-post-preview {
  padding: 1rem;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.comments-post-preview .preview-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .65rem;
}
.comments-post-preview .preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.comments-post-preview .preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comments-post-preview .preview-meta { flex: 1; min-width: 0; }
.comments-post-preview .preview-author { font-weight: 700; color: var(--text); font-size: .9rem; }
.comments-post-preview .preview-time { color: var(--text-muted); font-size: .78rem; }
.comments-post-preview .preview-content {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.comments-post-preview .preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .6rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: .25rem;
  margin-bottom: 1rem;
}
.comments-list::-webkit-scrollbar { width: 6px; }
.comments-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.comment-item {
  display: flex;
  gap: .65rem;
  padding: .75rem;
  border-radius: 10px;
  background: var(--bg-elev-2);
  transition: background .15s;
  position: relative;
}
.comment-item:hover { background: rgba(255, 255, 255, 0.06); }
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 700;
  color: var(--text);
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
}
.comment-author:hover { color: var(--primary-bright); }
.comment-time { color: var(--text-muted); font-size: .75rem; }
.comment-content {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.comment-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 6px;
  margin-left: auto;
  align-self: flex-start;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.comment-delete-btn:hover { color: var(--danger); background: var(--danger-soft); }

.comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.comments-empty-icon { font-size: 2rem; margin-bottom: .5rem; opacity: .6; }

.comment-form { padding-top: 1rem; border-top: 1px solid var(--border); }
.comment-input-wrap { display: flex; gap: .5rem; align-items: stretch; }
.comment-input-wrap input {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .75rem 1.1rem;
  color: var(--text);
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.comment-input-wrap input:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.comment-input-wrap input::placeholder { color: var(--text-dim); }
.btn-comment-send {
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.comment-form .error-msg { margin-top: .5rem; text-align: center; }

/* =========================================================
   NOTIFICAÇÕES
   ========================================================= */
.btn-icon {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.btn-icon:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
  background: var(--primary-soft);
}
.btn-icon:active { transform: scale(0.95); }

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-elev);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
  animation: notifPop .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Bricolage Grotesque', sans-serif;
}
@keyframes notifPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
  cursor: default;
}
.notif-panel {
  position: fixed;
  top: 72px;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 70vh;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  animation: notifIn .18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes notifIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: .75rem;
}
.notif-panel-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.3px;
  color: var(--text);
}
.btn-sm { padding: .35rem .75rem; font-size: .78rem; }

.notif-list { overflow-y: auto; flex: 1; padding: .35rem; }
.notif-list::-webkit-scrollbar { width: 6px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.notif-item:hover { background: rgba(255, 255, 255, 0.06); }
.notif-item.unread { background: var(--primary-soft); }
.notif-item.unread:hover { background: rgba(30, 80, 230, 0.22); }
.notif-item.unread::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 2px var(--bg-elev);
}
.notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.notif-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.notif-item[data-type="post_comment"] .notif-avatar {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}
.notif-item[data-type="comment_reply"] .notif-avatar {
  background: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
}
.notif-item[data-type="profile_like"] .notif-avatar {
  background: linear-gradient(135deg, #FFB800 0%, #FF6B00 100%);
  color: #0a0e1a;
}
.notif-body { flex: 1; min-width: 0; padding-right: 1.25rem; }
.notif-text {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .15rem;
  word-break: break-word;
}
.notif-text .notif-actor { color: var(--primary-bright); font-weight: 700; }
.notif-time { color: var(--text-muted); font-size: .75rem; }

.notif-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}
.notif-empty-icon { font-size: 2.2rem; margin-bottom: .5rem; opacity: .5; }
.notif-empty p { font-size: .9rem; }

/* =========================================================
   SELO VERIFICADO
   ========================================================= */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 2px;
}
.verified-badge svg { width: 100%; height: 100%; display: block; }
.post-author .verified-badge,
.comment-author .verified-badge { margin-left: 3px; }
.profile-username .verified-badge {
  width: 22px;
  height: 22px;
  margin-left: 6px;
  vertical-align: -2px;
}
.current-user .verified-badge,
#topbar-verified.verified-badge {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -1px;
}

/* =========================================================
   PÁGINA LEGAL
   ========================================================= */
.page-legal { min-height: 100vh; }
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.legal-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-brand {
  text-decoration: none;
  transition: opacity .15s;
}
.legal-brand:hover { opacity: .85; }
.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}
.legal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}
.legal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: .5rem;
}
.legal-updated {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 2rem;
}
.legal-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2rem;
  margin-bottom: .85rem;
  letter-spacing: -.3px;
}
.legal-card p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: .97rem;
}
.legal-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}
.legal-card ul li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: .97rem;
}
.legal-card ul li::before {
  content: '';
  position: absolute;
  left: .25rem;
  top: .65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
}
.legal-card strong { color: var(--text); font-weight: 700; }
.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--text-muted) !important;
}

/* =========================================================
   LOGO OFICIAL (imagem)
   ========================================================= */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-img.logo-sm { height: 36px; }
.logo-img.logo-hero {
  height: auto;
  width: clamp(220px, 30vw, 340px);
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.auth-topbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .15s;
}
.auth-topbar-brand:hover { opacity: .85; }
#topbar-logo {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: opacity .15s;
  margin: 0;
}
#topbar-logo:hover { opacity: .85; }

/* =========================================================
   FOTO NO POST
   ========================================================= */
.post-photo-section {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.25rem;
  background: var(--bg-elev-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--text-muted);
  text-align: center;
}
.post-photo-drop:hover {
  border-color: var(--primary-bright);
  background: var(--primary-soft);
  color: var(--primary-bright);
}
.post-photo-drop svg { color: var(--primary-bright); opacity: .8; }
.post-photo-drop-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.post-photo-drop-hint { font-size: .72rem; color: var(--text-muted); }

.post-photo-preview-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elev-2);
}
.post-photo-preview {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.post-photo-remove {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.post-photo-remove:hover {
  background: var(--danger);
  transform: scale(1.05);
}

.post-image {
  display: block;
  width: 100%;
  margin-top: .85rem;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  max-height: 500px;
  object-fit: cover;
  background: var(--bg-elev-2);
  transition: opacity .15s;
}
.post-image:hover { opacity: .92; }

/* =========================================================
   MODAL ZOOM DE IMAGEM
   ========================================================= */
.modal-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-image-viewer[hidden] { display: none !important; }

.modal-image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  animation: fadeIn .15s ease-out;
}
.modal-image-viewer-img {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  animation: zoomIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-image-viewer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* =========================================================
   CURTIR COMENTÁRIOS
   ========================================================= */
.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: .15rem .35rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  transition: color .15s, background .15s, transform .12s;
  flex-shrink: 0;
}
.comment-like-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}
.comment-like-btn:active { transform: scale(0.92); }
.comment-like-btn:disabled { cursor: not-allowed; opacity: .6; }
.comment-like-btn .comment-like-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform .15s;
}
.comment-like-btn.just-liked .comment-like-icon {
  animation: commentLikePop .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes commentLikePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* =========================================================
   SIDEBAR / HAMBURGUER / SEARCH
   ========================================================= */
.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 8rem;
  transition: margin-left .25s ease;
}

@media (min-width: 1024px) {
  .page-main {
    margin-left: 240px;
    margin-right: auto;
    max-width: calc(100% - 240px - 2rem);
    padding: 0rem 2rem 8rem;
  }
}

.btn-hamburger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.btn-hamburger:hover {
  background: var(--primary-soft);
  color: var(--primary-bright);
}
.btn-hamburger:active { transform: scale(0.95); }

.topbar-inner { justify-content: space-between; gap: .75rem; }

@media (min-width: 1024px) {
  .btn-hamburger { display: none; }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar.open { transform: translateX(0); }

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
    top: 0;
    padding-top: 0;
    box-shadow: none;
  }
}

.sidebar-inner { padding: 1.25rem 1rem; }

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: .5rem .75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  transition: background .15s;
}
.sidebar-brand:hover { background: rgba(255, 255, 255, 0.05); }
.sidebar-brand .logo-img { height: 30px; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem .9rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  width: 100%;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-bright);
}
.sidebar-link.active {
  background: var(--primary-soft);
  color: var(--primary-bright);
  font-weight: 600;
}
.sidebar-link svg { flex-shrink: 0; opacity: .8; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-link:hover svg { opacity: 1; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 55;
  animation: fadeIn .2s ease-out;
}
.sidebar-backdrop[hidden] { display: none !important; }

@media (min-width: 1024px) {
  .sidebar-backdrop { display: none !important; }
}

/* =========================================================
   BUSCA
   ========================================================= */
.search-bar-wrap { margin-bottom: 1rem; }

.search-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .75rem 1.1rem;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-sm);
}
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.search-bar input::placeholder { color: var(--text-dim); }

.hero-content .brand-hero {
  text-align: left;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .hero-content .brand-hero { text-align: center; }
}

@media (max-width: 1023px) {
  .page-main {
    max-width: 100%;
    padding: 1rem 1rem 8rem;
  }
}

@media (max-width: 600px) {
  .topbar-inner { padding: .85rem 1rem; }
  .search-bar { padding: .6rem .9rem; }
  .search-bar input { font-size: .9rem; }
}

/* =========================================================
   SUGESTÃO (contatos)
   ========================================================= */
.suggestion-contacts {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1.25rem 0 1rem;
}

.suggestion-contact {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .12s;
}
.suggestion-contact:hover {
  border-color: var(--primary-bright);
  background: var(--primary-soft);
}
.suggestion-contact:active { transform: scale(0.99); }

.suggestion-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.suggestion-contact-email .suggestion-contact-icon {
  background: linear-gradient(135deg, #FFB800 0%, #FF6B00 100%);
  color: #0a0e1a;
}

.suggestion-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.suggestion-contact-info strong {
  font-size: .9rem;
  color: var(--text);
  font-weight: 700;
}
.suggestion-contact-info span {
  font-size: .85rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-email {
  padding: .4rem .75rem;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.btn-copy-email.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.1);
}

.suggestion-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: .5rem;
}

/* =========================================================
   BUSCA — DROPDOWN
   ========================================================= */
.search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .15s, background .15s;
  padding: 0;
}
.search-clear:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.search-dropdown {
  margin-top: .5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 420px;
  overflow-y: auto;
  animation: searchDropIn .15s ease-out;
}
.search-dropdown[hidden] { display: none !important; }

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown::-webkit-scrollbar { width: 6px; }
.search-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.search-section { padding: .5rem; }
.search-section + .search-section { border-top: 1px solid var(--border); }

.search-section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: .4rem .65rem;
  margin-bottom: .25rem;
}

.search-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .65rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--text);
}
.search-item:hover { background: rgba(255, 255, 255, 0.06); }

.search-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.search-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.search-item-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-title .search-highlight { color: var(--primary-bright); }
.search-item-subtitle {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}

.search-loading {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-bright);
  border-radius: 50%;
  animation: searchSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes searchSpin { to { transform: rotate(360deg); } }

/* =========================================================
   THREADS DE COMENTÁRIOS
   ========================================================= */
.reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .85rem;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary-bright);
  border-radius: 6px;
  margin-bottom: .5rem;
  font-size: .82rem;
  color: var(--text);
  animation: replyPreviewIn .15s ease-out;
}
.reply-preview[hidden] { display: none !important; }

@keyframes replyPreviewIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reply-preview-text strong {
  color: var(--primary-bright);
  font-weight: 700;
}

.reply-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  padding: .15rem .5rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
  font-family: inherit;
  flex-shrink: 0;
}
.reply-cancel:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: .15rem .35rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.comment-reply-btn:hover {
  color: var(--primary-bright);
  background: var(--primary-soft);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}

.comment-item.reply {
  margin-left: 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: .75rem;
  border-radius: 0 10px 10px 0;
  margin-top: .35rem;
  background: transparent;
}
.comment-item.reply:hover { background: rgba(255, 255, 255, 0.05); }

.comment-reply-context {
  color: var(--text-muted);
  font-size: .75rem;
  margin-bottom: .15rem;
}
.comment-reply-context strong {
  color: var(--primary-bright);
  font-weight: 700;
}

/* =========================================================
   CORAÇÃO DE POST E COMENTÁRIO — controle do fill via CSS
   ========================================================= */
.like-btn .like-icon {
  fill: transparent;
  stroke: currentColor;
  transition: fill .15s, stroke .15s, transform .2s;
}
.like-btn.liked .like-icon {
  fill: #ef4444;
  stroke: #ef4444;
}
.like-btn:not(.liked):hover .like-icon {
  fill: transparent;
  stroke: currentColor;
}

.comment-like-btn .comment-like-icon {
  fill: transparent;
  stroke: currentColor;
  transition: fill .15s, stroke .15s, transform .15s;
}
.comment-like-btn.liked .comment-like-icon {
  fill: #ef4444;
  stroke: #ef4444;
}
.comment-like-btn:not(.liked):hover .comment-like-icon {
  fill: transparent;
  stroke: currentColor;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero {
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    min-height: 40vh;
  }
  .hero-content { max-width: 460px; margin: 0 auto; }
  .brand-hero {
    text-align: center;
    font-size: clamp(2.6rem, 8vw, 3.4rem);
    margin-bottom: 1rem;
  }
  .hero-slogan { text-align: center; font-size: 1.25rem; margin-bottom: 1.5rem; }
  .hero-footer { text-align: center; }
  .auth-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem 3rem;
  }
}

@media (max-width: 600px) {
  .auth-topbar-inner { padding: .85rem 1rem; }
  .auth-topbar-brand { font-size: 1.3rem; }
  .auth-nav-link { font-size: .82rem; }
  .screen-auth { padding-top: 64px; }
  .auth-layout { min-height: calc(100vh - 64px); }

  .brand.small { font-size: 1.5rem; }
  .topbar-inner { padding: .85rem 1rem; gap: .5rem; }
  .feed-main { padding: 1.75rem 1rem 8rem; }
  .feed-head h2 { font-size: 1.75rem; }
  .empty-state { padding: 3rem 1.25rem; }
  .auth-title { font-size: 1.75rem; }
  .auth-panel { padding: 1.75rem 1.25rem 2.5rem; }
  .post-card { padding: 1.15rem 1.25rem; }
  .post-avatar { width: 40px; height: 40px; font-size: 1rem; }
  .fab { bottom: 1.25rem; right: 1.25rem; width: 56px; height: 56px; }

  .post-form-footer { flex-direction: column-reverse; align-items: stretch; }
  .post-form-footer .btn-primary { width: 100%; }
  .post-form-footer .error-msg { text-align: center; }

  .topbar-actions { gap: .4rem; }
  .user-chip { padding: .25rem .6rem .25rem .25rem; gap: .35rem; }
  .user-avatar { width: 24px; height: 24px; font-size: .75rem; }
  .current-user { max-width: 100px; font-size: .8rem; }
  .btn-ghost { padding: .45rem .75rem; font-size: .8rem; }

  .like-btn, .comment-btn { padding: .35rem .65rem; font-size: .8rem; }
  .like-btn .like-icon, .comment-btn .comment-icon { width: 14px; height: 14px; }

  .comments-list { max-height: 40vh; }
  .modal-card-lg { padding: 1.25rem; }
  .comments-post-preview { padding: .85rem; }
  .comments-post-preview .preview-avatar { width: 32px; height: 32px; font-size: .85rem; }
  .comment-item { padding: .6rem; }
  .comment-avatar { width: 28px; height: 28px; font-size: .75rem; }

  .notif-panel { top: 68px; left: .5rem; right: .5rem; width: auto; max-height: 75vh; }
  .btn-icon { width: 36px; height: 36px; }
  .notif-badge { font-size: .65rem; min-width: 18px; height: 18px; }
  .notif-avatar { width: 34px; height: 34px; font-size: .85rem; }
  .notif-text { font-size: .85rem; }

  .profile-username .verified-badge { width: 18px; height: 18px; margin-left: 4px; }

  .profile-main { padding: .75rem 1rem 8rem; }
  .profile-card { padding: 2rem 1.25rem 1.5rem; }
  .profile-avatar-lg, .profile-avatar-lg-img {
    width: 92px; height: 92px; font-size: 2.4rem;
  }
  .profile-username { font-size: 1.5rem; }
  .profile-stat-value { font-size: 1.25rem; }
  .profile-actions { flex-direction: column; width: 100%; }
  .btn-like-profile, .btn-edit-profile { width: 100%; justify-content: center; }

  .legal-main { padding: 2rem 1rem 4rem; }
  .legal-card { padding: 2rem 1.25rem; }
  .legal-title { font-size: 1.85rem; }
  .legal-card h2 { font-size: 1.2rem; }
  .legal-card p, .legal-card ul li { font-size: .93rem; }
  .legal-topbar-inner { padding: .85rem 1rem; }

  .logo-img.logo-sm { height: 30px; }
  .logo-img.logo-hero { width: clamp(180px, 55vw, 260px); }

  .comment-item.reply { margin-left: 1rem; padding-left: .6rem; }
  .reply-preview { font-size: .78rem; padding: .45rem .7rem; }
  .comment-reply-btn { font-size: .72rem; }

  .post-photo-preview { max-height: 200px; }
  .post-image { max-height: 380px; }
  .modal-image-viewer-close { top: .75rem; right: .75rem; width: 40px; height: 40px; }

  .search-dropdown { max-height: 60vh; }
  .search-item-avatar, .search-item-icon { width: 32px; height: 32px; font-size: .85rem; }
  .search-item-title { font-size: .85rem; }
  .search-item-subtitle { font-size: .74rem; }

  .suggestion-contact { padding: .8rem .9rem; gap: .65rem; }
  .suggestion-contact-icon { width: 36px; height: 36px; }
  .suggestion-contact-info strong { font-size: .85rem; }
  .suggestion-contact-info span { font-size: .8rem; }
  .btn-copy-email { padding: .35rem .6rem; font-size: .72rem; }
}

@media (max-width: 380px) {
  .current-user { display: none; }
  .user-chip { padding: .25rem; }
  .btn-ghost { padding: .45rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wave-1, .wave-2, .wave-3 { animation: none; }
}