/* nsmat:wall-creator.css */
/* مبدع الحائط — بطاقة TOP 1 كاملة */

.wc-podium-legacy-hidden,
#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container__podium,
#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container__podium *,
#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container__posts,
#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container__posts * {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto !important;
    max-height: calc(100% - 1.2rem);
    background: #f4f8f5 !important;
    overflow: visible !important;
}

#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container.border {
    border: none !important;
}

#chat__body__wall_creator_pane.wc-pane--premium .name {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
}

/* ─── المسرح ─── */
#chat__body__wall_creator_pane .wc-stage {
    position: relative;
    flex: 0 0 auto;
    margin: .22rem .28rem 0;
    padding: .22rem .28rem .22rem;
    border-radius: .65rem .65rem 0 0;
    overflow: visible;
}

#chat__body__wall_creator_pane .wc-stage__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 210, 90, .28) 0%, transparent 52%),
        linear-gradient(180deg, #1a3228 0%, #264636 100%);
    z-index: 0;
}


#chat__body__wall_creator_pane .wc-podium {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .25rem;
    min-height: 8.6rem;
    padding-top: .05rem;
}

#chat__body__wall_creator_pane .wc-podium__col {
    flex: 1 1 0;
    max-width: 31%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#chat__body__wall_creator_pane .wc-podium__col--1 {
    order: 2;
    max-width: 38%;
    flex: 1.15 1 0;
    align-self: stretch;
}

#chat__body__wall_creator_pane .wc-podium__col--2 {
    order: 1;
    padding-bottom: .08rem;
}

#chat__body__wall_creator_pane .wc-podium__col--3 {
    order: 3;
    padding-bottom: .18rem;
}

/* ─── بطاقة TOP 1 ─── */
#chat__body__wall_creator_pane .wc-champion {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: .32rem;
    padding: .38rem .3rem .36rem;
    border-radius: .55rem;
    background: linear-gradient(165deg, rgba(255, 224, 130, .18) 0%, rgba(255, 255, 255, .06) 100%);
    border: 1.5px solid rgba(255, 193, 7, .55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08) inset,
        0 8px 22px rgba(0, 0, 0, .28),
        0 0 18px rgba(255, 193, 7, .18);
}

#chat__body__wall_creator_pane .wc-champion__tag {
    position: absolute;
    top: -.36rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .46rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #5c4200;
    background: linear-gradient(135deg, #ffe082, #ffc107);
    padding: .1rem .38rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    z-index: 2;
}

#chat__body__wall_creator_pane .wc-champion__crown {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: .08rem 0 .06rem;
}

#chat__body__wall_creator_pane .wc-champion__crown--gold {
    filter: sepia(0.55) saturate(2.2) hue-rotate(5deg) brightness(1.08) drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

#chat__body__wall_creator_pane .wc-champion__avatar-ring {
    padding: .13rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd54f, #ff8f00);
    box-shadow: 0 0 .75rem rgba(255, 193, 7, .45);
    margin-bottom: .2rem;
}

#chat__body__wall_creator_pane .wc-champion__avatar {
    display: block;
    width: 2.65rem !important;
    height: 2.65rem !important;
    border-radius: 50%;
    object-fit: cover;
    background: #eceff1;
}

#chat__body__wall_creator_pane .wc-champion__name {
    width: 100%;
    text-align: center;
    margin-bottom: .18rem;
}

#chat__body__wall_creator_pane .wc-champion__name span {
    display: inline-block;
    max-width: 100%;
    padding: .1rem .42rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid rgba(255, 224, 130, .35);
    color: #ffe082 !important;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chat__body__wall_creator_pane .wc-champion__score-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .14rem;
    width: 100%;
    padding: .2rem .28rem;
    border-radius: .4rem;
    background: linear-gradient(135deg, rgba(255, 179, 0, .35), rgba(230, 81, 0, .35));
    border: 1px solid rgba(255, 255, 255, .15);
}

#chat__body__wall_creator_pane .wc-champion__score {
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    direction: ltr;
    unicode-bidi: isolate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

#chat__body__wall_creator_pane .wc-champion__score-label {
    font-size: .52rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ─── المركز 2 و 3 ─── */
#chat__body__wall_creator_pane .wc-runner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: .14rem;
}

#chat__body__wall_creator_pane .wc-runner__crown {
    width: 1.05rem !important;
    height: 1.05rem !important;
    margin-bottom: .08rem;
    flex-shrink: 0;
}

#chat__body__wall_creator_pane .wc-runner__crown--silver {
    filter: grayscale(1) brightness(1.2) contrast(0.95) drop-shadow(0 2px 3px rgba(0, 0, 0, .28));
}

#chat__body__wall_creator_pane .wc-runner__crown--bronze {
    filter: sepia(0.75) saturate(2.4) hue-rotate(-18deg) brightness(0.92) drop-shadow(0 2px 3px rgba(0, 0, 0, .28));
}

#chat__body__wall_creator_pane .wc-runner__avatar-ring {
    padding: .1rem;
    border-radius: 50%;
    margin-bottom: .14rem;
}

#chat__body__wall_creator_pane .wc-runner__avatar-ring--silver {
    background: linear-gradient(145deg, #eceff1, #90a4ae);
    box-shadow: 0 0 .4rem rgba(144, 164, 174, .3);
}

#chat__body__wall_creator_pane .wc-runner__avatar-ring--bronze {
    background: linear-gradient(145deg, #ffcc80, #e65100);
    box-shadow: 0 0 .35rem rgba(230, 81, 0, .28);
}

#chat__body__wall_creator_pane .wc-runner__avatar {
    display: block;
    width: 2.15rem !important;
    height: 2.15rem !important;
    border-radius: 50%;
    object-fit: cover;
    background: #eceff1;
}

#chat__body__wall_creator_pane .wc-runner__name {
    width: 100%;
    text-align: center;
}

#chat__body__wall_creator_pane .wc-runner__name span {
    display: inline-block;
    max-width: 100%;
    padding: .1rem .32rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .32);
    color: #fff !important;
    font-size: .58rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chat__body__wall_creator_pane .wc-podium__stand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .24rem .15rem;
    border-radius: .38rem .38rem 0 0;
    min-height: 1.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

#chat__body__wall_creator_pane .wc-podium__stand--2 {
    background: linear-gradient(180deg, #b0bec5 0%, #607d8b 100%);
}

#chat__body__wall_creator_pane .wc-podium__stand--3 {
    background: linear-gradient(180deg, #ffab91 0%, #bf360c 100%);
}

