/* ================================================
   LiberalVibe.com — Feed de Posts + Interações
   ================================================ */

/* Post Card — Bloco separado com visual moderno */
.post-card {
    margin: 5px 5px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(
        160deg,
        #1e1e24 0%,
        #1a1a20 50%,
        #17171d 100%
    );
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: fadeIn 0.3s ease;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

/* Reflexo sutil no topo do card */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 30%,
        rgba(255, 255, 255, 0.12) 70%,
        transparent 100%
    );
    pointer-events: none;
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

.feed-ad-post-card {
    border-color: rgba(245, 158, 11, 0.42);
}

.feed-ad-post-card.is-highlighted {
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(245, 158, 11, 0.18) inset;
}

.feed-ad-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: -2px 0 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.feed-ad-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.28);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-ad-content {
    display: grid;
    gap: 6px;
}

.feed-ad-clickable {
    cursor: pointer;
}

.feed-ad-content strong {
    font-size: 15px;
    line-height: 1.25;
}

.feed-ad-content span {
    color: rgba(255, 255, 255, 0.78);
}

.feed-ad-content em {
    color: #4ade80;
    font-style: normal;
    font-weight: 900;
}

.feed-ad-highlight {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.feed-ad-image img {
    object-fit: cover;
}

.feed-ad-action-static {
    cursor: default;
}

.feed-ad-action-static .count {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-ad-open-btn {
    background: linear-gradient(135deg, #f7235e, #e91e8c);
    border-color: rgba(233, 30, 140, .8);
    color: #fff;
}

.post-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.post-author-block {
    display: contents;
}

.post-author-block .post-avatar {
    grid-column: 1;
    justify-self: start;
}

.post-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.post-author-block .post-user-info {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
}

.post-author-block .post-user-name-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-user-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.post-author-block .post-user-name {
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.post-user-name:hover {
    text-decoration: underline;
}

.post-user-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}

.post-author-block .post-user-meta {
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.post-user-location {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-distance-badge {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.feed-post-mobile-date {
    display: none;
}

.post-user-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--online-green);
}

.post-time-wrapper {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-self: start;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    margin-top: -3px;
}

.post-follow-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.post-follow-presence {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary, #8b8da1);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.post-follow-presence.is-online {
    color: #00ff00;
}

.post-follow-presence.is-online .online-dot {
    background: #00ff00;
    box-shadow: none;
}

.post-follow-presence.is-offline {
    color: #ff0000;
}

.post-follow-presence.is-offline .online-dot {
    background: #ff0000;
    box-shadow: none;
}

.feed-post-date-center {
    display: block;
    width: 100%;
    margin-top: 3px;
    color: var(--text-secondary, #8b8da1);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.feed-post-date-center .post-time {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: center;
    white-space: nowrap;
}

.feed-post-date-center .post-hour-line {
    font-size: inherit;
    opacity: 1;
}

.post-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.05;
    white-space: nowrap;
    text-align: right;
}

.post-date-line,
.post-hour-line {
    display: block;
}

.post-hour-line {
    font-size: 11px;
    opacity: .82;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.post-menu-btn--footer {
    min-width: 40px;
    min-height: 34px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
}

.post-menu-btn--footer:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* Post Content */
.post-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-break: break-word;
}

.post-content--with-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 2px;
    padding-top: 10px;
}

.post-content a {
    color: var(--btn-pink);
    font-weight: 600;
}

/* Post Image */
.post-image-container {
    width: 100%;
    max-width: 630px;
    height: 400px;
    margin: 0 auto 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #111;
    cursor: pointer;
}

.post-image-container.is-ratio-4x3 {
    height: auto !important;
    aspect-ratio: 4 / 3;
}

.post-image-container.is-natural-ratio {
    height: auto !important;
    aspect-ratio: var(--post-media-ratio, 4 / 3);
}

.post-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;       /* sem corte — encaixa qualquer formato */
    object-position: center;
    transition: none;
    cursor: default;
}

.post-image-container.is-ratio-4x3 .post-image,
.post-image-container.is-natural-ratio .post-image,
.post-image-container.is-natural-ratio .post-carousel-track img,
.post-image-container.is-ratio-4x3 .post-carousel-track img,
.post-image-container.is-natural-ratio .video-preview-media,
.post-image-container.is-ratio-4x3 .video-preview-media,
.post-image-container.is-natural-ratio .video-poster-image,
.post-image-container.is-ratio-4x3 .video-poster-image {
    height: 100% !important;
    object-fit: cover;
}

/* Botão "Ampliar" — canto inferior direito — sempre visível */
.video-preview-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.video-poster-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,.18);
    pointer-events: none;
}

