/* ================================================================
   [1] المتغيرات العامة (CSS VARIABLES) - تحديث الثيم الديناميكي
   ================================================================ */
:root {
    /* ألوان المود الافتراضي (ليل) */
    --main-bg: #000510;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* هوية دوري الأبطال والمنصة */
    --accent-color: #00d2ff; 
    --secondary-accent: #3a7bd5;
    --accent-cyan: #00f2fe;
    --font-main: 'Tajawal', sans-serif;
    
    /* ألوان رمضان وتأمين 2026 */
    --ramadan-gold: #ffd700;
    --border-gold: rgba(255, 215, 0, 0.5);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.6);
    --night-blue: #02040a;
    
    /* ألوان الحالات (Status) */
    --success-green: #2ecc71;
    --danger-red: #ff3b3b;
    --warning-yellow: #f1c40f;

    /* إعدادات الحركة (Transitions) */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* إعدادات الهيدر العلوي */
    --header-height: 80px;
    --header-bg: rgba(5, 10, 31, 0.85);
}

/* ================================================================
   [2] التنسيقات الأساسية (RESET & BASE)
   ================================================================ */
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    margin: 0; 
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #001c4d 0%, #000510 100%);
    transition: background 1.5s ease-in-out, color 0.8s ease-in-out;
    position: relative;
    z-index: 0;
    /* مسافة للهيدر العلوي */
    padding-top: var(--header-height); 
}

/* تحكم ثيم النهار */
body.day-mode {
    --text-color: #001c4d;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(43, 73, 5, 0.814);
    --header-bg: rgba(0, 0, 0, 0.85);
    background: linear-gradient(135deg, #1569b2 0%, #105fcf 100%) !important;
}

/* تحكم ثيم الليل */
body.night-mode {
    --text-color: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(5, 10, 31, 0.85);
    background: radial-gradient(circle at 50% 0%, #001c4d 0%, #000510 100%) !important;
}

/* السكرول بار (Scrollbar) */
::-webkit-scrollbar { 
    width: 10px; 
}
::-webkit-scrollbar-track { 
    background: var(--night-blue); 
}
::-webkit-scrollbar-thumb { 
    background: var(--glass-border); 
    border-radius: 5px; 
    border: 2px solid var(--night-blue);
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--accent-color); 
}	                

/* ================================================================
   [3] شريط التنقل العلوي الجديد (TOP HEADER GLASSMORPHISM)
   ================================================================ */
.main-header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9000;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* تأثير عند النزول بالصفحة (Scrolled State) */
.main-header.scrolled {
    height: 65px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
}

/* اللوجو */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--gold-glow);
    transition: transform 0.3s ease;
}

.logo-area:hover .nav-logo {
    transform: rotate(360deg);
}

.logo-text {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.gold-text {
    color: var(--ramadan-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* روابط الهيدر */
.header-nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 12px;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--ramadan-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.05);
}

.nav-link i {
    font-size: 1.2rem;
}

/* أدوات الهيدر (ساعة وزر الثيم) */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.digital-clock {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    letter-spacing: 2px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--ramadan-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle-btn:hover {
    background: var(--ramadan-gold);
    color: #000;
    box-shadow: var(--gold-glow);
    transform: translateY(-3px);
}

/* ================================================================
   [4] المنيو السفلي (للموبايل والاستخدام السريع)
   ================================================================ */
.main-nav {
    position: fixed;
    bottom: 25px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex; 
    gap: 15px;
    z-index: 8000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: var(--transition-smooth);
}

.nav-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:hover, .nav-item.active {
    color: var(--night-blue);
    background: var(--ramadan-gold);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.nav-item::after {
    content: attr(title);
    position: absolute;
    top: -45px; 
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0,0,0,0.9);
    color: var(--ramadan-gold);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    border: 1px solid var(--border-gold);
}

.nav-item:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ================================================================
   [5] خلفية السماء والبيئة (ATMOSPHERE)
   ================================================================ */
#sky-background {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: -10;
    transition: opacity 1s;
}

body.day-mode #sky-background { 
    opacity: 0; 
}

body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0; 
    width: 200%; 
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

body.day-mode::before {
    opacity: 0.4;
    background: url('https://www.transparenttextures.com/patterns/clouds.png') repeat;
    animation: moveClouds 120s linear infinite;
}

.stars-container, .moon-container, .lantern-wire {
    transition: opacity 1s, transform 1s;
}

body.day-mode .stars-container, 
body.day-mode .moon-container, 
body.day-mode .lantern-wire {
    opacity: 0;
    transform: translateY(-50px);
    pointer-events: none;
}

