/* ===============================================
   إعادة تعيين الأنماط الأساسية - Reset and Base Styles
   =============================================== */

/* إزالة الهوامش والحشو الافتراضي من جميع العناصر */
* {
    margin: 0;                    /* إزالة الهامش الخارجي الافتراضي */
    padding: 0;                   /* إزالة الحشو الداخلي الافتراضي */
    box-sizing: border-box;       /* حساب العرض والارتفاع مع الحدود والحشو */
}

/* إعدادات الجسم الأساسية للصفحة */
body {
    font-family: 'Cairo', sans-serif;  /* خط عربي جميل ومقروء */
    background-color: #0a0a0a;         /* خلفية سوداء داكنة */
    color: #ffffff;                    /* لون النص الأبيض */
    line-height: 1.6;                  /* مسافة بين الأسطر للقراءة المريحة */
    overflow-x: hidden;                /* منع التمرير الأفقي */
}

/* حاوي المحتوى الأساسي - يحدد العرض الأقصى ويوسط المحتوى */
.container {
    max-width: 1200px;            /* العرض الأقصى للمحتوى */
    margin: 0 auto;               /* توسيط الحاوي في الصفحة */
    padding: 0 20px;              /* حشو جانبي للمساحة الداخلية */
}

/* Color Variables */
:root {
    /* متغيرات الألوان الأساسية للموقع - يمكن تغييرها من هنا */
    --primary-orange: #ff6b35;    /* اللون البرتقالي الأساسي - يستخدم للأزرار والعناوين */
    --secondary-orange: #ff8c42;  /* اللون البرتقالي الثانوي - للتدرجات والتأثيرات */
    --dark-bg: #0a0a0a;          /* خلفية داكنة - للأقسام الرئيسية */
    --darker-bg: #1a1a1a;        /* خلفية أكثر قتامة - للخلفية العامة */
    --card-bg: #2a2a2a;          /* خلفية البطاقات والصناديق */
    --text-light: #ffffff;        /* لون النص الأبيض */
    --text-gray: #cccccc;        /* لون النص الرمادي - للنصوص الثانوية */
    --accent-color: #ff6b35;       /* لون أزرق للتأكيد - نادر الاستخدام */
}

/* ===============================================
   أنماط الهيدر والنافبار - Header & Navigation Styles
   =============================================== */

/* الهيدر الرئيسي - ثابت في أعلى الصفحة */
.header {
    position: fixed;                           /* ثابت في الأعلى أثناء التمرير */
    top: 0;                                   /* ملتصق بأعلى الصفحة */
    width: 100%;                              /* يأخذ عرض الصفحة كاملاً */
    background: rgba(10, 10, 10, 0.95);      /* خلفية شبه شفافة داكنة */
    backdrop-filter: blur(10px);              /* تأثير ضبابي للخلفية */
    z-index: 1000;                           /* يظهر فوق جميع العناصر الأخرى */
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);  /* حد سفلي برتقالي خفيف */
}

/* شريط التنقل داخل الهيدر */
.navbar {
    padding: 1rem 0;                         /* حشو علوي وسفلي للمساحة */
}

/* حاوي عناصر النافبار - يرتب اللوجو والقائمة */
.nav-container {
    display: flex;                            /* ترتيب أفقي للعناصر */
    justify-content: space-between;           /* توزيع العناصر بين الأطراف */
    align-items: center;                      /* محاذاة وسطية عمودية */
    max-width: 1200px;                       /* العرض الأقصى */
    margin: 0 auto;                          /* توسيط الحاوي */
    padding: 0 20px;                         /* حشو جانبي */
}

/* شعار الموقع - اللوجو */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.server-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* قائمة التنقل الرئيسية */
.nav-menu {
    display: flex;                            /* ترتيب أفقي للروابط */
    list-style: none;                         /* إزالة النقاط من القائمة */
    gap: 2rem;                               /* مسافة بين كل رابط */
}

/* روابط التنقل */
.nav-link {
    color: var(--text-light);                /* لون أبيض للنص */
    text-decoration: none;                    /* إزالة تسطير الرابط */
    font-weight: 500;                        /* وزن خط متوسط */
    transition: color 0.3s ease;             /* تأثير انتقال ناعم للون */
    position: relative;                       /* لإضافة الخط السفلي */
}

