html,
body,
.flogpage,
#FlogBody,
#FlogPage {
  background-color: var(--flog-color);
  background-image: var(--background-image);
  background-size: var(--background-size);
  background-position: var(--background-position);
  background-repeat: var(--background-repeat);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: 1.6;
}

.container {
  max-width: 1112px !important;
}

.main-flog {
  margin: 1rem 0;
  border-radius: var(--flog-radius);
  overflow: hidden;
  background: var(--background-color);
}

.flog-banner {
  position: relative;
  width: 100%;
}

.header-bg {
  position: relative;
  width: 100%;
  min-height: var(--banner-height);
  overflow: hidden;
  background: var(--background-color);
}

.banner,
#FlogBanner,
.no-banner-flog{
  display: block;
  width: 100%;
  height: var(--banner-height);
  object-fit: cover;
}

.profile-shell {
  position: relative;
  width: 100%;
  background: var(--background-color);
}

.profile-area.profile-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 24px 0px;
  min-height: 90px;
}

.profile-esquerda {
  display: flex;
  gap: 36px;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.profile-hero__media {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 0 auto;
}

.flog_descricao {
  font-size: var(--font-size);
  line-height: 1.5;
  color: var(--text-color);
  min-width: 0;
}

.profile-infos.profile-hero__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
}

.profile-avatar,
.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.flog-avatar {
  position: relative;
  width: 150px;
  height: 150px;
  margin-top: -82px;
  border-radius: var(--avatar-shape-radius);
  overflow: visible;
  z-index: 3;
}

.flog-avatar .avatar,
#FlogAvatarImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.avatar.circular {
  border-radius: 50%;
}

.avatar.quadrado {
  border-radius: 0px;
}

.avatar.arredondado {
  border-radius: 14px;
}

.flog-avatar .is-online,
.flog-avatar .is-offline{
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--success);
  pointer-events: none;
}

@keyframes px-online-pulse{
  0%{
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.50);
    transform: scale(1);
  }
  50%{
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    transform: scale(1.06);
  }
  100%{
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
}

.flog-avatar .is-online {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: px-online-pulse 1.8s ease-out infinite;
}

.flog-avatar .is-offline {
  background: #a1a1a1;
}

.flog-banner__destaques {
  position: absolute;
  right: 0;
  bottom: -20px;
  z-index: 4;
}

.profile-identity {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  padding-bottom: 8px;
}

.profile-identity__seal {
  display: inline-flex;
  align-items: center;
}

.profile-identity__seal img {
  display: block;
  max-height: 18px;
  width: auto;
}

.profile-identity__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--text-color);
}

.profile-identity__name:hover {
  text-decoration: underline;
}

.profile-identity__name-text {
  display: block;
  min-width: 0;
  font-size: calc(var(--font-size) * (24 / 13));
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a6cf7;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.profile-infos.profile-hero__meta {
  display: flex;
  align-items: center;
  min-width: 0;
}

.profile-hero__stats {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.profile-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #3b3b3b;
  line-height: 1.05;
}

.profile-hero__stat strong {
  font-size: calc(var(--font-size) * (18 / 13));
  font-weight: 600;
  color: var(--text-color);
}

.profile-hero__stat span {
  font-size: var(--font-size);
  color: var(--text-color);
  margin-top: 4px;
}

.profile-direita.profile-hero__actions-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding-bottom: 16px;
}

.profile-actions-wrap {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

.follow-btn {
  min-width: 140px;
  height: 42px;
  border: 0;
  background: var(--accent-color);
  color: var(--cor-text-botao);
  padding: 0 16px;
  border-radius: var(--button-radius) 0 0 var(--button-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--font-size);
  font-weight: 600;
  cursor: pointer;
}

.follow-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 15px;
  line-height: 1;
}

.more-actions {
  position: relative;
  display: flex;
}

.more-btn {
  width: 52px;
  height: 42px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  background: var(--accent-color);
  color: var(--cor-text-botao);
  border-radius: 0 var(--button-radius) var(--button-radius) 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  padding: 8px;
  display: none;
  z-index: 20;
  font-family: "Geist" !important;
}

