/* ——— الحائط: شريط رسائل جديدة (مثل النموذج — #62B4BD، بدون أيقونة) ——— */
#chat__body__wall_pane .chat_pane__container {
    position: relative;
}

.wall_new_messages_banner {
    display: none;
    position: sticky;
    top: 0;
    z-index: 12;
    width: 100%;
    max-width: 100%;
    min-height: 25px;
    height: 25px;
    margin: 0 0 0.2rem;
    padding: 0 0.35rem;
    border: none;
    border-radius: 0;
    background: #62b4bd;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    line-height: 25px;
    letter-spacing: 0.01em;
    box-sizing: border-box;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.wall_new_messages_banner.is-visible {
    display: block;
}

.wall_new_messages_banner:hover,
.wall_new_messages_banner:focus {
    filter: brightness(1.06);
    opacity: 0.97;
    outline: none;
}

.wall_new_messages_banner:active {
    filter: brightness(0.98);
}

/* ——— استطلاع الحائط — النسخة الأصلية المحسّنة (حصري) ——— */
.wall_poll_slot {
    --wall-poll-accent: #5b6ee1;
    padding: 0.2rem 0.32rem 0.08rem;
}

.wall_poll_box--elite {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f4f7ff 55%, #eef3ff 100%);
    border: 1px solid rgba(91, 110, 225, 0.28);
    border-radius: 0.38rem;
    padding: 0.32rem 0.36rem 0.34rem;
    margin-bottom: 0.28rem;
    box-shadow:
        0 4px 14px rgba(91, 110, 225, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    overflow: hidden;
}

.wall_poll_box--elite::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--wall-poll-accent),
        #7c8ef5,
        transparent
    );
    opacity: 0.95;
}

.wall_poll_box--elite .wall_poll_box__head {
    display: flex;
    align-items: center;
    gap: 0.22rem;
    margin-bottom: 0.18rem;
    padding-bottom: 0.14rem;
    border-bottom: 1px solid rgba(91, 110, 225, 0.15);
}

.wall_poll_box--elite .wall_poll_box__icon {
    flex-shrink: 0;
    color: var(--wall-poll-accent);
    font-size: 0.54rem;
    filter: drop-shadow(0 1px 2px rgba(91, 110, 225, 0.25));
}

