/* ===== شكل رسايل الغرفة (مطابق للصورة المرجعية: صفوف متبادلة أبيض/رمادي) =====
   القياسات من لقطة موبايل 1080px (dpr 2.625) → px عادي. للتعديل غيّر القيم هنا. */

/* --- الصفوف: بدون فراغات، متبادلة أبيض / #ececed، ارتفاع الصف ~35px --- */
li.chat_log{margin:0 !important;}
li.chat_log.ch_logs{padding:3.5px 10px !important;line-height:1.55;}
#wrap_chat:not(.has_room_bg) #show_chat ul li.chat_log:nth-child(odd){background:transparent !important;}
#wrap_chat:not(.has_room_bg) #show_chat ul li.chat_log:nth-child(even){background:rgba(0,0,0,.073) !important;}
#wrap_chat.has_room_bg #show_chat ul li.chat_log{background:transparent !important;}

/* --- الصورة 28px + حلقة الجنس 3px، والإطارات بنفس النسبة --- */
li.chat_log.ch_logs .chat_avatar{width:38px !important;}
li.chat_log.ch_logs .cavatar.avav{width:28px !important;height:28px !important;border-width:3px;box-sizing:border-box;object-fit:cover;}
li.chat_log.ch_logs .grad_small_border{width:30px !important;height:30px !important;padding:2.5px;}
li.chat_log.ch_logs .grad_small_border > img{width:25px !important;height:25px !important;}
li.chat_log.ch_logs .chat_frame_avatar{width:30px !important;height:30px !important;}
li.chat_log.ch_logs .chat_frame_avatar_inner2{width:22px !important;height:22px !important;}
li.chat_log.ch_logs .chat_frame_avatar > img.ch_fr_bg{width:36px !important;height:36px !important;}

/* --- أيقونة الرتبة 15px --- */
li.chat_log.ch_logs .chat_rank,
li.chat_log.ch_logs .chat_xprank_icon{height:15px !important;width:auto;margin:0 4px;vertical-align:middle;}

/* --- الاسم والكلام 14.5px --- */
li.chat_log.ch_logs .my_text .username{font-size:14.5px;line-height:1.3;}
li.chat_log.ch_logs .cname > span[class*="prograd"],
li.chat_log.ch_logs .cname > span[class*="shgrad"],
li.chat_log.ch_logs .cname > span[style*="border-radius"]{padding:1px 9px !important;border-radius:7px !important;line-height:1.25 !important;margin:0 2px !important;}
/* كبسولة من غير توهج ملوّن: إطار أسود + هالة ظل غامقة (التوهج الملوّن shgrad بيفضل زي ما هو) */
li.chat_log.ch_logs .cname > span[style*="border-radius"]:not([class*="shgrad"]){border:1px solid rgba(0,0,0,.9) !important;box-shadow:0 0 10px rgba(0,0,0,.7) !important;}
li.chat_log.ch_logs .cname .username[class*="Arabic"]{text-shadow:none !important;}

/* --- الاسم والكلام في سطر واحد والكلام بيكمل تحت --- */
li.chat_log.ch_tlogs .chat_line,
li.chat_log.ch_dlogs .chat_line{display:block !important;line-height:1.55;}
li.chat_log.ch_tlogs .chat_line > .cname,
li.chat_log.ch_dlogs .chat_line > .cname{display:inline !important;}
li.chat_log.ch_tlogs .chat_line > .cname::after,
li.chat_log.ch_dlogs .chat_line > .cname::after{content:" :";margin:0 5px;opacity:.8;font-weight:bold;}
li.chat_log.ch_tlogs .chat_line > .log_content,
li.chat_log.ch_dlogs .chat_line > .log_content{display:inline !important;}
li.chat_log.ch_tlogs .chat_message,
li.chat_log.ch_dlogs .chat_message{display:inline !important;padding:0 !important;max-width:none;}
li.chat_log.ch_tlogs .chat_message > div,
li.chat_log.ch_dlogs .chat_message > div{display:inline !important;font-size:14.5px;}
/* نقاط القايمة ••• بعد آخر الكلام */
li.chat_log .logs_menu.inline_menu{position:static !important;display:inline !important;width:auto;padding:0 6px !important;font-size:20px !important;color:#c9c9c9;vertical-align:baseline;}

/* --- رسالة "انضم للغرفة": نفس مقاسات رسالة الشات العادية (صورة 28px + خط 14.5px) --- */
li.chat_log.sys_log.sys_log_join{padding:3.5px 10px !important;line-height:1.55;}
.sys_log.sys_log_join .chat_savatar{width:38px !important;}
.sys_log.sys_log_join .chat_savatar .cavatar.avav,
.sys_log.sys_log_join .chat_savatar .cavatar,
.sys_log.sys_log_join .chat_savatar .savatar{width:28px !important;height:28px !important;border-width:3px;box-sizing:border-box;object-fit:cover;}
.sys_log.sys_log_join .chat_savatar .grad_small_border{width:30px !important;height:30px !important;padding:2.5px;}
.sys_log.sys_log_join .chat_savatar .grad_small_border > img{width:25px !important;height:25px !important;}
.sys_log.sys_log_join .chat_savatar .chat_frame_avatar{width:30px !important;height:30px !important;}
.sys_log.sys_log_join .chat_savatar .chat_frame_avatar_inner2{width:22px !important;height:22px !important;}
.sys_log.sys_log_join .chat_savatar .chat_frame_avatar > img.ch_fr_bg{width:36px !important;height:36px !important;}
.sys_log.sys_log_join .sys_join_glass{display:inline-block;background:rgba(0,0,0,.07);border-radius:6px;padding:3px 9px;font-size:14.5px;font-weight:bold;line-height:1.5;}
.sys_log.sys_log_join .chat_system,
.sys_log.sys_log_join .sysname,
.sys_log.sys_log_join .sysname .username{font-size:14.5px;}
.sys_log.sys_log_join .chat_rank,
.sys_log.sys_log_join .chat_xprank_icon{height:15px !important;width:auto;margin:0 4px;vertical-align:middle;}

/* --- رسايل البوت/النظام (رتبة 69): الاسم فوق والكلام في فقاعة رمادية عريضة --- */
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .chat_line > .cname{display:block !important;margin-bottom:2px;}
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .chat_line > .cname::after{content:"";}
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .chat_line > .log_content{display:block !important;}
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .chat_message{display:block !important;background:rgba(150,150,150,.9);color:#111;border-radius:22px;padding:14px 18px !important;margin-top:4px;line-height:1.9;}
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .chat_message > div{display:block !important;font-size:14.5px;}
li.chat_log.ch_logs:has(.chat_avatar[data-rank="69"]) .logs_menu.inline_menu{display:block !important;text-align:left;padding:4px 0 0 !important;}
