:root {
    --feed-surface: #ffffff;
    --feed-muted-surface: #f8fafc;
    --feed-border: #d8e2ee;
    --feed-border-strong: #c7d3e0;
    --feed-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    --feed-shadow-soft: none;
    --feed-title: #0f172a;
    --feed-text: #334155;
    --feed-muted: #667085;
    --feed-accent: #0f766e;
    --feed-accent-soft: rgba(15, 118, 110, 0.12);
    --feed-chip-bg: #ffffff;
}

body.night-mode {
    --feed-surface: #1b2431;
    --feed-muted-surface: #111827;
    --feed-border: rgba(148, 163, 184, 0.18);
    --feed-border-strong: rgba(148, 163, 184, 0.26);
    --feed-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
    --feed-shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.28);
    --feed-title: #f8fafc;
    --feed-text: #d7e1ec;
    --feed-muted: #94a3b8;
    --feed-accent: #5eead4;
    --feed-accent-soft: rgba(94, 234, 212, 0.14);
    --feed-chip-bg: #162132;
}

.ele_post_filters {
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--feed-border);
    border-radius: 16px;
    background: #ffffff;
}

body.night-mode .ele_post_filters {
    background: #111827;
}

.ele_post_filters_nav {
    gap: 8px;
}

.ele_post_filters .filterby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--feed-text);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ele_post_filters .filterby.active,
.ele_post_filters .filterby:hover {
    background: var(--feed-muted-surface);
    color: var(--feed-title);
}

body.night-mode .ele_post_filters .filterby.active,
body.night-mode .ele_post_filters .filterby:hover {
    background: #162132;
}

.js_posts_stream > ul {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.post {
    position: relative;
    border: 1px solid var(--feed-border);
    border-radius: 20px;
    background: var(--feed-surface);
    box-shadow: var(--feed-shadow);
    overflow: visible;
}

.post::before {
    content: "";
    position: absolute;
    top: 1px !important;
    left: 2px !important;
    right: 2px !important;
    height: 4px;
    background: linear-gradient(90deg, var(--feed-accent), #38bdf8, #f59e0b);
    border-radius: 9999px !important;
    opacity: 0.9;
    pointer-events: none !important;
}

.post-body {
    padding: 24px 24px 18px;
}

.post-header {
    align-items: flex-start;
}

.post-avatar-picture,
.comment-avatar-picture {
    box-shadow: none;
    border: 1px solid var(--feed-border);
}

.post-meta .title,
.comment-author {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--feed-title);
}

.comment-author .comment-btn {
    position: static;
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    margin-left: auto;
    z-index: 3;
}

.comment-author .dropdown-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 2px;
    border-radius: 999px;
    color: var(--feed-muted);
    background: transparent;
}

.comment-author .dropdown-toggle-icon:hover {
    color: var(--feed-title);
    background: var(--feed-muted-surface);
}

.post-author,
.comment-author a {
    font-family: "Gilroy", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--feed-title);
}

.post-title,
.post-sub-item,
.comment-text,
.comment-text-plain {
    color: var(--feed-text);
}

.post-time {
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.post-time .font-weight-bold,
.post-stats .post-stat-separator {
    color: var(--feed-border-strong);
}

.post-actions {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin-top: 18px;
    padding: 16px 0 0;
    border-top: 1px solid var(--feed-border);
    gap: 12px;
    flex-wrap: nowrap;
    overflow: visible;
}

.post-actions > .valign {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.post-actions .action-btn,
.post-actions .reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 0 1 auto;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--feed-text);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.post-actions .action-btn:hover,
.post-actions .reaction-btn:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    color: var(--feed-title);
}

.post-actions .reaction-btn {
    min-height: 44px;
}

.post-actions .action-btn .stat-ico-bg,
.post-actions .reaction-btn .reaction-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 1px solid var(--feed-border);
    border-radius: 10px;
    background: var(--feed-muted-surface);
    color: var(--feed-accent);
}

.post-actions .reaction-btn .reaction-btn-icon {
    border-radius: 10px;
}

.post-actions .action-btn span,
.post-actions .reaction-btn-name,
.post-actions .action-btn.js_comment span {
    display: inline-flex !important;
    align-items: center;
    font-family: "Gilroy", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.post-stats {
    margin-top: 16px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--feed-border);
    border-radius: 0;
    background: transparent;
    gap: 10px 18px;
    flex-wrap: wrap;
}

