.all-sports-overlay {
  animation: slideUp 0.3s ease-out backwards;
  background-color: var(--bg-primary);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 50px 100px 16px color(srgb 0.058 0.0996 0.145);
  max-height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
  z-index: 2400;
  will-change: transform;
}

@media (max-width: 599px) {
  .all-sports-overlay {
    box-shadow: none;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Прячем скроллбар в WebKit-браузерах (Safari, Chrome) */
.all-sports-overlay::-webkit-scrollbar {
  display: none;
}

/* Для Firefox */
.all-sports-overlay {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.az-leagues-container {
  background-color: var(--bg-secondary);
  padding-bottom: 10px;
}

.all-sports-item.active .as-sport-name {
  color: var(--accent-blue);
  color: var(--active-sport-color, var(--accent-blue));
}

.all-sports-header-fixed {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 60px;
  border-top: 2px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-primary);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  color: var(--text-secondary);
  padding: 0 12px 0px 20px;
  z-index: 200;
  box-sizing: border-box;
}

.all-sports-header-fixed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background-color: var(--separator);
}

.all-sports-header-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.all-sports-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.all-sports-close-btn:active {
  background-color: var(--bg-tertiary);
}

.all-sports-scroll-area {
  position: absolute;
  top: 60px;
  bottom: 60px; /* Space for BottomNav */
  border-radius: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 20px;
}

/* Hide scrollbar */
.all-sports-scroll-area::-webkit-scrollbar {
  display: none;
}
.all-sports-scroll-area {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Sticky container for search + favorites */
.all-sports-sticky-top {
  position: sticky;
  top: 0;
  z-index: 150;
  background-color: var(--bg-primary);
  padding: 10px 10px 0px;
  margin: 0;
}

/* Search box inside sticky container */
.all-sports-search-box {
  margin-bottom: 10px;
}

/* Search trigger button */
.all-sports-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.all-sports-search-trigger:active {
  background-color: var(--bg-tertiary);
}

/* Active Search Input */
.all-sports-search-active {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--white-20);
  border-radius: 8px;
  box-sizing: border-box;
}

.search-active-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-active-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation; /* prevents double-tap zoom */
}

.search-active-input::placeholder {
  color: var(--text-tertiary);
}

.search-active-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.search-active-close:active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Favorites Button - inside sticky container */
.all-sports-favorites-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.all-sports-favorites-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.5);
}

.all-sports-favorites-btn:active {
  transform: scale(0.98);
}

.all-sports-favorites-text {
  flex: 1 1;
  text-align: left;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.all-sports-favorites-count {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Search Results */
.all-sports-search-results {
  padding: 10px;
}

.search-results-hint,
.search-results-loading,
.search-results-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-tertiary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
}

.search-results-section {
  margin-bottom: 16px;
}

.search-results-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 8px;
}

.search-result-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.search-result-item:active {
  background: var(--bg-tertiary);
}

