/* محتوى ملف style.css المُصلح */

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    padding: 12px 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: #ff6b6b;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo img{
width: 80px;
height: 80px;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ff6b6b;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255,107,107,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    color: #333;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.dropdown-menu li a:hover {
    color: #ff6b6b;
    padding-left: 15px;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    background: url('https://via.placeholder.com/1920x800?text=Hero+Background') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.highlight {
    color: #ff6b6b;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: linear-gradient(90deg, #ff6b6b, #ffa500); */
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.hero-image img:hover {
    transform: scale(1.03);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    /* background: linear-gradient(90deg, #ff6b6b, #ffa500); */
    border-radius: 2px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

.feature-link {
    display: inline-block;
    margin-top: 15px;
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
}

.feature-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

#contactForm input,
#contactForm textarea {
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

#contactForm button {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    background: white;
    color: #ff6b6b;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contactForm button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
    background: #222;
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.footer-contact i {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    #contactForm {
        padding: 0 10px;
    }
}

/* === قسم الباقات === */
.packages-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.package-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
}

.package-header h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
}

.price span {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #4ecdc4;
    font-size: 1.1rem;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.package-btn {
    display: block;
    margin: 20px auto 0;
    max-width: 200px;
}

/* === جدول المقارنة === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.table-header {
    display: flex;
    background: #f8f9fa;
}

.header-cell {
    flex: 1;
    padding: 25px 15px;
    text-align: center;
    border-right: 1px solid #eee;
}

.header-cell:last-child {
    border-right: none;
}

.header-cell h3 {
    color: #ff6b6b;
    font-size: 1.5rem;
}

.header-cell .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.row-cell {
    flex: 1;
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid #eee;
}

.row-cell:first-child {
    font-weight: 600;
    background: #f8f9fa;
    text-align: right;
    padding-right: 25px;
}

.row-cell:last-child {
    border-right: none;
}

.compact-list {
    list-style: none;
    padding: 0;
    text-align: left;
    line-height: 1.6;
}

.compact-list li {
    margin-bottom: 8px;
}

.recommendation {
    background: #e3f2fd;
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.recommendation i {
    font-size: 2.5rem;
    color: #2196f3;
}

/* === الاستجابة === */
@media (max-width: 992px) {
    .table-header, .table-row {
        flex-wrap: wrap;
    }
    
    .header-cell, .row-cell {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .header-cell:last-child, .row-cell:last-child {
        border-bottom: none;
    }
    
    .row-cell:first-child {
        flex: 0 0 100%;
        background: #f1f3f5;
    }
}

@media (max-width: 768px) {
    .header-cell, .row-cell {
        flex: 0 0 100%;
    }
    
    .recommendation {
        flex-direction: column;
        text-align: center;
    }
}

/* === حالة الرابط النشط === */
.main-nav a.active,
.main-nav a:hover {
    color: #ff6b6b;
    position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    border-radius: 2px;
}

/* === الأزرار في الهيدر === */
.btn-secondary {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.03);
}

/* === القائمة على الهاتف === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-left: 15px;
}

@media (max-width: 992px) {
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a.btn-primary,
    .main-nav a.btn-secondary {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: relative;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: fixed;
        top: 70px;
        right: -100%;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .main-nav.active ul {
        display: flex;
        right: 0;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 12px 0;
        text-align: right;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav ul li a:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li.dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        display: none;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* إخفاء الأزرار على الهاتف */
    .main-nav a.btn-primary,
    .main-nav a.btn-secondary {
        display: none;
    }
}

/* === إصلاح مشكلة ظهور القوائم المنسدلة تلقائيًا === */
.dropdown-menu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === إصلاح تكرار العناصر === */
.dropdown-menu {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* === إصلاح الشريط العلوي === */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* إصلاح ترتيب العناصر في القائمة */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* إصلاح ترتيب العناصر في القائمة المنسدلة */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    z-index: 1001;
}