.star {
    position: absolute; 
    background: #fff; 
    border-radius: 50%;
    opacity: 0.8; 
    box-shadow: 0 0 8px #fff;
    animation: twinkle var(--d) infinite alternate;
}

.moon {
    position: absolute;
    top: 100px;
    right: 10%;
    width: 100px; 
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #fff, var(--ramadan-gold));
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.3);
    animation: moonPulse 6s infinite alternate;
    z-index: -5;
}
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 0 0 10px white;
    border-radius: 50%;
    opacity: 0;
    animation: star-move linear forwards;
}
@keyframes star-move {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-200px, 200px) scale(1); opacity: 0; }
}
/* ================================================================
   [6] حاوية الصفحات (PAGE LAYOUT)
   ================================================================ */
/* منع التداخل وإخفاء الصفحات غير النشطة */
.page {
    display: none; /* الكل مخفي افتراضياً */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding-top: 80px; /* عشان ما تدخل الصفحة تحت الهيدر اللي فوق */
}

.page.active {
    display: block !important; /* اظهر فقط الصفحة النشطة */
    opacity: 1;
}

/* تنظيف الهيدر عشان ما يغطي على المحتوى */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999; /* خليه دائماً فوق الكل */
    background: rgba(5, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* تصليح أماكن الكروت عشان ما تطير */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* ================================================================
   [7] الصفحة الرئيسية المطورة (HERO SECTION & STATUS)
   ================================================================ */
.hero-section { 
    text-align: center; 
    margin-bottom: 80px; 
    position: relative;
    padding: 60px 20px;
    background: radial-gradient(circle at center, rgba(255,215,0,0.05) 0%, transparent 70%);
    border-radius: 30px;
}

.hero-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 6rem;
    background: linear-gradient(180deg, var(--ramadan-gold) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.4));
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 10px;
    color: rgba(255,255,255,0.8);
    margin-top: 15px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* شريط حالة النظام (الجديد) */
.hero-status-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hero-status-bar span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#system-status { color: var(--success-green); }
#weather-status { color: var(--accent-cyan); }

/* قسم النفحات (Dhikr) */
.dhikr-section {
    margin-top: 60px;
    text-align: center;
    border-color: var(--ramadan-gold) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent) !important;
}

.dhikr-title {
    color: var(--ramadan-gold);
    margin-bottom: 20px;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.8rem;
}

#dhikrDisplay {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #fff;
    font-weight: 500;
}

/* ================================================================
   [8] البطاقات التفاعلية (CARDS & TILT)
   ================================================================ */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.tilt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s, border-color 0.3s;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.tilt-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
    transform: perspective(1000px) translateY(-10px);
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(40px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.tilt-card i {
    font-size: 3.5rem;
    color: var(--ramadan-gold);
}

.tilt-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    transform: translateZ(30px);
    color: #fff;
}

.tilt-card p {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    transform: translateZ(20px);
}

/* ================================================================
   [9] صفحة الرادار والملعب (RADAR, PITCH & CONTROLS)
   ================================================================ */
.special-gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
    animation: pulse-gold-btn 2s infinite;
}

