/* =========================================================
   ACTIVITY PAGE — ROUNDED CARDS
   ========================================================= */

/*
 * Shared surface treatment for every BuddyPress/Youzify context.
 * These selectors deliberately target known card containers only; avatars,
 * buttons, dropdowns and media thumbnails retain their native shapes.
 */
html body #youzify-bp.youzify-profile .youzify-widget,
html body #youzify-bp.youzify-profile .youzify-author,
html body #youzify-bp.youzify-profile #youzify-profile-navmenu,
html body #youzify-bp.youzify-profile .item-list-tabs,
html body #youzify-bp .youzify-my-account-widget,
html body #youzify-bp #youzify-wall-nav,
html body #youzify-bp .youzify-mobile-nav,
html body #youzify-bp #youzify-wall-form,
html body #youzify-bp #activity-stream > li.activity-item {
    border-radius: 14px !important;
}

@media screen and (max-width: 767px) {
    html body #youzify-bp.youzify-profile .youzify-widget,
    html body #youzify-bp.youzify-profile .youzify-author,
    html body #youzify-bp.youzify-profile #youzify-profile-navmenu,
    html body #youzify-bp.youzify-profile .item-list-tabs,
    html body #youzify-bp .youzify-my-account-widget,
    html body #youzify-bp #youzify-wall-nav,
    html body #youzify-bp .youzify-mobile-nav,
    html body #youzify-bp #youzify-wall-form,
    html body #youzify-bp #activity-stream > li.activity-item {
        border-radius: 12px !important;
    }
}

/* منوی بالای صفحه در دسکتاپ و موبایل */
html body #youzify-bp #youzify-wall-nav,
html body #youzify-bp .youzify-mobile-nav,

/* کادر ارسال نوشته */
html body #youzify-bp #youzify-wall-form,

/* تمام پست‌ها */
html body #youzify-bp #activity-stream > li.activity-item {
    border-radius: 14px !important;
}

/* گوشه‌های بالای کادر نوشتن */
html body #youzify-bp #youzify-wall-form .youzify-wall-options {
    border-radius: 14px 14px 0 0 !important;
}

/* گوشه‌های پایین کادر نوشتن */
html body #youzify-bp #youzify-wall-form .youzify-wall-actions {
    border-radius: 0 0 14px 14px !important;
}/* کادر حساب کاربری سمت چپ صفحه Activity */
html body #youzify-bp .youzify-my-account-widget {
    border-radius: 14px !important;
    overflow: hidden !important;
}/* حذف گزینه اشتراک‌گذاری از زیر پست‌های Activity */
html body #youzify-bp #activity-stream
.activity-meta > a.share-activity {
    display: none !important;
}

/* تقسیم مساوی دو گزینه باقی‌مانده در موبایل */
@media screen and (max-width: 475px) {
    html body #youzify-bp #activity-stream
    .activity-meta > a.fav,
    
    html body #youzify-bp #activity-stream
    .activity-meta > a.unfav,
    
    html body #youzify-bp #activity-stream
    .activity-meta > a.acomment-reply {
        width: 50% !important;
    }
}
/* =========================================================
   ACTIVITY — FINAL MOBILE CONTROLS
   ========================================================= */