#chat__body__wall_creator_pane .wc-podium__score {
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    direction: ltr;
    unicode-bidi: isolate;
    background: rgba(0, 0, 0, .18);
    padding: .1rem .34rem;
    border-radius: .22rem;
}

/* ─── القائمة ─── */
#chat__body__wall_creator_pane .wc-leaderboard {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 .28rem .28rem;
    border-radius: 0 0 .6rem .6rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
}

#chat__body__wall_creator_pane .wc-leaderboard__head {
    padding: .45rem .55rem;
    font-size: .64rem;
    font-weight: 700;
    color: #3d7a4d;
    background: #eef6f0;
    border-bottom: 1px solid #dceee2;
}

#chat__body__wall_creator_pane .wc-leaderboard__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: .3rem;
}

#chat__body__wall_creator_pane .wc-leaderboard__row {
    display: flex;
    align-items: center;
    gap: .32rem;
    padding: .36rem .4rem;
    margin-bottom: .22rem;
    border-radius: .5rem;
    background: #fafcfa;
    border: 1px solid #e6f0e8;
}

#chat__body__wall_creator_pane .wc-leaderboard__row:last-child {
    margin-bottom: 0;
}

#chat__body__wall_creator_pane .wc-leaderboard__rank {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5eb;
    color: #3d8f52;
    font-size: .72rem;
    font-weight: 800;
}

#chat__body__wall_creator_pane .wc-leaderboard__user {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .32rem;
}

#chat__body__wall_creator_pane .wc-leaderboard__avatar {
    flex: 0 0 2rem;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dceee2;
    background: #f0f0f0;
}

#chat__body__wall_creator_pane .wc-leaderboard__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .74rem;
    font-weight: 600;
    color: #2a3d30;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

#chat__body__wall_creator_pane .wc-leaderboard__score {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #69bb56, #47ad61);
    padding: .22rem .45rem;
    border-radius: .35rem;
    direction: ltr;
    unicode-bidi: isolate;
    min-width: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(71, 173, 97, .25);
}

#chat__body__wall_creator_pane .wc-leaderboard__empty {
    padding: 1rem;
    text-align: center;
    font-size: .72rem;
    color: #7a8b80;
}

@media (max-width: 420px) {
    #chat__body__wall_creator_pane .wc-podium {
        min-height: 8rem;
    }

    #chat__body__wall_creator_pane .wc-champion__avatar {
        width: 2.4rem !important;
        height: 2.4rem !important;
    }

    #chat__body__wall_creator_pane .wc-runner__avatar {
        width: 1.95rem !important;
        height: 1.95rem !important;
    }
}

/* nsmat:others-pane.css */
/* قائمة إضافات أخرى — أشرطة مضغوطة */

#chat__body__others-pane.others-pane--premium {
    background: #fff !important;
}

#chat__body__others-pane.others-pane--premium > .chat_pane__header {
    background: #2c5282 !important;
    border: none !important;
    box-shadow: none !important;
}

#chat__body__others-pane.others-pane--premium > .chat_pane__header .chat_pane__header__title {
    font-size: .72rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

#chat__body__others-pane.others-pane--premium .others-pane__grid {
    height: calc(100% - 1.4rem) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: .12rem !important;
    display: flex !important;
    flex-direction: column;
    gap: .1rem;
}

#chat__body__others-pane.others-pane--premium .others-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 1.65rem !important;
    min-height: 1.65rem !important;
    max-height: 1.65rem !important;
    margin: 0 !important;
    padding: 0 .42rem !important;
    border: none !important;
    border-radius: .1rem !important;
    color: #fff !important;
    text-align: center !important;
    line-height: 1.65rem !important;
    font-weight: 700 !important;
    font-size: .68rem !important;
    box-shadow: none !important;
    position: relative !important;
    cursor: pointer;
    transition: filter .12s ease;
}

#chat__body__others-pane.others-pane--premium .others-card:hover,
#chat__body__others-pane.others-pane--premium .others-card:focus {
    filter: brightness(1.06);
    transform: none !important;
    box-shadow: none !important;
}

#chat__body__others-pane.others-pane--premium .others-card__icon {
    position: absolute !important;
    left: .42rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    flex: none !important;
}

#chat__body__others-pane.others-pane--premium .others-card__icon svg {
    width: .78rem;
    height: .78rem;
    display: block;
}

#chat__body__others-pane.others-pane--premium .others-card__title {
    flex: none !important;
    width: 100%;
    padding: 0 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 700;
    color: #fff !important;
    text-align: center !important;
}

#chat__body__others-pane.others-pane--premium .others-card--blue {
    background: #5dade2 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--purple {
    background: #9b59b6 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--orange {
    background: #e67e22 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--amber {
    background: #f39c12 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--green {
    background: #27ae60 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--gray {
    background: #95a5a6 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--teal {
    background: #16a085 !important;
}

#chat__body__others-pane.others-pane--premium .others-card--rose {
    background: #c0392b !important;
}

#chat__body__others-pane.others-pane--premium .others-card--indigo {
    background: #6366f1 !important;
}

#chat__body__others-pane.others-pane--premium .others-card .fa {
    display: none !important;
}

#chat__body__ignored-users-pane .chat__body__ignored-users-pane__back,
#chat__body__notifications-pane .chat__body__notifications-pane__back,
#chat__body__live-pane .chat__body__live-pane__back {
    display: none !important;
}

.chat_pane__header__back--others {
    position: absolute !important;
    top: .08rem !important;
    right: 1.55rem !important;
    left: auto !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    gap: .18rem;
    height: 1.05rem;
    padding: 0 .38rem !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: .22rem !important;
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
    font-size: .58rem !important;
    font-weight: 600 !important;
    line-height: 1;
    box-shadow: none !important;
    transition: background-color .12s ease, border-color .12s ease;
}

.chat_pane__header__back--others:hover,
.chat_pane__header__back--others:focus {
    background: rgba(255, 255, 255, .18) !important;
    border-color: rgba(255, 255, 255, .32) !important;
    color: #fff !important;
}

.chat_pane__header__back-icon {
    width: .42rem;
    height: .42rem;
    border-top: 1.5px solid #fff;
    border-left: 1.5px solid #fff;
    transform: rotate(-45deg);
    margin-top: .02rem;
    opacity: .92;
}

