    .row { display: flex; gap: 20px; flex-wrap: wrap; }
  .col { flex: 1; min-width: 280px; background: white; padding: 15px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  .broadcaster-item, .video-broadcaster-item { padding: 10px; margin: 10px 0; border-radius: 48px; width: 70px; }
#pendingRequestsList:empty {
    position: static;
}

#pendingRequestsList:not(:empty) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
  .request-pending {     background: white;
    border-radius: 15px;
    width: 250px;
    padding: 20px 0px 0px 0px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s;; }
  .host-avatar-card { padding: 10px; margin: 10px 0; border-radius: 48px; width: 70px; }
  .avatar-circle { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1px; font-size: 32px; font-weight: bold; color: white; background: #0084ff; background-size: cover; background-position: center; }

  .audio-container { display: none; }
  .broadcaster-card { display: flex; justify-content: space-between; cursor: pointer; transition: 0.2s; flex-direction: column; align-items: center; }
  .broadcaster-card:hover { background: #e9ecef; }
  .broadcaster-info { display: flex; align-items: center; gap: 4px; flex: 1; flex-direction: column; }
  .small-avatar { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: white; background: #0084ff; background-size: cover; background-position: center; }
  #broadcastersList { display: flex; flex-wrap: wrap; }
  .broadcaster-name { font-weight: bold; font-size: 16px; }
  .status-text { font-size: 15px; margin-left: 10px; color: #fff; }
  .global-mute-btn { background: #dc3545; margin-bottom: 10px; }
  .viewer-video-frame { position: fixed; width: 300px; background: rgba(255,255,255,0.95); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); overflow: hidden; z-index: 1000; backdrop-filter: blur(2px); border: 1px solid rgba(0,0,0,0.1); display: flex; flex-direction: column; height: 500px; }
  .video-header { background: rgba(247,247,248,0.9); padding: 8px 12px; font-size: 16px; font-weight: bold; text-align: center; border-bottom: 1px solid #cfcfcf; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 10; }
  .video-header .avatar-small { width: 28px; height: 28px; background-size: cover; background-position: center; border-radius: 50%; display: inline-block; }
  .close-video-btn { position: absolute; top: 6px; right: 10px; cursor: pointer; font-size: 22px; font-weight: bold; color: #000; background: transparent; border: none; z-index: 10; padding: 0; margin: 0; }
  .viewer-video-frame video { width: 100%; height: 100%; background: #000; display: block; object-fit: cover; transform: scaleX(-1); position: absolute; }
  .floating-video { position: fixed; z-index: 1000; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.3); cursor: grab; border: 2px solid #fff; min-width: 200px; min-height: 150px; }
  .floating-video:active { cursor: grabbing; }
  .floating-video video { width: 100%; height: auto; display: block; }
  .floating-video .video-label { position: absolute; bottom: 5px; left: 8px; background: rgba(0,0,0,0.6); color: white; font-size: 12px; padding: 2px 6px; border-radius: 20px; pointer-events: none; }
  .floating-video .close-video { position: absolute; top: 5px; right: 8px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 20px; width: 24px; cursor: pointer; }
  .host-floating-video video { transform: scaleX(-1); }
  .viewers-list { margin-top: 15px; background: #f8f9fa; border-radius: 12px; padding: 10px; font-size: 14px; }
  .viewers-list span { font-weight: bold; }
  .viewer-item { display: inline-block; background: #e9ecef; border-radius: 20px; padding: 4px 12px; margin: 4px; font-size: 12px; }
  .modal-overlay33 { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 2000; }
  .video-request-modal {     background: white;
    border-radius: 15px;
    width: 280px;
    padding: 20px 0px 0px 0px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s; }
  .modal-avatar { width: 80px; height: 80px; background-size: cover; background-position: center; border-radius: 50%; display: inline-block;background-color: #0084ff; }
  .watch-in-modal {       background: #28a745;
    padding: 10px 20px;
    border-radius: 28px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    margin-top: 10px;
	font-family: "SF Arabic", "SF Pro Text", "SF UI Text " !important;}
  .close-modal {    background: #6c757d;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 28px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none; 
	font-family: "SF Arabic", "SF Pro Text", "SF UI Text " !important;
	}
  @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
  @media (max-width: 768px) { .viewer-video-frame { width: 85%; max-width: 280px; } }
  #vfdvdvfd{
position: absolute;top: 15px;left: 0px;z-index: 1;width: 100%;height: 20%;overflow: hidden
}
.broadcaster-card { display: flex; justify-content: space-between; cursor: pointer; transition: 0.2s; flex-direction: column; align-items: center; }
  .broadcaster-card:hover { background: #e9ecef; }
  .broadcaster-info { display: flex; align-items: center; gap: 4px; flex: 1; flex-direction: column; }
 .broadcaster-item, .video-broadcaster-item { padding: 2px 10px 0px 10px; margin: 0px 0; border-radius: 48px; width: 70px;    z-index: 10; }  .small-avatar { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: white; background: #0084ff; background-size: cover; background-position: center; }
  .host-avatar-card { padding: 2px 10px 0px 10px; margin: 0px 0; border-radius: 48px; width: 70px;
    z-index: 10; }
  .avatar-circle { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1px; font-size: 32px; font-weight: bold; color: white; background: #0084ff; background-size: cover; background-position: center; }
.fontPfamily{
	    font-family: "SF Arabic", "SF Pro Text", "SF UI Text " !important;
}
.host-name{ font-weight: bold;
    font-size: 12px;
    font-family: "SF Arabic" !important;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    display: inline-block;
    direction: ltr;
    unicode-bidi: plaintext; 
	margin-top: 3px;
	    position: relative;
    width: 100%;
    text-align: center;
    left: 0;
    right: 0;}
.broadcaster-name { font-weight: bold;
    font-size: 12px;
    font-family: "SF Arabic" !important;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    display: inline-block;
    direction: ltr;
    unicode-bidi: plaintext; }
.broadContainer {
    background: #1e242900;
    padding: 4px;
    border-radius: 31px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    display: flex
;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    cursor: default;
    width: 35px;
    height: 35px;
}
/* الشريط السفلي */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    box-sizing: border-box;
    z-index: 99999;
       font-family: "SF Arabic" !important;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.left {
    display: flex;
    align-items: center;
    gap: 0px;
}
.loader {
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ok {
    color: #ff3b3b;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 16px;
    padding: 5px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}
.ok:hover {
    background: rgba(255,255,255,0.1);
}
@keyframes successPop {
    0% { transform: translateY(10px); opacity: 0; }
    80% { transform: translateY(-2px); }
    100% { transform: translateY(0); opacity: 1; }
}
.bottom-bar.success {
    animation: successPop 0.3s ease-out;
}/* حالة النجاح */
.bottom-bar.success {
    background: #2e7d32;
    box-shadow: 0 -2px 10px rgba(46,125,50,0.3);
}
.bottom-bar.success .loader {
    border-color: #81c784;
    border-top-color: #fff;
}
.bottom-bar.success .ok {
    background: #fff;
    color: #2e7d32;
    border-radius: 20px;
    padding: 4px 12px;
}
.bottom-bar.success .ok:hover {
    background: #e8f5e9;
}
@media (max-width: 600px) {
    .bottom-bar {
        padding: 10px 12px;
        font-size: 15px;
    }
    .loader {
        width: 20px;
        height: 20px;
    }
    .ok {
        font-size: 14px;
        padding: 4px 10px;
    }
}

        @font-face {
            font-family: "SF Arabic";
            src: url("class/SF-Arabic.ttf") format("truetype");
            font-weight: normal;
            font-style: normal;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
 body, html {
        font-family: "SF Arabic","SF Pro Text", "SF UI Text " !important;
    background: #f3f3f3;
    overflow: hidden;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}
.app {
    width: 100%;
    height: 100%;
    background: #efeff4;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-size: 15px;
}

     
        
       .loading-overlay {
       position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex
;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loader-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2a7de1;
    border-bottom-color: #2a7de1;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.loader-ring:nth-child(2) {
    width: 130px;
    height: 130px;
    border-top-color: #ff6b6b;
    border-bottom-color: #ff6b6b;
    animation-duration: 1s;
    animation-direction: reverse;
}
.loader-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    border-top-color: #51cf66;
    border-bottom-color: #51cf66;
    animation-duration: 0.8s;
}
.loader-logo {
    position: relative;
    width: 70px;
    height: auto;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(42,125,225,0.3);
}
.loader-text {
    position: absolute;
    bottom: -40px;
    color: #fff;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
.loading-overlay:not(.hidden) {
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(4px); }
}
@media (max-width: 768px) {
    .loader-container {
        width: 150px;
        height: 150px;
    }
    .loader-ring {
        width: 120px;
        height: 120px;
    }
    .loader-ring:nth-child(2) {
        width: 95px;
        height: 95px;
    }
    .loader-ring:nth-child(3) {
        width: 70px;
        height: 70px;
    }
    .loader-logo {
        width: 50px;
    }
    .loader-text {
        font-size: 12px;
        bottom: -35px;
        white-space: nowrap;
    }
}
        /* نظام الإشعارات العلوي */
        .notification-container {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10001;
            width: 90%;
            max-width: 380px;
            pointer-events: none;
			    z-index: 9999999;
        }
        
        .notification {
            background: white;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 10px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 15px;
            transform: translateY(-100px);
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: auto;
            border-right: 5px solid;
			    z-index: 9999999;
        }
        
        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        
        .notification.success {
            border-right-color: #4CAF50;
        }
        
        .notification.success .notification-icon {
            background: #4CAF50;
        }
        
        .notification.error {
            border-right-color: #f44336;
        }
        
        .notification.error .notification-icon {
            background: #f44336;
        }
        
        .notification.warning {
            border-right-color: #ff9800;
        }
        
        .notification.warning .notification-icon {
            background: #ff9800;
        }
        
        .notification.info {
            border-right-color: #2196F3;
        }
        
        .notification.info .notification-icon {
            background: #2196F3;
        }
        
        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-title {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 4px;
        }
        
        .notification-message {
            font-size: 14px;
            color: #666;
        }
        
        .notification-close {
            color: #999;
            cursor: pointer;
            font-size: 18px;
            transition: color 0.2s;
        }
        
        .notification-close:hover {
            color: #333;
        }

        /* الهيدر */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            background: #f7f7f8 !important;
            border-bottom: 1px solid #ddd;
            flex-shrink: 0;
            height: 55px;
        }
        
        .logo {
             height: 40px;
    font-size: 20px;
    
    overflow: hidden;
    border-radius: 10px;
        }
        
        .logo img {
    width: 100%;
    height: 100%;

	}

        .login-btn {
            background: #2a7de1;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
			font-family: "SF Arabic" !important;
        }
        
        .login-btn:hover {
            background: #1e5cb3;
        }

        /* قسم المستخدم */
        .user-section {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            position: relative;
            padding: 5px 10px;
            border-radius: 30px;
            transition: background-color 0.2s;
        }
        
        .user-section:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .user-section.active {
            background-color: rgba(0, 0, 0, 0.1);
        }
        
        .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background-color: #2a7de10d;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            overflow: hidden;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .user-name {
            font-weight: bold;
            color: #333;
            font-size: 14px;
            max-width: 120px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .user-arrow {
            color: #666;
            font-size: 16px;
            transition: transform 0.2s;
        }
        
        .user-section.active .user-arrow {
            transform: rotate(180deg);
        }

        /* القائمة المنسدلة للمستخدم */
        .user-dropdown {
            position: absolute;
            top: 55px;
            right: 0;
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 250px;
            display: none;
            z-index: 1000;
            border: 1px solid #eee;
            overflow: hidden;
            animation: slideDown 0.2s ease;
        }
    
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .user-dropdown.show {
            display: block;
        }
        
        .dropdown-header {
            padding: 5px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .dropdown-header .user-avatar-small {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            border: 3px solid white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        
        .dropdown-header .user-info {
            flex: 1;
        }
        
        .dropdown-header .user-info .user-name {
            font-weight: bold;
            color: white;
            font-size: 16px;
            margin-bottom: 4px;
        }
        
        .dropdown-header .user-info .user-status {
            margin: 0px 0px 0px -21px;
            font-size: 12px;
            color: #a5d6ff;
            display: flex;
            align-items: center;
            gap: 5px;
			    
        }
        
        .dropdown-header .user-info .user-status i {
            font-size: 8px;
            color: #4ade80;
        }
        
        .dropdown-item {
            padding: 13px 0px 10px 11px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: all 0.2s;
            color: #333;
            font-size: 14px;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .dropdown-item:hover {
            background: #fee;
        }
        
        .dropdown-item i {
            width: 24px;
            color: #ff4444;
            font-size: 20px;
        }
        
        .dropdown-item span {
            flex: 1;
            font-weight: 500;
        }
        
        .dropdown-item .arrow {
            color: #999;
            font-size: 14px;
        }
        
        .dropdown-item.logout {
            color: #ff4444;
            font-weight: bold;
        }
        
        .dropdown-item.logout:hover {
            background: #ffebee;
        }

        /* خلفية سوداء للقائمة */
        .user-dropdown-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 999;
            display: none;
            animation: fadeIn 0.2s ease;
        }
        
        .user-dropdown-overlay.show {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* البحث */
        .search {
            padding: 10px;
            flex-shrink: 0;
        }
        
        .search input {
            width: 41%;
            padding: 6px;
            border-radius: 20px;
            border: 1px solid #ffffff;
            background: #ffffff;
            outline: none;
        }

        /* التبويبات */
        .tabs {
            display: flex;
            margin: 0 10px 10px 10px;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid #ccc;
            flex-shrink: 0;
        }
        
        .tab {
            flex: 1;
            text-align: center;
            padding: 8px;
            cursor: pointer;
            background: #fff;
            transition: 0.2s;
            font-weight: bold;
        }
        
        .tab.active {
            
            color: white;
        }

        /* قائمة الغرف */
        #roomsInterface {
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
            position: relative;
        }

        .outline-background {
            position: absolute;
            top: 155px;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 0;
            overflow: hidden;
        }

        .container-interior {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
        }

        .roomlist-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0 5px 10px 5px;
            margin: 0;
            scrollbar-width: thin;
            scrollbar-color: #acacb5 #cdd4de;
            -webkit-overflow-scrolling: touch;
        }

        .rooms-list {
            width: 100%;
            padding: 0;
            margin: 0;
        }

        .rooms-list::-webkit-scrollbar {
            width: 4px;
        }

        .rooms-list::-webkit-scrollbar-track {
            background: #e0e0e0;
            border-radius: 10px;
        }

        .rooms-list::-webkit-scrollbar-thumb {
            background: #acacb5;
            border-radius: 10px;
        }

        .rooms-list::-webkit-scrollbar-thumb:hover {
            background: #8a8a95;
        }
        
        .room {
              display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px 5px 10px;
    border-bottom: 1px solid #eee;
    background: #ffffff;
    margin: 4px 7px 0px 7px;
    border-radius: 5px;
        }
        
        .room-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        
        .room-icon {
            width: 60px;
            height: 60px;
            border-radius: 8px;
           
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .room-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .room-info {
            flex: 1;
            min-width: 0;
        }
        
        .room-name {
            font-weight: bold;
            font-size: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .room-desc {
            font-size: 13px;
            color: #777;
            margin: 3px 0px 0px 2px;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .room-right {
            text-align: right;
            flex-shrink: 0;
        }
        
        .users {
            font-size: 12px;
            color: #444;
            display: flex;
            align-items: center;
            gap: 4px;
            justify-content: flex-end;
        }
        
        .enter {
            margin: -2px 6px -3px 4px;
            color: #000000;
            cursor: pointer;
            text-align: right;
        }
        
        .enter i {
            font-size: 18px;
        }

        /* العداد السفلي مخفي */
        .footer-counter {
            display: none;
        }
        
        .error-message {
            text-align: center;
            padding: 20px;
            color: red;
        }
        
        .hidden {
            display: none;
        }

        /* مودال تسجيل الدخول */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: flex-end;
            z-index: 10000;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s, visibility 0.3s;
        }
        
        .modal-overlay.show {
            visibility: visible;
            opacity: 1;
        }
        
        .modal-content {
            background: white;
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
            padding: 25px 20px 25px;
            border-top-left-radius: 15px;
            border-top-right-radius: 15px;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
            text-align: right;
        }
        
        .modal-title {
            font-size: 23px;
            font-weight: bold;
            color: #1a1e2b;
            text-align: justify;
            margin-bottom: 15px;
        }

        /* Toggle switch */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 10px 15px;
            border-radius: 40px;
        }
        
        .toggle-switch1 {
            position: relative;
            display: inline-block;
            width: 55px;
            height: 23px;
            float: right;
        }
        
        .toggle-switch1 input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-switch1 label {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0;
            right: 0; bottom: 0;
            background-color: #ccc;
            transition: 0.4s;
            border-radius: 28px;
        }
        
        .toggle-switch1 label:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }
        
        .toggle-switch1 input:checked + label {
            background-color: #2a7de1;
        }
        
        .toggle-switch1 input:checked + label:before {
            transform: translateX(32px);
        }
        
        .toggle-switch-text1 {
            font-weight: 600;
            color: #333;
        }

        /* الحقول */
        .field-group {
            margin-bottom: 18px;
        }
        
        .field-label {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
            display: block;
        }
        
        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: #ffffff;
            border: 1px solid #9b9b9b;
            border-radius: 14px;
            padding: 0 12px;
        }
        
        .input-wrapper i {
            color: #888;
            font-size: 18px;
            margin-left: 8px;
        }
        
        .input-wrapper input,
        .input-wrapper select {
            width: 100%;
            padding: 14px 0;
            border: none;
            background: transparent;
            font-size: 15px;
            outline: none;
			font-family: "SF Arabic" !important;
        }
        
        .input-wrapper select {
            cursor: pointer;
        }

        /* زر الدخول */
        .modal-login-btn {
            width: 50%;
            background: #2a7de1;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 7px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            margin: 0px 0 15px;
            position: relative;
            right: 80px;
			font-family: "SF Arabic" !important;
        }
        
        .modal-login-btn:hover {
            background: #1e5cb3;
        }
        
        .modal-links {
            text-align: center;
            font-size: 17px;
            color: #555;
            margin-bottom: 20px;
        }
        
        .modal-links a {
            color: #2a7de1;
            text-decoration: none;
            font-weight: 600;
        }
        /* عند التركيز على أي عنصر داخل field-group */
.field-group:focus-within {
    border: 1px solid #a82548 !important;
    border-radius: 8px; /* حسب التصميم، يمكنك تعديله أو حذفه */
	    border-radius: 14px;
}

/* لتغيير لون الأيقونة أيضاً */
.field-group:focus-within svg {
    fill: #a82548;
}

/* إزالة الإطار الافتراضي من الحقل الداخلي */
.field-group input:focus {
    outline: none;
    border: none; /* أو border: 0 إذا كان input له border خاص به */
}


        .modal-footer-text {
            display: flex;
            justify-content: space-around;
            font-size: 17px;
            color: #777;
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: 10px;
        }
        
        .modal-footer-text a {
            color: #2a7de1;
            text-decoration: none;
        }

        /* ========== واجهة الغرفة ========== */
        .room-interface {
            display: none;
            flex-direction: column;
            height: 100%;
            background: #d2d2d2;
            position: relative;
            overflow: hidden;
        }
        
        .room-interface.show {
            display: flex;
        }

        /* رأس الغرفة */
        .room-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0px;
            background: #f7f7f8;
            border-bottom: 1px solid #ddd;
            flex-shrink: 0;
            height: 44px;
        }
        
        .room-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }
        
        .room-header-left i {
            font-size: 20px;
            color: #2a7de1;
            cursor: pointer;
        }
        
        .room-header-left span {
            font-weight: bold;
    color: #333;
    background-color: rgb(205, 212, 222);
    padding: 5px 10px;
    border-radius: 18px;
    height: 31px;
    position: absolute;
    left: 27px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    white-space: pre;
	    font-size: 14px;
        }
        
        .room-header-right {
            display: flex;
            align-items: center;
            gap: 7px;
            position: relative;
        }
        
        .room-header-right i {
            font-size: 20px;
            color: #666;
            cursor: pointer;
        }

        /* زر المستخدمين */
        #topcmm-123flashchat {
             cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 23px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 98px;
    background: #ffffff;
    z-index: 1001;
        }
        
        #topcmm-123flashchat:hover {
            background: #fff;
        }
        
        #topcmm-123flashchat i {
            font-size: 30px !important;
            color: #0088ff;
        }
        
        #button_house, #button_person {
            width: 40px;
            border-radius: 5px;
            text-align: center;
            float: left;
            height: 28px;
            padding: 1px;
            cursor: pointer;
            outline: none !important;
            -webkit-tap-highlight-color: transparent;
			border: none;
        }
        
        #button_house i, #button_person i {
            color: aliceblue;
            font-size: 25px;
        }

        /* زر الإعدادات */
        #IDseting {
            position: relative;
            cursor: pointer;
        }
        
        .language-menu {
            position: absolute;
            top: 35px;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            width: 150px;
            display: none;
            z-index: 1001;
            border: 1px solid #eee;
            overflow: hidden;
            animation: slideDown 0.2s ease;
        }
        
        .language-menu.show {
            display: block;
        }
        
        .language-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }
        
        .language-item {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .language-item:last-child {
            border-bottom: none;
        }
        
        .language-item:hover {
            background: #f5f5f5;
        }
        
        .language-item i {
            width: 20px;
            color: #2a7de1;
            font-size: 18px;
        }
        
        .language-item span {
            flex: 1;
            font-size: 14px;
            color: #333;
        }
        
        .language-item .fa-check {
            color: #2a7de1;
        }

        /* قائمة المستخدمين */
        .users-panel {
              position: absolute;
    top: 43px;
    left: 90px;
    right: 0;
    bottom: 93px;
    background: #f8f9fa;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: none;
    flex-direction: column;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    overflow: hidden;
        }
        
        .users-panel.open {
          
            display: flex;
        }
        
        .users-panel-header {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 5px 6px 5px 1px;
            background: #ffffff;
            border-bottom: 1px solid #e9ecef;
            flex-shrink: 0;
        }
        
        .users-panel-header h3 {
            font-size: 16px;
            color: #495057;
            font-weight: 600;
        }
        
        .users-panel-header .online-count {
            color: #20c997;
            font-size: 14px;
        
            padding: 3px 10px;
            border-radius: 20px;
        }
        
        .users-panel-header i {
            font-size: 24px;
            color: #adb5bd;
            cursor: pointer;
        }
        
        .users-search {
            padding: 0px 5px;
            background: #ffffff;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            flex-direction: row-reverse;
            gap: 7px;

        }
        
        .users-search input {
            width: 100%;
            padding: 10px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            background: #f8f9fa;
        }
        
        .users-search input::placeholder {
            color: #adb5bd;
        }
        
        .users-list {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background: #f8f9fa;
            position: relative;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: #acacb5 #cdd4de;
        }

        .users-list::-webkit-scrollbar {
            width: 4px;
        }

        .users-list::-webkit-scrollbar-track {
            background: #e0e0e0;
            border-radius: 10px;
        }

        .users-list::-webkit-scrollbar-thumb {
            background: #acacb5;
            border-radius: 10px;
        }
        
        .user-item {
            display: flex;
            align-items: center;
            padding: 8px 10px;
            height: 45px;
            background: #ffffff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            transition: all 0.2s;
        }
        
        .user-item:hover {
            background: #f1f3f5;
        }
        
        .user-rank-icon {
            width: 24px;
            height: 24px;
            min-width: 24px;
            display: inline-block;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            margin-left: -8px;
            flex-shrink: 0;
        }
        
        .user-avatar-small {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 20px;
            margin-left: 8px;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 16px;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            flex-shrink: 0;
        }
        
        .user-info {
            flex: 1;
            min-width: 0;
        }
        
        .user-name-display {
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 0px 0px 0px 7px;
            flex-wrap: wrap;
        }
        
        .user-name-display span {
                font-size: 18px;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    direction: ltr;
    unicode-bidi: plaintext;
        }
        
        .user-name-text {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }
        
        .user-name-text.null-rank {
            font-weight: 500;
        }
        
        .gender-icon {
            width: 16px;
            height: 16px;
            min-width: 16px;
            display: inline-block;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            margin-left: 4px;
            flex-shrink: 0;
        }
        
        .user-status {
            font-size: 12px;
            color: #8b9eb0;
            display: flex;
            align-items: center;
            gap: 0px;
            margin: -5px -7px -3px -40px;
			position: absolute;
        }
        
        .user-status i {
            font-size: 10px;
        }
        
        .user-status .online-dot {
            color: #40c057;
        }

        /* منطقة الرسائل */
        .messages-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    background: #cdd4de;
    display: flex
;
    flex-direction: column;
    gap: 0px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #acacb5 #cdd4de;
    position: relative;
    margin: 0px 0px 96px 0px;
        }

        .messages-area::-webkit-scrollbar {
            width: 4px;
        }

        .messages-area::-webkit-scrollbar-track {
            background: #e0e0e0;
            border-radius: 10px;
        }

        .messages-area::-webkit-scrollbar-thumb {
            background: #acacb5;
            border-radius: 10px;
        }

        /* منطقة إدخال الرسائل */
        .message-input-area {
        display: flex
;
    align-items: center;
    background: #f4f7fa;
    border-top: 1px solid #ddd;
    gap: 6px;
    flex-shrink: 0;
    height: 44px;
    box-sizing: border-box;
    padding: 5px;
    position: absolute;
    bottom: 50.7px;
    width: 100%;
    justify-content: space-between;
        }
        .tabbar-label {
color:#000 !important;
}
#messageInput4{
color: rgb(213, 0, 0);font-weight: bold;border-radius: 25px;display: block;background-color: rgb(255, 255, 255);text-indent: 14px;padding: 5px 0px;outline: none;height: 34px;bottom: 0px;width: 100%;position: relative;left: 4px;font-size: 16px;border: 1px solid rgb(200, 200, 205);min-height: 20px;overflow: hidden;resize: none;font-family: 'SF Arabic' !important;
}
        .message-input-area input {
           flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #f8f9fa;
    font-family: "SF Arabic" !important;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    outline: none;
    height: 30px;
    font-size: 16px;
    border: 1px solid #c8c8cd;
    text-indent: 13px;
        }

        .message-input-area input:focus {
            border-color: #2a7de1;
            background: white;
        }

        .message-input-area button {
            background: #2a7de100;
            color: white;
            border: none;
       
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s;
        }

        .message-input-area button:active {
            transform: scale(0.95);
        }

        .message-input-area button i {
            font-size: 28px;
        }

        .message-input-area button:hover {
            background: #2a7de100;
        }

        /* أنماط الرسائل المختلفة */
        .system-message {
            background: #e3f2fd;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            font-size: 13px;
            color: #1565c0;
            border-right: 3px solid #2196f3;
        }
        
        .room-welcome-message {
            background: #fff3e0;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            font-size: 13px;
            color: #e65100;
            border-right: 3px solid #ff9800;
            font-weight: bold;
        }
        
        .user-join-message {
            background: #e8f5e8;
            border-radius: 10px;
            padding: 8px 12px;
            text-align: center;
            font-size: 12px;
            color: #2e7d32;
            border-right: 3px solid #4caf50;
            animation: fadeIn 0.3s ease;
        }
        
        .user-leave-message {
            background: #ffebee;
            border-radius: 10px;
            padding: 8px 12px;
            text-align: center;
            font-size: 12px;
            color: #c62828;
            border-right: 3px solid #f44336;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .supervision-card {
            background: #fff3e0;
            border-radius: 10px;
            padding: 12px;
            border-right: 3px solid #ff9800;
        }
        
        .supervision-title {
            font-weight: bold;
            color: #e65100;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        .supervision-text {
            font-size: 12px;
            color: #333;
            line-height: 1.6;
        }
        
        .welcome-message {
            background: #e8f5e8;
            border-radius: 10px;
            padding: 12px;
            border-right: 3px solid #4caf50;
        }
        
        .welcome-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .welcome-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #4caf50;
            background-size: cover;
            background-position: center;
        }
        
        .welcome-name {
            font-weight: bold;
            color: #2e7d32;
        }
        
        .welcome-text {
            font-size: 13px;
            color: #1b5e20;
            padding-right: 40px;
        }
        
        .auto-message {
            background: #f3e5f5;
            border-radius: 10px;
            padding: 12px;
            border-right: 3px solid #9c27b0;
        }
        
        .auto-title {
            font-weight: bold;
            color: #6a1b9a;
            margin-bottom: 5px;
            font-size: 13px;
        }
        
        .auto-text {
            font-size: 12px;
            color: #4a148c;
            line-height: 1.6;
        }
        
        .general-message {
            background: #fff;
            border-radius: 10px;
            padding: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .general-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }
        
        .general-avatar {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background-color: #ff9800;
            background-size: cover;
            background-position: center;
        }
        
        .general-name {
            font-weight: bold;
            color: #333;
            font-size: 13px;
        }
        
        .general-time {
            font-size: 10px;
            color: #999;
            margin-right: auto;
        }
        
        .general-text {
            font-size: 13px;
            color: #333;
            padding-right: 33px;
            word-break: break-word;
        }
        
        .rebel-message {
            background: #ffebee;
            border-radius: 10px;
            padding: 10px;
            border-right: 3px solid #f44336;
        }
        
        .rebel-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }
        
        .rebel-avatar {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background-color: #f44336;
            background-size: cover;
            background-position: center;
        }
        
        .rebel-name {
            font-weight: bold;
            color: #c62828;
            font-size: 13px;
        }
        
        .rebel-text {
            font-size: 13px;
            color: #b71c1c;
            padding-right: 33px;
        }

        /* القائمة المنسدلة للمستخدمين */
        .user-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            display: none;
            justify-content: center;
            align-items: flex-end;
            opacity: 0;
            transition: opacity 0.3s ease;
			z-index: 9999999;
        }
        
        .user-menu-overlay.show {
            display: flex;
            opacity: 1;
        }
        
        .user-menu-container {
            background: white;
            width: 100%;
            max-width: 399px;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
            position: absolute;
            bottom: 0px;
        }
        
        .user-menu-overlay.show .user-menu-container {
            transform: translateY(0);
        }
        
        .user-menu-header {
            padding: 10px 8px 10px 10px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 13px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .user-menu-header:hover {
            background-color: #f5f5f5;
        }
        
        .user-menu-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            border: 3px solid #2a7de1;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .user-menu-avatar:hover {
            transform: scale(1.05);
        }
        
        .user-menu-info h3 {
            font-size: 18px;
            color: #333;
            margin-bottom: 5px;
			   
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    direction: ltr;
    unicode-bidi: plaintext;
        }
        
        .user-menu-info .user-menu-rank {
            font-size: 14px;
            color: #666;
        }
        
        .user-menu-items {
            padding: 0px 0;
        }
        
        .user-menu-item {
            display: flex;
            align-items: center;
            padding: 6px 20px;
            gap: 15px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .user-menu-item:hover {
            background-color: #f5f5f5;
        }
        
        .user-menu-item i {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2a7de1;
            font-size: 20px;
        }
        
        .user-menu-item span {
            flex: 1;
            font-size: 19px;
            color: #333;
        }
        
        .user-menu-item .arrow {
            color: #999;
            font-size: 18px;
        }
        
        .user-menu-close {
            padding: 7px 20px;
            text-align: center;
            border-top: 1px solid #f5f5f5;
            cursor: pointer;
            color: #ff4444;
            font-weight: bold;
            transition: background-color 0.2s;
        }
        
        .user-menu-close:hover {
            background-color: #fff5f5;
        }
        
        .user-menu-overlay.show ~ .app {
            filter: blur(2px);
        }

        /* نافذة عرض الصورة */
        .image-viewer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 10002;
            display: none;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 999999999999999999999999999999;
        }
        
        .image-viewer-overlay.show {
            display: flex;
            opacity: 1;
        }
        
        .image-viewer-container {
            position: relative;
            width: 90%;
            max-width: 350px;
            background: transparent;
            border-radius: 20px;
            overflow: hidden;
            animation: zoomIn 0.3s ease;
        }
        
        @keyframes zoomIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .image-viewer-image {
            width: 100%;
            aspect-ratio: 1;
            background-size: cover;
            background-position: center;
            border-radius: 20px;
            border: 4px solid white;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .image-viewer-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            cursor: pointer;
            transition: background 0.2s;
            backdrop-filter: blur(5px);
        }
        
        .image-viewer-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .image-viewer-caption {
            text-align: center;
            color: white;
            margin-top: 10px;
            font-size: 16px;
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        /* ===== نافذة المعلومات الشخصية ===== */
        .user-info-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 20000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
			z-index: 9999999;
        }
        
        .user-info-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .profile-card {
            background: #fff;
            width: 100%;
            overflow: hidden;
            animation: slideUp 0.3s ease;
            display: flex;
            flex-direction: column;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            margin: 0 auto;
            top: 0;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* رأس النافذة */
        .profile-navbar {
            background: #efeff4;
            padding: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: row-reverse;
        }
        
        .profile-navbar .title {
            font-size: 18px;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            text-align: center;
        }
        
        .profile-navbar .close-btn {
            color: #795548;
            font-size: 16px;
            padding: 5px 10px;
            cursor: pointer;
			 font-weight: bold;
        }
        
        /* محتوى الصفحة */
        .profile-content {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 20px;
        }
        
        /* قسم الغلاف */
        .profile-cover-block {
            position: relative;
            overflow: hidden;
        }
        
        .profile-cover {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            padding: 20px;
            position: relative;
            border-radius: 30px;
            min-height: 200px;
        }
        
        .profile-cover-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            filter: blur(20px);
            z-index: 1;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
        }
        
        .profile-avatar {
            width: 150px;
            height: 150px;
            border-radius: 45px;
            object-fit: cover;
            border: 4px solid #fff;
            box-shadow: 0 5px 8px rgba(0, 0, 0, 0.16);
            background-color: #efeff4;
            position: relative;
            z-index: 2;
            top: 10px;
            cursor: pointer;
        }
        
        .profile-info-wrapper {
            display: flex;
            z-index: 5;
            flex-direction: column;
            margin-top: 20px;
            flex: 1;
        }
        
        .profile-name-container {
            z-index: 3;
            color: #fff;
            margin-right: 8px;
            direction: rtl;
            font-size: 22px;
            padding: 0 10px;
            border-radius: 10px;
            display: flex;
            align-items: center;
        }
        
        .verify-badge {
            height: 24px;
            width: 24px;
            margin-left: 5px;
            margin-top: -6px;
            background-color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 25px;
            display: none;
        }
        
        .verify-badge i {
            font-size: 18px;
            color: var(--theme-color, #8e44ad);
        }
        
        .profile-name {
            text-shadow: 2px 2px 10px #f5f5f5;
			    font-weight: 500;
    text-overflow: ellipsis;
    width: auto;
    max-width: 150px;
    flex: 1 1 0%;
    overflow: hidden;
        }
        
        .profile-status-container {
            z-index: 3;
            color: #fff;
            margin-right: 20px;
            direction: rtl;
        }
        
        .status-indicator {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }
        
        .status-dot {
            width: 15px;
            height: 15px;
            background-color: #4ce800;
            border-radius: 7.5px;
            margin-left: 10px;
            margin-top: 3px;
        }
        
        .status-text {
            text-shadow: 1px 2px 10px #000;
        }
        
        .rank-badge {
            margin-top: 5px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            display: flex;
            align-items: center;
            padding: 0 3px;
            justify-content: center;
            width: fit-content;
        }
        
        .rank-icon {
            width: 27px;
            height: 31px;
            object-fit: contain;
        }
        
        .rank-text {
            color: #8264FF;
            text-shadow: -1px 4px 12px #fff;
            padding-left: 10px;
            font-weight: 600;
        }
        
        /* التبويبات */
        .profile-tabs {
            display: flex;
            margin: 0px 5px 2px;
            border-radius: 5px;
            overflow: hidden;
        }
        
        .tab-btn {
            flex: 1;
            text-align: center;
            padding: 10px;
            background-color: #f6f5f7;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .tab-btn.active {
          
            color: #fff;
        }
        
        /* أزرار الإجراءات */
        .profile-actions {
            display: flex;
            justify-content: space-evenly;
            margin-top: 10px;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 15px;
            min-width: 60px;
        }
        
        .action-circle {
            width: 40px;
            height: 40px;
            border-radius: 25px;
            background-color: #f6f5f7;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
            margin-bottom: 5px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .action-circle:hover {
            transform: scale(1.1);
            background-color: #e8e7e9;
        }
        
        .action-circle i {
            font-size: 25px;
            color: var(--theme-color, #8e44ad);
        }
        
        .action-text {
            color: #333;
        }
        
        /* الرسالة الشخصية */
        .profile-message-block {
            font-size: 18px;
            margin-top: 10px;
            display: flex;
            overflow: hidden;
            justify-content: center;
        }
        
        .message-bubbleWW {
            background-color: #f6f5f7;
    place-content: center space-around;
    flex-wrap: wrap;
    direction: rtl;
    width: 93%;
    min-height: 40px;
    border-radius: 10px;
    text-align: center;
    padding: 12px 15px;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
   
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
        }
        
        /* معلومات المستخدم */
        .profile-details {
            margin-top: 20px;
            display: flex;
            flex-flow: row-reverse wrap;
            justify-content: space-around;
            gap: 10px;
            flex-direction: column;
            align-content: center;
        }
        
        .detail-card {
            height: 40px;
            background-color: #f6f5f7;
            border-radius: 10px;
            width: 230px;
            display: flex;
            place-content: center space-around;
            flex-wrap: wrap;
            margin: 0px auto;
            direction: ltr;
            align-items: center;
            padding: 11px 10px;
            flex: 1;
            min-width: 150px;
        }
        
        .detail-value {
            font-size: 16px;
            direction: rtl;
            font-weight: 500;
        }
        
        .detail-label {
            font-size: 16px;
            color: var(--theme-color, #8e44ad);
            direction: rtl;
            margin-right: 10px;
        }
        
        /* متغيرات الألوان */
        :root {
            --theme-color: #8e44ad;
        }
        
        /* تنسيقات المحادثة */
        .chat-container {
            padding: 1px;
            width: 100%;
        }
        
        .chat-message1 {
            display: flex;
            align-items: flex-end;
        }
           .chat-message {
            display: flex;
            align-items: flex-end;
        }
        .avatar {
            width: 40px !important;
            height: 40px !important;
            border-radius: 50%;
            object-fit: cover;
            margin-top: 10px;
            z-index: 2;
            border: 2px solid #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            cursor: pointer;
        }
        
        .message-bubble {
            position: relative;
            background: rgb(239, 243, 247);
            padding: 8px 15px 8px 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-size: 14px;
            font-weight: bold;
            color: #9932CC;
            -webkit-mask-box-image: url("data:image/svg+xml;charset=utf-8,%3Csvg height='35' viewBox='0 0 96 70' width='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M96 35c1 7-5 37-42 35-37 2-43-28-42-35-1-7 5-37 42-35 37-2 43 28 42 35z'/%3E%3Cpath d='M0 70c6-2 12-10 12-19V35l14 27s-8 8-26 8z'/%3E%3C/svg%3E") 50% 42% 46% 56%;
            flex: 1;
        }
        
        .message-header3 {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 0px;
            white-space: pre;
            display: inline-block;
            cursor: pointer;
        }
        
        .message-content {
            word-wrap: break-word;
            padding-left: 0px;
            margin-top: 0px;
            line-height: 1.4;
        }
        
        .chat-message1.own-message .message-bubble {
            background: #dcf8c6;
        }
        
        .chat-message1.own-message .avatar {
            border-color: #4caf50;
        }
        
        @media only screen and (min-width: 768px) {
            .message-bubble {
                width: 94%;
            }
        }
        
        @media only screen and (max-width: 767px) {
            .message-bubble {
                width: 82%;
            }
        }
        
        .general-message {
            background: #fff;
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin-bottom: 8px;
            transition: all 0.2s ease;
        }
        
        .general-message:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .user-rank-icon {
            display: inline-block;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            vertical-align: middle;
        }
        
        .user-avatar-small {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            overflow: hidden;
        }
        
        .gender-icon {
            display: inline-block;
            vertical-align: middle;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        .message-time {
            color: #666;
            font-size: 11px;
            margin-right: 5px;
        }
        
        /* ===== نافذة الهدايا ===== */
        .gift-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999999999;
            display: none;
            justify-content: center;
            align-items: center;
			z-index: 9999999;
        }

        .gift-modal-overlay.show {
            display: flex;
        }

        .gift-modal-container {
            background: white;
            width: 100%;
            height: 100%;
            overflow: hidden;
            animation: slideUp 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .gift-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 5px;
            background: #f7f7f8;
            border-bottom: 1px solid #ddd;
        }

        .gift-modal-title {
                font-size: 18px;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
        }

        .gift-modal-close {
            color: #2a7de1;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .gift-categories-tabs {
            display: flex;
            margin: 15px 15px 10px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #2a7de1;
            background: #f6f5f7;
        }

        .gift-category-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            border: none;
            background: #f6f5f7;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            border-right: 1px solid #2a7de1;
            font-family: "SF Arabic" !important;
        }

        .gift-category-tab:last-child {
            border-right: none;
        }

        .gift-category-tab.active {
          
            color: white;
            font-family: "SF Arabic" !important;
        }

        .gift-items-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            padding: 15px;
            overflow-y: auto;
            height: 240px;
            justify-content: flex-start;
        }

        .gift-item {
            width: calc(33.333% - 10px);
            min-width: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }

        .gift-item.selected {
            background: rgba(42, 125, 225, 0.1);
            border-radius: 15px;
            padding: 5px;
        }

        .gift-item-image {
            width: 70px;
            height: 70px;
            border-radius: 20px;
            background: #cdd4de;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid #e3e3e3;
        }

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

        .gift-item-name {
            font-size: 12px;
            text-align: center;
            margin-top: 5px;
            color: #333;
        }

        .gift-item-price {
            display: flex;
            align-items: center;
            gap: 3px;
            font-size: 12px;
            color: #666;
            margin-top: 2px;
        }

        .gift-item-price-icon {
            width: 16px;
            height: 16px;
            background: #ffd700;
            border-radius: 50%;
        }

        .gift-selected-info {
            padding: 15px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            margin: 10px 0;
        }

        .gift-selected-name {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
        }

        .gift-selected-name span {
            
        }

        .gift-quantity-control {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .gift-quantity-label {
            font-size: 14px;
            color: #666;
        }

        .gift-quantity-buttons {
            display: flex;
            align-items: center;
            gap: 10px;
            background: white;
            border-radius: 8px;
            border: 1px solid #ddd;
            padding: 5px;
        }

        .gift-quantity-btn {
            width: 30px;
            height: 30px;
            border: none;
            background: #f0f0f0;
            border-radius: 5px;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gift-quantity-value {
            font-size: 16px;
            font-weight: bold;
            min-width: 30px;
            text-align: center;
        }

        .gift-total-price {
            font-size: 14px;
            color: #2a7de1;
            font-weight: 600;
        }

        .gift-reward-info {
            margin-bottom: 15px;
        }

        .gift-reward-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 5px;
        }

        .gift-reward-value {
            font-size: 14px;
            color: #28a745;
            background: #e8f5e8;
            padding: 8px 12px;
            border-radius: 8px;
            border-right: 3px solid #28a745;
        }

        .gift-user-balance {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: #fff3e0;
            border-radius: 8px;
            border-right: 3px solid #ff9800;
        }

        .gift-balance-label {
            font-size: 14px;
            color: #666;
        }

        .gift-balance-value {
            font-size: 16px;
            font-weight: bold;
            color: #ff9800;
        }

        .gift-action-buttons {
            display: flex;
    justify-content: space-evenly;
    padding: 15px;
    gap: 10px;
    
    /* لإظهارها في أسفل الصفحة */
    position: fixed;  /* أو absolute لو داخل عنصر معين */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* خلفية لتفصل عن المحتوى */
    z-index: 9999; /* فوق جميع العناصر */
        }

        .gift-btn {
                font-family: "SF Arabic" !important;
    font-size: 17px;
    flex: 1;
    max-width: 120px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 5px;
        }

        .gift-btn-cancel {
            background: #dadade;
            color: #333;
        }

        .gift-btn-send {
            background: #2a7de1;
            color: white;
        }

        .gift-btn-send i {
            font-size: 20px;
        }

        /* أنماط الهدية المتحركة */
        .gift-message-container {
            display: flex;
            justify-content: center;
            margin: 10px 0;
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: scale(1);
            }
            to {
                opacity: 0;
                transform: scale(0.8);
            }
        }

        .gift-message {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 15px 25px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
            max-width: 300px;
            width: 100%;
        }

        .gift-sender, .gift-receiver {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            position: relative;
            z-index: 1;
        }

        .gift-sender {
            margin-bottom: 5px;
        }

        .gift-receiver {
            margin-top: 5px;
        }

        .gift-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid white;
            object-fit: cover;
        }

        .gift-sender-name, .gift-receiver-name {
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .gift-icon {
            text-align: center;
            margin: 5px 0;
        }

        .gift-icon i {
            font-size: 30px;
            color: #ffd700;
            animation: bounce 1s ease infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .gift-details {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 10px 0;
        }

        .gift-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
        }

        .gift-name {
            color: white;
            font-size: 18px;
            font-weight: bold;
            margin-top: 5px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

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

        .gift-hearts i {
            color: #ff6b6b;
            font-size: 16px;
            animation: heartBeat 1.5s ease infinite;
        }

        .gift-hearts i:nth-child(2) {
            animation-delay: 0.3s;
        }

        .gift-hearts i:nth-child(3) {
            animation-delay: 0.6s;
        }

        @keyframes heartBeat {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        /* عرض رصيد المستخدم */
        .user-balance {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            background: #ffd700;
            color: #333;
            padding: 2px 8px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            margin-right: 5px;
        }

        .user-balance i {
            color: #333 !important;
        }

        /* أنماط نافذة الترقية */
        .upgrade-popup-push {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 999999999;
    
            display: none;
        }
        
        .upgrade-popup-push .navbar {
            background: #f7f7f8;
            border-bottom: 1px solid #ddd;
            padding: 12px;
            display: flex;
            align-items: center;
        }
        
        .upgrade-popup-push .navbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        
        .upgrade-popup-push .title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .upgrade-popup-push .right .link {
            color: #2a7de1;
            cursor: pointer;
            font-size: 16px;
        }
        
        .upgrade-popup-push .page-content {
            padding: 5px;
        }
        
        .upgrade-popup-push .item-in-upgrade-panel {
            transition: all 0.2s ease;
        }
        
        .upgrade-popup-push .item-in-upgrade-panel:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        }
        
        .upgrade-popup-push .stepper-button-minus,
        .upgrade-popup-push .stepper-button-plus {
            user-select: none;
        }
        
        .upgrade-popup-push .stepper-button-minus:hover,
        .upgrade-popup-push .stepper-button-plus:hover {
            background: #e0e0e0 !important;
        }
        
        .upgrade-popup-push .button-fill {
            border-radius: 8px;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        #upgradeDetailsSection {
            margin-top: 20px;
        }

        /* تأثير الشفافية للمستخدم المتجاهل */
        .user-item.ignored-user {
            opacity: 0.5 !important;
            filter: grayscale(0.3);
            transition: all 0.3s ease;
        }
        
        .user-item.ignored-user:hover {
            opacity: 0.7 !important;
        }
        
        /* رسالة التجاهل في الشات */
        .ignore-notice {
            background: #ffebee;
            border-radius: 10px;
            padding: 10px;
            text-align: center;
            font-size: 12px;
            color: #c62828;
            border-right: 3px solid #f44336;
            margin: 5px 0;
        }
        
        .ignored-message-hidden {
            display: none !important;
        }
		
		/* قائمة تغيير الحالة للمستخدم الخاص */
.user-status-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
	z-index: 9999999;
}

.user-status-menu-overlay.show {
    display: flex;
    opacity: 1;
}

.user-status-menu-container {
    background: white;
    width: 100%;
    max-width: 399px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: 0;
	direction: rtl;
}

.user-status-menu-overlay.show .user-status-menu-container {
    transform: translateY(0);
}

.user-status-header {
     padding: 5px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #f7f7f8;
    border-radius: 20px 20px 0 0;
}

.user-status-header h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.user-status-header .current-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #4caf50;
}

.status-options {
    padding: 0px 0;
}

.status-option {
       display: flex
;
    align-items: center;
    padding: 10px 19px;
    gap: 0px;
    cursor: pointer;
    transition: background 0.2s;

}

.status-option:hover {
    background: #f5f5f5;
}

.status-option i {
    width: 30px;
    font-size: 15px;
}

.status-option .status-info {
    flex: 1;
}

.status-option .status-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.status-option .status-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.status-option.active {
    background: #e3f2fd;
}

.status-option.active .status-name {
    color: #2a7de1;
}

.status-option .check-icon {
    color: #2a7de1;
    font-size: 18px;
    visibility: hidden;
}

.status-option.active .check-icon {
    visibility: visible;
}

.status-online i { color: #4caf50; }
.status-away i { color: #ff9800; }
.status-busy i { color: #f44336; }

.user-status-menu-divider {
    height:2px;
    background: #f5f5f5;

}

.user-status-menu-item {
display: flex
;
    align-items: center;
    padding: 9px 19px;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-status-menu-item:hover {
    background: #f5f5f5;
}

.user-status-menu-item i {
    width: 30px;
    font-size: 22px;
    color: #2a7de1;
}

.user-status-menu-item span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.user-status-menu-item .arrow {
    color: #999;
    font-size: 16px;
}

.user-status-menu-item.logout-item i {
    color: #ff4444;
}

.user-status-menu-item.logout-item span {
    color: #ff4444;
}

.user-status-menu-close {
    padding: 7px 20px;
    text-align: center;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    color: #ff4444;
    font-weight: bold;
    transition: background-color 0.2s;
}

.user-status-menu-close:hover {
    background: #f5f5f5;
}
/* تحسينات إضافية */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 8px;
}

.user-status-online {
    color: #4caf50;
}

.user-status-away {
    color: #ff9800;
}

.user-status-busy {
    color: #f44336;
}

.user-avatar-small.status-online-border {
    border: 2px solid #4caf50;
}

.user-avatar-small.status-away-border {
    border: 2px solid #ff9800;
}

.user-avatar-small.status-busy-border {
    border: 2px solid #f44336;
}
/* أنماط نافذة تغيير الصورة */
.avatar-tabs {
display: flex
;
    margin: 2px 2px;
    border-radius: 0px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #2a7de1 !important;
    border-radius: 8px;
    margin: 7px 15px 2px;
}

.avatar-tab {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    font-family: "SF Arabic";
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.avatar-tab.active {
 
    color: white;
    border-radius: 5px;
}

.avatar-preview-container {
        position: relative;
    width: 100px;
    height: 100px;
    padding: 10px;

}

.avatar-preview {
    width: 100%;
    height: 100%;
 border-radius: 12%;
    background-size: cover;
    background-position: center;
    border: 3px solid #2a7de1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.avatar-preview-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #2a7de1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.avatar-preview-icon i {
    color: white;
    font-size: 12px;
}

.avatar-grid {
display: grid
;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 13px 4px 13px;
    margin-top: 0px;
}

.avatar-grid::-webkit-scrollbar {
    width: 4px;
}

.avatar-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.avatar-grid::-webkit-scrollbar-thumb {
    background: #acacb5;
    border-radius: 10px;
}

.avatar-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option-image {
width: 65px;
    height: 65px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    background: #f5f5f5;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.avatar-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option.selected .avatar-option-image {
    border: 2px solid #2a7de1;
    box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.3);
}

.avatar-action-buttons {
    display: flex
;
    justify-content: space-evenly;
    padding: 10px;
    gap: 10px;
    border-top: 1px solid #eee;
    background: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.avatar-btn-cancel {
      flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #dadade;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    font-family: "SF Arabic";
}

.avatar-btn-cancel:hover {
    background: #e0e0e0;
}

.avatar-btn-save {
 font-family: "SF Arabic";	
	    flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2a7de1;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 15px;
}

.avatar-btn-save:hover {
    background: #1e5cb3;
}
/* تنسيق أيقونة رفع الصورة */
.avatar-preview-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #2a7de1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-preview-icon:hover {
    transform: scale(1.05);
    background: #1e5cb3;
}

.avatar-preview-icon i {
    color: white;
    font-size: 14px;
}
/* قسم الصور المخصصة (منفصل) */
.custom-avatars-section {
        margin: 0px 4px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1px;
}

.custom-avatars-header {
display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 10px 9px 0px 8px;
}

.custom-avatars-header span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.custom-avatars-header span:last-child {
    font-size: 12px;
    color: #999;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.custom-avatars-grid {
display: grid
;
    grid-template-columns: repeat(8, 1fr);
    gap: 13px;
    max-height: 150px;
    padding: 5px;
    background: 0;
    scrollbar-color: #acacb5 #cdd4de;
    overflow-y: scroll;
}

.custom-avatars-grid::-webkit-scrollbar {
    width: 4px;
}

.custom-avatars-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.custom-avatars-grid::-webkit-scrollbar-thumb {
    background: #acacb5;
    border-radius: 10px;
}

.custom-avatar-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.custom-avatar-option:hover {
    transform: scale(1.05);
}

.custom-avatar-option-image {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-avatar-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-avatar-option.selected .custom-avatar-option-image {
    border: 2px solid #2a7de1;
    box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.3);
}
/* أنماط الرد داخل الرسالة */
.u-rply {
     background: #f0f2f5;
    border-radius: 6px;
    padding: 0px 2px 6px 2px;

}

.u-rply .item3 {
    font-weight: bold;
    color: #2a7de1;
    font-size: 13px;
    margin: 0px 0px 0px 5px;
}

.u-rply .item5 {
    color: #666;
    font-size: 12px;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
	 margin: 0px 0px 0px 5px;
}
/* نافذة تعديل الملف الشخصي */
.edit-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
	 z-index: 99999999;
}

.edit-profile-overlay.show {
    display: flex;
    opacity: 1;
}

.edit-profile-container {
     background: white;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex
;
    flex-direction: column;
}

.edit-profile-header {
display: flex
;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #f7f7f8;
    border-bottom: 1px solid #ddd;
}

.edit-profile-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.edit-profile-close {
    color: #2a7de1;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
	    padding: 5px 10px;
}

.edit-profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.edit-profile-avatar {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.edit-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2a7de1;
    cursor: pointer;
    background: #f0f0f0;
}

.edit-profile-avatar .change-avatar-btn {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a7de1;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    font-family: "SF Arabic";
    white-space: nowrap;
}

.edit-profile-field {
    margin-bottom: 15px;
}

.edit-profile-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.edit-profile-field input,
.edit-profile-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: "SF Arabic";
    background: #fff;
    box-sizing: border-box;
}

.edit-profile-field input:focus,
.edit-profile-field select:focus {
    outline: none;
    border-color: #2a7de1;
}

.edit-profile-field input[readonly] {
    background: #f5f5f5;
    color: #888;
}

.edit-profile-actions {
display: flex
;
    justify-content: space-evenly;
    padding: 10px;
    gap: 10px;
    border-top: 1px solid #eee;
    background: white;
    width: 100%;
    background-color: #fff;
    z-index: 99999999;
}

.edit-profile-btn {
    font-family: "SF Arabic";
    flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2a7de1;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 15px;
}

.edit-profile-btn-cancel {
        font-family: "SF Arabic" !important;
    font-size: 17px;
    flex: 1;
    max-width: 120px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #dadade;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.edit-profile-btn-save {
    background: #2a7de1;
    color: white;
}

.edit-profile-btn-save:hover {
    background: #1e5cb3;
}

.edit-profile-btn-cancel:hover {
    background: #e0e0e0;
}
.reply-preview{

    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    right: 1px;
    bottom: 25px;
    width: 100%;
    height: 56px;
    margin-bottom: 18px;
    z-index: 999999;
    background: rgb(255 255 255);
    border-radius: 0px;

}
.reply-preview-sender{

    font-weight: bold;
    color: #0027ff;
    margin: 0px 49px;

}
.reply-preview-message{

    text-align: right;
    color: #444;
    margin: 0px 49px;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 252px;

}
.reply-preview-close{

    position: absolute;
    top: 14px;
    left: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;

}
        /* أنماط عناصر الغرف في اللوحة الجانبية */
        .room-item {
            transition: all 0.2s ease;
        }
        
        .room-item:hover {
            background: #f8f9fa !important;
            transform: translateX(-2px);
        }
        
        .room-item:active {
            transform: scale(0.98);
        }
        
        /* أيقونة القفل */
        .fa-lock {
            color: #f44336;
        }
        
        /* أيقونة الصوت */
        .music_mic {
            color: #ff9800;
        }
        
        /* أيقونة العضوية الحصرية */
        .fa-crown {
            color: #ffd700;
        }
        /* أنماط لوحة الغرف */
        #roomsPanel {
            position: absolute;
            top: 55px;
            right: 0;
            left: auto;
            bottom: 62px;
            background: #f8f9fa;
            z-index: 1000;
            transition: transform 0.3s ease;
            display: none;
            flex-direction: column;
            border-left: 1px solid #ddd;
            border-top: 1px solid #ddd;
            overflow: hidden;
            width: 85%;
            max-width: 350px;
            border-radius: 15px 0 0 15px;
        }
        
        #roomsPanel.open {
           
            display: flex;
        }
        #userSearch::placeholder {
    color: #0000009e;
}
        #roomsPanel .users-search {
            padding: 0px 5px;
            background: #ffffff;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            flex-direction: row-reverse;
            gap: 7px;
            border-bottom: 1px solid #e9ecef;
        }
        
        #roomsPanel .users-search input {
            width: 100%;
            padding: 10px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            background: #f8f9fa;
        }
        
        #roomsPanel .users-panel-header {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 5px 15px;
            background: #ffffff;
            border-bottom: 1px solid #e9ecef;
            flex-shrink: 0;
        }
        
        #roomsPanel .online-count {
            color: #20c997;
            font-size: 14px;
            background: #e6fcf5;
            padding: 3px 10px;
            border-radius: 20px;
        }
        
        #roomsPanel .users-list {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background: #f8f9fa;
            padding: 5px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        
        .room-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .room-item:hover {
            background: #f1f3f5 !important;
            transform: translateX(-2px);
        }
        
        .room-item:active {
            transform: scale(0.98);
        }
        
        .room-icon-small {
            width: 45px;
            height: 45px;
            border-radius: 8px;
            background: linear-gradient(45deg, #ff7b00, #ff9d3c);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .room-icon-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .room-info-small {
            flex: 1;
            min-width: 0;
        }
        
        .room-name-small {
            font-weight: bold;
            font-size: 15px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .room-desc-small {
            font-size: 11px;
            color: #777;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .room-stats {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #666;
            flex-shrink: 0;
        }
        
        .room-stats i {
            font-size: 12px;
        }
        
        .fa-lock {
            color: #f44336;
            font-size: 12px;
        }
        
        .fa-crown {
            color: #ffd700;
            font-size: 12px;
        }
        
        .music-mic-icon {
            color: #ff9800;
            font-size: 14px;
        }        /* أنماط لوحة الغرف */
        #roomsPanel {
            position: absolute;
            top: 55px;
            right: 0;
            left: auto;
            bottom: 62px;
            background: #f8f9fa;
            z-index: 1000;
            transition: transform 0.3s ease;
            display: none;
            flex-direction: column;
            border-left: 1px solid #ddd;
            border-top: 1px solid #ddd;
            overflow: hidden;
            width: 85%;
            max-width: 350px;
            border-radius: 15px 0 0 15px;
         
        }
        
        #roomsPanel .room-item:hover {
            background: #f1f3f5 !important;
            transform: translateX(-2px);
        }
        
        #roomsPanel .room-item:active {
            transform: scale(0.98);
        } 
		/* أنماط تبويبات الغرف */
        .rooms-tab {
            transition: all 0.2s ease;
        }
        
        .rooms-tab.active {
            color: #2a7de1 !important;
            border-bottom: 2px solid #2a7de1 !important;
        }
        
        .rooms-tab:hover {
            background: #f5f5f5;
        }/* أنماط كرت الترقية */
