/*
  header.css – עיצוב הדר ותפריטים
  החלק העליון והמרכזי (טאבים, לוגו, auth) תמיד ראשי.
  מבנה: משתנים | הדר עליון + מרכזי | תפריט צדדי (דסקטופ: בזרימה ב־.page-middle; מובייל: בר אופקי + row2).
  רוחב התפריט הצדדי: --header-sidebar-width ב־:root (style.css).
*/
/* ===== משתנים ומבנה ראשי ===== */
/* הדר תמיד צף (fixed) – שלושת החלקים (עליון, מרכזי, תחתון) גלויים בכל גלילה */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #0a0a0a;
}

.header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--space-x);
  padding-right: var(--space-x);
}

/* ===== חלק עליון (ספורט, פוקר, קזינו + שירות לקוחות, עזרה) ===== */
.header-top {
  background: linear-gradient(180deg, rgba(28,32,46,0.98) 0%, rgba(20,24,38,0.98) 55%, rgba(8,10,18,0.98) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  height: var(--header-top-height);
}

.header-top-right,
.header-top-buttons {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--header-top-height);
}

/* מרווחים שווים – אותו padding לכל פריט */
.header-top-right a,
.header-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  transition: color 0.2s ease, background 0.2s ease;
  height: var(--header-top-height);
  box-sizing: border-box;
  min-width: 0;
}

/* פס צהוב תחתון לספורט/פוקר/קזינו (כמו בתפריט הצדדי אבל בתחתית) */
.header-top-btn {
  position: relative;
}

.header-top-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-sport);
  transition: transform 0.2s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.header-top-btn[data-submenu="sport"]::after { background: var(--accent-sport); }
.header-top-btn[data-submenu="poker"]::after { background: var(--accent-poker); }
.header-top-btn[data-submenu="casino"]::after { background: var(--accent-casino); }

.header-top-btn:hover::after,
.header-top-btn.active::after {
  transform: scaleX(1);
}

.header-top-btn {
  gap: 6px;
}
.header-top-btn-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.header-top-btn-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.header-top-right a {
  color: rgba(255, 255, 255, 0.5);
  gap: 6px;
}

/* אייקון מקצועי – רק שירות לקוחות ועזרה */
.header-top-right .header-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  color: inherit;
}

.header-top-right .header-top-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* פס הפרדה אנכי – קו בין פריטים (לא לפני הראשון): לוגי ל־RTL/LTR */
.header-top-btn:not(:first-child),
.header-top-right a:not(:first-child) {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover – רקע וצבע על כל השטח מהפרדה להפרדה */
.header-top-right a:hover,
.header-top-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* נבחר – רקע מלא בין הפסים, צבע ומודגש (ספורט/פוקר/קזינו לייב) */
.header-top-btn.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}

/* ===== חלק מרכזי (לוגו + התחברות/הרשמה) ===== */
.header-main {
  background: linear-gradient(135deg, #0d3320 0%, #1a4d32 50%, #0f3d26 100%);
  border-bottom: none;
  box-shadow: none;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  height: var(--header-main-height);
  gap: 16px;
}

.header-logo a {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  text-decoration: none;
}
.header-logo-img {
  width: auto;
  max-width: 160px;
  max-height: calc(var(--header-main-height) - 16px);
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex-shrink: 0;
}

/* לוגו שמאל, התחברות ימין – החלפת סדר תצוגה */
.header-logo {
  order: -1;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}

/* כפתורי התחבר / הרשמה */
.header-auth {
  order: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.header-auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.header-auth-icon svg {
  width: 100%;
  height: 100%;
}

.header-auth-login {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.header-auth-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.header-auth-register {
  color: #000000;
  background: linear-gradient(135deg, #f5c518 0%, #e6b800 100%);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 2px 6px rgba(245, 197, 24, 0.2);
}

.header-auth-register:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f5c518 100%);
  box-shadow: 0 3px 10px rgba(245, 197, 24, 0.3);
  transform: translateY(-1px);
}

/* משתמש מחובר – שלום + יתרה + התנתק */
.header-auth-logged {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.header-auth-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}

html[dir="rtl"] .header-auth-user-info {
  align-items: flex-start;
}

.header-auth-greeting {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.header-auth-balance {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f5c518;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: rgba(245, 197, 24, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.header-auth-logout {
  padding: 3px 8px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.header-auth-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.header-auth-area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5c518 0%, #e6b800 100%);
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(245, 197, 24, 0.18);
  white-space: nowrap;
}

.header-auth-area:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f5c518 100%);
  color: #0d0d0d;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245, 197, 24, 0.25);
}

/* ===== פאנל "אזור אישי" בראש התפריט הצדדי – דסקטופ בלבד =====
   מציג: ברכה + שם משתמש, יתרה, וכפתורי "אזור אישי" / "התנתק".
   במובייל מוסתר, כי שם ה-dock התחתון אחראי על התפקיד הזה. */
.header-sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 11px;
  margin-bottom: 12px;
  border-radius: 11px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 197, 24, 0.10) 0%, rgba(245, 197, 24, 0) 55%),
    linear-gradient(180deg, rgba(34, 38, 54, 0.98) 0%, rgba(22, 26, 40, 0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  position: relative;
  overflow: hidden;
}

.header-sidebar-auth::before {
  content: "";
  position: absolute;
  inset-inline-end: -16px;
  top: -16px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.16) 0%, rgba(245, 197, 24, 0) 70%);
  pointer-events: none;
}

/* שורת ברכה עליונה: אווטר עגול + שם */
.header-sidebar-auth-info {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-sidebar-auth-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518 0%, #e6b800 100%);
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 8px rgba(245, 197, 24, 0.28), inset 0 1px 0 rgba(255,255,255,0.4);
  text-transform: uppercase;
  user-select: none;
}

.header-sidebar-auth-greet-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.header-sidebar-auth-greet {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}

.header-sidebar-auth-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* תיבת יתרה */
.header-sidebar-auth-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.16) 0%, rgba(245, 197, 24, 0.06) 100%);
  border: 1px solid rgba(245, 197, 24, 0.26);
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: hidden;
}

.header-sidebar-auth-balance-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-sidebar-auth-balance-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.header-sidebar-auth-balance-value {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffd24a;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* שני כפתורים: אזור אישי (CTA צהוב) + התנתק (משני) */
.header-sidebar-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.header-sidebar-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 6px;
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
  line-height: 1;
  letter-spacing: 0.01em;
}

.header-sidebar-auth-btn:active {
  transform: translateY(1px);
}