.search-result-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.search-result-time {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-result-live {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  animation: search-live-pulse 2s ease-in-out infinite;
}

@keyframes search-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.search-result-sport {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(74, 144, 226, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sport-specific badge colors */
.search-result-sport[data-sport="1"] { background: #1a3f1f; } /* Soccer */
.search-result-sport[data-sport="2"] { background: #513517; } /* Tennis */
.search-result-sport[data-sport="3"] { background: #3e1f0d; } /* Basketball */
.search-result-sport[data-sport="4"] { background: #3F4853; } /* Ice Hockey */
.search-result-sport[data-sport="5"] { background: #7F2F00; } /* Volleyball */
.search-result-sport[data-sport="6"] { background: #0E2A5A; } /* Handball */
.search-result-sport[data-sport="7"] { background: #512A0D; } /* American Football */
.search-result-sport[data-sport="8"] { background: #1B222B; } /* MMA */
.search-result-sport[data-sport="9"] { background: #14213d; } /* Baseball */
.search-result-sport[data-sport="10"] { background: #1e3a8a; } /* E-Sports */
.search-result-sport[data-sport="11"] { background: #4A0E14; } /* Cricket */

.search-result-teams {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result-vs {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
}

.search-result-league {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.search-trigger-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-trigger-text {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  color: var(--text-tertiary);
  flex: 1 1;
}

.all-sports-header button {
  font-size: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.all-sports-list {
  display: flex;
  margin-bottom: 0;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow-y: visible;
  position: relative;
  max-width: 780px;
  width: 100%;
}

.all-sports-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-primary);
  border: 0;
  padding: 8px;
  width: 100%;
  color: var(--text-secondary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 31px;
  text-align: left;
}

.sport-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.as-sport-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  }

.event-count {
  color: color(display-p3 0.68 0.787 0.985);
  font-family: 'Proxima Nova Cond', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

/* Removed drag-indicator - replaced with close button */

.all-sports-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.all-sports-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50px;
  right: 10px;
  height: 1px;
  z-index: 3;
  background-color: var(--separator);
}

.all-sports-overlay.closing {
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* header-content removed - using new header layout */

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.sport-section {
  padding: 0 10px;
  position: relative;
  scroll-margin-top: 60px; /* Account for sticky search wrapper */
}

/* Sticky active sport header */
.sport-section .all-sports-item.active {
  position: sticky;
  top: 101px; /* below search wrapper */
  z-index: 100;
  background-color: var(--bg-primary);
  margin-top: 0;
}

.leagues-container {
  padding: 20px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary) !important;
  font-family: 'Proxima Nova', sans-serif;
}


.league-country {
  border: none;
  position: relative;
  align-items: center;
  font-family: 'Proxima Nova', sans-serif;
  background: 0;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  width: 100%;
  font-weight: normal;
  scroll-margin-top: 110px; /* Account for sticky search + sport header */
  gap: 15px;
  margin: 0px;
  padding: 8px 26px;
}

.league-country.last::after {
  display: none;
}


.league-country::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: var(--separator);
}

.country-flag {
  width: 20px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px; /* Немного скруглим флаг */
  min-width: 20px; /* Минимальная ширина для видимости */
}

.country-flag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 14px;
  background-color: var(--separator-light); /* Флаг занимает пространство даже без изображения */
}

.as-league-item {
  border: none;
  position: relative;
  color: var(--text-primary);
  font-family: "Proxima Nova", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 15px 7px 51px;
  text-decoration: none;
}


.as-league-item:last-child::after {
  display: none;
}

.as-league-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 10px;
  height: 1px;
  background-color: var(--separator);
}

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

.league-event-count {
  color: color(display-p3 .68 .787 .985);
}

/* Адаптируем паддинг и внешний вид */
.leagues-wrapper {
  background-color: var(--bg-primary);
  opacity: 1;
  overflow-y: auto;
  border-radius: 0 0 6px 6px;  
  padding: 0;
  /*box-shadow: -10px 0 10px -12px #000 inset,
  10px 0 10px -12px #000 inset,
  0 -10px 10px -12px #000 inset;*/
}

.league-list {
  background-color: var(--bg-tertiary);
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  padding: 1px 0;
  margin: 0px 10px 0;
}

.country-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}

.all-sports-overlay:focus-within {
  scroll-behavior: smooth;
}
/* Скелетон для загрузки лиг */
.leagues-wrapper .react-loading-skeleton {
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  background-image: linear-gradient(
    90deg,
    var(--bg-tertiary) 0px,
    var(--bg-quaternary) 40px,
    var(--bg-tertiary) 80px
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}
/* Skeleton for AllSportsMenu (bp-skeleton) */
.bp-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-skeleton-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-quaternary) 20%,
    var(--bg-tertiary) 40%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.country-flag {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

.country-flag.loaded {
  opacity: 1;
}

.all-sports-item.active {
  background-color: var(--bg-primary);
  border-radius: 0;
  padding: 12px 16px;
  z-index: 5;
  /*box-shadow: -10px 0 10px -10px #000 inset,
  10px 0 10px -10px #0a0000 inset,
  0 10px 10px -15px #000 inset;*/
}

.all-sports-item.active.sticky {
  position: sticky;
  top: 0;
  z-index: 5;
}

.all-sports-item.active::after {
  background-color: var(--accent-blue);
  bottom: 0;
  content: "";
  height: 1px;
  left: 10px;
  position: absolute;
  right: 10px;
}

.league-country.active {
  background-color: var(--bg-card-bottom);
  border-radius: 4px 4px 0 0;
  margin: 0px 10px 0px 10px;
  padding: 8px 16px;
  width: -webkit-fill-available;
  border-bottom: 1px solid var(--separator);
}

.league-country.active::after {
  display: none;
}

.top-leagues-header {
  color: var(--text-tertiary);
  font-family: Proxima Nova;
  font-weight: 500;
  padding: 10px 5px 10px 20px;
  background-color: var(--bg-primary);
  font-size: 12px;
}

.az-leagues-header {
  color: var(--text-tertiary);
  font-family: Proxima Nova,sans-serif;
  border-radius: 6px 6px 0px 0px;
  font-weight: 500;
  font-size: 12px;
  padding: 10px 5px 10px 20px;
  margin-top: 8px;
  background-color: var(--bg-secondary);
}

.top-league-icon {
  height: 25px;
  width: 25px;
  margin-right: 20px;
}

.top-league-list {
background-color: var(--bg-primary);
border-radius: 0;
display: flex;
flex-direction: column;
gap: 0;
margin-bottom: 0;
padding: 1px 0;
}

.top-league-item {
  border: none;
  color: var(--text-secondary);
  display: flex;
  font-family: Proxima Nova Cond,sans-serif;
  gap: 5px;
  font-size: 16px;
  align-items: center;
  font-weight: 600;
  padding: 5px 5px 5px 25px;
  position: relative;
  text-decoration: none;
}

/* Активная лига в списке A-Z */
.as-league-item.active {
  font-weight: 600;
  color: color(display-p3 .68 .787 .985);
}

/* Активная лига в Top Leagues */
.top-league-item.active {
  font-weight: 600;
  color: color(display-p3 .68 .787 .985);
}

.top-league-item::after {
  background-color: var(--bg-primary);
  bottom: -2px;
  content: "";
  height: 1px;
  left: 50px;
  position: absolute;
  right: 6px;
  }

.all-sports-item.active {
  color: var(--accent-blue);
  color: var(--active-sport-color, var(--accent-blue)); 
}

.sport-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Active sport icon - blue color */
.all-sports-item.active .sport-icon {
  color: var(--accent-blue);
}

/* Country row: right-aligned counter */
.league-country { display: flex; align-items: center; }
.country-name { flex: 1 1 auto; min-width: 0; text-align: left;}
.country-count {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  /* Force repaint on mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* League row: right-aligned counter */
.as-league-item { display: flex; align-items: center; }
.as-league-name { flex: 1 1 auto; min-width: 0; font-family: Proxima Nova,sans-serif; }
.league-count {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-family: Proxima Nova,sans-serif;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  opacity: .85;
  /* Force repaint on mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.as-league-item.active .league-count { opacity: 1; }

/* ============================================
   SEARCH PAGE INSIDE MENU - Override styles
   ============================================ */

.all-sports-scroll-area .search-page {
  padding: 0;
  min-height: auto;
  max-width: 100%;
}

.all-sports-scroll-area .search-page-overlay {
  padding-top: 0;
  min-height: auto;
}

.all-sports-scroll-area .search-input-container {
  position: sticky;
  top: 0;
  z-index: 150;
  padding: 10px 10px;
  margin: 0;
  background: var(--bg-primary);
  width: 100%;
  box-sizing: border-box;
}

.all-sports-scroll-area .search-input {
  width: 100%;
  padding: 10px 40px 10px 40px;
  font-size: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--white-12);
  border-radius: 8px;
  box-sizing: border-box;
}

.all-sports-scroll-area .search-input:focus {
  background: var(--bg-secondary);
  border-color: var(--white-20);
}

.all-sports-scroll-area .search-input-icon {
  left: 14px;
}

.all-sports-scroll-area .search-close-btn {
  right: 10px;
}

.all-sports-scroll-area .search-results {
  margin-top: 10px;
  padding: 0 10px;
}

.all-sports-scroll-area .search-hint {
  margin-top: 10px;
  padding: 0 10px;
}

.all-sports-scroll-area .search-loading {
  right: 40px;
}

/* ============================================
   LIVE TOGGLE & INDICATORS (Mobile Menu)
   ============================================ */

.all-sports-live-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  border-radius: 12px;
  background: #2a2a2a;
  background: var(--bg-tertiary, #2a2a2a);
  color: #888;
  color: var(--text-secondary, #888);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: 10px;
  -webkit-tap-highlight-color: transparent;
}

.all-sports-live-toggle:active {
  background: #333;
  background: var(--bg-quaternary, #333);
}

.all-sports-live-toggle.active {
  background: #dc2626;
  color: white;
}

.all-sports-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

.all-sports-live-toggle.active .all-sports-live-dot {
  background: white;
  animation: as-pulse-dot 1.5s infinite;
}

@keyframes as-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Live indicator in counts */
.as-live-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5px;
  padding: 2px 4px;
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  margin-right: 4px;
  /* Force GPU layer to prevent mobile repaint ghost artifacts */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.as-total-count {
  color: #666;
  color: var(--text-tertiary, #666);
  font-size: 10px;
}

.as-chevron-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* Sport count with live indicator */
.as-sport-count {
  display: flex;
  align-items: center;
  gap: 2px;
  /* Force repaint on mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ============================================
   FILTER MODE BUTTONS (All / Live / Prematch)
   ============================================ */

.all-sports-filter-buttons {
  display: flex;
  gap: 10px;
  flex: 1 1;
  padding-right: 10px;
}

.all-sports-filter-btn {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  border: none;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: #888;
  color: var(--text-secondary, #888);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.all-sports-filter-btn:hover {
  background: var(--bg-quaternary);
  color: var(--text-primary);
}

.all-sports-filter-btn.active {
  background: #4a90e2;
  background: var(--accent-blue, #4a90e2);
  color: white;
}

/* Live button specific - red when active */
.all-sports-filter-btn.active:nth-child(2) {
  background: #dc2626;
}

.all-sports-filter-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

.all-sports-filter-btn.active .all-sports-filter-live-dot {
  background: white;
  animation: pulse-dot 1.5s infinite;
}

.all-sports-filter-btn-icon {
  flex: 0 0 auto;
  padding: 3px 7px;
}

.all-sports-filter-count {
  background: var(--white-20);
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}
/* AccountPage.css - Professional Clean Design */

.ap-page {
  background-color: var(--bg-primary);
}

/* Header with Back Button */
.ap-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--separator);
  z-index: 90;
  height: 44px;
  box-sizing: border-box;
}

.ap-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .ap-back-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

.ap-back-btn:active {
  background-color: var(--bg-tertiary);
}

.ap-header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .ap-header {
    top: 38px;
  }
}

.ap-container {
  padding: 12px;
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Profile Card */
.ap-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.ap-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(167deg, rgb(42, 133, 241), rgb(10, 41, 71));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-avatar svg {
  color: #fff;
  stroke-width: 3px;
}

.ap-user-info {
  flex: 1 1;
  min-width: 0;
}

.ap-username {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ap-email {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-userid {
  font-size: 11px;
  color: var(--text-quaternary);
}

/* Balance Card */
.ap-balance-card {
  background: var(--gradient-balance-card);
  border: 1px solid var(--balance-card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
}

.ap-balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ap-balance-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-wallet-icon {
  color: var(--accent-blue);
}

.ap-balance-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.ap-balance-actions {
  display: flex;
  gap: 10px;
}

.ap-btn {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-btn-primary {
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
}

.ap-btn-primary:hover {
  background: var(--accent-blue-hover);
}

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

.ap-btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.ap-btn-secondary:hover {
  background: var(--accent-blue-muted);
}

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

.ap-btn-danger {
  background: var(--accent-red);
  color: var(--text-primary);
  border: none;
}

.ap-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bonus Card */
.ap-bonus-card {
  background: linear-gradient(135deg, #1a2a1a 0%, #0d260d 100%);
  border: 1px solid #2a4a2a;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 25px;
}

.ap-bonus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6fcf6f;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ap-bonus-amount {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: #8ff08f;
}

.ap-bonus-progress-bar {
  width: 100%;
  height: 8px;
  background: #1a2a1a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #2a4a2a;
}

.ap-bonus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ap-bonus-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.ap-bonus-remaining {
  font-size: 12px;
  color: #6fcf6f;
  margin-bottom: 12px;
}

.ap-bonus-cancel-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--text-quaternary);
  color: var(--text-tertiary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.ap-bonus-cancel-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.ap-bonus-confirm {
  margin-top: 8px;
}

.ap-bonus-warn {
  color: var(--accent-red);
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ap-bonus-confirm-btns {
  display: flex;
  gap: 8px;
}

.ap-bonus-confirm-btns .ap-btn {
  flex: initial;
  padding: 8px 16px;
  font-size: 13px;
}

.ap-bonus-deduction-details {
  margin-bottom: 10px;
}

.ap-bonus-deduction-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 3px 0;
}

.ap-bonus-deduction-row span:last-child {
  color: var(--accent-red);
  font-weight: 600;
}

.ap-bonus-deduction-total {
  border-top: 1px solid var(--separator-light);
  padding-top: 6px;
  margin-top: 4px;
  font-weight: 600;
  color: var(--text-primary);
}

.ap-bonus-deduction-total span:last-child {
  color: var(--accent-red);
  font-size: 14px;
}

/* Menu */
.ap-menu {
  border-radius: 12px;
  overflow: hidden;
}

.ap-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gradient-fixture);
  border: none;
  border-bottom: 1px solid var(--bg-body);
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.ap-menu-item:hover {
  background: var(--hover-bg);
}

.ap-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  position: relative;
}

.ap-inbox-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
}

.ap-inbox-badge {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-red);
  border-radius: 10px;
  text-align: center;
}

.ap-menu-text {
  flex: 1 1;
  display: flex;
  align-items: center;
  text-align: left;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.ap-menu-chevron {
  color: var(--text-quaternary);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .ap-container {
    padding: 8px;
  }

  .ap-menu-item:hover {
    background: var(--gradient-fixture);
  }

  .ap-profile-card {
    padding: 14px;
  }

  .ap-avatar {
    width: 56px;
    height: 56px;
  }

  .ap-avatar svg {
    width: 32px;
    height: 32px;
  }

  .ap-username {
    font-size: 16px;
  }

  .ap-balance-card {
    padding: 16px;
  }

  .ap-balance-amount {
    font-size: 30px;
  }

  .ap-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .ap-menu-item {
    padding: 12px 14px;
  }

  .ap-menu-text {
    font-size: 14px;
  }
}

