@font-face {
    font-family: 'flat-jooza';
    font-display: swap;
    src: url('https://www.fontstatic.com/fonts/flat-jooza/flat-jooza-regular.eot?#iefix');
    src: local('flat-jooza'),url('https://www.fontstatic.com/fonts/flat-jooza/flat-jooza-regular.woff') format('woff');
}
.user_item_avatar .acav {
    width: 45px !important;
    height: 45px !important;
}

.user_item_avatar {
    width: 45px !important;
    height: 45px !important;
    position: relative !important;
    display: table-cell !important;
    vertical-align: middle !important;
    overflow: visible !important;
    z-index: 2 !important;
}

.user_item_avatar .frame_av_list {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 60px !important;
    height: 60px !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    z-index: 999 !important;
    max-width: none !important;
}
#post_file_data img, .main_post_data img {
    max-width: 20% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
}
.username,
.list_mood {
    margin: 0;
    padding: 0;
}

/* الحاوية العامة */
.nb_pad_box {
    overflow: auto;
    padding: 10px;
}

/* عنوان القسم */
.nb_gift_heading {
    font-weight: bold;
    margin-bottom: 15px;
}

/* حاوية الصور */
.nb_setting_element {
    display: flex;
    flex-direction: column; /* ترتيب عمودي */
    gap: 10px; /* مسافة بين كل صورة */
}

/* العنصر الفردي */
.nb_gift_responsive {
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nb_gift_responsive:hover {
    transform: scale(1.05);
}

/* حاوية الصورة والرقم */
.nb_gift_container {
    text-align: center;
}

/* الصور */
.nb_gift_container img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 5px;
}

/* وصف الصورة */
.nb_gift_desc {
    margin-top: 5px;
    font-weight: bold;
}

/* زر الحذف */
.nb_pad10 {
    margin-top: 20px;
    text-align: center;
}

.nb_mod_button.nb_theme_btn {
    padding: 8px 15px;
    border: none;
    background-color: #A51D53;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.nb_mod_button.nb_theme_btn:hover {
    background-color: #8b1642;
}

.list_mood {
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding: 2px;
    border-radius: 5px;
    margin-top: 7px;
}

.name_banner {
    max-height: 22px;
    max-width: 120px;
    width: auto;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
}

.name_banner_profile {
    max-height: 40px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.gift-responsive {
    width: 80px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gift-responsive:hover {
    transform: scale(1.1);
}

.gift-container {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background: #f9f9f9;
}

.gift-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.gift-desc {
    font-size: 12px;
    margin-top: 5px;
    color: #555;
}

.profile_frame_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000 !important;
    pointer-events: none;
}

.profile_frame_overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile_avatar {
    position: relative !important;
    display: table-cell;
    text-align: center;
}

.over2 {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 128px !important;
    height: 128px !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    z-index: 9999 !important;
    max-width: none !important;
}

/* Chat Frame Sizing */
.chat_avatar .frame_av {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 48px !important;
    height: 48px !important;
    z-index: 100 !important;
    pointer-events: none;
    max-width: none !important;
}

.user_item_data {
    text-align: center;
    display: table-cell !important;
    vertical-align: middle !important;
    width: auto;
    position: relative !important;
    z-index: 2 !important;
}

.username {
    font-weight: bold;
    font-size: 15px;
    margin: 0;
}

.user_item {
    position: relative !important;
    display: table !important;
    table-layout: fixed !important;
    width: 100% !important;
    cursor: pointer !important;
    border-radius: 10px 10px 0 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e4e4e4 !important;
    border-left: 1px solid #e4e4e4 !important;
    border-right: 1px solid #e4e4e4 !important;
    border-top: 1px solid #e4e4e4 !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.user_item_banner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 8px 16px;
    transition: background-color 0.3s, border-color 0.3s;
    flex-direction: row;
    direction: rtl;
    justify-content: center;
    margin-bottom: 8px;
    background: rgb(255 255 255 / 0) linear-gradient(180deg, #d0fffbb3, #ffffff) repeat scroll 0 0;
}

.status-indicator {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px !important;
    position: relative !important;
    vertical-align: middle !important;
}

.status-dot,
.status-pulse {
    width: 10px !important;
    height: 10px !important;
    background: #22c55e;
    border-radius: 50%;
}

.status-pulse {
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.75;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.list_status {
    position: absolute !important;
    left: 2px !important;
    bottom: 2px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #fff !important;
    padding: 1px !important;
    z-index: 10 !important;
    border: 1px solid #fff !important;
}

.listddd {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 0px 0px 10px 10px;
    border-bottom: solid 1px #e4e4e4;
    border-left: solid 1px #e4e4e4;
    border-right: solid 1px #e4e4e4;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.user_icons_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.user_icons_wrapper>div,
.user_icons_wrapper>p {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-left: 1px solid #e2e2e2;
    flex-grow: 1;
    justify-content: center;
}

.user_icons_wrapper>div:first-child {
    border-left: none;
}

.rank_text {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    border: solid 1px #e2e2e2;
    padding: 2px 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: -3px 0 0 #ededed;
}

.rank_text img {
    height: 12px;
    width: auto;
}

.user_level_badge {
    font-weight: bold;
    font-size: 8px;
    color: #000;
    margin: 0 5px;
}

.rank_100 {
    border-color: #ff5722 !important;
    color: #ff5722 !important;
}

.rank_90 {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.rank_80 {
    border-color: #03a9f4 !important;
    color: #03a9f4 !important;
}

/* Boxed Footer Menu Styling */
.wardbfoot {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #000;
    z-index: 9999;
    border-top: 1px solid #222;
    height: 45px;
}

.boxed_footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: #000;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.boxed_footer::-webkit-scrollbar {
    display: none;
}

.footer_box {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 12px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    cursor: pointer;
    margin: 0 3px;
    white-space: nowrap;
    transition: 0.2s;
    min-width: fit-content;
    height: 32px;
}

.footer_box:hover {
    background: #1a1a1a;
    border-color: #444;
}

.box_label {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}

.icon_white {
    color: #fff;
    font-size: 15px;
}

.icon_orange {
    color: #ffa500;
    font-size: 15px;
}

.count_label,
.wall_count_box,
.foot_notify {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-left: 2px;
}

@media (max-width: 800px) {
    .boxed_footer {
        justify-content: flex-start !important;
        padding: 0 5px;
    }

    .footer_box {
        padding: 4px 8px;
        margin: 0 1px;
        gap: 4px;
        height: 28px;
    }

    .box_label {
        font-size: 11.5px;
    }

    .footer_divider {
        margin: 0 4px;
    }
}

/* Minimized Private Chat Bubble */
#dpriv {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 5px !important;
    border: 2px solid #fff !important;
    background: #000;
}

#dpriv_av {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#dpriv_notify {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #ff0000;
    color: #fff;
    min-width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
    z-index: 10;
}

#dpriv.privhide {
    display: none !important;
}

/* Alternating message backgrounds for main chat */
#chat_logs_container .chat_log:nth-child(even) {
    background-color: #f7f4f1 !important;
}