.header-sidebar-auth-btn-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

.header-sidebar-auth-btn-icon svg {
  width: 100%;
  height: 100%;
}

.header-sidebar-auth-btn--account {
  color: #1a1a1a;
  background: linear-gradient(135deg, #fcd34d 0%, #f5c518 50%, #e6b800 100%);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.24), inset 0 1px 0 rgba(255,255,255,0.4);
}

.header-sidebar-auth-btn--account:hover {
  background: linear-gradient(135deg, #ffe079 0%, #fcd34d 50%, #f5c518 100%);
  color: #0d0d0d;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.32), inset 0 1px 0 rgba(255,255,255,0.45);
}

.header-sidebar-auth-btn--logout {
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.13);
}

.header-sidebar-auth-btn--logout:hover {
  color: #fff;
  background: rgba(220, 53, 69, 0.16);
  border-color: rgba(220, 53, 69, 0.5);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.18);
}

/* כשהסיידבר מצומצם – מסתירים את הפאנל (אין מספיק מקום לתוכן הטקסטואלי) */
body.header-sidebar-collapsed .header-sidebar-auth,
.header-sidebar-collapsed .header-sidebar-auth,
.header-bottom.is-collapsed .header-sidebar-auth {
  display: none;
}

/* גרסת אורח (מנותק) – אווטר עם אייקון משתמש במקום אות */
.header-sidebar-auth-avatar--guest {
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);
  color: rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.header-sidebar-auth-avatar--guest svg {
  width: 16px;
  height: 16px;
}

/* בפאנל אורח אין יתרה – פחות פדינג עליון */
.header-sidebar-auth--guest {
  gap: 10px;
}

/* בדסקטופ – מסתירים את תיבת ה-auth מהראשי כי היא הועברה לתפריט הצדדי
   (גם הגרסה המחוברת – greeting+balance+account+logout, וגם כפתור ה-"התחבר" של אורח) */
@media (min-width: 769px) {
  .header-auth .header-auth-logged,
  .header-auth .header-auth-login {
    display: none !important;
  }
  .header-auth:empty,
  .header-auth:has(.header-auth-login):not(:has(.header-auth-logged)) {
    display: none;
  }
}

/* ===== חלק תחתון – דסקטופ: תת-תפריט צדדי (top מהמשתנים למעלה) ===== */
.header-bottom {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: var(--header-sidebar-top);
  right: 0;
  width: var(--header-sidebar-width);
  bottom: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
}

.header-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 16px;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
}

.header-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

/* תת-תפריטים – דסקטופ: אנכי, רק האחד הפעיל מוצג */
.header-subnav {
  display: none;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-subnav.is-active {
  display: flex;
}

/* כותרת בתפריט הצדדי (דסקטופ בלבד) – ריווח סימטרי */
.header-subnav-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  color: #ffffff;
  text-align: right;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}
.header-subnav-heading-icon {
  flex-shrink: 0;
}
.header-subnav-heading-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header-subnav-heading::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: var(--accent-sport);
  border-radius: 0 2px 2px 0;
}

.header-subnav[data-submenu="sport"] .header-subnav-heading::after { background: var(--accent-sport); }
.header-subnav[data-submenu="poker"] .header-subnav-heading::after { background: var(--accent-poker); }
.header-subnav[data-submenu="casino"] .header-subnav-heading::after { background: var(--accent-casino); }

.header-subnav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: stretch;
}

.header-subnav li:last-child {
  border-bottom: none;
}

.header-subnav li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
}

.header-subnav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: inherit;
}

.header-subnav-icon svg,
.header-subnav-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.header-subnav li a::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: var(--accent-sport);
  transition: transform 0.2s ease;
  transform: scaleY(0);
  transform-origin: center;
}

.header-subnav[data-submenu="sport"] li a::after { background: var(--accent-sport); }
.header-subnav[data-submenu="poker"] li a::after { background: var(--accent-poker); }
.header-subnav[data-submenu="casino"] li a::after { background: var(--accent-casino); }

.header-subnav li a:hover,
.header-subnav li a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.header-subnav li a:hover::after,
.header-subnav li a.active::after {
  transform: scaleY(1);
}

/* פריט עם הרחבה פתוחה (כדורגל וכו') – הקו הצהוב מסומן */
.header-subnav-item-has-sub.is-open .header-subnav-parent::after {
  transform: scaleY(1);
}

/* תת-תפריט שלישי (מדינות וכו') – דסקטופ צדדי */
.header-subnav-item-has-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-subnav-item-has-sub .header-subnav-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
}

.header-subnav-item-has-sub .header-subnav-parent:hover,
.header-subnav-item-has-sub.is-open .header-subnav-parent {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* דסקטופ בלבד: פריט שטוח אח גדול/צ'אנס – במובייל נשענים על כללי .header-subnav li a (אותו font-size כמו דיירי הבית וכו') */
@media (min-width: 769px) {
  .header-subnav li.game-slug-the-big-brother > a.header-subnav-parent--flat,
  .header-subnav li.game-slug-chance > a.header-subnav-parent--flat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
  }

  /* פס הדגשה לצ'אנס – צבע המשחק/קטגוריה (מדיננות גבוהה מ־li a::after הכללי של הפאנל) */
  .header-subnav li.game-slug-chance > a.header-subnav-parent--flat::after {
    background: var(--game-menu-accent, var(--accent-sport));
  }

  .header-subnav li.game-slug-the-big-brother > a.header-subnav-parent--flat:hover,
  .header-subnav li.game-slug-the-big-brother > a.header-subnav-parent--flat.active,
  .header-subnav li.game-slug-chance > a.header-subnav-parent--flat:hover,
  .header-subnav li.game-slug-chance > a.header-subnav-parent--flat.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
  }
}

/* תג LIVE לשידור חי – דסקטופ: קצה השורה; מובייל: כמו מונה לייב בספורט (פינה עליונה) */
.header-subnav-live-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  box-sizing: border-box;
}

