/* ======= RESET ======= */
* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg: #E5EAE5;
  --header-bg: #005F2E;
  --header-text: #ffffff;
  --accent-color: #ff9300; 
  --text-color: #2C2C2C;
  --secondary-text: #777;
  --border-color: #ccc;
  --hover-bg: #E2F0E2;
  --header-height: 80px;
  --left-panel-width: 260px;
  --right-panel-width: 260px;
  --max-width: 1400px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border-light: #e9ecef;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.05);
  --content-width: 1320px;
  --content-padding: 20px;
  --center-column-width: 760px; /* Фиксированная ширина центральной колонки */
  --top-section-height: 56px; /* Высота для верхних блоков */
}

/* Базовые стили для html/body */
html, body {
  background-image: url(fonbet.png);
  min-height: 100%;
  width: 100%;
  font-family: var(--font-base);
  color: var(--text-color);
  font-size: 14px;
}

/* ================== WRAPPER ================== */
.page-container {
  padding-top: 0;
  max-width: 1600px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ========== ШАПКА ========== */
.header-bar {
  height: 62px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
  padding: 0 32px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: url(/static/onbanner.png);
}

.header-content {
  width: var(--content-width);
  max-width: 1320px; /* Добавляем максимальную ширину */
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  margin-left: 33px;
}
.logo-img {
  width: 140px;
  height: 120px;
  object-fit: contain;
}
.logo-text {
  font-size: 1px;
  font-weight: 800;
  color: var(--text-primary);
}
.search-block {
  position: relative;
  width: 250px; /* Уменьшаем ширину с 320px */
  margin-left: 0px;
  margin-right: 120px; /* Добавляем отступ справа */
}
.search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #888;
  pointer-events: all; /* Делаем иконку кликабельной */
  cursor: pointer; /* Добавляем курсор-указатель */
  transition: color 0.25s ease;
}
.search-field {
  width: 100%;
  height: 38px;
  padding: 0 20px 0 45px;
  background: #1f1e1e;
  border: 2px solid #2c2c2c;
  border-radius: 16px;
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.25s ease;
}
.search-field::placeholder {
  color: #888;
}
.search-field:focus {
  background: #2c2c2c;
  border-color: #ff9100;
  box-shadow: 0 3px 8px rgba(255,145,0,0.2);
  outline: none;
}
.search-field:focus + .search-ico {
  color: #ff9100;
}
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  transform: none;
  width: auto;
  padding: 0;
}
.top-btn {
  background: #1f1e1e;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 0 4px;
  padding: 8px 12px;  
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  justify-content: center;
  position: relative;
  font-size: 0.9rem;
  min-width: 110px;
  overflow: hidden;
}
.top-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  z-index: -1;
}
.top-btn:after {
  display: none; /* Убираем подчеркивание */
}
.top-btn:not(:last-child) {
  margin-right: 1%;
}
.top-btn:hover {
  color: #ff9100;
  background: #3e3e3c;
}
.top-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.top-btn i {
  margin-right: 8px;
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.top-btn:hover i {
  opacity: 1;
}

/* Рекламный баннер */
.ad-banner-vertical {
  background-color: #f5f5f5;
  border: 1px solid var(--border-color);

  text-align: center;
  margin-bottom: 10px;
  margin-top: 24px;
}
.ad-banner-vertical .ad-image {
  max-width: 100%;
  height: auto;
}
.ad-banner-vertical .ad-content {
  margin-top: 10px;
}
.ad-banner-vertical .ad-label {
  font-size: 0.8rem;
  color: #777;
}
.ad-banner-vertical .ad-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 5px 0;
}
.ad-banner-vertical .ad-text {
  font-size: 0.9rem;
  margin: 5px 0;
}
.ad-banner-vertical .ad-button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.ad-banner-vertical .ad-button:hover {
  background: #16a085;
}

/* Топ букмекеров */
.bookmakers-section .sport-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--header-bg);
  margin-bottom: 6px;
}
.bookmakers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bookmaker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
}
.bookmaker-item:hover {
  background: var(--hover-bg);
}
.bookmaker-logo {
  width: 30px;
  height: 30px;
}
.bookmaker-name {
  flex-grow: 1;
  margin-left: 10px;
}
.bookmaker-rating {
  font-size: 0.9rem;
  color: #777;
}

