/* ============================================================
   BattleGames - التصميم الفريد
   الألوان: 051620 - 52572c - ddc889 - 51572c - bfaf7a
   ============================================================ */

:root {
    /* ===== الألوان الجديدة ===== */
    --color-deep: #051620;
    --color-forest: #52572c;
    --color-gold: #ddc889;
    --color-olive: #51572c;
    --color-sand: #bfaf7a;
    
    /* ===== مشتقات الألوان ===== */
    --color-gold-glow: rgba(221, 200, 137, 0.25);
    --color-sand-glow: rgba(191, 175, 122, 0.2);
    --color-forest-glow: rgba(82, 87, 44, 0.35);
    --color-olive-glow: rgba(81, 87, 44, 0.2);
    
    /* ===== الخلفيات ===== */
    --bg-deep: #051620;
    --bg-surface: #0d1f2a;
    --bg-card: #1a2a1a;
    --bg-surface-light: #152a1a;
    
    /* ===== النصوص (ألوان مباشرة) ===== */
    --text-primary: #f0ead8;
    --text-secondary: #c4b99a;
    --text-muted: #8a8268;
    
    /* ===== الألوان المتوافقة ===== */
    --gold: #ddc889;
    --gold-dark: #a0885a;
    --gold-light: #e8d4a0;
    
    --win: #8a9a5a;
    --win-dark: #6a7a3a;
    --loss: #bf7a6a;
    --loss-dark: #9a5a4a;
    
    /* ===== الزجاج ===== */
    --glass-bg: rgba(5, 22, 32, 0.7);
    --glass-border: rgba(191, 175, 122, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    
    /* ===== البطاقات ===== */
    --card-bg: rgba(13, 31, 42, 0.8);
    --card-border: rgba(191, 175, 122, 0.1);
    
    /* ===== الحدود ===== */
    --border-color: rgba(191, 175, 122, 0.12);
    
    /* ===== الزوايا ===== */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* ===== إضافات ===== */
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ===== إعادة تعيين ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100vh;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 100%, #10151c 0%, #070a0e 55%, #050608 100%);
    color: #f0ead8; /* لون مباشر بدلاً من المتغير */
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== تثبيت المحتوى الرئيسي ===== */
.page {
    flex: 1;
    padding-top: 80px;
    position: relative;
    z-index: 2; /* تأكد أن المحتوى فوق الخلفية */
}

/* ============================================================
   خلفية متحركة - إصلاح لتكون خلفية فقط
   ============================================================ */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 100%, #10151c 0%, #070a0e 55%, #050608 100%);
}

#emberCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

/* ============================================================
   الهيرو - التأكد من ظهور النص
   ============================================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    z-index: 2; /* فوق الخلفية */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3; /* فوق كل شيء */
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.hero-glow {
    background: rgba(5, 22, 32, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(191, 175, 122, 0.15);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff !important;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #ddc889, #bfaf7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: #c4b99a;
    font-size: clamp(16px, 1.5vw, 20px);
    margin-top: 14px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   الإحصائيات
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 40px 0 48px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(5, 22, 32, 0.7);
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #ddc889;
    box-shadow: 0 8px 40px rgba(191, 175, 122, 0.08);
}

.stat-number {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: 34px;
    color: #ddc889 !important;
}

.stat-label {
    color: #c4b99a;
    font-size: 14px;
    font-weight: 600;
}

.stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   الجداول والبطاقات
   ============================================================ */
.section-block {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #f0ead8;
}

.sub-heading {
    font-size: 18px;
    margin: 28px 0 14px;
    font-weight: 700;
    color: #f0ead8;
}

.muted {
    color: #c4b99a;
    font-size: 14px;
}

.link-more {
    color: #ddc889;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.link-more:hover {
    text-shadow: 0 0 20px rgba(221, 200, 137, 0.3);
}

/* ===== البطاقات ===== */
.team-card {
    background: rgba(5, 22, 32, 0.7);
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 16px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
    display: block;
}

.team-card:hover {
    border-color: #ddc889;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(221, 200, 137, 0.08);
}

.team-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    color: #f0ead8;
}

.player-card {
    background: rgba(5, 22, 32, 0.7);
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.player-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #ddc889 !important;
    box-shadow: 0 16px 60px rgba(221, 200, 137, 0.15) !important;
}

/* ============================================================
   الجدول
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 22, 32, 0.7);
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(191, 175, 122, 0.08);
    font-size: 14px;
    color: #f0ead8;
}

.data-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #c4b99a;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.rank-cell {
    font-weight: 700;
    color: #ddc889;
}

.win {
    color: #8a9a5a;
    font-weight: 600;
}

.loss {
    color: #bf7a6a;
    font-weight: 600;
}

.empty-row {
    color: #c4b99a;
    text-align: center;
    padding: 24px !important;
}

/* ============================================================
   الأزرار
   ============================================================ */
.btn-login {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    border: 2px solid rgba(221, 200, 137, 0.3) !important;
    border-radius: 50px !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #ddc889, #bfaf7a) !important;
    color: #0a1a2a !important;
    box-shadow: 0 4px 24px rgba(221, 200, 137, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 40px rgba(221, 200, 137, 0.5) !important;
    border-color: #ffd700 !important;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ddc889, #bfaf7a);
    color: #0a1a2a;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(221, 200, 137, 0.4);
    box-shadow: 0 6px 30px rgba(221, 200, 137, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 50px rgba(221, 200, 137, 0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(191, 175, 122, 0.25);
    color: #f0ead8;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ddc889;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(221, 200, 137, 0.2);
}

/* ============================================================
   الهيدر والمنيو - إصلاح كامل
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    background: rgba(5, 22, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(191, 175, 122, 0.1);
    transition: 0.3s ease;
    height: auto;
    min-height: 70px;
}

.site-header.scrolled {
    background: rgba(5, 22, 32, 0.96);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 64px;
}

/* ===== الشعار ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
}

.brand-icon img {
    height: 40px;
    width: auto;
    max-height: 44px;
    display: block;
    border-radius: 4px;
}

.brand-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #ddc889, #bfaf7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.brand-badge {
    font-size: 9px;
    background: rgba(82, 87, 44, 0.6);
    color: #ddc889;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(221, 200, 137, 0.15);
    white-space: nowrap;
}

/* ===== القائمة الرئيسية ===== */
.main-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav a {
    color: #c4b99a;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #f0ead8;
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
    color: #ddc889;
    background: rgba(221, 200, 137, 0.08);
}

.main-nav a.active::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #ddc889;
    border-radius: 2px;
    margin: 2px auto 0;
}

/* ===== منطقة المستخدم ===== */
.auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== زر تسجيل الدخول ===== */
.btn-login {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 20px !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #ddc889, #bfaf7a) !important;
    color: #0a1a2a !important;
    box-shadow: 0 4px 20px rgba(221, 200, 137, 0.25) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 30px rgba(221, 200, 137, 0.4) !important;
}

/* ===== القائمة المنسدلة للمستخدم ===== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(191, 175, 122, 0.15);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    color: #f0ead8;
    transition: 0.3s ease;
}

.user-menu-trigger:hover {
    border-color: #ddc889;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(191, 175, 122, 0.2);
    object-fit: cover;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f0ead8;
}

.user-menu-caret {
    color: #8a8268;
    font-size: 11px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #0d1f2a;
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.user-menu-dropdown.open {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #c4b99a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s ease;
}

.user-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f0ead8;
}

.user-menu-dropdown a.danger {
    color: #bf7a6a;
}

.user-menu-dropdown a.danger:hover {
    background: rgba(191, 122, 106, 0.1);
}

/* ===== قائمة التحديات المنسدلة بالنافبار ===== */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-trigger .caret {
    font-size: 10px;
    color: #8a8268;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: #0d1f2a;
    border: 1px solid rgba(191, 175, 122, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.nav-dropdown-menu.open {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

.nav-dropdown-menu.open ~ .nav-dropdown-trigger .caret,
.nav-dropdown-trigger.menu-open .caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #c4b99a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ddc889;
}

/* ===== كروت المتصدرين المشتركة (اللاعبين + الفرق) - نفس التصميم بكل الصفحات ===== */
.podium-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.podium-card {
    background: rgba(5,22,32,0.7);
    border: 1px solid rgba(191,175,122,0.1);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
    width: 190px;
    display: block;
}
.podium-card:hover {
    transform: translateY(-4px);
    border-color: #ddc889;
    box-shadow: 0 8px 30px rgba(221, 200, 137, 0.12);
}
.podium-card.rank-1 {
    order: 2;
    width: 220px;
    padding: 28px 20px;
    border-color: rgba(221, 200, 137, 0.4);
    background: linear-gradient(180deg, rgba(221,200,137,0.08), rgba(5,22,32,0.7));
    box-shadow: 0 8px 40px rgba(221, 200, 137, 0.1);
}
.podium-card.rank-2 { order: 1; }
.podium-card.rank-3 { order: 3; }
.podium-medal { font-size: 30px; margin-bottom: 8px; }
.podium-avatar-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 12px; }
.podium-card.rank-1 .podium-avatar-wrap { width: 88px; height: 88px; }
.podium-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #ddc889; }
.podium-avatar.letter-avatar { border-radius: 16px; }
.podium-name { font-weight: 800; font-size: 16px; margin-bottom: 2px; color: #f0ead8; }
.podium-rank { color: #c4b99a; font-size: 12px; margin-bottom: 10px; }
.podium-stats { display: flex; justify-content: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.podium-stats .stat-points { color: #ddc889; font-weight: 700; }
.podium-stats .stat-win { color: #8a9a5a; font-weight: 700; }
.podium-stats .stat-loss { color: #bf7a6a; font-weight: 700; }
.podium-rate { color: #8a8268; font-size: 12px; }

.letter-avatar {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 26px;
    border: 2px solid rgba(255,255,255,0.15);
}

.team-progress {
    width: 100%; height: 5px; background: rgba(255,255,255,0.08);
    border-radius: 999px; overflow: hidden; margin: 6px 0 2px;
}
.team-progress-bar {
    height: 100%; background: linear-gradient(90deg, #8a9a5a, #6f8046);
    border-radius: 999px;
}

.team-stats-row { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.team-stats-row .stat-box,
.player-tile-stats .stat-box {
    flex: 1; background: rgba(5,22,32,0.5); border-radius: 8px; padding: 6px 4px;
    display: flex; flex-direction: column; align-items: center;
}
.team-stats-row .stat-box span,
.player-tile-stats .stat-box span { font-weight: 800; font-size: 13px; }
.team-stats-row .stat-box small,
.player-tile-stats .stat-box small { color: #8a8268; font-size: 9px; }
.stat-rate span { color: #ddc889; }
.stat-win-box span { color: #8a9a5a; }
.stat-loss-box span { color: #bf7a6a; }

.player-search-form { display:flex; gap:10px; align-items:center; max-width:480px; margin:0 auto 28px; }
.player-search-input {
    flex:1; background:rgba(5,22,32,0.6); border:1px solid rgba(191,175,122,0.15); border-radius:12px;
    padding:12px 16px; color:#f0ead8; font-family:'Cairo',sans-serif; font-size:14px;
}
.player-search-btn { background:linear-gradient(135deg,#ddc889,#bfaf7a); border:none; border-radius:12px; padding:12px 18px; cursor:pointer; font-size:15px; }
.player-search-clear { color:#8a8268; font-size:13px; text-decoration:none; white-space:nowrap; }

.pagination-row { display:flex; justify-content:center; align-items:center; gap:6px; flex-wrap:wrap; margin-top:20px; }
.page-btn {
    min-width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px;
    background:rgba(5,22,32,0.5); border:1px solid rgba(191,175,122,0.1); color:#f0ead8; text-decoration:none;
    font-size:13px; font-weight:600; transition:0.2s ease;
}
.page-btn:hover { border-color:#ddc889; color:#ddc889; }
.page-btn.active { background:linear-gradient(135deg,#ddc889,#bfaf7a); color:#051620; border-color:transparent; }
.page-btn.disabled { opacity:0.35; pointer-events:none; }
.page-dots { color:#8a8268; padding:0 4px; }

/* ===== استجابة الجوال لكروت المتصدرين والشبكات ===== */
@media (max-width: 768px) {
    .podium-card { width: 130px; padding: 14px 10px; }
    .podium-card.rank-1 { width: 150px; padding: 18px 12px; }
    .podium-avatar-wrap { width: 56px !important; height: 56px !important; }
    .podium-card.rank-1 .podium-avatar-wrap { width: 68px !important; height: 68px !important; }
    .podium-name { font-size: 13px; }
    .team-grid, .players-grid, .team-card, #teamsGrid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
    .podium-row { gap: 8px; }
    .podium-card { width: 100px; padding: 10px 6px; }
    .podium-card.rank-1 { width: 118px; padding: 14px 8px; }
    .podium-avatar-wrap { width: 44px !important; height: 44px !important; margin-bottom: 6px !important; }
    .podium-card.rank-1 .podium-avatar-wrap { width: 54px !important; height: 54px !important; }
    .podium-name { font-size: 11px; }
    .podium-rank, .podium-rate { font-size: 10px; }
    .podium-stats { font-size: 11px; gap: 6px; }
    .team-grid, .players-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
}

/* ===== البطولات (قائمة + تفاصيل) ===== */
.tournament-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tournament-tab {
    flex: 1; min-width: 140px;
    background: rgba(5,22,32,0.5); border: 1px solid rgba(191,175,122,0.1); border-radius: 12px;
    padding: 12px 18px; color: #c4b99a; font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tournament-tab:hover { border-color: rgba(221,200,137,0.3); color: #f0ead8; }
.tournament-tab.active {
    background: linear-gradient(135deg, rgba(221,200,137,0.12), rgba(191,175,122,0.06));
    border-color: #ddc889; color: #ddc889;
}
.tab-count { background: rgba(255,255,255,0.08); border-radius: 50px; padding: 1px 9px; font-size: 12px; }
.tournament-tab.active .tab-count { background: rgba(221,200,137,0.2); }

.tournament-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tournament-tile {
    display: block; background: rgba(5,22,32,0.6); border: 1px solid rgba(191,175,122,0.1); border-radius: 16px;
    padding: 20px; text-decoration: none; color: inherit; transition: 0.3s ease; backdrop-filter: blur(10px);
}
.tournament-tile:hover { transform: translateY(-4px); border-color: #ddc889; box-shadow: 0 10px 30px rgba(221,200,137,0.1); }
.tournament-tile.finished { opacity: 0.85; }
.tournament-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tournament-icon { font-size: 22px; }
.tournament-status-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px; border: 1px solid rgba(191,175,122,0.2); }
.tournament-status-badge.open { color: #ddc889; background: rgba(221,200,137,0.1); border-color: rgba(221,200,137,0.25); }
.tournament-status-badge.live { color: #8a9a5a; background: rgba(138,154,90,0.12); border-color: rgba(138,154,90,0.3); }
.tournament-status-badge.closed { color: #8a8268; background: rgba(255,255,255,0.04); }
.tournament-tile-name { font-family: 'Tajawal', sans-serif; font-size: 18px; margin: 0 0 10px; color: #f0ead8; }
.tournament-tile-meta { display: flex; gap: 14px; font-size: 13px; color: #c4b99a; margin-bottom: 12px; }
.tournament-champion {
    font-size: 13px; font-weight: 700; color: #ddc889; margin-bottom: 10px;
    background: rgba(221,200,137,0.06); border-radius: 8px; padding: 6px 10px;
}
.tournament-standings { border-top: 1px solid rgba(191,175,122,0.08); padding-top: 10px; margin-top: 6px; }
.tournament-standings-label { font-size: 11px; color: #8a8268; margin-bottom: 8px; }
.tournament-standing-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; }
.standing-rank {
    width: 18px; height: 18px; border-radius: 50%; background: rgba(221,200,137,0.12);
    color: #ddc889; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.standing-name { flex: 1; color: #f0ead8; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standing-wins { color: #8a9a5a; font-weight: 700; font-size: 11px; }

@media (max-width: 480px) {
    .tournament-grid { grid-template-columns: 1fr; }
    .tournament-tab { min-width: 0; font-size: 13px; padding: 10px; }
}

/* ===== زر القائمة للجوال ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(191, 175, 122, 0.2);
    color: #c4b99a;
    font-size: 24px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.nav-toggle:hover {
    border-color: #ddc889;
    color: #f0ead8;
}

/* ===== القائمة الجانبية للجوال ===== */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(5, 22, 32, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(191, 175, 122, 0.1);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-nav.open {
    display: flex;
    max-height: 600px;
    opacity: 1;
}

.mobile-nav a {
    padding: 14px 24px;
    color: #c4b99a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(191, 175, 122, 0.05);
    transition: 0.3s ease;
}

.mobile-nav a:hover {
    color: #f0ead8;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav a.active {
    color: #ddc889;
    background: rgba(221, 200, 137, 0.06);
}

.mobile-nav a.danger {
    color: #bf7a6a;
}

/* ============================================================
   RESPONSIVE - إصلاح المنيو للجوال
   ============================================================ */

/* التابلت */
@media (max-width: 1024px) {
    .main-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    .brand-text {
        font-size: 17px;
    }
}

/* الجوال - إخفاء المنيو وإظهار زر القائمة */
@media (max-width: 880px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 8px 16px;
        min-height: 56px;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .nav-toggle {
        display: block !important;
    }
    
    .auth-area .user-name {
        display: none;
    }
    
    .auth-area .btn-login {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }
    
    .brand-icon img {
        height: 32px !important;
    }
    
    .brand-text {
        font-size: 16px !important;
    }
    
    .brand-badge {
        font-size: 7px;
        padding: 1px 6px;
    }
}

/* الجوال الصغير */
@media (max-width: 480px) {
    .header-inner {
        padding: 6px 12px;
        min-height: 48px;
    }
    
    .auth-area .btn-login {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }
    
    .brand-text {
        font-size: 14px !important;
    }
    
    .brand-icon img {
        height: 28px !important;
    }
    
    .mobile-nav a {
        padding: 12px 18px;
        font-size: 14px;
    }
}
/* ============================================================
   الفوتر
   ============================================================ */
.site-footer {
    background: rgba(5, 22, 32, 0.8);
    border-top: 1px solid rgba(191, 175, 122, 0.12);
    padding: 40px 20px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.site-footer a {
    color: #c4b99a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.site-footer a:hover {
    color: #ddc889;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .page {
        padding: 80px 16px 40px;
    }
    .hero {
        padding: 80px 16px 40px;
    }
    .hero-glow {
        padding: 28px 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .player-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 70px 10px 30px;
    }
    .hero {
        padding: 60px 12px 30px;
        min-height: 60vh;
    }
    .hero-glow {
        padding: 20px 14px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    .player-grid {
        grid-template-columns: 1fr !important;
    }
    .btn-hero, .btn-hero-secondary {
        font-size: 13px !important;
        padding: 10px 20px !important;
        width: 100%;
    }
}