@media screen and (max-width: 767px) {

    /* ---------- دکمه واضح سه‌نقطه ---------- */

    html body #youzify #youzify-bp
    #activity-stream > li.activity-item .youzify-show-item-tools {
        position: absolute !important;
        top: 14px !important;
        right: auto !important;
        left: 14px !important;
        z-index: 100001 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 42px !important;
        height: 36px !important;
        line-height: 36px !important;

        background-color: #eef7fb !important;
        border: 1px solid #d5e9f2 !important;
        border-radius: 18px !important;
        box-shadow: 0 3px 10px rgba(29, 112, 151, 0.13) !important;
    }

    html body #youzify #youzify-bp
    #activity-stream > li.activity-item .youzify-show-item-tools i {
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        opacity: 1 !important;
        font-size: 0 !important;
    }

    /* سه نقطه افقی و واضح */
    html body #youzify #youzify-bp
    #activity-stream > li.activity-item .youzify-show-item-tools i::before {
        content: "\f141" !important;
        display: block !important;
        color: #21759b !important;
        font-family: "Font Awesome 5 Free" !important;
        font-size: 17px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    /* ---------- منوی ویرایش و حذف ---------- */

    html body #youzify #youzify-bp
    #activity-stream > li.activity-item >
    .youzify-item-tools.youzify-activity-tools {
        position: absolute !important;
        top: 57px !important;
        right: auto !important;
        left: 14px !important;
        z-index: 100000 !important;

        width: 210px !important;
        max-width: calc(100% - 28px) !important;
        padding: 8px !important;

        background-color: #ffffff !important;
        border: 1px solid #e5e9ed !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
    }

    html body #youzify #youzify-bp
    .youzify-activity-tools .youzify-item-tool {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 7px 8px !important;
        border-radius: 8px !important;
    }

    html body #youzify #youzify-bp
    .youzify-activity-tools .youzify-tool-name {
        display: block !important;
        flex: 1 1 auto !important;
        text-align: right !important;
    }

    /* ---------- ردیف لایک و دیدگاه ---------- */

    html body #youzify #youzify-bp
    #activity-stream > li.activity-item .activity-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 12px 14px 14px !important;
        border-top: 1px solid #f0f1f2 !important;
        border-spacing: 0 !important;
        table-layout: auto !important;
        line-height: normal !important;
    }

    /* اشتراک‌گذاری همچنان مخفی */
    html body #youzify #youzify-bp
    #activity-stream .activity-meta > a.share-activity {
        display: none !important;
    }

    /* دو دکمه باقی‌مانده */
    html body #youzify #youzify-bp
    #activity-stream .activity-meta > a.fav,

    html body #youzify #youzify-bp
    #activity-stream .activity-meta > a.unfav,

    html body #youzify #youzify-bp
    #activity-stream .activity-meta > a.acomment-reply {
        display: flex !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;

        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 8px !important;

        color: #74808b !important;
        background-color: #f5f7f9 !important;
        border: 1px solid #e8ecef !important;
        border-radius: 10px !important;
        box-shadow: none !important;

        font-size: 14px !important;
        line-height: 20px !important;
        text-align: center !important;
    }

    /* آیکون دکمه‌ها */
    html body #youzify #youzify-bp
    #activity-stream .activity-meta > a::before {
        margin: 0 !important;
        color: #9aa3ab !important;
        font-size: 16px !important;
        line-height: 1 !important;
    }
}

/* =========================================================
   ACTIVITY COMMENT FORM — DESKTOP + MOBILE — FINAL
   ========================================================= */

/* جلوگیری از بیرون‌زدگی فرم */
html body #youzify #youzify-bp
#activity-stream > li.activity-item .activity-comments {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* فرم دیدگاه */
html body #youzify #youzify-bp
#activity-stream > li.activity-item
.activity-comments > form.ac-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: #f8fafb !important;
    position: relative !important;
    z-index: 30 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* محتوای داخلی فرم */