#chat__body__ignored-users-pane > .chat_pane__header,
#chat__body__notifications-pane > .chat_pane__header,
#chat__body__live-pane > .chat_pane__header,
#chat__body__wall_creator_pane > .chat_pane__header,
#audio-gallery-pane > .chat_pane__header {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    #chat__body__others-pane.others-pane--premium .others-card,
    .chat_pane__header__back--others {
        transition: none;
    }
}

/* nsmat:chat-complaint-modal.css */
/* نافذة الشكاوى — متوافقة مع ألوان وشكل الدردشة */
.yc-complaint-overlay {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(8, 12, 28, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: ycComplaintFadeIn 0.22s ease;
}

@keyframes ycComplaintFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ycComplaintSlideUp {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.yc-complaint-modal {
    position: relative;
    width: min(400px, 94vw);
    max-height: min(90vh, 640px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    animation: ycComplaintSlideUp 0.26s ease;
}

.yc-complaint-modal__header {
    position: relative;
    padding: 0.9rem 1rem 0.85rem;
    text-align: center;
    background: var(--yc-complaint-header-bg, var(--primary-color, #337ab7));
    color: var(--yc-complaint-header-fg, #fff);
    border-bottom: 3px solid color-mix(in srgb, var(--yc-complaint-header-bg, #337ab7) 75%, #000);
    flex-shrink: 0;
}

.yc-complaint-modal__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    padding: 0.2rem;
}

.yc-complaint-modal__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.yc-complaint-modal__header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.yc-complaint-modal__close {
    position: absolute;
    left: 0.65rem;
    top: 0.6rem;
    z-index: 3;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.yc-complaint-modal__close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.yc-complaint-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--yc-complaint-header-bg, #2c5282);
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.1), rgba(44, 82, 130, 0.04));
    border: 1px solid rgba(44, 82, 130, 0.18);
    border-radius: 999px;
    width: 100%;
    box-sizing: border-box;
}

.yc-complaint-modal__badge .fa {
    opacity: 0.85;
}

.yc-complaint-modal__body {
    padding: 0.85rem 1rem 0.65rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, var(--yc-complaint-body-bg, #f8fafc) 0%, #fff 100%);
    flex: 1 1 auto;
}

.yc-complaint-field {
    margin-bottom: 0.65rem;
}

.yc-complaint-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
}

.yc-complaint-field label .fa {
    color: var(--yc-complaint-header-bg, #2c5282);
    opacity: 0.9;
    font-size: 0.72rem;
}

.yc-complaint-field input.form-control,
.yc-complaint-field textarea.form-control {
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    padding: 0.48rem 0.6rem;
    font-size: 0.8rem;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yc-complaint-field input.form-control:focus,
.yc-complaint-field textarea.form-control:focus {
    border-color: var(--yc-complaint-header-bg, #2c5282);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 22%, transparent);
    outline: none;
}

.yc-complaint-field__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

.yc-complaint-modal__ctx {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: #475569;
    margin-top: 0.15rem;
    padding: 0.45rem 0.55rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.yc-complaint-modal__ctx .fa {
    color: var(--yc-complaint-header-bg, #2c5282);
}

.yc-complaint-upload {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem 0.65rem;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.yc-complaint-upload:hover,
.yc-complaint-upload.yc-complaint-upload--drag {
    border-color: var(--yc-complaint-header-bg, #2c5282);
    background: color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 6%, #fff);
}

.yc-complaint-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.yc-complaint-upload__icon {
    font-size: 1.35rem;
    color: var(--yc-complaint-header-bg, #2c5282);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.yc-complaint-upload__title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.15rem;
}

.yc-complaint-upload__hint {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.45;
}

.yc-complaint-upload__status {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #64748b;
    min-height: 1em;
}

.yc-complaint-upload__status--ok {
    color: #059669;
    font-weight: 600;
}

.yc-complaint-modal__preview {
    margin-top: 0.55rem;
    text-align: center;
    position: relative;
}

.yc-complaint-modal__preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.yc-complaint-modal__preview-remove {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
}

.yc-complaint-modal__footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0.9rem;
    border-top: 1px solid #e8ecef;
    background: #fff;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.yc-complaint-modal__cancel {
    min-width: 5.5rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.48rem 0.75rem;
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #475569;
}

.yc-complaint-modal__submit {
    min-width: 8.5rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.48rem 0.85rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 35%, transparent);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.yc-complaint-modal__submit:hover:not(:disabled),
.yc-complaint-modal__submit:focus:not(:disabled) {
    filter: brightness(0.94);
    transform: translateY(-1px);
}

.yc-complaint-modal__submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

@media (min-width: 768px) {
    .yc-complaint-modal {
        width: min(420px, 42vw);
    }
}

/* Bootstrap legacy modal (إن وُجد) */
#chat_complaint_modal.chat-complaint-modal {
    z-index: 10060;
}

/* nsmat:mic-music.css */
#mic-speakers {
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

#mic-speakers .mic-speakers--item {
    margin-left: 0.1rem !important;
    margin-right: 0.1rem !important;
}

#mic-speakers .mic-speakers--item__modal__share-audio {
    width: 100%;
    margin-top: 0.15rem;
}

#mic-speakers .mic-speakers--item__modal__submenu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    padding: 0 0.12rem;
    border-radius: 0.18rem;
    background: rgba(10, 24, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: max-height 0.24s ease, opacity 0.2s ease, margin-bottom 0.2s ease, padding 0.2s ease;
}

#mic-speakers .mic-speakers--item__modal__submenu.is-open {
    max-height: 14rem;
    opacity: 1;
    margin-bottom: 0.2rem;
    padding: 0.22rem 0.12rem 0.12rem;
}

#mic-speakers .mic-speakers--item__modal__submenu .btn {
    display: inline-block;
    margin-bottom: 0.2rem;
    width: 100%;
    padding: 0.1rem;
    background-color: #1a3550 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e8f2fa !important;
}

#mic-speakers .mic-speakers--item__modal__submenu .btn:last-child {
    margin-bottom: 0;
}

#mic-speakers .mic-speakers--item__modal__submenu .btn.is-active {
    background-color: #245a78 !important;
    border-color: rgba(125, 211, 252, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35);
}

#mic-speakers .mic-speakers--item__modal__voice-quality.is-active-preset {
    background-color: #245a78 !important;
    border-color: rgba(125, 211, 252, 0.45) !important;
    color: #e8f2fa !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35);
}

#mic-speakers .mic-speakers--item__modal__voice-preview:disabled {
    opacity: 0.72;
    cursor: wait;
}

#mic-speakers .mic-speakers--item.room-mic-locked {
    opacity: 1 !important;
    background-color: #ffffffea !important;
    overflow: hidden;
    isolation: isolate;
}

#mic-speakers .mic-speakers--item.room-mic-locked .mic-speakers--item__mic-wrapper {
    visibility: hidden;
}

#mic-speakers .mic-speakers--item.room-mic-locked .mic-speakers--item__lock-mark {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#mic-speakers .mic-speakers--item.room-mic-locked .mic-speakers--item__lock-mark::before {
    content: "⛔";
    font-size: 0.95rem;
    line-height: 1;
    max-width: 100%;
    max-height: 100%;
}