.screenshot-btn {
    background: rgba(255, 255, 255, 0.1);
}
.screenshot-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

	                .radar-controls {
	                    display: flex;
	                    justify-content: center;
	                    gap: 15px;
	                    margin-bottom: 30px;
	                    flex-wrap: wrap;
	                }

	                .radar-btn {
	                    background: rgba(255, 255, 255, 0.05);
	                    border: 1px solid var(--border-gold);
	                    color: #fff;
	                    padding: 10px 25px;
	                    border-radius: 20px;
	                    cursor: pointer;
	                    transition: var(--transition);
	                    font-family: 'Tajawal', sans-serif;
	                    display: flex;
	                    align-items: center; gap: 8px;
	                }

	                .radar-btn.active, .radar-btn:hover {
	                    background: var(--ramadan-gold);
	                    color: #000;
	                    box-shadow: 0 0 15px var(--ramadan-gold);
	                }

	         /* متغيرات الملعب التكتيكي الجديد (يمكن وضعها هنا أو في :root) */
	         :root {
	            --pitch-color: #14532d;
	            --pitch-line-color: rgba(255, 255, 255, 0.8);
	            --gold-glow-pitch: 0 0 20px rgba(250, 204, 21, 0.6);
	         }

	         /* حاوية الملعب الجديد */
	         #tactical-pitch-wrapper {
	            position: relative;
	            width: 100%;
	            height: 650px;
	            perspective: 1500px;
	            margin-bottom: 50px;
	         }

	         #tactical-futsal-pitch {
	            position: relative;
	            width: 100%;
	            height: 100%;
	            background-color: var(--pitch-color);
	            border: 5px solid var(--pitch-line-color);
	            border-radius: 4px;
	            box-shadow: 0 40px 100px rgba(0,0,0,0.8);
	            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	            overflow: hidden;
	            transform: rotateX(20deg); /* الوضع الافتراضي 3D */
	         }

	         #tactical-futsal-pitch.is-2d { transform: rotateX(0deg); }

	         /* خطوط الملعب الخماسي */
	         .tp-midline { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: var(--pitch-line-color); transform: translateX(-50%); }
	         .tp-center-circle { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; border: 4px solid var(--pitch-line-color); border-radius: 50%; transform: translate(-50%, -50%); }
	         .tp-penalty-arc { position: absolute; width: 140px; height: 240px; border: 4px solid var(--pitch-line-color); top: 50%; transform: translateY(-50%); }
	         .tp-penalty-arc.home { left: -70px; border-radius: 0 120px 120px 0; }
	         .tp-penalty-arc.away { right: -70px; border-radius: 120px 0 0 120px; }

	         /* الأيقونات التكتيكية للاعبين */
	         .player-node {
	        	    position: absolute; width: 50px; height: 50px; border-radius: 50%; cursor: grab; z-index: 50;
	        	    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px;
	        	    color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.5); touch-action: none;
	        	    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
	        	    font-family: 'Orbitron', sans-serif;
                    overflow: visible !important;
	        	 }
	         .player-node:active { cursor: grabbing; transform: scale(1.2); box-shadow: 0 10px 25px rgba(0,0,0,0.8); z-index: 100 !important; }
	         .player-node:hover { transform: scale(1.1); z-index: 60; }

	         .team-red { background: #ff3b3b; border: 2px solid #fff; }
	         .team-blue { background: #3b82ff; border: 2px solid #fff; }

	         /* تفاصيل اللاعب (الاسم والمركز والأدوار/التعليمات) */
             .player-name-center {
                position: relative;
                z-index: 10;
                font-size: 12px;           /* خط أوضح للاسم */
                font-weight: bold;
                font-family: 'Tajawal', sans-serif;
                padding: 0 4px;            /* حافة خفيفة حول الاسم */
             }

             .role-badge-bottom {
                position: absolute;
                bottom: -26px;              /* أبعدناه أكثر عن الدائرة */
                left: 50%;
                transform: translateX(-50%);
                display: inline-block;
                font-size: 12px;            /* تكبير خط المركز */
                background: var(--ramadan-gold);
                color: #000;
                padding: 2px 10px;          /* أنحف طولياً، أوسع عرضياً */
                border-radius: 10px;
                font-weight: 900;
                transition: all 0.3s ease;
                font-family: 'Tajawal', sans-serif;
             }

	         .team-role-top-right {
                position: absolute;
                top: -28px;                 /* أعلى يمين الدائرة مع مسافة أمان */
                right: -20px;               /* أبعدناه عن مركز الدائرة */
                background: linear-gradient(135deg, #facc15, #f59e0b); /* ذهبي متوهج */
                color: #1f2933;
                padding: 2px 10px;          /* نحيف طولياً، أعرض عرضياً */
                border-radius: 4px;         /* مستطيل أنيق */
                font-size: 12px;            /* خط موحد 12px */
                font-weight: 900;
                border: 1px solid rgba(120,53,15,0.7);
                z-index: 12;
                min-width: 60px;
                text-align: center;
                white-space: nowrap;
                box-shadow: 0 0 8px rgba(250,204,21,0.8); /* توهج ذهبي */
             }

             .instruction-top-left {
                position: absolute;
                top: -14px;                 /* أسفل الدور مباشرة مع فجوة صغيرة */
                right: -20px;               /* نفس محاذاة الدور لليمين */
                background: linear-gradient(135deg, #38bdf8, #0ea5e9); /* أزرق سماوي */
                color: #022c41;
                padding: 2px 10px;          /* نحيف وأعرض */
                border-radius: 4px;         /* مستطيل مشابه */
                font-size: 12px;            /* نفس حجم الخط */
                font-weight: 700;
                border: 1px solid rgba(12,74,110,0.8);
                z-index: 11;
                min-width: 70px;
                text-align: center;
                white-space: nowrap;
                box-shadow: 0 0 8px rgba(56,189,248,0.75); /* توهج أزرق سماوي */
             }

             /* شارة الكابتن C أسفل يمين الدائرة */
             .captain-badge {
                position: absolute;
                bottom: -6px;
                right: -4px;
                width: 14px;
                height: 14px;
                border-radius: 50%;
                background: radial-gradient(circle at 30% 20%, #fef9c3, #b45309);
                color: #111827;
                font-size: 0.55rem;
                font-weight: 900;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid rgba(0,0,0,0.7);
                box-shadow: 0 0 8px rgba(250,204,21,0.9);
                z-index: 13;
             }

	         .role-glow { box-shadow: var(--gold-glow-pitch); animation: pulse-role 1.5s infinite; }

	         @keyframes pulse-role { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

	         /* فقاعة الإحداثيات */
	         #live-coord {
	            position: absolute; top: 10px; right: 10px; background: rgba(15, 23, 42, 0.9);
	            border-right: 4px solid var(--ramadan-gold); padding: 10px 20px; border-radius: 4px; font-size: 14px;
	            z-index: 1000; display: none; backdrop-filter: blur(5px); color: var(--ramadan-gold); font-weight: bold;
	         }

             /* القائمة المتقدمة التي تظهر عند الضغط المزدوج على اللاعب */
             .tactical-advanced-menu {
                position: absolute;
                background: radial-gradient(circle at top, rgba(56,189,248,0.28), rgba(15,23,42,0.98));
                border: 1px solid var(--glass-border);
                border-radius: 14px;
                padding: 14px 16px 12px;
                min-width: 280px;
                z-index: 1200;
                box-shadow: 0 18px 45px rgba(0,0,0,0.8);
                font-family: 'Tajawal', sans-serif;
                direction: rtl;
                backdrop-filter: blur(16px);
             }

             .tam-header {
                font-weight: 800;
                font-size: 0.95rem;
                margin-bottom: 10px;
                color: var(--ramadan-gold);
                display: flex;
                align-items: center;
                gap: 6px;
             }

             .tam-header::before {
                content: "\f1e3";
                font-family: "Font Awesome 6 Free";
                font-weight: 900;
                font-size: 0.9rem;
                color: var(--accent-cyan);
             }

             .tam-group {
                margin-bottom: 10px;
             }

             .tam-group label {
                display: block;
                font-size: 0.72rem;
                color: #cbd5f5;
                margin-bottom: 4px;
             }

             .tam-group select {
                width: 100%;
                padding: 5px 8px;
                border-radius: 8px;
                border: 1px solid rgba(148,163,184,0.6);
                background: rgba(15,23,42,0.96);
                color: #e5e7eb;
                font-size: 0.78rem;
                appearance: none;
             }

             .tam-group select:focus {
                outline: none;
                border-color: var(--accent-cyan);
                box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
             }

             .tam-actions {
                display: flex;
                justify-content: flex-start;
                gap: 6px;
                margin-top: 6px;
             }

             .tam-btn {
                padding: 4px 10px;
                border-radius: 6px;
                border: none;
                font-size: 0.7rem;
                cursor: pointer;
                background: rgba(255,255,255,0.1);
                color: #fff;
                transition: 0.2s;
             }

             .tam-btn:hover {
                background: rgba(255,255,255,0.2);
             }

             .tam-save {
                background: var(--ramadan-gold);
                color: #000;
             }

             .tam-save:hover {
                box-shadow: 0 0 10px var(--ramadan-gold);
             }

             .tam-clear {
                background: rgba(220,53,69,0.8);
             }

             .tam-clear:hover {
                box-shadow: 0 0 10px rgba(220,53,69,0.8);
             }
	                #stats-view { display: none; animation: fadeIn 0.5s; }
	                
	                .stats-table-container {
	                    background: rgba(0,0,0,0.3);
	                    border-radius: 20px;
	                    padding: 20px;
	                    margin-bottom: 20px;
	                    border: 1px solid rgba(255,255,255,0.1);
	                    overflow-x: auto;
	                }
	                
	                .stats-table { width: 100%; border-collapse: collapse; min-width: 500px; }
	                .stats-table th { padding: 15px; color: var(--ramadan-gold); border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
	                .stats-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
	                .stats-table tr:last-child td { border-bottom: none; }
	                .stats-table tr:hover td { background: rgba(255,255,255,0.05); }

/* ================================================================
   [10] النوافذ المنبثقة للتكتيكات (MODALS & GLASS EFFECTS)
   ================================================================ */
.tactic-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none; /* مخفي دائماً لحين الاستدعاء */
    justify-content: center; 
    align-items: center; 
    z-index: 100000;
}

.glass-effect {
    background: rgba(25, 30, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px; 
    padding: 35px; 
    width: 90%; 
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.02);
    color: white; 
    text-align: center;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.library-header h3 {
    color: var(--ramadan-gold);
    font-size: 1.5rem;
    font-family: 'Reem Kufi', sans-serif;
}

.close-btn {
    font-size: 2rem;
    color: var(--danger-red);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.2);
}

.tactic-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 20px; 
}

.tactic-item {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 15px; 
    padding: 20px;
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: all 0.3s;
}

.tactic-item:hover {
    border-color: var(--ramadan-gold); 
    background: rgba(255, 215, 0, 0.1); 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ins-box {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-right: 4px solid var(--ramadan-gold);
    border-radius: 10px;
    text-align: right;
    animation: fadeIn 0.5s ease;
}

/* نافذة اختيار الفريق */
.team-selector-card {
    padding: 40px;
    max-width: 400px;
}

.team-selector-card h4 {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.team-btns { 
    display: flex; 
    gap: 15px; 
    margin: 30px 0; 
}

.btn-a { 
    background: #00d2ff; color: #000; flex: 1; padding: 15px; 
    border-radius: 12px; border: none; font-weight: bold; font-size: 1.1rem; cursor: pointer; 
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4); transition: 0.3s;
}
.btn-b { 
    background: #ff3e3e; color: #fff; flex: 1; padding: 15px; 
    border-radius: 12px; border: none; font-weight: bold; font-size: 1.1rem; cursor: pointer; 
    box-shadow: 0 5px 15px rgba(255, 62, 62, 0.4); transition: 0.3s;
}

.btn-a:hover, .btn-b:hover { transform: translateY(-3px); }

.btn-cancel {
    background: transparent;
    color: #aaa;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
}

/* ================================================================
   [11] نظام الإحصائيات الشامل - عرض كامل (FULL WIDTH SYSTEM)
   ================================================================ */

/* إلغاء أي قيود على العرض في الصفحة نفسها */
#stats-page, .stats-tables-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box;
}

/* الكارد الزجاجي - لازم يفرش بعرض الشاشة */
.stats-table-container, .stats-card-glass {
    width: 100% !important;
    display: block;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow-x: auto; /* عشان الجوال */
}

/* الجدول - السر في table-layout: auto أو fixed */
.stats-table, .elite-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
}

/* تنسيق العناوين (اللاعب، الأهداف...) */
.stats-table th, .elite-table th {
    color: #ffd700; /* ذهبي رمضان */
    padding: 15px 5px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 1.1rem;
}

/* تنسيق الخلايا (الأرقام) */
.stats-table td, .elite-table td {
    padding: 15px 5px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* العمود الأول (الأسماء) - هاد اللي لازم يفرش ويضل عاليمين */
.stats-table td:first-child, .elite-table td:first-child,
.stats-table th:first-child, .elite-table th:first-child {
    text-align: right !important;
    padding-right: 20px !important;
    width: 35% !important; /* نعطي الاسم مساحة عشان الجدول يفرش */
    color: #ffd700;
}

/* تأثير اللمعان عند المرور */
.stats-card-glass:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}
/* ================================================================
   [17] العناصر التفاعلية والإشعارات (INTERACTIVE & UI)
   ================================================================ */

/* بطاقة الهيرو التفاعلية - تفرش بالعرض */
.interactive-hero-card {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

.card-inner h3 { font-family: 'Orbitron'; font-size: 2.2rem; color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

/* نظام الإشعارات الزجاجي */
#notification-container {
    position: fixed;
    top: 25px;
    left: 25px; /* غيرتها لليسار عشان ما تغطي على أزرار الهيدر */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-toast {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 18px;
    padding: 18px 28px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* أنيميشن التوهج والظهور */
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { border-color: rgba(255, 215, 0, 0.3); box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    50% { border-color: rgba(255, 215, 0, 0.8); box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); }
}

.glass-toast { animation: slideIn 0.5s ease-out, glowPulse 2s infinite; }

/* عناصر إضافية */
.status-badge {
    background: #ffd700;
    color: #000;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
/* ================================================================
   [12] المدفع والتوقيت (CANNON & PRAYERS)
   ================================================================ */
/* تنسيق حاوية الكروت */
.prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* تنسيق الكرت نفسه */
.prayer-unit {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* الأيقونة داخل الكرت */
.prayer-icon-wrapper {
    background: rgba(255, 215, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 12px;
}

.prayer-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--ramadan-gold);
}

/* النصوص داخل الكرت */
.prayer-name-text {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 5px;
}

.prayer-time-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

/* تمييز الصلاة القادمة */
.active-next {
    border-color: var(--ramadan-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.05);
}
.cannon-section {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 242, 255, 0.05));
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.cannon-section.maghrib-active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--ramadan-gold);
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.1), 0 0 40px rgba(255, 215, 0, 0.2);
}

.countdown-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 30px 0;
    direction: ltr;
    letter-spacing: 5px;
}

/* ================================================================
   [13] واجهة الطقس (WEATHER APP)
   ================================================================ */
.weather-card-hero {
    background: var(--glass-bg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.weather-main-info h2 { 
    font-size: 6.5rem; 
    margin: 10px 0; 
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to bottom, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 242, 254, 0.3));
}

.hourly-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scrollbar-width: none; 
    cursor: grab;
}
.hourly-scroll-container::-webkit-scrollbar { display: none; }

