/* === RunDone - أنماط CSS الرئيسية المحسنة === */
/* الإصدار: 2.1 المحترف | التاريخ: 2024 */
/* =========================================
   1. المتغيرات والإعدادات الأساسية المحسنة
   ========================================= */

:root {
    /* نظام ألوان متدرج محسن */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #8b5cf6;
    
    /* تدرجات إدارية محسنة */
    --admin-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --admin-gradient-success: linear-gradient(135deg, var(--success), #34d399);
    --admin-gradient-warning: linear-gradient(135deg, var(--warning), #fbbf24);
    --admin-gradient-error: linear-gradient(135deg, var(--error), #f87171);
    --admin-gradient-accent: linear-gradient(135deg, var(--accent), #22d3ee);
    --admin-gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    
    /* تدرجات الرمادي المحسنة */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* الخطوط المحسنة */
    --font-primary: 'Inter', 'Poppins', 'Cairo', sans-serif;
    --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
    
    /* التأثيرات المتقدمة المحسنة */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 50px 100px -20px rgba(0, 0, 0, 0.25);
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-card-hover: 0 30px 80px rgba(37, 99, 235, 0.15);
    
    /* الزوايا والأنيميشنات المحسنة */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* أبعاد لوحة التحكم */
    --sidebar-width: 300px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;

    /* ألوان الوضع الفاتح المحسنة */
    --bg-primary: white;
    --bg-secondary: #f8fafc;
    --bg-card: white;
    --bg-sidebar: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.1);
}

/* الوضع المظلم المحسن بشكل كبير */
.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-sidebar: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 30px 80px rgba(37, 99, 235, 0.25);
}

/* =========================================
   2. الأساسيات والريست المحسنة
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: var(--transition-smooth);
    overflow-x: hidden;
    font-weight: 400;
}

body:lang(ar) {
    font-family: var(--font-arabic);
    direction: rtl;
    line-height: 1.8;
}

/* تحسينات الأداء */
.will-change {
    will-change: transform, opacity;
}

/* =========================================
   3. الحاويات والتخطيط المحسن
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* =========================================
   4. التايبوجرافي المحسنة للفخامة
   ========================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    background: var(--admin-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--admin-gradient);
    border-radius: 2px;
}

h2 { 
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    position: relative;
}

h3 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; }
h4 { font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important; }
h5 { font-size: clamp(1.2rem, 2vw, 1.5rem) !important; }
h6 { font-size: clamp(1rem, 1.5vw, 1.3rem) !important; }

p, span, div, a, li {
    font-weight: 500;
    color: var(--text-primary);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-gradient {
    background: var(--admin-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.contrast-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark-mode .contrast-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================================
   5. الهيدر والتنقل المحسن
   ========================================= */

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    height: var(--header-height);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.dark-mode .header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-lg);
}

.dark-mode .header.scrolled {
    background: rgba(15, 23, 42, 0.99);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

/* تنسيق صورة الشعار المحسنة */
.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--admin-gradient) border-box;
    padding: 2px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--admin-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 0.1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--admin-gradient);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* إزالة أيقونة السلة من شريط التنقل */
.nav-links .cart-icon {
    display: none !important;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--bg-secondary);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-secondary);
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   6. الأزرار والنماذج المحسنة
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    line-height: 1;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--admin-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline.light {
    color: white;
    border-color: white;
}

.btn-outline.light:hover {
    background: white;
    color: var(--primary);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    gap: 0.75rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* النماذج المحسنة */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    font-family: inherit;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.dark-mode .form-control {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark-mode .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* =========================================
   7. الأقسام الرئيسية المحسنة
   ========================================= */

.section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 20px);
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--admin-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* قسم البطل المحسن */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--admin-gradient);
    opacity: 0.95;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.page-hero .section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   8. البطاقات والعناصر المحسنة
   ========================================= */

/* تحسينات عامة للبطاقات */
.service-card,
.package-card,
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before,
.package-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--admin-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before,
.package-card:hover::before,
.product-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover,
.package-card:hover,
.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