/* على المايك — بدون تكلم: إطار عادي بدون أخضر */
#mic-speakers .mic-speakers--item.is_speaking {
    border-color: #afbfc2 !important;
    box-shadow: none !important;
    animation: none !important;
}

/* المتكلم فقط — إطار أخضر + توهج نابض (مثل الصورة) */
#mic-speakers .mic-speakers--item.is_speaking.mic-is-talking,
#mic-speakers .mic-speakers--item.is_speaking:has(img.mic-audio-active) {
    border: 0.125rem solid #48dc78 !important;
    animation: mic-speak-glow 0.85s ease-in-out infinite !important;
    z-index: 2;
}

@keyframes mic-speak-glow {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(72, 220, 120, 0.4),
            0 0 8px 1px rgba(72, 220, 120, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(72, 220, 120, 0.55),
            0 0 16px 5px rgba(72, 220, 120, 0.8);
    }
}

/* صورة العضو على المايك — مربع بزوايا ناعمة */
#mic-speakers .mic-speakers--item.is_speaking img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0.28rem;
    box-sizing: border-box;
}

#mic-speakers .mic-speakers--item.is_speaking img.mic-audio-active {
    animation: none;
    filter: none;
    box-shadow: none;
}

.mic-speakers--player-float {
    display: none;
    position: fixed;
    top: 2.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 850;
    width: min(26rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

.mic-speakers--player-float[aria-hidden="false"] {
    pointer-events: auto;
}

#mic-speakers--player.mic-speakers--player {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.55rem 0.4rem;
    background: rgba(16, 32, 52, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.45rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#mic-speakers--player.mic-speakers--player.is-system-mode {
    padding: 0.3rem 0.5rem;
}

.mic-speakers--player__row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.35rem;
}

.mic-speakers--player__controls {
    display: flex;
    gap: 0.18rem;
    flex-shrink: 0;
}

.mic-speakers--player__btn {
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 0.2rem;
    background: #28a745;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0;
}

.mic-speakers--player__btn i {
    font-size: 0.72rem;
    line-height: 1;
    pointer-events: none;
}

.mic-speakers--player__btn--file i.fa-folder-open:before {
    content: "\f07b";
}

.mic-speakers--player__btn:hover {
    background: #218838;
}

.mic-speakers--player__label {
    flex: 1;
    min-width: 0;
    color: #e8eef5;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mic-speakers--player__time {
    color: #b8c9dc;
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.mic-speakers--player__seek-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.18rem;
}

#mic-speakers--player.is-system-mode .mic-speakers--player__seek-row,
#mic-speakers--player.is-system-mode .mic-speakers--player__time,
#mic-speakers--player.is-system-mode #mic-speakers--player-file {
    display: none;
}

.mic-speakers--player__note {
    color: #7dd3fc;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.mic-speakers--player__seek {
    flex: 1;
    height: 0.22rem;
    accent-color: #28a745;
    margin: 0;
}

.mic-speakers--player__volume {
    width: 3.2rem;
    height: 0.22rem;
    accent-color: #17a2b8;
    margin: 0;
}

#mic-speakers--player-system-video {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
    top: -9999px;
}

@media (max-width: 750px) {
    .mic-speakers--player-float {
        top: 2.35rem;
        width: calc(100vw - 1rem);
    }
}

/* nsmat:media-links.css */
/* Profile media links — modal, profile icons, player */

.pml-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(.65rem, env(safe-area-inset-top)) max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
    background: rgba(8, 12, 28, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pmlFadeIn .22s ease;
    pointer-events: auto;
}

.pml-overlay--player {
    z-index: 200010;
}

@keyframes pmlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pml-modal {
    position: relative;
    width: min(320px, 94vw);
    max-height: min(88vh, 520px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .32), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    overflow: hidden;
    animation: pmlSlideUp .26s ease;
    display: flex;
    flex-direction: column;
}

.pml-modal__banner {
    width: 100%;
    flex-shrink: 0;
    line-height: 0;
    background: #0f172a;
}

.pml-modal__banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.pml-modal__close--float {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.pml-modal__body {
    padding: .75rem .85rem .85rem;
    direction: rtl;
    overflow-y: auto;
    flex: 1 1 auto;
}

.pml-modal__title {
    margin: 0 0 .35rem;
    font-size: .88rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.pml-modal__hint {
    margin: 0 0 .65rem;
    font-size: .72rem;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}

.pml-field {
    margin-bottom: .55rem;
}

.pml-field label {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .28rem;
    font-size: .72rem;
    font-weight: 700;
    color: #334155;
}

.pml-field label img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.pml-field input {
    width: 100%;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    padding: .45rem .55rem;
    font-size: .72rem;
    background: #fff;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pml-field input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.pml-modal__actions {
    display: flex;
    gap: .45rem;
    margin-top: .65rem;
}

.pml-modal__actions button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: .48rem .6rem;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
}

@keyframes pmlSlideUp {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pml-modal__close {
    border: none;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .pml-modal {
        width: min(340px, 42vw);
    }
}

.pml-btn-save {
    background: linear-gradient(120deg, #6366f1, #8b5cf6);
    color: #fff;
}

.pml-btn-cancel {
    background: #e2e8f0;
    color: #475569;
}

.pml-profile-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 6px;
    direction: ltr;
    width: 100%;
    position: relative;
    z-index: 3;
}

.pml-profile-icons--profile {
    padding: 4px 0 2px;
}

.pml-profile-icons__btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    opacity: .92;
    transition: transform .15s ease, opacity .15s ease;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.pml-profile-icons__btn:focus,
.pml-profile-icons__btn:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.pml-profile-icons__btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.pml-profile-icons__btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.pml-profile-icons__btn img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* أيقونات قائمة المتواجدين — مكان العلم (وسط عمودي يمين) */
#chat__body__users-pane .chat_pane__user_item,
#online_users .chat_pane__user_item {
    position: relative;
}

.pml-list-icons {
    position: absolute;
    top: 50%;
    right: .05em;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    z-index: 3;
    direction: ltr;
    line-height: 0;
}

.pml-list-icons--readonly {
    pointer-events: none;
    cursor: default;
}

.pml-list-icons--readonly .pml-list-icons__btn {
    cursor: default;
    pointer-events: none;
}

.pml-list-icons__btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    opacity: .95;
    transition: transform .15s ease, opacity .15s ease;
}

