:root {
    --color-bg: #19061f;
    --color-primary: #2b124c;
    --color-accent: #854f6c;
    --color-light: #dfb6b2;
    --color-deep: #f5f1eb;
    --tech-cyan: #00f2ff;
    --classic-gold: #ffd700;
    --radius: 15px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-deep);
    font-family: 'Segoe UI', sans-serif;
    direction: rtl;
}

/* --- Header & Navigation --- */
.nebula-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(25, 6, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 182, 178, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-light);
    letter-spacing: 1px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--color-deep);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.desktop-nav a:hover { color: var(--color-accent); }

/* --- Mobile Sidebar --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    z-index: 2000;
    padding: 2rem;
    transition: var(--transition);
}

.mobile-sidebar.active { right: 0; }

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1500;
    display: none;
}
.overlay.active { display: block; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Cards Grid Layout --- */
.services-layout { padding: 4rem 5%; }

.section-banner {
    margin-bottom: 2rem;
    border-right: 4px solid var(--color-accent);
    padding-right: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

/* --- Nebula Card Style --- */
.nebula-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(223, 182, 178, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.nebula-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
}

.nebula-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.category-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--color-accent);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
}

.price-text {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.gold-text { color: var(--classic-gold); }
.cyan-text { color: var(--tech-cyan); }

/* --- Buttons --- */
.action-area { display: flex; gap: 0.5rem; }

.btn-nebula {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-free { background: var(--color-accent); color: white; }
.btn-wa { background: #25d366; color: white; }
.btn-share { flex: 0 0 50px; background: rgba(255,255,255,0.1); color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
}
/* تنسيق زر الجوال */
.hamburger {
    display: none; /* مخفي في الشاشات الكبيرة */
    background: none;
    border: none;
    color: var(--color-light); /* لون النجوم المعتمد في هويتك */
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

/* إظهار الزر عند تصغير الشاشة (أقل من 992px) */
@media (max-width: 992px) {
    .hamburger {
        display: block; /* يظهر الزر هنا */
    }

    .desktop-nav {
        display: none; /* إخفاء قائمة الكمبيوتر */
    }
}

/* تنسيق إضافي لزر الإغلاق داخل القائمة الجانبية */
#close-sidebar {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2.5rem;
    cursor: pointer;
    float: left; /* ليظهر جهة اليسار في القائمة اليمين */
}
/* تحسين القائمة الجانبية للجوال */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* البداية من خارج الشاشة جهة اليمين */
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    z-index: 2000;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5); /* إضافة ظل */
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active { 
    right: 0; 
}

/* تنسيق الروابط داخل القائمة */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin-top: 3rem; /* ترك مساحة لزر الإغلاق */
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(223, 182, 178, 0.1);
    padding-bottom: 10px;
}

.mobile-nav-links li a {
    color: var(--color-deep);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    transition: 0.3s;
}

.mobile-nav-links li a:hover {
    color: var(--color-accent);
    padding-right: 10px; /* حركة بسيطة عند التمرير */
}

/* زر الإغلاق */
#close-sidebar {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    align-self: flex-start; /* يضعه في الزاوية العلوية */
    line-height: 1;
}
/* --- Nebula Theme Core --- */
:root {
    --color-bg: #19061f;
    --color-primary: #2b124c;
    --color-accent: #854f6c;
    --color-light: #dfb6b2;
    --color-deep: #f5f1eb;
    --tech-cyan: #00f2ff;
    --classic-gold: #ffd700;
    --radius: 15px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-deep);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    margin: 0;
    overflow-x: hidden; /* منع الارتجاج الأفقي في الجوال */
}

/* --- Header & Navigation --- */
.nebula-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(25, 6, 31, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(223, 182, 178, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-light);
    text-shadow: 0 0 10px rgba(223, 182, 178, 0.3);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--color-deep);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.desktop-nav a:hover { color: var(--tech-cyan); }

/* --- Mobile Controls --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Mobile Sidebar (Improved) --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-bg) 100%);
    z-index: 2000;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active { right: 0; }

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 2, 17, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
}
.overlay.active { display: block; }

/* --- Grid & Cards Layout --- */
.services-layout { padding: 2rem 5%; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.nebula-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(223, 182, 178, 0.1);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: var(--transition);
}

/* --- Responsive Adjustments (The Mobile Magic) --- */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    
    .services-layout { padding: 1.5rem 4%; }
    
    .section-banner {
        padding-right: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-banner h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr; /* كارت واحد في الصف للجوالات الصغيرة */
        gap: 1.5rem;
    }
    
    .nebula-card {
        padding: 1rem;
    }

    .nebula-card img {
        height: 160px; /* تقليل ارتفاع الصورة قليلاً */
    }

    .action-area {
        flex-direction: row; /* الحفاظ على الأزرار بجانب بعضها أو تحويلها حسب الرغبة */
        flex-wrap: wrap;
    }

    .btn-nebula {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* تحسينات إضافية للمسة اليد (Touch-friendly) */
.btn-nebula, .action-btn, .btn-filter {
    min-height: 44px; /* المعيار الذهبي لسهولة الضغط بالإصبع */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* زر التليغرام الجديد */
.btn-tg {
    background: #0088cc !important;
    color: white !important;
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-tg:hover {
    background: #0099e6 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

/* تنسيق الأيقونة داخل الزر */
.btn-nebula i {
    font-size: 1.1rem;
}
.btn-details:hover {
    background: rgba(223, 182, 178, 0.05);
    border-color: var(--color-accent) !important;
    color: var(--color-deep) !important;
}