.more-actions.is-open .actions-menu {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .header-bg {
    min-height: 240px;
    border-radius: 18px 18px 0 0;
  }

  .banner,
  #FlogBanner,
  .no-banner-flog {
    height: 240px;
  }

  .profile-area.profile-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 18px 20px;
  }

  .profile-esquerda {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .profile-hero__media {
    width: 100%;
  }

    .profile-identity-wrap {
    min-width: 0;
  }

  .profile-infos.profile-hero__meta {
    margin-left: 0;
  }

  .flog-avatar {
    width: 110px;
    height: 110px;
    margin-top: -70px;
  }

  .profile-identity__name-text {
    font-size: 21px;
  }

  .profile-hero__stats {
    gap: 20px;
  }

  .profile-direita.profile-hero__actions-column {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-actions-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 52px;
  }

  .follow-btn {
    width: 100%;
    min-width: 0;
  }

  .more-btn {
    width: 52px;
  }

  .actions-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .header-bg {
    min-height: 120px;
    border-radius: 14px 14px 0 0;
  }

  .banner,
  #FlogBanner,
  .no-banner-flog {
    height: 120px;
  }

  .profile-shell {
    border-radius: 0 0 14px 14px;
  }

  .profile-area.profile-hero {
    padding: 14px 14px 18px;
    gap: 16px;
  }

  .profile-hero__media {
    gap: 12px;
  }

  .flog-avatar {
    width: 110px;
    height: 110px;
    margin-top: -67px;
    border-width: 4px;
  }

  .flog-avatar .is-online,
  .flog-avatar .is-offline {
    width: 15px;
    height: 15px;
    top: 6px;
    left: 6px;
    border-width: 2px;
  }

  .profile-identity__name-text {
    font-size: 18px;
  }

  .profile-hero__stats {
    width: 100%;
    justify-content: space-between;
    gap: 32px;
  }

  .profile-hero__stat strong {
    font-size: 16px;
  }

  .profile-hero__stat span {
    font-size: 12px;
  }

  .follow-btn,
  .more-btn {
    height: 40px;
  }

  .follow-btn {
    font-size: 13px;
  }
}


/* =========================================================
   FLOG GRID
   desktop/tablet: left curta | centro maior | right curta
   mobile: centro > left > right
========================================================= */

#FlogGrid {
  display: grid;
  grid-template-columns: max(150px) minmax(0, 1fr) max(150px);
  grid-template-areas:
    "left content right";
  gap: 45px;
  align-items: start;
  width: 100%;
  margin-top: 24px;
  padding: 24px 32px;
}

#FlogGrid > .sidebar-left {
  grid-area: left;
  min-width: 0;
  display: grid;
  gap: 24px;
}

#FlogGrid > .content {
  grid-area: content;
  min-width: 0;
}

#FlogGrid > .sidebar-right {
  grid-area: right;
  min-width: 0;
}

.sidebar-right-grid {
  display: grid;
  gap: 24px;
}

/* ajuda a evitar overflow interno */
#FlogGrid > .sidebar-left > *,
#FlogGrid > .content > *,
#FlogGrid > .sidebar-right > * {
  min-width: 0;
}

@media (max-width: 991px) {
  #FlogGrid {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(200px, 260px);
    grid-template-areas: "left content right";
    gap: 18px;
  }
}

@media (max-width: 767px) {
  #FlogGrid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "left"
      "right";
    gap: 16px;
    margin-top: 0;
    padding: 16px;
  }

  #FlogGrid > .sidebar-left,
  #FlogGrid > .content,
  #FlogGrid > .sidebar-right {
    width: 100%;
  }
}

.subtitulo {
    background: var(--subtitle-bg);
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 1rem;
    color: var(--subtitle-color);
    text-align: var(--subtitle-align);
    font-family: var(--subtitle-font-family);
    font-size: var(--subtitle-font-size);
}

