/* משתני עיצוב */
:root {
    --bg-main: #050608;
    --bg-card: rgba(10, 12, 16, 0.92);
    --accent: #e02424;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: rgba(70, 70, 78, 0.8);
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
}

/* איפוס כללי */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* שיפור תמיכה בדפדפנים */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* שיפור תצוגה ב-Safari */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-font-smoothing: antialiased;
    }
}

body {
    font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 0 0, #202329 0, transparent 55%),
        radial-gradient(circle at 100% 100%, #181b20 0, transparent 55%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018) 0px,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 4px
        );
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* מסך טעינה */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.loading-screen[style*="display: none"] {
    display: none !important;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.12) 0%, rgba(224, 36, 36, 0.06) 50%, rgba(224, 36, 36, 0.02) 100%);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 16px;
    padding: 48px 64px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.08) 0%, 
        transparent 50%, 
        rgba(224, 36, 36, 0.04) 100%);
    pointer-events: none;
    z-index: 0;
}

.loading-content > * {
    position: relative;
    z-index: 1;
}

.loading-logo {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.85));
    animation: logoIn 700ms cubic-bezier(0.16, 0.85, 0.3, 1.1) both;
}

.loading-progress {
    width: 200px;
    height: 5px;
    background: rgba(224, 36, 36, 0.15);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(224, 36, 36, 1) 0%, 
        rgba(224, 36, 36, 0.95) 50%,
        rgba(224, 36, 36, 0.9) 100%);
    border-radius: 5px;
    width: 0%;
    animation: loadingProgress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 
        0 0 10px rgba(224, 36, 36, 0.9),
        0 0 20px rgba(224, 36, 36, 0.5);
    position: relative;
}

.loading-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

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

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* קונטיינר ראשי */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   תפריט עליון חדש - מותאם, נוח, מעוצב
   ============================================ */

.top-header {
    background: linear-gradient(180deg, 
        rgba(5, 6, 8, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 100%);
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.top-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(224, 36, 36, 0.8) 50%,
        transparent 100%);
    opacity: 0.8;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* עברית - מימין לשמאל */
[dir="rtl"] .header-content {
    grid-template-areas: "user nav logo";
    direction: rtl;
}

/* אנגלית - משמאל לימין */
[dir="ltr"] .header-content {
    grid-template-areas: "logo nav user";
    direction: ltr;
}

/* לוגו */
.logo-section {
    grid-area: logo;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    height: 54px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(224, 36, 36, 0.4));
}

/* תפריט ניווט */
.main-nav {
    grid-area: nav;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, rgba(15, 17, 23, 0.95) 0%, rgba(30, 35, 45, 0.95) 100%);
    border-radius: 8px;
    border: 1px solid rgba(224, 36, 36, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    flex-wrap: wrap;
}

/* עברית - מימין לשמאל */
[dir="rtl"] .nav-menu {
    flex-direction: row;
    direction: rtl;
}

/* אנגלית - משמאל לימין */
[dir="ltr"] .nav-menu {
    flex-direction: row;
    direction: ltr;
}

.nav-link {
    flex: 1;
    min-width: 100px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border: none;
    border-left: 1px solid rgba(224, 36, 36, 0.2);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
    user-select: none;
}

.nav-link:first-child {
    border-left: none;
}

/* עברית - הטקסט מיושר ימין (דסקטופ) */
[dir="rtl"] .nav-link {
    text-align: center;
    direction: rtl;
}

/* אנגלית - הטקסט מיושר שמאל (דסקטופ) */
[dir="ltr"] .nav-link {
    text-align: center;
    direction: ltr;
}

.nav-link:hover {
    color: #fff;
    background: rgba(224, 36, 36, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.25) 0%, rgba(224, 36, 36, 0.15) 100%);
    color: #fff;
    position: relative;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(224, 36, 36, 0.8) 0%, rgba(224, 36, 36, 1) 50%, rgba(224, 36, 36, 0.8) 100%);
    box-shadow: 0 0 10px rgba(224, 36, 36, 0.6);
}


/* אזור משתמש */
.user-section {
    grid-area: user;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* עברית - מימין לשמאל */
[dir="rtl"] .user-section {
    flex-direction: row;
    direction: rtl;
}

/* אנגלית - משמאל לימין */
[dir="ltr"] .user-section {
    flex-direction: row;
    direction: ltr;
}

/* כפתורי התחברות והרשמה בתחילת התפריט במובייל */
.mobile-auth-buttons {
    display: none;
    flex-direction: row;
    gap: 12px;
    padding: 16px;
    margin: 0;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.95) 0%, 
        rgba(10, 12, 16, 0.85) 50%,
        rgba(5, 6, 8, 0.75) 100%);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* מידע משתמש מחובר למעלה */
.mobile-auth-buttons.mobile-user-info-top {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
}

.mobile-user-info-top .user-info-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    border-radius: 10px;
    border: 1px solid rgba(224, 36, 36, 0.2);
}

.mobile-user-info-top .user-greeting {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-user-info-top .user-balance {
    font-size: 14px;
    color: var(--text-muted);
}

.mobile-user-info-top .user-balance strong {
    color: #22c55e;
    font-weight: 700;
}

.mobile-user-info-top .user-buttons-row-top {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.mobile-user-info-top .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
}

.mobile-user-info-top .btn-logout {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 50%,
        rgba(224, 36, 36, 0.15) 100%);
    border: 1px solid rgba(224, 36, 36, 0.4);
    color: var(--text-main);
}

.mobile-user-info-top .btn-account {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.7) 50%,
        rgba(5, 6, 8, 0.5) 100%);
    border: 1px solid rgba(224, 36, 36, 0.3);
    color: var(--accent);
}

.mobile-auth-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 200px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.95) 0%, 
        rgba(224, 36, 36, 0.75) 50%,
        rgba(192, 30, 30, 0.65) 100%);
    border: 1px solid rgba(224, 36, 36, 0.5);
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.4);
    border-radius: 10px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-auth-buttons .btn-register {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.95) 0%, 
        rgba(10, 12, 16, 0.8) 50%,
        rgba(5, 6, 8, 0.65) 100%);
    border: 1px solid rgba(224, 36, 36, 0.4);
    color: var(--text-main);
}

.mobile-auth-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.6);
}

.mobile-auth-buttons .btn-register:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 50%,
        rgba(224, 36, 36, 0.15) 100%);
    border-color: rgba(224, 36, 36, 0.6);
    color: var(--accent);
}


/* אזור משתמש במובייל - בתוך התפריט */
.mobile-user-section {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 0;
    border-top: 2px solid rgba(224, 36, 36, 0.3);
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.95) 0%, 
        rgba(10, 12, 16, 0.85) 50%,
        rgba(5, 6, 8, 0.75) 100%);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-top: 2px solid rgba(224, 36, 36, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.mobile-user-section .user-info {
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    border-radius: 10px;
    border: 1px solid rgba(224, 36, 36, 0.2);
}

.mobile-user-section .user-buttons-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

/* עברית - מימין לשמאל */
[dir="rtl"] .mobile-user-section .user-buttons-row {
    justify-content: flex-end;
    direction: rtl;
}

/* אנגלית - משמאל לימין */
[dir="ltr"] .mobile-user-section .user-buttons-row {
    justify-content: flex-start;
    direction: ltr;
}

.mobile-user-section .user-buttons-row:last-child {
    margin-top: 0;
}

/* עברית - השפות בצד ימין */
[dir="rtl"] .mobile-user-section .user-buttons-row:last-child {
    justify-content: flex-end;
}

/* אנגלית - השפות בצד שמאל */
[dir="ltr"] .mobile-user-section .user-buttons-row:last-child {
    justify-content: flex-start;
}

.mobile-user-section .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.9) 0%, 
        rgba(224, 36, 36, 0.7) 50%,
        rgba(192, 30, 30, 0.6) 100%);
    border: 1px solid rgba(224, 36, 36, 0.4);
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.3);
}

.mobile-user-section .btn-register {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.7) 50%,
        rgba(5, 6, 8, 0.5) 100%);
    border: 1px solid rgba(224, 36, 36, 0.3);
}

.mobile-user-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.5);
}

.mobile-user-section .btn-register:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 50%,
        rgba(224, 36, 36, 0.1) 100%);
}

.mobile-user-section .btn-logout {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 50%,
        rgba(224, 36, 36, 0.15) 100%);
    border: 1px solid rgba(224, 36, 36, 0.4);
}