.header-subnav li.game-slug-the-big-brother > a.header-subnav-parent--live-stream:hover .header-subnav-live-tag,
.header-subnav li.game-slug-the-big-brother > a.header-subnav-parent--live-stream.active .header-subnav-live-tag {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

/* מספר משחקים LIVE – הערה קטנה בצד שמאל של השורה (דסקטופ) */
.header-subnav-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.header-subnav-item-has-sub .header-subnav-parent:hover .header-subnav-live-count,
.header-subnav-item-has-sub.is-open .header-subnav-parent .header-subnav-live-count {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-subsubnav {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

/* ═════════════════════════════════════════════════════════════════════
   שורת חיפוש בראש רשימת המדינות – דינמית, בעברית ובאנגלית
   בסיסי: דסקטופ/לפטופ. התאמות ל-Tablet/Mobile/is-collapsed בהמשך.
   ═════════════════════════════════════════════════════════════════════ */
.header-subsubnav-search-item {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10,12,20,0.96) 0%, rgba(10,12,20,0.88) 100%);
  backdrop-filter: saturate(1.1) blur(4px);
  -webkit-backdrop-filter: saturate(1.1) blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.header-subsubnav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  position: relative;
}

.header-subsubnav-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--game-menu-accent, rgba(255,255,255,0.55));
  flex-shrink: 0;
  opacity: 0.9;
}

.header-subsubnav-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  /* 16px מונע auto-zoom ב-iOS כשעושים focus (במובייל) */
  font-size: 16px;
  line-height: 1.25;
  padding: 8px 34px 8px 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  direction: rtl;
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.header-subsubnav-search-input::placeholder {
  color: rgba(255,255,255,0.42);
  font-weight: 400;
}

/* דסקטופ: גודל קטן יותר לטקסט הקלט וה-placeholder (אין בעיית auto-zoom) */
@media (min-width: 769px) {
  .header-subsubnav-search-input {
    font-size: 13px;
    padding: 7px 32px 7px 11px;
  }
  .header-subsubnav-search-input::placeholder {
    font-size: 13px;
  }
}

.header-subsubnav-search-input:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px var(--game-menu-accent, rgba(255,255,255,0.35)),
    0 0 0 4px rgba(255,255,255,0.06);
}

.header-subsubnav-search-input::-webkit-search-decoration,
.header-subsubnav-search-input::-webkit-search-cancel-button,
.header-subsubnav-search-input::-webkit-search-results-button,
.header-subsubnav-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.header-subsubnav-search-clear {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 0;
}
.header-subsubnav-search-clear:hover,
.header-subsubnav-search-clear:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.header-subsubnav-search-clear[hidden] { display: none; }

/* הודעת "אין תוצאות" */
.header-subsubnav-no-results {
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-style: italic;
  border-bottom: none !important;
}
.header-subsubnav-no-results[hidden] { display: none; }

/* במצב תפריט מכווץ (אייקונים בלבד) – החיפוש לא רלוונטי, מוסתר */
.header-bottom.is-collapsed .header-subsubnav-search-item,
.header-bottom.is-collapsed .header-subsubnav-no-results {
  display: none !important;
}

/* ─── התאמות Tablet / Mobile (≤768px) ─── */
@media (max-width: 768px) {
  .header-subsubnav-search {
    padding: 9px 10px;
    gap: 7px;
  }
  .header-subsubnav-search-icon {
    width: 18px;
    height: 18px;
  }
  .header-subsubnav-search-input {
    padding: 8px 32px 8px 10px;
    border-radius: 7px;
  }
  .header-subsubnav-search-clear {
    left: 14px;
    padding: 3px;
  }
  /* בתוך row2 (תפריט נייד נפתח): ללא קו הפרדה מתחת לחיפוש (מטופל ע"י border-bottom של ה-item עצמו) */
  .header-subnav-row2.header-subsubnav-mobile > li.header-subsubnav-search-item::after {
    display: none;
  }
  /* החיפוש נצמד לראש ה-row2 כשגוללים */
  .header-subnav-row2.header-subsubnav-mobile > li.header-subsubnav-search-item {
    position: sticky;
    top: -8px;
    z-index: 5;
    background: #1a1a1a;
    border-bottom: 1px solid #6b7280;
  }
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-search {
    padding: 8px 10px;
  }
}

/* ─── התאמות לנייד צר (≤480px) ─── */
@media (max-width: 480px) {
  .header-subsubnav-search {
    padding: 8px 9px;
  }
  .header-subsubnav-search-input {
    padding: 7px 30px 7px 10px;
  }
}

/* ─── התאמות לנייד קטן מאוד (≤360px) ─── */
@media (max-width: 360px) {
  .header-subsubnav-search {
    padding: 7px 8px;
    gap: 6px;
  }
  .header-subsubnav-search-icon {
    width: 16px;
    height: 16px;
  }
  .header-subsubnav-search-input {
    padding: 6px 28px 6px 8px;
  }
  .header-subsubnav-search-clear {
    left: 12px;
  }
  .header-subsubnav-no-results {
    padding: 12px 12px;
    font-size: 12.5px;
  }
}


.header-subsubnav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.header-subsubnav li:last-child {
  border-bottom: none;
}

.header-subsubnav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  text-align: right;
}

.header-subsubnav-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 2px;
}

.header-subsubnav-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* האח הגדול: רשימת דיירים בתפריט עם תמונה גדולה יותר */
.header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-flag {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-country-link {
  min-height: 52px;
}

.header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-country-link--flat {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-country-link--flat:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-league-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header-subsubnav-country-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.header-subsubnav-country-name-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: right;
}

.header-subsubnav-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: header-bigbrother-live-dot 1.35s ease-out infinite;
}

.header-subsubnav-live-dot--participant {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
}

.header-subsubnav-live-dot--nominated {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  animation: none;
}

.header-subsubnav-live-dot--eliminated {
  background: #ef4444;
  box-shadow: none;
  animation: none;
}

@keyframes header-bigbrother-live-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.header-subsubnav-country.game-slug-the-big-brother.header-subsubnav-country--eliminated .header-subsubnav-country-link {
  background: rgba(120, 120, 120, 0.22) !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.header-subsubnav-country.game-slug-the-big-brother.header-subsubnav-country--nominated .header-subsubnav-country-link {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #ffe7b0 !important;
}

.header-subsubnav-country.game-slug-the-big-brother.header-subsubnav-country--nominated .header-subsubnav-country-name {
  color: #ffe7b0;
}

.header-subsubnav-country.game-slug-the-big-brother.header-subsubnav-country--eliminated .header-subsubnav-country-name {
  color: rgba(255, 255, 255, 0.62);
}

.header-subsubnav-country.game-slug-the-big-brother.header-subsubnav-country--eliminated .header-subsubnav-flag img {
  filter: grayscale(1) contrast(0.92);
}

.header-subsubnav-league-name {
  flex: 1 1 auto;
  min-width: 0;
}

.header-subsubnav-league-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  flex-shrink: 0;
  margin-inline-start: 6px;
}

