/* css/nsmat.css */
#chat__body__wall_creator_pane.wc-pane--loading .wc-stage,
#chat__body__wall_creator_pane.wc-pane--loading .wc-week-hero,
#chat__body__wall_creator_pane.wc-pane--loading .wc-leaderboard {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#chat__body__wall_creator_pane.wc-pane--loading .chat_pane__container {
    position: relative;
    min-height: 12rem;
}

#chat__body__wall_creator_pane.wc-pane--loading .chat_pane__container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 3px solid #dceee2;
    border-top-color: #3d8f52;
    border-radius: 50%;
    animation: wc-pane-spin .7s linear infinite;
    z-index: 5;
}

@keyframes wc-pane-spin {
    to { transform: rotate(360deg); }
}

.wc-podium-legacy-hidden,
#chat__body__wall_creator_pane .chat_pane__container__podium,
#chat__body__wall_creator_pane .chat_pane__container__posts,
#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 .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[style*="display: block"],
#chat__body__wall_creator_pane.wc-pane--premium[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

#chat__body__wall_creator_pane.wc-pane--premium .chat_pane__container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    background: #f4f8f5 !important;
    overflow: hidden !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: .14rem .22rem 0;
    padding: .14rem .2rem .12rem;
    border-radius: .55rem .55rem 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: .18rem;
    min-height: 5.4rem;
    padding-top: 0;
}

#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;
}

#chat__body__wall_creator_pane .wc-champion {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: .18rem;
    padding: .22rem .22rem .2rem;
    border-radius: .45rem;
    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: -.28rem;
    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: .1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd54f, #ff8f00);
    box-shadow: 0 0 .5rem rgba(255, 193, 7, .4);
    margin-bottom: .12rem;
}

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

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

#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: .1rem;
    width: 100%;
    padding: .14rem .2rem;
    border-radius: .32rem;
    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: .68rem;
    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);
}

#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: 1.72rem !important;
    height: 1.72rem !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: .16rem .12rem;
    border-radius: .32rem .32rem 0 0;
    min-height: 1.15rem;
    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-week-hero {
    position: relative;
    flex: 0 0 auto;
    margin: 0 .22rem;
    padding: .24rem .36rem .28rem;
    border-radius: .45rem;
    background: linear-gradient(135deg, #fff8e8 0%, #f3e8ff 48%, #e8f4ff 100%);
    border: 1px solid rgba(167, 139, 250, .45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .65) inset,
        0 4px 14px rgba(124, 58, 237, .12);
    overflow: hidden;
}

#chat__body__wall_creator_pane .wc-week-hero__glow {
    pointer-events: none;
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 215, 120, .35) 0%, transparent 42%),
        radial-gradient(circle at 82% 70%, rgba(167, 139, 250, .28) 0%, transparent 45%);
    z-index: 0;
}

#chat__body__wall_creator_pane .wc-week-hero__head,
#chat__body__wall_creator_pane .wc-week-hero__range,
#chat__body__wall_creator_pane .wc-week-hero__card {
    position: relative;
    z-index: 1;
}

#chat__body__wall_creator_pane .wc-week-hero__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    margin-bottom: .1rem;
}

#chat__body__wall_creator_pane .wc-week-hero__title {
    font-size: .6rem;
    font-weight: 800;
    color: #5b21b6;
    letter-spacing: .01em;
}

#chat__body__wall_creator_pane .wc-week-hero__star {
    display: inline-block;
    width: .85rem;
    height: .85rem;
    opacity: .72;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a855f7' fill-opacity='.55' d='M12 2l2.6 6.5L22 9.2l-5 4.8 1.2 6.9L12 17.8 5.8 20.9 7 14 2 9.2l7.4-.7z'/%3E%3Cpath fill='%23fbbf24' d='M12 5.2l1.8 4.5 4.9.6-3.6 3.4.9 5.1L12 16.2l-4 2.6.9-5.1-3.6-3.4 4.9-.6z'/%3E%3C/svg%3E");
}

#chat__body__wall_creator_pane .wc-week-hero__range {
    margin: 0 0 .16rem;
    text-align: center;
    font-size: .48rem;
    font-weight: 600;
    color: #7c6a9a;
    line-height: 1.35;
}

#chat__body__wall_creator_pane .wc-week-hero__card {
    display: flex;
    align-items: center;
    gap: .28rem;
    padding: .22rem .32rem;
    border-radius: .42rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(139, 92, 246, .28);
    box-shadow: 0 2px 8px rgba(91, 33, 182, .08);
}

#chat__body__wall_creator_pane .wc-week-hero__avatar {
    flex: 0 0 1.75rem;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, .45);
    background: #f5f0ff;
}

#chat__body__wall_creator_pane .wc-week-hero__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .06rem;
    text-align: right;
}

#chat__body__wall_creator_pane .wc-week-hero__name {
    font-size: .68rem;
    font-weight: 800;
    color: #4c1d95;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chat__body__wall_creator_pane .wc-week-hero__hint {
    font-size: .48rem;
    font-weight: 600;
    color: #8b7aa8;
}

#chat__body__wall_creator_pane .wc-week-hero__score {
    flex: 0 0 auto;
    font-size: .58rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    padding: .18rem .36rem;
    border-radius: .32rem;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(124, 58, 237, .28);
}

#chat__body__wall_creator_pane .wc-week-hero--empty .wc-week-hero__card {
    display: none !important;
}

#chat__body__wall_creator_pane .wc-week-hero--empty::after {
    content: 'لا يوجد مبدع هذا الأسبوع بعد — انشر على الحائط!';
    display: block;
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: .54rem;
    font-weight: 600;
    color: #7c6a9a;
    padding: .15rem 0 .02rem;
}

#chat__body__wall_creator_pane .wc-leaderboard {
    flex: 1 1 0;
    min-height: 7.5rem;
    display: flex;
    flex-direction: column;
    margin: 0 .22rem .18rem;
    border-radius: 0 0 .55rem .55rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
}

#chat__body__wall_creator_pane .wc-leaderboard__head {
    display: none !important;
}

#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: .22rem;
    padding: .22rem .28rem;
    margin-bottom: .1rem;
    border-radius: .4rem;
    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: 5rem;
    }

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

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

body.yc-uno-active,
html.yc-uno-active {
    overflow: hidden !important;
}

body.yc-uno-active #mic-speakers {
    display: none !important;
}

#nsmat_uno_container:empty {
    display: none !important;
    pointer-events: none !important;
}

#nsmat_uno_container:not(:empty) {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10045 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}
#nsmat_uno_container .ep-game-invite-overlay,
#nsmat_uno_container .yc-uno-lobby,
#nsmat_uno_container .yc-uno-board {
    pointer-events: auto !important;
}

.yc-uno-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100080;
    background: rgba(20, 20, 30, 0.92);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    direction: rtl;
}

.yc-uno-lobby {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    direction: rtl;
}