.mobile-user-section .btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.4) 0%, 
        rgba(224, 36, 36, 0.3) 50%,
        rgba(224, 36, 36, 0.25) 100%);
}

.mobile-user-section .btn-account {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.7) 50%,
        rgba(5, 6, 8, 0.5) 100%);
    border: 1px solid rgba(224, 36, 36, 0.3);
    color: var(--accent);
}

.mobile-user-section .btn-account:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 50%,
        rgba(224, 36, 36, 0.1) 100%);
    color: var(--text-main);
}

.mobile-user-section .language-selector {
    flex: 0 0 auto;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.7) 50%,
        rgba(5, 6, 8, 0.5) 100%);
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-radius: 8px;
    margin: 0;
}

/* מודול התחברות */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-modal-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 100%);
    border: 2px solid rgba(224, 36, 36, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(224, 36, 36, 0.2) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.login-modal.active .login-modal-content {
    transform: scale(1) translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(224, 36, 36, 0.2);
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.login-modal-close:hover {
    background: rgba(224, 36, 36, 0.3);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.login-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.login-form-group input {
    padding: 14px 18px;
    background: rgba(15, 17, 23, 0.8);
    border: 2px solid rgba(224, 36, 36, 0.3);
    border-radius: 12px;
    color: var(--text-main);
    font-family: "Assistant", sans-serif;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 17, 23, 0.9);
    box-shadow: 
        0 0 0 4px rgba(224, 36, 36, 0.15),
        0 4px 12px rgba(224, 36, 36, 0.2);
}

.login-form-group input::placeholder {
    color: var(--text-muted);
}

.btn-modal-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.forgot-password-link {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    margin-top: 8px;
}

.forgot-password-link:hover {
    color: var(--accent);
}

/* כפתורים */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-family: "Assistant", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent) 0%, #c01e1e 100%);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.4);
}

.btn-login:hover {
    background: linear-gradient(135deg, #c01e1e 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 36, 36, 0.6);
}

.btn-register {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    color: var(--text-main);
    border: 1px solid rgba(224, 36, 36, 0.3);
    backdrop-filter: blur(10px);
}

.btn-register:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 50%,
        rgba(224, 36, 36, 0.1) 100%);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-logout {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 50%,
        rgba(224, 36, 36, 0.1) 100%);
    color: var(--text-main);
    border: 1px solid rgba(224, 36, 36, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.35) 0%, 
        rgba(224, 36, 36, 0.25) 50%,
        rgba(224, 36, 36, 0.2) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-account {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.2) 0%, 
        rgba(224, 36, 36, 0.12) 50%,
        rgba(224, 36, 36, 0.08) 100%);
    color: var(--accent);
    border: 1px solid rgba(224, 36, 36, 0.3);
}

.btn-account:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 50%,
        rgba(224, 36, 36, 0.15) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* מידע משתמש */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    padding: 8px 14px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(224, 36, 36, 0.2);
    backdrop-filter: blur(10px);
}

.user-greeting {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-balance {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-balance strong {
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
}

/* בחירת שפה */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(224, 36, 36, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: rgba(224, 36, 36, 0.4);
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.7) 50%,
        rgba(5, 6, 8, 0.5) 100%);
}

.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    color: var(--accent);
}

.lang-separator {
    color: var(--text-muted);
    font-size: 12px;
}

/* כפתור תפריט מובייל */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3.5px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.8) 0%, 
        rgba(10, 12, 16, 0.6) 50%,
        rgba(5, 6, 8, 0.4) 100%);
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-radius: 6px;
    padding: 5.6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle span {
    display: block;
    width: 16.8px;
    height: 1.4px;
    background: var(--text-main);
    border-radius: 1.4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.2px, 4.2px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.2px, -4.2px);
}

/* תוכן מרכזי */
.main-content {
    flex: 1;
    padding: 40px 32px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    text-align: right;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.welcome-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.welcome-tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
}

.content-placeholder {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.content-placeholder p {
    color: var(--text-muted);
    font-size: 16px;
}

/* פריסת תוכן - מלבנים פשוטים */
.content-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
    box-sizing: border-box;
    justify-content: center;
}

/* מלבן פשוט קטן (מימין בעברית) */
.simple-box {
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.12) 0%, rgba(224, 36, 36, 0.06) 50%, rgba(224, 36, 36, 0.02) 100%);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.simple-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(224, 36, 36, 0.6) 50%, transparent 100%);
    z-index: 1;
}

/* עמודה שמכילה משחקים חיים ותמיכה */
.small-boxes-column {
    flex: 0 0 30%;
    min-width: 0;
    max-width: 30%;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
    height: 100%;
}

.small-box {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ריבוע תמיכה ועזרה */
.support-box {
    min-height: auto;
    height: auto;
}

.support-box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.15) 0%, 
        rgba(224, 36, 36, 0.08) 50%, 
        transparent 100%);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    text-align: right;
}

[dir="ltr"] .support-box-title {
    text-align: left;
}

.support-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: pointer;
}

[dir="rtl"] .support-item {
    flex-direction: row;
    text-align: right;
}

[dir="ltr"] .support-item {
    flex-direction: row;
    text-align: left;
}

.support-item:hover {
    background: rgba(224, 36, 36, 0.15);
    border-color: rgba(224, 36, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.3);
}

.support-item:active {
    transform: translateY(0);
}

.support-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
    transition: all 0.3s ease;
}

.support-item:hover .support-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.support-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    flex: 1;
    word-break: break-word;
}

.simple-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: right;
}

.simple-box p {
    color: var(--text-muted);
    font-size: 14px;
    text-align: right;
}

