         .footer{
            width: 100%;
            padding: 5px 0px 0px;
            background-color: #01048c;
            color: white;
            max-height: 700px;
            
         }

         .footer p{
            text-align: right;
            padding: 0px 5px 5px;
         }

         .footer a{
            color: white;
            margin: 5px;
            background-color: #ffffff41;
            display: inline-block;
            padding: 6px;
            border-radius: 7px;
            text-decoration: none;

         }
         /* الحاوية الرئيسية */
        .upgrade-card {
               direction: rtl;
            text-align: right;
            background: #ffffff;
            border-radius: 16px;
            padding: 6px;
            text-align: center;
            width: 90%;
            margin: 20px auto auto;
            box-shadow: 0 8px 30px rgba(0, 100, 200, 0.12);
            position: relative;
            border: 1px solid #e0e7ef;
        }
        
        .buts{
           text-align: center;
            margin: 30px;
        }
        .buts a{
            width: 100%;
            text-decoration: none;
            color: #000000;
            background-color: rgba(8, 115, 255, 0.103);
            border-radius: 7px;
            padding: 10px;
            margin-top: 40px;
            font-weight: bold;

        }

        /* شارة العرض المحدود */
        .limited-offer-badge {
            position: absolute;
            top: -14px;
            right: 50%;
            transform: translateX(50%);
            background: linear-gradient(135deg, #ffd700, #ffb300);
            color: #1a237e;
            padding: 6px 20px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            white-space: nowrap;
            box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 10;
        }

        .limited-offer-badge-icon {
            width: 14px;
            height: 14px;
        }

        /* قسم الملف الشخصي - أقصى اليمين */
        .user-profile-section {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            margin-bottom: 20px;
            margin-top: 5px;
            text-align: right;
        }

        /* الصورة الدائرية */
        .user-avatar-circle {
            width: 55px;
            height: 55px;
            overflow: hidden;
            border-radius: 50%;
            background: linear-gradient(135deg, #1a73e8, #0d47a1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 22px;
            font-weight: bold;
            border: 3px solid #e8f0fe;
            flex-shrink: 0;
        }

        .user-avatar-circle  img{
              width: 55px;
            height: 55px;
            object-fit: cover;
        }

        /* معلومات المستخدم */
        .user-info-wrapper {
            text-align: right;
        }

        .user-greeting-text {
            font-size: 13px;
            color: #888888;
        }

        .user-full-name {
            display: inline;
            font-size: 18px;
            font-weight: bold;
            color: #1a237e;
        }

        /* قائمة المشاكل */
        .problems-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 18px;
        }

        .problem-card-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff5f5;
            padding: 10px 14px;
            border-radius: 10px;
            border-right: 3px solid #e53935;
            text-align: right;
        }

        .problem-warning-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            color: #e53935;
        }

        .problem-description-text {
            font-size: 14px;
            color: #333333;
            font-weight: 500;
        }

        /* صندوق الخصم */
        .discount-offer-box {
            background: #f0faf0;
            border: 2px solid #4caf50;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.15);
        }

        .discount-tag-icon {
            width: 22px;
            height: 22px;
            color: #4caf50;
            flex-shrink: 0;
        }

        .discount-details-text {
            font-size: 15px;
            font-weight: bold;
            color: #2e7d32;
        }

        .discount-percentage-highlight {
            font-size: 18px;
            color: #4caf50;
            font-weight: bold;
        }

        /* زر الطلب */
        .order-now-btn {
            text-decoration: none;
            background: linear-gradient(135deg, #1a73e8, #0d47a1);
            color: #ffffff;
            border: none;
            padding: 13px 35px;
            border-radius: 25px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
           
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .order-now-btn.c{
            width: 40%;
             background: linear-gradient(135deg, #e2a600, #e87e1a);
            margin-top: 20px;
            padding: 5px;
        }

        .order-now-btn.c:hover{
            background: linear-gradient(135deg, #dfc379, #ffc894);
        }
        .order-now-btn:hover {
            background: linear-gradient(135deg, #0d47a1, #1a73e8);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
        }

        .order-now-btn-icon {
            width: 18px;
            height: 18px;
        }

   /* ===== إطار الإعلان ===== */
        .ad-container {
            width: 95%;
            margin: 10px auto auto;
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .ad-container:hover {
            transform: translateY(-5px);
        }

        /* ===== صورة الإعلان ===== */
        .ad-image-wrapper {
            position: relative;
            width: 100%;
            max-height: 720px;
            overflow: hidden;
            background: #e8e8e8;
        }

        .ad-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* شارة مميزة فوق الصورة */
        .ad-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: #ff4757;
            color: #fff;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
        }

        /* ===== محتوى الإعلان ===== */
        .ad-content {
            padding: 20px 18px 24px;
            text-align: center;
        }

        /* العنوان */
        .ad-title {
            font-size: 22px;
            font-weight: 800;
            color: #1a1a2e;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        /* الوصف */
        .ad-description {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.8;
            margin-bottom: 20px;
            padding: 0 8px;
        }

        /* ===== الزر ===== */
        .ad-button {
            display: inline-block;
            background: linear-gradient(135deg, #6c5ce7, #a29bfe);
            color: #fff;
            text-decoration: none;
            padding: 14px 40px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: all 0.3s ease;
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
            border: none;
            cursor: pointer;
            width: 100%;
            max-width: 280px;
        }

        .ad-button:hover {
            background: linear-gradient(135deg, #5a4bd1, #8c7df0);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.55);
            transform: scale(1.02);
        }

        .ad-button:active {
            transform: scale(0.97);
        }













               /* ========== الحاوية الرئيسية ========== */
        .errygryrytyryt {
               direction: rtl;
            text-align: right;
            width: 100%;
            height: 100vh;
            max-width: 900px;
            background: #ffffff;
            display: flex;
            z-index: 100;
             position: fixed;
            top: 0;
            left: 0;
            flex-direction: column;
            
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        }

        /* ========== رأس الصفحة الثابت ========== */
        .header-fixed {
            background: #ffffff;
            padding: 18px 24px;
            border-bottom: 1px solid #eef2f6;
            z-index: 10;
            flex-shrink: 0;
            display: flex;

            align-items: center;
            justify-content: space-between;
        }

        .header-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1a1f36;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-title i {
            color: #4f46e5;
            font-size: 1.6rem;
        }

        .comment-count-badge {
            background: #4f46e5;
            color: #ffffff;
            
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        /* ========== منطقة التعليقات القابلة للتمرير ========== */
        .comments-scroll-area {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            background: #ffffff;
            scroll-behavior: smooth;
        }

        .comments-scroll-area::-webkit-scrollbar {
            width: 8px;
        }

        .comments-scroll-area::-webkit-scrollbar-track {
            background: #f8fafc;
            border-radius: 10px;
        }

        .comments-scroll-area::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 10px;
        }

        .comments-scroll-area::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

        /* ========== هيكل سلسلة التعليقات ========== */
        .comment-thread-container {
            position: relative;
            margin-bottom: 24px;
        }

        /* الخط العمودي للردود */
        .comment-thread-container::before {
            content: "";
            position: absolute;
            top: 56px;
            bottom: 8px;
            right: 24px;
            width: 2px;
            background: #e5e7eb;
            border-radius: 2px;
        }

        .comment-card {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
            position: relative;
        }
        .xxc {
            background-color: #01048c;
            color: white;
            padding: 10px;
            border-radius: 7px;
        }

        /* الصورة الدائرية */
        .user-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.3rem;
            color: #ffffff;
            position: relative;
            z-index: 2;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            letter-spacing: 0.5px;
        }

        /* محتوى التعليق */
        .comment-content-wrapper {
            flex: 1;
            background: #f9fafb;
            padding: 16px 20px;
            border-radius: 16px;
            position: relative;
            transition: all 0.3s ease;
            border: 1px solid #f1f5f9;
        }

        .comment-content-wrapper:hover {
            background: #f3f4f6;
            border-color: #e5e7eb;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        /* معلومات المستخدم */
        .user-meta {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
        }

        .user-name-display {
            font-weight: 700;
            color: #111827;
            font-size: 0.95rem;
            letter-spacing: 0.2px;
        }

        .user-username-display {
            color: #9ca3af;
            font-size: 0.8rem;
            font-weight: 500;
            margin-top: 2px;
        }

        /* نص التعليق */
        .comment-message {
            color: #374151;
            font-size: 0.92rem;
            line-height: 1.7;
            word-break: break-word;
            margin-bottom: 8px;
        }

        /* توقيت التعليق – أسفل اليسار */
        .comment-timestamp {
            color: #9ca3af;
            font-size: 0.75rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
        }

        .comment-timestamp i {
            font-size: 0.7rem;
        }

        /* زر الرد - فقط للتعليقات الرئيسية */
        .reply-btn-main {
            position: absolute;
            bottom: 12px;
            left: 16px;
            background: none;
            border: none;
            color: #6b7280;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            padding: 4px 8px;
            border-radius: 8px;
        }

        #color_b{
            color: #002fff;
        }
        .reply-btn-ma{
            
            background-color: red;
            color: white;
            padding: 6px;
            border-radius: 6px;
            margin: 5px;
        }

        .reply-btn-main:hover {
            color: #4f46e5;
            background: #eef2ff;
        }

        .reply-btn-main i {
            font-size: 0.8rem;
        }

        /* ========== منطقة الردود ========== */
        .replies-container {
            
            margin-right: 52px;
            padding-right: 24px;
            position: relative;
        }

        .replies-container::before {
            content: "";
            position: absolute;
            top: -6px;
            right: -2px;
            width: 24px;
            height: 2px;
            background: #e5e7eb;
            border-radius: 2px;
        }

        .replies-container .comment-card {
            margin-bottom: 12px;
        }

        .replies-container .user-avatar {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .replies-container .comment-content-wrapper {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            padding: 12px 16px;
            border-radius: 14px;
        }

        .replies-container .comment-content-wrapper:hover {
            background: #fafbfc;
            border-color: #d1d5db;
        }

        .replies-container .user-name-display {
            font-size: 0.85rem;
        }

        .replies-container .user-username-display {
            font-size: 0.7rem;
        }

        .replies-container .comment-message {
            font-size: 0.85rem;
            line-height: 1.6;
        }

        .replies-container .comment-timestamp {
            font-size: 0.7rem;
        }

        /* ========== منطقة الإدخال الثابتة أسفل ========== */
        .input-area-fixed {
            position: sticky;
            bottom: 0;
            background: #ffffff;
            padding: 16px 24px;
            border-top: 1px solid #eef2f6;
            z-index: 10;
            flex-shrink: 0;
            display: flex;
            gap: 12px;
            align-items: flex-end;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
        }

        .input-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #4f46e5;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .comment-input-field {
            flex: 1;
            min-height: 44px;
            max-height: 500px;
            padding: 12px 18px;
            border: 1px solid #e5e7eb;
            border-radius: 24px;
            font-size: 0.9rem;
            font-family: inherit;
            resize: vertical;
            outline: none;
            transition: all 0.3s ease;
            background: #f9fafb;
            line-height: 1.5;
        }

        .comment-input-field:focus {
            border-color: #4f46e5;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .send-btn {
            background: #4f46e5;
            color: #ffffff;
            border: none;
            border-radius: 24px;
            padding: 12px 20px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .send-btn:hover {
            background: #4338ca;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .send-btn i {
            font-size: 0.9rem;
        }

        /* ========== تأثيرات إضافية ========== */
        @media (max-width: 640px) {
            .errygryrytyryt {
                max-width: 100%;
            }
            
            .comments-scroll-area {
                padding: 16px;
            }
            
            .replies-container {
                margin-right: 32px;
                padding-right: 16px;
            }
            
            .user-avatar img {
                border-radius: 50%;
                width: 42px;
                object-fit: cover;
                height: 42px;
                font-size: 1.1rem;
            }
            
            .replies-container .user-avatar {
                width: 34px;
                height: 34px;
                font-size: 0.85rem;
            }
            
            .input-area-fixed {
                padding: 12px 16px;
            }
            
            .header-fixed {
                padding: 14px 16px;
            }
        }

       .container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            max-width: 600px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
            font-size: 28px;
            font-weight: 700;
        }

        h1 span {
            color: #667eea;
        }

        /* ===== عناصر النسخ ===== */
        .copy-item {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 15px 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .copy-item:hover {
            border-color: #667eea;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }

        .copy-text {
            font-size: 16px;
            color: #495057;
            font-weight: 500;
            word-break: break-all;
            flex: 1;
            margin-left: 15px;
            display: none;
            cursor: pointer;
        }

        /* ===== زر النسخ ===== */
        .copy-btn {
            background: linear-gradient(135deg, #002fff 0%, #7500e9 100%);
             transition: all 0.3s ease;
            color: white;
            padding: 10px;
            border-radius: 8px;
            border: none;
            margin: 10px;
        }
        .copy-btn.x{
         background: linear-gradient(135deg, #002fff00 0%, #7500e900 100%);
             transition: all 0.3s ease;
              padding: 6px;
        }
        .copy-btn.x:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(236, 240, 255, 0);
        }


        .copy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .copy-btn:active {
            transform: translateY(0);
        }

        .copy-btn.copied {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        }

        /* ===== النافذة المنبثقة ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            position: relative;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-close {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #f8f9fa;
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: #e9ecef;
            transform: rotate(90deg);
        }

        /* ===== محتوى النافذة ===== */
        .success-icon {
            text-align: center;
            margin-bottom: 20px;
        }

        .success-icon i {
            font-size: 60px;
            color: #28a745;
            animation: bounceIn 0.5s ease;
        }

        @keyframes bounceIn {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .modal-title {
            text-align: center;
            color: #333;
            font-size: 24px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .reward-message {
            text-align: center;
            background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
            color: #333;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-weight: 700;
            font-size: 18px;
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        }

        .copied-text-preview {
            background: #f8f9fa;
            border: 2px dashed #667eea;
            border-radius: 10px;
            padding: 15px;
            margin: 20px 0;
            max-height: 100px;
            overflow-y: auto;
            font-size: 14px;
            color: #495057;
            line-height: 1.6;
        }

        .share-section {
            margin-top: 25px;
        }

        .share-title {
            text-align: center;
            color: #495057;
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }

        .share-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .share-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .share-btn i {
            font-size: 24px;
            color: white;
        }

        .share-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .share-btn:active {
            transform: translateY(0) scale(1);
        }

        .share-facebook {
            background: #1877f2;
        }

        .share-twitter {
            background: #1da1f2;
        }

        .share-whatsapp {
            background: #25d366;
        }

        .share-telegram {
            background: #0088cc;
        }

        .share-linkedin {
            background: #0077b5;
        }

        /* ===== إشعار النسخ ===== */
        .toast {
            
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: white;
            color: #333;
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: none;
            align-items: center;
            gap: 10px;
            z-index: 999;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            font-weight: 600;
            font-size: 16px;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            display: block;
        }

        /* ===== تحسينات للجوال ===== */
        @media (max-width: 480px) {
            .container {
                padding: 20px;
                margin: 10px;
            }
            
            h1 {
                font-size: 22px;
            }
            
            .copy-item {
                padding: 12px 15px;
                flex-direction: column;
                gap: 10px;
            }
            
            .copy-text {
                margin-left: 0;
                text-align: center;
                width: 100%;
                display: none;
            }

            
            .modal-content {
                padding: 20px;
                margin: 10px;
            }
            
            .share-btn {
                
                width: 45px;
                height: 45px;
            }
        }
        /* كلاسات خاصة بالرسالة فقط */
        .message-overlay {
           
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            padding: 1rem;
            box-sizing: border-box;
        }

        .message-box {
            background: #ffffff;
            border-radius: 24px;
            width: 95%;
            max-width: 480px;
            max-height: 70vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.20);
            animation: messageFadeIn 0.3s ease-out;
            direction: rtl;
            overflow: hidden;
        }

        @keyframes messageFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* ---- الرأس (ثابت) ---- */
        .message-header {
            padding: 1.8rem 2rem 0.2rem 2rem;
            flex-shrink: 0;
            background: #ffffff;
            border-top-left-radius: 24px;
            border-top-right-radius: 24px;
        }

        .message-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
            letter-spacing: -0.3px;
        }

        /* ---- المحتوى (قابل للتمرير) مع خلفية رمادية فاتحة جداً ---- */
        .message-content {
            padding: 0.8rem 2rem 1rem 2rem;
            overflow-y: auto;
            flex: 1 1 auto;
            scroll-behavior: smooth;
            position: relative;

            /* لون خلفية ملفت: رمادي فاتح جداً مع لمسة زرقاء */
            background-color: #f2f6fc;   /* يمكن تغييره إلى #f8faff أو #f0f4ff */
            margin: 0.2rem 0.5rem;       /* هامش صغير ليعطي حدوداً بيضاء */
            border-radius: 16px;          /* زوايا ناعمة متناسقة */
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
        }

        /* تخصيص شريط التمرير */
        .message-content::-webkit-scrollbar {
            width: 5px;
        }
        .message-content::-webkit-scrollbar-track {
            background: #e6edf5;
            border-radius: 10px;
        }
        .message-content::-webkit-scrollbar-thumb {
            background: #c0d0e0;
            border-radius: 10px;
        }
        .message-content::-webkit-scrollbar-thumb:hover {
            background: #a0b8d0;
        }

        /* إشارة التمرير (تدرج شفاف) */
        .message-content::after {
            content: '';
            position: sticky;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            display: block;
            pointer-events: none;
            background: linear-gradient(to top, #f2f6fc, transparent);
            margin-top: -40px;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .message-content.has-scroll::after {
            opacity: 1;
        }

        /* مؤشر نصي للتمرير */
        .scroll-indicator {
            display: none;
            text-align: center;
            font-size: 0.8rem;
            color: #6b8aad;
            margin-top: 0.2rem;
            padding-bottom: 0.2rem;
        }
        .message-content.has-scroll .scroll-indicator {
            display: block;
        }

        .message-text {
            font-size: 1rem;
            color: #1e293b;
            margin: 0.5rem 0 0.2rem 0;
            line-height: 1.7;
            word-break: break-word;
        }

        .message-textinput{
            border: none;
            background-color: white;
            width: 90%;
            margin: 5px 0 auto;
            height: 200px;
            padding: 10px;
        }

        .message-texbutton{
            padding: 10px;
            background-color: #1d4ed8;
            border: none;
            display: block;
             margin: 10px 0 auto;
             border-radius: 7px;
            width: 80%;
            cursor: pointer;
            color: white;
        }

        .message-note {
            font-size: 0.85rem;
            color: #475569;
            margin: 0.8rem 0 0.2rem 0;
            padding-top: 0.7rem;
            border-top: 1px solid #dce5ef;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        /* ---- الأزرار (ثابتة، عمودية) ---- */
        .message-actions {
            padding: 0.8rem 2rem 1.8rem 2rem;
            background: #ffffff;
            border-top: 1px solid #f0f2f5;
            display: flex;
            flex-direction: column;
            gap: 0.7rem;
            flex-shrink: 0;
            border-bottom-left-radius: 24px;
            border-bottom-right-radius: 24px;
        }

         .message-actions a{
            text-decoration: none;
         }
        .btn-cancel,
        .btn-confirm {
            border: none;
            padding: 0.8rem 1.2rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            width: 100%;
            text-align: center;
            letter-spacing: 0.3px;
            box-sizing: border-box;
        }

        .btn-cancel {
            background: #f1f5f9;
            color: #334155;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }
        .btn-cancel:hover {
            background: #e2e8f0;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }
        .btn-cancel:active {
            transform: translateY(0);
        }

        .btn-confirm {
            background: linear-gradient(145deg, #3b82f6, #2563eb);
            color: #ffffff;
            box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
        }
        .btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
            background: linear-gradient(145deg, #4b8bf7, #1d4ed8);
        }
        .btn-confirm:active {
            transform: translateY(0);
        }

        /* بديل أخضر */
        .btn-confirm-alt {
            background: linear-gradient(145deg, #22c55e, #16a34a);
            box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
        }
        .btn-confirm-alt:hover {
            background: linear-gradient(145deg, #2dd068, #15803d);
            box-shadow: 0 12px 28px rgba(34, 197, 94, 0.45);
        }

        /* تحسين للموبايل */
        @media (max-width: 480px) {
            .message-header {
                padding: 1.2rem 1.2rem 0.2rem 1.2rem;
            }
            .message-content {
                padding: 0.5rem 1.2rem 0.8rem 1.2rem;
                margin: 0.2rem 0.3rem;
            }
            .message-actions {
                padding: 0.6rem 1.2rem 1.2rem 1.2rem;
            }
            .message-title {
                font-size: 1.3rem;
            }
            .btn-cancel,
            .btn-confirm {
                padding: 0.7rem 1rem;
                font-size: 0.9rem;
            }
        }

        .bute{
            text-align: center;
        }
        .bute button{
            background-color: #1d4ed8;
            color: white;
            padding: 10px;
            border-radius: 7px;
            margin: 10px;
            font-weight: bold;
            border: none;
            font-size: 20px;
        }

        .formx{
            width: 100%;
            text-align: center;
        }
        .formx input{
            text-align: center;
            padding: 10px;
            border-style: solid;
            border-color: black;
            border-width: 1px;
            font-size: 20px;
            margin: 10px;
            border-radius: 6px;
            background-color: #ffffff;
        }

        .formx textarea{
            width: 100%;
            border-radius: 4px;
            padding: 5px;
            border: none;
            font-weight: bold;
            background-color: white;
        }
        .formx button{
            background-color: rgb(2, 2, 241);
            color: rgb(255, 255, 255);
            padding: 10px;
            font-size: 19px;
            width: 80%;
            border-radius: 6px;
            border: none;
            display: inline;
        }

        
.massg-arry .ewx{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.massg-arry .ewx p{
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    color:#0004ff;
    font-size: 12px;
}


.massg-arry{
    z-index: 5;
    top: 0;
    right: 0;
    background-color: #ffffffa8;
    position: fixed;
    width: 100%;
    height: 100%;
}
.massg-arry.z4{
    z-index: 4;
}
.massg-arry .sss{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 150px;
}
.massg-arry table{
    width: 90%;
}
.massg-arry table tr{
    text-align: right;

    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    background-color: indigo;
    color: white;
}
.massg-arry table tr td{
    padding: 10px;
}
.massg-arry table tr a{
    background-color: hsl(234, 72%, 56%);
    padding: 5px;
    display: block;
    color: white;
}
.massg-arry  .df{
    height: 350px;
    overflow-x: hidden;
}
.massg-arry.x{
    width: 100%;
    height: 100%;

}
.massg-arry a{
text-decoration: none;
}
.massg-arry #a{
    text-decoration: none;
    background-color: white;
    display: block;
}
.massg-arry .mass-top .d{
    color: rgb(255, 255, 255);
    background-color: #00811c;
    
    padding: 1px;
    border-radius: 6px;
}



.container {
    width: 3.25em; 
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}

.loader {
    fill: none;
    stroke: #106ee8;
    stroke-width: 10;
    stroke-dasharray: 2, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}


.coni {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 255, 0.5); /* لون أزرق شفاف */
    border-radius: 50%;
    animation: move 3s infinite;
}



@keyframes rotate4 {
    100% {
    transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
    stroke-dasharray: 0, 200;
    stroke-dashoffset: 0;
    }
    50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -75px;
    }
    100% {
    stroke-dashoffset: -125px;
}

}







.onmmhh {
    margin: 30px auto 0;
    height:80px;
    font-weight: bold;
    text-align: center;
    
}
.onmmhh a{
    
    background-color: rgb(223, 241, 252);
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    text-decoration: none;
    color: #000000;
}

.onmmhh #a{
    background-color: rgb(3, 52, 211);
    padding: 13px;
    display: inline-block;
    border-radius: 7px;
    text-decoration: none;
    color: #ffffff;

}

      .message-actions a {
            text-decoration: none;

         }