.pml-list-icons__btn:focus,
.pml-list-icons__btn:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.pml-list-icons__btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.pml-list-icons__btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pml-list-icons__btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.pml-player {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1020;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.pml-player__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .75rem;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    color: #e2e8f0;
    font-size: .75rem;
    font-weight: 700;
}

.pml-player--tiktok {
    max-width: 340px;
    overflow: visible;
}

.pml-player__frame-wrap {
    position: relative;
    width: 100%;
    background: #000;
}

.pml-player__frame-wrap--yt {
    padding-top: 56.25%;
}

.pml-player__frame-wrap--yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.pml-player__frame-wrap--tt {
    padding: 0;
    height: auto;
    overflow: hidden;
    background: #000;
    text-align: center;
}

.pml-player__frame-wrap--tt .pml-player__tt-iframe,
.pml-player__frame-wrap--tt .wall_post__tiktok-iframe {
    display: block;
    width: 100%;
    max-width: 325px;
    height: 435px;
    margin: 0 auto;
    border: 0;
    background: #000;
}

/* Profile cover — Saudi Top style */
#user_profile .modal-content,
#user_profile .user_profile__scroll_area,
#user_profile .user_profile__body {
    overflow: visible !important;
}

#user_profile .user_profile__cover-container {
    width: 100%;
    height: 130px;
    position: relative;
    overflow: visible !important;
    margin: 0 0 2.75rem;
    background: linear-gradient(180deg, #cfd4dc 0%, #b7bec8 100%);
    display: block;
    z-index: 2;
}

#user_profile .user_profile__cover-container[data-has-cover="0"] {
    background-image: url('/images/epro-kal.jpg');
    background-size: cover;
    background-position: center center;
}

#user_profile .user_profile__cover-container[data-has-cover="1"] {
    background: transparent;
}

#user_profile .user_profile__cover-container .user_profile__body__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

#user_profile .modal-dialog > .user_profile__cover-container,
#user_profile .user_profile__body > .user_profile__cover-container {
    margin-top: 0;
}

#user_profile .user_profile__cover-container--empty {
    background: linear-gradient(180deg, #d6dbe3 0%, #bcc4cf 100%);
}

#user_profile .user_profile__avatar-overlay {
    position: absolute;
    left: 0.55rem;
    bottom: 0;
    transform: translateY(50%);
    z-index: 4;
    border: 3px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    background: #fff;
}

#user_profile .user_profile__avatar-overlay .user_profile__cover-avatar {
    width: 74px;
    height: 74px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

#user_profile:has(.user_profile__cover-container) #user_profile__body__avatar {
    display: none !important;
    visibility: hidden !important;
}

#user_profile .user_profile__cover-container.is-cover-loading .user_profile__body__cover,
#user_profile .user_profile__cover-container.is-cover-awaiting .user_profile__body__cover {
    opacity: 1;
    visibility: visible;
}

#user_profile .user_profile__cover-container.is-cover-ready .user_profile__body__cover,
#user_profile .user_profile__cover-container[data-has-cover="1"] .user_profile__body__cover {
    opacity: 1;
    visibility: visible;
}

#user_profile .user_profile__cover-container.is-cover-loading,
#user_profile .user_profile__cover-container.is-cover-awaiting {
    min-height: 130px;
}

#user_profile .user_profile__cover-container--own {
    margin-bottom: 2.75rem;
}

#user_profile .user_profile__cover-camera-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 7;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 38px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    text-align: center;
}

#user_profile .user_profile__cover-container.is-loading .user_profile__cover-camera-btn {
    opacity: 0.65;
    pointer-events: none;
}

#user_profile .user_profile__cover-container.is-loading .user_profile__cover-camera-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: url(/images/loader.gif) center center / contain no-repeat;
}

#chat__body__settings_pane__container__button--change-profile-cover {
    cursor: pointer;
    margin-bottom: .2rem;
}

#chat__body__settings_pane__container__button--change-profile-cover .loader {
    display: none;
}

#chat__body__settings_pane__container__button--change-profile-cover.disabled .loader {
    display: inline;
}

.pml-cover-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
}

.pml-cover-lightbox img {
    max-width: min(96vw, 900px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* nsmat:radio-lounge.css */
/* الراديو — مطابق للتصميم المرجعي */

#chat__body__live-pane.yc-live-pane--radio {
    background: #3a4449 !important;
}

#chat__body__live-pane.yc-live-pane--radio,
#chat__body__live-pane.yc-live-pane--radio .chat_pane__container {
    min-height: 12rem;
}

#chat__body__live-pane.yc-live-pane--radio > .chat_pane__header {
    background: #454d52 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

#chat__body__live-pane.yc-live-pane--radio > .chat_pane__header .chat_pane__header__title {
    color: #fff !important;
    font-weight: 700;
}

#chat__body__live-pane.yc-live-pane--radio .chat_pane__container {
    border: none !important;
    background: #3a4449 !important;
    height: calc(100% - 1.45rem) !important;
    overflow: hidden !important;
    padding: 0.45rem 0.42rem 0.35rem !important;
}

.yc-radio-lounge {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    color: #fff;
    font-family: tahoma, "Segoe UI", sans-serif;
}

.yc-radio-lounge--disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

/* بطاقة التشغيل العلوية */
.yc-radio-lounge__player {
    flex-shrink: 0;
    background: #555b60;
    border-radius: 0.55rem;
    padding: 0.62rem 0.55rem 0.5rem;
    text-align: center;
}

.yc-radio-lounge__station-name {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    min-height: 1.15rem;
}

.yc-radio-lounge__player-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
}