/* עיצוב משחקים חיים */
.live-games-box {
    padding: 6px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 1000px; /* גובה מקסימלי גדול */
    /* הסתרת scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* הסתרת scrollbar ב-WebKit browsers */
.live-games-box::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.live-games-title-box {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    padding-bottom: 3px;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.live-games-text {
    flex: 1;
    order: 0 !important;
}

.minimize-btn {
    background: rgba(224, 36, 36, 0.15);
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-radius: 4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 4px;
    flex-shrink: 0;
}

.minimize-btn:hover {
    background: rgba(224, 36, 36, 0.25);
    border-color: rgba(224, 36, 36, 0.5);
    transform: scale(1.1);
}

.minimize-btn:active {
    transform: scale(0.95);
}

.minimize-icon {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
    display: block;
}

.minimize-btn.minimized .minimize-icon {
    transform: rotate(0deg);
}

.minimize-btn.minimized .minimize-icon::after {
    content: '+';
}

.minimize-btn:not(.minimized) .minimize-icon::after {
    content: '−';
}

/* בעברית - כפתור משמאל (בצד השני של הכותרת) */
/* עם row-reverse, order: -1 יביא את הכפתור לתחילת השורה (משמאל) */
[dir="rtl"] .minimize-btn {
    margin-left: 4px;
    margin-right: 0;
    order: -1 !important; /* ראשון ב-HTML = אחרון ב-row-reverse = משמאל */
}

/* באנגלית - כפתור מימין (בצד השני של הכותרת) */
/* עם row רגיל, order: 1 יביא את הכפתור לסוף השורה (מימין) */
[dir="ltr"] .minimize-btn {
    margin-right: 4px;
    margin-left: 0;
    order: 1 !important; /* אחרון ב-HTML = אחרון ב-row = מימין */
}

/* מצב מצומצם - מצמצם את כל הקוביה כמו וילון */
.live-games-box.minimized {
    max-height: 50px !important; /* רק גובה הכותרת */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-games-box:not(.minimized) {
    max-height: 1000px !important; /* גובה מקסימלי גדול */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-games-box.minimized .live-games-table {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
    margin: 0;
    padding: 0;
}

.live-games-box.minimized .live-games-footer {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
    margin: 0;
    padding: 0;
    border-top: none;
}

.live-games-box:not(.minimized) .live-games-table {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
}

.live-games-box:not(.minimized) .live-games-footer {
    max-height: 100px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
}

.live-games-box.minimized .live-games-title-box {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* בעברית - יישור ימין */
[dir="rtl"] .live-games-title-box {
    text-align: right;
    justify-content: flex-end;
    flex-direction: row-reverse; /* הפוך את הסדר - טקסט מימין, נקודה משמאל */
    gap: 10px; /* מרווח גדול יותר בין הנקודה לטקסט מימין */
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .live-games-title-box {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row; /* סדר רגיל - נקודה משמאל, טקסט מימין */
}

.live-indicator-small {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    margin: 0 6px;
    order: 0 !important;
}

.live-games-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
    /* הסתרת scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* הסתרת scrollbar ב-WebKit browsers */
.live-games-table::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.live-games-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 2px solid rgba(224, 36, 36, 0.3);
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
}

.all-live-games-link {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(224, 36, 36, 0.1);
    border: 1px solid rgba(224, 36, 36, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.all-live-games-link:hover {
    background: rgba(224, 36, 36, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.3);
}

/* בעברית - יישור ימין */
[dir="rtl"] .all-live-games-link {
    text-align: center;
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .all-live-games-link {
    text-align: center;
}

.game-category-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.category-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 4px;
    background: rgba(224, 36, 36, 0.15);
    border-radius: 6px;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* בעברית - יישור ימין */
[dir="rtl"] .category-header {
    text-align: right;
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .category-header {
    text-align: left;
}

.live-game-row {
    background: rgba(15, 17, 23, 0.4);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 6px;
    padding: 4px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.live-game-row:hover {
    background: rgba(224, 36, 36, 0.1);
    border-color: rgba(224, 36, 36, 0.4);
    transform: translateX(-2px);
}

.game-teams {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* בעברית (RTL) - כיוון מימין לשמאל */
[dir="rtl"] .team-row {
    direction: rtl;
    flex-direction: row;
}

/* באנגלית (LTR) - כיוון משמאל לימין */
[dir="ltr"] .team-row {
    direction: ltr;
    flex-direction: row;
}

.team-name-cell {
    flex: 1;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.team-score-cell {
    font-size: 15px;
    color: var(--accent);
    font-weight: 700;
    min-width: 20px;
    max-width: 30px;
    flex-shrink: 0;
    text-align: center;
}

.game-time-cell {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 2px 4px;
    background: rgba(224, 36, 36, 0.15);
    border-radius: 5px;
    margin: 0.5px 0;
    align-self: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* בעברית (RTL) - יישור ימין */
[dir="rtl"] .team-name-cell {
    text-align: right;
}

[dir="rtl"] .team-score-cell {
    text-align: left;
}

[dir="rtl"] .team-row {
    flex-direction: row;
}

/* באנגלית (LTR) - יישור שמאל */
[dir="ltr"] .team-name-cell {
    text-align: left;
}

[dir="ltr"] .team-score-cell {
    text-align: right;
}

[dir="ltr"] .team-row {
    flex-direction: row;
}

/* עיצוב מלבן החדשות */
.news-box {
    padding: 18px;
    overflow: visible;
    min-height: auto;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    padding-bottom: 8px;
}

/* בעברית - כותרת מימין, קטגוריה משמאל */
[dir="rtl"] .news-header-row {
    flex-direction: row;
}

/* באנגלית - כותרת משמאל, קטגוריה מימין */
[dir="ltr"] .news-header-row {
    flex-direction: row;
}

.news-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-play-pause-btn {
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.25) 0%, rgba(224, 36, 36, 0.15) 100%);
    border: 1.5px solid rgba(224, 36, 36, 0.5);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    color: var(--accent);
    font-size: 12px;
    min-width: 28px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(224, 36, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.news-play-pause-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.news-play-pause-btn:hover::before {
    width: 40px;
    height: 40px;
}

.news-play-pause-btn:hover {
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.35) 0%, rgba(224, 36, 36, 0.25) 100%);
    border-color: rgba(224, 36, 36, 0.7);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(224, 36, 36, 0.4);
}

.news-play-pause-btn:active {
    transform: scale(0.98);
}

.news-play-pause-btn .pause-icon,
.news-play-pause-btn .play-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
    z-index: 1;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.news-play-pause-btn .pause-icon {
    display: inline-block;
}

.news-play-pause-btn .play-icon {
    display: none;
}

.news-play-pause-btn.paused .pause-icon {
    display: none !important;
}

.news-play-pause-btn.paused .play-icon {
    display: inline-block !important;
}

.news-play-pause-btn:hover .pause-icon,
.news-play-pause-btn:hover .play-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.news-box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* בעברית - יישור ימין */
[dir="rtl"] .news-box-title {
    text-align: right;
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .news-box-title {
    text-align: left;
}

.article-category-header {
    background: linear-gradient(135deg, var(--accent) 0%, #c01e1e 100%);
    color: var(--text-main);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.4);
}

.news-article {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* בעברית (RTL) - תמונה משמאל, תוכן מימין */
[dir="rtl"] .news-article {
    flex-direction: row;
}

[dir="rtl"] .article-content {
    order: 2;
}

[dir="rtl"] .article-image {
    order: 1;
}

/* באנגלית (LTR) - תמונה מימין, תוכן משמאל */
[dir="ltr"] .news-article {
    flex-direction: row;
}

[dir="ltr"] .article-content {
    order: 1;
}

[dir="ltr"] .article-image {
    order: 2;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-headline {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

/* בעברית - יישור ימין */
[dir="rtl"] .article-headline,
[dir="rtl"] .article-text {
    text-align: right;
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .article-headline,
[dir="ltr"] .article-text {
    text-align: left;
}

.article-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.article-image {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(224, 36, 36, 0.2);
    box-sizing: border-box;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover .article-img {
    transform: scale(1.05);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(224, 36, 36, 0.15);
}

.article-time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-icon {
    font-size: 12px;
    opacity: 0.7;
}

.article-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(224, 36, 36, 0.1);
    border: 1px solid rgba(224, 36, 36, 0.3);
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(224, 36, 36, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.3);
}

.arrow-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* בעברית - חץ ימין */
[dir="rtl"] .read-more-btn:hover .arrow-icon {
    transform: translateX(-4px);
}

/* באנגלית - חץ שמאל */
[dir="ltr"] .read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* RTL/LTR support - סדר המלבנים */
[dir="rtl"] .content-grid > .small-boxes-column {
    order: 2;
}

[dir="rtl"] .news-chance-column {
    order: 1;
}

[dir="ltr"] .content-grid > .small-boxes-column {
    order: 1;
}

[dir="ltr"] .news-chance-column {
    order: 2;
}

/* תחתית */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    margin-top: auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.responsible {
    color: #f97316;
    font-weight: 600;
    font-size: 13px;
}

/* תפריט המבורגר למובייל */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px;
    cursor: pointer;
    flex-direction: column;
    gap: 3.5px;
    width: 31px;
    height: 31px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(224, 36, 36, 0.1);
    border-color: var(--accent);
}

.mobile-menu-toggle span {
    display: block;
    width: 17px;
    height: 1.4px;
    background: var(--text-main);
    border-radius: 1.4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.2px, 4.2px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.2px, -4.2px);
}

/* Responsive - דסקטופ גדול (1400px ומעלה) */
@media (min-width: 1400px) {
    .main-content {
        padding: 50px 48px;
    }
    
    .content-grid {
        gap: 32px;
        margin-top: 50px;
        justify-content: center;
    }
    
    .small-boxes-column {
        flex: 0 0 30%;
        min-width: 0;
        max-width: 30%;
    }

    .news-chance-column {
        flex: 0 0 65%;
        min-width: 0;
        max-width: 65%;
    }
}

.live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(224, 36, 36, 0.8);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.live-games-container {
    background: var(--bg-card);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 16px;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    max-height: 550px;
    overflow-y: auto;
}

.live-games-container::-webkit-scrollbar {
    width: 6px;
}

.live-games-container::-webkit-scrollbar-track {
    background: rgba(15, 17, 23, 0.4);
    border-radius: 3px;
}

.live-games-container::-webkit-scrollbar-thumb {
    background: rgba(224, 36, 36, 0.4);
    border-radius: 3px;
}

.live-games-container::-webkit-scrollbar-thumb:hover {
    background: rgba(224, 36, 36, 0.6);
}

.live-games-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent) 0%,
        rgba(224, 36, 36, 0.5) 50%,
        var(--accent) 100%);
    opacity: 0.8;
}

.live-game-item {
    padding: 10px;
    border-bottom: 1px solid rgba(224, 36, 36, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.live-game-item:last-child {
    border-bottom: none;
}

.live-game-item:hover {
    background: rgba(224, 36, 36, 0.05);
    border-radius: 8px;
}

.live-game-teams {
    gap: 5px;
    margin-bottom: 8px;
}

.team-name {
    font-size: 12px;
}

.team-score {
    font-size: 15px;
}

.bet-btn {
    padding: 5px 10px;
    font-size: 10px;
}

.live-game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(224, 36, 36, 0.1);
}

.sport-type {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.live-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #c01e1e 100%);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(224, 36, 36, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(224, 36, 36, 0.7);
    }
}

.game-time {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    background: rgba(15, 17, 23, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
}

.live-game-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.team-name {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.team-score {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: left;
}

.vs-separator {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    opacity: 0.6;
}

.sport-type {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.bet-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #c01e1e 100%);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.3);
}

.bet-btn:hover {
    background: linear-gradient(135deg, #c01e1e 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.5);
}



.news-header {
    margin-bottom: 16px;
    text-align: right;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.news-container {
    background: var(--bg-card);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 16px;
    padding: 0;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(224, 36, 36, 0.4);
}

.news-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-container:hover .news-img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.news-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #c01e1e 100%);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.5);
}

.news-content {
    padding: 24px;
}

.news-headline {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
}

.news-category {
    background: rgba(224, 36, 36, 0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.news-read-more {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: var(--text-main);
    transform: translateX(-4px);
}

/* תחתית */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    margin-top: auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.responsible {
    color: #f97316;
    font-weight: 600;
    font-size: 13px;
}

/* תפריט המבורגר למובייל */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px;
    cursor: pointer;
    flex-direction: column;
    gap: 3.5px;
    width: 31px;
    height: 31px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(224, 36, 36, 0.1);
    border-color: var(--accent);
}

.mobile-menu-toggle span {
    display: block;
    width: 17px;
    height: 1.4px;
    background: var(--text-main);
    border-radius: 1.4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.2px, 4.2px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.2px, -4.2px);
}

/* Responsive - דסקטופ גדול (1400px ומעלה) */
@media (min-width: 1400px) {
    .main-content {
        padding: 50px 48px;
    }
    
    .content-grid {
        gap: 32px;
        margin-top: 50px;
        justify-content: center;
    }
    
    .small-boxes-column {
        flex: 0 0 30%;
        min-width: 0;
        max-width: 30%;
    }

    .news-chance-column {
        flex: 0 0 65%;
        min-width: 0;
        max-width: 65%;
    }
}

/* Responsive - טאבלט גדול (1024px ומטה) */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 18px;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 11px;
        font-size: 13px;
    }

    .nav-menu {
        gap: 3px;
    }

    .header-logo {
        height: 52px;
        max-width: 105px;
    }

    .main-content {
        padding: 32px 20px;
    }

    .content-grid {
        flex-direction: row;
        gap: 20px;
        margin-top: 32px;
        justify-content: center;
    }

    .small-boxes-column {
        flex: 0 0 30%;
        min-width: 0;
        max-width: 30%;
    }

    .news-chance-column {
        flex: 0 0 65%;
        min-width: 0;
        max-width: 65%;
    }
}

/* Responsive - טאבלט בינוני (900px ומטה) */
@media (max-width: 900px) {
    .header-content {
        gap: 10px;
        padding: 0 16px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }

    .nav-menu {
        gap: 3px;
    }

    .header-logo {
        height: 50px;
        max-width: 100px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .input-field {
        padding: 7px 11px;
        font-size: 12px;
        min-width: 85px;
        max-width: 105px;
    }

    .user-section {
        max-width: 320px;
        gap: 6px;
    }

    .content-grid {
        flex-direction: row;
        gap: 18px;
        margin-top: 32px;
        justify-content: center;
    }

    .small-boxes-column {
        flex: 0 0 30%;
        min-width: 0;
        max-width: 30%;
    }

    .news-chance-column {
        flex: 0 0 65%;
        min-width: 0;
        max-width: 65%;
    }
}

/* Responsive - מובייל (768px ומטה) */
@media (max-width: 768px) {
    .main-container {
        width: 95%;
        max-width: 95%;
    }

    .top-header {
        width: 95%;
        max-width: 95%;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        padding: 12px 16px;
        gap: 12px;
    }
    
    /* עברית - מימין לשמאל */
    [dir="rtl"] .header-content {
        grid-template-areas: 
            "toggle logo"
            "nav nav";
        direction: rtl;
    }
    
    /* אנגלית - משמאל לימין */
    [dir="ltr"] .header-content {
        grid-template-areas: 
            "logo toggle"
            "nav nav";
        direction: ltr;
    }
    
    .desktop-user-section {
        display: none;
    }
    
    .mobile-auth-buttons {
        display: flex;
    }
    
    .mobile-auth-buttons.mobile-user-info-top {
        display: flex;
    }
    
    .mobile-user-section {
        display: flex;
    }

    .logo-section {
        grid-area: logo;
    }

    .header-logo {
        height: 48px;
        max-width: 100px;
    }

    .mobile-menu-toggle {
        display: flex;
        grid-area: toggle;
    }


    .login-modal-content {
        padding: 30px 24px;
        max-width: 90%;
    }

    .login-modal-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .main-nav {
        grid-area: nav;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav.active {
        max-height: 900px;
        opacity: 1;
        margin-top: 8px;
    }
    
    /* הסתרת גלילה במשחקים החיים במובייל */
    .live-games-box,
    .live-games-table {
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .live-games-box::-webkit-scrollbar,
    .live-games-table::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0;
        padding: 0;
        margin: 0;
        background: linear-gradient(135deg, rgba(15, 17, 23, 0.95) 0%, rgba(30, 35, 45, 0.95) 100%);
        border-radius: 8px;
        border: 1px solid rgba(224, 36, 36, 0.3);
        backdrop-filter: blur(10px);
        overflow: hidden;
        list-style: none;
    }
    
    /* עברית - מימין לשמאל */
    [dir="rtl"] .nav-menu {
        direction: rtl;
        flex-direction: column !important;
    }
    
    /* אנגלית - משמאל לימין */
    [dir="ltr"] .nav-menu {
        direction: ltr;
        flex-direction: column !important;
    }
    
    .mobile-auth-buttons + .nav-menu {
        margin-top: 12px;
    }
    
    .mobile-user-info-top + .nav-menu {
        margin-top: 12px;
    }

    .nav-link {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(224, 36, 36, 0.2) !important;
        border-left: none !important;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: rgba(255, 255, 255, 0.8) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        text-decoration: none !important;
        line-height: 1.5 !important;
        position: relative;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
    
    .nav-link.active::before {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: 3px;
        width: 100%;
    }
    
    /* עברית - הטקסט מיושר ימין במובייל */
    html[dir="rtl"] .nav-link,
    [dir="rtl"] .nav-link,
    body[dir="rtl"] .nav-link {
        text-align: center !important;
        direction: rtl !important;
    }
    
    /* אנגלית - הטקסט מיושר שמאל במובייל */
    html[dir="ltr"] .nav-link,
    [dir="ltr"] .nav-link,
    body[dir="ltr"] .nav-link {
        text-align: center !important;
        direction: ltr !important;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(224, 36, 36, 0.1) !important;
        color: #fff !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, rgba(224, 36, 36, 0.25) 0%, rgba(224, 36, 36, 0.15) 100%) !important;
        color: #fff !important;
    }
    
    [dir="rtl"] .nav-link:hover,
    [dir="rtl"] .nav-link:active {
        transform: translateX(-4px);
    }
    
    [dir="ltr"] .nav-link:hover,
    [dir="ltr"] .nav-link:active {
        transform: translateX(4px);
    }

    .user-info {
        width: 100%;
        text-align: center;
    }
    
    .mobile-user-section {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .content-placeholder {
        padding: 24px 16px;
    }

    .content-grid {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        justify-content: flex-start;
        width: 100%;
    }

    .small-boxes-column {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        gap: 16px !important;
    }

    .news-chance-column {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 16px;
        height: auto !important;
        order: 1 !important;
    }
    
    .news-chance-column .news-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: auto !important;
        overflow: visible !important;
        height: auto !important;
        order: 1 !important;
    }
    
    .news-chance-column .chance-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: auto !important;
        overflow: visible !important;
        height: auto !important;
        order: 3 !important;
    }
    
    .news-chance-column .results-box {
        order: 2 !important;
    }
    
    .small-boxes-column {
        order: 4 !important;
    }
    
    .small-boxes-column .live-games-box {
        order: 1 !important;
    }
    
    .small-boxes-column .support-box {
        order: 2 !important;
    }

    .live-games-container {
        padding: 16px;
        max-height: none;
    }

    .live-game-item {
        padding: 14px;
    }

    .news-container {
        margin-top: 0;
    }
    
    .news-box {
        padding: 16px;
        overflow: visible;
        min-height: auto;
        height: auto;
    }
    
    .news-article {
        flex-direction: column !important;
        gap: 14px;
        width: 100%;
        overflow: visible;
    }
    
    [dir="rtl"] .news-article,
    [dir="ltr"] .news-article {
        flex-direction: column !important;
    }
    
    .article-image {
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        min-width: 100% !important;
        order: 1 !important;
        height: auto !important;
        margin: 0 !important;
    }
    
    [dir="rtl"] .article-image,
    [dir="ltr"] .article-image {
        order: 1 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 100% !important;
    }
    
    .article-content {
        width: 100% !important;
        flex: 1 1 auto !important;
        max-width: 100% !important;
        min-width: 100% !important;
        order: 2 !important;
        overflow: visible;
    }
    
    [dir="rtl"] .article-content,
    [dir="ltr"] .article-content {
        order: 2 !important;
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 100% !important;
    }
    
    .article-img {
        width: 100% !important;
        height: auto !important;
        min-height: 180px;
        max-height: 300px;
        object-fit: cover;
        display: block;
    }
    
    .article-headline {
        font-size: 16px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-text {
        font-size: 13px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-image {
        height: 200px;
        width: 100%;
    }

    .news-content {
        padding: 16px;
    }

    .news-headline {
        font-size: 18px;
    }

    .news-excerpt {
        font-size: 14px;
    }

    .live-games-title {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .loading-logo {
        height: 160px;
    }

    .loading-progress {
        width: 180px;
    }
}

/* Responsive - מובייל גדול (480px ומטה) */
@media (max-width: 480px) {
    .main-container {
        width: 95%;
        max-width: 95%;
    }

    .top-header {
        width: 95%;
        max-width: 95%;
    }

    .header-content {
        padding: 0 14px;
    }

    .login-modal-content {
        padding: 24px 20px;
        width: 95%;
        max-width: 95%;
    }

    .login-modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .login-form-group input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-modal-login {
        padding: 12px;
        font-size: 15px;
    }

    .header-logo {
        height: 48px;
        max-width: 100px;
    }

    .top-header {
        padding: 10px 0;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(224, 36, 36, 0.1) !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, rgba(224, 36, 36, 0.25) 0%, rgba(224, 36, 36, 0.15) 100%) !important;
    }

    .user-greeting {
        font-size: 14px;
    }

    .user-balance {
        font-size: 13px;
    }

    .user-balance strong {
        font-size: 16px;
        color: #22c55e;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .main-content {
        padding: 20px 12px;
    }

    .welcome-title {
        font-size: clamp(24px, 8vw, 32px);
        margin-bottom: 12px;
    }

    .welcome-tagline {
        font-size: clamp(14px, 4vw, 16px);
        margin-bottom: 24px;
    }

    .content-placeholder {
        padding: 20px 12px;
    }

    .content-placeholder p {
        font-size: 14px;
    }

    .content-grid {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        justify-content: flex-start;
        width: 100%;
    }

    .small-box {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .news-chance-column {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 16px;
        order: 1 !important;
    }
    
    .news-chance-column .news-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: auto !important;
        overflow: visible !important;
        height: auto !important;
        order: 1 !important;
    }
    
    .news-chance-column .chance-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: auto !important;
        overflow: visible !important;
        height: auto !important;
        order: 3 !important;
    }
    
    .news-chance-column .results-box {
        order: 2 !important;
    }
    
    .small-boxes-column {
        order: 4 !important;
    }
    
    .small-boxes-column .live-games-box {
        order: 1 !important;
    }
    
    .small-boxes-column .support-box {
        order: 2 !important;
    }
    
    .content-grid > .large-box,
    .news-chance-column .large-box {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .simple-box {
        padding: 16px;
    }
    
    .live-games-box {
        padding: 16px;
        flex: 1 1 auto !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .news-box {
        padding: 16px;
    }
    
    .chance-box {
        padding: 16px;
    }
    
    .support-box {
        padding: 16px;
        flex: 0 0 auto !important;
        height: auto !important;
    }
    
    .small-boxes-column {
        gap: 16px !important;
        height: auto !important;
    }
    
    .support-box-title {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    .results-box {
        margin-top: 16px;
    }
    
    .results-header-row {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        flex-wrap: nowrap !important;
    }
    
    [dir="rtl"] .results-header-row {
        flex-direction: row !important;
    }
    
    [dir="ltr"] .results-header-row {
        flex-direction: row !important;
    }
    
    .results-box-title {
        font-size: 16px !important;
        text-align: right !important;
        width: auto !important;
        margin-bottom: 0 !important;
        order: 1 !important;
        padding: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    
    [dir="rtl"] .results-box-title {
        text-align: right !important;
    }
    
    [dir="ltr"] .results-box-title {
        text-align: left !important;
    }
    
    .results-category-selector {
        width: auto !important;
        order: 2 !important;
        flex: 0 0 auto !important;
    }
    
    .custom-dropdown {
        width: auto !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    
    .custom-dropdown-toggle {
        width: 100% !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
    
    .dropdown-arrow {
        width: 10px !important;
        height: 10px !important;
    }
    
    .result-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .team-name-result {
        font-size: 13px;
    }
    
    .team-score-result {
        font-size: 16px;
    }
    
    .result-detail-item {
        font-size: 11px;
    }
    
    .btn-all-results-category {
        font-size: 11px;
        padding: 4px 12px;
        height: 26px;
    }
    
    .support-item {
        padding: 10px;
        gap: 10px;
    }
    
    .support-icon {
        width: 20px;
        height: 20px;
    }
    
    .support-text {
        font-size: 13px;
    }

    .live-games-title {
        font-size: 18px;
        gap: 8px;
    }

    .live-game-item {
        padding: 12px;
    }

    .live-games-container {
        padding: 12px;
        max-height: none;
    }

    .news-title {
        font-size: 20px;
    }

    .news-box {
        padding: 14px;
        overflow: visible;
        min-height: auto;
        height: auto;
    }
    
    .news-article {
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
        overflow: visible;
    }
    
    [dir="rtl"] .news-article,
    [dir="ltr"] .news-article {
        flex-direction: column !important;
    }
    
    .article-image {
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        min-width: 100% !important;
        order: 1 !important;
        height: auto !important;
        margin: 0 !important;
    }
    
    [dir="rtl"] .article-image,
    [dir="ltr"] .article-image {
        order: 1 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 100% !important;
    }
    
    .article-content {
        width: 100% !important;
        flex: 1 1 auto !important;
        max-width: 100% !important;
        min-width: 100% !important;
        order: 2 !important;
        overflow: visible;
    }
    
    [dir="rtl"] .article-content,
    [dir="ltr"] .article-content {
        order: 2 !important;
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 100% !important;
    }
    
    .article-img {
        width: 100% !important;
        height: auto !important;
        min-height: 160px;
        max-height: 250px;
        object-fit: cover;
        display: block;
    }
    
    .article-headline {
        font-size: 15px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-text {
        font-size: 12px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .news-image {
        height: 180px;
        width: 100%;
    }

    .news-content {
        padding: 14px;
    }

    .news-headline {
        font-size: 16px;
    }

    .news-excerpt {
        font-size: 13px;
    }

    .team-name {
        font-size: 13px;
    }

    .team-score {
        font-size: 16px;
    }

    .bet-btn {
        padding: 7px 14px;
        font-size: 11px;
    }

    .loading-logo {
        height: 120px;
    }

    .loading-progress {
        width: 160px;
        height: 4px;
    }

    .main-footer {
        padding: 20px 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-text {
        font-size: 11px;
    }

    .responsible {
        font-size: 12px;
    }
}

/* Responsive - מובייל קטן מאוד (360px ומטה) */
@media (max-width: 360px) {
    .main-container {
        width: 95%;
        max-width: 95%;
    }

    .top-header {
        width: 95%;
        max-width: 95%;
    }

    .header-logo {
        height: 45px;
        max-width: 95px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(224, 36, 36, 0.1) !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, rgba(224, 36, 36, 0.25) 0%, rgba(224, 36, 36, 0.15) 100%) !important;
    }

    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .input-field {
        padding: 8px 12px;
        font-size: 12px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-tagline {
        font-size: 14px;
    }

    .loading-logo {
        height: 100px;
    }

    .loading-progress {
        width: 140px;
    }
}

/* שיפור לתצוגה אופקית במובייל */
@media (max-height: 600px) and (max-width: 768px) {
    .main-container {
        width: 95%;
        max-width: 95%;
    }

    .top-header {
        width: 95%;
        max-width: 95%;
        padding: 6px 0;
    }

    .header-logo {
        height: 40px;
    }

    .main-content {
        padding: 16px 12px;
    }

    .welcome-title {
        margin-bottom: 8px;
    }

    .welcome-tagline {
        margin-bottom: 16px;
    }

    .content-placeholder {
        padding: 16px 12px;
        margin-top: 20px;
    }
}

/* שיפור נגישות - התמקדות */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* שיפור ביצועים */
.nav-link,
.btn,
.input-field {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* תמיכה ב-touch devices */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        background: transparent !important;
    }

    .nav-link:active {
        background: rgba(224, 36, 36, 0.1) !important;
    }
    
    .nav-link.active:active {
        background: linear-gradient(135deg, rgba(224, 36, 36, 0.3) 0%, rgba(224, 36, 36, 0.2) 100%) !important;
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* ========================================
   עמודה של חדשות וצ'אנס
   ======================================== */

.news-chance-column {
    flex: 0 0 65%;
    min-width: 0;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 1;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
}

/* וידוא סדר נכון - חדשות למעלה, צ'אנס למטה */
.news-chance-column .news-box {
    order: 1;
}

.news-chance-column .chance-box {
    order: 2;
}

.news-chance-column .results-box {
    order: 3;
}


/* ========================================
   מלבן צ'אנס - קלפים שיצאו
   ======================================== */

.chance-box {
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* וידוא ששני המלבנים ביחד בגובה של משחקים לייב */
    .news-chance-column .news-box {
        flex: 1 1 auto;
        min-height: auto;
        overflow: visible;
        height: auto;
    }
    
    .news-chance-column .chance-box {
        flex: 1 1 auto;
        min-height: auto;
        overflow: visible;
        height: auto;
    }

.news-chance-column .chance-box {
    flex: 1 1 50%;
    min-height: 0;
}

/* ========================================
   מלבן תוצאות אחרונות
   ======================================== */

.results-box {
    margin-top: 0;
    width: 100%;
    flex: 1 1 auto;
}

.results-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    padding: 8px 12px;
    padding-bottom: 8px;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.15) 0%, 
        rgba(224, 36, 36, 0.08) 50%, 
        transparent 100%);
    border-radius: 8px 8px 0 0;
    gap: 12px;
    flex-wrap: nowrap;
}

[dir="rtl"] .results-header-row {
    flex-direction: row;
}

[dir="ltr"] .results-header-row {
    flex-direction: row;
}

.results-box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.results-category-selector {
    display: flex;
    align-items: center;
    order: 2;
    flex: 0 0 auto;
    position: relative;
}

/* Dropdown מותאם אישית */
.custom-dropdown {
    position: relative;
    min-width: 100px;
    max-width: 120px;
    flex-shrink: 1;
}

.custom-dropdown-toggle {
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.95) 0%, 
        rgba(10, 12, 16, 0.85) 50%,
        rgba(5, 6, 8, 0.75) 100%);
    border: 1.5px solid rgba(224, 36, 36, 0.4);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[dir="rtl"] .custom-dropdown-toggle {
    flex-direction: row;
}

.custom-dropdown-toggle:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 50%,
        rgba(192, 30, 30, 0.1) 100%);
    border-color: rgba(224, 36, 36, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.4);
}

.custom-dropdown-toggle:active,
.custom-dropdown-toggle.active {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 50%,
        rgba(192, 30, 30, 0.15) 100%);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.3);
}

.dropdown-selected-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    order: 1;
}

[dir="rtl"] .dropdown-selected-text {
    text-align: right;
    order: 1;
}

[dir="ltr"] .dropdown-selected-text {
    text-align: left;
    order: 1;
}

.dropdown-arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    color: var(--accent);
    order: 2;
}

[dir="rtl"] .dropdown-arrow {
    order: 2;
}

[dir="ltr"] .dropdown-arrow {
    order: 2;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 50%,
        rgba(5, 6, 8, 0.92) 100%);
    border: 1.5px solid rgba(224, 36, 36, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    min-width: 100%;
}

[dir="rtl"] .custom-dropdown-menu {
    right: 0;
    left: auto;
}

[dir="ltr"] .custom-dropdown-menu {
    left: 0;
    right: auto;
}

.custom-dropdown.active .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

[dir="ltr"] .dropdown-item {
    text-align: left;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.35) 0%, 
        rgba(224, 36, 36, 0.25) 50%,
        rgba(192, 30, 30, 0.2) 100%);
    color: var(--accent);
    padding-right: 20px;
}

[dir="ltr"] .dropdown-item:hover {
    padding-right: 16px;
    padding-left: 20px;
}

.dropdown-item.active {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.45) 0%, 
        rgba(224, 36, 36, 0.35) 50%,
        rgba(192, 30, 30, 0.3) 100%);
    color: var(--accent);
    font-weight: 700;
}


.results-content {
    min-height: 200px;
    padding: 12px 0;
    text-align: center;
}

[dir="rtl"] .results-content {
    text-align: right;
}

[dir="ltr"] .results-content {
    text-align: left;
}

.result-item {
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

[dir="rtl"] .result-item {
    text-align: right;
}

[dir="ltr"] .result-item {
    text-align: left;
}

.result-item:hover {
    background: rgba(224, 36, 36, 0.1);
    border-color: rgba(224, 36, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.2);
}

.result-item.winner {
    border-left: 3px solid var(--accent);
}

[dir="rtl"] .result-item.winner {
    border-left: none;
    border-right: 3px solid var(--accent);
}

.result-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

[dir="rtl"] .result-teams {
    flex-direction: row;
}

[dir="ltr"] .result-teams {
    flex-direction: row;
}

.team-result {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: center;
}

.team-result.winner-team {
    color: var(--accent);
    font-weight: 600;
}

.team-name-result {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.team-score-result {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    min-width: 30px;
    text-align: center;
}

.vs-separator {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

[dir="rtl"] .result-details {
    text-align: right;
}

[dir="ltr"] .result-details {
    text-align: left;
}

.result-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.result-detail-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--accent);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.goal-time {
    font-weight: 600;
    color: var(--text-main);
}

.goal-scorer {
    color: var(--text-main);
}

.cards-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

[dir="rtl"] .cards-item {
    justify-content: flex-end;
}

[dir="ltr"] .cards-item {
    justify-content: flex-start;
}

.card-player-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-icon.yellow {
    color: #fbbf24;
}

.card-icon.red {
    color: #ef4444;
}

.results-footer-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
    border-top: 2px solid rgba(224, 36, 36, 0.3);
    padding: 8px 12px;
    padding-top: 8px;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(224, 36, 36, 0.05) 50%, 
        rgba(224, 36, 36, 0.15) 100%);
    border-radius: 0 0 8px 8px;
}

[dir="rtl"] .results-footer-row {
    justify-content: flex-end;
}

[dir="ltr"] .results-footer-row {
    justify-content: flex-end;
}

.btn-all-results-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    height: 26px;
    margin: 0;
    vertical-align: middle;
}

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

.btn-all-results-category:hover::before {
    width: 300px;
    height: 300px;
}

.btn-all-results-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
    border-color: rgba(34, 197, 94, 0.9);
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 1));
}

.btn-all-results-category:active {
    transform: translateY(0);
}

.chance-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
    padding: 8px 12px;
    padding-bottom: 8px;
    min-height: 36px;
    background: linear-gradient(135deg, rgba(224, 36, 36, 0.15) 0%, rgba(224, 36, 36, 0.05) 50%, transparent 100%);
    border-radius: 8px 8px 0 0;
}

/* בעברית - כותרת מימין */
[dir="rtl"] .chance-header-row {
    justify-content: flex-end;
}

/* באנגלית - כותרת משמאל */
[dir="ltr"] .chance-header-row {
    justify-content: flex-start;
}

.chance-footer-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
    border-top: 2px solid rgba(224, 36, 36, 0.3);
    padding: 8px 12px;
    padding-top: 8px;
    min-height: 36px;
    background: linear-gradient(135deg, transparent 0%, rgba(224, 36, 36, 0.05) 50%, rgba(224, 36, 36, 0.15) 100%);
    border-radius: 0 0 8px 8px;
}

/* בעברית - כפתור מימין */
[dir="rtl"] .chance-footer-row {
    justify-content: flex-end;
}

/* באנגלית - כפתור מימין */
[dir="ltr"] .chance-footer-row {
    justify-content: flex-end;
}

/* בעברית - כותרת מימין, כפתור משמאל */
[dir="rtl"] .chance-header-row {
    flex-direction: row;
}

/* באנגלית - כותרת משמאל, כפתור מימין */
[dir="ltr"] .chance-header-row {
    flex-direction: row;
}

.chance-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* בעברית - לוגו מימין */
[dir="rtl"] .chance-logo {
    margin-right: 0;
    margin-left: auto;
}

/* באנגלית - לוגו משמאל */
[dir="ltr"] .chance-logo {
    margin-left: 0;
    margin-right: auto;
}

/* מידע על ההגרלה */
.chance-draw-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

[dir="rtl"] .chance-draw-info {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="ltr"] .chance-draw-info {
    flex-direction: row;
    justify-content: flex-start;
}

.draw-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.draw-info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.draw-info-value {
    color: var(--text-main);
    font-weight: 700;
}

/* קונטיינר לקלפים */
.chance-cards-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

[dir="rtl"] .chance-cards-container {
    flex-direction: row-reverse;
}

[dir="ltr"] .chance-cards-container {
    flex-direction: row;
}

.chance-card {
    flex: 0 0 auto;
    width: 100px;
    height: 130px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.chance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.chance-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 18px rgba(224, 36, 36, 0.4);
    border-color: rgba(224, 36, 36, 0.6);
    z-index: 10;
}

.chance-card:hover::before {
    border-color: rgba(224, 36, 36, 0.3);
    box-shadow: 0 0 0 2px rgba(224, 36, 36, 0.15);
}

.chance-card:active {
    transform: translateY(-4px) scale(1.03);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 6px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    background: transparent;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 24px;
    z-index: 3;
    position: relative;
}

.card-top-left {
    align-self: flex-start;
}

.card-bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-number {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1px;
    font-family: Arial, sans-serif;
    letter-spacing: 0;
    display: block;
}

.card-suit {
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    margin-top: 0;
    display: block;
}

/* צבעים לפי הקלף - אדום */
.card-corner.card-red .card-number,
.card-corner.card-red .card-suit {
    color: #c41e3a;
}

/* צבעים לפי הקלף - שחור */
.card-corner.card-black .card-number,
.card-corner.card-black .card-suit {
    color: #1a1a1a;
}

/* צורה גדולה במרכז */
.card-suit-large.card-red {
    color: #c41e3a;
    opacity: 0.08;
}

.card-suit-large.card-black {
    color: #1a1a1a;
    opacity: 0.08;
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.card-suit-large {
    font-size: 65px;
    line-height: 1;
    opacity: 0.12;
    font-weight: 700;
    display: block;
}

/* ספירה לאחור לסגירת המכירה */
.chance-countdown-section {
    margin: 12px 0;
    padding: 10px;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.12) 0%, 
        rgba(224, 36, 36, 0.06) 50%, 
        rgba(224, 36, 36, 0.02) 100%);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 8px;
    text-align: center;
}

.countdown-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 45px;
}

.countdown-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    font-family: "Assistant", monospace;
    background: rgba(224, 36, 36, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(224, 36, 36, 0.3);
    min-width: 35px;
    text-align: center;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-separator {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 2px;
    line-height: 1;
}

.countdown-closing-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.countdown-closing-info strong {
    color: var(--text-main);
    font-weight: 600;
}

/* בעברית - יישור ימין */
[dir="rtl"] .chance-countdown-section {
    text-align: center;
    direction: rtl;
}

[dir="rtl"] .countdown-timer {
    direction: ltr; /* המספרים תמיד משמאל לימין */
}

/* באנגלית - יישור שמאל */
[dir="ltr"] .chance-countdown-section {
    text-align: center;
    direction: ltr;
}

[dir="ltr"] .countdown-timer {
    direction: ltr;
}

/* כפתור לכל התוצאות */
.btn-all-results {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
    height: 26px;
}

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

.btn-all-results:hover::before {
    width: 300px;
    height: 300px;
}

.btn-all-results:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
    border-color: rgba(34, 197, 94, 0.9);
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 1));
}

.btn-all-results:active {
    transform: translateY(0);
}

/* רספונסיבי - מלבן צ'אנס */
@media (max-width: 1024px) {
    .news-chance-column {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .news-chance-column {
        gap: 16px;
    }
    
    .chance-box {
        padding: 16px;
    }
    
    .chance-header-row {
        height: 28px;
    }
    
    .chance-box-title {
        font-size: 16px;
        line-height: 28px;
        height: 28px;
    }
    
    .btn-all-results {
        height: 26px;
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .chance-draw-info {
        gap: 12px;
        padding: 10px;
        margin-bottom: 16px;
    }
    
    .draw-info-item {
        font-size: 12px;
    }
    
    .chance-cards-container {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .chance-card {
        width: 90px;
        height: 120px;
    }
    
    .btn-all-results {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-chance-column {
        gap: 14px;
    }
    
    .chance-box {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .chance-card {
        width: 70px;
        height: 95px;
    }
    
    .chance-draw-info {
        flex-direction: column;
        gap: 8px;
    }
    
    [dir="rtl"] .chance-draw-info {
        flex-direction: column;
    }
    
    [dir="ltr"] .chance-draw-info {
        flex-direction: column;
    }
}

/* טופס הרשמה */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.register-box {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 50%,
        rgba(5, 6, 8, 0.92) 100%);
    border: 2px solid rgba(224, 36, 36, 0.4);
    border-radius: 24px;
    padding: 55px 45px;
    width: 100%;
    max-width: 550px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(224, 36, 36, 0.25) inset,
        0 0 40px rgba(224, 36, 36, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
}

.register-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(224, 36, 36, 0.8) 0%, 
        rgba(224, 36, 36, 0.4) 50%, 
        rgba(224, 36, 36, 0.8) 100%);
    z-index: 1;
}

.register-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(224, 36, 36, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 0 0 40px 0;
    text-shadow: 0 2px 12px rgba(224, 36, 36, 0.3);
    position: relative;
    padding-bottom: 20px;
}

.register-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(224, 36, 36, 0.8) 50%, 
        transparent 100%);
    border-radius: 2px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.register-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

[dir="rtl"] .register-form-group label {
    text-align: right;
}

[dir="ltr"] .register-form-group label {
    text-align: left;
}

.register-form-group input[type="text"],
.register-form-group input[type="email"],
.register-form-group input[type="tel"],
.register-form-group input[type="password"] {
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.9) 0%, 
        rgba(10, 12, 16, 0.85) 100%);
    border: 2px solid rgba(224, 36, 36, 0.35);
    border-radius: 14px;
    color: var(--text-main);
    font-family: "Assistant", sans-serif;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.register-form-group input[type="text"]:hover,
.register-form-group input[type="email"]:hover,
.register-form-group input[type="tel"]:hover,
.register-form-group input[type="password"]:hover {
    border-color: rgba(224, 36, 36, 0.5);
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.95) 0%, 
        rgba(10, 12, 16, 0.9) 100%);
}

.register-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 1) 0%, 
        rgba(10, 12, 16, 0.95) 100%);
    box-shadow: 
        0 0 0 5px rgba(224, 36, 36, 0.2),
        0 6px 20px rgba(224, 36, 36, 0.3),
        inset 0 0 20px rgba(224, 36, 36, 0.05);
    transform: translateY(-2px);
}

