/* =========================================
   ملف التصميم الشامل (style.css) - واجهة العميل
   ========================================= */

:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --primary-color: #007AFF; 
    --text-dark: #333333;
    --text-muted: #9E9E9E; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    direction: rtl; 
    padding-bottom: 90px; 
}

/* بطاقة الرصيد العلوية */
.header-card {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    margin: 15px;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none; 
}

.user-info p { margin: 5px 0; font-size: 14px; color: #ddd;}
.user-info h3 { margin: 0; font-size: 24px; color: #00ffcc;}

.btn-charge {
    background-color: #00ffcc;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: none;
}

/* السلايدر */
.slider-container {
    margin: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
}

.slider-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* شريط الإعلانات المتصل */
.announcement-bar {
    background-color: #f8f9fa;
    color: #555;
    padding: 8px 12px;
    font-size: 10px; /* تم تصغير الخط جداً هنا */
    font-weight: bold;
    display: flex;
    align-items: center;
    border: none;
    margin-bottom: 15px;
}

.announcement-bar i {
    margin-left: 8px;
    color: #ff9800;
    font-size: 12px;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite; /* تم تبطيء السرعة هنا (30 ثانية للفة) */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* شريط البحث */
.search-container {
    margin: 0 10px 20px;
}

.search-box {
    width: 100%;
    padding: 16px 20px;
    border-radius: 25px;
    border: none;
    background-color: #f0f2f5;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-shadow: none;
}

.search-box:focus { background-color: #e4e6e9; }

/* شبكة الأقسام */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.category-item {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    background-color: #fff;
    border: none;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-title {
    margin-top: 8px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
}

/* القائمة السفلية البارزة */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08); 
    border-radius: 25px 25px 0 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    padding: 15px 0 25px;
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.nav-item i { font-size: 22px; }