/* تأثير التمرير على الروابط - تغيير اللون */
.nav-link:hover {
    color: var(--primary-orange);            /* لون برتقالي عند التمرير */
}

/* الخط السفلي المتحرك للروابط */
.nav-link::after {
    content: '';                             /* محتوى فارغ للخط */
    position: absolute;                       /* موضع مطلق */
    bottom: -5px;                            /* تحت النص بـ 5 بكسل */
    left: 0;                                 /* يبدأ من اليسار */
    width: 0;                                /* عرض صفر في البداية */
    height: 2px;                             /* سماكة الخط */
    background: var(--primary-orange);       /* لون برتقالي */
    transition: width 0.3s ease;             /* تأثير انتقال للعرض */
}

/* إظهار الخط السفلي عند التمرير */
.nav-link:hover::after {
    width: 100%;                             /* يمتد ليأخذ عرض النص كاملاً */
}

/* ===============================================
   القائمة المحمولة - Mobile Menu
   =============================================== */

/* زر الهامبرجر للهواتف المحمولة */
.hamburger {
    display: none;                            /* مخفي في الشاشات الكبيرة */
    flex-direction: column;                   /* ترتيب عمودي للخطوط */
    cursor: pointer;                          /* مؤشر يد عند التمرير */
}

/* خطوط زر الهامبرجر */
.hamburger span {
    width: 25px;                             /* عرض الخط */
    height: 3px;                             /* سماكة الخط */
    background: var(--text-light);           /* لون أبيض */
    margin: 3px 0;                           /* مسافة بين الخطوط */
    transition: 0.3s;                        /* تأثير انتقال للحركة */
}

/* ===============================================
   قسم البطل الرئيسي - Hero Section
   =============================================== */

/* القسم الرئيسي في أعلى الصفحة */
.hero {
    min-height: 100vh;                        /* ارتفاع كامل للشاشة */
    display: flex;                            /* ترتيب مرن للمحتوى */
    align-items: center;                      /* محاذاة وسطية عمودية */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);  /* تدرج لوني داكن */
    position: relative;                       /* لإضافة عناصر مطلقة */
    overflow: hidden;                         /* إخفاء المحتوى الزائد */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Server Status */
.server-status {
    margin-bottom: 2rem;
}

.status-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

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

.status-text {
    font-weight: 600;
    color: var(--text-light);
}

.player-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Server Info Grid */
.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.info-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

/* الأنماط المشتركة لجميع الأزرار */
.btn-primary, .btn-secondary {
    padding: 15px 30px;                      /* حشو داخلي للأزرار */
    border: none;                            /* إزالة الحد الافتراضي */
    border-radius: 50px;                     /* زوايا دائرية */
    font-size: 1.1rem;                       /* حجم خط متوسط */
    font-weight: 600;                        /* وزن خط عريض */
    cursor: pointer;                         /* مؤشر يد عند التمرير */
    transition: all 0.3s ease;               /* تأثير انتقال ناعم لجميع التغييرات */
    display: inline-flex;                    /* ترتيب مرن للمحتوى */
    align-items: center;                     /* محاذاة وسطية للأيقونات والنص */
    gap: 10px;                              /* مسافة بين الأيقونة والنص */
    text-decoration: none;                   /* إزالة تسطير الروابط */
}

/* الزر الأساسي - برتقالي متدرج */
.btn-primary {
    background: transparent;                  /* خلفية شفافة */
    color: var(--primary-orange);           /* نص برتقالي */
    border: 2px solid var(--primary-orange); /* حد برتقالي */
    box-shadow: none;                        /* إزالة الظل */
}

/* تأثير التمرير على الزر الأساسي */
.btn-primary:hover {
    background: var(--primary-orange);       /* خلفية برتقالية عند التمرير */
    color: white;                            /* نص أبيض عند التمرير */
    transform: translateY(-2px);             /* رفع الزر قليلاً */
}

/* الزر الثانوي - شفاف مع حد برتقالي */
.btn-secondary {
    background: transparent;                  /* خلفية شفافة */
    color: var(--primary-orange);           /* نص برتقالي */
    border: 2px solid var(--primary-orange); /* حد برتقالي */
}

/* تأثير التمرير على الزر الثانوي */
.btn-secondary:hover {
    background: var(--primary-orange);       /* خلفية برتقالية عند التمرير */
    color: white;                            /* نص أبيض عند التمرير */
    transform: translateY(-2px);             /* رفع الزر قليلاً */
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-logo {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.5));
}

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