/* إصلاح القوائم المنسدلة على الهاتف */
@media (max-width: 992px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        position: fixed;
        top: 70px;
        right: -100%;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 20px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .main-nav.active ul {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* === تصحيح ارتفاع أزرار الاشتراك === */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.package-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 750px; /* ارتفاع ثابت لجميع الباقات */
}

.package-header {
    margin-bottom: 25px;
}

.package-header h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1; /* يملأ المساحة المتبقية */
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #4ecdc4;
    font-size: 1.1rem;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ضمان أن الأزرار تظهر في نفس الارتفاع */
.package-card .package-btn {
    margin-top: auto; /* يدفع الزر إلى أسفل */
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* للهاتف: */
@media (max-width: 768px) {
    .package-card {
        min-height: auto;
    }
    
    .package-card .package-btn {
        margin-top: 20px;
    }
}

/* === زيادة المسافة بين النص وزر الاشتراك === */
.package-card .package-btn {
    margin-top: 25px !important; /* زيادة المسافة بين النص وزر الاشتراك */
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* تأكد من أن النص فوق الزر لا يلمس الحافة السفلى للباقة */
.package-footer {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* لتحسين التناسق بين الباقات */
.package-card {
    display: flex;
    flex-direction: column;
    min-height: 750px;
}

/* للهاتف: تقليل المسافة قليلاً */
@media (max-width: 768px) {
    .package-card .package-btn {
        margin-top: 20px;
    }
    
    .package-footer {
        margin-bottom: 10px;
    }
}

/* === الشريط الإعلاني المطور === */
.announcement-bar {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    padding: 12px 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.announcement-content p {
    margin: 0;
    font-size: 1rem;
}

.announcement-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.announcement-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .announcement-link {
        width: 100%;
        max-width: 200px;
    }
}

/* إضافة في style.css */
.support-chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-avatar {
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
    gap: 10px;
}

.message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.message-content {
    background: #e9ecef;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
}

.message.sent .message-content {
    background: #4ecdc4;
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.message.sent .message-time {
    color: rgba(255,255,255,0.8);
}

.attachment {
    display: inline-block;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.attachment:hover {
    background: #d4d8db;
}

.chat-footer {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    resize: none;
    height: 40px;
}

.chat-actions {
    display: flex;
    gap: 5px;
}

.chat-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: #e9ecef;
}

.file-input {
    display: none;
}

.file-preview {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.file-remove {
    color: #ff4757;
    cursor: pointer;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4ecdc4;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s, fadeOut 0.3s 3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* استجابة للهواتف */
@media (max-width: 768px) {
    .support-chat-container {
        height: 100vh;
    }
    
    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chat-footer {
        flex-direction: column;
    }
}

/* قسم الدعم المباشر */
.support-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edff 100%);
    text-align: center;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #333;
}

.support-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.support-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.support-feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.support-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.support-feature i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.support-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.support-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}
/* === قسم الباقات === */
.packages-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.package-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 750px; /* ارتفاع ثابت لجميع الباقات */
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
}

.package-header h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
}

.price span {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1; /* يملأ المساحة المتبقية */
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #4ecdc4;
    font-size: 1.1rem;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

package-card .package-btn {
    margin-top: 25px !important; /* زيادة المسافة بين النص وزر الاشتراك */
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.package-footer {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* === قسم الدعم المباشر === */
.support-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edff 100%);
    text-align: center;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #333;
}

.support-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.support-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.support-feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.support-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.support-feature i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.support-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.support-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

/* تنسيقات قسم شركاؤنا */


.partners-section {
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #f9fafc 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,170,0,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
}

.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    z-index: 1;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.header-icon i {
    color: white;
    font-size: 1.8rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    /* background: linear-gradient(90deg, #ff6b6b, #ffa500); */
    border-radius: 2px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 0;
    line-height: 1.6;
}

.header-divider {
    width: 80px;
    height: 4px;
    /* background: linear-gradient(90deg, #ff6b6b, #ffa500); */
    margin: 25px auto 0;
    border-radius: 2px;
}

.partners-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 50px;
    overflow: hidden;
    border-radius: 20px;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.08); */
}

.partners-slider {
    display: flex;
    animation: scroll 40s linear infinite;
    padding: 30px 0;
    gap: 25px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - (25px / 2)));
    }
}

.partners-slider-container:hover .partners-slider {
    animation-play-state: paused;
}

.partner-slide {
    flex: 0 0 280px;
    perspective: 1000px;
}

