* {
    font-family: 'Cairo', sans-serif;
}
body {
    touch-action: pan-x pan-y;
    background: #f8fafc;
    scroll-behavior: smooth;
}

/* ========== شريط التنقل ========== */
.navbar {
    direction: ltr;
    background: linear-gradient(135deg, #0b2b26, #1e4a3b);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.navbar-toggler {
    background-color: #f9c74f;
    border-color: #f9c74f;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: 0.3s;
    display: inline-block !important;
}
.navbar-toggler:hover {
    background-color: #e0b13b;
    border-color: #e0b13b;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: #f9c74f !important;
}
.navbar-brand i {
    color: #f9c74f;
    margin-left: 8px;
}

/* ========== قائمة Offcanvas الجانبية ========== */
.offcanvas {
    background: linear-gradient(135deg, #0b2b26, #1e4a3b);
}
.offcanvas-header {
    direction: ltr;
}
.offcanvas-header .offcanvas-title {
    color: #f9c74f;
    font-weight: 800;
}
.offcanvas-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* تنسيق الروابط داخل الـ Offcanvas – يجعل الأيقونة اليمنى تذهب إلى أقصى الحافة */
.offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    color: #f0f0f0 !important;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    transition: 0.3s;
    text-decoration: none;
}
.offcanvas-body .nav-link:hover {
    background: rgba(249, 199, 79, 0.2);
    color: #f9c74f !important;
    transform: translateX(-5px);
}
.offcanvas-body .nav-link i:first-child {
    width: 30px;
    margin-left: 12px;
    flex-shrink: 0;
}
.offcanvas-body .nav-link i.ms-auto {
    margin-inline-start: auto !important;
    flex-shrink: 0;
}
/* الفاصل */
.offcanvas-body .divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 12px 0;
}
.offcanvas-body .action-buttons {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.offcanvas-body .action-buttons .btn {
    border-radius: 40px;
    padding: 10px;
    font-weight: 600;
}
.ms-auto {
    margin-left: 0 !important;
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background-color: #f9c74f;
    border-color: #f9c74f;
    color: #1e4a3b;
}
.btn-warning {
    background-color: #f9c74f;
    border-color: #f9c74f;
    color: #1e4a3b;
    font-weight: 600;
}

/* ========== بطاقة ترحيب المستخدم ========== */
.user-welcome-card {
    background: rgba(249, 199, 79, 0.15);
    border-radius: 20px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(249, 199, 79, 0.3);
    transition: 0.2s;
    cursor: pointer;
}
.user-welcome-card:hover {
    background: rgba(249, 199, 79, 0.25);
    transform: translateX(-5px);
}
.user-avatar i {
    font-size: 42px;
    color: #f9c74f;
}
.user-info {
    flex: 1;
}
.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: 0.2s;
}
.user-welcome-card:hover .user-name {
    color: #f9c74f;
}

/* ========== صندوق الإدارة المميز (لوحة القائد) ========== */
.admin-panel {
    background: linear-gradient(135deg, rgba(30, 74, 59, 0.85), rgba(11, 43, 38, 0.95));
    border-radius: 28px;
    padding: 12px 8px;
    margin: 16px 0;
    border: 1px solid rgba(249, 199, 79, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}
.admin-panel:hover {
    border-color: #f9c74f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 10px 16px 10px 20px;
    border-radius: 40px;
    transition: all 0.3s;
    font-weight: 600;
}
.admin-nav .nav-link i:first-child {
    width: 30px;
    margin-left: 12px;
    flex-shrink: 0;
}
.admin-nav .nav-link i.ms-auto {
    margin-inline-start: auto !important;
    flex-shrink: 0;
}
.admin-nav .nav-link:hover {
    background: rgba(249, 199, 79, 0.25);
    transform: translateX(-3px);
    padding-right: 24px;
    color: #f9c74f !important;
}

/* ========== زر تسجيل الخروج ========== */
.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
    transition: 0.2s;
}
.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
}

/* ========== باقي التنسيقات (المحتوى الرئيسي، الهيرو، البطاقات، الفوتر) ========== */
.hero-section {
    background: linear-gradient(120deg, #eef2f3, #e2e8f0);
    padding: 60px 0 50px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 50px 50px;
}
.hero-title {
    font-weight: 800;
    color: #1e4a3b;
    font-size: 2.2rem;
}
.hero-title i {
    color: #f9c74f;
    margin-left: 12px;
}
.search-section {
    position: relative;
    max-width: 650px;
    margin: 25px auto 0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 200px;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    background: white;
}
.search-box input {
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
}
.search-box button {
    background: #1e4a3b;
    border: none;
    padding: 0 28px;
    color: white;
    transition: 0.3s;
}
.search-box button:hover {
    background: #f9c74f;
    color: #1e4a3b;
}
.filter-toggle-btn {
    background: #1e4a3b;
    border: none;
    border-radius: 60px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
}
.filters-section {
    background: white;
    border-radius: 28px;
    padding: 20px 25px;
    margin-top: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.filters-section.collapsed {
    display: none;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-label {
    font-weight: 600;
    color: #1e4a3b;
    background: #e9f5f2;
    padding: 6px 15px;
    border-radius: 40px;
}
.filter-select {
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 8px 20px;
    background: white;
}
.reset-filters {
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    color: #1e4a3b;
    font-weight: 600;
}
.team-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(0,0,0,0.12);
}
.team-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-card:hover .team-img {
    transform: scale(1.03);
}
.team-info {
    padding: 1.5rem;
}
.team-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e4a3b;
    margin-bottom: 0.75rem;
}
.team-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #334155;
}
.team-detail i {
    width: 24px;
    color: #f9c74f;
}
.level-badge {
    background: #e9f5f2;
    color: #1e4a3b;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
}
.btn-more {
    background: #1e4a3b;
    color: white;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-more:hover {
    background: #f9c74f;
    color: #1e4a3b;
}
footer {
    background: #0b2b26;
    color: #cbd5e1;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}
footer i {
    margin-right: 3px;
    color: #f9c74f;
}
footer .logo {
    color: #f9c74f;
}
#noResults {
    background: #fff;
    border-radius: 32px;
    padding: 40px 20px;
}
@media (max-width: 768px) {
    .team-name {
        font-size: 1.4rem;
    }
    .search-section {
        flex-direction: column;
    }
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    .filters-section {
        padding: 15px;
    }
}
@media (min-width: 992px) {
    .desktop-nav-links {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}