.post-stats > .valign {
    gap: 8px;
    flex-wrap: wrap;
}

.post-stat-chip,
.post-stats .reactions-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--feed-muted);
    font-size: 13px;
    font-weight: 600;
}

.post-stats .reactions-stats {
    padding-inline-end: 0;
}

.post-replace > a[data-readmore-toggle] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 6px 12px;
    border: 1px solid var(--feed-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--feed-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-replace > a[data-readmore-toggle]:hover {
    background: var(--feed-muted-surface);
    color: var(--feed-title);
    text-decoration: none;
}

.post-replace > a[data-readmore-toggle] .readmore-toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.post-replace > a[data-readmore-toggle].readmore-toggle-less .readmore-toggle-icon {
    transform: rotate(-135deg);
}

body.night-mode .post-replace > a[data-readmore-toggle] {
    background: #162132;
}

.post-snippet {
    width: 100%;
    margin: 14px 0 0;
    border: 1px solid var(--feed-border);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

body.night-mode .post-snippet {
    background: #162132;
}

.post-snippet > div {
    width: 100%;
}

.post-snippet .post-media,
.post-snippet .post-site-link,
.post-snippet .post-media-image,
.post-snippet .post-replace {
    width: 100%;
    max-width: 100%;
}

.post-snippet .post-site-link,
.post-snippet .post-media {
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
}

.post-snippet .post-text,
.post-snippet .post-text-translation,
.post-snippet .post-time,
.post-snippet .post-header {
    width: 100%;
}

.post .post-video-wrapper {
    position: relative;
    width: 100%;
    margin: 14px 0 0;
    border: 1px solid var(--feed-border);
    border-radius: 18px;
    background: #000;
    overflow: hidden;
}

.post .post-video-wrapper.post-media-video {
    box-shadow: none;
}

.post .post-video-wrapper:not(.is-reel) {
    max-width: 100%;
}

.post .post-video-wrapper.is-reel {
    width: min(100%, clamp(280px, 34vw, 360px));
    max-width: 100%;
    max-height: min(78vh, 680px);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9 / 16;
}

.post .post-video-wrapper .plyr {
    min-width: 0;
    width: 100%;
    border-radius: 18px;
}

.post .post-video-wrapper .plyr__video-wrapper {
    width: 100%;
    background: #000;
}

.post .post-video-wrapper video {
    display: block;
    width: 100%;
    background: #000;
}

.post .post-video-wrapper.is-reel .plyr,
.post .post-video-wrapper.is-reel .plyr__video-wrapper,
.post .post-video-wrapper.is-reel video {
    height: 100%;
}

.post .post-video-wrapper.is-reel video,
.post .post-video-wrapper .post-reel-video {
    object-fit: cover;
}

.post .post-video-wrapper .plyr__poster {
    background-size: cover;
}

.post-snippet .post-video-wrapper {
    margin-top: 0;
    border-inline: 0;
    border-top: 0;
    border-radius: 0 0 16px 16px;
}

.post .post-video-wrapper.is-reel .plyr__video-wrapper video,
.post .post-video-wrapper .post-reel-video {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.plyr--fullscreen .plyr__video-wrapper,
.plyr--fullscreen .plyr__video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}


.post-footer {
    padding: 0 24px 24px;
    background: transparent;
}

.post-comments {
    padding-top: 18px;
    border-top: 1px solid var(--feed-border);
}

.comments-filter .btn-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--feed-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--feed-text);
}