.hourly-item {
    min-width: 110px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}
.hourly-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
}

/* ================================================================
   [14] تأثيرات 3D وأرشيف الأمجاد (CHAMPIONS LEAGUE)
   ================================================================ */
/* ================================================================
   🏆 UCL TROPHY PLATINUM CSS RE-DESIGN
   ================================================================ */

:root {
    --ucl-navy: #000510;
    --ucl-blue-deep: #001f4d;
    --ucl-silver-light: #f8fafc;
    --ucl-silver-mid: #cbd5e0;
    --ucl-silver-dark: #4a5568;
    --ucl-chrome-reflect: linear-gradient(135deg, #ffffff 0%, #cbd5e0 25%, #718096 50%, #e2e8f0 75%, #ffffff 100%);
    --ucl-glow: rgba(0, 210, 255, 0.4);
}

/* 1. الحاوية الرئيسية (البطاقة) */
.cl-champions-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 650px;
    background: radial-gradient(circle at center, var(--ucl-blue-deep) 0%, var(--ucl-navy) 100%);
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    margin: 20px auto;
}

/* 2. الخلفية المتحركة (نجوم تتحرك ببطء) */
.cl-stars-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.1;
    animation: starsSlide 100s linear infinite;
}

@keyframes starsSlide {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

.cl-nebula-glow {
    position: absolute;
    width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(0, 81, 255, 0.15) 0%, transparent 70%);
    top: -25%; left: -25%;
    filter: blur(50px);
    animation: nebulaMove 15s ease-in-out infinite;
}

