.btn-ChatUI-info {
    width: auto;
    min-width: 140px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--icon), var(--icon1));
    color: var(--text);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ChatUI-info:hover {
    /* background: linear-gradient(135deg, var(--btn), var(--btn)); */
    transform: translateY(-3px);
    /* box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6); */
}

/* خلفية المودال (النافذة) */
.modalsupport {
    display: none;
    position: fixed;
    z-index: 150;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.4);
    backdrop-filter: blur(0.7rem);
}

.modal-contentmodalsupport {
    width: auto;
    min-width: 440px;
    min-height: 540px;
    padding: 20px;
    background: var(--lightboby);
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 130;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.support-messages-scroll-area::-webkit-scrollbar {
    width: 4px;
    /* عرض رفيع جداً */
    background: transparent;
}

.support-messages-scroll-area::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

/* لو عايز لما العميل يقف بالماوس على منطقة الرسائل يظهر الشريط خفيف جداً (اختياري) */
.support-messages-scroll-area:hover::-webkit-scrollbar-thumb {
    background: rgb(255, 0, 0);
}

/* 2️⃣ إخفاء شريط التمرير لمتصفح Firefox */
.support-messages-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.close-modalsupport {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 26px;
    z-index: 9999;
    color: var(--texttran);
    background: none;
    border: none;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text);
}

.modalsupportheader {
    padding: 10px 0;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.modal-contentmodalsupport h3 {
    font-size: 1.3rem;
    color: var(--btn1, #fff);
    font-weight: bold;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-subtitle-text {
    color: var(--texttran);
    font-size: 0.82rem;
    margin-top: 5px;
}

.support-status-box {
    margin-bottom: 15px;
    display: none;
}

.support-form-container {
    margin-top: auto;
}

.support-input-label {
    font-size: 0.85rem;
    color: var(--texttran);
    margin-bottom: 6px;
    display: block;
}

.support-textarea-box {
    width: 100%;
    height: 70;
    min-height: 40;
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--texttran);
    border-radius: 20px;
    padding: 10px;
    font-size: 0.88rem;
    resize: vertical;
    margin-bottom: 15px;
}

.support-send-action-btn {
    width: 100%;
    background: var(--icon);
    color: var(--text);
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.support-send-action-btn:hover {
    opacity: 0.9;
}

.support-history-wrapper {
    background: transparent;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    height: 100%;
}

.support-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 3px var(--texttran) dotted;
}

.history-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--icon1);
}

.support-status-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
}

.badge-status-new {
    background: #ef4444;
    color: #fff;
}

.badge-status-progress {
    background: #eab308;
    color: #000;
    font-weight: bold;
}

.badge-status-resolved {
    background: #10b981;
    color: #fff;
}

.support-messages-scroll-area {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.support-message-group {
    border-radius: 15px;
    padding: 15px;
    width: 100%;
}

.support-bubble-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.user-row {
    justify-content: flex-end;
    /* رسالة العميل في اليمين */
    text-align: right;
}

.admin-row {
    justify-content: flex-start;
    /* رد الأدمن في اليسار */
    text-align: left;
}

.support-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--iconEmoji);
    flex-shrink: 0;
}

.admin-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 30%;
    border: 1px solid var(--iconEmoji2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17 2 19 5;
    overflow: hidden;
}

.admin-avatar-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.support-bubble-content {
    max-width: 75%;
}

.support-bubble-meta {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--texttran);
    margin-bottom: 3px;
}

.msg-username {
    color: var(--texttran1);
}

.admin-meta {
    justify-content: flex-start;
}

.msg-index {
    color: red;
    font-weight: bold;
}

.admin-title {
    color: #a855f7;
    font-weight: bold;
}

.support-bubble {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.user-bubble {
    background-color: var(--icon);
    color: var(--text);
    border-top-left-radius: 10px;
    border-top-right-radius: 2px;
}

.admin-bubble {
    background-color: var(--btn1);
    backdrop-filter: blur(4px);
    color: var(--text);
    border-top-right-radius: 10px;
    border-top-left-radius: 2px;
}

.support-waiting-status {
    font-size: 0.9rem;
    color: var(--texttran);
    font-style: italic;
    text-align: left;
    margin: 6px;
    padding-left: 42px;
}

/* 
// =================================================================
// 🔔 INSTANT SCAN & LIVE UNREAD NOTIFICATION SYSTEM
// ================================================================= */

.notification-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(0.1rem);
    pointer-events: none;
}

.notification-modal-card {
    position: relative;
    margin: 6% 55%;
    width: 100%;
    max-width: 500px;
    background: var(--lightboby);
    border-radius: 16px;
    padding: 24px;
    color: var(--text);
    pointer-events: auto;
}