@media (max-width: 400px) {
    .vip-card-message {
        width: 90% !important;
    }
}

/* تأثير ظهور الكرت */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vip-card-message {
    animation: slideInUp 0.5s ease-out;
}

/* نافذة الـ Smileys */
.smileys-modal-overlay {
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20002;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smileys-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.smileys-modal-container {
   background: white;
    width: 99%;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    animation: slideUp 0.3s ease;
    display: flex
;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 95px;
	z-index: 28;
}

.smileys-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background: #f7f7f8;
    border-bottom: 1px solid #ddd;
}

.smileys-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.smileys-modal-close {
    color: #2a7de1;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.smileys-modal-close:hover {
    background: #e0e0e0;
}

.smileys-grid {

    padding: 5px;
    overflow-y: auto;
    max-height: 300px;
    background: #fff;
}

.smileys-grid::-webkit-scrollbar {
    width: 4px;
}

.smileys-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.smileys-grid::-webkit-scrollbar-thumb {
    background: #acacb5;
    border-radius: 10px;
}

.smiley-item {
       display: flex
;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.smiley-item:hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

.smiley-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.smiley-shortcut {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

@media (max-width: 500px) {
    .smileys-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    .smiley-item img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 400px) {
    .smileys-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* نافذة اختيار الألوان */
.color-picker-overlay {
  
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20003;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-picker-overlay.show {
    display: flex;
    opacity: 1;
}

.color-picker-container {
background: white;
    width: 99%;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 95px;
    z-index: 999999;
}

.color-picker-header {
     display: flex
;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background: #f7f7f8;
    border-bottom: 1px solid #ddd;
}

.color-picker-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.color-picker-close {
    color: #2a7de1;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.color-picker-close:hover {
    background: #e0e0e0;
}

.colors-grid {
display: grid
;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    padding: 4px;
    background: #fff;
    padding: 5px;
    overflow-y: auto;
    max-height: 200px;
    background: #fff;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.color-option.selected {
    border: 3px solid #333;
    transform: scale(1.05);
}

.color-preview {
      display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.color-preview-label {
    font-size: 14px;
    color: #666;
}

.color-preview-box {
  width: 60px;
    height: 30px;
    border-radius: 12px;
    border: 2px solid #ddd;
    transition: background 0.1s ease;
}

.color-action-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 10px;
}

.color-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn-cancel {
    background: #dadade;
    color: #333;
}

.color-btn-save {
    background: #2a7de1;
    color: white;
}

.color-btn-save:hover {
    background: #1e5cb3;
}

.color-btn-cancel:hover {
    background: #c0c0c6;
}


.voice-player {
     display: flex
;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 8px;
    width: 240px;
    max-width: 100%;
    position: relative;
}

.own-message .voice-player {
  
}

.play-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #25D366;
    color: white;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.waveform {
    flex: 1;
    height: 6px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.waveform .progress {
    height: 100%;
    width: 0%;
    background: #25D366;
    transition: width 0.1s linear;
}

.time {
    font-size: 11px;
    color: #555;
    min-width: 35px;
    text-align: center;
}
div#animatedContainer {
    justify-content: center;
    display: flex
;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
div#animatedSVG {
    display: flex
;
    justify-content: center;
    align-items: center;
    margin: 42px 0px 0px 1px;
}
/* تحسين مظهر القوالب */
span.icon.Vivid.Purple {
    background: #c700dd;
}
.menu-section {
background: #fff;
        border-radius: 7px;
        padding: 0px;
        list-style: none;
        overflow: hidden;
        margin-top: 20px;
        margin-right: 15px;
        margin-bottom: 0px;
        margin-left: 15px;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #f8f8f8;
}

.menu-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  margin-left: 10px;
  font-size: 16px;
}

.menu-item .title {
        flex: 1;
        font-size: 17px;
        color: #222;
        margin: 0px 10px;
}

.menu-item .arrow {
  font-size: 26px;
  color: #aaa;
}

/* ألوان الأيقونات */


.icon.purple { background: #c700dd; }
.icon.green { background: #08aa00; }
.icon.red { background: #ff2125; }
.icon.orange { background: #e84a00; }
.icon.gray { background: #777; }

/* الفوتر */
.footer {
  text-align: center;
  color: #505050;
  font-size: 14px;
  margin: 20px 0;
}

.footer img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  margin: 10px 0;
}
div#seting_muiesMOb {
    display: block;
    top: 13px;
    position: relative;
    margin: 0px 0px 20px 0px;
}
.u-pic_ll {
    max-width: 100%;
    background-color: rgb(255, 255, 255);
    border-width: 0.5px;
    border-style: solid;
    border-color: rgb(255, 255, 255);
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 4px;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    background-repeat: no-repeat;
}

/* تنسيق قسم الهدايا في الملف الشخصي */
#profileGiftsContent {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    scrollbar-width: thin;
}

/* تخصيص شريط التمرير */
#profileGiftsContent::-webkit-scrollbar {
    width: 5px;
}

#profileGiftsContent::-webkit-scrollbar-track {
    background: #e5e5ea;
    border-radius: 10px;
}

#profileGiftsContent::-webkit-scrollbar-thumb {
    background: #2a7de1;
    border-radius: 10px;
}

#profileGiftsContent::-webkit-scrollbar-thumb:hover {
    background: #1a6ad1;
}

#searchInput{
    font-weight: bold;
    display: block;
    text-indent: 14px;
    height: 30px;
    bottom: 0px;
    position: relative;
    left: 4px;
    font-size: 16px;
    min-height: 20px;
    overflow: hidden;
    resize: none;
    font-family: 'SF Arabic' !important;
    width: 41%;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid #ffffff;
    background: #ffffff;
    outline: none;
}
/* تنسيق عناصر البث المباشر */
.live-broadcast-container {
    position: relative;
    z-index: 100;
}