.yc-radio-lounge__toggle {
    width: 2.45rem;
    height: 2.45rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.yc-radio-lounge__toggle--play {
    background: linear-gradient(180deg, #5cb85c 0%, #449d44 100%);
}

.yc-radio-lounge__toggle--stop {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

.yc-radio-lounge__toggle-icon {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.yc-radio-lounge__toggle-icon--stop {
    width: 0.62rem;
    height: 0.62rem;
    background: #fff;
    border-radius: 2px;
    display: block;
}

.yc-radio-lounge__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

.yc-radio-lounge__volume-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 68%;
}

.yc-radio-lounge__volume {
    flex: 1;
    min-width: 0;
    accent-color: #9b59b6;
    height: 0.32rem;
    cursor: pointer;
}

.yc-radio-lounge__vol-icon {
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.9;
    flex-shrink: 0;
}

.yc-radio-lounge__status {
    margin: 0.42rem 0 0;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.88);
}

.yc-radio-lounge__status.is-live {
    color: #fff;
}

.yc-radio-lounge__status.is-error {
    color: #ffb4b4;
}

/* تبويبات التصنيف */
.yc-radio-lounge__tabs {
    display: flex;
    gap: 0.28rem;
    margin: 0.42rem 0 0.38rem;
    flex-shrink: 0;
}

.yc-radio-lounge__tab {
    flex: 1;
    border: none;
    border-radius: 0.42rem;
    padding: 0.32rem 0.18rem;
    background: #555b60;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}

.yc-radio-lounge__tab:hover,
.yc-radio-lounge__tab.is-active {
    background: #656d73;
}

/* قائمة المحطات */
.yc-radio-lounge__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding-bottom: 0.15rem;
}

.yc-radio-lounge__section-title {
    margin: 0.18rem 0 0.08rem;
    padding: 0.12rem 0.15rem 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-align: right;
}

.yc-radio-lounge__station {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    border: none;
    background: #555b60;
    border-radius: 0.42rem;
    padding: 0.42rem 0.48rem;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
    transition: background 0.15s ease;
}

.yc-radio-lounge__station:hover {
    background: #606870;
}

.yc-radio-lounge__station.is-active {
    background: #9b59b6;
}

.yc-radio-lounge__station-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 1rem;
}

.yc-radio-lounge__station-speaker {
    position: absolute;
    left: 0.48rem;
    right: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
    opacity: 0;
    width: 0.85rem;
    text-align: center;
}

.yc-radio-lounge__station.is-active .yc-radio-lounge__station-speaker {
    opacity: 1;
}

.yc-radio-lounge__empty {
    margin: 0.8rem 0;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
}

#chat__body__live-pane.yc-live-pane--radio #radio-container,
#chat__body__live-pane.yc-live-pane--radio #chat__body__live-pane__tv {
    display: none !important;
}

/* nsmat:rooms-banner.css */
.chat_pane__room_item--banner {
    height: 5.5rem;
    min-height: 5.5rem;
    padding: 0 !important;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat;
}

.chat_pane__room_item--banner::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.0rem;
    background: rgba(85, 83, 83, 0.450) !important;
    z-index: 1;
    pointer-events: none;
}

.chat_pane__room_item--banner .chat_pane__room_item__flag,
.chat_pane__room_item--banner .chat_pane__room_item__name,
.chat_pane__room_item--banner .chat_pane__room_item__description {
    display: none !important;
}

.chat_pane__room_item--banner .chat_pane__room_item__users,
.chat_pane__room_item--banner .chat_pane__room_item__users--banner,
#chat__body__rooms_pane .chat_pane__room_item--banner.has-mic .chat_pane__room_item__users,
#chat__body__rooms_pane .chat_pane__room_item--banner.has-mic .chat_pane__room_item__users--banner,
#chat__body__rooms_pane .chat_pane__room_item--banner.has-mic span.chat_pane__room_item__users,
#chat__body__rooms_pane .chat_pane__room_item--banner.has-mic span.chat_pane__room_item__users--banner {
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    min-width: 0;
    background: none !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.22rem 0.35rem 0.18rem;
    border-radius: 0;
    text-align: center;
    line-height: 1.3;
    z-index: 2;
    box-shadow: none;
    border: 0;
}

.chat_pane__room_item--banner .chat_pane__room_item__users--banner::before {
    margin-left: 0.15rem;
}

.chat_pane__room_item--banner.locked::after {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: url("/images/lock.png") center/contain no-repeat;
    z-index: 3;
}

.chat_pane__room_item--banner.active {
    border-right: 0.25rem solid #4491f7;
    border-left: 0.25rem solid #4491f7;
}

/* nsmat:chat-popups.css */
/* تنبيهات الدردشة — بعد CSS الموقع ليتجاوز التصميم القديم */

#popup_container .popup {
    min-width: 7.5rem !important;
    max-width: 10.8333333333rem !important;
    position: absolute !important;
    top: 30% !important;
    padding: 0.25rem 0.3rem 0.35rem !important;
    z-index: 2000 !important;
    border: none !important;
    border-radius: 0.35rem !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(99, 102, 241, 0.12) !important;
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
    direction: rtl;
    text-align: center !important;
}

/* توسيط محتوى كل التنبيهات */
#popup_container .popup.popup--yc .popup__sender,
#popup_container .popup.popup--yc .popup__message {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#popup_container .popup.popup--yc .popup__sender__avatar,
#popup_container .popup.popup--yc .popup__sender__name,
#popup_container .popup.popup--yc .popup__message p,
#popup_container .popup.popup--yc .popup__message span {
    float: none !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

#popup_container .popup.popup--yc .popup__sender__avatar {
    display: block !important;
    margin: 0 auto 0.25rem !important;
}

#popup_container .popup.popup--complaint .popup__title {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
}

#popup_container .popup.popup--complaint .popup__complaint-subject {
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.45 !important;
    margin: 0.15rem 0 0 !important;
    padding: 0 0.15rem !important;
    word-break: break-word;
}

#popup_container .popup .popup__title,
#popup_container .popup .popup__title.label,
#popup_container .popup .popup__title.label-primary {
    display: block !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: -0.58rem auto 0.3rem !important;
    width: 52% !important;
    padding: 0.12rem 0.3rem !important;
    line-height: 1.5 !important;
    border: none !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(135deg, #5b7cfa, #6366f1) !important;
    background-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}

#popup_container .popup.popup--ttt .popup__title {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
}

#popup_container .popup.popup--ludo .popup__title {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35) !important;
}

#popup_container .popup.popup--uno .popup__title {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
}

#popup_container .popup .popup__sender {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    float: right !important;
}

#popup_container .popup .popup__sender__avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 0.25rem !important;
    margin-right: 0.1em !important;
    object-fit: cover;
    border: 1px solid #e2e8f0 !important;
    float: right !important;
}

#popup_container .popup .popup__sender__name {
    margin: 0.2em 0 !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    padding: 0.15em 0 0 !important;
    max-width: 80% !important;
    color: #1e293b !important;
    float: right !important;
}

