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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

/* الهيدر */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.logo:hover .logo-icon::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-icon i {
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 2;
    animation: footballSpin 4s linear infinite;
}

@keyframes footballSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -1px;
}

.site-name-accent {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b35;
    letter-spacing: -1px;
    text-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* زر القائمة الجانبية */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* القائمة الجانبية - تصميم احترافي محسّن */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    padding: 0;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar.active {
    right: 0;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.sidebar-header h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i {
    font-size: 1.6rem;
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    font-weight: 300;
    line-height: 1.4;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
    position: relative;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 4px solid transparent;
    position: relative;
    font-weight: 500;
    font-size: 1rem;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: width 0.3s ease;
    z-index: 1;
}

.sidebar-menu a:hover::before {
    width: 100%;
}

.sidebar-menu a:hover {
    background: transparent;
    border-right-color: #667eea;
    color: #667eea;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.sidebar-menu a i {
    margin-left: 1rem;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
    color: #667eea;
}

.sidebar-menu .btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.sidebar-menu .btn-telegram:hover {
    background: linear-gradient(135deg, #229ed9 0%, #0088cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.sidebar-menu .btn-telegram i {
    color: white;
    margin-left: 0.8rem;
}

.sidebar-menu .btn {
    margin: 0.8rem 2rem;
    justify-content: center;
    border-radius: 25px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-menu .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.sidebar-menu .btn:hover::before {
    width: 300px;
    height: 300px;
}

.sidebar-menu .btn-vip {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #333;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    animation: pulse-vip 3s ease-in-out infinite;
}

@keyframes pulse-vip {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
        transform: scale(1.02);
    }
}

.sidebar-menu .btn-vip:hover {
    background: linear-gradient(45deg, #ffb300, #ff8f00);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.sidebar-menu .btn-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-menu .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.sidebar-menu .btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.sidebar-menu .btn-primary:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* إخفاء الأزرار في الموبايل وإظهار زر القائمة */
@media (max-width: 768px) {
    .nav-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.8rem;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
    
    .menu-toggle:hover {
        background: linear-gradient(45deg, #5a67d8, #6b46c1);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .header-content {
        justify-content: center;
        position: relative;
    }
    
    .logo {
        position: static;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .site-name, .site-name-accent {
        font-size: 1.8rem;
    }
    
    .sidebar {
        width: 320px;
        right: -320px;
    }
    
    .sidebar-menu a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .sidebar-menu .btn {
        margin: 0.6rem 1.5rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .logo-icon i {
        font-size: 18px;
    }
    
    .site-name, .site-name-accent {
        font-size: 1.4rem;
    }
    
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .menu-toggle {
        font-size: 1.1rem;
        padding: 0.6rem;
    }
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #ff6b35);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.btn-vip {
    background: linear-gradient(45deg, #9c27b0, #ffc107);
    color: white;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* المحتوى الرئيسي */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* قسم المباريات */
.matches-section {
    /* إزالة الخلفية البيضاء لتظهر البطاقات مباشرة */
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #4CAF50, #ff6b35);
    border-radius: 2px;
}

/* بطاقة المباراة */
.match-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4CAF50, #ff6b35);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.match-card.vip {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9c4 0%, #ffecb3 50%, #ffd54f 100%) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
    position: relative;
    overflow: hidden;
    /* إجبار VIP على نفس أحجام البطاقات العادية */
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

.match-card.vip::before {
    content: '' !important;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.3) 50%,
        transparent 70%
    ) !important;
    animation: vipShimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes vipShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.match-card.vip:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.4) !important;
}



.match-card.vip .team-logo {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #bf8f00 !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    margin-bottom: 0.5rem !important;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* ضمان أن جميع عناصر البطاقة VIP بنفس حجم البطاقات العادية */
.match-card.vip .team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.match-card.vip .match-teams {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    flex-wrap: nowrap !important;
}

.match-card.vip .team-name {
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

/* ضمان حجم نفس حجم البطاقات العادية */
.match-card.vip .match-time {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    text-align: center;
    position: relative;
    z-index: 2;
}

.match-card.vip .vs {
    color: #666 !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    margin: 0 0.8rem !important;
    text-shadow: none !important;
    flex-shrink: 0;
}

.match-card.vip .prediction {
    background: linear-gradient(45deg, #ffc107, #ff9800) !important;
    color: #333 !important;
    font-weight: 900 !important;
    font-size: 1.05rem !important;
    padding: 0.9rem 1.6rem !important;
    border-radius: 40px !important;
    text-align: center;
    margin: 0.5rem auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem;
    width: fit-content;
    letter-spacing: 0.2px;
    text-shadow: none !important;
    border: 2px solid #ff8f00;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* حالات مختلفة للتوقعات VIP */
.match-card.vip .prediction.win {
    background: linear-gradient(45deg, #4CAF50, #66BB6A) !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.match-card.vip .prediction.lost {
    background: linear-gradient(45deg, #f44336, #ef5350) !important;
    color: white !important;
    border-color: #f44336 !important;
}

.match-card.vip .prediction.pending {
    background: linear-gradient(45deg, #ffc107, #ff9800) !important;
    color: #333 !important;
    border-color: #ff8f00 !important;
}

.match-card.vip .prediction:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4) !important;
}

.match-card.vip .prediction.win:hover {
    background: linear-gradient(45deg, #45a049, #5cbf60) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4) !important;
}

.match-card.vip .prediction.lost:hover {
    background: linear-gradient(45deg, #da190b, #e53935) !important;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4) !important;
}

/* إضافة علامة VIP */
.match-card.vip::after {
    content: 'VIP' !important;
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #9c27b0, #ffc107) !important;
    color: white !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    z-index: 3 !important;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3) !important;
}

.match-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap; /* منع التفاف الفرق */
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0; /* يمنع التمدد المفرط */
}

.team-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* منع انكماش الشعار */
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
}

.team-logo:has(img) {
    background: white;
    border: 2px solid #ddd;
}

.team-name {
    font-weight: bold;
    color: #333;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    word-break: break-word; /* تقسيم الكلمات الطويلة */
}

.vs {
    font-size: 1rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 0 0.8rem;
    flex-shrink: 0; /* منع انكماش VS */
}

.prediction {
    padding: 0.9rem 1.6rem;
    border-radius: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0.5rem auto 0;
    display: flex; /* block-level for centering with margin auto */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.prediction:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* حالات نتيجة التوقع */
.prediction.pending {
    background: #222 !important;
    color: #fff !important;
}

.prediction.win {
    background: linear-gradient(90deg, #43a047 0%, #66bb6a 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.3);
}

.prediction.lost {
    background: linear-gradient(90deg, #e53935 0%, #ef5350 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.3);
}

.prediction .status-badge {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
}

/* تنسيقات التوقع المقفل - بسيط واحترافي */
.prediction.locked-simple {
    background: linear-gradient(45deg, #757575, #9e9e9e) !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prediction.locked-simple:hover {
    background: linear-gradient(45deg, #616161, #757575) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prediction.locked-simple i {
    font-size: 1rem;
    color: #ffc107;
}

.prediction.locked-simple span {
    font-size: 1rem;
    font-weight: 600;
}

/* تنسيقات VIP المعاينة */
.match-card.vip-preview {
    border-left: 5px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%) !important;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2) !important;
    position: relative;
}

/* تنسيقات التوقع المقفل VIP - محسن */
.prediction.vip-locked {
    background: linear-gradient(45deg, #ffc107, #ff9800) !important;
    color: #333 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction.vip-locked::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.5) 50%,
        transparent 70%
    );
    animation: shimmer 2.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.prediction.vip-locked:hover {
    background: linear-gradient(45deg, #ffb300, #ff8f00) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.prediction.vip-locked i {
    font-size: 1.3rem;
    color: #333;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.prediction.vip-locked span {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* نافذة VIP */
.vip-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.vip-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 1.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}

.close:hover {
    color: #000;
}

.vip-info {
    text-align: center;
    margin: 2rem 0;
}

.vip-info h3 {
    color: #9c27b0;
    margin-bottom: 1rem;
}

.bank-info, .whatsapp-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-right: 4px solid #9c27b0;
}

.bank-info h4, .whatsapp-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.bank-info p, .whatsapp-info p {
    color: #666;
    font-family: monospace;
    font-size: 1.1rem;
}

/* نماذج تسجيل الدخول والتسجيل */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* لوحة تحكم الأدمن */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-title {
    color: #333;
    margin-bottom: 1rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-nav a:hover {
    background: #45a049;
}

/* جدول المباريات في لوحة التحكم */
.matches-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.matches-table table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table th,
.matches-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.status-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
}

.status-tag[data-status="pending"] { background: #616161; }
.status-tag[data-status="win"] { background: #43a047; }
.status-tag[data-status="lost"] { background: #e53935; }

.matches-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.matches-table tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: #2196F3;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-delete {
    background: #f44336;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* نموذج إضافة/تعديل المباراة */
.match-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* رسائل التنبيه */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* الفوتر */
.footer {
    background: #ffffff !important;
    padding: 3rem 0 !important;
    margin: 3rem 1rem 1rem 1rem !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    z-index: 999 !important;
    display: block !important;
    width: auto !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    background: transparent !important;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.instagram {
    background: linear-gradient(45deg, #e4405f, #fd5949, #fccc63);
}

.footer-copyright {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .footer {
        margin: 2rem 0.5rem 0.5rem 0.5rem !important;
        padding: 2.5rem 0 !important;
        border-radius: 15px !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-links a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .footer-social {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .footer-copyright {
        font-size: 1.1rem;
        font-weight: 600;
    }
}

/* تصميم متجاوب */
@media (max-width: 1024px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .logo-icon i {
        font-size: 18px;
    }
    
    .site-name, .site-name-accent {
        font-size: 1.6rem;
    }
    
    .logo-container {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        position: relative;
    }
    
    .logo {
        position: static;
        transform: none;
    }
    
    .nav-buttons {
        position: absolute;
        left: 1rem;
    }
    
    .menu-toggle {
        position: absolute;
        right: 1rem;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }
    
    .logo-icon i {
        font-size: 16px;
    }
    
    .site-name, .site-name-accent {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .logo-icon i {
        font-size: 14px;
    }
    
    .site-name, .site-name-accent {
        font-size: 1.2rem;
    }
    
    .logo-container {
        gap: 6px;
    }
}

/* شاشات صغيرة جداً - ضمان بقاء الفرق جنباً إلى جنب */
@media (max-width: 480px) {
    .match-teams {
        flex-direction: row !important;
        gap: 0.2rem;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .team {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    
    .team-logo {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    
    .team-name {
        font-size: 0.7rem;
    }
    
    .vs {
        margin: 0 0.2rem;
        font-size: 0.75rem;
        flex-shrink: 0 !important;
    }
}

/* قاعدة إضافية لجميع الشاشات الصغيرة */
@media (max-width: 768px) {
    .match-teams {
        flex-direction: row !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .team {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 0 !important;
    }
}

/* قاعدة قوية لضمان بقاء الفرق جنباً إلى جنب على جميع الأجهزة */
.match-teams {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* أنيميشن التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* أنماط إضافية لصفحة VIP */
.subscription-info {
    text-align: center;
    margin-top: 2rem;
}

.subscription-info h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #ffc107;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price span {
    font-size: 1rem;
    color: white;
    opacity: 0.8;
}

.subscription-details {
    text-align: center;
    margin: 2rem 0;
}

.price-large {
    font-size: 4rem;
    font-weight: bold;
    color: #9c27b0;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.price-large span {
    font-size: 1.2rem;
    color: #666;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.payment-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.payment-info h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expired-message {
    text-align: center;
    margin: 2rem 0;
}

.expired-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.expired-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.expired-actions .btn {
    min-width: 150px;
}