/* =========================================================
   LATEST PHOTO ITEM
   hover mostra data com gradient
   no mobile a info fica sempre visÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­vel
========================================================= */

.latest-photo-item {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--thumb-radius);
  overflow: hidden;
  background: var(--flog-color);
}

.latest-photo-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: inherit;
}

.latest-photo-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.latest-photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 28%,
    rgba(0, 0, 0, 0.10) 56%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.latest-photo-item .flog_foto {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform 0.28s ease;
  background: #ececec;
}

.photo-date {
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* hover desktop/tablet */
.latest-photo-item:hover .latest-photo-link::after,
.latest-photo-item:focus-within .latest-photo-link::after {
  opacity: 1;
}

.latest-photo-item:hover .photo-date,
.latest-photo-item:focus-within .photo-date {
  opacity: 1;
  transform: translateY(0);
}

.latest-photo-item:hover .flog_foto,
.latest-photo-item:focus-within .flog_foto {
  transform: scale(1.03);
}

/* mobile: info sempre visÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­vel */
@media (max-width: 767px) {
  .latest-photo-link::after {
    opacity: 1;
  }

  .photo-date {
    opacity: 1;
    transform: translateY(0);
    font-size: 11px;
    right: 8px;
    left: 8px;
    bottom: 8px;
  }

  .latest-photo-item:hover .flog_foto,
  .latest-photo-item:focus-within .flog_foto {
    transform: none;
  }
}

.grid-mobile {
    display: grid;
    grid-auto-flow: row;
    gap: 15px;
}

@media (max-width: 768px) {
    .grid-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

.btn-flog {
    color: var(--accent-color);
    text-align: center;
    display: block;
    padding: 12px 6px;
    margin-top: 14px;
}

.btn-flog:hover {
    text-decoration: underline;
}

.content-content {
  display: flex;
  flex-direction: column;
}

.content-item {
  margin-bottom: 6px;
}

.content-item:last-child {
  margin-bottom: 0;
}

.content-name {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.content-name:hover {
  text-decoration: underline;
}

.content-name:focus-visible {
  opacity: 0.9;
}
.visitas-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visitas-item li {
  margin-bottom: 4px;
}

.visitas-item li:nth-child(3) {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #00000014;
}

.visitas-item li:last-child {
  margin-bottom: 0;
}

.visitas-item strong {
  color: var(--link-color);
}
.sidebar-left__selo-assinatura {
    margin-top: 1rem;
}
.friend-item {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--thumb-radius);
  overflow: hidden;
}

.friend-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: inherit;
  overflow: hidden;
}

.friend-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.name-friend {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.name-friend a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgb(0 0 0 / 18%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  gap: 4px;
}

.name-friend span {
  display: block;
  max-width: 100%;
  font-size: calc(var(--font-size) * (11 / 13));
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-item li {
  margin-bottom: 6px;
}

.link-item li:last-child {
  margin-bottom: 0;
}

.link-item a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.link-item a:hover {
  text-decoration: underline;
}

.link-item a:focus-visible {
  opacity: 0.9;
}

/* =========================================================
   POST VIEW
========================================================= */

.flog-post-view {
  display: grid;
  gap: 12px;
}

.flog-post-view__media {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.flog-post-view__image {
  display: block;
  max-width: 100%;
  max-height: 800px;
  border-radius: var(--main-image-radius);
  object-fit: contain;
  margin: 0 auto;
}

/* setas */
.flog-post-view__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.flog-post-view__nav--prev {
  left: 14px;
}

.flog-post-view__nav--next {
  right: 14px;
}

.flog-post-view__nav-icon {
  display: block;
  width: 22px;
  height: 31px;
  object-fit: contain;
}

.flog-post-view__media:hover .flog-post-view__nav,
.flog-post-view__media:focus-within .flog-post-view__nav {
  opacity: 1;
  pointer-events: auto;
}

.flog-post-view__media:hover .flog-post-view__nav--prev,
.flog-post-view__media:focus-within .flog-post-view__nav--prev {
  transform: translateY(-50%) translateX(-2px);
}

.flog-post-view__media:hover .flog-post-view__nav--next,
.flog-post-view__media:focus-within .flog-post-view__nav--next {
  transform: translateY(-50%) translateX(2px);
}

/* meta inferior */
.flog-post-view__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px dashed hsl(0deg 0% 0% / 21%);
  padding-bottom: 1rem;
  padding-top: 0.55rem;
  margin-bottom: 2rem;
}

.flog-post-view__meta-left,
.flog-post-view__meta-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.flog-post-view__meta-left {
  flex-wrap: wrap;
}

.flog-post-view__action-link {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.flog-post-view__action-link:hover,
.flog-post-view__action-link:focus-visible {
  opacity: 0.9;
  text-decoration: underline;
}

.flog-post-view__likes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.flog-post-view__metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
}

.flog-post-view__metric strong {
  color: var(--link-color);
  font-weight: 600;
}

.flog-post-view__metric--likes {
  cursor: pointer;
}

.flog-post-view__metric svg {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .flog-post-view__nav {
    opacity: 1;
    pointer-events: auto;
    width: 22px;
    height: 31px;
  }

  .flog-post-view__nav--prev {
    left: 10px;
  }

  .flog-post-view__nav--next {
    right: 10px;
  }

  .flog-post-view__nav-icon {
    width: 22px;
    height: 31px;
  }

  .flog-post-view__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .flog-post-view__meta-left,
  .flog-post-view__meta-right {
    width: 100%;
  }

  .flog-post-view__meta-right {
    justify-content: flex-start;
  }
}

/* =========================================================
   LIKE BUTTON - post view
   sem like = sÃƒÆ’Ã‚Â³ borda
   com like = vermelho + animaÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Â£o
========================================================= */

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.like-button:hover,
.like-button:focus-visible {
  opacity: 0.9;
}

.like-button .like-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.like-button .like-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  transition:
    fill 0.22s ease,
    stroke 0.22s ease,
    transform 0.22s ease;
  transform-origin: center;
}

/* curtido */
.like-button.liked {
  color: #e11d48;
}

.like-button.liked .like-icon path {
  fill: currentColor;
  stroke: currentColor;
  animation: px-like-pop 0.32s ease;
}

/* clique/carregando opcional */
.like-button[data-loading="1"] {
  pointer-events: none;
  opacity: 0.7;
}

@keyframes px-like-pop {
  0% {
    transform: scale(0.82);
  }
  45% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

.post-title {font-size: calc(var(--font-size) * (24 / 13));color: var(--accent-color);margin-bottom: 1.3rem; text-align:center;}

.post-description {
    line-height: 1.6;
    font-size: var(--font-size);
    margin-bottom: 2rem;
}

.friend-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.friend-item--badge {
  min-width: 0;
}

.friend-thumb-link--badge {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--thumb-radius);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.friend-thumb-link--badge:hover,
.friend-thumb-link--badge:focus-visible {
  transform: translateY(-2px);
  opacity: 0.96;
}

.friend-thumb-link--badge:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color) 22%, transparent);
}