@keyframes nebulaMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 30px) scale(1.1); }
}

/* 3. مشهد الكأس العائم */
.cl-trophy-scene {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 10;
}

.cl-trophy-container {
    position: relative;
    animation: floatAnimation 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-25px) rotateY(15deg); }
}

/* 4. تفاصيل الكأس (The Big Ears) */
.ucl-trophy {
    position: relative;
    width: 180px;
    height: 280px;
}

/* الوعاء الرئيسي للجسم */
.ucl-bowl {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 160px;
    background: var(--ucl-chrome-reflect);
    border-radius: 10px 10px 70px 70px;
    box-shadow: 
        inset -15px -15px 30px rgba(0,0,0,0.4),
        inset 15px 15px 30px rgba(255,255,255,0.7);
    overflow: hidden;
    z-index: 5;
}

/* المقابض (الأذنين) */
.ucl-handle {
    position: absolute;
    top: 50px;
    width: 80px;
    height: 140px;
    border: 14px solid #cbd5e0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
    background: transparent;
}

.ucl-handle-left {
    left: -45px;
    transform: rotate(-20deg);
    border-right-color: transparent;
    border-bottom-color: transparent;
    box-shadow: inset 5px 5px 10px rgba(255,255,255,0.8), -5px 5px 15px rgba(0,0,0,0.4);
}

