.qsocial-enabled .qmf-actions,
.qsocial-enabled .qcwf-actions,
.qsocial-enabled .qseq-actions,
.qsocial-enabled .qhorror-feed-actions {
    display: none !important;
}

/* القضايا القديمة كانت تعرض قسم مشاركة منفصل؛ الشريط الموحّد يحل مكانه. */
.qsocial-enabled .case-share-section,
.qsocial-enabled main .share-section {
    display: none !important;
}

.qsocial-shell,
.qsocial-shell * {
    box-sizing: border-box;
}

.qsocial-shell {
    --qs-bg: #11131a;
    --qs-card: #1b1e28;
    --qs-line: rgba(255, 255, 255, .13);
    --qs-text: #fff;
    --qs-muted: #aeb4c4;
    --qs-accent: #f4bc54;
    direction: rtl;
    font-family: "Tajawal", system-ui, sans-serif;
}

.qsocial-dock {
    position: fixed;
    z-index: 99990;
    inset-inline-end: max(12px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 9px 7px;
    border: 1px solid var(--qs-line);
    border-radius: 24px;
    background: rgba(12, 14, 20, .82);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .36);
    backdrop-filter: blur(14px);
}

.qsocial-action {
    appearance: none;
    width: 52px;
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 5px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: transform .16s ease, color .16s ease, background .16s ease;
}

.qsocial-action:hover,
.qsocial-action:focus-visible {
    transform: scale(1.06);
    background: rgba(255, 255, 255, .1);
    outline: none;
}

.qsocial-action.is-active[data-action="like"] {
    color: #ff7188;
    background: rgba(255, 82, 115, .14);
}

.qsocial-action.is-active[data-action="dislike"] {
    color: #ffb25b;
    background: rgba(255, 160, 64, .13);
}

.qsocial-action__icon {
    font-size: 23px;
    line-height: 1;
}

.qsocial-action__count {
    min-height: 14px;
    color: currentColor;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
}

.qsocial-backdrop {
    position: fixed;
    z-index: 99991;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, .55);
    transition: opacity .22s ease, visibility .22s ease;
}

.qsocial-backdrop.is-open {
    visibility: visible;
    opacity: 1;
}

.qsocial-drawer {
    position: fixed;
    z-index: 99992;
    right: 50%;
    bottom: 0;
    width: min(720px, 100%);
    max-height: min(78vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(130px, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--qs-line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--qs-bg);
    color: var(--qs-text);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .55);
    transform: translate(50%, 110%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}

.qsocial-drawer.is-open {
    transform: translate(50%, 0);
}

.qsocial-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--qs-line);
}

.qsocial-drawer__head strong,
.qsocial-drawer__head small {
    display: block;
}

.qsocial-drawer__head strong {
    font-size: 17px;
}

.qsocial-drawer__head small {
    max-width: 510px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--qs-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qsocial-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--qs-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.qsocial-comments {
    overflow: auto;
    overscroll-behavior: contain;
    padding: 14px 16px 26px;
}

.qsocial-empty,
.qsocial-loading {
    display: grid;
    min-height: 170px;
    place-items: center;
    color: var(--qs-muted);
    text-align: center;
}

.qsocial-comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.qsocial-comment.is-reply {
    grid-template-columns: 32px minmax(0, 1fr);
    margin-inline-start: 34px;
    padding: 9px 0;
    border-bottom: 0;
}

.qsocial-comment__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #292d39;
}

.qsocial-comment.is-reply .qsocial-comment__avatar {
    width: 32px;
    height: 32px;
}

.qsocial-comment__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--qs-muted);
    font-size: 11px;
}

.qsocial-comment__meta strong {
    color: #fff;
    font-size: 13px;
}

.qsocial-comment__text {
    margin: 5px 0 7px;
    color: #eef1f8;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.qsocial-comment__actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.qsocial-comment__actions button,
.qsocial-load-more {
    appearance: none;
    border: 0;
    background: none;
    color: var(--qs-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.qsocial-comment__actions button.is-liked {
    color: #ff7188;
}

.qsocial-load-more {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--qs-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.qsocial-composer {
    padding: 10px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--qs-line);
    background: #141720;
}

.qsocial-replying {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 3px 9px;
    color: var(--qs-accent);
    font-size: 11px;
}

.qsocial-replying.is-visible {
    display: flex;
}

.qsocial-replying button {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.qsocial-guest-name {
    width: 100%;
    margin-bottom: 7px;
    padding: 8px 11px;
    border: 1px solid var(--qs-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    outline: none;
}

.qsocial-composer__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.qsocial-input {
    width: 100%;
    max-height: 120px;
    resize: none;
    padding: 11px 13px;
    border: 1px solid var(--qs-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.qsocial-input:focus,
.qsocial-guest-name:focus {
    border-color: rgba(244, 188, 84, .65);
}

.qsocial-send {
    min-width: 72px;
    height: 44px;
    border: 0;
    border-radius: 13px;
    background: var(--qs-accent);
    color: #271b04;
    font-weight: 900;
    cursor: pointer;
}

.qsocial-send:disabled {
    opacity: .45;
    cursor: default;
}

.qsocial-toast {
    position: fixed;
    z-index: 100010;
    left: 50%;
    bottom: 90px;
    max-width: calc(100% - 32px);
    padding: 10px 15px;
    border: 1px solid var(--qs-line);
    border-radius: 999px;
    background: #171a22;
    color: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .4);
    font-size: 13px;
    font-weight: 800;
    transform: translateX(-50%);
}

@media (max-width: 680px) {
    .qsocial-dock {
        inset-inline-end: 8px;
        gap: 5px;
        padding: 7px 5px;
        border-radius: 20px;
    }
    .qsocial-action {
        width: 45px;
        min-height: 46px;
        border-radius: 14px;
    }
    .qsocial-action__icon { font-size: 20px; }
    .qsocial-drawer { max-height: 84vh; border-radius: 20px 20px 0 0; }
}