.friend-thumbnail--badge {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

@media (max-width: 767px) {
  .friend-badges-grid {
    gap: 8px;
  }
}


/* =========================================================
   COMMENTS
========================================================= */

.comments {
  display: grid;
  gap: 18px;
}

.comments.is-loading {
  pointer-events: none;
}

#commentList {
  display: grid;
  gap: 18px;
}

.lista-comentario {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  background: hsl(0deg 0% 0% / 5%);
  border-radius: 12px;
}

.lista-comentario.empty {
  grid-template-columns: 1fr;
  padding: 2px 0;
}

.lista-comentario-reply {
  margin-left: 42px;
  padding-left: 14px;
  border-left: 3px solid var(--accent-color);
  grid-template-columns: 40px minmax(0, 1fr);
}

.lista-comentario-reply .avatar-comentario {
  width: 38px;
  min-width: 38px;
}

.lista-comentario-reply .avatar-comentario-usuario {
  width: 38px;
  height: 38px;
}

.avatar-comentario {
  width: 50px;
  min-width: 50px;
}

.avatar-comentario-link {
  display: block;
  text-decoration: none;
}

.avatar-comentario-usuario {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #ececec;
}

.comentario-user {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.comentario-head {
  min-width: 0;
}

.comentario-head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.comentario-head-content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
}