.video-play-overlay i {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 34px;
    text-shadow: 0 4px 15px rgba(0,0,0,.5);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    padding-left: 4px;
}

.post-img-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    opacity: 1;
    user-select: none;
    z-index: 2;
    letter-spacing: 0.3px;
    pointer-events: none; /* container inteiro já captura o click */
}
.post-img-expand i { font-size: 13px; }

/* Image Carousel */
.post-carousel {
    position: relative;
    overflow: hidden;
}

.post-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.post-carousel-track img {
    width: 100%;
    height: 400px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
}

.post-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.post-carousel-prev { left: 10px; }
.post-carousel-next { right: 10px; }

.post-carousel-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.18);
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--text-primary);
    transform: scale(1.4);
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 5px;
    min-width: 0;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(8px, 2vw, 18px);
    flex: 1 1 auto;
    min-width: 0;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    padding: 5px;
}

.post-action-btn:hover {
    color: var(--text-primary);
}

.post-action-btn.heart-active {
    color: var(--heart-red);
}

.post-action-btn.like-active {
    color: var(--like-yellow);
}

.post-action-btn .count {
    font-weight: 700;
    font-size: 13px;
}

.post-action-btn i {
    font-size: 18px;
}

.post-footer-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
}

.post-chat-btn {
    min-height: 38px;
    min-width: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #f97316;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.post-chat-btn:hover {
    transform: translateY(-1px);
    background: #ea6a0a;
    border-color: #ea6a0a;
    color: #fff;
}

.post-chat-btn i {
    font-size: 13px;
}

.post-follow-btn {
    min-height: 38px;
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid rgba(233, 30, 140, .8);
    border-radius: 999px;
    background: linear-gradient(135deg, #f7235e, #e91e8c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
}

.post-follow-btn:hover {
    transform: translateY(-1px);
}

.post-follow-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.post-follow-btn.is-following {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    color: #e7e9ea;
}

.post-follow-btn i {
    font-size: 13px;
}

.post-follow-btn--header {
    min-height: 30px;
    min-width: 96px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #ec1682;
    border-radius: 8px;
    background: #ec1682;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    box-shadow: none;
}

.post-follow-btn--header.is-following {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    color: #e7e9ea;
}

/* Animação de coração */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-pop {
    animation: heartPop 0.3s ease;
}

/* Gift btn */
.post-gift-btn {
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color var(--transition-fast);
    background: none;
    border: none;
}

.post-gift-btn:hover {
    color: var(--like-yellow);
}

.post-gift-btn--full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform .15s ease;
    letter-spacing: .3px;
    white-space: nowrap;
    min-width: 78px;
}

.post-gift-btn--full i {
    font-size: 15px;
}

.post-gift-btn--full:hover {
    background: #c2410c;
    color: #fff;
    transform: scale(1.04);
}

/* "ver curtidas" link */
.post-see-likes {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    padding: 5px 0;
}

.post-see-likes:hover {
    color: var(--text-primary);
}