.yc-uno-lobby__panel {
    width: min(92vw, 22rem);
    background: #fefffc;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.yc-uno-lobby__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 12px;
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.yc-uno-lobby__logo {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.yc-uno-lobby__head h2 {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: inherit;
    min-width: 0;
}

.yc-uno-lobby__close {
    width: auto;
    height: auto;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.2;
    border: 0;
    background: transparent;
}

.yc-uno-lobby__host {
    padding: 0.55rem 12px;
    color: #666;
    font-size: 0.82rem;
    border-bottom: 1px solid #e6e6e6;
    background: #f9f9f9;
}

.yc-uno-lobby__host strong {
    color: #333;
    margin-right: 0.35rem;
    font-weight: 700;
}

.yc-uno-lobby__slot {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}

.yc-uno-lobby__slot label {
    width: 4rem;
    font-size: 0.78rem;
    color: #555;
    font-weight: 600;
}

.yc-uno-lobby__select {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d3d3d3;
    background: #fff;
    color: #333;
    font-size: 0.82rem;
}

.yc-uno-lobby__req {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    touch-action: manipulation;
    border: 0;
}

.yc-uno-lobby__slot-ok {
    flex: 1;
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
}

.yc-uno-lobby__foot {
    padding: 0.75rem 12px 12px;
}

.yc-uno-lobby__start {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-uno-lobby__start:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#nsmat_uno_container #nsmat-uno.yc-uno-board {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 217, 80, 0.07), transparent 55%),
        linear-gradient(180deg, #0c1020 0%, #060810 100%) !important;
}

#nsmat_uno_container #nsmat-uno.yc-uno-board > .yc-uno-frame {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

#nsmat_uno_container #nsmat-uno.yc-uno-board > .yc-uno-frame > .yc-uno-frame__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.yc-uno-board {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 217, 80, 0.07), transparent 55%),
        linear-gradient(180deg, #0c1020 0%, #060810 100%);
    direction: rtl;
    overflow: hidden;
}

.yc-uno-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 3px;
    border-radius: 0;
    background: linear-gradient(145deg, #ffe082 0%, #c9a227 25%, #ffe566 50%, #8b6914 75%, #ffd950 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(255, 217, 80, 0.12);
    box-sizing: border-box;
}

.yc-uno-frame__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(180deg, #141a2e 0%, #0a0d16 100%);
    overflow: hidden;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.yc-uno-board__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
    border-bottom: 1px solid rgba(255, 217, 80, 0.15);
    z-index: 100;
    flex-shrink: 0;
}

.yc-uno-board__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    color: #ffe082;
    font-weight: 800;
    font-size: clamp(0.88rem, 2.5vw, 1.05rem);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    min-width: 0;
}

.yc-uno-board__brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yc-uno-turn-hint {
    display: block;
    font-size: clamp(0.58rem, 1.6vw, 0.72rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.yc-uno-turn-hint.is-mine {
    color: #81c784;
}

.yc-uno-board__title img {
    width: 1.55rem;
    height: 1.55rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

#nsmat_uno_container #nsmat-uno-exit,
#nsmat_uno_container #nsmat-uno-home,
.yc-uno-board__btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 2.55rem !important;
    height: 2.55rem !important;
    min-width: 2.55rem !important;
    min-height: 2.55rem !important;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.55rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    background-image: none !important;
    z-index: 101 !important;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.yc-uno-board__btn--min {
    background: linear-gradient(145deg, #ffd950, #e6a800) !important;
    color: #1a1035 !important;
}

.yc-uno-board__btn--exit {
    background: linear-gradient(145deg, #ef476f, #c1121f) !important;
    color: #fff !important;
}

.yc-uno-board__stage {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.yc-uno-playfield {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0.15rem clamp(0.35rem, 1.5vw, 1rem);
    overflow: hidden;
    --uno-card-w: clamp(2.25rem, 7.5vmin, 4.5rem);
    --uno-card-h: calc(var(--uno-card-w) * 1.4);
}

.yc-uno-arena {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    direction: ltr;
    display: grid;
    grid-template-columns:
        minmax(0, clamp(4rem, 14vmin, 6.5rem))
        minmax(0, 1fr)
        minmax(0, clamp(4rem, 14vmin, 6.5rem));
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "top    top    top"
        "left   table  right";
    row-gap: clamp(0.5rem, 2.5vh, 1.1rem);
    column-gap: clamp(0.65rem, 3vw, 1.75rem);
    align-items: center;
    justify-items: stretch;
    padding: 0.25rem clamp(0.15rem, 1vw, 0.75rem);
    box-sizing: border-box;
}

.yc-uno-arena__top {
    grid-area: top;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    padding: 0 0.15rem;
}

.yc-uno-arena__left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    align-self: center;
    padding-right: 0.15rem;
    box-sizing: border-box;
}

.yc-uno-arena__right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    align-self: center;
    padding-left: 0.15rem;
    box-sizing: border-box;
}

.yc-uno-arena__table {
    grid-area: table;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    isolation: isolate;
    container-type: size;
    container-name: uno-table-cell;
    overflow: hidden;
}

.yc-uno-draw-zone {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: auto;
    padding: 0 0.35rem 0.1rem 0;
    z-index: 200;
    align-self: flex-end;
}

.yc-uno-arena__table .yc-uno-table {
    pointer-events: none;
    flex: 0 0 auto;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    width: min(100%, 100cqmin);
    height: min(100%, 100cqmin);
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

.yc-uno-seat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: linear-gradient(160deg, rgba(30, 36, 60, 0.88), rgba(16, 18, 32, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(0.35rem, 1vmin, 0.5rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    direction: rtl;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
    contain: layout paint;
}

.yc-uno-seat--top {
    flex-direction: column;
    max-width: min(100%, 14rem);
    margin: 0 auto;
}

.yc-uno-seat--left,
.yc-uno-seat--right {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.22rem 0.15rem;
    max-width: 100%;
    width: 100%;
}

.yc-uno-seat--left {
    align-items: flex-end;
}

.yc-uno-seat--right {
    align-items: flex-start;
}

.yc-uno-arena--p2 .yc-uno-arena__table .yc-uno-table,
.yc-uno-arena--p3 .yc-uno-arena__table .yc-uno-table,
.yc-uno-arena--p4 .yc-uno-arena__table .yc-uno-table {
    min-width: 0;
    min-height: 0;
}

.yc-uno-seat__cards {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.15rem 0.2rem;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.yc-uno-seat__cards--top {
    flex-direction: row;
    max-height: clamp(1.75rem, 5vmin, 2.75rem);
    max-width: 100%;
    min-width: 0;
    width: auto;
}

.yc-uno-seat__cards--left,
.yc-uno-seat__cards--right {
    flex-direction: column;
    max-height: clamp(3.5rem, 13vmin, 5.5rem);
    width: clamp(1.5rem, 5vmin, 2.15rem);
    padding: 0.12rem 0.08rem;
    align-items: center;
}

.yc-uno-seat__card {
    flex: 0 0 auto;
    display: block;
    width: clamp(1rem, 3.5vmin, 1.65rem);
    height: clamp(1.4rem, 5vmin, 2.25rem);
    border-radius: 0.22rem;
    background: url(/images/back.png) center/cover;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    position: relative;
}

.yc-uno-seat__cards--left .yc-uno-seat__card,
.yc-uno-seat__cards--right .yc-uno-seat__card {
    width: clamp(0.95rem, 3.2vmin, 1.45rem);
    height: clamp(1.35rem, 4.5vmin, 1.95rem);
    transform: none;
}

.yc-uno-seat.is-active {
    border-color: rgba(255, 217, 80, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 217, 80, 0.45), inset 0 0 12px rgba(255, 217, 80, 0.15);
}

.yc-uno-seat.is-active .yc-uno-seat__avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: clamp(0.35rem, 1vmin, 0.5rem);
    border: 2px solid rgba(255, 217, 80, 0.9);
    box-shadow: 0 0 8px rgba(255, 217, 80, 0.5);
    animation: yc-uno-turn-ring 1.1s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.yc-uno-seat.is-active[data-seat="top"],
.yc-uno-seat.is-active[data-seat="left"],
.yc-uno-seat.is-active[data-seat="right"] {
    transform: none;
}

@keyframes yc-uno-turn-glow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(255, 217, 80, 0.35), 0 0 14px rgba(255, 217, 80, 0.25);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 217, 80, 0.55), 0 0 28px rgba(255, 217, 80, 0.55);
    }
}

@keyframes yc-uno-turn-ring {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes yc-uno-seat-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 217, 80, 0.25), 0 0 20px rgba(255, 217, 80, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(255, 217, 80, 0.35), 0 0 32px rgba(255, 217, 80, 0.55); }
}

.yc-uno-seat__turn-tag {
    position: absolute;
    top: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.08rem 0.4rem;
    border-radius: 0.65rem;
    font-size: clamp(0.5rem, 1.4vmin, 0.58rem);
    font-weight: 700;
    color: #1a1035;
    background: rgba(255, 217, 80, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    pointer-events: none;
}

.yc-uno-seat__player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    flex-shrink: 0;
    min-width: 0;
}

.yc-uno-seat--left .yc-uno-seat__player,
.yc-uno-seat--right .yc-uno-seat__player {
    max-width: clamp(2.4rem, 8vmin, 3.5rem);
}

.yc-uno-seat__avatar-wrap {
    position: relative;
}

.yc-uno-seat__avatar {
    width: clamp(1.35rem, 4vmin, 2rem);
    height: clamp(1.35rem, 4vmin, 2rem);
    border-radius: clamp(0.35rem, 1vmin, 0.5rem);
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: #222;
}

.yc-uno-seat.is-active .yc-uno-seat__avatar {
    border-color: rgba(255, 217, 80, 0.85);
}

.yc-uno-seat__count {
    position: absolute;
    bottom: -0.2rem;
    right: -0.2rem;
    min-width: clamp(0.9rem, 2.6vmin, 1.05rem);
    height: clamp(0.9rem, 2.6vmin, 1.05rem);
    padding: 0 0.18rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #e8e8e8);
    color: #111;
    font-size: clamp(0.52rem, 1.5vmin, 0.62rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1035;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.yc-uno-seat__name {
    font-size: clamp(0.5rem, 1.5vmin, 0.65rem);
    font-weight: 600;
    color: #eee;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    padding: 0.08rem 0.35rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(30, 120, 160, 0.9), rgba(20, 80, 120, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.yc-uno-seat__bot {
    font-size: 0.65rem;
    opacity: 0.85;
}

.yc-uno-table {
    display: flex;
    max-width: 100%;
    max-height: 100%;
    padding: 4px;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #c9a227, #8b6914, #ffd950, #a67c00);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    overflow: hidden;
}

.yc-uno-table__felt {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 0.65rem;
    container-type: size;
    container-name: uno-felt;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255, 255, 255, 0.06), transparent),
        linear-gradient(145deg, #1e9e6a 0%, #157a52 40%, #0d5038 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.yc-uno-table__corner {
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 217, 80, 0.45);
    pointer-events: none;
}

.yc-uno-table__corner--tl { top: 0.35rem; left: 0.35rem; border-right: none; border-bottom: none; border-radius: 0.25rem 0 0 0; }
.yc-uno-table__corner--tr { top: 0.35rem; right: 0.35rem; border-left: none; border-bottom: none; border-radius: 0 0.25rem 0 0; }
.yc-uno-table__corner--bl { bottom: 0.35rem; left: 0.35rem; border-right: none; border-top: none; border-radius: 0 0 0 0.25rem; }
.yc-uno-table__corner--br { bottom: 0.35rem; right: 0.35rem; border-left: none; border-top: none; border-radius: 0 0 0.25rem 0; }

.yc-uno-table__dir {
    display: none !important;
}

.yc-uno-table__dir--rtl .fa { transform: scaleX(-1); }

.yc-uno-draw-pile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem;
    border: none;
    background: none;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 201;
    pointer-events: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    -webkit-tap-highlight-color: transparent;
}

.yc-uno-draw-pile:disabled {
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.yc-uno-draw-pile__hit {
    position: absolute;
    inset: -0.35rem;
    z-index: 0;
    pointer-events: auto;
}

.yc-uno-draw-pile__deck {
    position: relative;
    z-index: 1;
    width: var(--uno-card-w, 2.4rem);
    height: var(--uno-card-h, 3.35rem);
}

.yc-uno-draw-pile__layer {
    position: absolute;
    inset: 0;
    border-radius: 0.38rem;
    background: url(/images/back.png) center/cover;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.yc-uno-draw-pile__layer:nth-child(1) { transform: translate(-4px, -5px) rotate(-7deg); opacity: 0.75; }
.yc-uno-draw-pile__layer:nth-child(2) { transform: translate(2px, -2px) rotate(3deg); opacity: 0.88; }
.yc-uno-draw-pile__layer--top { transform: translate(0, 0) rotate(-2deg); z-index: 2; }

.yc-uno-draw-pile__shine {
    position: absolute;
    left: 50%;
    top: 42%;
    width: calc(var(--uno-card-w, 2.4rem) + 1rem);
    height: calc(var(--uno-card-h, 3.35rem) + 1rem);
    transform: translate(-50%, -50%);
    border-radius: 0.6rem;
    background: radial-gradient(circle, rgba(255, 217, 80, 0.35), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.yc-uno-draw-pile__label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.yc-uno-draw-pile.is-active .yc-uno-draw-pile__shine {
    opacity: 1;
    animation: yc-uno-draw-shine 1.2s ease-in-out infinite;
}

.yc-uno-draw-pile.is-active .yc-uno-draw-pile__layer--top {
    animation: yc-uno-draw-float 0.9s ease-in-out infinite;
}

.yc-uno-draw-pile.is-flash {
    animation: yc-uno-draw-pulse-flash 0.32s ease-out 2;
}

.yc-uno-draw-pile.is-flash .yc-uno-draw-pile__shine {
    opacity: 1;
    animation: yc-uno-draw-flash-burst 0.32s ease-out 2;
}

.yc-uno-draw-pile.is-flash .yc-uno-draw-pile__deck {
    filter: brightness(1.35);
}

@keyframes yc-uno-draw-pulse-flash {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes yc-uno-draw-flash-burst {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.25); }
    100% { opacity: 0.4; transform: scale(1); }
}

@keyframes yc-uno-draw-shine {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes yc-uno-draw-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

.yc-uno-draw-pile.is-drawing .yc-uno-draw-pile__layer--top {
    animation: yc-uno-draw-deal 0.45s ease-out forwards;
}

@keyframes yc-uno-draw-deal {
    0% { transform: translateY(0) rotate(-2deg); opacity: 1; }
    100% { transform: translateY(-28px) rotate(12deg) scale(0.85); opacity: 0; }
}

.yc-uno-draw-pile:active:not(:disabled) .yc-uno-draw-pile__deck {
    transform: scale(0.94);
}

.yc-uno-discard {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(32cqw, var(--uno-card-w, 2.4rem) + 0.35rem);
    height: min(44cqw, var(--uno-card-h, 3.35rem) + 0.35rem);
    max-width: 38%;
    max-height: 38%;
}

.yc-uno-discard__glow {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 65%);
    pointer-events: none;
}

.yc-uno-discard__card {
    position: relative;
    display: block;
    width: min(var(--uno-card-w, 2.4rem), 30cqw);
    height: min(var(--uno-card-h, 3.35rem), 42cqw);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.38rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    transform: rotate(-6deg);
    transition: transform 0.35s ease;
}

.yc-uno-discard__color {
    position: absolute;
    bottom: -0.1rem;
    right: -0.1rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.yc-uno-fly-card {
    position: fixed;
    z-index: 100070;
    width: clamp(2.2rem, 11vw, 3rem);
    height: auto;
    max-height: 4.2rem;
    border-radius: 0.32rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(0.6) rotate(-15deg);
    opacity: 1;
    pointer-events: none;
    transition: left 0.55s cubic-bezier(0.25, 0.8, 0.35, 1),
                top 0.55s cubic-bezier(0.25, 0.8, 0.35, 1),
                transform 0.55s ease,
                opacity 0.55s ease;
}

.yc-uno-board__footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(0.35rem, 2vw, 0.85rem);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 100%);
    border-top: 1px solid rgba(255, 217, 80, 0.1);
    padding: 0.2rem clamp(0.4rem, 2vw, 1.25rem) max(0.25rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    max-height: clamp(6.5rem, 30vh, 9.5rem);
    min-height: 0;
    pointer-events: auto;
    isolation: isolate;
    overflow: hidden;
    --uno-card-w: clamp(2rem, 6.5vmin, 4.25rem);
    --uno-card-h: calc(var(--uno-card-w) * 1.4);
}

.yc-uno-board__footer .yc-uno-draw-zone {
    order: 1;
    flex-shrink: 0;
}

.yc-uno-board__footer .yc-uno-board__me {
    order: 2;
}

.yc-uno-board__footer .yc-uno-board__hand-wrap {
    order: 3;
    flex: 1 1 auto;
    direction: rtl;
}

.yc-uno-board__hand-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(100%, 42rem);
    padding-top: clamp(0.65rem, 3.5vh, 1.25rem);
    z-index: 10;
    pointer-events: auto;
    overflow: visible;
    min-height: clamp(4.5rem, 16vh, 6.5rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.yc-uno-board__hand {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.5rem 0.25rem 0.15rem;
    min-height: clamp(4.25rem, 18vh, 6.5rem);
    max-height: clamp(5rem, 22vh, 7.5rem);
    scrollbar-width: none;
    position: relative;
    pointer-events: auto;
}

.yc-uno-board__hand::-webkit-scrollbar { display: none; }

.yc-uno-board__card {
    flex: 0 0 auto;
    width: clamp(2.35rem, 7vmin, var(--uno-card-w, 4.25rem));
    height: auto;
    max-height: clamp(3.25rem, 13vh, var(--uno-card-h, 5.5rem));
    border-radius: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    cursor: default;
    touch-action: manipulation;
    user-select: none;
    transition: filter 0.15s, box-shadow 0.15s, transform 0.2s ease;
    position: relative;
    pointer-events: auto;
    background: #fff;
}

.yc-uno-board__card.playable {
    cursor: pointer;
}

.yc-uno-board__card.playable:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 0 2px #ffd950, 0 6px 16px rgba(0, 0, 0, 0.45);
}

.yc-uno-board__card.locked {
    opacity: 0.88;
    filter: saturate(0.85);
    pointer-events: none;
}

.yc-uno-board__me.is-active {
    transform: none;
}

.yc-uno-board__me-ring {
    position: relative;
    padding: 2px;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.yc-uno-board__me.is-active .yc-uno-board__me-ring {
    border-color: rgba(255, 217, 80, 0.85);
    animation: yc-uno-turn-glow 1.1s ease-in-out infinite;
}

.yc-uno-board__me.is-active .yc-uno-board__me-ring::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 0.55rem;
    border: 2px solid rgba(255, 217, 80, 0.95);
    box-shadow: 0 0 14px rgba(255, 217, 80, 0.65);
    animation: yc-uno-turn-ring 1.1s ease-in-out infinite;
    pointer-events: none;
}

.yc-uno-board__avatar {
    width: clamp(1.75rem, 4.5vmin, 2.4rem);
    height: clamp(1.75rem, 4.5vmin, 2.4rem);
    border-radius: 0.4rem;
    border: none;
    object-fit: cover;
    display: block;
    background: #222;
}

.yc-uno-board__count {
    position: absolute;
    bottom: -0.2rem;
    right: -0.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.2rem;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1035;
}

.yc-uno-board__name {
    font-size: clamp(0.5rem, 1.4vmin, 0.62rem);
    font-weight: 600;
    color: #eee;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-uno-board__you {
    font-size: clamp(0.48rem, 1.2vmin, 0.55rem);
    color: #ffd950;
    font-weight: 600;
}

.yc-uno-color-pick {
    position: absolute;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.yc-uno-color-pick p {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.yc-uno-color-pick div {
    display: flex;
    gap: 0.6rem;
}

.yc-uno-color-pick button {
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-uno-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    padding: 1rem;
    direction: rtl;
}

.yc-uno-exit-modal__box {
    width: min(88vw, 16rem);
    background: linear-gradient(160deg, #1e1838, #12101f);
    border: 1px solid rgba(255, 215, 80, 0.25);
    border-radius: 1rem;
    padding: 1.1rem;
    text-align: center;
}

.yc-uno-exit-modal__box p {
    margin: 0 0 0.85rem;
    color: #eee;
    font-size: 0.92rem;
    line-height: 1.5;
}

.yc-uno-exit-modal__box div {
    display: flex;
    gap: 0.5rem;
}

.yc-uno-exit-modal__box button {
    flex: 1;
    min-height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-uno-exit-modal__box button[data-x="yes"] {
    background: linear-gradient(135deg, #ffd950, #e6a800);
    color: #1a1035;
}

.yc-uno-exit-modal__box button[data-x="no"] {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.yc-uno-float {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    z-index: 10046;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b35, #e63946);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-uno-float--turn {
    animation: yc-uno-float-pulse 1s ease-in-out infinite;
}

@keyframes yc-uno-float-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45); }
    50% { box-shadow: 0 6px 24px rgba(255, 217, 47, 0.7); }
}

.yc-uno-float img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.yc-uno-one-card-alert {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -12px);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a1f35 0%, #0f1324 100%);
    border: 2px solid #ffd950;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    direction: rtl;
    max-width: min(92%, 20rem);
}

.yc-uno-one-card-alert.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.yc-uno-one-card-alert__badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 0.25rem;
    background: #ffd950;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.yc-uno-one-card-alert__text strong {
    color: #ffd950;
}

.yc-uno-winner-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    direction: rtl;
}

.yc-uno-winner-card {
    width: min(92vw, 21rem);
    padding: 1.4rem 1.2rem 1.1rem;
    border-radius: 12px;
    background: #fefffc;
    border: 1px solid #d3d3d3;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    text-align: center;
    color: #333;
}

.yc-uno-winner-trophy {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.yc-uno-winner-title {
    color: #222;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0.15rem 0;
}

.yc-uno-winner-name {
    margin: 0.2rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #337ab7;
}

.yc-uno-winner-sub {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
}

.yc-uno-winner-avatar {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: 3px solid #ffd950;
    object-fit: cover;
    margin-bottom: 0.65rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yc-uno-winner-close {
    margin-top: 0.15rem;
    min-width: 7rem;
    min-height: 2.35rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-uno-board__me {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 0.15rem;
    gap: 0.06rem;
    transition: transform 0.3s;
    max-width: clamp(3rem, 10vmin, 4rem);
}

@media (max-width: 480px) {
    .yc-uno-arena {
        row-gap: 0.35rem;
        column-gap: clamp(0.5rem, 4vw, 1rem);
        grid-template-columns:
            minmax(0, clamp(3.25rem, 15vmin, 4.5rem))
            minmax(0, 1fr)
            minmax(0, clamp(3.25rem, 15vmin, 4.5rem));
    }

    .yc-uno-draw-pile {
        padding: 0.25rem;
    }

    .yc-uno-draw-pile__hit {
        inset: -0.35rem;
    }

    .yc-uno-seat__card {
        width: clamp(0.85rem, 3vmin, 1.1rem);
        height: clamp(1.2rem, 4vmin, 1.55rem);
    }

    .yc-uno-board__footer {
        max-height: clamp(4.5rem, 22vh, 6.5rem);
    }

    .yc-uno-board__card {
        width: clamp(1.65rem, 7.5vw, 2.2rem);
        max-height: 3rem;
    }
}

@media (min-width: 768px) {
    .yc-uno-frame {
        margin: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        padding: clamp(5px, 0.55vw, 12px);
        border-radius: 0.85rem;
    }

    .yc-uno-frame__inner {
        border-radius: 0.7rem;
    }

    .yc-uno-playfield {
        --uno-card-w: clamp(2.75rem, 6.5vmin, 4.75rem);
        padding: 0.2rem clamp(0.5rem, 2vw, 1.5rem);
    }

    .yc-uno-arena {
        width: 100%;
        max-width: none;
        column-gap: clamp(1rem, 3vw, 3.5rem);
        row-gap: clamp(0.5rem, 2vh, 1.25rem);
    }

    .yc-uno-board__footer {
        max-height: clamp(6.5rem, 22vh, 8.5rem);
        padding: 0.3rem 1.5rem 0.55rem;
        --uno-card-w: clamp(2.5rem, 5.5vmin, 4.5rem);
    }

    .yc-uno-board__card {
        width: clamp(2.5rem, 5.5vmin, 4.5rem);
        max-height: clamp(3.5rem, 12vh, 6rem);
    }
}

@media (min-width: 1200px) {
    .yc-uno-playfield {
        --uno-card-w: clamp(3rem, 5.5vmin, 5rem);
    }

    .yc-uno-arena {
        column-gap: clamp(1.25rem, 3.5vw, 4.5rem);
    }

    .yc-uno-board__footer {
        max-height: clamp(7rem, 20vh, 9rem);
        --uno-card-w: clamp(2.75rem, 4.5vmin, 5rem);
    }

    .yc-uno-board__card {
        width: clamp(2.75rem, 4.5vmin, 5rem);
        max-height: clamp(4rem, 14vh, 6.75rem);
    }
}





#chat__body__others-pane.others-pane--premium {
    --nx-text: #172033;
    --nx-muted: #64748b;
    --nx-bg: #f4f6fb;
    --nx-radius: 22px;
    --nx-shadow: 0 10px 24px rgba(23, 32, 51, .06), 0 2px 6px rgba(23, 32, 51, .04);
    --nx-shadow-hover: 0 18px 34px rgba(23, 32, 51, .12);
    --nx-ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--nx-bg) !important;
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

#chat__body__others-pane.others-pane--premium > .chat_pane__header {
    background: #2c3f72 !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,
#chat__body__games-pane .el-shell-games,
#el-shell {
    background:
        radial-gradient(70% 28% at 100% 0%, rgba(104, 72, 245, .08), transparent 70%),
        radial-gradient(50% 24% at 0% 100%, rgba(59, 130, 246, .07), transparent 68%),
        #f4f6fb !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: .7rem .55rem .9rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    align-content: stretch;
}

.nx-card {
    --nx-ink: #172033;
    --nx-soft: #64748b;
    --nx-chip: rgba(255, 255, 255, .72);
    --nx-arrow: #3b82f6;
    --nx-icon-bg: rgba(255, 255, 255, .78);
    --nx-glow: rgba(104, 72, 245, .16);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 4px 12px;
    border: 1px solid rgba(23, 32, 51, .06);
    border-radius: 20px;
    background: #fff;
    color: var(--nx-ink);
    text-align: right;
    line-height: 1.35;
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
    font-weight: 500;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 18px rgba(23, 32, 51, .06);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}

.nx-card::before,
.nx-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.nx-card::before {
    width: 72px;
    height: 72px;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, var(--nx-glow) 0%, transparent 70%);
    opacity: .55;
}

.nx-card::after {
    width: 28px;
    height: 28px;
    left: 46px;
    bottom: -14px;
    background: radial-gradient(circle, rgba(255, 255, 255, .4), transparent 70%);
}

.nx-card:hover,
.nx-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px rgba(23, 32, 51, .09);
    z-index: 2;
    outline: none;
}

.nx-card:hover::before,
.nx-card:focus-visible::before {
    opacity: .8;
}

.nx-card:active {
    transform: scale(0.99);
}

.nx-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(104, 72, 245, .35), 0 18px 34px rgba(23, 32, 51, .13) !important;
}

.nx-card:hover .nx-card__art,
.nx-card:focus-visible .nx-card__art {
    transform: translateY(-1px);
}

.nx-card--static {
    cursor: default;
}

.nx-card--static:hover,
.nx-card--static:focus-visible,
.nx-card--static:active,
.nx-card--static:hover .nx-card__art {
    transform: none;
}

.nx-card__copy,
.nx-card__art,
.nx-card__badge,
.nx-card__kicker,
.nx-card__title,
.nx-card__desc,
.nx-card__cta,
.nx-card__arrow,
.nx-glint {
    pointer-events: none;
}

.nx-card__kicker {
    position: absolute;
    top: -12px;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 12px;
    margin: 0;
    padding: 0;
    color: var(--nx-arrow);
    font-size: 11px;
    font-weight: 600;
    line-height: 12px;
    white-space: nowrap;
}

.nx-card__kicker svg {
    width: 12px;
    height: 12px;
    flex: none;
    display: block;
}

.nx-card__copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    direction: rtl;
    text-align: right;
}

.nx-card__badge {
    display: none;
}

.nx-card__badge svg {
    width: 14px;
    height: 14px;
    display: block;
    flex: none;
}

.nx-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--nx-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
    text-align: right;
}

.nx-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 2px;
    overflow: hidden;
    color: var(--nx-soft);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.nx-card__cta {
    display: none;
}

.nx-card__arrow {
    width: 34px;
    height: 34px;
    margin-inline-start: auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: none;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .78);
    color: var(--nx-arrow);
    box-shadow: 0 3px 8px rgba(23, 32, 51, .08);
    transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.nx-card:hover .nx-card__arrow {
    transform: translateX(-2px);
    box-shadow: 0 5px 12px rgba(23, 32, 51, .12);
}

.nx-card__arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nx-card__art {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform .2s ease-out;
}

.nx-card__art::before,
.nx-card__art::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.nx-card__art::before {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--nx-glow);
    filter: blur(6px);
    opacity: .45;
    z-index: 0;
}

.nx-card__art::after {
    left: 50%;
    bottom: 1px;
    width: 32px;
    height: 6px;
    border-radius: 50%;
    background: var(--nx-arrow);
    opacity: .28;
    filter: blur(2px);
    transform: translateX(-50%);
}

.nx-card__art > svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 3px 4px var(--nx-glow));
}

.nx-glint {
    position: absolute;
    top: 4px;
    left: 8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    box-shadow: 8px 12px 0 -0.5px rgba(255, 255, 255, .85);
    animation: nx-twinkle 3.4s ease-in-out infinite;
}

.nx-card--hero,
.nx-card--gold,
.nx-card--purple.nx-card--hero {
    --nx-ink: #3d2910;
    --nx-soft: #8a6230;
    --nx-chip: rgba(255, 255, 255, .62);
    --nx-arrow: #b45309;
    --nx-glow: rgba(217, 149, 32, .42);
    background: linear-gradient(118deg, #e6c56a 0%, #d4a43c 52%, #c48a1c 100%) !important;
    border-color: rgba(180, 110, 20, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 20px rgba(180, 120, 20, .12) !important;
}

.nx-card--flame,
.nx-card--orange {
    --nx-ink: #3a2414;
    --nx-soft: #8a5a32;
    --nx-chip: rgba(255, 255, 255, .62);
    --nx-arrow: #ff8a24;
    --nx-glow: rgba(255, 154, 60, .45);
    background: linear-gradient(118deg, #f0c09a 0%, #e09858 52%, #d07a32 100%) !important;
    border-color: rgba(255, 138, 36, .16) !important;
}

.nx-card--ice,
.nx-card--blue {
    --nx-ink: #14304f;
    --nx-soft: #4d6d8c;
    --nx-chip: rgba(255, 255, 255, .7);
    --nx-arrow: #3b82f6;
    --nx-glow: rgba(96, 165, 250, .4);
    background: linear-gradient(118deg, #b9d4f2 0%, #8fbfef 48%, #6aa6e4 100%) !important;
    border-color: rgba(59, 130, 246, .16) !important;
}

.nx-card--violet,
.nx-card--purple {
    --nx-ink: #2a2158;
    --nx-soft: #655b93;
    --nx-chip: rgba(255, 255, 255, .66);
    --nx-arrow: #7c5cff;
    --nx-glow: rgba(168, 139, 250, .42);
    background: linear-gradient(118deg, #d2c6f6 0%, #b5a4ee 50%, #9a86e0 100%) !important;
    border-color: rgba(124, 92, 255, .16) !important;
}

.nx-card--amber,
.nx-card--yellow {
    --nx-ink: #3d2d10;
    --nx-soft: #8a6a32;
    --nx-chip: rgba(255, 255, 255, .66);
    --nx-arrow: #f59e0b;
    --nx-glow: rgba(251, 191, 36, .42);
    background: linear-gradient(118deg, #f0d48a 0%, #e4bc58 52%, #d4a33a 100%) !important;
    border-color: rgba(245, 158, 11, .18) !important;
}

.nx-card--mint,
.nx-card--green {
    --nx-ink: #12352c;
    --nx-soft: #3f6d60;
    --nx-chip: rgba(255, 255, 255, .68);
    --nx-arrow: #0f9f78;
    --nx-glow: rgba(52, 211, 153, .38);
    background: linear-gradient(118deg, #b7e4d0 0%, #8ed4b6 50%, #68c4a0 100%) !important;
    border-color: rgba(15, 159, 120, .16) !important;
}

.nx-card--rose,
.nx-card--pink {
    --nx-ink: #4a2030;
    --nx-soft: #8d5568;
    --nx-chip: rgba(255, 255, 255, .68);
    --nx-arrow: #e11d48;
    --nx-glow: rgba(251, 113, 133, .4);
    background: linear-gradient(118deg, #f3c0cc 0%, #e498aa 50%, #d67890 100%) !important;
    border-color: rgba(225, 29, 72, .14) !important;
}

.nx-card--indigo {
    --nx-ink: #1e2a5a;
    --nx-soft: #5c6896;
    --nx-chip: rgba(255, 255, 255, .68);
    --nx-arrow: #4f46e5;
    --nx-glow: rgba(129, 140, 248, .4);
    background: linear-gradient(118deg, #cdd2f6 0%, #aeb6ee 50%, #909ae4 100%) !important;
    border-color: rgba(79, 70, 229, .14) !important;
}

.nx-card--slate {
    --nx-ink: #1e293b;
    --nx-soft: #64748b;
    --nx-chip: rgba(255, 255, 255, .7);
    --nx-arrow: #475569;
    --nx-glow: rgba(148, 163, 184, .4);
    background: linear-gradient(118deg, #d5dee8 0%, #b7c4d2 52%, #9aabbc 100%) !important;
    border-color: rgba(100, 116, 139, .16) !important;
}

.nx-card--night {
    --nx-ink: #eef2ff;
    --nx-soft: rgba(226, 232, 255, .75);
    --nx-chip: rgba(255, 255, 255, .12);
    --nx-arrow: #6366f1;
    --nx-glow: rgba(165, 180, 252, .35);
    background: linear-gradient(118deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

#chat__body__games-pane {
    display: none;
    flex-direction: column;
    background: #f4f6fb !important;
}

#chat__body__games-pane .el-shell-games {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: .7rem .55rem .9rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#chat__body__others-pane .others-game-hidden,
#others-games-hold,
#others-games-hold .others-game-hidden {
    display: none !important;
}

#chat__body__others-pane.others-pane--premium .others-card .fa,
.nx-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;
}

html.ep-night-mode #chat #chat__body__others-pane.others-pane--premium .others-pane__grid,
html.ep-night-mode #chat #chat__body__games-pane,
html.ep-night-mode #chat #chat__body__games-pane .el-shell-games,
html.ep-night-mode #el-shell {
    background:
        radial-gradient(70% 28% at 100% 0%, rgba(104, 72, 245, .16), transparent 70%),
        #141821 !important;
}

#chat__body__others-pane .chat__body__others-pane__container__button.nx-card {
    height: auto;
    min-height: 0;
    line-height: 1.35;
    padding: 4px 12px;
    text-align: right;
    border-radius: 20px;
}

@media (max-width: 420px) {
    .nx-card {
        padding: 4px 12px;
        border-radius: 18px;
    }
    .nx-card__art {
        width: 44px;
        height: 44px;
    }
    .nx-card__art svg {
        width: 24px;
        height: 24px;
    }
    .nx-card__title {
        font-size: 16px;
    }
    .nx-card__desc {
        font-size: 12px;
    }
    .nx-card__arrow {
        width: 32px;
        height: 32px;
    }
}

@keyframes nx-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.03); }
}
@keyframes nx-twinkle {
    0%, 100% { opacity: 0; transform: scale(.6); }
    45% { opacity: .7; transform: scale(1); }
}
@keyframes nx-tick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(16deg); }
}
@keyframes nx-wave {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}
@keyframes nx-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: .72; }
}
@keyframes nx-eq {
    0%, 100% { transform: scaleY(.45); }
    50% { transform: scaleY(1); }
}

.nx-art--flame > svg {
    transform-origin: 50% 80%;
    animation: nx-breathe 3.6s ease-in-out infinite;
}
.nx-art--clock .nx-hand {
    transform-box: view-box;
    transform-origin: 12px 12px;
    animation: nx-tick 4.6s ease-in-out infinite;
}
.nx-art--radio .nx-wave,
.nx-art--live .nx-wave {
    animation: nx-wave 2.6s ease-in-out infinite;
}
.nx-art--radio .nx-wave--2,
.nx-art--live .nx-wave--2 {
    animation-delay: .4s;
}
.nx-art--alert > svg {
    animation: nx-alert 3.2s ease-in-out infinite;
}
.nx-art--music .nx-eq {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: nx-eq 1.15s ease-in-out infinite;
}
.nx-art--music .nx-eq--2 {
    animation-delay: .2s;
}
.nx-spark {
    transform-box: fill-box;
    transform-origin: center;
    animation: nx-twinkle 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .nx-card,
    .nx-card__art,
    .nx-card__arrow,
    .chat_pane__header__back--others {
        transition: none !important;
    }
    .nx-card:hover,
    .nx-card:focus-visible,
    .nx-card:hover .nx-card__art,
    .nx-card:hover .nx-card__arrow {
        transform: none !important;
    }
    .nx-art--flame > svg,
    .nx-art--clock .nx-hand,
    .nx-art--radio .nx-wave,
    .nx-art--live .nx-wave,
    .nx-art--alert > svg,
    .nx-art--music .nx-eq,
    .nx-spark,
    .nx-glint {
        animation: none !important;
    }
}



.yc-complaint-overlay {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
    animation: ycComplaintFadeIn .2s ease-out;
}

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

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

.yc-complaint-modal {
    position: relative;
    width: min(440px, 100%);
    max-height: min(680px, calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    margin: auto;
    border: 1px solid rgba(23, 32, 51, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    color: #172033;
    animation: ycComplaintSlideUp .22s ease-out;
}

.yc-complaint-modal__header {
    position: relative;
    padding: 18px 18px 16px;
    text-align: center;
    background: var(--yc-complaint-header-bg, #337ab7);
    color: var(--yc-complaint-header-fg, #fff);
    flex-shrink: 0;
}

.yc-complaint-modal__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
    overflow: hidden;
    padding: 4px;
}

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

.yc-complaint-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.yc-complaint-modal__close {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    border: 0;
    background: rgba(255, 255, 255, .2);
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease-out;
}

.yc-complaint-modal__close:hover {
    background: rgba(255, 255, 255, .32);
}

.yc-complaint-modal__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--yc-complaint-header-bg, #2c5282);
    background: color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 18%, #fff);
    border-radius: 999px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

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

.yc-complaint-modal__body {
    padding: 16px 16px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8fafc;
    flex: 1 1 auto;
    min-height: 0;
}

.yc-complaint-field {
    margin-bottom: 12px;
    min-width: 0;
}

.yc-complaint-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #172033;
}

.yc-complaint-field label .fa {
    color: var(--yc-complaint-header-bg, #2c5282);
    font-size: 13px;
}

.yc-complaint-modal .yc-complaint-field input.form-control,
.yc-complaint-modal .yc-complaint-field textarea.form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    background: #fff;
    color: #172033;
    box-shadow: none;
    float: none;
    transition: border-color .2s ease-out, box-shadow .2s ease-out;
}

.yc-complaint-modal .yc-complaint-field textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.yc-complaint-modal .yc-complaint-field input.form-control:focus,
.yc-complaint-modal .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) 18%, transparent);
    outline: none;
}