.ucl-handle-right {
    right: -45px;
    transform: rotate(20deg);
    border-left-color: transparent;
    border-bottom-color: transparent;
    box-shadow: inset -5px 5px 10px rgba(255,255,255,0.8), 5px 5px 15px rgba(0,0,0,0.4);
}

/* الرقبة والحافة */
.ucl-rim {
    position: absolute;
    top: 35px; left: 50%;
    transform: translateX(-50%);
    width: 145px; height: 35px;
    background: linear-gradient(to bottom, #f8fafc, #718096);
    border-radius: 50%;
    z-index: 6;
    border-bottom: 2px solid rgba(0,0,0,0.3);
}

.ucl-rim::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%; transform: translateX(-50%);
    width: 130px; height: 20px;
    background: #000;
    border-radius: 50%;
}

/* القاعدة والجذع */
.ucl-stem {
    position: absolute;
    bottom: 50px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: linear-gradient(to right, #718096, #ffffff, #718096);
    z-index: 4;
}

.ucl-base-tier-1 {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 35px;
    background: var(--ucl-chrome-reflect);
    border-radius: 10px;
    z-index: 3;
}

.ucl-base-tier-2 {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 130px; height: 25px;
    background: #1a202c;
    border-radius: 5px 5px 15px 15px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* الظل تحت الكأس */
.ucl-shadow {
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 20px;
    background: rgba(0,0,0,0.5);
    filter: blur(10px);
    border-radius: 50%;
    animation: shadowScale 5s ease-in-out infinite;
}

@keyframes shadowScale {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(0.6); opacity: 0.3; }
}

/* توهج الكأس */
.cl-trophy-aura {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--ucl-glow) 0%, transparent 70%);
    z-index: 0;
    animation: auraPulse 3s infinite alternate;
}