/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--darker-bg);
}

/* ===============================================
   عناوين الأقسام - Section Titles
   =============================================== */

/* تصميم عناوين الأقسام الرئيسية */
.section-title {
    font-size: 2.5rem;                        /* حجم خط كبير للعناوين */
    text-align: center;                       /* محاذاة وسطية */
    margin-bottom: 3rem;                      /* مسافة سفلية كبيرة */
    color: var(--text-light);                /* لون أبيض */
    font-weight: 700;                         /* وزن خط عريض جداً */
}

/* الخط الزخرفي تحت العناوين */
.section-title::after {
    content: '';                              /* محتوى فارغ */
    display: block;                           /* عرض كعنصر بلوك */
    width: 100px;                            /* عرض الخط */
    height: 4px;                             /* سماكة الخط */
    background: var(--primary-orange);       /* لون برتقالي */
    margin: 1rem auto;                       /* توسيط مع مسافة علوية */
    border-radius: 2px;                      /* زوايا دائرية خفيفة */
}

/* ===============================================
   شبكة المميزات - Features Grid
   =============================================== */

/* شبكة عرض بطاقات المميزات */
.features-grid {
    display: grid;                                              /* عرض شبكي */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* أعمدة تتكيف تلقائياً */
    gap: 2rem;                                                  /* مسافة بين البطاقات */
}

/* تصميم بطاقة الميزة الواحدة */
.feature-card {
    background: var(--card-bg);                    /* خلفية داكنة */
    padding: 2rem;                                 /* حشو داخلي */
    border-radius: 15px;                           /* زوايا دائرية */
    text-align: center;                            /* محاذاة وسطية للنص */
    border: 1px solid rgba(255, 107, 53, 0.2);   /* حد برتقالي خفيف */
    transition: transform 0.3s ease, border-color 0.3s ease;  /* تأثيرات انتقال */
}

/* تأثير التمرير على بطاقة الميزة */
.feature-card:hover {
    transform: translateY(-5px);                   /* رفع البطاقة قليلاً */
    border-color: var(--primary-orange);          /* تغيير لون الحد للبرتقالي */
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Rules Section */
.rules {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.rules-content {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: transform 0.3s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-orange);
}

.rule-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.rule-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.rule-text p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Join Section */
.join-section {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.join-methods {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.method:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.method-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.method h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.method p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.method-note {
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 500;
}

.method-divider {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-orange);
    padding: 1rem 0;
    position: relative;
}

.method-divider::before,
.method-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-orange), transparent);
}

.method-divider::before {
    left: 10%;
}

.method-divider::after {
    right: 10%;
}

.server-name-box {
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary-orange);
    margin: 1rem 0;
    text-align: center;
}

.server-name-box code {
    color: var(--primary-orange);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.connection-methods {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.connection-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.connection-method i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.connection-method span {
    color: var(--text-light);
    font-weight: 500;
}

.connection-method code {
    background: var(--dark-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    color: var(--primary-orange);
    font-family: 'Courier New', monospace;
}

.ip-box {
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.ip-box code {
    color: var(--primary-orange);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.copy-btn {
    background: var(--primary-orange);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary-orange);
}

/* Staff Section */
.staff {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.staff-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.staff-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.staff-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* توحيد ألوان جميع الأدوار الإدارية مع لون المالك */
.staff-role {
    color: var(--primary-orange) !important;    /* نفس لون المالك */
    font-weight: 600;                           /* خط عريض */
    margin-bottom: 1rem;                        /* مسافة سفلية */
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);  /* تأثير توهج مثل المالك */
}

.staff-card p:last-child {
    color: var(--text-gray);
}

/* توحيد ألوان جميع الأفاتار مع لون المالك */
.staff-card .staff-avatar {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange)) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
}

/* توحيد لون المالك والمؤسسين - نفس التنسيق للجميع */
.owner-role {
    color: var(--primary-orange) !important;         /* لون برتقالي */
    font-weight: 600;                                /* خط عريض */
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);  /* تأثير توهج */
    margin-bottom: 1rem;                             /* مسافة سفلية */
}

/* توحيد جميع الأدوار الإدارية - المالك والمؤسسين والإداريين */
.staff-role, .owner-role {
    color: var(--primary-orange) !important;         /* نفس اللون للجميع */
    font-weight: 600 !important;                     /* نفس وزن الخط */
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3) !important;  /* نفس التأثير */
    margin-bottom: 1rem;                             /* نفس المسافة */
}