.wall_poll_box--elite .wall_poll_box__question {
    flex: 1;
    margin: 0;
    font-size: 0.58rem;
    line-height: 1.4;
    font-weight: 700;
    color: #2a3358;
    min-width: 0;
    text-align: right;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_box__close {
    flex-shrink: 0;
    padding: 0 0.24rem !important;
    line-height: 1.05 !important;
    font-size: 0.58rem !important;
    border-radius: 0.18rem !important;
    min-width: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wall_poll_box--elite .wall_poll_box__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    font-size: 0.5rem;
    font-weight: 600;
    color: #5a6488;
    margin: 0 0 0.18rem auto;
    padding: 0.08rem 0.28rem;
    background: linear-gradient(180deg, #f0f3fc, #e8edfa);
    border: 1px solid rgba(91, 110, 225, 0.18);
    border-radius: 999px;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_box__meta .fa-users {
    color: var(--wall-poll-accent);
    font-size: 0.48rem;
}

.wall_poll_box--elite .wall_poll_box__details {
    padding: 0 0.1rem !important;
    font-size: 0.48rem !important;
    color: var(--wall-poll-accent) !important;
    vertical-align: baseline;
    line-height: 1.2;
}

/* أعمدة التصويت — عمودي مضغوط */
.wall_poll_box--elite .wall_poll_chart {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0.28rem;
    margin: 0.1rem 0 0.16rem;
    padding: 0.2rem 0.22rem 0.12rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(91, 110, 225, 0.12);
    border-radius: 0.32rem;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_chart__col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_chart__col--lead .wall_poll_chart__label {
    color: var(--wall-poll-accent);
}

.wall_poll_box--elite .wall_poll_chart__col--lead .wall_poll_chart__track {
    border-color: rgba(91, 110, 225, 0.35);
    box-shadow: inset 0 1px 3px rgba(30, 45, 90, 0.08), 0 2px 6px rgba(91, 110, 225, 0.12);
}

.wall_poll_box--elite .wall_poll_chart__label {
    width: 100%;
    font-size: 0.5rem;
    font-weight: 700;
    color: #3d4668;
    line-height: 1.25;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_chart__pct {
    font-size: 0.48rem;
    font-weight: 800;
    color: var(--wall-poll-accent);
    line-height: 1.1;
    margin-bottom: 0.08rem;
    direction: ltr;
    unicode-bidi: isolate;
}

.wall_poll_box--elite .wall_poll_chart__track {
    width: 100%;
    max-width: 1.35rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #e8edf5;
    border: 1px solid #dce3f0;
    border-radius: 0.22rem 0.22rem 0.12rem 0.12rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(30, 45, 90, 0.08);
}

.wall_poll_box--elite .wall_poll_chart__fill {
    width: 100%;
    min-height: 3px;
    border-radius: 0.12rem 0.12rem 0 0;
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.wall_poll_box--elite .wall_poll_chart__fill--1 {
    background: linear-gradient(0deg, #2e9648, #5ecf7a);
    box-shadow: 0 -2px 8px rgba(46, 155, 79, 0.25);
}

.wall_poll_box--elite .wall_poll_chart__fill--2 {
    background: linear-gradient(0deg, #ef6c00, #ffb74d);
    box-shadow: 0 -2px 8px rgba(255, 152, 0, 0.22);
}

.wall_poll_box--elite .wall_poll_chart__sub {
    margin-top: 0.1rem;
    font-size: 0.44rem;
    font-weight: 600;
    color: #6b7a99;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_box__actions {
    display: flex;
    flex-direction: row;
    gap: 0.22rem;
    margin-top: 0.18rem;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_box__actions .wall_poll_box__vote {
    flex: 1;
    padding: 0.16rem 0.22rem !important;
    font-size: 0.5rem !important;
    line-height: 1.25 !important;
    border-radius: 999px !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wall_poll_box--elite .wall_poll_box__vote--1 {
    background: linear-gradient(180deg, #43b35d, #2e9648) !important;
    color: #fff !important;
}

.wall_poll_box--elite .wall_poll_box__vote--2 {
    background: linear-gradient(180deg, #ffa726, #ef6c00) !important;
    color: #fff !important;
}

.wall_poll_box--elite .wall_poll_box__actions .wall_poll_box__vote:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.wall_poll_box--elite .wall_poll_box__actions .wall_poll_box__vote:active {
    transform: translateY(0);
}

.wall_poll_box--elite .wall_poll_box__voted {
    margin: 0.18rem 0 0;
    padding: 0.14rem 0.26rem;
    font-size: 0.5rem;
    font-weight: 600;
    color: #1b5e20;
    background: linear-gradient(180deg, #e8f8eb, #d9f2dd);
    border: 1px solid #a5d6a7;
    border-radius: 0.28rem;
    text-align: center;
    direction: rtl;
}

.wall_poll_box--elite .wall_poll_box__voted .fa {
    margin-left: 0.12rem;
    color: #2e7d32;
}

/* نافذة تفاصيل التصويت */
.wall_poll_details_modal .modal-content {
    border-radius: 0.38rem;
    overflow: hidden;
    border: 1px solid #d4ddf5;
    box-shadow: 0 10px 28px rgba(91, 110, 225, 0.18);
}

.wall_poll_details_modal .modal-header {
    border-bottom: 1px solid #e8edf8;
    padding: 0.45rem 0.55rem;
    background: linear-gradient(180deg, #f8faff, #eef2fc);
}

.wall_poll_details_modal .modal-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: #2a3358;
}

.wall_poll_creator__panel {
    border-radius: 0.4rem !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
}