/* ========== ФИЛЬТР-БАР ========== */
.filter-bar {
  position: relative;
  z-index: 10;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
  flex-shrink: 0; /* Предотвращаем сжатие фильтр-бара */
  height: var(--top-section-height);
}

.filter-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}


.sort-btns {
  display: flex;
  gap: 8px;
}
.sort-button {
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.sort-button:hover {
  background: var(--bg-light);
  border-color: var(--text-primary);
}
.sort-button.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  
}

.sort-button[data-filter="live"].active {
  display: flex;
  align-items: center;
  gap: 6px; /* Равномерный отступ между элементами */
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.live-dot {
  font-size: 0.7rem;
  color: #ff2e2e;
  margin-right: 6px; /* Отступ от текста */
  display: inline-block; /* Чтобы работала трансформация */
  animation: livePulse 2s ease-in-out infinite; /* Добавляем анимацию */
  position: relative;
  top: -1px; /* Небольшая корректировка по вертикали */
  margin-top: 2px;
}
.sort-button[data-filter="live"] {
  display: flex;
  align-items: center;
  gap: 6px; /* Равномерный отступ между элементами */
}

/* Добавляем анимацию пульсации */
@keyframes livePulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.live-count {
  background: #ff2e2e;
  color: #fff;
  padding: 0 6px;
  font-size: 0.6rem;  
  margin-left: 6px;
  width: 20px;
  height: 15px;
  border-radius: 4px;
  padding: 3px;
 
}
.dates-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  transition: all 0.2s ease;
}
.date-nav-btn:hover {
  background: var(--bg-light);
  border-color: var(--text-primary);
}
.date-display {
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-weight: 600;
  background: var(--bg-white);
  font-size: 0.9rem;
}

/* ========== MAIN-WRAPPER ========== */
.main-wrapper {
  display: grid;
  grid-template-columns: var(--left-panel-width) var(--center-column-width) var(--right-panel-width);
  gap: 0;
  height: calc(100vh - var(--header-height));
  min-height: 0; /* Важно для работы скролла */
  overflow: hidden; /* Предотвращаем скролл всего wrapper */
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: var(--content-width);
}

/* Левая панель */
.left-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 0;
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 230px;
  margin-left: 30px;
}
/* Обновляем стили для секции избранного */
.favorites-section {
  height: 75px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  overflow: hidden; /* Предотвращаем выход контента за пределы */
}

.favorites-section h3 {
  font-size: 0.9rem;
  color: #ff9300;
  font-weight: 700;
  padding: 8px 0 4px;
  margin: 0;
}

.fav-empty {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2px;
  transform: translateY(-2px); /* Немного поднимаем блок */
}

.fav-empty i {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.fav-empty p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1;
}

.sports-section {
  padding: 10px;
  border-top: 1px solid #ddd;
  flex-grow: 1;
  overflow-y: auto;
  margin-top: auto; /* Прижимаем к низу */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}
.sports-section:hover {
  scrollbar-color: #d1d5db var(--bg-light);
}
.sport-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.sports-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
/* Обновляем стили для sport-item */
.sport-item {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.sport-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.sport-item > * {
  position: relative;
  z-index: 1;
}

.sport-item:hover::before {
  opacity: 1;
}

.sport-item:active::before {
  background: var(--text-primary);
  opacity: 0.1;
}

.sport-item.active {
  background: var(--bg-light);
  font-weight: 300;
}

.sport-item.active::before {
  opacity: 1;
  background: var(--text-primary);
  opacity: 0.05;
}

.sport-item .sport-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.sport-item .sport-count {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 2px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  width: 40px;
  
  justify-content: flex-end;
}

.sport-item:hover .sport-count {
  background: var(--text-primary);
  color: var(--bg-white);
  border-color: var(--text-primary);
}

.sport-item.active .sport-count {
  background: var(--text-primary);
  color: var (--bg-white);
  border-color: var(--text-primary);
  color: white;
}

/* Центральная колонка */
.center-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg-white);
  width: 600px;
  height: 100%;
  overflow: hidden; /* Меняем с overflow-y: auto на overflow: hidden */
}

/* Контейнер для матчей */
.matches-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  position: relative; /* Добавляем для правильного позиционирования */
}

/* Лига-карточка */
.league-card {
  margin-bottom: 24px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative; /* Добавляем для правильного позиционирования */
  z-index: 1; /* Предотвращаем наложение */
}