.comentario-nome-usuario {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.comment-enum {
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: 1;
}

.comentario-insignia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.comentario-insignia img,
.comentario-insignia .px-verificado {
  display: block;
}

.comentario-username-link {
  color: var(--link-color);
  text-decoration: none;
  min-width: 0;
}

.comentario-username-link:hover {
  text-decoration: underline;
}

.comentario-username {
  display: block;
  min-width: 0;
  font-size: var(--font-size);
  line-height: 1.2;
  font-weight: 600;
  color: var(--link-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comentario-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.comment-like-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.comment-like-btn:hover,
.comment-like-btn:focus-visible {
  opacity: 0.92;
  transform: scale(1.04);
}

.comment-like-svg {
  display: block;
  width: 24px;
  height: 24px;
}

.comment-like-svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  transition: fill 0.22s ease, stroke 0.22s ease, transform 0.22s ease;
  transform-origin: center;
}

.comment-like.is-liked {
  color: #e11d48;
}

.comment-like.is-liked .comment-like-svg path {
  fill: currentColor;
  stroke: currentColor;
  animation: px-comment-like-pop 0.28s ease;
}

@keyframes px-comment-like-pop {
  0% {
    transform: scale(0.84);
  }
  50% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

.comentario-texto {
  color: var(--text-color);
  font-size: var(--font-size);
  line-height: 1.6;
  word-break: break-word;
}

.comentario-texto p,
.comentario-texto div,
.comentario-texto blockquote,
.comentario-texto pre {
  margin: 0;
}

.comentario-texto > * + * {
  margin-top: 8px;
}

.comentario-acoes {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 18px;
  margin-top: 6px;
}

.comment-reply,
.delete-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size);
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
}

.comment-reply {
  color: var(--link-color);
}

.comment-reply:hover {
  text-decoration: underline;
}

.delete-comment {
  color: rgba(0, 0, 0, 0.62);
}

.delete-comment:hover {
  color: #c62828;
  text-decoration: underline;
}

.comment-reply-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.comment-reply-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.comment-reply-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-like-count-text,
.comentario-data {
  font-size: var(--font-size);
  line-height: 1.2;
  color: var(--text-color);
}

.comment-like-count-text {
  font-weight: 600;
}

.comment-reply-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.comment-reply-textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text-color);
  font: inherit;
  outline: none;
}

.comment-reply-textarea:focus {
  border-color: color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.comment-reply-actions {
  display: flex;
  justify-content: flex-start;
}

.comment-reply-submit {
  min-width: 110px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--button-text-color, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.comment-reply-submit:hover {
  opacity: 0.94;
}

.is-reply-hidden {
  display: none !important;
}

.comment-replies-toggle-wrap {
  margin: -4px 0 0 56px;
}

.comment-replies-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link-color);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.comment-replies-toggle:hover {
  text-decoration: underline;
}

/* =========================================================
   COMMENT FORM
========================================================= */

.comment-form {
  display: block;
  margin-top: 6px;
}

.comment-form-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comment-form-avatar .comment-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececec;
}

.comment-form-main {
  min-width: 0;
}

.comment-box {
  display: grid;
  gap: 10px;
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 0;
  background: #f0f0f0;
  color: var(--text-color);
  font: inherit;
  line-height: 1.6;
  outline: none;
  padding: 0;
  border: 1px solid #00000014;
  border-radius: 6px;
  padding: 12px;
  box-shadow: inset 2px 2px 10px #0000000d;
}


.comment-form-footer {
  display: flex;
  justify-content: flex-start;
}