/* מדינה עם ליגות – לחיצה מרחיבה */
.header-subsubnav-country.has-leagues .header-subsubnav-country-link {
  cursor: pointer;
}
.header-subsubnav-country.has-leagues .header-subsubnav-country-link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-width: 4px 0 4px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.5);
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.header-subsubnav-country.has-leagues.is-open .header-subsubnav-country-link::before {
  transform: rotate(90deg);
}

.header-subsubnav-leagues-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: rgba(0, 0, 0, 0.2);
}
.header-subsubnav-country.is-open .header-subsubnav-leagues-list {
  max-height: min(240px, 35vh);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-subsubnav-country.is-open .header-subsubnav-leagues-list::-webkit-scrollbar {
  display: none;
}
.header-subsubnav-leagues-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.header-subsubnav-leagues-list li:last-child {
  border-bottom: none;
}
.header-subsubnav-leagues-list li a {
  padding: 8px 16px 8px 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-subsubnav-leagues-list li a:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}
.header-subsubnav-league-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 2px;
}
.header-subsubnav-league-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-subsubnav li a::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: var(--accent-sport);
  transition: transform 0.2s ease;
  transform: scaleY(0);
  transform-origin: center;
  pointer-events: none;
}

.header-subsubnav li a:hover,
.header-subsubnav li a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.header-subsubnav li a:hover::after,
.header-subsubnav li a.active::after {
  transform: scaleY(1);
}