.league-card h3 {
  background: var(--bg-white);
  color: var (--text-primary);
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

/* Обновляем стили для match-item внутри league-card */
.league-card .match-item {
  padding: 8px 12px;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.league-card .match-item:last-child {
  border-bottom: none;
}

.league-card .match-item:hover {
  background: #f8f9fa;
}

/* Матч-элемент
   Переделываем в 5 колонок:
   1) время (пример: 44px)
   2) команды (auto)
   3) счёт (50px, по центру)
   4) статус (пример: 80px, выравниваем справа)
   5) звёздочка (28px)
*/
.match-item {
  display: grid;
  grid-template-columns: 44px 1fr 50px 0px 28px;
  gap: 15px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.match-item:hover {
  background: var(--hover-bg);
}
.match-time {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}
.match-teams-score {
  display: flex;
  text-align: center;
  gap: 4px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #333;
}
.team-home{
  display: flex;
  align-items: center;
  width: 150px;
  gap: 5px;
  
}

.team-away{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 150px;
  gap: 5px;

}
.team-home .team-name {
  font-weight: 500;
  text-align: right;
  
}
.team-away .team-name {
  font-weight: 500;
}
.team img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.match-score {
  
  width: 55px;
  background: #f8f9fa;
  color: #2c3e50;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 4px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}
.match-item:hover .match-score {
  background: #e9ecef;
  border-color: #dee2e6;
}
.match-status {
  font-size: 0.7rem;
  color: #aaa;
  text-align: right; /* справа */
}

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn.active {
  color: #ff970e;
}

/* Правая панель - убрали разделяющую границу */
.right-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 0;
  /* Remove left border to visually merge with the central column */
  border-left: 1px solid var(--border-light);
  overflow-y: auto;
  min-height: 820px;
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 350px;
  margin-left: -160px;
}

.news-tabs {
  height: var(--top-section-height);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}
.news-tab {
  flex: 1;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  color: #333;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-width: 2px;
  margin-bottom: 5px;
}
.news-tab:hover {
  background: #eee;
}
.news-tab.active {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}
.news-list {
  padding: 20px;
  list-style: none;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}
.news-list:hover {
  scrollbar-color: #d1d5db var(--bg-light);
}
.news-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s, transform 0.5s;
  font-size: 0.8rem;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.stats-view {
  padding: 8px;
  font-size: 0.8rem;
  color: #444;
}

/* New styles for the advertisement in the news panel */
.news-ad {
  
  text-align: center;
  
}
.news-ad img {
  max-width: 100%;
  
  transition: transform 0.3s ease;
}

/* Модалки (календарь) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.active {
  display: flex;
}
.modal-inner {
  background: #fff;
  border: 1px solid #888;
  width: 320px;
  padding: 10px;
  position: relative;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #444;
}
.cal-month-display {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.cal-days .calendar-day {
  background: #fafafa;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}
.cal-days .calendar-day:hover {
  background: var(--hover-bg);
}
.calendar-day.today {
  background: var(--accent-color);
  color: #fff;
}

/* Calendar Modal Styles */
#calendarModal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#calendarModal.active {
  display: flex;
}
#calendarModal .modal-inner {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-nav {
  background: var(--accent-color);
  border: none;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.calendar-title {
  font-weight: bold;
}
.calendar-days-header, .calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-day-name {
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
}
.calendar-day {
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  background: #f9f9f9;
  height: 50px;
}
.calendar-day:hover {
  background: var(--bg-light);
}
.calendar-day.selected {
  background: var(--accent-color);
  color: #fff;
}
.calendar-day.empty {
  background: transparent;
  cursor: default;
}

/* ...existing code... */

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day:not(.empty):hover {
  background: var(--hover-bg);
  cursor: pointer;
}



/* Updated global scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Добавляем стили для спиннера загрузки */
.loading-spinner {
  display: flex;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Добавляем стили для спиннера загрузки */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  width: 100%;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-light);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Добавляем стили для затемнения при загрузке */
.matches-container.loading,
.news-list.loading {
  position: relative;
  min-height: 200px;
}

/* Стили для заголовка лиги */
.league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    user-select: none;
}

.league-header h3 {
    margin: 0;
    padding: 0;
}

.league-toggle {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.league-card.collapsed .league-toggle {
    transform: rotate(-180deg);
}

.league-matches {
    transition: height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    height: auto;
    overflow: hidden;
}

.league-card.collapsed .league-matches {
    height: 0;
    opacity: 0;
}

/* Updated chat widget styles */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

/* Базовый медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .chat-widget {
        display: none; /* Скрываем чат на мобильных */
    }
}