/* Feed end sentinel */
.feed-sentinel {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.feed-end {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================
   COMMENTS MODAL
   ============================ */
.comments-modal {
    z-index: 8500 !important;
}

.comments-modal .modal-content {
    max-width: 550px;
    height: min(74dvh, 660px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.comments-modal .modal-header {
    flex-shrink: 0;
}

.comments-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 15px 20px;
    overscroll-behavior: contain;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.comment-body {
    flex: 1;
}

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

.comment-author {
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
}

.comment-like-btn:hover {
    color: var(--like-yellow);
}

.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: auto;
    opacity: 0.5;
    transition: all var(--transition-fast);
}
.comment-delete-btn:hover {
    color: #ef4444;
    opacity: 1;
}

/* Separador "Nome - tempo" */
.comment-author::after {
    content: ' — ';
    color: var(--text-secondary);
    font-weight: 400;
}

/* Respostas em cascata */
.comment-replies {
    margin-left: 46px;
    border-left: 2px solid rgba(255,255,255,.08);
    padding-left: 12px;
    margin-top: 4px;
}

.comment-reply {
    margin-bottom: 12px;
}

.comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--btn-pink, #e91e8c);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.75;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.comment-reply-btn:hover {
    opacity: 1;
    color: var(--btn-pink, #e91e8c);
}

/* Comment Input */
.comment-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
    flex-shrink: 0;
    min-height: 66px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.comment-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.comment-input:focus {
    border-color: var(--btn-pink);
}

.comment-send-btn {
    background: none;
    border: none;
    color: var(--btn-pink);
    font-size: 20px;
    cursor: pointer;
}

.comment-send-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ============================
   LIKES/HEARTS MODAL
   ============================ */
#likesModal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: min(80vh, 640px);
    overflow: hidden;
}

#likesModal .modal-header {
    flex-shrink: 0;
}

.likes-list {
    padding: 10px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--btn-pink) rgba(255,255,255,.08);
    max-height: calc(min(80vh, 640px) - 58px);
    -webkit-overflow-scrolling: touch;
}

.likes-list::-webkit-scrollbar {
    width: 8px;
}

.likes-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.likes-list::-webkit-scrollbar-thumb {
    background: var(--btn-pink);
    border-radius: 999px;
    border: 2px solid var(--bg-card);
}

.likes-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.likes-item:last-child {
    border-bottom: none;
}

.likes-item-info {
    flex: 1;
}

.likes-item-name {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.likes-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .post-card {
        padding: 12px;
        margin: 5px 4px;
        border-radius: 12px;
    }
    
    .post-actions {
        gap: 10px;
    }

    .post-footer {
        justify-content: space-between;
    }

    .post-footer-cta {
        gap: 7px;
    }

    .post-follow-btn {
        min-width: 88px;
        padding: 0 12px;
    }

    .post-gift-btn--full {
        min-width: 132px;
        padding: 0 12px;
    }

    .comments-modal .modal-content {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow: hidden !important;
    }
}

/* Rodape do feed: desktop e desktop mobile seguem o mesmo layout do mobile. */
.post-footer {
    gap: 7px;
}

.post-actions {
    align-self: stretch;
    justify-content: space-evenly;
    gap: 4px;
    min-height: 34px;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
}

.post-action-btn {
    flex: 1 1 0;
    justify-content: center;
    gap: 2px;
    padding: 4px 1px;
    min-width: 0;
}

.post-action-btn i {
    font-size: 16px;
}

.post-action-btn .count {
    font-size: 11px;
}

.post-footer-cta {
    gap: 5px;
    flex: 0 0 auto;
    padding-left: 9px;
    align-items: center;
}

.post-footer-cta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255,255,255,.22),
        transparent
    );
}

.post-chat-btn,
.post-follow-btn,
.post-gift-btn--full {
    min-height: 34px;
    font-size: 10.5px;
    gap: 4px;
    padding: 0 7px;
    flex: 0 0 auto;
}

.post-chat-btn {
    min-width: 56px;
}

.post-follow-btn {
    min-width: 62px;
}

.post-gift-btn--full {
    min-width: 70px;
}

.post-gift-text-full {
    display: inline;
}