.yc-complaint-field__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.yc-complaint-modal__ctx {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    line-height: 1.4;
    word-break: break-word;
}

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

.yc-complaint-upload {
    position: relative;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease-out, background .2s ease-out;
}

.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%;
    font-size: 16px;
}

.yc-complaint-upload__icon {
    font-size: 20px;
    color: var(--yc-complaint-header-bg, #2c5282);
    margin-bottom: 4px;
}

.yc-complaint-upload__title {
    font-size: 14px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 2px;
}

.yc-complaint-upload__hint,
.yc-complaint-upload__status {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.yc-complaint-upload__status {
    margin-top: 6px;
    min-height: 1em;
}

.yc-complaint-upload__status--ok {
    color: #0f9f78;
    font-weight: 700;
}

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

.yc-complaint-modal__preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    background: #fff;
}

.yc-complaint-modal__preview-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    border: 0;
    background: rgba(23, 32, 51, .72);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.yc-complaint-modal__footer {
    display: flex;
    justify-content: stretch;
    gap: 8px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #e8eef5;
    background: #fff;
    flex-shrink: 0;
}

.yc-complaint-modal__footer .btn {
    float: none;
    margin: 0;
}

.yc-complaint-modal__cancel,
.yc-complaint-modal__submit {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 12px;
    white-space: nowrap;
}

.yc-complaint-modal__cancel {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.yc-complaint-modal__submit {
    border: 0;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--yc-complaint-header-bg, #2c5282) 28%, transparent);
    transition: transform .2s ease-out, filter .2s ease-out;
}

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

.yc-complaint-modal__submit:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

#chat_complaint_modal.chat-complaint-modal {
    z-index: 10060;
}

@media (min-width: 1024px) {
    .yc-complaint-modal {
        width: min(480px, 34vw);
    }
}

@media (max-width: 640px) {
    .yc-complaint-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .yc-complaint-modal {
        width: 100%;
        max-width: 100vw;
        max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top)));
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
    }

    .yc-complaint-modal .yc-complaint-field input.form-control,
    .yc-complaint-modal .yc-complaint-field textarea.form-control {
        font-size: 16px;
    }

    .yc-complaint-modal__footer {
        flex-direction: column-reverse;
    }
}