.comment.js_comment-form {
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--feed-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

.comment-form textarea {
    min-height: 44px;
    color: var(--feed-text);
    font-size: 14px;
    line-height: 1.5;
}

.comment-form textarea::placeholder {
    color: var(--feed-muted);
}

.comment-form .form-select,
.comment-form .js_post-as-page {
    border: 1px solid var(--feed-border);
    border-radius: 14px;
    background: var(--feed-muted-surface);
}

.x-form-tools {
    gap: 8px;
}

.x-form-tools li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--feed-border);
    border-radius: 10px;
    background: var(--feed-muted-surface);
    color: var(--feed-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.x-form-tools li:hover {
    background: var(--feed-accent-soft);
    color: var(--feed-accent);
}

.comment-form .x-form-tools-post {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.comment-form .x-form-tools-post svg {
    display: block;
    margin: 0 auto;
}

.js_comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.comment {
    list-style: none;
    padding-bottom: 10px;
}

.comment-avatar {
    float: left;
}

.comment-data,
.comment-edit {
    margin-left: 56px;
}


.comment:not(.js_comment-form) .comment-data {
    position: relative;
    width: auto;
    min-width: 0;
}

.comment:not(.js_comment-form) .comment-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    z-index: 3;
}

.comment:not(.js_comment-form) .dropdown-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 999px;
    color: var(--feed-muted);
    background: transparent;
}

.comment:not(.js_comment-form) .dropdown-toggle-icon:hover {
    color: var(--feed-title);
    background: var(--feed-muted-surface);
}

.comment:not(.js_comment-form) .comment-inner {
    padding: 14px 44px 14px 16px;
    border: 1px solid var(--feed-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

.comment.reply .comment-inner {
    background: var(--feed-muted-surface);
}

.comment-text {
    line-height: 1.65;
}

.comment-img-box img {
    border-radius: 16px;
    border: 1px solid var(--feed-border);
}

.comment-actions {
    margin: 10px 0 0;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-actions li,
.comment-actions .reaction-btn-name,
.comment-actions .text-link,
.comment-actions small {
    font-size: 12px;
    font-weight: 600;
    color: var(--feed-muted);
}

.comment-actions .text-link:hover,
.comment-actions .reaction-btn-name:hover {
    color: var(--feed-accent);
}

.js_see-more > .btn,
.js_see-more span.btn {
    padding: 11px 18px;
    border: 1px solid var(--feed-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--feed-text);
    font-weight: 600;
    box-shadow: none;
}

.posts-staging-btn {
    border: 1px solid rgba(15, 118, 110, 0.16);
    box-shadow: none;
}

.panel-messages .ele_write_message {
    gap: 8px;
    align-items: center;
}

.chat-widget .chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 8px;
    border-top: 1px solid var(--feed-border);
    background: #ffffff;
}

.panel-messages .ele_write_message .chat-form-message,
.chat-widget .chat-form .chat-form-message {
    position: relative;
    flex: 1 1 auto;
    min-height: 46px;
    border: 1px solid var(--feed-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
}

.panel-messages .ele_write_message .chat-form-message textarea,
.chat-widget .chat-form .chat-form-message textarea {
    min-height: 46px;
    padding: 12px 44px 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.chat-widget .chat-form .x-form-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
}

.chat-widget .ele_write_message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.chat-widget .ele_write_message .chat-form-message {
    padding-bottom: 64px;
}

.chat-widget .ele_write_message .chat-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 0 4px 8px;
    box-sizing: border-box;
}

.chat-widget .ele_write_message .chat-form-actions > button,
.chat-widget .ele_write_message .chat-form-actions li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--feed-border);
    border-radius: 12px;
    background: var(--feed-muted-surface);
    color: var(--feed-muted);
    box-shadow: none;
}

.chat-widget .ele_write_message .chat-form-actions li {
    margin: 0;
}

.chat-widget .ele_write_message .chat-form-actions > button:before,
.chat-widget .ele_write_message .chat-form-actions li:before {
    display: none;
}

.chat-widget .ele_write_message .chat-form-actions > button:hover,
.chat-widget .ele_write_message .chat-form-actions li:hover {
    background: var(--feed-accent-soft);
    color: var(--feed-accent);
}

.chat-widget .ele_write_message .chat-form-actions button svg,
.chat-widget .ele_write_message .chat-form-actions li svg {
    width: 18px;
    height: 18px;
}

.panel-messages .ele_write_message .chat-form-message .x-form-tools-emoji,
.chat-widget .chat-form .chat-form-message .x-form-tools-emoji {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--feed-muted);
    box-shadow: none;
}

.panel-messages .ele_write_message .chat-form-message .x-form-tools-emoji:hover,
.chat-widget .chat-form .chat-form-message .x-form-tools-emoji:hover {
    color: var(--feed-title);
    background: transparent;
}