@media (max-width: 480px) {
    .post-footer {
        gap: 7px;
    }

    .post-actions {
        align-self: stretch;
        justify-content: space-evenly;
        gap: 4px;
        min-height: 34px;
        padding: 0 7px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 999px;
        background: rgba(255,255,255,.025);
    }

    .post-action-btn {
        flex: 1 1 0;
        justify-content: center;
        gap: 2px;
        padding: 4px 1px;
        min-width: 0;
    }

    .post-action-btn i {
        font-size: 16px;
    }

    .post-action-btn .count {
        font-size: 11px;
    }

    .post-footer-cta {
        gap: 5px;
        flex: 0 0 auto;
        padding-left: 9px;
        align-items: center;
    }

    .post-footer-cta::before {
        content: "";
        position: absolute;
        left: 0;
        top: 5px;
        bottom: 5px;
        width: 1px;
        border-radius: 999px;
        background: linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );
    }

    .post-chat-btn,
    .post-follow-btn,
    .post-gift-btn--full {
        min-height: 34px;
        font-size: 10.5px;
        gap: 4px;
        padding: 0 7px;
        flex: 0 0 auto;
    }

    .post-chat-btn {
        min-width: 56px;
    }

    .post-follow-btn {
        min-width: 62px;
    }

    .post-gift-btn--full {
        min-width: 70px;
    }

    .post-menu-btn--footer {
        min-width: 40px;
        min-height: 34px;
        flex-basis: 40px;
        padding: 0 10px;
    }

    .post-gift-text-full {
        display: inline;
    }
}

@media (max-width: 360px) {
    .post-footer {
        gap: 5px;
    }

    .post-actions {
        gap: 2px;
        padding: 0 5px;
    }

    .post-action-btn {
        padding: 3px 1px;
    }

    .post-action-btn i {
        font-size: 15px;
    }

    .post-action-btn .count {
        font-size: 10px;
    }

    .post-chat-btn,
    .post-follow-btn,
    .post-gift-btn--full {
        min-height: 32px;
        width: auto;
        padding: 0 5px;
        font-size: 9.5px;
        gap: 3px;
        letter-spacing: 0;
        flex: 0 0 auto;
    }

    .post-menu-btn--footer {
        min-width: 38px;
        min-height: 32px;
        flex-basis: 38px;
        padding: 0 10px;
        font-size: 16px;
    }

    .post-footer-cta {
        gap: 3px;
        padding-left: 7px;
    }

    .post-chat-btn i,
    .post-follow-btn i,
    .post-gift-btn--full i {
        font-size: 12px;
    }

    .post-chat-btn span,
    .post-follow-btn span,
    .post-gift-text-full {
        display: inline;
        font-size: inherit;
    }
}

.post-header .post-follow-btn--header {
    min-height: 30px;
    min-width: 96px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}

@media (max-width: 430px) {
    .post-header {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .feed-post-date-center {
        display: none;
    }

    .post-author-block .post-user-meta {
        gap: 2px 4px;
        line-height: 1.25;
    }

    .post-author-block .post-user-location {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .post-distance-prefix {
        display: none;
    }

    .feed-post-mobile-date {
        display: inline;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        white-space: nowrap;
    }

    .post-header .post-follow-btn--header {
        min-width: 78px;
        padding: 6px 8px;
        gap: 4px;
    }

    .post-time-wrapper {
        margin-top: -4px;
        gap: 5px;
    }

    .post-follow-presence {
        font-size: 9px;
    }
}

/* ============================
   POST MENU POPUP (3 pontinhos)
   ============================ */
.post-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.post-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.post-menu-sheet {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    padding: 0 16px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
}

.post-menu-overlay.active .post-menu-sheet {
    transform: translateY(0);
}

.post-menu-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-card, #1e2028);
    color: var(--text-primary, #e7e9ea);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.post-menu-option:first-child {
    border-radius: 14px 14px 0 0;
}

.post-menu-sheet.post-menu-visitor #postMenuReport {
    border-radius: 14px 14px 0 0;
}

.post-menu-sheet.post-menu-visitor #postMenuBlock,
.post-menu-sheet.post-menu-owner #postMenuDelete {
    border-radius: 0 0 14px 14px;
    border-bottom: none;
}

.post-menu-option:hover {
    background: rgba(255, 255, 255, .08);
}

.post-menu-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Remover — vermelho */
.post-menu-danger {
    color: #ef4444;
    border-radius: 0 0 14px 14px;
    border-bottom: none;
}

.post-menu-danger:hover {
    background: rgba(239, 68, 68, .1);
}

/* Cancelar — azul, separado */
.post-menu-cancel {
    margin-top: 8px;
    border-radius: 14px;
    border-bottom: none;
    color: #3b82f6;
    font-weight: 700;
    letter-spacing: .3px;
}

.post-menu-cancel:hover {
    background: rgba(59, 130, 246, .08);
}