@media (max-height: 520px) {
    .yc-complaint-overlay {
        align-items: center;
        padding: 8px;
    }

    .yc-complaint-modal {
        width: min(560px, 100%);
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .yc-complaint-modal__header {
        padding: 10px 44px 10px 12px;
    }

    .yc-complaint-modal__header-icon {
        display: none;
    }

    .yc-complaint-modal__header h3 {
        font-size: 16px;
    }

    .yc-complaint-modal .yc-complaint-field textarea.form-control {
        min-height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-complaint-overlay,
    .yc-complaint-modal,
    .yc-complaint-modal__submit {
        animation: none;
        transition: none;
    }
}

#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;
    overflow-y: auto;
    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);
    }
}

.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-list-icons__btn--youtube img {
    width: 22px;
    height: 22px;
}

.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--youtube {
    position: relative;
    width: min(92vw, 720px);
    max-width: 720px;
    border-radius: 12px;
    overflow: visible;
    background: #000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}

.pml-player__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.pml-player__close:hover {
    background: #e60000;
}

.pml-player--youtube .pml-player__frame-wrap--yt {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .pml-player--youtube {
        width: min(94vw, 100%);
    }

    .pml-player__close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

.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;
}

#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-actions {
    position: absolute;
    left: auto;
    right: 8px;
    bottom: 8px;
    z-index: 8;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    direction: rtl;
}