/* Footer Styles */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.4s;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-section:hover h4::after {
  width: 60px;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px; /* Увеличиваем отступ сверху */
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 147, 0, 0.2);
}

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.meteor-team {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
  cursor: default;
  display: inline-block; /* Добавляем для лучшего позиционирования звездочки */
  margin-left: 4px;
}

.meteor-team::after {
  content: '⭐';
  position: absolute;
  top: -10px;
  right: -12px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.meteor-team:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Обновляем стили для основного контейнера */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  flex: 1 0 auto;
  margin-bottom: 48px; /* Добавляем отступ перед футером */
}

/* Обновляем стили для панелей чтобы скролл был только внутри них */
.left-panel,
.center-panel,
.right-panel {
  /* max-height: calc(100vh - var(--header-height) - var(--top-section-height)); */
  overflow-y: auto;
}

/* Mobile Navigation Bar */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  background: var(--bg-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-btn:active {
  animation: shake 0.2s ease-in-out;
  color: var(--accent-color);
}

.mobile-nav-btn i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.mobile-nav-btn:active i {
  transform: scale(0.9);
}

.mobile-nav-btn span {
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-btn:active span {
  transform: scale(0.95);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 2000;
  padding: 20px;
}

.mobile-menu-close,
.mobile-news-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  z-index: 2001;
}

.mobile-menu-content {
  height: 100%;
  overflow-y: auto;
  padding-top: 60px;
}

/* Mobile News Overlay */
.mobile-news-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 2000;
  padding: 20px;
}

.mobile-news-content {
  height: 100%;
  overflow-y: auto;
  padding-top: 60px;
}