/* توحيد لون الحدود عند التمرير */
.staff-card:hover {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3) !important;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-item.clickable {
    cursor: pointer;
}

.contact-item.clickable:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-orange);
    width: 60px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.footer p {
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-logo {
        width: 200px;
        height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }


    .connection-methods {
        flex-direction: column;
    }

    .connection-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rule-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }

    .ip-box {
        flex-direction: column;
        gap: 1rem;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }

}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange);
}

/* Page Header Styles (for Rules and Store pages) */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-header {
    border-bottom: 3px solid var(--primary-orange);
}

.store-header {
    border-bottom: 3px solid var(--primary-orange);
}

/* Store Page Styles */
.store-categories {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.featured-products {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-image i {
    font-size: 4rem;
    color: white;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.product-price {
    margin-bottom: 2rem;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.product-price .currency {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-image {
    position: relative;
}

.discount-ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 145, 89, 0.9));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.45rem 1.05rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 14px 26px rgba(255, 107, 53, 0.35);
    pointer-events: none;
}

.discount-ribbon .currency-inline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

/* شارة الكمية تظهر على يمين الصورة وبنفس ألوان شارة الخصم */
.stock-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 145, 89, 0.9));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.45rem 1.05rem;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 14px 26px rgba(255, 107, 53, 0.35);
    pointer-events: none;
}

.product-price.has-discount-simple {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-price.single-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.product-price.has-discount-simple .original-price {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.product-price.has-discount-simple .new-price-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.product-price.has-discount-simple .discounted-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.product-btn {
    width: 100%;
    justify-content: center;
}

.payment-methods {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.payment-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* Rules Page Styles */
.rules-content {
    padding: 8rem 0;
    background: var(--darker-bg);
    min-height: 100vh;
}

/* Rules Navigation Grid */
.rules-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.nav-column h4 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 2px solid var(--primary-orange);
}

/* Rule Section Container */
.rule-section-container {
    margin: 5rem auto;
    max-width: 800px;
    padding: 0 2rem;
}

/* Rule Section Styling */
.rule-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 4rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Simple Rules Styles */
.rule-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.rule-item h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}


.rules-navigation {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.rules-navigation h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.rules-nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.rules-nav-list li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.rules-nav-list li a:hover {
    background: var(--primary-orange);
    color: white;
}

.rules-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
}

.rules-summary p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rules-summary p:last-child {
    margin-bottom: 0;
}

.rules-summary strong {
    color: var(--primary-orange);
}

.rule-section {
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    overflow: hidden;
}

.rule-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-header i {
    font-size: 2rem;
    color: white;
}

.rule-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.rule-content {
    padding: 2rem;
}

.rule-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.rule-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rule-item h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.rule-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Purchase Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    padding: 2rem;
    border-radius: 18px 18px 0 0;
    text-align: center;
    color: white;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.close {
    color: white;
    float: left;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Design for Page Headers */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Rules Page Mobile */
    .rules-nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rule-section-container {
        margin: 3rem auto;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .rule-section {
        padding: 2rem;
    }
    
    .nav-column h4 {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}
 
 .category-bar {
     display: flex;
     gap: 0.5rem;
     justify-content: center;
     margin: 0 0 1.5rem;
     flex-wrap: wrap;
 }
 .category-btn {
     padding: 0.5rem 1rem;
     border-radius: 999px;
     border: 1px solid rgba(255, 255, 255, 0.15);
     background: rgba(12, 12, 17, 0.6);
     color: #ffffff;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
 }
 .category-btn:hover {
     transform: translateY(-1px);
     border-color: rgba(255, 107, 53, 0.5);
 }
 .category-btn.active {
     background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 145, 89, 0.9));
     border-color: rgba(255, 107, 53, 0.7);
     color: #ffffff;
 }
 @media (max-width: 600px) {
     .category-bar {
         overflow-x: auto;
         justify-content: flex-start;
         padding-bottom: 0.25rem;
     }
     .category-bar::-webkit-scrollbar {
         height: 6px;
     }
     .category-bar::-webkit-scrollbar-thumb {
         background: rgba(255, 255, 255, 0.2);
         border-radius: 3px;
     }
 }