.notification-modal-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 26px;
    color: var(--texttran);
    background: none;
    border: none;
    transition: color 0.2s;
    z-index: 999;
}

.notification-modal-close:hover {
    color: var(--text);
}

.notification-header-box {
    padding: 10px 0;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    border: none;
}

.notification-header-box h3 {
    font-size: 1.5rem;
    color: var(--icon1, #fff);
    font-weight: 900;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-icon-wrapper {
    display: inline-block;
    background-color: transparent;
    padding: 10px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.notification-icon-wrapper .cosmic-icon-bell {
    font-size: 1.4rem;
    border: none;
    background-color: transparent;
}

.notification-main-title {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: bold;
    margin: 0;
}

.notification-content-area {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    background: transparent;
    border: 1px dotted var(--texttran3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    height: auto;
    /* text-align: right; */
}

.normal-item {
    border-right: 4px solid var(--texttran3);
}

.violation-item {
    border-right: 4px solid var(--texttran14);
}

.notification-item-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notification-item-title {
    font-size: 0.82rem;
    font-weight: bold;
}

.normal-item .notification-item-title {
    color: chartreuse;
}

.violation-item .notification-item-title {
    color: #ef4444;
}

.notification-badge-new {
    /* background: #10b981; */
    color: var(--texttran6);
    font-size: 0.95rem;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 5px;
}

.notification-item-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.notification-empty-text {
    text-align: center;
    color: var(--text);
    padding: 25px;
    font-size: 1.2rem;
}

.notification-close-action-btn {
    width: 100%;
    background: #1e293b;
    color: var(--text);
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
    display: none;
}

.notification-close-action-btn:hover {
    background: #334155;
}

@media (min-width: 100px) and (max-width: 452px) {
    .btn-ChatUI-info {
        z-index: 110;
    }

    .modalsupport {
        z-index: 130;
    }

    .modal-contentmodalsupport {
        width: 100%;
        min-width: 100%;
        height: 100%;
        min-height: 100%;
        padding: 20px;
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 160;
    }

    .support-messages-scroll-area::-webkit-scrollbar {
        width: 4px;
        /* عرض رفيع جداً */
        background: transparent;
    }

    .support-messages-scroll-area::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 4px;
    }

    /* لو عايز لما العميل يقف بالماوس على منطقة الرسائل يظهر الشريط خفيف جداً (اختياري) */
    .support-messages-scroll-area:hover::-webkit-scrollbar-thumb {
        background: rgb(255, 0, 0);
    }

    /* 2️⃣ إخفاء شريط التمرير لمتصفح Firefox */
    .support-messages-scroll-area {
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    .close-modalsupport {
        position: absolute;
        top: 15px;
        right: 20px;
        cursor: pointer;
        font-size: 26px;
        z-index: 9999;
        color: var(--texttran);
        background: none;
        border: none;
        transition: color 0.2s;
    }

    .close-modal:hover {
        color: var(--text);
    }

    .modalsupportheader {
        padding: 10px 0;
        position: relative;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .modal-contentmodalsupport h3 {
        font-size: 1.3rem;
        color: var(--btn1, #fff);
        font-weight: bold;
        margin: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .support-subtitle-text {
        color: var(--texttran);
        font-size: 0.82rem;
        margin-top: 5px;
    }

    .support-status-box {
        margin-bottom: 15px;
        display: none;
    }

    .support-form-container {
        margin-top: auto;
    }

    .support-input-label {
        font-size: 0.85rem;
        color: var(--texttran);
        margin-bottom: 6px;
        display: block;
    }

    .support-textarea-box {
        width: 100%;
        height: 70;
        min-height: 40;
        background-color: transparent;
        color: var(--text);
        border: 1px solid var(--texttran);
        border-radius: 20px;
        padding: 10px;
        font-size: 0.88rem;
        resize: vertical;
        margin-bottom: 15px;
    }

    .support-send-action-btn {
        width: 100%;
        background: var(--icon);
        color: var(--text);
        font-weight: bold;
        padding: 10px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        font-size: 0.9rem;
        transition: opacity 0.2s;
    }

    .support-send-action-btn:hover {
        opacity: 0.9;
    }

    .support-history-wrapper {
        background: transparent;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 15px;
        height: 100%;
    }

    .support-history-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 3px var(--texttran) dotted;
    }

    .history-title {
        font-size: 0.85rem;
        font-weight: bold;
        color: var(--icon1);
    }

    .support-status-badge {
        font-size: 0.72rem;
        padding: 2px 8px;
        border-radius: 6px;
    }

    .badge-status-new {
        background: #ef4444;
        color: #fff;
    }

    .badge-status-progress {
        background: #eab308;
        color: #000;
        font-weight: bold;
    }

    .badge-status-resolved {
        background: #10b981;
        color: #fff;
    }

    .support-messages-scroll-area {
        max-height: 240px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-right: 4px;
    }

    .support-message-group {
        border-radius: 15px;
        padding: 15px;
        width: 100%;
    }

    .support-bubble-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

    .user-row {
        justify-content: flex-end;
        /* رسالة العميل في اليمين */
        text-align: right;
    }

    .admin-row {
        justify-content: flex-start;
        /* رد الأدمن في اليسار */
        text-align: left;
    }

    .support-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--iconEmoji);
        flex-shrink: 0;
    }

    .admin-avatar-wrapper {
        width: 32px;
        height: 32px;
        border-radius: 30%;
        border: 1px solid var(--iconEmoji2);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 17 2 19 5;
        overflow: hidden;
    }

    .admin-avatar-wrapper img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .support-bubble-content {
        max-width: 75%;
    }

    .support-bubble-meta {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 8px;
        font-size: 0.72rem;
        color: var(--texttran);
        margin-bottom: 3px;
    }

    .msg-username {
        color: var(--texttran1);
    }

    .admin-meta {
        justify-content: flex-start;
    }

    .msg-index {
        color: red;
        font-weight: bold;
    }

    .admin-title {
        color: #a855f7;
        font-weight: bold;
    }

    .support-bubble {
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .user-bubble {
        background-color: var(--icon);
        color: var(--text);
        border-top-left-radius: 10px;
        border-top-right-radius: 2px;
    }

    .admin-bubble {
        background-color: var(--btn1);
        backdrop-filter: blur(4px);
        color: var(--text);
        border-top-right-radius: 10px;
        border-top-left-radius: 2px;
    }

    .support-waiting-status {
        font-size: 0.9rem;
        color: var(--texttran);
        font-style: italic;
        text-align: left;
        margin: 6px;
        padding-left: 42px;
    }


    /* 
// =================================================================
// 🔔 INSTANT SCAN & LIVE UNREAD NOTIFICATION SYSTEM
// ================================================================= */

    .notification-modal-backdrop {
        display: none;
        position: fixed;
        z-index: 130;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        backdrop-filter: blur(0.1rem);
        pointer-events: none;
    }

    .notification-modal-card {
        margin: 0;
        background: var(--lightboby);
        padding: 44px 0;
        z-index: 130;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .notification-modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        cursor: pointer;
        font-size: 26px;
        color: var(--texttran);
        background: none;
        border: none;
        transition: color 0.2s;
        z-index: 999;
        display: block;
    }


    .notification-header-box {
        padding: 0px 0;
        text-align: center;
        align-items: center;
        justify-items: center;
        flex-direction: row;
        margin: 15px auto;
    }

    .notification-header-box h3 {
        font-size: 1.2rem;
        margin: 0px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .notification-icon-wrapper {
        padding: 0;
        margin: 15px auto;
    }

    .notification-icon-wrapper .cosmic-icon-bell {
        font-size: 1.4rem;
        border: none;
        background-color: transparent;
    }

    .notification-main-title {
        font-size: 1.15rem;
        color: var(--text);
        font-weight: bold;
        margin: 0;
    }

    .notification-content-area {
        max-height: 90%;
        height: 90%;
        overflow-y: auto;
    }

    .notification-item {
        background: transparent;
        border: 1px dotted var(--texttran3);
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 10px;
        height: auto;
        /* text-align: right; */
    }

    .normal-item {
        border-right: 4px solid var(--texttran3);
    }

    .violation-item {
        border-right: 4px solid var(--texttran14);
    }

    .notification-item-header {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

    .notification-item-title {
        font-size: 0.82rem;
        font-weight: bold;
    }

    .normal-item .notification-item-title {
        color: chartreuse;
    }

    .violation-item .notification-item-title {
        color: #ef4444;
    }

    .notification-badge-new {
        /* background: #10b981; */
        color: var(--texttran6);
        font-size: 0.95rem;
        padding: 1px 5px;
        border-radius: 4px;
        margin-right: 5px;
    }

    .notification-item-text {
        font-size: 0.85rem;
        color: var(--text);
        line-height: 1.5;
    }

    .notification-empty-text {
        text-align: center;
        color: var(--text);
        padding: 25px;
        font-size: 1.2rem;
    }

    .notification-close-action-btn {
        width: 100%;
        background: #1e293b;
        color: var(--text);
        font-weight: bold;
        padding: 8px;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 15px;
        transition: background 0.2s;
        /* display: block; */
    }

    .notification-close-action-btn:hover {
        background: #334155;
    }
}