/* Mobile Header Adjustments */
.burger-menu,
.mobile-news-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* Media Queries */
@media (max-width: 768px) {
  /* Show mobile navigation */
  .mobile-nav {
    display: grid;
  }

  .matches-container {

    padding: 0px;
  }


  /* Layout adjustments */
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .page-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    padding-bottom: calc(20vh + 20px); /* Space for navbar + extra padding */
  }

  .header-bar {
    height: 15vh;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .header-content {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .burger-menu {
    order: 1;
    margin-left: 10px;
  }

  .logo-wrap {
    order: 2;
    margin: 0;
    justify-content: center;
  }

  .search-block {
    order: 3;
    width: auto;
    margin: 0 10px;
  }

  .mobile-news-toggle {
    order: 4;
    margin-right: 10px;
  }

  /* Center panel adjustments */
  .main-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .center-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: calc(100vh - 10vh - 10vh); /* Viewport height - header - navbar */
  }

  /* Mobile Navigation Bar adjustments */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh; /* Reduced height */
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    align-items: center;
  }

  .mobile-nav-btn {
    padding: 4px;
  }

  .mobile-nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .mobile-nav-btn span {
    font-size: 0.65rem;
  }

  /* Chat widget adjustments */
  .chat-widget.mobile-expanded {
    height: calc(100vh - 15vh - 10vh); /* Full height minus header and navbar */
    bottom: 10vh; /* Position above navbar */
  }

  .chat-input {
    margin-bottom: 10px; /* Add space above navbar */
  }

  /* Match items adjustments for better mobile view */
  .match-item {
    padding: 12px 8px;
    grid-template-columns: 40px 1fr 45px 0px 24px;
    gap: 8px;
  }

  .team-home, .team-away {
    width: auto;
    min-width: 0;
  }

  .team-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile overlays adjustments */
  .mobile-menu-overlay,
  .mobile-news-overlay {
    padding-bottom: 10vh; /* Space for navbar */
  }

  /* Hide desktop elements */
  .header-buttons {
    display: none;
  }

  .left-panel,
  .right-panel {
    display: none;
  }

  /* Show mobile buttons */
  .burger-menu,
  .mobile-news-toggle {
    display: block;
  }

  /* Adjust header layout */
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
  }

  .logo-wrap {
    margin: 0;
  }

  .logo-img {
    width: 80px;
    height: 80px;
  }

  .search-block {
    width: 100%;
    margin: 0;
  }

  /* Center panel adjustments */
  .main-wrapper {
    display: block;
  }

  .center-panel {
    width: 100%;
    margin: 0;
    height: 65vh;
  }

  /* Match items adjustments */
  .match-item {
    padding: 15px 10px;
  }

  .team-name {
    font-size: 0.9rem;
  }

  /* Chat widget adjustments */
  .chat-widget {
    display: none; /* Hide default chat widget */
  }

  .chat-widget.mobile-expanded {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .header-bar {
    height: auto;
    padding: 10px 0;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
  }

  /* Верхняя часть с логотипом */
  .logo-wrap {
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 5px 0;
    order: 1;
  }

  .logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  /* Нижняя часть с навигацией */
  .mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    order: 2;
  }

  .burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
  }

  .search-block {
    flex: 1;
    margin: 0 10px;
    max-width: none;
  }

  .search-field {
    height: 40px;
    font-size: 0.85rem;
  }

  .mobile-news-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
  }

  .burger-menu:hover,
  .mobile-news-toggle:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
  }

  /* Скрываем десктопные элементы */
  .header-buttons {
    display: none;
  }

  .header-bar {
    height: auto;
    max-height: 120px; /* Уменьшаем максимальную высоту шапки */
    padding: 8px 0;
    display: flex;
    align-items: center;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
    gap: 8px; /* Уменьшаем отступ между элементами */
  }

  /* Верхняя часть с логотипом */
  .logo-wrap {
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 0; /* Убираем padding */
    order: 1;
  }

  .logo-img {
    width: 100px; /* Уменьшаем размер логотипа */
    height: 60px;
    object-fit: contain;
  }

  /* Нижняя часть с навигацией */
  .mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: -5px; /* Убираем отступ сверху */
    order: 2;
    height: 40px; /* Фиксированная высота для контейнера навигации */
  }

  .search-block {
    flex: 1;
    margin: 0 10px;
    max-width: none;
  }

  .search-field {
    height: 36px; /* Немного уменьшаем высоту поля поиска */
    font-size: 0.85rem;
    border-radius: 10px;
  }

  /* Обновленные стили для фильтр-бара */
  .filter-bar {
    height: auto;
    padding: 8px;
  }

  .filter-bar-content {
    flex-direction: column;
    gap: 8px;
  }

  /* Контейнер для кнопок сортировки */
  .sort-btns {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .sort-button {
    width: 100%;
    padding: 8px 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
  }

  /* Контейнер для контролов даты */
  .dates-ctrl {
    width: 100%;
    justify-content: space-between;
    padding: 0 4px;
  }

  .date-nav-btn {
    width: 32px;
    height: 32px;
  }

  .date-display {
    flex: 1;
    text-align: center;
    margin: 0 8px;
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  /* Анимация для кнопки Live */
  .sort-button[data-filter="live"] {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
  }

  .sort-button[data-filter="live"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 46, 46, 0.1);
    animation: livePulseBackground 2s ease-in-out infinite;
  }

  @keyframes livePulseBackground {
    0% {
      opacity: 0.2;
    }
    50% {
      opacity: 0.1;
    }
    100% {
      opacity: 0.2;
    }
  }

  /* Оптимизация карточек матчей для мобильных устройств */
  .match-item {
    display: grid;
    grid-template-columns: 36px 1fr 45px 24px; /* Уменьшаем ширину колонок */
    gap: 8px;
    padding: 8px 10px;
    align-items: center;
    min-height: 48px; /* Фиксированная минимальная высота */
  }

  .match-time {
    font-size: 0.7rem; /* Уменьшаем размер времени */
    text-align: center;
    color: #666;
    width: 36px; /* Фиксированная ширина */
  }

  .match-teams-score {
    display: grid;
    grid-template-columns: 1fr 45px 1fr; /* Трехколоночный грид */
    gap: 4px;
    align-items: center;
    width: 100%;
  }

  .team-home, .team-away {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0; /* Важно для text-overflow */
  }

  .team-home {
    justify-content: flex-end; /* Выравнивание вправо */
  }

  .team-away {
    justify-content: flex-start; /* Выравнивание влево */
  }

  .team-name {
    font-size: 0.75rem; /* Уменьшаем размер названий команд */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* Максимальная ширина для названий */
  }

  .team img {
    width: 16px; /* Уменьшаем размер логотипов */
    height: 16px;
    flex-shrink: 0; /* Предотвращаем сжатие логотипов */
  }

  .match-score {
    width: 45px; /* Фиксированная ширина счета */
    font-size: 0.8rem;
    padding: 2px 4px;
    text-align: center;
    margin: 0 auto; /* Центрируем счет */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px; /* Фиксированная высота */
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
  }

  .match-status {
    font-size: 0.65rem; /* Уменьшаем размер статуса */
    color: #888;
    text-align: center;
    width: 100%;
  }

  .fav-btn {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Выравнивание счета для всех матчей */
  .league-card .match-item {
    align-items: center; /* Вертикальное выравнивание */
  }

  .league-card .match-teams-score {
    justify-content: center; /* Горизонтальное выравнивание */
  }

  /* Добавляем стили для анимации filter-bar */
  .filter-bar {
    position: fixed; /* Меняем с sticky на fixed */
    /* top: 0; */
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.3s ease;
    background: var(--bg-white);
  }

  .filter-bar-hidden {
    transform: translateY(-100%);
  }

  /* Добавляем padding-top для matches-container, равный высоте filter-bar */
  .matches-container {
    padding-top: 100px; /* Высота filter-bar + небольшой отступ */
    height: calc(100vh - 10vh - 10vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  /* Обновляем стили для center-panel */
  .center-panel {
    position: relative;
    height: calc(100vh - 10vh - 10vh);
    overflow: hidden;
  }

  /* Обновляем стили для matches-container */
  .matches-container {
    height: calc(100vh - 10vh - 10vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Для плавного скролла на iOS */
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 120px; /* Отступ под шапкой */
    left: 0;
    width: 100%;
    height: calc(80vh - 10vh); /* 80vh минус высота навбара */
    background: var(--bg-white);
    z-index: 1500; /* Уменьшаем z-index, чтобы шапка была поверх */
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  /* Скрываем скроллбар для Webkit */
  .mobile-menu-overlay::-webkit-scrollbar {
    display: none;
  }

  .mobile-menu-content {
    height: 100%; /* Занимаем всю высоту */
    overflow-y: auto;
    padding-bottom: 70px; /* Отступ для навбара */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-menu-content::-webkit-scrollbar {
    display: none;
  }

  /* Убираем кнопку закрытия */
  .mobile-menu-close {
    display: none;
  }

  /* Обновляем стили для мобильных новостей */
  .mobile-news-overlay {
    top: 120px; /* Отступ под шапкой */
    height: calc(80vh - 10vh); /* 80vh минус высота навбара */
    z-index: 1500;
  }

  /* Обеспечиваем видимость навбара */
  .mobile-nav {
    z-index: 2000; /* Больше чем у оверлеев */
  }

  /* Обновляем стили для шапки */
  .header-bar {
    z-index: 2001; /* Больше чем у всех остальных элементов */
  }

  /* Обновляем стили для мобильных оверлеев */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 120px; /* Отступ под шапкой */
    left: 0;
    width: 100%;
    height: calc(100vh - 120px - 10vh); /* 100vh минус высота шапки и навбара */
    background: var(--bg-white);
    z-index: 1500;
    padding: 0; /* Убираем padding */
  }

  .mobile-menu-content {
    height: 100%; /* Занимаем всю высоту */
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(10vh + 16px); /* Отступ для навбара + доп. отступ */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* Обновляем стили для мобильных новостей */
  .mobile-news-overlay {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px - 10vh);
    background: var(--bg-white);
    z-index: 1500;
  }

  .mobile-news-content {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(10vh + 16px);
  }

  /* Убираем отступы у контейнеров содержимого */
  .mobile-menu-content .sports-section,
  .mobile-news-content .news-list {
    padding: 0;
    margin: 0;
  }

  /* Исправляем высоту для sports-section внутри мобильного меню */
  .mobile-menu-content .sports-section {
    height: auto;
    flex-grow: 1;
  }

  /* Обеспечиваем, чтобы контент не выходил за пределы оверлея */
  .mobile-menu-content .sports-list,
  .mobile-news-content .news-list {
    margin-bottom: 10vh; /* Отступ для навбара */
  }

  /* Добавляем стили для активного спорта в мобильном меню */
  .mobile-menu-content .sport-item.active {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
  }

  .mobile-menu-content .sport-item.active .sport-count {
    background: var(--text-primary);
    color: var(--bg-white);
    border-color: var(--text-primary);
  }

  /* Улучшаем внешний вид кнопок спорта в мобильном меню */
  .mobile-menu-content .sport-item {
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .mobile-menu-content .sport-item:active {
    background: var(--bg-light);
    transform: scale(0.98);
  }

  /* Обновленные стили для мобильных оверлеев */
  .mobile-menu-overlay,
  .mobile-news-overlay {
    display: none;
    position: fixed;
    top: 120px; /* Отступ под шапкой */
    left: 0;
    width: 100%;
    height: calc(100vh - 120px - 10vh); /* 100vh минус высота шапки и навбара */
    background: var(--bg-white);
    z-index: 1500;
    padding: 0;
  }

  /* Удаляем кнопки закрытия */
  .mobile-menu-close,
  .mobile-news-close {
    display: none;
  }

  /* Стили для контента */
  .mobile-menu-content,
  .mobile-news-content {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(10vh + 16px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-menu-content::-webkit-scrollbar,
  .mobile-news-content::-webkit-scrollbar {
    display: none;
  }

  /* Стили для новостей в мобильной версии */
  .mobile-news-content .news-list {
    padding: 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-news-content .news-list::-webkit-scrollbar {
    display: none;
  }

  /* Стили для кнопок в шапке */
  .burger-menu,
  .mobile-news-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1f1e1e;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 1.2rem;
    transition: all 0.2s ease;
  }

  .burger-menu:hover,
  .mobile-news-toggle:hover {
    background: #1b1a1a;
    box-shadow: var(--shadow-sm);
  }

  .burger-menu i,
  .mobile-news-toggle i {
    transition: transform 0.3s ease;
  }

  /* Обновленные стили для чата на мобильных */
  .chat-widget.mobile-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Полная высота viewport */
    max-height: none;
    border-radius: 0;
    z-index: 3000; /* Выше чем шапка и навбар */
  }

  .chat-widget.mobile-expanded ~ .header-bar,
  .chat-widget.mobile-expanded ~ .mobile-nav {
    display: none; /* Скрываем шапку и навбар при открытом чате */
  }

  .chat-widget.mobile-expanded .chat-header {
    position: relative;
    height: 56px;
    padding: 0 16px;
  }

  .chat-widget.mobile-expanded .chat-body {
    height: calc(100% - 56px);
  }

  .chat-widget.mobile-expanded .chat-messages {
    max-height: none;
    height: calc(100% - 80px); /* Высота с учетом инпута */
  }

  .chat-widget.mobile-expanded .chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  /* Анимация появления/исчезновения */
  .chat-widget.mobile-expanded {
    animation: slideUpChat 0.3s ease-out;
  }

  @keyframes slideUpChat {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  /* Обновляем стили чата для корректной работы скролла */
  .chat-widget.mobile-expanded {
    display: flex;
    flex-direction: column;
  }

  .chat-widget.mobile-expanded .chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 56px); /* 56px - высота header */
  }

  .chat-widget.mobile-expanded .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px; /* Для предотвращения перекрытия сообщений инпутом */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  }

  .chat-widget.mobile-expanded .chat-messages::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар на Webkit */
  }

  .chat-widget.mobile-expanded .chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1;
  }
}

/* Обновляем стили для мобильного чата */
.chat-widget.mobile-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

.chat-widget.mobile-expanded .chat-header {
    height: 56px;
    padding: 0 16px;
    background: #6e6e6e;
}

.chat-widget.mobile-expanded .chat-body {
    flex: 1;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.chat-widget.mobile-expanded .chat-messages {
    flex: 1;
    height: calc(100% - 60px); /* Высота с учетом инпута */
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.chat-widget.mobile-expanded .chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

/* ...existing code... */

/* Добавляем keyframes для анимации встряхивания */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Обновляем стили для кнопок мобильной навигации */
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-btn:active {
  animation: shake 0.2s ease-in-out;
  color: var(--accent-color);
}

.mobile-nav-btn i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.mobile-nav-btn:active i {
  transform: scale(0.9);
}

.mobile-nav-btn span {
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-btn:active span {
  transform: scale(0.95);
}

/* ...existing code... */

/* Notifications Styles */
.notifications-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.notifications-btn {
  background: #1f1e1e;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.notifications-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff2e2e;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
}

.notifications-count.active {
  display: flex;
}

.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.notifications-dropdown.show {
  display: block;
}

.notifications-header {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.notification-item:hover {
  background: #f5f5f5;
}

.notification-item.unread {
  background: #f0f7ff;
}

.notification-item .match-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notification-item .teams {
  font-weight: 500;
}

.notification-item .score {
  color: #666;
}

.notification-item .status {
  font-size: 13px;
  color: #2196f3;
  margin-bottom: 4px;
}

.notification-item .time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .notifications-wrapper {
    display: none;
  }
}

/* ...existing code... */

/* Updated Notifications Styles */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Добавляем небольшой отступ сверху */
  right: 0;
  width: 360px; /* Увеличиваем ширину */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
  border: none; /* Убираем border */
  overflow: hidden; /* Для скругленных углов */
}

.notifications-header {
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
}

.clear-notifications {
  background: none;
  border: none;
  color: #2c3e50;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.clear-notifications:hover {
  background: #edf0f2;
}

.notifications-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f2;
  transition: all 0.2s ease;
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #f0f7ff;
}

.notification-item .match-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.notification-item .teams {
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

.notification-item .score {
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
  padding: 2px 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.notification-item .status {
  font-size: 13px;
  color: #3498db;
  margin-bottom: 6px;
  font-weight: 500;
}

.notification-item .time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #95a5a6;
}

.notification-item:hover .teams,
.notification-item:hover .score {
  color: #2980b9;
}

/* Стили для пустого состояния */
.no-notifications {
  padding: 32px 20px;
  text-align: center;
  color: #95a5a6;
  font-size: 14px;
}

.no-notifications::before {
  content: '\f4ac'; /* Font Awesome bell icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: #bdc3c7;
}

/* ...existing code... */

.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

/* Обновленные стили для чата */
.chat-widget {
    position: fixed !important;
    bottom: 0;
    right: 20px;
    width: 320px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-md, 0 -5px 20px rgba(0,0,0,0.1));
    z-index: 1000;
    transition: all 0.3s ease;
    height: 42px;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg-white, #fff);
}

.chat-widget.expanded {
    height: 500px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 12px 16px;
    background: #6e6e6e;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    height: 42px; /* Делаем высоту шапки равной высоте виджета */
}

.chat-header:hover {
    background: #5d5d5d;
}

.chat-toggle {
    background: none; /* Убираем фон */
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-toggle:hover {
    opacity: 1;
}

.chat-toggle i {
    font-size: 16px; /* Уменьшаем размер иконки */
    transition: transform 0.3s ease;
}

.chat-widget.expanded .chat-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.chat-body { 
  height: calc(100% - 48px); 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-light); 
} 

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
} 

.chat-message { 
  padding: 12px; 
  background: var(--bg-white); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  border: 1px solid var(--border-light); 
  box-shadow: var(--shadow-sm); 
  max-width: 85%; 
  position: relative; 
} 

.chat-message .username { 
  font-weight: 600; 
  color: #ff8803; 
  font-size: 0.85rem; 
  margin-bottom: 4px; 
} 

.chat-message .timestamp { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  color: var(--text-secondary); 
  font-size: 0.75rem; 
} 

.chat-input { 
  padding: 12px; 
  border-top: 1px solid var(--border-light); 
  display: flex; 
  gap: 8px; 
  background: var(--bg-white); 
} 

.chat-input input { 
  padding: 8px 12px; 
  border: 1px solid var (--border-light); 
  border-radius: 8px; 
  font-size: 0.9rem; 
  transition: all 0.2s ease; 
} 

.chat-input input:focus { 
  border-color: #ff8803; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(255, 136, 3, 0.1); 
} 

#usernameInput { 
  width: 30%; 
} 

#messageInput { 
  flex: 1; 
} 

#sendMessage { 
  background: #ff8803; 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 0 16px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

#sendMessage:hover { 
  background: #e67e00; 
  transform: translateY(-1px); 
} 

#sendMessage i { 
  font-size: 1.1rem; 
}

/* ...existing code... */

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 21px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-white);
  border-color: var(--text-primary);
}

.back-btn i {
  font-size: 1rem;
}

/* ...existing code... */

.lock-icon {
  color: #888;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* ...existing code... */

@media (max-width: 768px) {
  .site-footer {
    width: 100vw !important;
    min-width: 100vw !important;
    left: 0;
    right: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .footer-content {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  body, html, .page-container {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  /* SportsAI chat overlay fix */
  .chat-widget.mobile-expanded {
    z-index: 3000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: auto;
  }
  .chat-widget.mobile-expanded ~ .main-container, 
  .chat-widget.mobile-expanded ~ .chat-container, 
  .chat-widget.mobile-expanded ~ iframe, 
  .chat-widget.mobile-expanded ~ .favorites-section {
    display: none !important;
  }
}