@keyframes auraPulse {
    from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* 5. النصوص السفلية */
.cl-content {
    text-align: center;
    margin-top: 20px;
    z-index: 20;
}

.cl-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 2.2rem;
    letter-spacing: 5px;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.cl-divider {
    color: #ffd700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cl-slogan {
    color: var(--ucl-silver-mid);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

/* إضافات "الكروم" النهائية */
.ucl-reflection-main {
    position: absolute;
    top: 0; left: 20%;
    width: 20%; height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-20deg);
}

.ucl-reflection-shine {
    position: absolute;
    top: 10px; right: 10%;
    width: 10px; height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    filter: blur(2px);
}
/* ================================================================
   [15] الإشعارات (NOTIFICATIONS)
   ================================================================ */
#notification-container {
    position: fixed;
    top: 100px; /* نزلتها عشان ما تغطي عالهيدر */
    right: 20px;
    z-index: 100000;
    pointer-events: none;
    width: 350px;
}

/* ================================================================
   [16] الحركات (KEYFRAMES & ANIMATIONS)
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-gold-btn {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* ================================================================
   [17] الاستجابة للشاشات الصغيرة (RESPONSIVE DESIGN)
   ================================================================ */
@media (max-width: 992px) {
    /* بدلاً من الإخفاء، سنجعل الروابط تسبح أفقياً */
    .header-nav-links { 
        display: flex !important; 
        overflow-x: auto; /* تفعيل السحب الجانبي */
        white-space: nowrap; /* منع نزول الأزرار لسطر جديد */
        gap: 10px;
        padding: 10px 5px;
        width: 100%;
        scrollbar-width: none; /* إخفاء شريط التمرير المزعج */
        -ms-overflow-style: none;
    }
    
    .header-nav-links::-webkit-scrollbar { 
        display: none; /* إخفاء الشريط في كروم وسفاري */
    }

    .nav-link { 
        font-size: 0.9rem; 
        padding: 8px 15px; 
        flex-shrink: 0; /* يمنع الأزرار من الانضغاط */
        background: rgba(255, 255, 255, 0.05); /* خلفية خفيفة لتمييز الأزرار */
        border-radius: 10px;
    }

    .hero-title { font-size: 3.5rem; } /* تصغير العنوان قليلاً ليتناسب مع الجوال */
    .hero-status-bar { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .main-header { height: 70px; }
    .logo-text { font-size: 1.4rem; }
    
    .section-title { font-size: 2.5rem; }
    
    #tactical-pitch-wrapper { 
        height: 500px;
        transform: none; /* إلغاء الـ 3D في الموبايل لتسهيل اللمس */
    }
    #tactical-futsal-pitch { transform: none; }
    
    .countdown-main { font-size: 3rem; }
    
    .main-nav { width: 95%; padding: 12px; bottom: 15px; }
    .nav-item { width: 45px; height: 45px; font-size: 1.2rem; }
    
    .weather-main-info h2 { font-size: 4.5rem; }
    .weather-card-hero { padding: 30px; }
    
    .tactic-grid { grid-template-columns: 1fr; }
}
.prayer-icon-wrapper i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
}

.active-next .prayer-icon-wrapper i, 
.active-maghrib .prayer-icon-wrapper i {
    transform: scale(1.2); /* تكبير بسيط للصلاة القادمة */
    color: #fff !important; /* خليها تضوي أبيض بالصلاة الجاية */
    filter: drop-shadow(0 0 10px var(--ramadan-gold));
}
/* الفواصل */
.section-divider {
    text-align: center;
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--glass-border);
    line-height: 0.1em;
}
.section-divider span {
    background: var(--main-bg);
    padding: 0 15px;
    color: var(--ramadan-gold);
    font-weight: bold;
}

/* كروت الإحصائيات الشفافة */
.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--ramadan-gold);
}