/* بطاقات الخدمات المحسنة */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2.5rem;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--admin-gradient);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--admin-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.service-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.feature-tag {
    background: var(--admin-gradient-subtle);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* بطاقات الباقات المحسنة */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.package-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.package-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.package-badge.basic { background: var(--secondary); }
.package-badge.premium { background: var(--primary); }
.package-badge.enterprise { background: var(--warning); }

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.package-price .currency { font-size: 1.2rem; vertical-align: super; }
.package-price .period { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

.features-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: right;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-item i { color: var(--success); }
.feature-item.disabled { opacity: 0.5; text-decoration: line-through; }
.feature-item.disabled i { color: var(--text-muted); }

/* بطاقات المنتجات المحسنة */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    height: 220px;
    background: var(--admin-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 2;
}

.product-info {
    padding: 2rem;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* =========================================
   9. تحسينات الصور المحترفة
   ========================================= */

.img-responsive {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: var(--transition-smooth);
}

/* حاوية الصور المحسنة */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elegant);
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.image-container:hover::after {
    opacity: 1;
}

.image-container:hover .img-responsive {
    transform: scale(1.03);
}

/* أحجام الصور المحددة لشاشات الكمبيوتر */
@media (min-width: 992px) {
    .img-large {
        max-height: 600px;
        width: 100%;
        object-fit: cover;
    }
    
    .img-medium {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .img-small {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    /* تنسيق الصور في البطاقات */
    .service-card .img-responsive,
    .product-card .img-responsive {
        height: 200px;
        object-fit: cover;
    }
    
    /* صور الأقسام الرئيسية */
    .section-hero-image {
        max-height: 700px;
        width: 100%;
        object-fit: cover;
        border-radius: var(--radius-2xl);
        box-shadow: var(--shadow-card);
    }
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-gradient);
    color: white;
    font-size: 2rem;
}

/* تأثيرات التحميل للصور */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dark-mode .img-loading {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}

/* =========================================
   10. الفوتر المحسن
   ========================================= */

.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, #0f172a 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px) rotate(5deg);
    border-color: transparent;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* =========================================
   11. الأنيميشن والتأثيرات المحسنة
   ========================================= */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* تأثيرات التوهج */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--admin-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.3;
}

/* =========================================
   12. أدوات مساعدة محسنة
   ========================================= */

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

/* حدود دائرية أنيقة */
.rounded-elegant {
    border-radius: 20px;
}

.rounded-pill {
    border-radius: 50px;
}

/* =========================================
   13. الاستجابة للجوال المحسنة
   ========================================= */

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .package-card.featured {
        transform: none;
    }
    
    /* تحسينات الصور للشاشات المتوسطة */
    .img-responsive {
        max-height: 350px;
    }
    
    .service-card .img-responsive,
    .product-card .img-responsive {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-2xl);
        border-top: 1px solid var(--border-color);
        gap: 0.5rem;
        border-radius: var(--radius-xl);
        margin: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        border-radius: var(--radius-lg);
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .services-grid,
    .packages-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card,
    .package-card {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-hero {
        padding: 4rem 0 2rem;
    }
    
    .page-hero .section-title {
        font-size: 2rem !important;
    }
    
    .page-hero .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .service-card,
    .package-card,
    .product-card {
        padding: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .img-responsive {
        max-height: 250px;
    }
}

/* تحسينات للشاشات التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .package-card:hover,
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: none;
    }
}

/* =========================================
   14. تحسينات الوضع المظلم المحسنة
   ========================================= */

.dark-mode .service-card,
.dark-mode .package-card,
.dark-mode .product-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.dark-mode .feature-tag {
    background: var(--bg-primary);
    color: var(--primary-light);
}

.dark-mode .form-control::placeholder {
    color: var(--text-muted);
}

/* =========================================
   15. إشعارات النظام المحسنة
   ========================================= */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border-right: 4px solid var(--primary);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { 
    border-right-color: var(--success); 
}

.notification.error { 
    border-right-color: var(--error); 
}

.notification.warning { 
    border-right-color: var(--warning); 
}

.notification.info { 
    border-right-color: var(--primary); 
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success i { color: var(--success); }
.notification.error i { color: var(--error); }
.notification.warning i { color: var(--warning); }
.notification.info i { color: var(--primary); }

/* =========================================
   16. شريط التحديثات المحسن
   ========================================= */

.update-notification-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--admin-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.update-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.update-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-update {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-update:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-1px);
}

/* =========================================
   17. تحسينات الأداء المحسنة
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* طباعة محسنة */
@media print {
    .header,
    .footer,
    .btn,
    .notification,
    .update-notification-bar,
    .theme-toggle,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .container {
        max-width: none;
    }
    
    .service-card,
    .package-card,
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .img-responsive {
        max-height: 300px;
    }
}

/* =========================================
   18. تحسينات الصور الإضافية
   ========================================= */

/* تنسيق الصور في الجاليري */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* تأثيرات الريترو للصور */
.img-retro {
    filter: sepia(0.2) contrast(1.1) saturate(1.1);
}

.img-modern {
    filter: brightness(1.05) contrast(1.05);
}

.dark-mode .img-modern {
    filter: brightness(0.95) contrast(1.05);
}

/* =========================================
   19. حدود إضافية محسنة
   ========================================= */

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--admin-gradient) border-box;
}

.border-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.dark-mode .border-glow {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* =========================================
   20. أدوات التخطيط الإضافية
   ========================================= */

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* =========================================
   21. تأثيرات خلفية محسنة
   ========================================= */

.bg-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-blur-lg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bg-gradient-primary {
    background: var(--admin-gradient);
}

.bg-gradient-subtle {
    background: var(--admin-gradient-subtle);
}

/* =========================================
   22. تأثيرات النصوص الإضافية
   ========================================= */

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dark-mode .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode .text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* =========================================
   23. تحسينات نهائية
   ========================================= */

/* تحسينات للقراءة */
.reading-mode {
    max-width: 65ch;
    margin: 0 auto;
    line-height: 1.8;
}

/* تحسينات للعروض التقديمية */
.presentation-mode .service-card,
.presentation-mode .package-card,
.presentation-mode .product-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* تحسينات إمكانية الوصول */
@media (prefers-contrast: high) {
    :root {
        --primary: #1d4ed8;
        --primary-dark: #1e40af;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* تحسينات للطباعة الدقيقة */
@media print and (min-width: 1200px) {
    body {
        font-size: 12pt;
    }
    
    h1 { font-size: 24pt !important; }
    h2 { font-size: 20pt !important; }
    h3 { font-size: 16pt !important; }
    
    .service-card,
    .package-card,
    .product-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}