#user_profile .user_profile__cover-camera-btn,
#user_profile .user_profile__cover-remove-btn {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 8;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    background: #111 !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    text-align: center;
}

#user_profile .user_profile__cover-camera-btn .fa,
#user_profile .user_profile__cover-camera-btn .fa:before,
#user_profile .user_profile__cover-remove-btn .fa,
#user_profile .user_profile__cover-remove-btn .fa:before {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 12px;
    line-height: 1;
}

#user_profile .user_profile__cover-remove-btn {
    background: #8b1c1c !important;
}

#user_profile .user_profile__cover-container.is-loading .user_profile__cover-camera-btn,
#user_profile .user_profile__cover-container.is-loading .user_profile__cover-remove-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: 14px;
    height: 14px;
    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;
}

#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 room banners only — never apply on Jawal (ep-theme-app2). */
body.ep-theme-app .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;
}

body.ep-theme-app .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;
}

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

body.ep-theme-app .chat_pane__room_item--banner .chat_pane__room_item__users,
body.ep-theme-app .chat_pane__room_item--banner .chat_pane__room_item__users--banner,
body.ep-theme-app #chat__body__rooms_pane .chat_pane__room_item--banner.has-mic .chat_pane__room_item__users,
body.ep-theme-app #chat__body__rooms_pane .chat_pane__room_item--banner.has-mic .chat_pane__room_item__users--banner,
body.ep-theme-app #chat__body__rooms_pane .chat_pane__room_item--banner.has-mic span.chat_pane__room_item__users,
body.ep-theme-app #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;
}