.comment-submit {
  min-width: 120px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--button-text-color, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.comment-submit:hover {
  opacity: 0.94;
}

.comment-submit[disabled] {
  opacity: 0.72;
  cursor: default;
}

.comment-unlogg {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-color);
}

.comment-unlogg p {
  margin: 0;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .lista-comentario {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .avatar-comentario,
  .avatar-comentario-usuario {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .lista-comentario-reply {
    margin-left: 18px;
    padding-left: 10px;
  }

  .lista-comentario-reply .avatar-comentario,
  .lista-comentario-reply .avatar-comentario-usuario {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .comentario-head-main {
    gap: 10px;
  }

  .comentario-acoes {
    gap: 10px;
  }

  .comment-form-shell {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .comment-form-avatar .comment-avatar {
    width: 40px;
    height: 40px;
  }

  .comment-replies-toggle-wrap {
    margin-left: 50px;
  }
}

/* =========================================================
   FLOG FOOTER
========================================================= */

.flog-footer {
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--background-color);
  border-radius: var(--flog-radius);
  margin-bottom: 2rem;
}

.flog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.flog-footer__copy {
  flex: 0 0 auto;
  color: var(--text-color);
  font-size: calc(var(--font-size) * (12 / 13));
  line-height: 1.4;
  opacity: 0.82;
  white-space: nowrap;
}

.flog-footer__nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.flog-footer__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  cursor: grab;
  padding-bottom: 2px;
}

.flog-footer__nav:active {
  cursor: grabbing;
}

.flog-footer__nav::-webkit-scrollbar {
  height: 4px;
}

.flog-footer__nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.flog-footer__link {
  flex: 0 0 auto;
  color: var(--link-color);
  text-decoration: none;
  font-size: calc(var(--font-size) * (12 / 13));
  line-height: 1.4;
  transition: opacity 0.18s ease;
}

.flog-footer__link:hover,
.flog-footer__link:focus-visible {
  text-decoration: underline;
  opacity: 0.92;
}

@media (max-width: 767px) {
  .flog-footer {
    padding: 16px 14px;
    border-radius: 0 0 14px 14px;
  }

  .flog-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .flog-footer__nav-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  .flog-footer__nav {
    width: 100%;
    gap: 16px;
    padding-bottom: 6px;
  }

  .flog-footer__copy,
  .flog-footer__link {
    font-size: 12px;
  }
}

/* =========================================================
   PROFILE ACTIONS MENU
   versão genérica no padrão dropdown-px do design system
========================================================= */

.more-actions{
  position:relative;
}

.actions-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  left:auto;
  width:280px;
  max-width:min(320px, calc(100vw - 24px));
  padding:8px;
  background:var(--panel);
  border:1px solid var(--border-2);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-dropdown);
  display:none;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px);
  transition:
    opacity var(--t),
    visibility var(--t),
    transform var(--t);
  z-index:130;
}

.more-actions.is-open .actions-menu{
  display:block;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.actions-menu[aria-hidden="true"]{
  display:none;
}

.actions-menu[aria-hidden="false"]{
  display:block;
}

/* opcional: header genérico caso você adicione depois */
.actions-menu__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 8px 12px;
}

.actions-menu__title{
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:var(--fw-semibold);
}

.actions-menu__sep{
  height:1px;
  margin:4px 0;
  background:var(--border-2);
}

.actions-item{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:0;
  border-radius:var(--radius);
  background:transparent;
  color:var(--text-link);
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  font-family:var(--ff);
  font-size:13px;
  line-height:1.25;
  font-weight:var(--fw-semibold);
  white-space:normal;
  word-break:break-word;
  cursor:pointer;
  transition:
    background-color var(--t),
    color var(--t),
    opacity var(--t);
}

.actions-item + .actions-item{
  margin-top:2px;
}

.actions-item:hover{
  background:var(--muted);
  color:var(--text);
}

.actions-item:focus-visible{
  outline:none;
  background:var(--muted);
  color:var(--text);
  box-shadow:0 0 0 3px var(--accent-12);
}