.register-form-group input::placeholder {
    color: var(--text-muted);
}

.register-checkbox-group {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    padding: 12px 16px;
    background: rgba(224, 36, 36, 0.05);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(224, 36, 36, 0.1);
    border-color: rgba(224, 36, 36, 0.35);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
    border-radius: 4px;
}

.checkbox-label span {
    flex: 1;
}

.btn-register-submit {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 15px;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.95) 0%, 
        rgba(200, 30, 30, 0.9) 50%,
        rgba(180, 25, 25, 0.85) 100%);
    border: 2px solid rgba(224, 36, 36, 0.6);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(224, 36, 36, 0.4),
        0 0 0 1px rgba(224, 36, 36, 0.3) inset,
        0 0 30px rgba(224, 36, 36, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-register-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn-register-submit:hover::before {
    left: 100%;
}

.btn-register-submit:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 1) 0%, 
        rgba(200, 30, 30, 0.98) 50%,
        rgba(180, 25, 25, 0.95) 100%);
    border-color: var(--accent);
    box-shadow: 
        0 8px 25px rgba(224, 36, 36, 0.6),
        0 0 0 1px rgba(224, 36, 36, 0.4) inset,
        0 0 40px rgba(224, 36, 36, 0.3);
    transform: translateY(-3px);
}