#popup_container .popup .popup__message {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    margin-top: 0.2em !important;
    width: 100% !important;
    padding: 0 0.2em !important;
    word-break: break-word;
    color: #334155 !important;
    float: right !important;
}

#popup_container .popup p {
    margin-bottom: 0.4em;
}

#popup_container .popup .popup__message__body {
    padding-top: 0.2rem;
    font-weight: 600;
    color: #64748b;
}

#popup_container .popup.popup--invite {
    min-width: 9rem !important;
    max-width: 11.75rem !important;
}

#popup_container .popup .popup__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 0.35rem;
    padding: 0;
    width: 100%;
}

#popup_container .popup .popup__actions .btn {
    flex: 1 1 50%;
    min-width: 3.4rem;
    margin: 0 !important;
    padding: 0.28rem 0.55rem !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    border: none !important;
    border-radius: 0.22rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#popup_container .popup .popup__actions .btn-success,
#popup_container .popup .popup__request_ludo_accept,
#popup_container .popup .popup__request_ttt_accept,
#popup_container .popup .popup__request_ttt_rematch_accept,
#popup_container .popup .popup__request_uno_accept,
#popup_container .popup .popup__message__body__trust_user {
    background: #22c55e !important;
    color: #fff !important;
}

#popup_container .popup .popup__actions .btn-danger,
#popup_container .popup .popup__request_ludo_refuse,
#popup_container .popup .popup__request_ttt_refuse,
#popup_container .popup .popup__request_ttt_rematch_close,
#popup_container .popup .popup__request_uno_refuse {
    background: #ef4444 !important;
    color: #fff !important;
}

#popup_container .popup .popup__request_ludo_accept,
#popup_container .popup .popup__request_uno_accept {
    margin-right: 0 !important;
}

#popup_container .popup .gifts_picker__contianer__img {
    max-height: 1.75rem;
    vertical-align: middle;
}

/* لوحة الإشعارات — نفس الشكل المختصر */
#chat__body__notifications-pane .notification {
    min-width: 7.5rem;
    max-width: 10.8333333333rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.3rem 0.35rem;
    border: none;
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    direction: rtl;
    text-align: center;
}

#chat__body__notifications-pane .notification__sender,
#chat__body__notifications-pane .notification__message {
    text-align: center !important;
    width: 100%;
}

#chat__body__notifications-pane .notification__title {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    margin: -0.58rem auto 0.3rem;
    width: 52%;
    padding: 0.12rem 0.3rem;
    line-height: 1.5;
    border: none !important;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #5b7cfa, #6366f1) !important;
    color: #fff !important;
}

#chat__body__notifications-pane .notification__sender__avatar {
    width: 24px;
    height: 24px;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
}

#chat__body__notifications-pane .notification__sender__name,
#chat__body__notifications-pane .notification__message {
    font-size: 0.6rem;
    font-weight: 700;
    color: #334155;
}

/* nsmat:wall-pane-ui.css */
/* ——— الحائط: شريط رسائل جديدة (مثل النموذج — #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;
}

/* nsmat:nsmat-uno-ui.css */
/* UNO — modern responsive UI overrides */

#nsmat_uno_container {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

#nsmat_uno_container #nsmat-uno,
#nsmat_uno_container .pre_nsmat_uno_modal,
#nsmat_uno_container #show-uno,
#nsmat_uno_container .yc-uno-winner-overlay {
    pointer-events: auto;
}

#nsmat-uno.yc-uno-game {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #0f1724 0%, #1a2744 45%, #162033 100%);
    box-shadow: none;
    gap: 0;
    font-family: inherit;
    overflow: hidden;
}

#nsmat-uno.yc-uno-game #nsmat-uno-bg {
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.14), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    opacity: 1;
}

.yc-uno-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 36, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.yc-uno-toolbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.yc-uno-toolbar__brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.yc-uno-toolbar__btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yc-uno-toolbar__btn--min {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.yc-uno-toolbar__btn--exit {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.yc-uno-toolbar__btn:hover {
    transform: translateY(-1px);
}

#nsmat-uno.yc-uno-game #nsmat-uno-home,
#nsmat-uno.yc-uno-game #nsmat-uno-exit {
    position: static;
    top: auto;
    right: auto;
    width: 38px;
    height: 38px;
    background: none;
    background-image: none;
}

#nsmat-uno.yc-uno-game #nsmat-uno-home:before {
    content: none;
}

#nsmat-uno-top {
    padding: 8px 12px 4px;
    min-height: 0;
}

#nsmat-uno-middle {
    flex: 1;
    min-height: 0;
    padding: 0 8px;
    align-items: stretch;
}

#nsmat-uno-left,
#nsmat-uno-right {
    width: clamp(72px, 14vw, 120px);
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#nsmat-uno-scene {
    min-height: clamp(140px, 28vh, 260px);
}

#nsmat-uno-scene-arrow {
    opacity: 0.12;
    filter: brightness(1.4);
}

#nsmat-uno-scene .cards .card {
    height: clamp(88px, 18vh, 150px);
    max-height: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#nsmat-uno .user {
    align-items: center;
}

#nsmat-uno .user .name {
    margin: 6px 0 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: clamp(11px, 2.8vw, 13px);
    color: #f8fafc;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nsmat-uno .user .avatar {
    width: clamp(52px, 11vw, 72px);
    height: clamp(52px, 11vw, 72px);
    max-width: none;
    max-height: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#nsmat-uno .user .avatar.glow {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 8px 22px rgba(251, 191, 36, 0.25);
    animation: yc-uno-turn-glow 1.2s ease-in-out infinite;
}

@keyframes yc-uno-turn-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 8px 22px rgba(251, 191, 36, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.2), 0 8px 28px rgba(251, 191, 36, 0.35); }
}

#nsmat-uno .user .avatar .count {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    border: 2px solid #fbbf24;
    font-size: 11px;
    font-weight: 700;
    top: -6px;
    right: -6px;
    z-index: 2;
}

/* Opponent / side hands: tight fan, no legacy scrollbars */
#nsmat-uno .cards {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#nsmat-uno .cards::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#nsmat-uno-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    overflow: visible;
}

#nsmat-uno-top .user {
    position: relative;
    z-index: 4;
    margin-bottom: 2px;
}

#nsmat-uno-top .cards,
#nsmat-uno-left .cards,
#nsmat-uno-right .cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 16px);
    margin-inline: auto;
    overflow: hidden !important;
    padding: 4px 10px 6px;
    gap: 0;
    box-sizing: border-box;
}