.actions-item i{
  width:16px;
  min-width:16px;
  flex:0 0 16px;
  text-align:center;
  font-size:14px;
  color:var(--text-3);
  transition:color var(--t);
}

.actions-item:hover i,
.actions-item:focus-visible i{
  color:currentColor;
}

/* texto ocupa o resto sem quebrar ícone */
.actions-item span,
.actions-item .actions-item__text{
  min-width:0;
  flex:1 1 auto;
}

/* variações por ação */
.actions-item[data-action="favorite_special"]{
  color:var(--accent);
}

.actions-item[data-action="favorite_special"]:hover,
.actions-item[data-action="favorite_special"]:focus-visible{
  background:var(--accent-08);
  color:var(--accent);
}

.actions-item[data-action="favorite_special"] i{
  color:inherit;
}

.actions-item[data-action="report"]{
  color:#B7791F;
}

.actions-item[data-action="report"]:hover,
.actions-item[data-action="report"]:focus-visible{
  background:var(--warning-08);
  color:#A16207;
}

.actions-item[data-action="report"] i{
  color:inherit;
}

.actions-item[data-action="block"]{
  color:var(--danger);
}

.actions-item[data-action="block"]:hover,
.actions-item[data-action="block"]:focus-visible{
  background:var(--danger-08);
  color:var(--danger);
}

.actions-item[data-action="block"] i{
  color:inherit;
}

/* mute fica neutro, mais discreto */
.actions-item[data-action="mute"]{
  color:var(--text);
}

.actions-item[data-action="mute"]:hover,
.actions-item[data-action="mute"]:focus-visible{
  background:var(--muted);
  color:var(--text);
}

/* estados opcionais genéricos */
.actions-item.is-active{
  background:var(--accent-08);
  color:var(--accent);
}

.actions-item.is-danger{
  color:var(--danger);
}

.actions-item.is-danger:hover,
.actions-item.is-danger:focus-visible{
  background:var(--danger-08);
  color:var(--danger);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 991px){
  .actions-menu{
    right:0;
    left:auto;
    width:260px;
    max-width:min(280px, calc(100vw - 20px));
  }
}

@media (max-width: 640px){
  .more-actions{
    position:relative;
  }

  .actions-menu{
    top:calc(100% + 10px);
    right:0;
    left:auto;
    width:min(280px, calc(100vw - 16px));
    max-width:min(280px, calc(100vw - 16px));
    padding:6px;
    border-radius:14px;
  }

  .actions-item{
    min-height:40px;
    padding:10px 10px;
    gap:9px;
    font-size:12px;
  }

  .actions-item i{
    width:14px;
    min-width:14px;
    flex-basis:14px;
    font-size:13px;
  }
}

/* =========================================================
   FLOG PHOTOS LIST
   usa o mesmo card visual de latest-photo-item
========================================================= */

.latest-photos-grid,
.friend-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.info-row small {
  color: var(--text-color);
  opacity: 0.82;
  font-size: calc(var(--font-size) * (12 / 13));
  line-height: 1.4;
}

.latest-photos-grid .latest-photo-item {
  margin: 0;
}

.latest-photos-grid .photo-date {
  text-align: left;
}

@media (max-width: 991px) {
  .latest-photos-grid,
  .friend-badges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .latest-photos-grid,
  .friend-badges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .info-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .latest-photos-grid,
  .friend-badges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =========================================================
   PAGINAÇÃO - FOTOS
========================================================= */

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-item {
  margin: 0;
  padding: 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--button-radius);
  background: var(--background-color);
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--font-size);
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.10);
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.page-link:hover,
.page-link:focus-visible {
  background: var(--accent-color);
  color: var(--button-text-color, #fff);
  border-color: var(--accent-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: var(--accent-color);
  color: var(--button-text-color, #fff);
  border-color: var(--accent-color);
  font-weight: 600;
}

.page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transform: none;
}

@media (max-width: 767px) {
  .pagination {
    gap: 6px;
  }

  .page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}