html body #youzify #youzify-bp
.activity-comments .ac-reply-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* نگهدارنده کادر نوشتن */
html body #youzify #youzify-bp
.activity-comments .ac-textarea.youzify-comments-emojis {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* textarea اصلی؛ عمداً display:block ندارد */
html body #youzify #youzify-bp
.activity-comments textarea.ac-input {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 72px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 16px 14px 54px !important;
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    resize: vertical !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.8 !important;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* مخفی ماندن textarea اصلی پس از ساخت ادیتور شکلک */
html body #youzify #youzify-bp
.activity-comments textarea.ac-input[style*="display: none"] {
    display: none !important;
}

/* حالت تکمیلی برای حذف قطعی کادر تکراری */
html body #youzify #youzify-bp
.activity-comments
.ac-textarea:has(> .youzify-emojionearea) > textarea.ac-input {
    display: none !important;
}

/* کادر واقعی ساخته‌شده توسط Emoji */
html body #youzify #youzify-bp
.activity-comments .youzify-emojionearea {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* ادیتور داخل کادر شکلک */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-editor {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 70px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 16px 14px 54px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    line-height: 1.8 !important;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* دکمه اولیه شکلک */
html body #youzify #youzify-bp
.activity-comments .youzify-load-emojis {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    left: 14px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 20 !important;
}

/* پس از ساخت ادیتور، دکمه اولیه مخفی شود */
html body #youzify #youzify-bp
.activity-comments
.ac-textarea:has(.youzify-emojionearea) > .youzify-load-emojis {
    display: none !important;
}

/* دکمه باز و بسته‌کردن پنجره شکلک */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    left: 14px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    z-index: 100020 !important;
}

/* قرارگیری آیکن شکلک */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button > div {
    top: 5px !important;
    right: auto !important;
    left: 5px !important;
}

/* دکمه بستن واضح هنگام باز بودن شکلک‌ها */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e6f4f9 !important;
    box-shadow: 0 0 0 1px #b9deeb !important;
}

/* مخفی‌کردن تصویر قدیمی در حالت باز */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button.active > div {
    display: none !important;
}

/* علامت بستن واضح */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button.active::before {
    content: "×" !important;
    display: block !important;
    color: #2786a8 !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

/* پنجره انتخاب شکلک */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-picker,
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-picker-position-top,
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-picker-position-bottom,
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button.active
+ .youzify-emojionearea-picker {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: calc(100% + 12px) !important;
    left: 0 !important;
    width: min(316px, 100%) !important;
    max-width: 100% !important;
    height: 276px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    z-index: 100010 !important;
    box-sizing: border-box !important;
}

/* پنجره باز */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-button.active
+ .youzify-emojionearea-picker {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* پنجره بسته */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea .youzify-emojionearea-picker.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* اندازه داخلی پنجره */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea-picker .youzify-emojionearea-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 276px !important;
    box-sizing: border-box !important;
}

/* حذف فلش قدیمی پنجره */
html body #youzify #youzify-bp
.activity-comments
.youzify-emojionearea-picker
.youzify-emojionearea-wrapper::after {
    display: none !important;
}

/* ردیف ابزارهای پایین فرم */
html body #youzify #youzify-bp
.activity-comments .youzify-wall-comments-buttons {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    box-sizing: border-box !important;
}

/* دکمه‌های فایل و GIF */
html body #youzify #youzify-bp
.activity-comments .youzify-wall-upload-btn,
html body #youzify #youzify-bp
.activity-comments .youzify-wall-add-gif {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    border: 1px solid #dfe5e9 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* ترتیب ابزارها: فایل و GIF سمت راست */
html body #youzify #youzify-bp
.activity-comments .youzify-wall-upload-btn {
    order: 3 !important;
}

html body #youzify #youzify-bp
.activity-comments .youzify-wall-add-gif {
    order: 2 !important;
}

/* دکمه آبی ارسال در سمت چپ */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment {
    order: 1 !important;
    display: inline-flex !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 96px !important;
    width: 96px !important;
    height: 46px !important;
    gap: 8px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 16px !important;
    float: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    border: 1px solid #2786a8 !important;
    border-radius: 12px !important;
    background: #2786a8 !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(39, 134, 168, 0.22) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* نوشته ارسال */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment::after {
    content: "ارسال" !important;
    display: inline-block !important;
    color: #fff !important;
    font-family: iransans, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* رنگ آیکن ارسال */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment i {
    color: #fff !important;
    font-size: 17px !important;
}

/* حالت hover دکمه ارسال */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment:hover {
    border-color: #1f7594 !important;
    background: #1f7594 !important;
}

/* اندازه آیکن ابزارها */
html body #youzify #youzify-bp
.activity-comments .youzify-wall-upload-btn i,
html body #youzify #youzify-bp
.activity-comments .youzify-wall-add-gif i {
    color: #9ba4aa !important;
    font-size: 18px !important;
}

/* بخش فایل‌های پیوست‌شده */
html body #youzify #youzify-bp
.activity-comments .youzify-attachments {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    margin: 10px 0 0 !important;
    box-sizing: border-box !important;
}

/* پنجره GIF */
html body #youzify #youzify-bp
.activity-comments .youzify-comment-giphy-form {
    right: 0 !important;
    left: auto !important;
    width: min(280px, calc(100vw - 70px)) !important;
    max-width: calc(100vw - 70px) !important;
    z-index: 100030 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 767px) {

    html body #youzify #youzify-bp
    #activity-stream > li.activity-item
    .activity-comments > form.ac-form {
        padding: 12px !important;
        border-radius: 0 0 14px 14px !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .ac-reply-content {
        gap: 11px !important;
    }

    html body #youzify #youzify-bp
    .activity-comments textarea.ac-input,
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-editor {
        min-height: 78px !important;
        padding: 14px 14px 14px 52px !important;
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .youzify-emojionearea {
        min-height: 78px !important;
    }

    /* نمایش دکمه شکلک و بستن در موبایل */
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-button {
        display: block !important;
        left: 10px !important;
        width: 34px !important;
        height: 34px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* پنجره شکلک داخل عرض صفحه */
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-picker,
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-picker-position-top,
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-picker-position-bottom,
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea .youzify-emojionearea-button.active
    + .youzify-emojionearea-picker {
        top: auto !important;
        right: auto !important;
        bottom: calc(100% + 10px) !important;
        left: 0 !important;
        width: min(316px, calc(100vw - 72px)) !important;
        max-width: 100% !important;
        height: 276px !important;
        margin: 0 !important;
        transform: none !important;
    }

    /* دسته‌های شکلک بیرون نزنند */
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-emojionearea-picker .youzify-emojionearea-filters {
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .youzify-wall-comments-buttons {
        min-height: 46px !important;
        gap: 8px !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .youzify-wall-upload-btn,
    html body #youzify #youzify-bp
    .activity-comments .youzify-wall-add-gif {
        flex-basis: 44px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* دکمه ارسال در سمت چپ موبایل */
    html body #youzify #youzify-bp
    .activity-comments .youzify-send-comment {
        flex-basis: 92px !important;
        width: 92px !important;
        height: 46px !important;
        margin: 0 auto 0 0 !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
    }
}
/* =========================================================
   ACTIVITY — MOBILE GIF + ATTACHMENT STABILITY — FINAL PATCH
   این کد باید در انتهای تمام CSSهای قبلی قرار بگیرد
   ========================================================= */

/* =========================================================
   حذف نوشته «ارسال» و حفظ دکمه آبی فلش در سمت چپ
   ========================================================= */

html body #youzify #youzify-bp
.activity-comments .youzify-send-comment::after {
    content: none !important;
    display: none !important;
}

/* دکمه آبی فقط به‌شکل مربع فلش‌دار */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    border: 1px solid #2786a8 !important;
    border-radius: 12px !important;
    background: #2786a8 !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(39, 134, 168, 0.22) !important;
    position: relative !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* فلش ارسال واضح و سفید */
html body #youzify #youzify-bp
.activity-comments .youzify-send-comment i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* =========================================================
   پنجره GIF در دسکتاپ
   ========================================================= */

html body #youzify #youzify-bp
.activity-comments .youzify-comment-giphy-form {
    width: 280px !important;
    max-width: min(280px, calc(100vw - 40px)) !important;
    min-width: 0 !important;
    padding: 14px !important;
    border: 1px solid #e1e6ea !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 25px rgba(30, 50, 60, 0.16) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    z-index: 100030 !important;
}

/* فیلد جست‌وجوی GIF */
html body #youzify #youzify-bp
.activity-comments
.youzify-comment-giphy-form .youzify-giphy-search-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid #e1e6ea !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;

    /* مهم: جلوگیری از زوم خودکار آیفون */
    font-size: 16px !important;
    line-height: 24px !important;

    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* نتایج GIF */
html body #youzify #youzify-bp
.activity-comments
.youzify-comment-giphy-form .youzify-giphy-items-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: 280px !important;
    margin: 12px 0 0 !important;
    padding: 0 4px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

/* هر GIF داخل عرض پنجره باقی بماند */
html body #youzify #youzify-bp
.activity-comments
.youzify-comment-giphy-form .youzify-giphy-item,
html body #youzify #youzify-bp
.activity-comments
.youzify-comment-giphy-form .youzify-giphy-item a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body #youzify #youzify-bp
.activity-comments
.youzify-comment-giphy-form .youzify-giphy-item img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

/* =========================================================
   پیش‌نمایش عکس و فایل پیوست
   ========================================================= */

html body #youzify #youzify-bp
.activity-comments .youzify-attachments,
html body #youzify #youzify-bp
.activity-comments .youzify-wall-attachments {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* محل نمایش فایل‌های انتخاب‌شده */
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* تمام اجزای پیش‌نمایش محدود به عرض فرم */
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments > *,
html body #youzify #youzify-bp
.activity-comments .youzify-image-preview,
html body #youzify #youzify-bp
.activity-comments .youzify-file-preview {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* تصویر و ویدئوی انتخاب‌شده */
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments img,
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments video {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

/* نام فایل‌های طولانی صفحه را به‌هم نریزند */
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments,
html body #youzify #youzify-bp
.activity-comments .youzify-form-attachments * {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* =========================================================
   موبایل
   ========================================================= */

@media screen and (max-width: 767px) {

    /* جلوگیری از زوم آیفون روی تمام فیلدهای فرم دیدگاه */
    html body #youzify #youzify-bp
    .activity-comments input,
    html body #youzify #youzify-bp
    .activity-comments textarea,
    html body #youzify #youzify-bp
    .activity-comments select,
    html body #youzify #youzify-bp
    .activity-comments .youzify-emojionearea-editor {
        font-size: 16px !important;
    }

    /*
     * در موبایل، دکمه GIF دیگر مرجع موقعیت پنجره نیست.
     * پنجره نسبت به خود فرم دیدگاه قرار می‌گیرد.
     */
    html body #youzify #youzify-bp
    .activity-comments .youzify-wall-add-gif {
        position: static !important;
    }

    /* پنجره GIF کاملاً داخل فرم و عرض صفحه */
    html body #youzify #youzify-bp
    .activity-comments .youzify-comment-giphy-form {
        position: absolute !important;
        top: auto !important;
        right: 12px !important;
        bottom: 70px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        max-height: min(440px, 58dvh) !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 14px !important;
        transform: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 100030 !important;
    }

    /* فلش قدیمی پنجره در موبایل لازم نیست */
    html body #youzify #youzify-bp
    .activity-comments .youzify-comment-giphy-form::before,
    html body #youzify #youzify-bp
    .activity-comments .youzify-comment-giphy-form::after {
        display: none !important;
    }

    /* ارتفاع مناسب نتایج با صفحه‌کلید موبایل */
    html body #youzify #youzify-bp
    .activity-comments
    .youzify-comment-giphy-form .youzify-giphy-items-content {
        max-height: min(300px, 38dvh) !important;
        margin-top: 10px !important;
        padding: 0 3px !important;
    }

    /* اندازه مناسب پیش‌نمایش عکس در موبایل */
    html body #youzify #youzify-bp
    .activity-comments .youzify-form-attachments > * {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .youzify-form-attachments img,
    html body #youzify #youzify-bp
    .activity-comments .youzify-form-attachments video {
        width: auto !important;
        max-width: 100% !important;
        max-height: 240px !important;
        margin: 0 auto !important;
    }

    /* دکمه آبی فلش در سمت چپ موبایل */
    html body #youzify #youzify-bp
    .activity-comments .youzify-send-comment {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        margin: 0 auto 0 0 !important;
        padding: 0 !important;
    }
}
/* بازشدن پنجره GIF به سمت پایین فقط در موبایل */
@media screen and (max-width: 767px) {

    html body #youzify #youzify-bp
    .activity-comments .youzify-wall-add-gif {
        position: relative !important;
        overflow: visible !important;
    }

    html body #youzify #youzify-bp
    .activity-comments .youzify-comment-giphy-form {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        bottom: auto !important;
        right: 0 !important;
        left: auto !important;
        width: calc(100vw - 48px) !important;
        max-width: 280px !important;
        min-width: 0 !important;
        max-height: 380px !important;
        margin: 0 !important;
        transform: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 100030 !important;
    }

    html body #youzify #youzify-bp
    .activity-comments
    .youzify-comment-giphy-form .youzify-giphy-search-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp
    .activity-comments
    .youzify-comment-giphy-form .youzify-giphy-items-content {
        max-height: 280px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}
/* =========================================================
   ACTIVITY — MOBILE LIKED BY FIX
   ========================================================= */

@media screen and (max-width: 767px) {

    /* کادر آمار لایک */
    html body #youzify #youzify-bp
    #activity-stream > li.activity-item
    .youzify-activity-statistics {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;

        margin: 0 14px !important;
        padding: 12px 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;

        border-bottom: 1px solid #edf0f2 !important;
    }

    /* چیدمان افقی متن و تصاویر */
    html body #youzify #youzify-bp
    #activity-stream > li.activity-item
    .youzify-activity-statistics .youzify-post-liked-by {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        direction: rtl !important;

        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* متن «پسندیده‌اند» در ابتدای ردیف */
    html body #youzify #youzify-bp
    #activity-stream .youzify-post-liked-by .youzify-liked-this {
        order: 1 !important;
        display: block !important;
        flex: 0 0 auto !important;

        margin: 0 0 0 12px !important;
        padding: 0 !important;

        color: #818b94 !important;
        font-size: 13px !important;
        line-height: 34px !important;
        white-space: nowrap !important;
    }

    /* تصاویر کاربران در یک ردیف افقی */
    html body #youzify #youzify-bp
    #activity-stream .youzify-post-liked-by > a {
        order: 2 !important;
        position: relative !important;
        display: block !important;
        flex: 0 0 34px !important;
        float: none !important;

        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;

        margin: 0 0 0 -6px !important;
        padding: 0 !important;
        box-sizing: border-box !important;

        background-color: #ffffff !important;
        border: 2px solid #ffffff !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    /* اندازه صحیح خود عکس */
    html body #youzify #youzify-bp
    #activity-stream .youzify-post-liked-by > a > img {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover !important;
        border: 0 !important;
        border-radius: 50% !important;
    }

    /* دایره تعداد کاربران باقی‌مانده */
    html body #youzify #youzify-bp
    #activity-stream .youzify-post-liked-by >
    a.youzify-view-all {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #7e8891 !important;
        background-color: #f0f2f4 !important;
        border-color: #ffffff !important;

        font-size: 10px !important;
        line-height: 1 !important;
        text-align: center !important;
    }
}
/* گردی نهایی بخش کامنت‌های ثبت‌شده */
html body #youzify #youzify-bp
#activity-stream > li.activity-item .activity-comments {
    border-radius: 0 0 16px 16px !important;
}

/* گردی کادر سفید هر کامنت */
html body #youzify #youzify-bp
.activity-comments li .comment-container {
    border-radius: 14px !important;
}

/* حفظ گردی آخرین کامنت */
html body #youzify #youzify-bp
.activity-comments > ul > li:last-child .comment-container {
    border-radius: 14px !important;
}

/* موبایل */
@media screen and (max-width: 767px) {
    html body #youzify #youzify-bp
    #activity-stream > li.activity-item .activity-comments {
        border-radius: 0 0 14px 14px !important;
    }

    html body #youzify #youzify-bp
    .activity-comments li .comment-container {
        border-radius: 12px !important;
    }
}

/* =========================================================
   FINAL MOBILE ACTIVITY UI — base refined in 1.1.13
   Built against Youzify's real mobile markup. Native click and upload logic
   remains untouched; only layout, visibility and keyboard comfort are changed.
   ========================================================= */

/* Remove Feeling / Activity from the composer. */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-user-mood-tool,
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-list.youzify-wall-feeling {
    display: none !important;
}

/* Professional pills on desktop and mobile. */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 40px !important;
    padding: 7px 14px !important;
    color: #365a73 !important;
    -webkit-text-fill-color: #365a73 !important;
    background: #eef4f7 !important;
    border: 1px solid #d8e4eb !important;
    border-radius: 21px !important;
    box-shadow: 0 2px 5px rgba(36, 72, 96, 0.07) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label i,
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label span {
    position: static !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label i {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label span {
    display: inline-block !important;
    width: auto !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > input[type="radio"]:checked + label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #173f63 !important;
    border-color: #173f63 !important;
    box-shadow: 0 4px 10px rgba(23, 63, 99, 0.22) !important;
}

@media screen and (max-width: 768px) {
    /* The real Youzify mobile toolbar: exactly three native controls. */
    html body #youzify #youzify-bp .youzify-mobile-nav {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 0 10px !important;
        padding: 10px !important;
        direction: rtl !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-item {
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 76px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        width: 100% !important;
        min-height: 76px !important;
        margin: 0 !important;
        padding: 7px 4px !important;
        color: #173f63 !important;
        background: #f7f9fb !important;
        border: 1px solid #e0e7ec !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        transition: background-color 0.16s ease, border-color 0.16s ease !important;
    }

    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-container > i {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: #173f63 !important;
        border-radius: 50% !important;
        font-size: 16px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-container > a {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #173f63 !important;
        -webkit-text-fill-color: #173f63 !important;
        font-family: Tahoma, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-item:active
    .youzify-mobile-nav-container,
    html body #youzify #youzify-bp
    .youzify-mobile-nav .youzify-mobile-nav-item:focus-within
    .youzify-mobile-nav-container {
        background: #edf3f7 !important;
        border-color: #b9cad6 !important;
    }

    /* Preserve native proxy buttons; hide the two internal duplicate triggers. */
    html body #youzify #youzify-bp
    #youzify-wall-nav #subnav .youzify-activity-show-filter,
    html body #youzify #youzify-bp
    #youzify-wall-nav #subnav .youzify-activity-show-search-form {
        display: none !important;
    }

    html body #youzify #youzify-bp #youzify-wall-nav {
        position: relative !important;
        z-index: 70 !important;
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-nav > #subnav,
    html body #youzify #youzify-bp
    #youzify-wall-nav > #subnav > ul,
    html body #youzify #youzify-bp
    #youzify-wall-nav > #subnav > ul > li {
        position: static !important;
        width: 100% !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* All three native panels float immediately below the toolbar. */
    html body #youzify #youzify-bp
    #youzify-wall-nav > .activity-type-tabs:not(#subnav),
    html body #youzify #youzify-bp
    #youzify-wall-nav .youzify-dropdown-area {
        position: absolute !important;
        top: 8px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 80 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: min(420px, 60vh) !important;
        margin: 0 !important;
        padding: 14px !important;
        direction: rtl !important;
        text-align: right !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: none !important;
        background: #fff !important;
        border: 1px solid #d9e3e9 !important;
        border-radius: 12px !important;
        box-shadow: 0 14px 34px rgba(23, 63, 99, 0.18) !important;
        box-sizing: border-box !important;
    }

    /* First five native post types plus Youzify's own three-dot control. */
    html body #youzify #youzify-bp
    #youzify-wall-form .youzify-wall-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        direction: rtl !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-form .youzify-wall-options
    .youzify-wall-opts-item {
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-form .youzify-wall-options
    .youzify-wall-opts-item > label {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 6px 7px !important;
        border-radius: 21px !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-form .youzify-wall-opts-show-all > label {
        color: #173f63 !important;
        -webkit-text-fill-color: #173f63 !important;
        background: #eef4f7 !important;
        border-color: #d8e4eb !important;
    }

    /* Keep the initial editor compact and prevent page growth while typing. */
    html body #youzify #youzify-bp
    #youzify-wall-form #whats-new.youzify-wall-textarea {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        margin: 0 !important;
        padding: 12px 70px 12px 14px !important;
        direction: rtl !important;
        text-align: right !important;
        line-height: 1.75 !important;
        resize: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    /* Remove destination selector visually; its selected value remains posted. */
    html body #youzify #youzify-bp
    #youzify-wall-actions #whats-new-post-in-box {
        display: none !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-form #youzify-wall-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 10px 12px 12px !important;
        direction: rtl !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-actions .youzify-posting-form-actions {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-actions .youzify-wall-post {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 18px !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: #173f63 !important;
        border: 1px solid #173f63 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    /* No empty space when the contextual upload key is hidden. */
    html body #youzify #youzify-bp
    #youzify-wall-actions .youzify-form-tools {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-actions .youzify-form-tools:has(
        .youzify-wall-upload-btn[style*="display: none"]
    ) {
        display: none !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-actions .youzify-form-tools:has(
        .youzify-wall-upload-btn[style*="display: block"]
    ) {
        display: flex !important;
        align-items: center !important;
    }
}

/* =========================================================
   FINAL SITE PREFERENCE OVERRIDES — 1.1.13
   ========================================================= */
@media screen and (max-width: 767px) {
    /* This site does not use Youzify's three-button mobile toolbar. */
    html body .youzify-mobile-nav,
    html body .youzify-show-activity-menu,
    html body .youzify-show-activity-search,
    html body .youzify-show-activity-filter,
    html body #youzify #youzify-bp #youzify-wall-nav {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }

    html body #youzify #youzify-bp.youzify-global-wall .youzify-page-main-content {
        padding: 8px 12px 0 !important;
    }

    /* فاصله کل کادر ارسال نوشته از بخش بالایی در موبایل */
html body #youzify #youzify-bp .youzify-main-column {
    margin-top: 0 !important;
}

html body #youzify #youzify-bp.youzify-global-wall
#youzify-wall-form {
    margin-top: -19px !important;
}

/* بخش داخلی فرم جداگانه جابه‌جا نشود */
html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content.youzify-wall-content {
    margin-top: 0 !important;
}

    html body #youzify #youzify-bp #youzify-wall-form .youzify-wall-options {
        gap: 6px !important;
        padding: 10px !important;
    }

    html body #youzify #youzify-bp #youzify-wall-form
    .youzify-wall-options .youzify-wall-opts-item > label {
        height: 38px !important;
        min-height: 38px !important;
        padding: 4px 5px !important;
        gap: 5px !important;
        border-radius: 19px !important;
    }

    html body #youzify #youzify-bp #youzify-wall-form
    .youzify-wall-options .youzify-wall-opts-item > label i {
        font-size: 13px !important;
    }

    html body #youzify #youzify-bp #youzify-wall-form
    .youzify-wall-options .youzify-wall-opts-item > label span {
        font-size: 10px !important;
    }

    html body #youzify #youzify-bp #youzify-wall-form
    textarea#whats-new.youzify-wall-textarea,
    html body #youzify #youzify-bp #youzify-wall-form
    textarea#whats-new.youzify-wall-textarea:focus {
        width: 100% !important;
        height: 144px !important;
        min-height: 144px !important;
        max-height: 144px !important;
        padding: 16px 70px 16px 16px !important;
        direction: rtl !important;
        text-align: right !important;
        unicode-bidi: plaintext !important;
        caret-color: #173f63 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        resize: none !important;
        box-sizing: border-box !important;
    }

    html body #youzify #youzify-bp #youzify-wall-actions
    .youzify-posting-form-actions {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }

    html body #youzify #youzify-bp #youzify-wall-actions
    .youzify-posting-form-actions button.youzify-wall-post {
        flex: 0 0 82px !important;
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 auto 0 0 !important;
        padding: 0 12px !important;
        color: #fff !important;
        background: #173f63 !important;
        border: 0 !important;
        border-radius: 999px !important;
        line-height: 1 !important;
    }
}
/* =========================================================
   HM CORE — FINAL ACTIVITY COMPOSER
   Source of truth: plugin only
   ========================================================= */

/* حذف Emoji و Feeling در تمام اندازه‌ها */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-load-emojis,
html body #youzify #youzify-bp
#youzify-wall-form .youzify-load-posts-emojis,
html body #youzify #youzify-bp
#youzify-wall-form .youzify-user-mood-tool,
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-feeling {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* حذف مقصد «ارسال در: پروفایل من» در موبایل و دسکتاپ */
html body #youzify #youzify-bp
#youzify-wall-actions #whats-new-post-in-box {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* کادر اصلی نوشتن */
html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content.youzify-wall-content {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 8px 12px 0 !important;

    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* آواتار کاربر داخل کادر و سمت راست */
html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content .youzify-wall-author {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    left: auto !important;

    display: block !important;
    float: none !important;

    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
}

html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content .youzify-wall-author img {
    position: static !important;
    display: block !important;
    float: none !important;

    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transform: none !important;
}

/* متن و نشانگر تایپ */
html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content textarea#whats-new.youzify-wall-textarea,
html body #youzify #youzify-bp
#youzify-wall-form
#whats-new-content textarea#whats-new.youzify-wall-textarea:focus {
    position: relative !important;
    display: block !important;
    float: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 12px 72px 12px 12px !important;

    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext !important;

    outline: 0 !important;
    resize: none !important;
    box-sizing: border-box !important;
}

html body #youzify #youzify-bp
#youzify-wall-form
textarea#whats-new.youzify-wall-textarea::placeholder {
    direction: rtl !important;
    text-align: right !important;
    color: #758392 !important;
    opacity: 1 !important;
}

/* پایین کادر: فقط ارسال یا آپلود ضروری */
html body #youzify #youzify-bp
#youzify-wall-actions .youzify-posting-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    direction: ltr !important;
}

html body #youzify #youzify-bp
#youzify-wall-actions
.youzify-posting-form-actions button.youzify-wall-post {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: none !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    color: #fff !important;
    background: #173f63 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
/* تنظیم نهایی کادر ارسال نوشته در موبایل */
@media screen and (max-width: 767px) {

    /* جابه‌جایی کل کادر، نه فقط بخش نوشتن */
    html body #youzify #youzify-bp.youzify-global-wall
    #youzify-wall-form {
        margin-top: -22px !important;
    }

    /* گزینه‌های نوع نوشته: فضای داخلی کمتر و فاصله بیشتر */
   /* گزینه‌های نوع نوشته: فشرده‌تر و منظم‌تر */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options {
    margin-bottom: 0 !important;
    padding: 5px 6px 4px !important;
    gap: 8px !important;
}

html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 2px !important;
    gap: 2px !important;
    border-radius: 17px !important;
}

/* اندازه آیکون‌ها */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
}

/* اندازه نوشته‌های کنار آیکون */
html body #youzify #youzify-bp
#youzify-wall-form .youzify-wall-options
.youzify-wall-opts-item > label span {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}
    /* اندازه عنوان گزینه‌های نوع نوشته */
    html body #youzify #youzify-bp
    #youzify-wall-form .youzify-wall-options
    .youzify-wall-opts-item > label span {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 9.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* بخش نوشتن جداگانه بالا نیاید */
    html body #youzify #youzify-bp
    #youzify-wall-form
    #whats-new-content.youzify-wall-content {
        margin-top: 0 !important;
        padding: 0 10px !important;
    }

    /* آواتار داخل کادر و سمت راست */
    html body #youzify #youzify-bp
    #youzify-wall-form
    #whats-new-content .youzify-wall-author {
        top: 10px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }

    html body #youzify #youzify-bp
    #youzify-wall-form
    #whats-new-content .youzify-wall-author img {
        width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
    }

    /* پایین‌تر آمدن متن راهنمای کادر */
    html body #youzify #youzify-bp
    #youzify-wall-form
    #whats-new-content textarea#whats-new.youzify-wall-textarea,
    html body #youzify #youzify-bp
    #youzify-wall-form
    #whats-new-content textarea#whats-new.youzify-wall-textarea:focus {
        padding-top: 22px !important;
        padding-right: 64px !important;
        padding-left: 10px !important;
    }

    /* اندازه دکمه ارسال */
    html body #youzify #youzify-bp
    #youzify-wall-actions
    .youzify-posting-form-actions button.youzify-wall-post {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}