body.ep-theme-app .chat_pane__room_item--banner .chat_pane__room_item__users--banner::before {
    margin-left: 0.15rem;
}

body.ep-theme-app .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;
}

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

#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;
}

#user_profile .reveal_names__item {
    background-color: #f0f8ff;
    padding: 4px 6px;
    margin-bottom: 6px;
    border: 1px solid #000;
    word-break: break-word;
    font-weight: 700;
}
#user_profile .reveal_names__item p {
    display: grid;
    grid-template-columns: 4.7rem minmax(0, 1fr);
    column-gap: 6px;
    align-items: start;
    margin: 0 0 4px;
    direction: ltr;
}
#user_profile .reveal_names__item__key {
    background-color: #789;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    width: 4.7rem;
    box-sizing: border-box;
    display: block;
    text-align: center;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    direction: rtl;
}
#user_profile .reveal_names__item__value {
    word-break: break-all;
    min-width: 0;
    text-align: left;
    line-height: 1.5;
    direction: ltr;
}
#user_profile .reveal_names__item__value img {
    height: 14px;
    vertical-align: middle;
}

#chat_box .private_message__avatar {
    margin-right: 0;
}
#chat_box .private_message__title,
#chat_box .private_message__body {
    padding-left: 2.08rem;
}
#chat_box .private_message__body {
    margin-top: 0.12em;
}

body.ep-theme-app #chat__body__settings_pane #chat__body__settings_pane__container__button--change-font-size,
body.ep-theme-app #chat__body__settings_pane #chat__body__settings_pane__container__button--change-font-size option {
    color: #fff !important;
    background-color: #2a2a38 !important;
    text-align: center !important;
    text-align-last: center !important;
    direction: rtl;
}

body.ep-theme-app #chat__body__settings_pane #chat__body__settings_pane__container__button--change-font-size {
    display: block;
    width: 100%;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
}

#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;
}

.wall_poll_slot { overflow: visible; }
.wall_poll_box--compact {
    position: relative;
    overflow: visible !important;
    background: #fff !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 8px !important;
    padding: 10px 10px 8px !important;
    margin: 8px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12) !important;
}
.wall_poll_box--compact::before { display: none !important; }
.wall_poll_box--compact .yc-poll-badge {
    position: relative;
    display: table;
    margin: 0 auto 8px;
    background: var(--primary-color, #2c3b4d);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    padding: 4px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
}
.wall_poll_box--compact .wall_poll_box__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
}
.wall_poll_box--compact .wall_poll_box__question {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.35;
    color: #1f2937;
}
.wall_poll_box--compact .wall_poll_box__meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    font-size: 11px !important;
    font-weight: 800;
    color: #6b7280;
}
.wall_poll_box--compact .wall_poll_box__details,
.wall_poll_box--compact .wall_poll_box__close {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 26px;
    height: 26px;
    border: 0 !important;
    border-radius: 8px !important;
    background: #eef1f4 !important;
    box-shadow: none !important;
    color: #4b5563 !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 13px !important;
}
.wall_poll_box--compact .wall_poll_rows { display: flex; flex-direction: column; gap: 8px; }
.wall_poll_box--compact .wall_poll_row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #e4e6ea !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1f2937;
    text-align: right;
    cursor: pointer;
}
.wall_poll_box--compact .wall_poll_row.is-selected,
.wall_poll_box--compact .wall_poll_row.is-mine {
    background: color-mix(in srgb, var(--primary-color, #214561) 14%, #fff) !important;
    border-color: color-mix(in srgb, var(--primary-color, #214561) 32%, #e4e6ea) !important;
}
.wall_poll_box--compact .wall_poll_row__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
}
.wall_poll_box--compact .wall_poll_row__track {
    flex: none;
    width: 64px;
    height: 6px;
    margin: 0;
    background: #eef1f4;
    border-radius: 99px;
    overflow: hidden;
}
.wall_poll_box--compact .wall_poll_row__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--primary-color, #214561);
}
.wall_poll_box--compact .wall_poll_row--2 .wall_poll_row__fill {
    background: color-mix(in srgb, var(--primary-color, #214561) 45%, #c5ced6);
}
.wall_poll_box--compact .wall_poll_row__stat {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.wall_poll_box--compact .wall_poll_row.is-mine .wall_poll_row__stat,
.wall_poll_box--compact .wall_poll_row.is-selected .wall_poll_row__label {
    color: var(--primary-color, #214561);
}
html.ep-night-mode .wall_poll_box--compact {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html.ep-night-mode .wall_poll_box--compact .wall_poll_box__question,
html.ep-night-mode .wall_poll_box--compact .wall_poll_row__label { color: #e5e7eb; }
html.ep-night-mode .wall_poll_box--compact .wall_poll_row {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e5e7eb;
}
html.ep-night-mode .wall_poll_box--compact .wall_poll_row.is-selected {
    background: color-mix(in srgb, var(--primary-color, #214561) 22%, #0f172a) !important;
}

/* Nsmat wall action icons: own row under the text, RTL order */
body.ep-theme-app #chat__body__wall_pane .wall_post__body + div {
    float: none !important;
    max-width: none !important;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    direction: ltr;
    justify-content: flex-end;
    align-items: center;
    gap: 1px;
    margin: 4px 0 0 0 !important;
    clear: both;
    white-space: nowrap;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart,
body.ep-theme-app #chat__body__wall_pane .wall_post__body__comments,
body.ep-theme-app #chat__body__wall_pane .wall_post__body__remove {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 !important;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    color: #fff !important;
    white-space: nowrap;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart {
    order: 1;
    background: #8a0012 !important;
    background-image: none !important;
    border-color: #8a0012 !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__comments {
    order: 2;
    background: #6e6e6e !important;
    background-image: none !important;
    border-color: #6e6e6e !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__remove {
    order: 3;
    background: #c44444 !important;
    background-image: none !important;
    border-color: #c44444 !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart:before,
body.ep-theme-app #chat__body__wall_pane .wall_post__body__comments:before,
body.ep-theme-app #chat__body__wall_pane .wall_post__body__remove:before {
    color: #fff !important;
    margin-left: 1px;
}

body.ep-theme-app #wall_comments .wall_comments__comment {
    overflow: visible !important;
    padding-bottom: 24px !important;
}
body.ep-theme-app #wall_comments .wall_comments__comment__like,
body.ep-theme-app #wall_comments .wall_comments__comment__remove {
    float: none !important;
    position: absolute !important;
    bottom: 2px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    height: 22px !important;
    min-height: 22px;
    margin: 0 !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 22px !important;
    color: #fff !important;
    white-space: nowrap;
    border: none !important;
    box-sizing: border-box;
}
body.ep-theme-app #wall_comments .wall_comments__comment__remove {
    right: 2px !important;
    left: auto !important;
}
body.ep-theme-app #wall_comments .wall_comments__comment__like {
    right: 28px !important;
    left: auto !important;
}

body.ep-theme-app #wall_comments .wall_comments__comment__like {
    background: #8a0012 !important;
    background-image: none !important;
    border-color: #8a0012 !important;
}

body.ep-theme-app #wall_comments .wall_comments__comment__remove {
    background: #c44444 !important;
    background-image: none !important;
    border-color: #c44444 !important;
}

body.ep-theme-app #wall_comments .wall_comments__comment__like:before,
body.ep-theme-app #wall_comments .wall_comments__comment__remove:before {
    color: #fff !important;
    margin-left: 1px;
}

/* Nsmat wall media: same rectangle, centering, open/load as Jawal Host */
body.ep-theme-app #chat__body__wall_pane .wall_post {
    overflow: visible !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post > div > div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    overflow: visible !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body {
    display: block !important;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post--media-btn {
    display: block !important;
    float: none !important;
    align-self: center;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 28px;
    margin: 6px auto 4px !important;
    padding: 5px 10px !important;
    line-height: 1.3 !important;
    font-size: 0.6rem !important;
    font-weight: 700;
    color: #333 !important;
    background: #eee !important;
    background-image: none !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
    overflow: visible !important;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

body.ep-theme-app #chat__body__wall_pane .wall_post--media-btn:before {
    display: inline-block !important;
    margin-right: 0.3rem;
    font-size: 0.7rem !important;
    color: #333 !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body--photo-img,
body.ep-theme-app #chat__body__wall_pane video.wall_post__body--video,
body.ep-theme-app #chat__body__wall_pane audio.wall_post__body--sound,
body.ep-theme-app #chat__body__wall_pane .wall_post iframe,
body.ep-theme-app #chat__body__wall_pane .wall_post__tiktok-iframe,
body.ep-theme-app #chat__body__wall_pane .yt-btn,
body.ep-theme-app #chat__body__wall_pane .tt-btn {
    display: block !important;
    float: none !important;
    align-self: center;
    max-width: 100% !important;
    margin: 6px auto 4px !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body--photo-img,
body.ep-theme-app #chat__body__wall_pane video.wall_post__body--video,
body.ep-theme-app #chat__body__wall_pane audio.wall_post__body--sound {
    width: auto;
    height: auto;
    max-height: 160px !important;
    object-fit: contain;
}

body.ep-theme-app #chat__body__wall_pane video.wall_post__body--video {
    width: 100%;
    height: auto;
}

body.ep-theme-app #chat__body__wall_pane .yt-btn {
    width: 65%;
    max-width: 8.333rem !important;
}

body.ep-theme-app #chat__body__wall_pane .yt-btn img {
    display: block;
    width: 100% !important;
    height: auto;
    margin: 0 auto;
}

body.ep-theme-app #chat__body__wall_pane .wall_post iframe:not(.wall_post__tiktok-iframe) {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__tiktok-iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 435px !important;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.wall_post__body--photo-img),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(video.wall_post__body--video),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(audio.wall_post__body--sound),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(iframe),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.yt-btn),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.tt-btn),
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.wall_post--media-btn) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: start;
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.wall_post--media-btn) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.wall_post__body--photo-img) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(video.wall_post__body--video) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(audio.wall_post__body--sound) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(iframe) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.yt-btn) > div:first-child,
body.ep-theme-app #chat__body__wall_pane .wall_post__body:has(.tt-btn) > div:first-child {
    display: block;
    width: 100%;
    text-align: start;
    align-self: stretch;
}

