.client-open-instructions-btn {
    width: 50;
    /* min-width: 140px; */
    /* padding: 10px 16px; */
    /* background: linear-gradient(135deg, #6366f1, #8b5cf6); */
    color: var(--text);
    background-color: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); */
    position: absolute;
    z-index: 100;
    top: 20;
    margin: 0 35%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    align-items: center;
    gap: 6px;
}

.btn-ChatUI-info:hover {
    background: linear-gradient(135deg, #7678f1, #a078ff);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.client-open-instructions-btn samp{
    display: none;
    }
/* ========================================== */
/* 📖 تنسيقات نافذة إرشادات الاستخدام (Modal) */
/* ========================================== */
/* 
.client-open-instructions-btn {
    width: 30%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    margin: 20px auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    gap: 6px;
}

.btn-ChatUI-info:hover {
    background: linear-gradient(135deg, #7678f1, #a078ff);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
} */

.client-instructions-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.client-instructions-modal-card {
    position: relative;
    width: 75%;
    max-width: 850px;
    background: var(--Cards);
    border: 1px solid var(--text);
    border-radius: 16px;
    padding: 40px;
    color: var(--text);
    margin: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.client-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 26px;
    color: #9ca3af;
    transition: color 0.2s;
    z-index: 10;
}
.client-modal-close-btn:hover {
    color: #ffffff;
}

.client-modal-header {
    flex: 0 0 28%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.client-modal-header .cosmic-book,
.client-modal-icon-box {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icontransparent3, rgba(56, 189, 248, 0.15));
    border: 1px solid var(--texttran3, #38bdf8);
    border-radius: 50%;
    margin-bottom: 12px;
}


.client-modal-title {
    text-align: center !important;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: bold;
    margin: 8px 0;
}

.client-modal-subtitle {
    text-align: center !important;
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
} 

.client-instructions-list-container {
    flex: 1;
    max-height: 320px;
    overflow-y: auto;
    text-align: right;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-instruction-item {
    background: var(--icontransparent3);
    border: 1px solid var(--texttran3);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.client-instruction-dot {
    width: 8px;
    height: 8px;
    background: var(--texttran3);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 6px #00f2ff;
}

.client-instruction-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.client-instruction-empty {
    text-align: center;
    color: #9ca3af;
    padding: 25px;
    font-size: 0.85rem;
}

.client-modal-action-btn {
    position: absolute;
    bottom: 20px;
    left: 30px;
    width: 240px;
    background: #1e293b;
    color: var(--text);
    font-weight: bold;
    padding: 9px 15px;
    border-radius: 10px;
    border: 1px solid var(--texttran3, #334155);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
}
.client-modal-action-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* التجاوب مع الموبايل والشاشات الصغيرة ليصبح التصميم عمودياً تماماً */
@media (max-width: 768px) {
    .client-instructions-modal-card {
        flex-direction: column;
        width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 70px;
    }
    .client-modal-header {
        flex: auto;
        width: 100%;
        margin-bottom: 15px;
    }
    .client-instructions-list-container {
        max-height: 220px;
    }
    .client-modal-action-btn {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 15px;
    }
}