.btn-register-submit:active {
    transform: translateY(0);
}

.register-login-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(224, 36, 36, 0.25);
    position: relative;
}

.register-login-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(224, 36, 36, 0.8) 50%, 
        transparent 100%);
}

.register-login-link span {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.btn-login-link {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.15) 0%, 
        rgba(224, 36, 36, 0.08) 100%);
    border: 2px solid rgba(224, 36, 36, 0.5);
    border-radius: 12px;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(224, 36, 36, 0.2);
}

.btn-login-link:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.25) 0%, 
        rgba(224, 36, 36, 0.15) 100%);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.35);
    transform: translateY(-2px);
}

/* Responsive - טופס הרשמה */
@media (max-width: 768px) {
    .register-container {
        padding: 30px 16px;
        min-height: 50vh;
    }

    .register-box {
        padding: 35px 28px;
    }

    .register-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .register-form {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 20px 12px;
        min-height: auto;
    }

    .register-box {
        padding: 28px 20px;
    }

    .register-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .register-form-group input[type="text"],
    .register-form-group input[type="email"],
    .register-form-group input[type="tel"],
    .register-form-group input[type="password"] {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-register-submit {
        padding: 14px;
        font-size: 15px;
    }
}

/* דף התחברות - שימוש באותם סגנונות + התאמות */
.login-container {
    min-height: 55vh;
}

.login-box {
    max-width: 480px;
    padding: 50px 40px;
}

.login-title {
    font-size: 34px;
    margin-bottom: 38px;
}

.login-form {
    gap: 20px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.login-remember {
    margin: 0;
    flex: 1;
    min-width: 140px;
}

.login-remember .checkbox-label {
    padding: 10px 14px;
    margin: 0;
}

.forgot-password-link-page {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.forgot-password-link-page:hover {
    background: rgba(224, 36, 36, 0.1);
    color: #ff4444;
    text-decoration: underline;
}

.btn-login-submit {
    margin-top: 12px;
}

.login-register-link {
    margin-top: 22px;
    padding-top: 22px;
}

.btn-register-link {
    padding: 14px 32px;
}

/* Responsive - דף התחברות */
@media (max-width: 768px) {
    .login-box {
        padding: 35px 28px;
    }

    .login-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password-link-page {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .login-options {
        flex-direction: column;
        align-items: stretch;
    }

    .login-remember {
        width: 100%;
    }
}

/* דף ספורט */
.sport-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.sport-content-box {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 50%,
        rgba(5, 6, 8, 0.92) 100%);
    border: 2px solid rgba(224, 36, 36, 0.4);
    border-radius: 24px;
    padding: 60px 50px;
    width: 100%;
    max-width: 700px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(224, 36, 36, 0.25) inset,
        0 0 40px rgba(224, 36, 36, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.sport-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(224, 36, 36, 0.8) 0%, 
        rgba(224, 36, 36, 0.4) 50%, 
        rgba(224, 36, 36, 0.8) 100%);
    z-index: 1;
}

.sport-content-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(224, 36, 36, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 12px rgba(224, 36, 36, 0.3);
    position: relative;
    padding-bottom: 20px;
}

.sport-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(224, 36, 36, 0.8) 50%, 
        transparent 100%);
    border-radius: 2px;
}

.sport-content-text {
    font-size: 20px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Responsive - דף ספורט */
@media (max-width: 768px) {
    .sport-content-container {
        padding: 30px 16px;
        min-height: 50vh;
    }

    .sport-content-box {
        padding: 45px 35px;
    }

    .sport-content-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .sport-content-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sport-content-container {
        padding: 20px 12px;
        min-height: auto;
    }

    .sport-content-box {
        padding: 35px 25px;
    }

    .sport-content-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .sport-content-text {
        font-size: 16px;
    }
}


/* דף ספורט - עיצוב חדש */
/* דף ספורט - עיצוב חדש */
.sport-page-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* צד שמאל - טופס ההימור */
.sport-bet-form-container {
    flex: 0 0 350px;
    position: sticky;
    top: 20px;
}

.sport-bet-form-box {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 50%,
        rgba(5, 6, 8, 0.92) 100%);
    border: 2px solid rgba(224, 36, 36, 0.4);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(224, 36, 36, 0.25) inset;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.bet-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
}

.bet-form-content {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.bet-form-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 40px 20px;
    margin: 0;
}

.bet-item {
    background: rgba(224, 36, 36, 0.1);
    border: 1px solid rgba(224, 36, 36, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}

.bet-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bet-item-teams {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
}

.bet-item-remove {
    background: rgba(224, 36, 36, 0.3);
    border: 1px solid rgba(224, 36, 36, 0.5);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bet-item-remove:hover {
    background: rgba(224, 36, 36, 0.5);
    border-color: var(--accent);
    transform: scale(1.1);
}

.bet-item-selection {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bet-item-odds {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
}

.bet-form-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(224, 36, 36, 0.3);
}

.bet-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.bet-summary-row.bet-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(224, 36, 36, 0.2);
    font-weight: 700;
    font-size: 16px;
}

.bet-summary-label {
    font-size: 14px;
    color: var(--text-main);
    flex: 1;
}

.bet-amount-input {
    background: rgba(15, 17, 23, 0.8);
    border: 2px solid rgba(224, 36, 36, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: "Assistant", sans-serif;
    font-size: 14px;
    width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.bet-amount-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.15);
}

.bet-currency {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

.bet-summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

.bet-total .bet-summary-value {
    font-size: 18px;
    color: var(--accent);
}

.btn-place-bet {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.95) 0%, 
        rgba(200, 30, 30, 0.9) 50%,
        rgba(180, 25, 25, 0.85) 100%);
    border: 2px solid rgba(224, 36, 36, 0.6);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-place-bet:hover {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 1) 0%, 
        rgba(200, 30, 30, 0.98) 50%,
        rgba(180, 25, 25, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 36, 36, 0.5);
}

.btn-place-bet:active {
    transform: translateY(0);
}

/* צד ימין - משחקים */
.sport-games-container {
    flex: 1;
    min-width: 0;
}

.sport-games-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(224, 36, 36, 0.3);
}