.containersacscs {
    width: 70px;
    height: 50px;
    position: relative;
    display: flex
;
    justify-content: center;
    align-items: center;
}

/* Ø§Ù„Ø¯Ø§Ø¦Ø±Ø© Ø§Ù„Ø®Ù„ÙÙŠØ© */
.red-circle {
  width: 37px;
  height: 37px;

  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ø§Ù„ÙƒØ§Ù…ÙŠØ±Ø§ */
.video-icon {
  width: 37px;
  height: 37px;
  position: absolute;
  transform-origin: center center;
  animation: camPulseSplit 6s ease-in-out infinite;
  opacity: 1;
}

/* Ù…Ø±Ø¨Ø¹ Ø§Ù„Ø¥ÙŠÙ‚Ø§Ù */
.stop-icon {
  width: 100px;
  height: 100px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: stopAppearSplit 6s ease-in-out infinite;
  opacity: 0;
}

.stop-icon::before {
  content: "";
  width: 40px;
  height: 40px;
  
  border-radius: 10%;
}

/* Ø§Ù„ÙƒØ§Ù…ÙŠØ±Ø§: 3 Ù†Ø¨Ø¶Ø§Øª Ø£Ø®Ù + Ù†ØµÙ Ù„ÙØ© + ØªÙ„Ø§Ø´ÙŠ ØªØ¯Ø±ÙŠØ¬ÙŠ */
@keyframes camPulseSplit {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  8% { transform: scale(1.05) rotate(0deg); }
  16% { transform: scale(1) rotate(0deg); }

  24% { transform: scale(1.05) rotate(0deg); }
  32% { transform: scale(1) rotate(0deg); }

  40% { transform: scale(1.05) rotate(0deg); }
  48% { transform: scale(1) rotate(0deg); }

  /* Ù†ØµÙ Ù„ÙØ© Ø´Ù…Ø§Ù„ ÙˆØªÙ„Ø§Ø´ÙŠ ØªØ¯Ø±ÙŠØ¬ÙŠ */
  60% { transform: scale(1) rotate(-90deg); opacity: 0.6; }
  70% { transform: scale(0.95) rotate(-135deg); opacity: 0.3; }
  80% { transform: scale(0.9) rotate(-180deg); opacity: 0; }

  100% { transform: scale(0.9) rotate(-180deg); opacity: 0; }
}

/* Ù…Ø±Ø¨Ø¹ Ø§Ù„Ø¥ÙŠÙ‚Ø§Ù: ÙŠØ¸Ù‡Ø± ØªØ¯Ø±ÙŠØ¬ÙŠØ§Ù‹ Ù…Ù† Ù†ÙØ³ Ù…ÙƒØ§Ù† Ø§Ù„ÙƒØ§Ù…ÙŠØ±Ø§ */
@keyframes stopAppearSplit {
  0%, 60% { opacity: 0; transform: scale(0.8) rotate(-180deg); }
  65% { opacity: 0.3; transform: scale(0.85) rotate(-180deg); }
  75% { opacity: 0.7; transform: scale(0.95) rotate(-180deg); }
  85%, 90% { opacity: 1; transform: scale(1) rotate(-180deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(-180deg); }
}

/* ÙÙ‚Ø§Ø¹Ø§Øª Ø§Ù„Ù…Ø´Ø§Ø¹Ø± */
.bubble {
  position: absolute;
  opacity: 0;
  animation: floatUp 2.8s ease-out infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translateY(-60px) scale(1); opacity: 1; }
  100% { transform: translateY(-90px) scale(1.2); opacity: 0; }
}

.b1 { left: 25px; animation-delay: 0s; }
.b2 { right: 20px; animation-delay: .6s; }
.b3 { left: 15px; animation-delay: 1.2s; }
.b4 { right: 10px; animation-delay: 1.8s; }

.icon-heart { width: 10px; fill: #b077ff; }
.icon-circle { width: 10px; height: 10px; background: #ff9ce8; border-radius: 50%; }
.icon-emotion { width: 10px; fill: #ffdd57; }


.container3333 {
        width: 35px;
        height: 35px;
        position: relative;
        display: flex
;
        justify-content: center;
        align-items: center;
        margin: 12px 3px 2px 3px;
}

/* الدائرة الخلفية */
.red-circle3333  {
  width: 50px;
  height: 35px;

  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* المايك: لا نبض ولا تلاشي */
.video-icon3333  {
  width: 50px !important;
  height: 50px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  /* تحويل اللون الأسود إلى أبيض */
  filter: brightness(0) invert(1);
}

/* مربع الإيقاف */
.stop-icon3333  {
  width: 100px;
  height: 100px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.stop-icon3333 ::before {
  content: "";
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 10%;
}

/* فقاعات المشاعر */
.bubble3333  {
  position: absolute;
  opacity: 0;
  animation: floatUp 2.8s ease-out infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translateY(-60px) scale(1); opacity: 1; }
  100% { transform: translateY(-90px) scale(1.2); opacity: 0; }
}

.b1 { left: 35px; animation-delay: 0s; }
.b2 { right: 30px; animation-delay: .6s; }
.b3 { left: 60px; animation-delay: 1.2s; }
.b4 { right: 55px; animation-delay: 1.8s; }

.icon-heart3333  { width: 10px; fill: #b077ff; }
.icon-circle3333  { width: 10px; height: 18px; background: #ff9ce8; border-radius: 50%; }
.icon-emotion3333  { width: 10px; fill: #ffdd57; }
.dotlottie-playerq{
	position: absolute;
    width: 150% !important;;
    height: auto;
}



#verificationModal{
display: block;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex
;
    align-items: flex-end;
    border-radius: 0px;
}
.modal-content {
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    background-color: #fff;
    width: 100%;

    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.modal-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex
;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #2b2b2b;
}
.modal-subtitle {
    font-size: 20px;
    font-weight: bold;
    color: #2b2b2b;
    display: flex
;
    align-items: center;
    justify-content: center;
}
.feature {
    display: flex
;
    align-items: flex-start;
    margin-top: 10px;
}
.feature-title {
    font-weight: bold;
    color: #2b2b2b;
	font-size: 14px;
}
.feature-desc {
    font-size: 14px;
    color: #2b2b2b;
 
}
.modal-footer {
    text-align: center;
    margin: 15px;
}

.info-text {
    text-align: center;
}.modal-body {
    text-align: left;

}





        #SCHVCD_my {
                  display: grid
;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
        padding: 5px;
        justify-items: stretch;
        background: 0;
        scrollbar-color: #acacb5 #cdd4de;
        scrollbar-width: none;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 90%;
        }
        .gift-card {
        
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            transition: all 0.4s ease;
            text-align: center;
        }
        .gift-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }
        .gift-date {
                   font-size: 15px;
        color: #acacb5;
        margin-bottom: 12px;
        font-weight: bold;
        }
        .gift-content {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
        }
        .gift-text {
            margin-left: 15px;
            text-align: right;
        }
        .gift-from {
            font-size: 14px;
            color: #fff;
        }
        .gift-sender {
            font-size: 17px;
            font-weight: bold;
            color: #acacb5;
        }
        .gift-img {
           width: 65px;
        height: 65px;
        object-fit: contain;
        border-radius: 18px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        .gift-name {
           font-size: 13px;
        font-weight: bold;
        color: #fff;
        margin: 12px 0
        }
        .gift-amount {
            font-size: 13px;
        color: #f3f6fb;
        }
        .gift-amount span {
            font-weight: bold;
            color: #e91e63;
            font-size: 18px;
        }
.no-gifts{
display: flex
;
        align-items: stretch;
        justify-content: space-between;
        height: 38vh;
        font-size: 18px;
        color: #888;
        text-align: center;
        width: 55vh;
        flex-direction: column-reverse;
}
.div_SCHVCD{
display: flex;padding: 0px;width: 97%;border-radius: 5px;background-color: rgb(247, 247, 255);margin: 8px 4px 4px 4px;height: 92%;position: absolute;bottom: 2px;art;scrollbar-color: #acacb5 #cdd4de;scrollbar-width: none;overflow-y: scroll;
}
.selected-plan {
    width: 114px;
    background: #f7f7ff;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    font-size: 14px;
    border: 1px dashed #ccc;
    height: 88px;
}
.plan-card {
  background: #fff;
  border-radius: 10px;
  width: 80px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.popup-header h2 {
    font-size: 22px;
    margin: 0;
    color: #333;
    position: relative;
    left: 129px;
}
.buycredit-popup {
        box-sizing: border-box;
        padding: 0px 8px;
        position: fixed;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 4px;
        background: #efeff4;
        z-index: 9999999;
        direction: rtl;
        font-family: 'SF Arabic' !important;
        height: 100%;
        width: 100%;
        top: 0px !important;
		left: 0px !important;
    }
	.plans-container {
        display: flex
;
        gap: 6px 21px;
        justify-content: center;
        scrollbar-color: #acacb5 #cdd4de;
        scrollbar-width: none;
        overflow-y: scroll;
        flex-wrap: nowrap;
        align-items: center;
    }
    .plan img {
      width: 80%;
      height: auto;
      border-radius: 5px;

    }.popup-header {
display: flex
;
    justify-content: space-between;
    flex-direction: row-reverse;
    border-bottom: 1px solid #000000;
    padding: 5px 4px;
}




.section-title {
  font-weight: bold;
  font-size: 18px;
  margin-top: 0px;
}

.terms {
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}
.choose-text {
  color: #ef7b01;
  font-weight: bold;
  font-size: 16px;
  margin: 15px 0 10px;
}



.plan-card:hover {
  transform: scale(1.05);
}

.popup-body .intro {
display: flex
;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.popup-body .intro img {
  width: 50px;
  height: 50px;
  border-radius: 60px
  }

.popup-body .intro p {
  background-color: #f7f7ff;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  flex: 1;
}



.plan-card .price {
  font-weight: bold;
  color: #333;
}
	.plan-card img {
        width: 50px;
        height: 50px;
        margin: px 0;
    }
	
.order-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.order-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: 'SF Arabic';
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-family: 'SF Arabic';
}

.btn-cancel {
    background: #ddd;
    color: #333;
}

.btn-confirm {
    background: #ef7b01;
    color: #fff;
}

.order-content {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.order-inputs {
    flex: 1;
}



.radio-box {
width: 52px;
    margin: 0px 3px 0px 0px;
    border-radius: 25px;
    text-align: center;
    float: left;
    height: 32px;
    margin-top: -2px;
    outline: none !important;
    padding: 4px 7px;
    background: linear-gradient(45deg, #d7b8b8, #c9a9d6, #b9c7f0);
    color: white;
    display: flex
;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    user-select: none;
}
.radio_m{
	border: none;
    display: block;
    position: absolute;
    width: 67px;
    left: -23px;
}

	.spanxx {
	margin: 0px 0px 0px 3px;
display: none;
}
/* 2ï¸ڈâƒ£ ظ‡ظˆط§طھظپ ط£ظƒط¨ط± ط£ظˆ طھط³ط§ظˆظٹ 379 أ— 667 */
@media (min-width: 370px) and (min-height: 667px) {
.spanxx {
	margin: 0px 0px 0px 3px;
        display: block !important;

}
	.radio_m{
		border: none;display: block;position: absolute;width: 67px;left: 45px;
	}
    .radio-box {
width: 112px;
        margin: 0px 3px 0px 0px;
        border-radius: 25px;
        text-align: center;
        float: left;
        height: 32px;
        margin-top: 0px;
        outline: none !important;
        padding: 4px 7px;
        background: linear-gradient(45deg, #d7b8b8, #c9a9d6, #b9c7f0);
        color: white;
        display: flex
;
        align-items: center;
        gap: 0px;
        cursor: pointer;
        user-select: none;
    }
}