body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post--media-btn),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post__body--photo-img),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(video.wall_post__body--video),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(audio.wall_post__body--sound),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.yt-btn),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.tt-btn),
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(iframe) {
    flex-wrap: wrap;
}

body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post--media-btn) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post__body--photo-img) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(video.wall_post__body--video) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(audio.wall_post__body--sound) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.yt-btn) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.tt-btn) .wall_post__body,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(iframe) .wall_post__body {
    flex: 1 1 100%;
    width: 100%;
}

body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post--media-btn) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.wall_post__body--photo-img) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(video.wall_post__body--video) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(audio.wall_post__body--sound) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.yt-btn) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(.tt-btn) .wall_post__body + div,
body.ep-theme-app #chat__body__wall_pane .wall_post > div > div:has(iframe) .wall_post__body + div {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    justify-content: flex-end;
    align-items: center;
    margin: 4px 0 0 0 !important;
}

body.ep-theme-app #wall_comments .wall_comments__post_body_area {
    overflow: visible !important;
    max-height: none;
    padding: 8px 10px 6px;
}

body.ep-theme-app #wall_comments .wall_comments__post_body_area .wall_post__body {
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

body.ep-theme-app #wall_comments .wall_post--media-btn {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 28px;
    margin: 4px auto 8px !important;
    padding: 5px 10px !important;
    line-height: 1.3 !important;
    font-size: 0.6rem !important;
    font-weight: 700;
    color: #333 !important;
    background: #eee !important;
    background-image: none !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
    overflow: visible !important;
    white-space: nowrap;
}

body.ep-theme-app #wall_comments .wall_post--media-btn:before {
    display: inline-block !important;
    margin-right: 0.3rem;
    font-size: 0.7rem !important;
    color: #333 !important;
}

body.ep-theme-app #wall_comments .wall_post__body--photo-img,
body.ep-theme-app #wall_comments video.wall_post__body--video,
body.ep-theme-app #wall_comments audio.wall_post__body--sound,
body.ep-theme-app #wall_comments .yt-btn,
body.ep-theme-app #wall_comments .tt-btn {
    display: block;
    float: none !important;
    width: auto;
    max-width: 100% !important;
    height: auto;
    margin: 4px auto 8px !important;
    object-fit: contain;
}

body.ep-theme-app #wall_comments .wall_post__body--photo-img,
body.ep-theme-app #wall_comments video.wall_post__body--video,
body.ep-theme-app #wall_comments audio.wall_post__body--sound {
    max-height: 160px !important;
}

body.ep-theme-app #wall_comments iframe,
body.ep-theme-app #wall_comments .wall_post__tiktok-iframe {
    display: block;
    max-width: 100% !important;
    margin: 4px auto 8px !important;
}

body.ep-theme-app #wall_comments iframe:not(.wall_post__tiktok-iframe) {
    width: 100% !important;
    height: 200px !important;
}

body.ep-theme-app #wall_comments .wall_post__tiktok-iframe {
    width: 100% !important;
    height: 435px !important;
}

body.ep-theme-app .chat__body__wall_pane__form__loading_percent,
body.ep-theme-app .chat__body__wall_pane__form__loader {
    opacity: 0 !important;
}

body.ep-theme-app #nsmat-wall-upload {
    display: none;
    width: 100%;
    box-sizing: border-box;
    background: var(--primary-color, #40404f);
}

body.ep-theme-app #nsmat-wall-upload.is-on {
    display: block;
}

body.ep-theme-app .nsmat-wall-upload__track {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

body.ep-theme-app .nsmat-wall-upload__fill {
    height: 100%;
    width: 0;
    background: #2ecc40;
    transition: width 0.12s linear;
}

body.ep-theme-app .nsmat-wall-upload__row {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.ep-theme-app .nsmat-wall-upload__cancel {
    flex: 0 0 auto;
    height: 22px;
    padding: 0 8px;
    border: none;
    border-radius: 2px;
    background: #d01212;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

body.ep-theme-app .nsmat-wall-upload__meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

/* Wall YouTube search: compact bar. The icon lives beside the face button. */
#chat_pane_youtube {
    background: transparent;
    padding: 8px 8px 2px;
}

#chat_pane_youtube form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, .1);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

#chat_pane_youtube form #chat_pane_youtube__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: #f3f5f8;
    text-align: right;
    font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 10px;
}

#chat_pane_youtube form #chat_pane_youtube__submit {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 10px !important;
    font-size: 14px;
    line-height: 34px;
}

#chat_pane_youtube #chat_pane_youtube__icon,
.chat__body__wall_pane__form__youtube {
    display: none !important;
}

#chat_pane_youtube #chat_pane_youtube_items {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    margin: 0;
    position: relative;
    padding: 8px 8px 8px 28px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, .08);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-sizing: border-box;
}

#chat_pane_youtube .youtube-result-item {
    flex: 0 0 auto;
    margin: 0 0 10px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid rgba(23, 32, 51, .08);
    border-radius: 10px;
}

#chat_pane_youtube .youtube-result-item img {
    display: block;
    height: 100px;
    width: auto;
    max-width: none;
    margin: 0 0 5px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
}

#chat_pane_youtube .youtube-result-item__actions {
    display: flex;
    gap: 5px;
}

#chat_pane_youtube .youtube-result-item__actions .btn-play,
#chat_pane_youtube .youtube-result-item__actions .btn-insert {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: 6px;
    font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
}

#chat_pane_youtube .youtube-result-item__actions .btn-play {
    background: #1e293b;
    color: #fff;
}

#chat_pane_youtube .youtube-result-item__actions .btn-insert {
    background: #0f766e;
    color: #fff;
}

#chat_pane_youtube #chat_pane_youtube_items--close {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 3;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e11d2e;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

html.ep-night-mode #chat .wall_post,
html.ep-night-mode #chat .wall_post > div > div {
    background: #2b323d !important;
    color: #c8ced6 !important;
    border-color: rgba(255, 255, 255, .08) !important;
}

html.ep-night-mode #chat .wall_post__body {
    color: #c8ced6;
}

#chat__body__wall_pane .wall_post__name,
#chat__body__wall_pane .wall_post__name .username__wrapper,
#chat__body__wall_pane .wall_post__name [style*="color"] {
    color: #8b95a3 !important;
}

html.ep-night-mode #chat .wall_post__name,
html.ep-night-mode #chat .wall_post__name .username__wrapper,
html.ep-night-mode #chat .wall_post__name [style*="color"] {
    color: #d5dae2 !important;
}

html.ep-night-mode #chat .wall_post__time {
    color: #9aa3af !important;
}

html.ep-night-mode #chat #chat_pane_youtube,
html.ep-night-mode #chat #chat_pane_youtube form {
    background: #2b323d !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: none !important;
}

html.ep-night-mode #chat #chat_pane_youtube form #chat_pane_youtube__input {
    background: #1e242d !important;
    color: #d5dae2 !important;
}

html.ep-night-mode #chat .chat__body__wall_pane__form {
    background: #1c222b !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

html.ep-night-mode #chat .wall_poll_box--elite {
    background: #2b323d !important;
    color: #c8ced6 !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: none !important;
}

html.ep-night-mode #chat #chat_pane_youtube #chat_pane_youtube_items,
html.ep-night-mode #chat #chat_pane_youtube .youtube-result-item {
    background: #24303c !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.yc-pane-empty {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 18px;
    box-sizing: border-box;
    text-align: center;
    color: #64748b;
}

.yc-pane-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.yc-pane-empty p {
    margin: 0;
    max-width: 220px;
    font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

html.ep-night-mode #chat .yc-pane-empty {
    color: #d5dae2;
}

html.ep-night-mode #chat .yc-pane-empty__icon {
    background: #2a313c;
    color: #e6e8eb;
    box-shadow: none;
}

#chat_box .chat_box__header {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

#chat_box .chat_box__header button,
#chat_box .chat_box__header a,
#chat_box .chat_box__header input {
    cursor: pointer;
    touch-action: auto;
}

#chat_box.yc-dragging {
    z-index: 40;
}

#chat__footer__menu__others {
    display: none !important;
}

.yc-extras-row.chat__body__settings_pane__container__button {
    position: relative;
    overflow: hidden;
    direction: rtl;
    display: flex !important;
    align-items: center;
    flex: none !important;
    height: 1.65rem !important;
    max-height: 1.65rem !important;
    min-height: 0 !important;
    text-align: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
}

.yc-extras-row.chat__body__settings_pane__container__button:hover {
    background: transparent !important;
    color: #fff !important;
}

.yc-extras-row::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: conic-gradient(#f2d48a, #f3b7c0, #c5e7fb, #d7eeae, #f2d48a);
    animation: yc-extras-spin 3.6s linear infinite;
    z-index: 0;
}

.yc-extras-row::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: .06rem;
    z-index: 0;
    background: linear-gradient(115deg, var(--primary-color, #3c6297) 0%, var(--primary-color-light, #6ea0e4) 48%, var(--primary-color, #3c6297) 100%);
    background-size: 220% 100%;
    animation: yc-extras-wave 4.4s ease-in-out infinite;
}

.yc-extras-bubbles {
    position: absolute;
    inset: 2px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    border-radius: .06rem;
}

.yc-extras-bubbles span {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .28) 58%, rgba(255, 255, 255, 0) 72%);
    animation: yc-extras-bubble-r 4s ease-in infinite;
}