/* דסקטופ בלבד – תפריט צד, כפתור צמצום, גלילה ברשימת מדינות (פס גלילה מוסתר) */
@media (min-width: 769px) {
  .header-subnav-row2.header-subsubnav-mobile {
    display: none !important;
  }

  /* אפקט מעבר (fade) בין ספורט / פוקר / קזינו */
  .header-nav {
    position: relative;
  }
  .header-subnav[data-submenu] {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    transition: opacity 0.25s ease;
  }
  .header-subnav[data-submenu]:not(.is-active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    max-height: 100%;
    contain: content;
  }
  .header-subnav[data-submenu].is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
  }

  .header-subnav-item-has-sub.is-open .header-subsubnav {
    max-height: min(280px, 40vh);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-subnav-item-has-sub.is-open .header-subsubnav::-webkit-scrollbar {
    display: none;
  }

  /* כשהתפריט בזרימה (.page-middle): הרחבה מלאה – התפריט גדל ודוחף את הפוטר, גלילה בדף */
  .page-middle .header-subnav-item-has-sub.is-open .header-subsubnav {
    max-height: 500px;
    overflow-y: visible;
  }

  /* תפריט צדדי שנותר בהדר (לפני העברה ב־JS) – fixed ומוגבל */
  .header .header-bottom {
    top: var(--header-sidebar-top);
    bottom: var(--footer-height);
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .header .header-bottom .container {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header .header-bottom .container::-webkit-scrollbar {
    display: none;
  }

  /*
   * תפריט צדדי בזרימה (דסקטופ – מועבר ל־.page-middle ב־JS):
   * רוחב קבוע, נמתח עד תחילת הפוטר, גלילה בדף.
   */
  /* פס הפרדה בין התפריט לתוכן – צבע לפי טאב נבחר (ספורט/פוקר/קזינו) */
  .page-middle .header-bottom {
    position: sticky;
    top: var(--header-sidebar-top);
    right: auto;
    left: auto;
    bottom: auto;
    width: var(--header-sidebar-width);
    min-width: var(--header-sidebar-width);
    align-self: stretch;
    min-height: calc(100vh - var(--header-sidebar-top) - var(--footer-height));
    max-height: none;
    flex-shrink: 0;
    z-index: 998;
    overflow: visible;
    transition: width 0.2s ease, min-width 0.2s ease, border-inline-end-color 0.18s ease;
    border-inline-end: 2px solid var(--accent-sport);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
  }
  .page-middle .header-bottom[data-active-submenu="poker"] {
    border-inline-end-color: var(--accent-poker);
  }
  .page-middle .header-bottom[data-active-submenu="casino"] {
    border-inline-end-color: var(--accent-casino);
  }
  .page-middle .header-bottom[data-active-submenu="sport"] {
    border-inline-end-color: var(--accent-sport);
  }

  .page-middle .header-bottom .container {
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    transition: padding 0.2s ease;
  }

  /* כפתור צמצום על פס ההפרדה – עיגול */
  .header-sidebar-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  }
  .header-sidebar-toggle:hover {
    background: rgba(35, 35, 35, 0.98);
    color: #fff;
  }
  .header-bottom[data-active-submenu="sport"] .header-sidebar-toggle { color: var(--accent-sport); }
  .header-bottom[data-active-submenu="poker"] .header-sidebar-toggle { color: var(--accent-poker); }
  .header-bottom[data-active-submenu="casino"] .header-sidebar-toggle { color: var(--accent-casino); }
  .header-sidebar-toggle-icon {
    display: block;
    transition: transform 0.18s ease;
    /* תפריט פתוח = חץ שמאלה (צמצם), תפריט צמצום = חץ ימינה (הרחב) */
    transform: rotate(180deg);
  }
  .header-sidebar-toggle-icon svg {
    display: block;
    width: 12px;
    height: 12px;
  }

  /* מצב צמצום – רק אייקונים */
  .header-bottom.is-collapsed,
  .page-middle .header-bottom.is-collapsed {
    width: var(--header-sidebar-width-collapsed);
    min-width: var(--header-sidebar-width-collapsed);
  }
  .header-bottom.is-collapsed .container {
    padding: 8px;
  }
  .header-bottom.is-collapsed .header-sidebar-toggle-icon {
    transform: rotate(0deg);
  }
  .header-bottom.is-collapsed .header-subnav-heading {
    display: none;
  }
  .header-bottom.is-collapsed .header-subnav li a,
  .header-bottom.is-collapsed .header-subnav-item-has-sub .header-subnav-parent {
    justify-content: center;
    padding: 10px;
  }
  .header-bottom.is-collapsed .header-subnav li a span:not(.header-subnav-icon),
  .header-bottom.is-collapsed .header-subnav-item-has-sub .header-subnav-parent span:not(.header-subnav-icon) {
    display: none;
  }
  .header-bottom.is-collapsed .header-subnav-item-has-sub .header-subsubnav {
    display: none;
  }
  .header-bottom.is-collapsed .header-subnav-icon {
    margin: 0;
  }
}

/* ===== מובייל – תפריט ממש מתחת לחלק הירוק (לוגו); הדר עליון ומרכזי צף בגלילה ===== */
@media (max-width: 768px) {
  /* בדסקטופ הפאנל מופיע מעל התפריט הצדדי. במובייל אין סיידבר אנכי
     (רק שורת קטגוריות אופקית) – ולכן מסתירים אותו כי ה-dock התחתון
     משמש לאותה מטרה. */
  .header-sidebar-auth {
    display: none !important;
  }

  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0a0a0a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .header .header-top {
    order: 1;
    flex-shrink: 0;
    min-height: var(--header-top-height);
  }
  .header .header-main {
    order: 2;
    flex-shrink: 0;
    min-height: var(--header-main-height);
  }
  .header .header-bottom {
    order: 3;
    flex-shrink: 0;
  }

  .header-sidebar-toggle {
    display: none;
  }

  .header .container {
    padding-left: var(--space-x-sm);
    padding-right: var(--space-x-sm);
  }

  .header-top .container {
    height: 34px;
    direction: rtl;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .header-top-buttons,
  .header-top-right {
    height: 34px;
  }

  .header-top-buttons {
    order: 1;
  }

  .header-top-right {
    order: 2;
  }

  .header-top-btn,
  .header-top-right a {
    padding: 0 12px;
    font-size: 12px;
    height: 34px;
  }

  .header-top-right .header-top-icon {
    width: 15px;
    height: 15px;
  }

  .header-main {
    margin-bottom: 0;
  }

  .header-main .container {
    height: 56px;
  }

  .header-logo a {
    font-size: 24px;
    line-height: 1;
  }

  .header-auth {
    gap: 4px;
  }

  .header-auth-logged {
    gap: 4px;
  }

  .header-auth-greeting {
    font-size: 0.64rem;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-auth-balance {
    font-size: 0.64rem;
    padding: 2px 5px;
  }

  .header-auth-logout,
  .header-auth-area {
    padding: 2px 6px;
    font-size: 0.6rem;
  }

  .header-auth-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .header-auth-text {
    display: none;
  }

  .header-auth-icon {
    width: 18px;
    height: 18px;
  }

  /* ---------- מובייל: תפריט תחתון – תמיד מתחת ללוגו, לא fixed; גלילת דף לא נחסמת ---------- */
  .header-bottom {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 52px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: linear-gradient(180deg, rgba(20,24,38,0.98) 0%, rgba(14,18,30,0.98) 55%, rgba(8,10,18,0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .header-bottom .container {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  /* שורת משחקים – גלילה אופקית, RTL */
  .header-subnav {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 52px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-bottom: none;
    direction: rtl;
  }
  .header-subnav::-webkit-scrollbar {
    display: none;
  }

  .header-subnav:not(.is-active) {
    display: none;
  }

  .header-subnav.is-active {
    display: flex;
  }

  .header-subnav-heading {
    display: none !important;
  }

  .header-subnav > li:not(.header-subnav-heading) {
    flex: 1 1 0;
    min-width: 56px;
    max-width: none;
    width: auto;
    height: auto;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    border: none;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  }
  /* הסרת קו הפרדה מהפריט הראשון הנראה (ה-heading מוסתר במובייל), ב-LTR וב-RTL כאחד */
  .header-subnav > li:not(.header-subnav-heading):first-child,
  .header-subnav > li.header-subnav-heading + li:not(.header-subnav-heading) {
    border-inline-start: none;
  }

  .header-subnav li a,
  .header-subnav-item-has-sub .header-subnav-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 52px;
    height: 100%;
    padding: 4px 3px 5px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
  }

  /* כמות ליגות – מובייל: בפינה, אדום גרדיאנט, טקסט לבן; ב־hover/open נשאר אדום */
  .header-subnav-item-has-sub .header-subnav-parent {
    position: relative;
    overflow: visible;
  }
  .header-subnav-item-has-sub .header-subnav-parent .header-subnav-live-count {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 6px;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    width: 22px;
    min-width: 22px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    border: none;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
    border-end-start-radius: 6px;
    border-end-end-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .header-subnav-item-has-sub .header-subnav-parent:hover .header-subnav-live-count,
  .header-subnav-item-has-sub.is-open .header-subnav-parent .header-subnav-live-count {
    color: #fff;
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  /* שידור חי – תג LIVE כמו מונה משחקים חיים (צמוד לפינה העליונה) */
  .header-subnav-parent--live-stream {
    position: relative;
    overflow: visible;
  }
  .header-subnav-parent--live-stream .header-subnav-live-tag {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 6px;
    margin: 0;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    min-width: 0;
    width: auto;
    height: 20px;
    padding: 0 5px;
    border-radius: 0;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
    border-end-start-radius: 6px;
    border-end-end-radius: 6px;
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .header-subnav-parent--live-stream:hover .header-subnav-live-tag,
  .header-subnav-parent--live-stream.active .header-subnav-live-tag {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  .header-subnav li a .header-subnav-icon,
  .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-subnav li a .header-subnav-icon img,
  .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    object-position: center;
  }

  /* כל משחק בשורה (ספורט / צ'אנס / אח גדול): עד 2 שורות טקסט בלי חיתוך */
  .header-subnav > li:not(.header-subnav-heading) a > span:not(.header-subnav-icon):not(.header-subnav-live-count):not(.header-subnav-live-tag) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    hyphens: auto;
  }

  .header-subnav li a::after {
    display: none;
  }

  /* משחק עם תת-תפריט – אותה לוגיקת רוחב/גובה כמו פריט שטוח */
  .header-subnav-item-has-sub {
    flex: 1 1 0 !important;
    min-width: 56px !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 52px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
  }

  .header-subnav-item-has-sub.is-open {
    flex: 1 1 0 !important;
    min-width: 56px !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 52px !important;
  }

  /* מובייל: תוכן מדינות/ליגות מוצג ב־row2, לא כאן – מסתירים את הפאנל המקורי */
  .header-subnav-item-has-sub .header-subsubnav {
    display: none !important;
  }

  /* ---------- שורת מדינות – מופיעה מתחת למשחק שנבחר; עמודה אנכית וגלילה אחת (לא row – לא צהוב) ---------- */
  .header-subnav-row2.header-subsubnav-mobile {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom: none;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease-out;
    direction: rtl;
  }

  /* כשפתוח: גובה לפי תוכן (מספר מדינות), עד מקסימום לגלילה כשהרבה מדינות */
  .header-nav.is-row2-open .header-subnav-row2.header-subsubnav-mobile {
    flex-direction: column !important;
    max-height: min(520px, 72vh) !important;
    height: auto !important;
    opacity: 1 !important;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease-out;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border-bottom: 1px solid #6b7280;
    flex-wrap: nowrap;
    padding: 8px 6px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #1a1a1a;
  }
  .header-nav.is-row2-open .header-subnav-row2.header-subsubnav-mobile::-webkit-scrollbar {
    display: none;
  }

  /* פריט מדינה ב־row2 – פס הפרדה אפור (#6b7280) via ::after; לא מתכווץ כדי שהגלילה תעבוד */
  .header-subnav-row2.header-subsubnav-mobile > li {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 0;
  }
  .header-subnav-row2.header-subsubnav-mobile > li::after {
    content: '';
    display: block;
    height: 1px;
    background: #6b7280;
    width: 100%;
    flex-shrink: 0;
  }
  .header-subnav-row2.header-subsubnav-mobile > li:last-child::after {
    display: none;
  }
  .header-subnav-row2.header-subsubnav-mobile > li:last-child {
    padding-bottom: 0;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: right;
    box-sizing: border-box;
    text-decoration: none;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country-link:hover {
    background: rgba(0, 0, 0, 0.08);
  }
  /* ביטול פס צהוב/אקסנט על לינקי מדינות – רק פס הפרדה האפור (li::after) */
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country-link::after {
    display: none !important;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-flag {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* רק הריבוע של הסה״כ ליגות – אדום גרדיאנט, טקסט לבן */
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-count {
    margin-inline-start: auto;
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: none;
  }

  /* חץ הרחבת ליגות – כהה על רקע צהוב */
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country.has-leagues .header-subsubnav-country-link::before {
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.5);
  }

  /* חלק אפור – רשימת ליגות מתחת למדינה; ללא גלילה פנימית – כל הגלילה בתפריט (row2) */
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 50%, #9ca3af 100%);
    transition: max-height 0.3s ease;
    border-top: 1px solid #6b7280;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country.is-open .header-subsubnav-leagues-list {
    max-height: 2000px;
    overflow: visible;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li {
    border-bottom: 1px solid #6b7280;
  }
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li:last-child {
    border-bottom: none;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px 10px 32px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li a:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* האח הגדול – גדלי דגל/לוגו בשורת המשחקים (מובייל) */
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-flag {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country.game-slug-the-big-brother .header-subsubnav-league-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }
}

/* ===== מובייל קטן – פונטים וריווח מוקטנים ===== */
@media (max-width: 480px) {
  .header-top .container {
    height: 32px;
  }

  .header-top-btn,
  .header-top-right a {
    padding: 0 6px;
    font-size: 10px;
    height: 32px;
  }

  .header-top-right .header-top-icon {
    width: 14px;
    height: 14px;
  }

  .header-main .container {
    height: 48px;
  }

  .header-logo a {
    font-size: 18px;
    line-height: 1;
  }

  .header-auth-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .header-auth-greeting { font-size: 0.58rem; max-width: 60px; }
  .header-auth-balance { font-size: 0.6rem; padding: 1px 4px; }
  .header-auth-logout,
  .header-auth-area { padding: 2px 5px; font-size: 0.56rem; }

  .header-auth-icon {
    width: 15px;
    height: 15px;
  }

  .header-bottom {
    height: auto;
    min-height: 50px;
  }

  .header-bottom .container {
    height: auto;
    min-height: 50px;
  }

  .header-nav {
    height: auto;
    min-height: 50px;
  }

  /* רק שורת המשחקים – גובה לפי תוכן (טקסט בשתי שורות) */
  .header-nav > .header-subnav {
    height: auto !important;
    min-height: 50px;
  }

  .header-nav > .header-subnav > li:not(.header-subnav-heading) {
    height: auto !important;
    min-height: 50px;
  }

  .header-nav > .header-subnav .header-subnav-item-has-sub {
    height: auto !important;
    min-height: 50px !important;
  }

  .header-nav > .header-subnav li a,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent {
    padding: 3px 3px 4px;
    font-size: 10px;
    min-height: 50px;
  }

  .header-nav > .header-subnav li a .header-subnav-icon,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }
  .header-nav > .header-subnav li a .header-subnav-icon svg,
  .header-nav > .header-subnav li a .header-subnav-icon img,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon svg,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
  }
  /* תג הכמות – אותו רוחב וגובה בכל הגדלים */
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-live-count {
    width: 22px;
    min-width: 22px;
    height: 20px;
    font-size: 11px;
    padding: 0;
  }

  .header-nav > .header-subnav .header-subnav-parent--live-stream .header-subnav-live-tag {
    height: 20px;
    padding: 0 4px;
    font-size: 7px;
    inset-inline-end: 6px;
  }

  .header-nav > .header-subnav .header-subnav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }
}

/* ===== מובייל קטן מאוד – פונטים צרים (כולל iPhone SE) + תיקוני רספונסיביות ===== */
@media (max-width: 360px) {
  .header-top .container {
    height: 30px;
  }

  .header-top-btn {
    padding: 0 4px;
    font-size: 9px;
    gap: 3px;
    height: 30px;
  }

  .header-top-btn-icon img {
    width: 14px;
    height: 14px;
  }

  .header-top-right a .header-top-text {
    display: none;
  }

  .header-top-right a {
    gap: 0;
    padding: 0 6px;
    font-size: 0;
    height: 30px;
  }

  .header-top-right .header-top-icon {
    width: 14px;
    height: 14px;
    font-size: initial;
  }

  .header-main .container {
    height: 44px;
  }

  .header-logo a {
    font-size: 16px;
    line-height: 1;
  }

  .header-auth {
    gap: 4px;
  }

  .header-auth-btn {
    padding: 3px 5px;
    font-size: 9px;
    gap: 3px;
    border-radius: 4px;
  }

  .header-auth-greeting { font-size: 0.54rem; max-width: 50px; }
  .header-auth-balance { font-size: 0.56rem; padding: 1px 3px; }
  .header-auth-logout,
  .header-auth-area { padding: 1px 4px; font-size: 0.52rem; }

  .header-auth-icon {
    width: 13px;
    height: 13px;
  }

  .header-bottom {
    height: auto;
    min-height: 48px;
  }

  .header-bottom .container {
    height: auto;
    min-height: 48px;
  }

  .header-nav {
    height: auto;
    min-height: 48px;
  }

  .header-nav > .header-subnav {
    height: auto !important;
    min-height: 48px;
  }

  .header-nav > .header-subnav > li:not(.header-subnav-heading) {
    height: auto !important;
    min-height: 48px;
  }

  .header-nav > .header-subnav .header-subnav-item-has-sub {
    height: auto !important;
    min-height: 48px !important;
  }

  .header-nav > .header-subnav li a,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent {
    padding: 3px 2px 4px;
    font-size: 9px;
    min-height: 48px;
  }

  .header-nav > .header-subnav li a .header-subnav-icon,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }
  .header-nav > .header-subnav li a .header-subnav-icon svg,
  .header-nav > .header-subnav li a .header-subnav-icon img,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon svg,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-live-count {
    width: 22px;
    min-width: 22px;
    height: 20px;
    font-size: 11px;
    padding: 0;
  }

  .header-nav > .header-subnav .header-subnav-parent--live-stream .header-subnav-live-tag {
    height: 20px;
    padding: 0 4px;
    font-size: 6px;
    inset-inline-end: 4px;
  }

  .header-nav > .header-subnav .header-subnav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }

  .header-subnav > li:not(.header-subnav-heading) {
    min-width: 56px;
    max-width: none;
  }

  .header-subnav-item-has-sub {
    min-width: 56px !important;
    max-width: none !important;
  }

  .header-subnav-item-has-sub.is-open {
    min-width: 56px !important;
    max-width: none !important;
  }

  .header-nav.is-row2-open .header-subnav-row2.header-subsubnav-mobile {
    padding: 6px 4px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country-link {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 40px;
    gap: 6px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-flag {
    width: 20px;
    height: 20px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li a {
    padding: 8px 10px 8px 24px;
    font-size: 12px;
    min-height: 38px;
    gap: 8px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-logo {
    width: 18px;
    height: 18px;
  }
}

/* --- מסכים עד 320px: הקטנה מקסימלית, מניעת overflow בכל מצב --- */
@media (max-width: 320px) {
  /* פס עליון – גובה מינימלי */
  .header-top .container {
    height: 28px;
  }

  .header-top-btn,
  .header-top-right a {
    height: 28px;
  }

  /* כפתורי ספורט/פוקר/קזינו – font ו-padding מינימליים */
  .header-top-btn {
    padding: 0 3px;
    font-size: 8px;
    gap: 2px;
  }

  .header-top-btn-icon img {
    width: 12px;
    height: 12px;
  }

  /* לינקי שירות/עזרה – אייקון בלבד, ללא טקסט */
  .header-top-right a {
    padding: 0 4px;
    font-size: 0;
    gap: 0;
  }

  .header-top-right .header-top-icon {
    width: 12px;
    height: 12px;
  }

  /* חלק מרכזי – לוגו + auth */
  .header-main .container {
    height: 40px;
    gap: 8px;
  }

  .header-logo a {
    font-size: 14px;
    line-height: 1;
  }

  .header-auth {
    gap: 3px;
  }

  .header-auth-btn {
    padding: 2px 4px;
    font-size: 8px;
    gap: 2px;
    border-radius: 4px;
  }

  .header-auth-greeting { display: none; }
  .header-auth-balance { font-size: 0.54rem; padding: 1px 3px; }
  .header-auth-logout,
  .header-auth-area { padding: 1px 3px; font-size: 0.5rem; }

  .header-auth-icon {
    width: 12px;
    height: 12px;
  }

  /* תפריט משחקים – הקטנה נוספת של min/max-width */
  .header-bottom {
    min-height: 46px;
  }

  .header-bottom .container {
    min-height: 46px;
  }

  .header-nav {
    min-height: 46px;
  }

  .header-nav > .header-subnav {
    height: auto !important;
    min-height: 46px;
  }

  .header-nav > .header-subnav > li:not(.header-subnav-heading) {
    height: auto !important;
    min-height: 46px;
  }

  .header-nav > .header-subnav .header-subnav-item-has-sub {
    height: auto !important;
    min-height: 46px !important;
  }

  .header-subnav > li:not(.header-subnav-heading) {
    min-width: 52px;
    max-width: none;
  }

  .header-subnav-item-has-sub {
    min-width: 52px !important;
    max-width: none !important;
  }

  .header-subnav-item-has-sub.is-open {
    min-width: 52px !important;
    max-width: none !important;
  }

  .header-nav > .header-subnav li a,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent {
    padding: 2px 2px 3px;
    font-size: 8px;
    min-height: 46px;
    line-height: 1.15;
  }

  .header-nav > .header-subnav li a .header-subnav-icon,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  .header-nav > .header-subnav li a .header-subnav-icon svg,
  .header-nav > .header-subnav li a .header-subnav-icon img,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon svg,
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-icon img {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
  }

  .header-nav > .header-subnav .header-subnav-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  /* תג כמות ליגות – מוקטן ב-320px */
  .header-nav > .header-subnav .header-subnav-item-has-sub .header-subnav-parent .header-subnav-live-count {
    width: 20px;
    min-width: 20px;
    height: 18px;
    font-size: 10px;
    inset-inline-end: 2px;
  }

  .header-nav > .header-subnav .header-subnav-parent--live-stream .header-subnav-live-tag {
    height: 18px;
    padding: 0 3px;
    font-size: 6px;
    inset-inline-end: 2px;
    border-end-start-radius: 5px;
    border-end-end-radius: 5px;
  }

  /* Row2 – ריווח מינימלי */
  .header-nav.is-row2-open .header-subnav-row2.header-subsubnav-mobile {
    padding: 4px 2px;
    max-height: min(400px, 65vh) !important;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-country-link {
    padding: 6px 8px;
    font-size: 12px;
    min-height: 36px;
    gap: 6px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-flag {
    width: 18px;
    height: 18px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-count {
    font-size: 10px;
    padding: 2px 4px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-leagues-list li a {
    padding: 6px 8px 6px 20px;
    font-size: 11px;
    min-height: 34px;
    gap: 6px;
  }

  .header-subnav-row2.header-subsubnav-mobile .header-subsubnav-league-logo {
    width: 16px;
    height: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE USER DOCK – תפריט משתמש צף תחתון, נייד בלבד
   ═══════════════════════════════════════════════════════════════════ */
.mobile-userdock,
.mobile-userdock-strip { display: none; }

@media (max-width: 768px) {
  /* רצועת ברכה + יתרה מעל ה-dock */
  .mobile-userdock-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom));
    z-index: 1499;
    padding: 5px 14px;
    background: linear-gradient(180deg, rgba(28,32,46,0.94) 0%, rgba(20,24,38,0.96) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    line-height: 1.3;
    direction: rtl;
    pointer-events: auto;
  }
  /* כל "צד" של הרצועה (יוזר / יתרה) – אווטר עגול + טקסט לידו */
  .mobile-userdock-strip__user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
  .mobile-userdock-strip__user--balance {
    flex-shrink: 0;
  }

  /* האווטר העגול – אות ראשונה של שם המשתמש או SVG (יתרה) */
  .mobile-userdock-strip__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-sport, #f5c518) 0%, #d4a914 100%);
    color: #141414;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 2px rgba(0,0,0,0.25);
    flex-shrink: 0;
  }
  /* עיגול היתרה – אותו עיצוב בדיוק כמו עיגול ה"שלום" (רקע זהוב מלא)
     רק שהתוכן בפנים הוא הסימן ₪ */
  .mobile-userdock-strip__avatar--balance {
    color: #141414;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-userdock-strip__greet {
    color: rgba(255,255,255,0.75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .mobile-userdock-strip__greet strong {
    color: #fff;
    font-weight: 700;
  }
  .mobile-userdock-strip__balance {
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
    white-space: nowrap;
  }
  .mobile-userdock-strip__balance strong {
    color: var(--accent-sport, #f5c518);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .mobile-userdock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: linear-gradient(180deg, rgba(20,24,38,0.96) 0%, rgba(8,10,18,0.98) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -6px 22px rgba(0,0,0,0.45);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    direction: rtl;
    pointer-events: auto;
  }

  /* רווח תחתי לדף כדי שתוכן לא יוסתר תחת ה-dock + הרצועה */
  body.has-mobile-userdock,
  body:has(> .mobile-userdock) {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  /* למצב אורח (ללא רצועת "בוקר טוב" מעל ה-dock) – רווח קטן יותר */
  body.has-mobile-userdock--guest,
  body:has(> .mobile-userdock--guest) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .mobile-userdock-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
    min-width: 0;
  }
  .mobile-userdock-cell:active {
    transform: scale(0.96);
    background: rgba(255,255,255,0.06);
  }
  .mobile-userdock-cell:focus-visible {
    outline: 2px solid rgba(245,197,24,0.6);
    outline-offset: -2px;
  }

  .mobile-userdock-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
  }
  .mobile-userdock-icon svg {
    width: 100%;
    height: 100%;
  }

  .mobile-userdock-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 0;
    max-width: 100%;
  }
  .mobile-userdock-greet {
    font-size: 9.5px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
  }
  .mobile-userdock-name,
  .mobile-userdock-balance {
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: plaintext;
  }
  .mobile-userdock-cell--home .mobile-userdock-name,
  .mobile-userdock-cell--account .mobile-userdock-name,
  .mobile-userdock-cell--bets .mobile-userdock-name,
  .mobile-userdock-cell--logout .mobile-userdock-name {
    direction: rtl;
  }


  /* התנתק – אדום עדין */
  .mobile-userdock-cell--logout {
    color: rgba(255,140,140,0.95);
  }
  .mobile-userdock-cell--logout .mobile-userdock-icon {
    color: rgba(255,120,120,0.95);
  }
  .mobile-userdock-cell--logout .mobile-userdock-name {
    color: rgba(255,180,180,1);
  }
  .mobile-userdock-cell--logout:active {
    background: rgba(255,80,80,0.12);
  }

  /* פריט פעיל (נמצאים בעמוד אזור אישי) */
  .mobile-userdock-cell.is-active {
    background: rgba(245,197,24,0.08);
  }
  .mobile-userdock-cell.is-active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: var(--accent-sport, #f5c518);
    border-radius: 0 0 3px 3px;
  }
  .mobile-userdock-cell.is-active .mobile-userdock-icon,
  .mobile-userdock-cell.is-active .mobile-userdock-name {
    color: var(--accent-sport, #f5c518);
  }

  /* כשה-dock פעיל מסתירים את תיבת ה-auth מהראשי (היא הוחלפה ע"י ה-dock) */
  .header-auth-logged {
    display: none !important;
  }

  /* גרסת אורח (מנותק) – 2 תאים, אותו עיצוב בדיוק כמו ה-dock המחובר
     (אייקון מלמעלה, טקסט מתחת) ולא 2 כפתורים אופקיים נפרדים. */
  .mobile-userdock--guest {
    grid-template-columns: repeat(2, 1fr);
  }
  /* מבטלים את ההגדרות הישנות (row/border/padding מוגבר) ומשאירים את התא
     בדיוק כמו ב-mobile-userdock המחובר. */
  .mobile-userdock--guest .mobile-userdock-cell {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-weight: 600;
    border-radius: 0;
    border: none;
  }
  .mobile-userdock--guest .mobile-userdock-cell .mobile-userdock-icon {
    width: 22px;
    height: 22px;
  }
  .mobile-userdock--guest .mobile-userdock-cell .mobile-userdock-name {
    font-size: 11px;
    font-weight: 600;
  }

  /* כפתור התחבר – סגנון משני, רקע שקוף + טקסט בהיר */
  .mobile-userdock-cell--login {
    color: rgba(255,255,255,0.92);
  }
  .mobile-userdock-cell--login .mobile-userdock-icon {
    color: rgba(255,255,255,0.9);
  }
  .mobile-userdock-cell--login:active {
    background: rgba(255,255,255,0.08);
  }

  /* כפתור הירשם – הדגשה צהובה (CTA) באותו עיצוב Dock קיים */
  .mobile-userdock-cell--register {
    color: var(--accent-sport, #f5c518);
  }
  .mobile-userdock-cell--register .mobile-userdock-icon,
  .mobile-userdock-cell--register .mobile-userdock-name {
    color: var(--accent-sport, #f5c518);
  }
  .mobile-userdock-cell--register:active {
    background: rgba(245,197,24,0.12);
  }

  /* ה-dock של האורח לא צריך את הרצועה העליונה */
  .mobile-userdock--guest ~ .mobile-userdock-strip,
  .mobile-userdock-strip:has(+ .mobile-userdock--guest) {
    display: none;
  }
}

/* התאמה למסך צר (≤360px) */
@media (max-width: 360px) {
  .mobile-userdock {
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom)) 2px;
  }
  .mobile-userdock-cell {
    padding: 5px 2px;
    gap: 2px;
  }
  .mobile-userdock-icon {
    width: 20px;
    height: 20px;
  }
  .mobile-userdock-greet {
    font-size: 9px;
  }
  .mobile-userdock-name,
  .mobile-userdock-balance {
    font-size: 10.5px;
  }
}

/* התאמה לנייד מאוד צר (≤320px) */
@media (max-width: 320px) {
  .mobile-userdock-greet {
    display: none;
  }
}