.sport-games-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sport-game-item {
    background: linear-gradient(135deg, 
        rgba(15, 17, 23, 0.98) 0%, 
        rgba(10, 12, 16, 0.95) 50%,
        rgba(5, 6, 8, 0.92) 100%);
    border: 2px solid rgba(224, 36, 36, 0.3);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sport-game-item:hover {
    border-color: rgba(224, 36, 36, 0.5);
    box-shadow: 0 8px 25px rgba(224, 36, 36, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(224, 36, 36, 0.2);
}

.game-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.vs {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.game-date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.game-bets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bet-option {
    flex: 1;
    min-width: 100px;
    background: rgba(15, 17, 23, 0.8);
    border: 2px solid rgba(224, 36, 36, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bet-option:hover {
    background: rgba(224, 36, 36, 0.15);
    border-color: rgba(224, 36, 36, 0.5);
    transform: translateY(-2px);
}

.bet-option.selected {
    background: linear-gradient(135deg, 
        rgba(224, 36, 36, 0.3) 0%, 
        rgba(224, 36, 36, 0.2) 100%);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(224, 36, 36, 0.4);
}

.bet-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.bet-odds {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.bet-option.selected .bet-odds {
    color: #fff;
}

/* Responsive - דף ספורט */
@media (max-width: 1024px) {
    .sport-page-container {
        flex-direction: column;
    }
    
    .sport-bet-form-container {
        flex: 1;
        position: static;
        width: 100%;
    }
    
    .sport-games-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sport-page-container {
        padding: 15px 0;
        gap: 15px;
    }
    
    .sport-bet-form-box {
        padding: 20px;
    }
    
    .sport-games-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .game-bets {
        flex-direction: column;
    }
    
    .bet-option {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sport-bet-form-box {
        padding: 15px;
    }
    
    .bet-form-title {
        font-size: 20px;
    }
    
    .sport-games-title {
        font-size: 22px;
    }
    
    .sport-game-item {
        padding: 15px;
    }
}