.yc-extras-bubbles span:nth-child(1) { left: 8%; width: 8px; height: 8px; animation-duration: 3.2s; }
.yc-extras-bubbles span:nth-child(2) { left: 24%; width: 5px; height: 5px; animation-name: yc-extras-bubble-l; animation-duration: 4.4s; animation-delay: .6s; }
.yc-extras-bubbles span:nth-child(3) { left: 41%; width: 10px; height: 10px; animation-duration: 3.7s; animation-delay: 1.2s; }
.yc-extras-bubbles span:nth-child(4) { left: 57%; width: 4px; height: 4px; animation-name: yc-extras-bubble-l; animation-duration: 4.8s; animation-delay: .2s; }
.yc-extras-bubbles span:nth-child(5) { left: 72%; width: 7px; height: 7px; animation-duration: 3.5s; animation-delay: 1.8s; }
.yc-extras-bubbles span:nth-child(6) { left: 86%; width: 5px; height: 5px; animation-name: yc-extras-bubble-l; animation-duration: 4.1s; animation-delay: 2.3s; }

.yc-extras-row__label {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0 36px;
}

.yc-extras-row__ico {
    position: absolute !important;
    left: 8px;
    top: 50%;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    margin-top: -12px;
    display: block;
    transform-origin: center;
    animation: yc-extras-pop 1.5s ease-in-out infinite;
}

#chat__body__others-pane > .chat_pane__header {
    position: relative;
}

#chat__body__others-pane > .chat_pane__header .chat_pane__header__title {
    padding-left: .35rem !important;
    padding-right: 6.6rem !important;
    text-align: center;
    line-height: 1.3rem;
    margin: 0;
}

.yc-back-settings {
    position: absolute !important;
    top: .08rem !important;
    right: 1.45rem !important;
    left: auto !important;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    height: 1.05rem;
    padding: 0 .42rem !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: .2rem !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    font-size: .56rem !important;
    font-weight: 700 !important;
    line-height: 1;
    white-space: nowrap;
}

@keyframes yc-extras-spin {
    to { transform: rotate(360deg); }
}

@keyframes yc-extras-wave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes yc-extras-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); filter: drop-shadow(0 0 3px rgba(255, 224, 138, .85)); }
}

@keyframes yc-extras-bubble-r {
    0% { transform: translate3d(0, 8px, 0) scale(.55); opacity: 0; }
    16% { opacity: .9; }
    100% { transform: translate3d(8px, -46px, 0) scale(1); opacity: 0; }
}

body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart,
body.ep-theme-app #chat__body__wall_pane .wall_post__body__comments,
body.ep-theme-app #wall_comments .wall_comments__comment__like {
    gap: 2px;
}
body.ep-theme-app #chat__body__wall_pane .wall_post__body__comments:before {
    margin-left: 0 !important;
    margin-right: 2px !important;
}
body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart:before,
body.ep-theme-app #wall_comments .wall_comments__comment__like:before {
    color: rgba(255, 255, 255, .45) !important;
    margin-left: 0 !important;
    margin-right: 2px !important;
}
body.ep-theme-app #chat__body__wall_pane .wall_post__body__heart.is-liked:before,
body.ep-theme-app #wall_comments .wall_comments__comment__like.is-liked:before {
    color: #fff !important;
}
html.ep-night-mode #chat #chat__body__wall_pane__form__input,
html.ep-night-mode #chat .chat__body__wall_pane__form__input,
html.ep-night-mode #chat #wall_comments__form__input,
html.ep-night-mode #chat .wall_comments__form__input {
    color: #c5ccd4 !important;
    -webkit-text-fill-color: #c5ccd4 !important;
    caret-color: #c5ccd4;
    background: #2a313c !important;
}
html.ep-night-mode #chat .wall_post__body,
html.ep-night-mode #chat .wall_post__body[style],
html.ep-night-mode #chat .wall_post__body div,
html.ep-night-mode #chat .wall_comments__comment__content,
html.ep-night-mode #chat .wall_comments__comment__content * {
    color: #c5ccd4 !important;
    -webkit-text-fill-color: #c5ccd4 !important;
}

@keyframes yc-extras-bubble-l {
    0% { transform: translate3d(0, 8px, 0) scale(.55); opacity: 0; }
    16% { opacity: .9; }
    100% { transform: translate3d(-8px, -46px, 0) scale(1); opacity: 0; }
}

/* css/nsmat-profile-actions.css */
/* nsmat profile action grid + pickers (from jawal host) */
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    direction: rtl !important;
    border-top: 1px solid #ececec;
    margin: 0;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item {
    margin: 0;
    width: auto;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: #fff;
    box-shadow: none !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item:nth-child(3n) {
    border-right: none;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.fa,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--mute,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unmute,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--ignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.ignored #user_profile__footer__actions__item--unignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.muted #user_profile__footer__actions__item--unmute,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.jawal-allow-mic #user_profile__footer__actions__item--unmute {
    width: 100%;
    min-height: 38px;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    font-weight: 700 !important;
    font-size: 15px;
    line-height: 1.2;
    padding: 6px 2px;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    white-space: nowrap !important;
    color: #111;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn:before {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    font-size: 15px;
    margin: 0 !important;
    line-height: 1;
    order: 0;
    flex: 0 0 auto;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn .user_profile__action-btn__label,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn span {
    display: inline-block !important;
    float: none !important;
    font-size: 15px;
    white-space: nowrap !important;
    order: 1;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.red,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.maroon,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--ignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--ignore:before,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unignore:before,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--ignore span,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unignore span {
    color: #d01212 !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.blue {
    color: #1a5cff;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.magenta,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.pink {
    color: #e3127a;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.purple {
    color: #7a2adf;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.green {
    color: #128a3c;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.active .btn,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.active .btn.fa,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.active .btn.red {
    background: #dc3545 !important;
    background-image: none !important;
    border-color: #c82333 !important;
    color: #fff !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.active .btn:before,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.active .btn span {
    color: #fff !important;
    opacity: 1;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--unmute {
    display: none !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.ignored #user_profile__footer__actions__item--unignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.jawal-allow-mic #user_profile__footer__actions__item--unmute,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--ignore,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item #user_profile__footer__actions__item--mute {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.ignored #user_profile__footer__actions__item--ignore {
    display: none !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item.muted #user_profile__footer__actions__item--mute {
    display: inline-flex !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-notify-box {
    display: none !important;
}

body.ep-theme-app #jawal-notify-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 12px 12px;
    background: rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    pointer-events: auto !important;
}

body.ep-theme-app #jawal-notify-modal.is-open {
    display: flex !important;
}

body.ep-theme-app #jawal-notify-modal,
body.ep-theme-app #jawal-notify-modal * {
    pointer-events: auto !important;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__panel {
    width: min(340px, 94vw);
    background: #fff;
    border: 1px solid #9a9a9a;
    border-radius: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__head {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    min-height: 32px;
    padding: 4px 6px 4px 8px;
    background: var(--primary-color, #40404f);
    color: #fff;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__title {
    display: inline-flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__title .fa {
    font-size: 14px;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 0 8px;
    cursor: pointer;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__row {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    background: #fff;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__text {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 72px;
    margin: 0;
    padding: 8px;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    resize: vertical;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    color: #111;
    -webkit-user-select: text !important;
    user-select: text !important;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__send {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    direction: ltr;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    align-self: flex-end;
    margin: 0;
    min-width: 78px;
    height: 34px;
    background: var(--primary-color, #40404f) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 12px;
}

body.ep-theme-app #jawal-notify-modal .jawal-notify-modal__send:before {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 14px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker {
    display: none;
    position: relative;
    width: 100%;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e5e5;
    z-index: 8;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker.is-open {
    display: block;
}

body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-picker-open #user_profile__body__avatar,
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-picker-open .user_profile__body__status,
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-picker-open .jawal-profile__meta {
    display: none !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-gifts-open #user_profile__body__user_details,
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-gifts-open .user_profile__footer {
    display: none !important;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    margin: 0 0 8px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker__head .jawal-list-picker__back {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-role-picker {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 6px;
    max-height: none;
    min-height: 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker .jawal-list-picker__list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px 4px;
    align-items: center;
    justify-items: center;
    max-height: 62vh;
    overflow: auto;
    padding: 4px 2px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker .jawal-list-picker__list,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-role-picker .jawal-list-picker__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 62vh;
    overflow: auto;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker .jawal-list-picker__item,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-role-picker .jawal-list-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fafafa;
    cursor: pointer;
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker .jawal-list-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker__item img {
    max-height: 30px;
    max-width: 100%;
    object-fit: contain;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker .jawal-list-picker__item img {
    max-height: 32px;
    width: auto;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker .jawal-list-picker__item img {
    max-height: 28px;
    max-width: 140px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker .jawal-list-picker__clear,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker .jawal-list-picker__clear {
    display: inline-flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    margin: 8px 0 2px auto;
    float: none;
    background: var(--primary-color, #40404f);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 12px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-gift-picker .jawal-list-picker__clear:before,
body.ep-theme-app #user_profile.nsmat-profile-actions #jawal-banner-picker .jawal-list-picker__clear:before {
    content: "\f01e";
    font-family: FontAwesome;
    font-size: 13px;
}

body.ep-theme-app #user_profile.nsmat-profile-actions .jawal-list-picker__foot {
    display: flex;
    justify-content: flex-end;
    clear: both;
    padding: 4px 2px 0;
}


body.ep-theme-app #user_profile.nsmat-profile-actions .gifts_picker {
    display: none !important;
}
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-gifts-open .user_profile__cover-container,
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-gifts-open .user_profile__cover-wrap,
body.ep-theme-app #user_profile.nsmat-profile-actions.jawal-gifts-open #user_profile__body__avatar {
    display: none !important;
}
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.blue,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.blue:before,
body.ep-theme-app #user_profile.nsmat-profile-actions .user_profile__footer__actions__item .btn.blue span {
    color: #1a5cff !important;
}

body.ep-theme-app #user_profile:not(.yc-pf) .user_profile__footer__actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-top: 0;
}
body.ep-theme-app #user_profile:not(.yc-pf) .user_profile__footer__actions__item {
    border: 1px solid #8fa0b0 !important;
    border-radius: 8px !important;
    background: #f4f7fa !important;
    min-width: 0;
    overflow: hidden;
    margin: 0 !important;
}
body.ep-theme-app #user_profile:not(.yc-pf) .user_profile__footer__actions__item .btn {
    width: 100% !important;
    min-height: 36px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 4px !important;
    overflow: hidden;
}