.stat-label { font-size: 0.8rem; color: #aaa; display: block; }
.stat-value { font-size: 1.1rem; font-weight: bold; color: #fff; }

/* حاوية الحجز الفخمة */
.booking-status-container {
  width: 100%; /* هذا الرقم اللي بخليه يفرش بعرض الموقع */
    max-width: 100%; /* تأكيد إنه ما يلتزم بحجم أقصى أصغر */
    margin-left: 0;
    margin-right: 0;
    border-radius: 0; /*  اختياري: إذا بدك الزوايا تضل دائرية خليها، إذا بدك إياها ملزقة بالشاشة تماماً خليها 0 */
  

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    margin-top: 20px;
    text-align: center;
}

/* 1. إخفاء كل الصفحات بشكل افتراضي */
.page {
    display: none !important; /* إخفاء تام */
    visibility: hidden;
    opacity: 0;
}

/* 2. إظهار الصفحة النشطة فقط */
.page.active {
    display: block !important; /* إظهار إجباري */
    visibility: visible;
    opacity: 1;
    animation: fadeIn 0.4s ease-in-out; /* حركة خفيفة للدخول */
}

/* حركة دخول ناعمة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. تأكد إن المواقيت والطقس مش ماخدين لون شفاف */
#cannon, #weather {
    color: white !important;
    min-height: 100vh; /* عشان تاخد مساحة الشاشة */
}

/* الحاوية الأساسية */
.nav-container {
    position: relative;
    display: inline-block;
}

/* زر الهامبرغر المتوهج */
.hamburger-glow {
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: 0.3s;
    filter: drop-shadow(0 0 5px #ffd700);
}

.hamburger-glow span {
    width: 35px;
    height: 5px;
    background: #ffd700;
    border-radius: 5px;
}

/* النافذة الزجاجية المغبشة */
.glass-nav {
    position: fixed;
    top: 80px;
    right: -350px; /* مخفية */
    width: 280px;
    background: rgba(7, 1, 1, 0.847); /* شفافة جداً */
    backdrop-filter: blur(30px); /* التغبيش اللي طلبته */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(28, 5, 5, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    /* أنيميشن الطوفان */
    animation: floatNav 6s ease-in-out infinite;
}

.glass-nav.active {
    right: 20px; /* تظهر بجانب الحافة */
}

/* البطاقات المتوهجة داخل القائمة */
.nav-card {
    background: rgba(255, 255, 255, 0.234);
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.nav-card:hover {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* توهج البطاقة */
}

.nav-card .icon { font-size: 1.5rem; }
.nav-card .text { color: #fff; font-weight: bold; }

/* أنيميشن الطوفان الخفيف (كأنها بالهواء) */
@keyframes floatNav {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.nav-header {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,215,0,0.3);
    padding-bottom: 10px;
}
header {
    display: flex !important;
    flex-direction: row !important; /* سطر واحد غصب عنه */
    justify-content: space-between; /* اللوجو على الشمال والباقي على اليمين */
    align-items: center; /* توسيط عمودي عشان ما يكون شي طالع وشي نازل */
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 5, 10, 0.896);
    backdrop-filter: blur(10px);
}

/* حاوية العناصر اللي على اليمين (الساعة، الثيم، الهامبرغر) */
.header-right-side {
    display: flex;
    align-items: center;
    gap: 15px; /* المسافة بين الساعة والثيم والمنيو */
}

/* تأكد إن الساعة والمنيو ما عندهم margin-top بيخرب الشكل */
#header-clock, .theme-toggle, .hamburger-glow {
    margin: 0 !important;
    display: flex;
    align-items: center;
}


.tactic-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important; /* سواد كامل عشان نكشف المحتوى */
    display: none; /* رح نغيرها بـ Flex */
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999999 !important;
}

.tactic-modal-content {
    background: #1a1a1a !important; /* لون واضح */
    border: 3px solid #ffcc00 !important;
    padding: 25px !important;
    border-radius: 15px !important;
    width: 80% !important;
    max-width: 400px !important;
    color: white !important;
    display: block !important; /* تأكيد الإظهار */
}

.tactics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.tactic-overlay {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none; /* سيتحول إلى flex بواسطة JS */
    justify-content: center;
    align-items: center;
    z-index: 999999;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ff4444; /* بيقلب أحمر عند اللمس */
    transform: scale(1.2);
}

/* ستايل الكارت بتاع الخطة جوه المربع */
.tactic-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.tactic-card:hover {
    border-color: gold;
    background: rgba(255, 215, 0, 0.1);
}

/* تمييز أيقونة الصالة الملكية */
.nav-card[onclick*="royal-hall"] .icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    text-shadow: 0 0 10px gold;
}
.royal-container {
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid var(--border-gold);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 4, 10, 0.95));
}

.royal-icon {
    font-size: 3rem;
    color: var(--ramadan-gold);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px gold);
}

.royal-header h1 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    color: var(--ramadan-gold);
}

.history-card, .platform-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: right; /* عشان المحتوى عربي */
    border-right: 4px solid var(--ramadan-gold);
}

.royal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.royal-btn {
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.4s;
}

.join-btn {
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
}

.support-btn {
    background: rgba(255, 215, 0, 0.1);
    color: var(--ramadan-gold);
    border: 1px solid var(--ramadan-gold);
}

.royal-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