#nsmat-uno-top .cards .card,
#nsmat-uno-left .cards .card,
#nsmat-uno-right .cards .card {
    flex: 0 0 auto;
    width: clamp(38px, 7.5vw, 52px);
    max-width: clamp(38px, 7.5vw, 52px);
    min-height: clamp(52px, 10vh, 72px);
    max-height: clamp(52px, 10vh, 72px);
    height: clamp(52px, 10vh, 72px);
    border-radius: 8px;
    margin-left: 0 !important;
    margin-top: 0 !important;
    object-fit: contain;
}

#nsmat-uno-top .cards .card + .card {
    margin-left: clamp(-34px, -5.5vw, -22px) !important;
}

#nsmat-uno-left .cards,
#nsmat-uno-right .cards {
    flex-direction: column;
    height: auto !important;
    max-height: min(32vh, 220px);
    padding: 8px 6px;
}

#nsmat-uno-left .cards .card + .card,
#nsmat-uno-right .cards .card + .card {
    margin-top: clamp(-44px, -7vw, -28px) !important;
}

#nsmat-uno-bottom .cards {
    padding: 6px 12px;
}

#nsmat-uno-bottom {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

#nsmat-uno-bottom .cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px 6px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

#nsmat-uno-bottom .cards .card {
    flex: 0 0 auto;
    width: clamp(52px, 11vw, 76px);
    max-width: clamp(52px, 11vw, 76px);
    height: clamp(74px, 14vh, 104px);
    min-height: clamp(74px, 14vh, 104px);
    max-height: clamp(74px, 14vh, 104px);
    border-radius: 10px;
    margin-left: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#nsmat-uno-bottom .cards .card + .card {
    margin-left: clamp(-40px, -6vw, -26px) !important;
}

#nsmat-uno-bottom .cards .card:hover {
    transform: translateY(-8px) scale(1.04);
    margin-right: 8px;
    box-shadow: 0 10px 24px rgba(251, 191, 36, 0.45);
}

#nsmat-uno-bottom .bottom-footer {
    padding: 6px 12px 10px;
    gap: 8px;
}

#nsmat-uno-bottom .bottom-footer .cards-box {
    height: clamp(48px, 10vw, 64px);
    margin-left: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

#nsmat-uno-bottom .bottom-footer .arrow-down {
    position: static;
    width: 36px;
    height: 36px;
    margin: 0;
    opacity: 0.55;
}

#nsmat-uno-bottom .bottom-footer .arrow-down.active {
    opacity: 1;
    animation: yc-uno-draw-pulse 0.9s ease-in-out infinite;
}

@keyframes yc-uno-draw-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

#nsmat-uno-bottom .bottom-footer .uno-btn {
    height: clamp(36px, 8vw, 48px);
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

#nsmat-uno-color-selector {
    background: rgba(15, 23, 36, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#nsmat-uno-color-selector span {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#nsmat-uno-exit-dialog {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

#nsmat-uno-exit-dialog #dialog-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#show-uno {
    right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

#show-uno img {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 52px;
    height: 52px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

/* Winner overlay */
.yc-uno-winner-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    animation: yc-uno-fade-in 0.35s ease;
}

@keyframes yc-uno-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yc-uno-winner-card {
    position: relative;
    width: min(92vw, 380px);
    padding: 28px 24px 22px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: yc-uno-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes yc-uno-pop {
    from { transform: scale(0.88) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.yc-uno-winner-glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(99, 102, 241, 0.25));
    z-index: -1;
    filter: blur(18px);
    opacity: 0.7;
}

.yc-uno-winner-trophy {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
}

.yc-uno-winner-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
}

.yc-uno-winner-sub {
    margin: 0 0 16px;
    font-size: clamp(14px, 3.5vw, 16px);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.yc-uno-winner-avatar-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.yc-uno-winner-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f172a;
}

.yc-uno-winner-name {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
}

.yc-uno-winner-close {
    min-width: 140px;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.yc-uno-winner-close:hover {
    filter: brightness(1.06);
}

@media (max-width: 640px) {
    .yc-uno-toolbar {
        padding: 8px 10px;
    }

    #nsmat-uno-left,
    #nsmat-uno-right {
        width: clamp(56px, 16vw, 80px);
    }

    #nsmat-uno-top .cards .card,
    #nsmat-uno-left .cards .card,
    #nsmat-uno-right .cards .card {
        width: clamp(34px, 9vw, 46px);
        max-width: clamp(34px, 9vw, 46px);
        min-height: clamp(48px, 12vw, 64px);
        max-height: clamp(48px, 12vw, 64px);
        height: clamp(48px, 12vw, 64px);
    }

    #nsmat-uno-top .cards .card + .card {
        margin-left: clamp(-28px, -7vw, -18px) !important;
    }

    #nsmat-uno-left .cards .card + .card,
    #nsmat-uno-right .cards .card + .card {
        margin-top: clamp(-36px, -9vw, -24px) !important;
    }

    #nsmat-uno-bottom .cards .card {
        width: clamp(46px, 13vw, 64px);
        max-width: clamp(46px, 13vw, 64px);
        height: clamp(66px, 18vw, 88px);
        min-height: clamp(66px, 18vw, 88px);
        max-height: clamp(66px, 18vw, 88px);
    }

    #nsmat-uno-bottom .cards .card + .card {
        margin-left: clamp(-32px, -8vw, -20px) !important;
    }

    #nsmat-uno-bottom .bottom-footer .user .name {
        display: none;
    }

    #nsmat-uno-bottom .bottom-footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    #nsmat-uno-scene {
        min-height: 100px;
    }

    #nsmat-uno-bottom .cards .card {
        height: 64px;
        min-height: 64px;
        max-height: 64px;
    }
}

/* nsmat:lobby-mobile-ui.css */
@media (max-width: 768px) {
    #login {
        max-width: 17.25rem !important;
        width: 100%;
    }
}

/* نفس مكان/حجم «متصل» و«غير متصل» — بدون خلفية ملونة */
#connection_container .connection-state-label--connecting,
#connection_container #connection-state-connecting {
    position: relative;
    left: 0;
    z-index: 10;
    color: #fff;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: .677rem;
    padding: .18em 2.4em;
    border-radius: 0;
}

#login #connection_container .connection-state-label--connecting,
#login #connection_container #connection-state-connecting {
    font-size: .625rem;
    padding: .2em .4em;
    border-radius: 0 .6em .6em 0;
}
