.new_news {
    padding: 0px 12px;
    border-radius: 2px;
    margin-left: 3px;
    background: red;
    color: #fff;
}
.edited-date {
    font-size: 0.7em;
    color: #888;
    margin-top: 2px;
}
.text_xsmall_news {
    font-size: 11px;
    margin: 3px;
}

/* ===================================================
   1. إحصائيات الجلسات — Header Bar
   =================================================== */
.sess-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.sess-stat-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.sess-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sess-stat-num { font-size: 18px; font-weight: bold; }
.num-blue      { color: #3498db; }
.num-green     { color: #27ae60; }

/* زر إنهاء الكل (في نفس الشريط) */
.sess-kill-all-btn {
    font-size: 11px;
    padding: 5px 12px;
    cursor: pointer;
    background: rgba(231,76,60,.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 20px;
    white-space: nowrap;
    transition: background .15s;
}
.sess-kill-all-btn:hover { background: #e74c3c; color: #fff; }


/* ===================================================
   2. شريط الجلسات الأفقي (Horizontal Strip / Stories)
   =================================================== */
.sess-strip-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
    cursor: grab;
    user-select: none;
}
.sess-strip-wrap:active { cursor: grabbing; }
.sess-strip-wrap::-webkit-scrollbar { height: 4px; }
.sess-strip-wrap::-webkit-scrollbar-track { background: transparent; }
.sess-strip-wrap::-webkit-scrollbar-thumb { background: rgba(128,128,128,.25); border-radius: 4px; }

.sess-strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 6px 2px 10px;
    width: max-content;
    min-width: 100%;
}

/* بطاقة الجلسة */
.sess-tile {
    flex: 0 0 130px;
    width: 130px;
    border-radius: 12px;
    padding: 12px 10px 10px;
    text-align: center;
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: transform .15s, opacity .2s;
    position: relative;
}
.sess-tile:hover  { transform: translateY(-3px); }
.current-tile     { border-color: #3498db; background: rgba(52,152,219,.08); }
.other-tile       { border-color: #27ae60; background: rgba(39,174,96,.07);  }

/* أيقونة الجهاز */
.sess-tile-icon {
    position: relative;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin-bottom: 6px;
}
.current-tile .sess-tile-icon { background: rgba(52,152,219,.15); color: #3498db; font-size: 22px; }
.other-tile   .sess-tile-icon { background: rgba(39,174,96,.12);  color: #27ae60; font-size: 22px; }

/* نقطة الحالي (الدائرة الخضراء) */
.sess-tile-dot {
    position: absolute;
    bottom: 2px; left: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #fff;
}

/* نصوص البطاقة */
.sess-tile-name { font-size: 11px; font-weight: bold; width: 100%; word-break: break-word; }
.sess-tile-sub  { font-size: 9px;  opacity: .7; width: 100%; word-break: break-all; line-height: 1.4; }

/* شارة الحالة */
.sess-tile-badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 7px;
    border-radius: 20px;
    color: #fff;
    margin-top: 4px;
    white-space: nowrap;
}
.cur-badge { background: #3498db; }
.act-badge { background: #27ae60; }

/* زر إنهاء داخل البطاقة */
.sess-tile-end {
    margin-top: 6px;
    font-size: 10px;
    padding: 4px 0;
    width: 100%;
    cursor: pointer;
    background: rgba(231,76,60,.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background .15s;
    white-space: nowrap;
}
.sess-tile-end:hover { background: #e74c3c; color: #fff; }




/* ===================================================
   5. سجل محاولات الدخول (Login History)
   =================================================== */
.hist-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(128,128,128,.12);
    font-size: 12px;
    flex-wrap: wrap;
}
.hist-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hist-success-wrap { background: rgba(39,174,96,.15); color: #27ae60; }
.hist-fail-wrap    { background: rgba(231,76,60,.15);  color: #e74c3c; }
.hist-info         { flex: 1; min-width: 0; }
.hist-status       { font-size: 11px; font-weight: bold; }
.hist-success-txt  { color: #27ae60; }
.hist-fail-txt     { color: #e74c3c; }
.hist-date         { font-size: 10px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; opacity: .7; }


/* ===================================================
   6. شبكة جلسات الإدارة (Admin Sessions Grid)
   =================================================== */
.adm-sess-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.adm-sess-card {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(128,128,128,.2);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: box-shadow .15s;
}
.adm-sess-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.adm-sess-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.adm-sess-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.adm-sess-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-sess-uname {
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    word-break: break-word;
}
.adm-sess-uname:hover { text-decoration: underline; }
.adm-sess-device      { font-size: 11px; opacity: .7; }
.adm-sess-row         { font-size: 11px; opacity: .8; word-break: break-all; }
.adm-sess-row i       { opacity: .6; margin-left: 3px; }
.adm-sess-kill {
    margin-top: 5px;
    padding: 5px;
    width: 100%;
    font-size: 11px;
    cursor: pointer;
    background: rgba(231,76,60,.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    box-sizing: border-box;
    transition: background .15s;
}
.adm-sess-kill:hover { background: #e74c3c; color: #fff; }


/* ===================================================
   7. لوحة تحكم قفل الخاص للمستخدمين (Private Lock Grid)
   =================================================== */
.plock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.plock-card.ulist_item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    padding: 16px !important;
    background: #fff;
    border: 1px solid rgba(128, 128, 128, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-bottom: 0px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    cursor: default !important;
    position: relative !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15) !important; /* overrides global border_bottom */
}
.plock-card.ulist_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(39, 174, 96, 0.35) !important;
}
.plock-users-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}
.plock-user-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}
.plock-avatar-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    padding: 2px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.plock-target .plock-avatar-wrapper {
    background: linear-gradient(135deg, #e74c3c, #9b59b6);
}
.plock-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #f0f0f0;
    border: 2px solid #fff !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}
.plock-name.ulist_name {
    display: block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 4px !important;
    margin-bottom: 4px !important;
    color: inherit !important;
    text-align: center !important;
    float: none !important;
}
.plock-role-badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.badge-hunter {
    background: #3498db;
}
.badge-target {
    background: #e74c3c;
}
.plock-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
}
.plock-divider-line {
    flex: 1;
    height: 2px;
    background: rgba(128, 128, 128, 0.15);
}
.plock-divider-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    border: 1px solid rgba(231, 76, 60, 0.15);
}
.plock-icon {
    font-size: 13px;
    color: #e74c3c;
    cursor: default !important;
}
.plock-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
    padding-top: 10px;
}
.plock-btn {
    flex: 1;
    min-width: 80px;
    padding: 7px 10px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    color: #fff !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
.plock-btn i {
    font-size: 11px !important;
}
.plock-btn-unlock {
    background: #27ae60 !important;
}
.plock-btn-unlock:hover {
    background: #219653 !important;
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.35) !important;
}
.plock-btn-clear {
    background: #e74c3c !important;
}
.plock-btn-clear:hover {
    background: #c0392b !important;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.35) !important;
}
.plock-btn-pass {
    background: #34495e !important;
}
.plock-btn-pass:hover {
    background: #2c3e50 !important;
    box-shadow: 0 3px 8px rgba(52, 73, 94, 0.35) !important;
}

/* RTL Support override for grids */
[dir="rtl"] .plock-grid,
.page_full[dir="rtl"] .plock-grid {
    direction: rtl;
}


/* Account Protection System */
.protection_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1dbf1f, #159a17);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: default;
}
.protection_badge i {
    margin-right: 6px;
    font-size: 12px;
}
.protection_badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#account_verification_modal .modal_zone {
    padding: 0;
}
.verification_container {
    padding: 25px;
    text-align: center;
}
.verification_icon_wrap {
    width: 80px;
    height: 80px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.verification_icon {
    font-size: 40px;
    color: #e74c3c;
}
.verification_title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #2c3e50;
}
.verification_desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}
.verification_question_box {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px dashed #ecf0f1;
    position: relative;
}
.verification_question_label {
    font-size: 11px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: bold;
}
.verification_question_text {
    font-size: 18px;
    font-weight: 700;
    color: #34495e;
}
.verify_input_wrap {
    margin-bottom: 10px;
}
.verify_input {
    text-align: center;
    font-size: 20px;
    letter-spacing: 2px;
    border: 2px solid #ecf0f1 !important;
    transition: border-color 0.3s;
}
.verify_input:focus {
    border-color: #3498db !important;
}
.verify_error {
    background: #ffebeb;
    color: #c0392b;
    font-size: 13px;
    padding: 8px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    font-weight: 600;
}
.verification_footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn_verify {
    background: #2ecc71 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 14px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}
.btn_support {
    background: transparent !important;
    color: #95a5a6 !important;
    font-size: 13px !important;
    text-decoration: underline;
    border: none !important;
}
.btn_support:hover {
    color: #34495e !important;
}



/**/

/* Sticker System CSS */
/* تنسيق الاستيكر داخل المحادثة */
.sticker_chat { 
    height: 80px; 
    max-width: 100%; 
    vertical-align: top; 
    border-radius: 10px; 
    transition: transform 0.2s;
}
.sticker_chat:hover { transform: scale(1.1); }

/* تنسيق شبكة الاستيكرات داخل صندوق الإيموجي */
.sticker_grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    padding: 10px; 
    justify-content: center;
}

/* تنسيق المربع الخاص بكل استيكر */
.sticker_tile { 
    width: 64px; 
    height: 64px; 
    border-radius: 10px; 
    background: rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid rgba(0,0,0,0.05);
}
.sticker_tile img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* تنسيق زر الرفع (+) */
.sticker_add { border: 2px dashed rgba(0,0,0,0.2); background: #f9f9f9; }
.sticker_add i { font-size: 20px; color: #888; }
.sticker_add.loading { pointer-events: none; opacity: 0.7; }

/* تنسيق زر الحذف (x) الأحمر */
.sticker_remove { 
    position: absolute; 
    top: 2px; 
    right: 2px; 
    width: 18px; 
    height: 18px; 
    background: #ff3b3b; 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 10px; 
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* إخفاء مدخل الملفات الافتراضي */
.sticker_upload_input { display: none; }

/* تنسيق أيقونة التبويب في رأس القائمة */
.emo_menu_item_sticker, .emo_menu_item_sticker_priv { cursor: pointer; }

/* Mention Dropdown Styles */
#mention_dropdown {
    position: absolute;
    bottom: 100%;
    left: 10px;
    background: var(--bg-color, #fff);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    width: 200px;
    z-index: 55;
    display: none;
    margin-bottom: 5px;
}

#mention_dropdown::-webkit-scrollbar {
    width: 5px;
}
#mention_dropdown::-webkit-scrollbar-track {
    background: transparent;
}
#mention_dropdown::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.mention_item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.mention_item:last-child {
    border-bottom: none;
}

.mention_item:hover, .mention_item.active {
    background: rgba(var(--main-color-rgb), 0.08);
}

.mention_avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.mention_name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark mode compatibility if applicable */
.dark_mode #mention_dropdown {
    background: #222;
    border-color: #444;
}
.dark_mode .mention_name {
    color: #eee;
}
.dark_mode .mention_item:hover, .dark_mode .mention_item.active {
    background: #333;
}
.dark_mode .mention_item {
    border-bottom-color: #333;
}
.dark_mode #mention_dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
}

