/* إصلاح تنسيقات التبويبات */
.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active {
    background: linear-gradient(135deg, #bd2a20, #841a00);
    color: white;
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.4em;
    transition: transform 0.3s ease;
}

.tab-button:hover .tab-icon {
    transform: scale(1.2) rotate(10deg);
}

/* إصلاح تنسيقات النموذج */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.form-icon {
    font-size: 4em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c30000, #820f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.form-header h3 {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.form-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* إصلاح شبكة النماذج */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 55px 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.1em;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-icon-input {
    position: absolute;
    right: 20px;
    top: 65%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group:focus-within .form-icon-input {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

/* إصلاح زر الإرسال */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, #9f1800, #911b00);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #bf0000, #890000);
}

.btn-icon {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* إصلاح شبكة المنتجات */
.products-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-order-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-order-card:hover::before {
    transform: scaleX(1);
}

.product-order-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.product-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-order-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info h4 {
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-specs span {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* إصلاح تحكم الكمية */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 1.4em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 80px;
    height: 45px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.qty-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* إصلاح زر الطلب السريع */
.order-now-btn {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.order-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.order-now-btn:hover::before {
    left: 100%;
}

.order-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

/* إصلاح ملخص الطلب */
.order-summary {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-header h4 {
    font-size: 1.5em;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.summary-icon {
    font-size: 1.8em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.order-list li:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.empty-order {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 30px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
}

.order-total span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.order-total span:last-child {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

/* إصلاح زر تأكيد الطلب */
.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.order-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* إصلاح النافذة المنبثقة */

.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 999999999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* إضافة scroll للمودال */
}
.order-modal.active {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 30px;
    width: 100%;
    max-width: 550px;
    max-height: none; /* إزالة max-height */
    min-height: auto; /* إضافة min-height */
    margin: auto; /* توسيط المحتوى */
    overflow: visible; /* تغيير من hidden إلى visible */
    backdrop-filter: blur(25px);
    border: 2px solid var(--border-color);
    animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 30px 40px;
    position: relative;
    z-index: 2;
    flex: 1; /* السماح للمحتوى بالتمدد */
}

.modal-footer {
    padding: 25px 40px 35px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03), 
        rgba(118, 75, 162, 0.03)
    );
    position: relative;
    z-index: 2;
    margin-top: auto; /* دفع الفوتر للأسفل */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.modal-header h3 {
    font-size: 1.6em;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* إصلاح بطاقات معلومات الاتصال */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.contact-card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-card h4 {
    font-size: 1.4em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1em;
}

/* الرسوم المتحركة */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

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

/* تحسينات الاستجابة */
@media (max-width: 1024px) {
    .products-order-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .contact-tabs {
        flex-direction: column;
        gap: 10px;
        padding: 6px;
    }
    
    .tab-button {
        justify-content: center;
        padding: 15px 25px;
        font-size: 1em;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-order-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .form-header h3 {
        font-size: 1.8em;
    }
    
    .product-order-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-container,
    .order-summary {
        padding: 25px 20px;
    }
    
    .form-header h3 {
        font-size: 1.6em;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .submit-btn,
    .order-btn {
        padding: 18px 30px;
        font-size: 1.1em;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
}

/* تحسينات إضافية للشريط المنزلق */
.order-list-container::-webkit-scrollbar {
    width: 8px;
}

.order-list-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.order-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.order-list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* زر حذف المنتج */
.remove-order-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-order-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* إخفاء محتوى التبويبات بشكل افتراضي */
.tab-pane {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* إظهار التبويب النشط فقط */
.tab-pane.active {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.5s ease;
}

/* رسوم متحركة لظهور التبويب */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 999999999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* إضافة scroll للمودال */
}
.order-modal.active {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 30px;
    width: 100%;
    max-width: 550px;
    max-height: none; /* إزالة max-height */
    min-height: auto; /* إضافة min-height */
    margin: auto; /* توسيط المحتوى */
    overflow: visible; /* تغيير من hidden إلى visible */
    backdrop-filter: blur(25px);
    border: 2px solid var(--border-color);
    animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 30px 40px;
    position: relative;
    z-index: 2;
    flex: 1; /* السماح للمحتوى بالتمدد */
}

.modal-footer {
    padding: 25px 40px 35px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03), 
        rgba(118, 75, 162, 0.03)
    );
    position: relative;
    z-index: 2;
    margin-top: auto; /* دفع الفوتر للأسفل */
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.15), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px 25px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08), 
        rgba(118, 75, 162, 0.08)
    );
    position: relative;
    z-index: 2;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.3), 
        transparent
    );
}

.modal-header h3 {
    font-size: 2em;
    color: var(--text-primary);
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.modal-header h3::before {
    content: '🛒';
    font-size: 0.8em;
    margin-left: 15px;
    filter: hue-rotate(200deg);
}

.modal-close {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    font-size: 1.5em;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.modal-close:hover::before {
    opacity: 1;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    border-color: transparent;
}


.modal-product {
    text-align: center;
}

.modal-product h4 {
    font-size: 1.6em;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.modal-product h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.quantity-selector {
    background: var(--bg-secondary);
    padding: 35px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.quantity-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.05), transparent);
    pointer-events: none;
}

.quantity-selector label {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.quantity-selector label::before {
    content: '📦';
    margin-left: 10px;
    font-size: 1.2em;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) inset;
}

.quantity-input-group .qty-btn {
    width: 55px;
    height: 55px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 15px;
    font-size: 1.8em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.quantity-input-group .qty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.quantity-input-group .qty-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.quantity-input-group .qty-btn:hover:not(:disabled) {
    color: white;
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.quantity-input-group .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.quantity-input-group .quantity-input {
    width: 100px;
    height: 55px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) inset;
}

.quantity-input-group .quantity-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 5px 15px rgba(0,0,0,0.1) inset;
    transform: scale(1.05);
}



.add-to-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.add-to-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.add-to-order:hover::before {
    left: 100%;
}

.add-to-order:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.add-to-order::after {
    content: '✓';
    font-size: 1.2em;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.add-to-order:hover::after {
    transform: scale(1.3);
}

/* الرسوم المتحركة المحسنة */
@keyframes modalSlideIn {
    0% { 
        opacity: 0; 
        transform: scale(0.7) translateY(-100px) rotateX(15deg); 
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(0) rotateX(0deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0) rotateX(0deg); 
    }
}

@media (max-height: 600px) {
    .order-modal {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* تحسينات الاستجابة للمودال */
@media (max-width: 768px) {
    .order-modal {
        padding: 15px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 95%;
        border-radius: 25px;
    }
    
    .modal-header {
        padding: 25px 30px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.6em;
    }
    
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .modal-body {
        padding: 25px 30px;
    }
    
    .modal-product h4 {
        font-size: 1.4em;
    }
    
    .quantity-selector {
        padding: 25px;
    }
    
    .quantity-input-group {
        gap: 15px;
    }
    
    .quantity-input-group .qty-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
    }
    
    .quantity-input-group .quantity-input {
        width: 80px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .modal-footer {
        padding: 20px 30px 30px;
    }
    
    .add-to-order {
        padding: 18px 30px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 20px 25px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.4em;
    }
    
    .modal-body {
        padding: 20px 25px;
    }
    
    .modal-product h4 {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    
    .quantity-selector {
        padding: 20px;
    }
    
    .quantity-selector label {
        font-size: 1.2em;
    }
    
    .quantity-input-group .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4em;
    }
    
    .quantity-input-group .quantity-input {
        width: 70px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .modal-footer {
        padding: 18px 25px 25px;
    }
    
    .add-to-order {
        padding: 16px 25px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .order-modal {
        padding: 15px;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 95%;
        border-radius: 25px;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .modal-header {
        padding: 25px 30px 20px;
    }
    
    .modal-body {
        padding: 25px 30px;
    }
    
    .modal-footer {
        padding: 20px 30px 30px;
    }
}

@media (max-width: 480px) {
    .order-modal {
        padding: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .modal-content {
        max-width: 98%;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 20px 25px 15px;
    }
    
    .modal-body {
        padding: 20px 25px;
    }
    
    .modal-footer {
        padding: 18px 25px 25px;
    }
}

.customer-details {
    margin: 15px 0;
}
.customer-details .form-group {
    margin-bottom: 10px;
}
.customer-details input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
.customer-details .form-icon-input {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    color: #666;
}