.partner-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.partner-logo-container {
    padding: 30px 20px 15px;
    display: flex;
    justify-content: center;
    height: 160px;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.partner-card:hover .logo-wrapper {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.partner-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.3s;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 3.5rem;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
    transition: all 0.3s;
}

.partner-card:hover .logo-placeholder {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.partner-info {
    padding: 15px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s;
    line-height: 1.3;
}

.partner-card:hover .partner-name {
    color: #ff6b6b;
}

.partner-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.member-since {
    color: #6c757d;
    font-size: 0.9rem;
}

.partner-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.partner-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,107,107,0.9);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.partner-card:hover .partner-hover-overlay {
    opacity: 1;
}

.overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.partner-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.partner-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* مؤشرات السلايدر */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    transform: scale(1.2);
}

/* معلومات الشركاء */
.partners-info {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
}

.partners-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
}

.info-icon {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.partners-info i {
    color: white;
    font-size: 1.2rem;
}

.partners-info p {
    color: #495057;
    font-size: 1.2rem;
    line-height: 1.6;
}

.partners-info a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s;
}

.partners-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s;
}

.partners-info a:hover::after {
    width: 100%;
}

/* عرض القائمة الكاملة */
.partners-grid-preview {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    margin-top: 40px;
}

.partners-grid-preview h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

.partner-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.category-item i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    background: rgba(255,107,107,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .partners-slider {
        gap: 20px;
    }
    
    .partner-slide {
        flex: 0 0 250px;
    }
    
    .partner-card {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.3rem;
    }
    
    .partner-slide {
        flex: 0 0 220px;
    }
    
    .logo-wrapper, .logo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .partner-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .partners-slider {
        gap: 15px;
        padding: 20px 0;
    }
    
    .partner-slide {
        flex: 0 0 180px;
    }
    
    .logo-wrapper, .logo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .partner-name {
        font-size: 1.2rem;
    }
    
    .partner-card {
        height: 250px;
        border-radius: 15px;
    }
    
    .partner-hover-overlay {
        padding: 20px 15px;
    }
    
    .overlay-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .category-item {
        min-width: 130px;
    }
    
    .category-item i {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .category-item span {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .partners-section {
        padding: 70px 15px 50px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .partner-slide {
        flex: 0 0 150px;
    }
    
    .logo-wrapper, .logo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .partner-card {
        height: 220px;
        border-radius: 12px;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-icon i {
        font-size: 1.5rem;
    }
    
    .category-item {
        min-width: 110px;
    }
    
    .category-item i {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
    }
    
    .category-item span {
        font-size: 1rem;
    }
}

/* === القائمة المنسدلة المحسّنة === */
@media (max-width: 768px) {
    .main-nav ul {
        /* تغيير الاتجاه من اليمين إلى اليسار */
        left: -100%;
        right: auto;
        border-left: 2px solid #ff6b6b;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active ul {
        left: 0;
    }
    
    /* زر الإغلاق للقائمة الرئيسية */
    .main-nav ul::before {
        content: '×';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 30px;
        color: #ff6b6b;
        cursor: pointer;
        z-index: 10;
    }
    
    /* تحسين التصميم */
    .main-nav ul {
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        border-radius: 0 15px 15px 0;
        overflow: hidden;
    }
    
    .main-nav ul li a {
        padding: 15px 30px;
        border-radius: 8px;
        transition: all 0.2s;
    }
    
    .main-nav ul li a:hover {
        background: #f8f9fa;
        transform: translateX(10px);
        border-left: 3px solid #ff6b6b;
    }
    
    /* تحسين القوائم الفرعية */
    .dropdown-menu {
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .dropdown-menu li a {
        padding: 12px 30px;
        border-radius: 8px;
        transition: all 0.2s;
    }
    
    .dropdown-menu li a:hover {
        background: #f8f9fa;
        border-left: 3px solid #ff6b6b;
    }
}

/* === زر إغلاق القوائم الفرعية === */
.close-dropdown {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    z-index: 1002;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-dropdown:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    transform: scale(1.1);
}

/* === إصلاح ترتيب العناصر === */
.dropdown {
    position: relative;
    z-index: 1000;
}

.dropdown-menu {
    z-index: 1001;
}

.dropdown-menu .dropdown {
    position: relative;
    z-index: 1002;
}

.dropdown-menu .dropdown-menu {
    z-index: 1003;
}

/* === تحسين عرض القوائم الفرعية === */
.dropdown-menu .dropdown:hover .dropdown-menu {
    left: 100%;
    top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* === تأكيد ظهور القوائم بشكل صحيح === */
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === تأثيرات انتقالية للقوائم === */
.dropdown-menu {
    transition: all 0.3s ease;
}

/* التنسيقات الأخرى موجودة في الملف الأصلي */