@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

/* =========================================
   איפוס גלובלי
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
:root { --brand-silver: #D1D5DB; --brand-silver-dark: #9CA3AF; --brand-gold: #D6B953; }

body.tables-page-body {
    background-color: #0b0c10 !important;
    background-image: radial-gradient(circle at 50% 10%, rgba(200, 210, 230, 0.12) 0%, transparent 60%), url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M10 16.95l-5-2.88V8.3l5-2.88 5 2.88v5.77l-5 2.88zm32 0l-5-2.88V8.3l5-2.88 5 2.88v5.77l-5 2.88zM26 26l-5-2.88v-5.77l5-2.88 5 2.88v5.77L26 26zM26 7.7l-5-2.88V-.94l5-2.88 5 2.88v5.77L26 7.7z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    color: #ffffff !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
    min-height: 100vh !important; overflow-x: hidden !important; display: flex !important; flex-direction: column !important;
    font-family: 'Rubik', sans-serif;
}

.app-layout-custom { flex: 1; display: flex; gap: 20px; padding: 20px; width: 100%; max-width: 1600px; margin: 0 auto; height: calc(100vh - 80px); }

.app-island {
    background: linear-gradient(145deg, #1c1f26 0%, #111318 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden; display: flex; flex-direction: column;
}

/* =========================================
   סיידבר ימני (אקורדיון מדינות)
   ========================================= */
.right-nav { flex: 0 0 260px; }
.search-box-wrapper { padding: 15px; border-bottom: 1px dashed rgba(212, 175, 55, 0.35); }
.search-box { position: relative; width: 100%; }
.search-box input { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px 35px 10px 15px; color: #fff; font-family: inherit; font-size: 13px; transition: 0.3s; }
.search-box input:focus { border-color: #D4AF37; outline: none; background: rgba(0,0,0,0.6); }
.search-box i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #D4AF37; font-size: 14px; }

.leagues-nav-list { flex: 1; overflow-y: auto; padding: 10px; direction: ltr; }
.leagues-nav-list::-webkit-scrollbar { width: 4px; }
.leagues-nav-list::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.5); border-radius: 10px; }
.leagues-list-inner { display: flex; flex-direction: column; gap: 8px; direction: rtl; }