/* Compact Premium System Notifications */
.sys_log {
    padding: 4px 10px !important;
    margin: 3px 10px 3px auto !important;
    /* Keep it on the right for RTL */
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    border-right: 4px solid #ddd !important;
    transition: all 0.3s ease;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 96% !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.system__enter.sys_log {
    border-right-color: #2196F3 !important;
}

.system__transfer.sys_log {
    border-right-color: #00bcd4 !important;
}

.system__leave.sys_log {
    border-right-color: #f44336 !important;
}

.system__kick.sys_log {
    border-right-color: #ff9800 !important;
}

.system__ban.sys_log {
    border-right-color: #e91e63 !important;
}

.system__mute.sys_log {
    border-right-color: #9c27b0 !important;
}

.system__block.sys_log {
    border-right-color: #795548 !important;
}

.chat_system {
    font-size: 13px !important;
    color: #444 !important;
    line-height: 1.4 !important;
    flex: 1;
}

.chat_system_content {
    display: inline-block;
    vertical-align: middle;
}

/* User & Admin Links */
.sys_user_link {
    font-weight: 800 !important;
    color: #e74c3c !important;
    cursor: pointer;
    background: rgba(231, 76, 60, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
}

.sys_admin_name {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    background: #f0f3f5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    margin: 0 4px;
}

/* Premium Room Pill Badge (The "Box") */
.sys_room_badge {
    background: #222 !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 4px !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease;
}

.sys_room_badge:hover {
    background: #333 !important;
    transform: translateY(-1px);
}

.sys_room_badge:before {
    content: "\f015";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    font-size: 10px;
}

/* Deletion Menu */
.sys_log .logs_menu {
    opacity: 0.3;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.sys_log:hover .logs_menu {
    opacity: 1;
}

/* Icons for Action Types */
.system__enter .chat_system_content:before {
    content: "\f090";
    color: #2196F3;
}

.system__transfer .chat_system_content:before {
    content: "\f362";
    color: #00bcd4;
}

.system__leave .chat_system_content:before {
    content: "\f08b";
    color: #f44336;
}

.system__kick .chat_system_content:before {
    content: "\f503";
    color: #ff9800;
}

.system__ban .chat_system_content:before {
    content: "\f05e";
    color: #e91e63;
}

.system__mute .chat_system_content:before {
    content: "\f131";
    color: #9c27b0;
}

.system__block .chat_system_content:before {
    content: "\f023";
    color: #795548;
}

.chat_system_content:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 14px;
}

/* RTL Overrides for System Messages */
[lang="ar"] .sys_log, 
.rtl_mode .sys_log,
html[dir="rtl"] .sys_log {
    direction: rtl !important;
    margin: 3px 10px 3px auto !important;
    border-right: 4px solid #ddd !important;
    border-left: none !important;
}

[lang="ar"] .system__enter.sys_log, .rtl_mode .system__enter.sys_log, html[dir="rtl"] .system__enter.sys_log { border-right-color: #2196F3 !important; }
[lang="ar"] .system__transfer.sys_log, .rtl_mode .system__transfer.sys_log, html[dir="rtl"] .system__transfer.sys_log { border-right-color: #00bcd4 !important; }
[lang="ar"] .system__leave.sys_log, .rtl_mode .system__leave.sys_log, html[dir="rtl"] .system__leave.sys_log { border-right-color: #f44336 !important; }

/* Mirror Icons the right way for RTL */
[lang="ar"] .chat_system_content:before, 
.rtl_mode .chat_system_content:before,
html[dir="rtl"] .chat_system_content:before {
    margin-left: 0 !important;
    margin-right: 8px !important;
    display: inline-block;
}

/* Mirroring arrows for RTL */
[lang="ar"] .system__enter .chat_system_content:before,
.rtl_mode .system__enter .chat_system_content:before,
html[dir="rtl"] .system__enter .chat_system_content:before { transform: scaleX(-1); }

[lang="ar"] .system__transfer .chat_system_content:before,
.rtl_mode .system__transfer .chat_system_content:before,
html[dir="rtl"] .system__transfer .chat_system_content:before { transform: scaleX(-1); }

[lang="ar"] .system__leave .chat_system_content:before,
.rtl_mode .system__leave .chat_system_content:before,
html[dir="rtl"] .system__leave .chat_system_content:before { transform: scaleX(-1); }

[lang="ar"] .sys_room_badge:before,
.rtl_mode .sys_room_badge:before,
html[dir="rtl"] .sys_room_badge:before {
    margin-left: 0 !important;
    margin-right: 5px !important;
}

.system__leave .chat_savatar {
    opacity: 0.6;
    filter: grayscale(1);
}

.chat_savatar .avav {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

/* Hide Media Button Styles */
.hide_media_btn {
    background: linear-gradient(to right, #ff8c00, #ff4500);
    color: white !important;
    padding: 1px 5px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin: 5px 0;
    font-size: 13px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    text-decoration: none !important;
}
.hide_media_btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #ff4500, #ff8c00);
}
.hide_media_btn i {
    font-size: 16px;
}
.hidden_media {
    display: none;
}
/* Audio/Voice button */
.chat_audio {
    background: linear-gradient(to right, #ff8c00, #ff4500);
    color: white !important;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: bold;
    margin: 3px 0;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(255, 100, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
}
.chat_audio:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(255, 100, 0, 0.4);
}
.chat_audio i {
    font-size: 14px;
}
.chat_video {
    width: 100%;
    max-width: 400px;
}
#show_private_wrap, #show_private {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.pm_request_box {
    text-align: center;
    background: #d4e6ff;
    border-radius: 10px;
    margin: 20px 0 !important;
    padding: 20px;
    width: 90% !important;
    max-width: 350px;
    box-sizing: border-box;
    display: block;
    clear: both;
}
.pm_request_text1 {
    font-weight: bold;
    color: #1a5699;
    font-size: 15px;
    margin-bottom: 15px;
}
.pm_request_text2 {
    font-weight: bold;
    color: #1a5699;
    font-size: 14px;
    display: block;
    line-height: 1.6;
}
.pm_request_btn {
    display: block;
    margin: 10px auto 0 auto !important;
    background: #ffa500;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* Notification Badge Styling */
.head_notify {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
    line-height: 18px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: none;
    z-index: 100 !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.3) !important;
    border: 1px solid #fff !important;
}

#left_notify {
    animation: notify_pulse 1.5s infinite;
}

@keyframes notify_pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.bnotify {
    background: #ff0000 !important;
    color: #ffffff !important;
}
.side_notify {
    top: 10px !important;
    right: 10px !important;
}

.username.admin_title {
    color: #ff0000 !important;
    font-weight: bold;
}

/* Media Preview Modal Styles */
.media_preview_container {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
}

.media_preview_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.media_preview_content {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.media_preview_content img,
.media_preview_content video {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.media_preview_actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.preview_btn_confirm {
    background: #27ae60 !important;
    color: #fff !important;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.preview_btn_confirm:hover {
    background: #219150 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.preview_btn_cancel {
    background: #e74c3c !important;
    color: #fff !important;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.preview_btn_cancel:hover {
    background: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}
.infonew {
    font-weight: 700;
    padding-bottom: 10px;
    color: #35b55e;
	text-align: center;
}
.textinfo {
    font-size: 13px;
    word-wrap: break-word;
    min-height: 20px;
	text-align: center;
}