.panel-messages .ele_write_message .btn-mat:not(.btn-primary),
.panel-messages .ele_write_message .x-form-tools-post,
.chat-widget .chat-form .x-form-tools > li,
.chat-widget .chat-form .x-form-tools-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--feed-border);
    border-radius: 12px;
    background: var(--feed-muted-surface);
    color: var(--feed-muted);
    box-shadow: none;
}

.panel-messages .ele_write_message .btn-mat:not(.btn-primary):before,
.chat-widget .chat-form .x-form-tools > li:before {
    display: none;
}

.panel-messages .ele_write_message .btn-mat:not(.btn-primary):hover,
.panel-messages .ele_write_message .x-form-tools-post:hover,
.chat-widget .chat-form .x-form-tools > li:hover,
.chat-widget .chat-form .x-form-tools-post:hover {
    background: var(--feed-accent-soft);
    color: var(--feed-accent);
}

.panel-messages .ele_write_message .btn-mat:not(.btn-primary) svg,
.panel-messages .ele_write_message .x-form-tools-post svg,
.chat-widget .chat-form .x-form-tools > li svg,
.chat-widget .chat-form .x-form-tools-post svg {
    width: 18px;
    height: 18px;
}

.panel-messages .ele_write_message .btn-mat.btn-primary,
.chat-widget .chat-form .btn-mat.btn-primary {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 12px;
    box-shadow: none;
}

.panel-messages .ele_write_message .btn-mat.btn-primary span,
.chat-widget .chat-form .btn-mat.btn-primary span {
    display: none;
}

body.night-mode .panel-messages .ele_write_message .chat-form-message,
body.night-mode .chat-widget .chat-form .chat-form-message {
    background: #162132;
}

body.night-mode .chat-widget .chat-form {
    background: #111827;
}

@media (max-width: 991px) {
    .post-body,
    .post-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 767px) {
    .post {
        border-radius: 18px;
    }

    .post-body {
        padding: 16px 14px 14px;
    }

    .post-footer {
        padding: 0 14px 16px;
    }

    .post .post-video-wrapper {
        border-radius: 16px;
    }

    .post .post-video-wrapper .plyr {
        border-radius: 16px;
    }


    .post .post-video-wrapper.is-reel {
        width: min(100%, 340px);
        max-width: 100%;
        max-height: min(72vh, 560px);
    }

    .comment-form {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .post-actions {
        gap: 8px;
    }

    .post-actions > .valign {
        width: auto;
        justify-content: flex-start;
        gap: 6px;
    }

    .post-actions > .valign:last-child {
        margin-left: auto;
    }

    .post-actions .action-btn,
    .post-actions .reaction-btn {
        flex: 0 0 auto;
        width: 42px;
        min-width: 42px;
        height: 42px;
        justify-content: center;
        font-size: 0;
        gap: 0;
        padding: 0;
    }

    .post-actions .action-btn .stat-ico-bg,
    .post-actions .reaction-btn .reaction-btn-icon {
        margin: 0;
    }

    .post-actions .action-btn span,
    .post-actions .reaction-btn-name,
    .post-actions .action-btn.js_comment span {
        display: none !important;
    }

    .post-meta .title {
        align-items: flex-start;
        row-gap: 3px;
    }

    .post-meta .title .post-title {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        line-height: 1.25;
        color: var(--feed-muted);
        font-weight: 600;
    }

    .post-meta .title .post-title .post-author {
        color: var(--feed-title);
        font-weight: 700;
    }

    .post-meta .title .post-title .fa-caret-right {
        margin-left: 2px !important;
        margin-right: 2px !important;
        opacity: 0.65;
    }

    .post-meta .title .post-title .badge.rounded-pill {
        font-size: 11px;
        line-height: 1;
        padding: 4px 8px;
        border-radius: 999px;
    }

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

    .post-time .post-sub-item {
        font-size: 12px;
        color: var(--feed-muted);
    }
}


.comment-replies {
    width: 100%;
    padding-top: 10px;
    padding-left: 56px;
    box-sizing: border-box;
}

.comment-replies > ul {
    width: 100%;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.comment-replies .comment.reply {
    width: 100%;
}

.comment-replies .comment.reply .comment-data {
    min-width: 0;
}

.comment-replies .comment.reply .comment-inner {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .comment-replies {
        padding-left: 28px;
    }
}