.country-group { display: flex; flex-direction: column; gap: 4px; }
.country-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer; transition: 0.2s; }
.country-header:hover { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); }
.country-title-area { display: flex; align-items: center; gap: 10px; }
.country-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.country-name { font-size: 14px; font-weight: bold; color: #fff; }
.country-chevron { color: #a0a0a0; font-size: 12px; transition: transform 0.3s; }

.country-leagues { display: none; flex-direction: column; gap: 4px; padding-right: 15px; margin-top: 4px; }
.country-leagues.open { display: flex; }

.league-nav-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: 0.3s; text-align: right; width: 100%; font-family: inherit; color: #D1D5DB; }
.league-nav-item:hover { background: rgba(255,255,255,0.05); transform: translateX(-3px); color: #fff;}
.league-nav-item.active { background: rgba(212, 175, 55, 0.1); border-color: #D4AF37; color: #D4AF37; }
.league-nav-title { font-size: 12px; font-weight: 500; flex: 1; }
.fav-star { font-size: 13px; transition: 0.2s; z-index: 10; padding: 5px; }
.fav-star.gold-star { color: #D4AF37; text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); }
.fav-star.empty-star { color: rgba(255,255,255,0.2); }
.fav-star.empty-star:hover { color: #D4AF37; transform: scale(1.2); }

/* =========================================
   מרכז התוכן
   ========================================= */
.center-content-area { flex: 1; min-width: 0; padding: 0; }
.dashboard-scroll-area { height: 100%; overflow-y: auto; overflow-x: hidden; padding: 20px; direction: ltr;}
.dashboard-scroll-area::-webkit-scrollbar { width: 6px; }
.dashboard-scroll-area::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }
.dashboard-inner-rtl { direction: rtl; display: flex; flex-direction: column; gap: 20px;}

/* משחק המוקד (Hero) - מגרש כדורגל מעוצב נטו בקוד (בלי תמונות שישברו) */
.hero-banner {
    position: relative; width: 100%; height: 140px; border-radius: 12px; overflow: hidden;
    border: 1px solid #D4AF37;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    
    /* יצירת דשא וקווי מגרש - נראה כמו אצטדיון אמיתי ממבט על */
    background-color: #2b582b;
    background-image: 
        /* נקודת אמצע */
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 3px, transparent 4px),
        /* עיגול האמצע */
        radial-gradient(circle at 50% 50%, transparent 40px, rgba(255,255,255,0.6) 41px, rgba(255,255,255,0.6) 43px, transparent 44px),
        /* קו החצי */
        linear-gradient(to right, transparent calc(50% - 1.5px), rgba(255,255,255,0.6) calc(50% - 1.5px), rgba(255,255,255,0.6) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        /* פסי הדשא הבהירים והכהים */
        repeating-linear-gradient(90deg, #336633, #336633 40px, #2a552a 40px, #2a552a 80px);
        
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
}

.hero-overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    /* הצללה קלה כדי שהטקסט והסמלים יבלטו על רקע הדשא */
    background: radial-gradient(circle, rgba(11,12,16,0.15) 0%, rgba(11,12,16,0.8) 100%); 
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; width: 100%; justify-content: center; color: #fff; margin-top: 5px;}

.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: bold; font-size: 14px; width: 140px; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.8);}
.hero-team span { order: 1; margin-bottom: 2px;} 
.hero-team img { order: 2; width: 45px; height: 45px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));}

.hero-info { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-league { font-size: 11px; color: #000; font-weight: 900; background: #D4AF37; padding: 3px 12px; border-radius: 15px; box-shadow: 0 2px 10px rgba(212,175,55,0.4); text-transform: uppercase;}
.hero-score-time { font-size: 28px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-top: 2px;}
.hero-status { font-size: 11px; color: #ff4a4a; font-weight: bold; animation: pulse 1.5s infinite; background: rgba(0,0,0,0.6); padding: 2px 8px; border-radius: 8px;}

/* רשת משחקים עם גלילה פנימית קבועה */
.dashboard-split { display: flex; gap: 20px; align-items: stretch; }
.dashboard-half { flex: 1; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.15);}
.section-title { font-size: 16px; font-weight: 900; color: #D4AF37; margin: 0; padding-bottom: 5px; border-bottom: 2px solid rgba(212,175,55,0.3); display: block;}

/* הקונטיינר של הרשימות עם גלילה פנימית כדי לא לשבור פרופורציה */
.matches-scroll-container { max-height: 250px; overflow-y: auto; direction: ltr; padding-right: 5px;}
.matches-scroll-container::-webkit-scrollbar { width: 4px; }
.matches-scroll-container::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.5); border-radius: 10px; }
.matches-grid { display: flex; flex-direction: column; gap: 10px; direction: rtl; }

/* הקוביה המצומצמת עם הפס הדק לליגה */
.match-card-wrapper { background: #070709; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 6px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.match-card-wrapper:hover { border-color: #D4AF37; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2); }
.match-league-bar { background: #D4AF37; padding: 2px 8px; font-size: 10px; font-weight: bold; color: #000; display: flex; align-items: center; justify-content: space-between;}
.match-row-compact { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; cursor: pointer; }
.match-team { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: normal; font-size: 12px; color: #fff;}
.match-team.home { justify-content: flex-end; text-align: left; }
.match-team.away { justify-content: flex-start; text-align: right; }
.match-team img { width: 16px; height: 16px; object-fit: contain;}
.match-score { flex: 0 0 60px; text-align: center; font-size: 12px; font-weight: 900; color: #D4AF37; background: rgba(255,255,255,0.05); padding: 3px 5px; border-radius: 4px; border: 1px solid rgba(212, 175, 55, 0.2); }

/* ווידג'טים סטטיסטיקה - 3 שורות של 3 */
.widgets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 24px; }
.stat-widget { background: linear-gradient(135deg, rgba(28,31,38,0.8), rgba(17,19,24,0.8)); border: 1px solid rgba(212,175,55,0.2); border-radius: 10px; padding: 12px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s;}
.stat-widget:hover { transform: translateY(-3px); border-color: #D4AF37; }
.sw-icon { font-size: 18px; color: #D4AF37; margin-bottom: 6px; }
.sw-title { font-size: 11px; color: #a0a0a0; font-weight: bold; margin-bottom: 5px; }
.sw-value { font-size: 16px; font-weight: 900; color: #fff; }
.sw-sub { font-size: 10px; color: #D4AF37; margin-top: 4px; }

/* טאבים לליגה פנימית */
.center-header { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 15px; margin-bottom: 15px; }
.premium-tabs-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.tab-pill { background: transparent; border: 1px solid rgba(212, 175, 55, 0.35); color: #a0a0a0; padding: 6px 20px; border-radius: 30px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; transition: all 0.3s; }
.tab-pill:hover { border-color: #D4AF37; color: #fff; }
.tab-pill.active { background: #D4AF37; color: #000; border-color: #D4AF37; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }

/* =========================================
   סיידבר שמאלי (לייב) - פונט ריבועי ועדין
   ========================================= */
.left-extra { flex: 0 0 280px; }
.sidebar-title { padding: 15px; font-size: 16px; font-weight: 900; color: #f5f5f5; text-align: center; border-bottom: 1px solid rgba(212, 175, 55, 0.35); display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.live-pulse { width: 10px; height: 10px; background: #ff3b30; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

.live-scroll-wrapper { flex: 1; overflow: hidden; display: flex; position: relative; }
.live-scroll-content { width: 100%; padding: 15px; display: flex; flex-direction: column; gap: 10px; position: absolute; }
.live-scroll-content.is-scrolling { animation: scrollUpLive 500s linear infinite; }
.live-scroll-wrapper:hover .live-scroll-content.is-scrolling { animation-play-state: paused; }
@keyframes scrollUpLive { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* כרטיסיית המשחק בלייב */
.live-match-card { 
    background: #13151a; 
    border: 1px solid rgba(212, 175, 55, 0.4); 
    border-radius: 10px; 
    padding: 0; 
    margin-bottom: 12px;
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
    overflow: hidden; /* חשוב מאוד: גוזר את פינות הזהב העליונות כדי שיישארו עגולות */
}

.live-match-card:hover { 
    border-color: #D4AF37; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3); 
    background: #181b22; 
}

/* החלק העליון - פס דק בשורה אחת (ליגה בימין, דקה בשמאל) */
.live-card-header { 
    display: flex; 
    flex-direction: row; /* שורה במקום עמודה */
    justify-content: space-between; /* מרווח ביניהם לקצוות */
    align-items: center; 
    background: #D4AF37; 
    padding: 4px 12px; /* פדינג קטן כדי לשמור על פס דק */
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* שם הליגה - מימין, בשחור מודגש */
.live-league-name { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px; 
    color: #000; 
    font-weight: 900; 
    margin: 0; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    text-align: right;
}

/* הדקה - משמאל, עם מסגרת אדומה ואנימציית פעימה */
.live-time-badge { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px; 
    color: #D4AF37; 
    font-weight: 900; 
    background: #000; 
    padding: 2px 6px; 
    border-radius: 4px; 
    border: 1px solid #ff3b30; /* מסגרת אדומה דקה */
    animation: pulseRedBorder 1.5s infinite; /* הפעלת הבהוב */
}

/* אנימציית ההבהוב האדום למסגרת */
@keyframes pulseRedBorder {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* שם הליגה - שחור, מודגש מאוד ומוגדל (כבר לא ייעלם) */
.live-league-name { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px; 
    color: #000; /* שחור על זהב יוצר קריאות מושלמת */
    font-weight: 900; /* מודגש מאוד */
    text-align: center; 
    margin: 0; 
}

/* אזור הקבוצות והתוצאה */
.live-match-content { 
    position: relative; 
    display: flex; 
    flex-direction: row;
    align-items: stretch; /* מותח את העמודות כדי שהקו האנכי יגיע עד הסוף */
    height: 72px; /* נתנו גובה קבוע - זה מבטיח שהחציון יהיה מדויק במילימטר */
    padding: 0; 
}

/* הקו האופקי המפריד - עדין ודק בעובי שערה לכל הרוחב */
.live-match-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(212, 175, 55, 0.8);
    transform: translateY(-50%) scaleY(0.3); /* מכווץ את הקו כדי שיהיה דקיק */
    z-index: 1;
}

/* עמודת הקבוצות */
.live-teams-col { 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    text-align: right; 
    z-index: 2; 
}

/* שורת קבוצה - הקסם קורה פה */
.live-team-row { 
    flex: 1; /* אומר לשורה: "תתפסי בדיוק 50% מהגובה של הקובייה!" */
    display: flex; 
    align-items: center; /* ממקם את הטקסט בדיוק באמצע ה-50% שלו */
    justify-content: flex-start; /* שינינו ל-flex-start כדי שיצמד לימין לחלוטין */
    padding: 0 15px; /* מרווח קל מהדופן הימנית */
    gap: 8px; 
}

.live-team-row img { 
    width: 16px; 
    height: 16px; 
    object-fit: contain; 
}

/* פונט הקבוצות */
.live-team-name { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 
    font-size: 12px !important; 
    font-weight: 400 !important; 
    color: #f5f5f5; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 130px; 
}

/* עמודת התוצאות - עם הקו האנכי מזהב מלמעלה עד למטה! */
.live-scores-col { 
    display: flex; 
    flex-direction: column; 
    width: 45px; 
    border-right: 1px solid rgba(212, 175, 55, 0.25); /* הקו האנכי שחותך את הקוביה */
    z-index: 2; 
}

/* התוצאה בזהב בוהק */
.live-score-num { 
    flex: 1; /* אומר למספר: "תתפוס בדיוק 50% מהגובה, בדיוק כמו הקבוצה מולך!" */
    display: flex;
    align-items: center; /* ממקם את המספר בדיוק באמצע ה-50% שלו */
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 
    font-size: 14px !important; 
    font-weight: 800 !important; 
    color: #D4AF37 !important; 
    line-height: 1; 
}

/* שינוי הפונט המבוקש - ריבועי (Roboto Condensed), קטן, נקי ולא עבה מדי */
.live-team-name { font-family: 'Roboto Condensed', sans-serif; font-size: 11px; font-weight: 400; color: #E5E7EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.live-scores-col { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; padding-right: 12px; border-right: 1px solid rgba(255,255,255,0.05); min-width: 30px; }
.live-score-num { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--brand-silver); display: flex; align-items: center; justify-content: center; height: 16px; line-height: 1; }

.loader { color: #D4AF37; font-size: 14px; font-weight: bold; padding: 30px; text-align: center; width: 100%; }

/* התראות שערים */
.toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.live-toast { background: #000; border: 1px solid #D4AF37; border-right: 4px solid #D4AF37; color: #fff; padding: 15px 25px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: bold; display: flex; align-items: center; gap: 12px; animation: slideInToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.live-toast.fade-out { animation: fadeOutToast 0.5s ease-in forwards; }
@keyframes slideInToast { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOutToast { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

@media (max-width: 1200px) { .left-extra { display: none; } }
@media (max-width: 900px) {
    .app-layout-custom { flex-direction: column; height: auto !important;}
    .dashboard-split { flex-direction: column; }
    .widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .right-nav { flex: none; height: 300px; }
}

/* =========================================
   אפקטים של התראת שער בלייב
   ========================================= */
@keyframes borderGlowAlert {
    0% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { border-color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), inset 0 0 25px rgba(212, 175, 55, 0.7); }
    100% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}

@keyframes textGoalPopFast {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.live-match-card.goal-alert-card {
    animation: borderGlowAlert 0.5s infinite alternate !important;
    background: linear-gradient(135deg, rgba(60, 45, 0, 0.9), #13151a) !important;
}

.sidebar-goal-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25); /* שקיפות מוחלטת כדי לא להסתיר את הקבוצות */
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.9), 0 0 30px rgba(212, 175, 55, 0.6);
    pointer-events: none;
    z-index: 10;
    animation: textGoalPopFast 0.6s infinite alternate;
    letter-spacing: 2px;
}

/* --- עיצוב כרטיסיות האלגוריתם - לוח בקרה פרימיום --- */
.prediction-card-wrapper {
    /* הבהרנו את הרקע כדי שזה יקפוץ ויבלוט מעל הרקע השחור של החלון המורחב */
    background: linear-gradient(145deg, #1c2028 0%, #15181e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.prediction-card-wrapper:hover { 
    border-color: rgba(212, 175, 55, 0.6); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(212,175,55,0.15); 
}
.pred-header { font-size: 11px; color: #D4AF37; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; }
.pred-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.pred-team { display: flex; align-items: center; gap: 8px; color: #ffffff; font-weight: bold; font-size: 13px; flex: 1; }
.pred-team.home-team { justify-content: flex-end; text-align: right; }
.pred-team.away-team { justify-content: flex-start; text-align: left; }
.pred-team img { width: 24px; height: 24px; object-fit: contain; }
.pred-vs { font-weight: 900; color: #475569; font-size: 12px; padding: 0 10px; }

.pred-recommendation { background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 8px; padding: 10px; margin-bottom: 10px; text-align: center; }
.pred-rec-title { font-size: 11px; color: #8fa0b3; margin-bottom: 4px; display:flex; align-items:center; justify-content:center; gap:5px; }
.pred-rec-text { font-size: 14px; font-weight: 900; color: #D4AF37; text-transform: uppercase; letter-spacing: 1px; }

/* פס הפרדה עדין ויוקרתי בתוך הכרטיסייה */
.pred-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
    margin: 15px 0;
}

/* גריד הנתונים המתקדמים (מיני-קופסאות) */
.pred-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 5px;
}
.pred-mini-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.2s;
}
.pred-mini-box:hover { background: rgba(212,175,55,0.05); }
.pred-mini-title { font-size: 10px; color: #8fa0b3; margin-bottom: 4px; }
.pred-mini-value { font-size: 13px; color: #fff; font-weight: 700; direction: ltr; }
.pred-mini-value.gold { color: #D4AF37; }
.pred-mini-value.green { color: #10b981; }
.pred-mini-value.red { color: #ef4444; }

/* --- פס הסתברויות --- */
.prob-bar-container { display: flex; flex-direction: column; }
.prob-bar-wrapper { width: 100%; background: #0b0c10; border-radius: 6px; height: 8px; display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.prob-bar-segment { height: 100%; transition: width 0.8s ease-in-out; }
.prob-labels { display: flex; justify-content: space-between; font-size: 11px; color: #8fa0b3; font-weight: bold; margin-bottom: 5px;}
/* --- כושר וריבועי מומנטום --- */
.form-dots { display: inline-flex; gap: 4px; direction: ltr; margin: 0 4px; vertical-align: middle; }
.form-dot { 
    width: 16px; height: 16px; border-radius: 4px; 
    display: inline-flex; align-items: center; justify-content: center; 
    font-size: 10px; font-weight: 900; color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); font-family: 'Roboto Condensed', sans-serif;
}
.dot-W { background: linear-gradient(135deg, #10b981, #059669); border: 1px solid #047857; } 
.dot-D { background: linear-gradient(135deg, #6b7280, #4b5563); border: 1px solid #374151; } 
.dot-L { background: linear-gradient(135deg, #ef4444, #dc2626); border: 1px solid #b91c1c; }
/* --- עיצוב כותרות הטבלאות וכפתור הפתיחה --- */
.box-header-with-btn { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; margin-bottom: 15px; }
.box-header-with-btn .section-title { margin-bottom: 0; border: none; padding: 0; font-size: 16px; }
.expand-icon-btn { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.3); border-radius: 6px; color: #D4AF37; padding: 6px 14px; cursor: pointer; transition: 0.3s; font-size: 14px; }
.expand-icon-btn:hover { background: #D4AF37; color: #000; }

/* --- הפיכת קוביה לחלון קופץ ענק (Modal) --- */
#global-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 9998; }

.dashboard-half.maximized-view {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 95% !important;
    max-width: 1300px !important;
    height: 90vh !important;
    z-index: 9999 !important;
    background: #0d0f12 !important;
    border: 1px solid rgba(212,175,55,0.5) !important;
    box-shadow: 0 10px 50px rgba(0,0,0,0.9) !important;
    padding: 30px !important;
    border-radius: 16px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

/* סידור התוכן בתוך החלון הקופץ לגריד מרווח */
.dashboard-half.maximized-view .matches-scroll-container { max-height: none !important; overflow-y: auto !important; flex: 1; padding-left: 10px; }
.dashboard-half.maximized-view .matches-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important; gap: 20px !important; }
.dashboard-half.maximized-view .match-card-wrapper, .dashboard-half.maximized-view .prediction-card-wrapper { height: 100%; margin-bottom: 0; }

/* --- תמונות רקע ל-4 הקוביות הראשיות (12% שקיפות, תמונות מוארות) --- */
.dashboard-half { position: relative !important; overflow: hidden !important; }
.dashboard-half::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.12 !important; 
    z-index: 0 !important;
    pointer-events: none !important; 
    transition: opacity 0.3s ease !important;
}
.dashboard-half:hover::before { opacity: 0.18 !important; } 
.dashboard-half > * { position: relative !important; z-index: 2 !important; }

/* --- תמונות רקע ל-4 הקוביות הראשיות (15% שקיפות ותמונה חדשה למועדפים) --- */
.dashboard-half { position: relative !important; overflow: hidden !important; }
.dashboard-half::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.20 !important; /* העלינו טיפ-טיפה מ-12% ל-15% */
    z-index: 0 !important;
    pointer-events: none !important; 
    transition: opacity 0.3s ease !important;
}
.dashboard-half:hover::before { opacity: 0.29 !important; } 
.dashboard-half > * { position: relative !important; z-index: 2 !important; }

/* 1. משחקי היום - אצטדיון ענק מואר ביום */
.dashboard-half.box-today::before { background-image: url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?q=80&w=800&auto=format&fit=crop') !important; }

/* 2. המועדפים - כדורגל קלאסי על כר דשא מואר! */
.dashboard-half.box-fav::before { background-image: url('https://images.unsplash.com/photo-1511886929837-354d827aae26?q=80&w=800&auto=format&fit=crop') !important; }

/* 3. המלצות - רשת שער לבנה באור יום מלא */
.dashboard-half.box-algo::before { background-image: url('https://images.unsplash.com/photo-1552318965-6e6be7484ada?q=80&w=800&auto=format&fit=crop') !important; }

/* 4. סטטיסטיקות - זווית מהיציע לדשא באור יום */
.dashboard-half.box-stats::before { background-image: url('https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9?q=80&w=800&auto=format&fit=crop') !important; }

/* חלון מוגדל */
.dashboard-half.maximized-view::before { opacity: 0.05 !important; }

/* --- מרכז נתונים (Data Center) - רזולוציות עומק מלאות --- */
.data-center-wrapper { display: flex; flex-direction: column; height: 100%; min-height: 450px; direction: rtl; }

/* סרגל עליון: טאבים, חיפוש וסינון */
.dc-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; padding: 10px; background: rgba(0,0,0,0.4); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.dc-tabs { display: flex; gap: 10px; }
.dc-tab { background: rgba(0,0,0,0.6); border: 1px solid rgba(212,175,55,0.3); color: #a0a0a0; padding: 8px 24px; border-radius: 6px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: inherit; }
.dc-tab.active { background: #D4AF37; color: #000; border-color: #D4AF37; box-shadow: 0 0 10px rgba(212,175,55,0.3); }

/* אזור החיפוש והפילטרים */
.dc-controls { display: flex; gap: 10px; flex: 1; justify-content: flex-end; }
.dc-search { background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 15px; border-radius: 6px; outline: none; min-width: 220px; font-family: inherit; direction: rtl; transition: 0.3s; }
.dc-search:focus { border-color: #D4AF37; box-shadow: 0 0 8px rgba(212,175,55,0.2); }
.dc-select { background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 15px; border-radius: 6px; outline: none; font-family: inherit; cursor: pointer; }

/* מבנה הטבלה הגדולה (גלילה אופקית ואנכית) */
.dc-table-container { flex: 1; overflow-x: auto; overflow-y: auto; background: rgba(15, 17, 21, 0.8); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; position: relative; }
.dc-table { width: 100%; min-width: 1300px; /* רוחב מינימלי כדי להכיל 15 עמודות בלי לצופף */ border-collapse: collapse; text-align: right; font-size: 12.5px; }
.dc-table th { 
    position: sticky; top: 0; background: #1c2028; color: #D4AF37; padding: 14px 10px; 
    font-weight: bold; border-bottom: 2px solid rgba(212,175,55,0.4); 
    cursor: pointer; white-space: nowrap; z-index: 10; transition: 0.2s; user-select: none;
}
.dc-table th:hover { background: #252a35; }
.dc-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #e2e8f0; white-space: nowrap; vertical-align: middle; }

/* שורות זברה (כהה/בהיר) כדי שיהיה נוח לקרוא לרוחב */
.dc-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.dc-table tbody tr:hover { background: rgba(212,175,55,0.1); }

/* עיצוב תאים ספציפיים (שחקן, קבוצה, מספרים) */
.dc-player-cell { display: flex; align-items: center; gap: 12px; font-weight: bold; color: #fff; }
.dc-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #D4AF37; background: #fff; }
.dc-team-logo { width: 22px; height: 22px; object-fit: contain; }
.dc-sort-icon { font-size: 11px; margin-right: 6px; color: #8fa0b3; opacity: 0.5; }
.dc-table th:hover .dc-sort-icon { opacity: 1; }
.dc-number { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; font-weight: bold; }

/* --- שליטה על תצוגה: קוביה רגילה מול חלון מורחב --- */
.dc-maximized-view { display: none; } /* מוסתר כברירת מחדל */
.dc-minimized-view { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 2; padding: 10px; }

/* כשהחלון מוגדל - הופכים את התצוגה */
.dashboard-half.maximized-view .dc-minimized-view { display: none; }
.dashboard-half.maximized-view .dc-maximized-view { display: flex; flex-direction: column; height: 100%; animation: fadeIn 0.5s ease; }

/* הרחבת הטבלה שתכיל את כל העמודות שביקשת */
.dc-table { width: 100%; min-width: 1800px; border-collapse: collapse; text-align: right; font-size: 12.5px; }

/* עיצוב הקרוסלה המתחלפת (במצב סגור) */
.rotating-widget-container { background: rgba(0,0,0,0.5); border: 1px solid rgba(212,175,55,0.2); border-radius: 12px; padding: 15px; flex: 1; display: flex; flex-direction: column; }
.rotating-title { font-size: 14px; color: #D4AF37; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 1px dashed rgba(212,175,55,0.3); padding-bottom: 10px; }
.rotating-list { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
.rotating-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); padding: 8px 12px; border-radius: 6px; }
.rotating-fade { animation: fadeSwitch 0.5s ease-in-out; }
@keyframes fadeSwitch { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- עיצוב ומיקום פסי הגלילה (Data Center) --- */

/* מעביר את הגלילה לימין, שומר את הטבלה בעברית */
.dc-table-container { 
    direction: ltr; 
    scrollbar-width: thin; 
    scrollbar-color: #D4AF37 rgba(0,0,0,0.3); 
}
.dc-table { 
    direction: rtl; 
}

/* ציור פסי הגלילה מחדש בצבע זהב */
.dc-table-container::-webkit-scrollbar {
    width: 10px;  /* עובי הגלילה למעלה-למטה (ימין) */
    height: 10px; /* עובי הגלילה ימינה-שמאלה (למטה) */
}
.dc-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4); /* רקע כהה עדין לפס */
    border-radius: 8px;
}
.dc-table-container::-webkit-scrollbar-thumb {
    background: #D4AF37; /* צבע הזהב של האתר */
    border-radius: 8px;
    border: 2px solid rgba(15, 17, 21, 0.8); /* מסגרת דקה שנותנת מראה מרחף ויוקרתי */
}
.dc-table-container::-webkit-scrollbar-thumb:hover {
    background: #fde073; /* מבהיר מעט כשעוברים עם העכבר */
}
.dc-table-container::-webkit-scrollbar-corner {
    background: transparent;
}

/* =========================================================
   החלת רקע פרימיום אחיד על כל האתר (כולל דף הבית)
   ========================================================= */
body, 
body.tables-page-body,
.app-layout-custom { 
    background-color: #0b0d14 !important; 
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)) !important;
    background-attachment: fixed !important;
}

/* שקיפות לאזורי גלילה כדי שהרקע המרכזי יבלוט דרכם */
.dashboard-scroll-area {
    background-color: transparent !important;
}

/* =========================================================
   החלת רקע פרימיום אחיד גם על כל החלונות הצפים (מודלים/פופ-אפים)
   ========================================================= */
.dc-modal, 
.modal, 
.modal-content, 
.popup-content { 
    background-color: #0b0d14 !important; 
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)) !important;
}

/* עיצוב טיקר המגמות */
.trends-ticker-wrapper {
    display: flex; flex-direction: column; gap: 8px; padding: 5px;
}

.trends-page-slide.fade-in {
    animation: fadeInSlide 0.5s ease-in-out;
}

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

.trend-row-item {
    background: rgba(15, 18, 24, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-right: 3px solid #D4AF37;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.trend-team-logo { width: 22px; height: 22px; object-fit: contain; }
.trend-text-content { font-size: 12px; color: #fff; font-weight: 500; flex: 1; text-align: right; }
.trend-badge-gold {
    background: rgba(212, 175, 55, 0.15); color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3); font-size: 10px; font-weight: 900;
    padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}

/* =========================================
   התאמה מלאה למסכים רחבים (27-30 אינץ' ומעלה)
   ========================================= */

/* מתיחת המעטפת הראשית על 100% מהמסך וביטול הגבלות רוחב */
.app-layout-custom,
.spa-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important; /* נותן מרווח נשימה קל מהקצוות */
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* הבטחה שהאזור המרכזי ייקח את כל השטח החדש שנוצר */
.center-content-area,
.dc-main {
    flex: 1 1 auto !important;
    max-width: none !important;
}