/* === THEME CREAM MATERIAL (Светлая кремовая, Google Material Design 3) === */

body.theme-cream-material {
  --sticky-header-bg: #fffdf9;
  --dropdown-bg: rgba(255, 253, 249, 0.98);
  --section-bg: #fffdf9;
  --card-bg: #f5f0e8;
  --input-bg: #f5f0e8;
  --border-color: #e8e0d4;
  --text-primary: #1c1b1f;
  --text-secondary: #49454f;
  --text-muted: #79747e;
  --accent: #6750a4;
  --accent-hover: #7965af;
  --accent-light: #ede7f6;
}

body.theme-cream-material {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material * {
  color: #1c1b1f;
}

body.theme-cream-material header {
  color: #1c1b1f !important;
}

body.theme-cream-material header h1 {
  color: #1c1b1f !important;
  text-shadow: none !important;
}

/* Секции */
body.theme-cream-material .section {
  background: #fffdf9 !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04) !important;
}

body.theme-cream-material .section h2 {
  color: #6750a4 !important;
  border-bottom-color: #6750a4 !important;
}

/* User section */
body.theme-cream-material .user-section {
  background: rgba(255,253,249,0.98) !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Кнопки */
body.theme-cream-material button,
body.theme-cream-material .btn {
  background: transparent !important;
  color: #000 !important;
  border: none !important;
  box-shadow: 0 1px 3px rgba(103,80,164,0.3) !important;
}

body.theme-cream-material button:hover,
body.theme-cream-material .btn:hover {
  background: #7965af !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.4) !important;
  transform: translateY(-1px) !important;
}

/* Инпуты */
body.theme-cream-material input[type="text"],
body.theme-cream-material input,
body.theme-cream-material select,
body.theme-cream-material textarea {
  background: #f5f0e8 !important;
  border: 1px solid #cac4d0 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material input[type="text"]:focus,
body.theme-cream-material input:focus,
body.theme-cream-material select:focus,
body.theme-cream-material textarea:focus {
  border-color: #6750a4 !important;
  box-shadow: 0 0 0 2px rgba(103,80,164,0.2) !important;
  background: #fffdf9 !important;
}

/* Вкладки */
body.theme-cream-material .tab-btn {
  color: #6750a4 !important;
  background: transparent !important;
  border-bottom: 3px solid transparent !important;
  box-shadow: none !important;
}

body.theme-cream-material .tab-btn:hover {
  color: #7965af !important;
  background: rgba(103,80,164,0.08) !important;
  box-shadow: none !important;
}

body.theme-cream-material .tab-btn.active {
  color: #6750a4 !important;
  background: rgba(103,80,164,0.1) !important;
  border-bottom-color: #6750a4 !important;
  box-shadow: none !important;
}

body.theme-cream-material button.tab-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(103,80,164,0.08) !important;
}

/* Элементы событий */
body.theme-cream-material .event-item {
  background: #f5f0e8 !important;
  border-left: 4px solid #6750a4 !important;
  color: #1c1b1f !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

body.theme-cream-material .event-item:hover {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.2) !important;
}

body.theme-cream-material .event-item.active {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .event-item.locked {
  background: rgba(240,234,228,0.7) !important;
  border-left-color: #b3261e !important;
}

body.theme-cream-material .event-item.locked:hover {
  background: rgba(240,234,228,0.9) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .event-item.active-tournament.active {
  background: rgba(76,175,80,0.15) !important;
  border-color: #4caf50 !important;
}

/* Строки матчей */
body.theme-cream-material .match-row {
  background: #f5f0e8 !important;
  border-left: 4px solid #6750a4 !important;
  color: #1c1b1f !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

body.theme-cream-material .match-row.has-user-bet {
  background: rgba(255,248,225,0.9) !important;
  border-left-color: #f9a825 !important;
}

body.theme-cream-material .match-row.has-user-bet.bet-won {
  background: rgba(232,245,233,0.9) !important;
  border-left-color: #4caf50 !important;
}

body.theme-cream-material .match-row.has-user-bet.bet-lost {
  background: rgba(255,235,238,0.9) !important;
  border-left-color: #b3261e !important;
}

/* Команды */
body.theme-cream-material .team {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .vs-text {
  color: #6750a4 !important;
}

body.theme-cream-material .match-round {
  color: #6750a4 !important;
}

/* Кнопки ставок */
body.theme-cream-material .bet-btn {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
  border: 1px solid #cac4d0 !important;
}

body.theme-cream-material .bet-btn:hover {
  background: #d4c8f0 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .bet-btn.selected {
  background: rgba(103,80,164,0.3) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .bet-btn:disabled {
  background: #e8e0d4 !important;
  color: #9e9e9e !important;
}

/* Ставки */
body.theme-cream-material .bet-item {
  background: #f5f0e8 !important;
  border-left: 4px solid #6750a4 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .bet-item.won {
  background: rgba(232,245,233,0.9) !important;
  border-left-color: #4caf50 !important;
  color: #2e7d32 !important;
}

body.theme-cream-material .bet-item.lost {
  background: rgba(255,235,238,0.9) !important;
  border-left-color: #b3261e !important;
  color: #b3261e !important;
}

body.theme-cream-material .bet-match {
  color: #1c1b1f !important;
}

body.theme-cream-material .bet-prediction {
  background: #ede7f6 !important;
  color: #6750a4 !important;
}

body.theme-cream-material .bet-status.pending {
  background: rgba(249,168,37,0.15) !important;
  color: #e65100 !important;
}

body.theme-cream-material .bet-status.won {
  background: rgba(76,175,80,0.15) !important;
  color: #2e7d32 !important;
}

body.theme-cream-material .bet-status.lost {
  background: rgba(179,38,30,0.15) !important;
  color: #b3261e !important;
}

/* Участники */
body.theme-cream-material .participant-item {
  background: #f5f0e8 !important;
  border-left: 4px solid #6750a4 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .participant-item:hover {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.2) !important;
}

body.theme-cream-material .participant-bets-count {
  background: #6750a4 !important;
  color: #ffffff !important;
}

body.theme-cream-material .participant-tournaments {
  color: #e65100 !important;
}

/* Sticky заголовки */
body.theme-cream-material .sticky-header {
  background: #fffdf9 !important;
}

body.theme-cream-material .my-bets-title {
  background: #fffdf9 !important;
}

/* Таблица матчей */
body.theme-cream-material .matches-table th {
  background: #6750a4 !important;
  color: #ffffff !important;
}

body.theme-cream-material .matches-table td {
  color: #1c1b1f !important;
  border-bottom-color: #e8e0d4 !important;
}

body.theme-cream-material .matches-table tr:hover {
  background: rgba(103,80,164,0.08) !important;
}

/* Score inputs */
body.theme-cream-material .score-input {
  background: #f5f0e8 !important;
  border-color: #6750a4 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .score-input:focus {
  background: #ede7f6 !important;
  border-color: #6750a4 !important;
}

/* Модальные окна */
body.theme-cream-material .modal-content {
  background: #fffdf9 !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .user-profile-modal {
  background: #fffdf9 !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

/* bet-delete-btn */
body.theme-cream-material .bet-delete-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #79747e !important;
}

body.theme-cream-material .bet-delete-btn:hover {
  background: rgba(179,38,30,0.1) !important;
  color: #b3261e !important;
  border: none !important;
  box-shadow: none !important;
}

/* auth-btn.logout-mode */
body.theme-cream-material .auth-btn.logout-mode {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-cream-material .auth-btn.logout-mode:hover {
  box-shadow: none !important;
}

/* avatarEditBtn */
body.theme-cream-material #avatarEditBtn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* close-profile-btn */
body.theme-cream-material .close-profile-btn {
  color: #6750a4 !important;
}

body.theme-cream-material .close-profile-btn:hover {
  color: #6750a4 !important;
  background: rgba(103,80,164,0.1) !important;
  box-shadow: none !important;
}

/* round-filter-btn */
body.theme-cream-material .round-filter-btn {
  background: transparent !important;
  box-shadow: none !important;
  color: #49454f !important;
}

body.theme-cream-material .round-filter-btn.active {
  background: #6750a4 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1px 3px rgba(103,80,164,0.3) !important;
  font-weight: bold !important;
  text-shadow: none !important;
}

body.theme-cream-material .round-filter-btn.finished {
  background: rgba(249,168,37,0.2) !important;
  border-color: #f9a825 !important;
  box-shadow: none !important;
}

body.theme-cream-material .round-filter-btn.finished:hover {
  background: rgba(249,168,37,0.35) !important;
}

/* setting-item */
body.theme-cream-material .setting-item,
body.theme-cream-material .settings-item {
  background: rgba(103,80,164,0.05) !important;
  border-left-color: #6750a4 !important;
}

/* mobile-menu-toggle */
body.theme-cream-material .mobile-menu-toggle {
  background: #fffdf9 !important;
  color: #6750a4 !important;
  border: 1px solid #cac4d0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

body.theme-cream-material .mobile-menu-toggle:hover {
  background: #ede7f6 !important;
  box-shadow: 0 2px 12px rgba(103,80,164,0.2) !important;
}

/* mobile-nav-btn */
body.theme-cream-material .mobile-nav-btn {
  background: #fffdf9 !important;
  color: #6750a4 !important;
  border: 1px solid #cac4d0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

body.theme-cream-material .mobile-nav-btn:hover {
  background: #ede7f6 !important;
  box-shadow: 0 2px 12px rgba(103,80,164,0.2) !important;
}

/* Устройства */
body.theme-cream-material .device-item {
  border-left-color: #6750a4 !important;
}

body.theme-cream-material .device-item.current-device {
  border-left-color: #6750a4 !important;
  background: rgba(103,80,164,0.08) !important;
}

body.theme-cream-material .device-current-badge {
  background: #6750a4 !important;
  color: #ffffff !important;
}

/* Auth кнопки */
body.theme-cream-material .user-input #authBtn {
  background: #6750a4 !important;
  border-color: #6750a4 !important;
  color: #ffffff !important;
}

body.theme-cream-material .user-input #authBtn:hover {
  background: #7965af !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.4) !important;
}

body.theme-cream-material button#addMatchBtn,
body.theme-cream-material .user-input #adminUsersBtn {
  /* background: #6750a4 !important; */
  border-color: #6750a4 !important;
  color: #ffffff !important;
}

/* Кнопки управления матчами */
body.theme-cream-material .match-result-toggle,
body.theme-cream-material .match-admin-toggle,
body.theme-cream-material .event-admin-toggle {
  background: transparent !important;
  border-color: #6750a4 !important;
  color: #6750a4 !important;
}

body.theme-cream-material .match-result-toggle[aria-expanded="true"],
body.theme-cream-material .match-admin-toggle[aria-expanded="true"],
body.theme-cream-material .event-admin-toggle[aria-expanded="true"] {
  background: #6750a4 !important;
  border-color: #6750a4 !important;
  color: #ffffff !important;
}

/* Score alert */
body.theme-cream-material .score-alert {
  background: #fffdf9 !important;
  border-color: #b3261e !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .score-alert-message {
  color: #1c1b1f !important;
}

body.theme-cream-material .score-alert-button {
  background: #b3261e !important;
}

/* Lucky btn */
body.theme-cream-material .lucky-btn {
  color: #6750a4 !important;
  border-color: #6750a4 !important;
}

body.theme-cream-material .lucky-btn:hover {
  background: #ede7f6 !important;
  border-color: #4a3880 !important;
}

body.theme-cream-material .dice-wrapper {
  color: #6750a4 !important;
}

/* Пустые сообщения */
body.theme-cream-material .empty-message {
  color: #79747e !important;
}

/* Live индикатор */
body.theme-cream-material .live-indicator.static {
  background: #6750a4 !important;
}

/* goal-notification */
body.theme-cream-material .goal-notification {
  background: linear-gradient(135deg, rgba(255,253,249,0.98) 0%, rgba(237,231,246,0.98) 100%) !important;
  border: 2px solid #6750a4 !important;
  box-shadow: 0 4px 20px rgba(103,80,164,0.25) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .goal-notification-icon {
  color: #6750a4 !important;
}

body.theme-cream-material .goal-notification-title {
  color: #6750a4 !important;
}

body.theme-cream-material .goal-notification-teams {
  color: #1c1b1f !important;
}

body.theme-cream-material .goal-notification-score {
  color: #6750a4 !important;
  text-shadow: none !important;
}

body.theme-cream-material .goal-notification-header button {
  color: rgba(28,27,31,0.6) !important;
}

body.theme-cream-material .goal-notification-header button:hover {
  color: #1c1b1f !important;
}

/* === Перекрытие инлайн стилей через специфичность === */

/* Sticky заголовки (tournaments-header, matches-header) — перекрываем через var() в HTML */
/* Переменная --sticky-header-bg уже задана выше и используется в index.html */

/* Dropdown admin buttons */
body.theme-cream-material #adminButtonsContainer {
  background: var(--dropdown-bg) !important;
  border-color: #cac4d0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Footer */
body.theme-cream-material footer {
  background: rgba(245,240,232,0.9) !important;
  border-top-color: rgba(103,80,164,0.2) !important;
  color: #49454f !important;
}

/* event-card (используется в JS-генерируемом HTML) */
body.theme-cream-material .event-card {
  background: #f5f0e8 !important;
  border: 1px solid #e8e0d4 !important;
  color: #1c1b1f !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

body.theme-cream-material .event-card:hover {
  background: #ede7f6 !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.2) !important;
}

/* Модальные окна (генерируются JS с инлайн стилями) */
body.theme-cream-material [style*="background:#1e2a3a"],
body.theme-cream-material [style*="background: #1e2a3a"] {
  background: #fffdf9 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material [style*="background:#2a3a4a"],
body.theme-cream-material [style*="background: #2a3a4a"],
body.theme-cream-material [style*="background:#1a1a2e"],
body.theme-cream-material [style*="background: #1a1a2e"] {
  background: #f5f0e8 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material [style*="background:rgba(0,0,0,0.7)"],
body.theme-cream-material [style*="background: rgba(0, 0, 0, 0.7)"],
body.theme-cream-material [style*="background:rgba(0,0,0,0.8)"],
body.theme-cream-material [style*="background: rgba(0, 0, 0, 0.8)"] {
  background: rgba(0,0,0,0.4) !important;
}

/* parsePreviewList и подобные контейнеры */
body.theme-cream-material [style*="background: rgba(40, 44, 54"] {
  background: #f5f0e8 !important;
  border-color: #cac4d0 !important;
  color: #1c1b1f !important;
}

/* Textarea и input в модалках */
body.theme-cream-material textarea[style*="background"],
body.theme-cream-material input[style*="background"] {
  background: #f5f0e8 !important;
  color: #1c1b1f !important;
  border-color: #cac4d0 !important;
}

/* Тексты с хардкодными светлыми цветами (#e0e6f0, #b0b8c8) */
body.theme-cream-material [style*="color: #e0e6f0"],
body.theme-cream-material [style*="color:#e0e6f0"] {
  color: #1c1b1f !important;
}

body.theme-cream-material [style*="color: #b0b8c8"],
body.theme-cream-material [style*="color:#b0b8c8"] {
  color: #49454f !important;
}

body.theme-cream-material [style*="color: #999"],
body.theme-cream-material [style*="color:#999"] {
  color: #79747e !important;
}

/* Заголовки в модалках (#5a9fd4) */
body.theme-cream-material [style*="color: #5a9fd4"],
body.theme-cream-material [style*="color:#5a9fd4"] {
  color: #6750a4 !important;
}

/* Тулбар редактора объявлений */
body.theme-cream-material [style*="background: rgba(40, 44, 54, 0.8)"] {
  background: #ede7f6 !important;
  border-color: #cac4d0 !important;
}

/* Кнопки тулбара */
body.theme-cream-material [style*="background: rgba(90, 159, 212, 0.5)"] {
  background: rgba(103,80,164,0.2) !important;
  border-color: #6750a4 !important;
  color: #1c1b1f !important;
}

/* stat-card в профиле */
body.theme-cream-material .stat-card {
  background: #f5f0e8 !important;
  color: #1c1b1f !important;
}

/* xg-modal */
body.theme-cream-material [style*="background: rgba(40, 44, 54, 0.5)"] {
  background: #f5f0e8 !important;
  border-color: #cac4d0 !important;
}

body.theme-cream-material [style*="background: rgba(60, 64, 74"] {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
}

/* themeSelect инлайн стиль */
body.theme-cream-material #themeSelect {
  background: #f5f0e8 !important;
  color: #1c1b1f !important;
  border-color: #cac4d0 !important;
}

/* === event-card (участники/турниры) === */
body.theme-cream-material .event-card {
  background: linear-gradient(135deg, rgba(103,80,164,0.12) 0%, rgba(245,240,232,0.9) 100%) !important;
  border: 1px solid #cac4d0 !important;
  color: #1c1b1f !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

body.theme-cream-material .event-card:hover {
  background: linear-gradient(135deg, rgba(103,80,164,0.2) 0%, rgba(237,231,246,0.9) 100%) !important;
  box-shadow: 0 4px 12px rgba(103,80,164,0.2) !important;
  border-color: #6750a4 !important;
}

body.theme-cream-material .event-card.locked {
  background: linear-gradient(135deg, rgba(179,38,30,0.08) 0%, rgba(245,240,232,0.7) 100%) !important;
  border-color: rgba(179,38,30,0.4) !important;
}

body.theme-cream-material .event-card.locked:hover {
  background: linear-gradient(135deg, rgba(179,38,30,0.12) 0%, rgba(245,240,232,0.8) 100%) !important;
}

body.theme-cream-material .event-card.upcoming {
  background: linear-gradient(135deg, rgba(103,80,164,0.08) 0%, rgba(245,240,232,0.8) 100%) !important;
  border-color: rgba(103,80,164,0.3) !important;
}

body.theme-cream-material .event-card-count {
  color: #49454f !important;
}

body.theme-cream-material .event-card-locked {
  color: #b3261e !important;
  background: rgba(179,38,30,0.1) !important;
}

body.theme-cream-material .event-card-winner {
  color: #e65100 !important;
  background: rgba(230,81,0,0.1) !important;
  border-left-color: #e65100 !important;
}

/* live-event-card */
body.theme-cream-material .live-event-card {
  background: #f5f0e8 !important;
  border-color: #cac4d0 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .live-event-card:hover {
  background: #ede7f6 !important;
  border-color: #6750a4 !important;
}

/* === custom-modal === */
body.theme-cream-material .custom-modal-overlay {
  background: rgba(0, 0, 0, 0.4) !important;
}

body.theme-cream-material .custom-modal {
  background: linear-gradient(135deg, #fffdf9 0%, #f5f0e8 100%) !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

body.theme-cream-material .custom-modal-title {
  color: #1c1b1f !important;
}

body.theme-cream-material .custom-modal-message {
  color: #49454f !important;
}

body.theme-cream-material .custom-modal-input {
  background: #f5f0e8 !important;
  border: 1px solid #cac4d0 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .custom-modal-input:focus {
  border-color: #6750a4 !important;
  background: #fffdf9 !important;
}

body.theme-cream-material .custom-modal-btn-secondary {
  background: #ede7f6 !important;
  color: #1c1b1f !important;
  border: 1px solid #cac4d0 !important;
}

body.theme-cream-material .custom-modal-btn-secondary:hover {
  background: #d4c8f0 !important;
}

body.theme-cream-material .custom-modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.theme-cream-material .custom-modal::-webkit-scrollbar-thumb {
  background: rgba(103, 80, 164, 0.3) !important;
}

body.theme-cream-material .custom-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 80, 164, 0.5) !important;
}

/* === countingBtn (инлайн color: #e0e6f0) === */
body.theme-cream-material #countingBtn {
  color: #1c1b1f !important;
  border-color: #6750a4 !important;
  background: transparent !important;
}

/* === profile-section === */
body.theme-cream-material .profile-section {
  background: #f5f0e8 !important;
  border-left-color: #6750a4 !important;
}

body.theme-cream-material .profile-section-title {
  color: #6750a4 !important;
}

body.theme-cream-material .profile-section-content {
  color: #49454f !important;
}

/* === awardsSection / award-card === */
body.theme-cream-material .award-card {
  border-color: rgba(103,80,164,0.5) !important;
}

body.theme-cream-material .award-title {
  color: #1c1b1f !important;
}

body.theme-cream-material .award-description {
  color: #49454f !important;
}

/* === Настройки — текст и элементы === */
body.theme-cream-material .setting-label {
  color: #1c1b1f !important;
}

body.theme-cream-material .setting-hint,
body.theme-cream-material .setting-hint-small {
  color: #49454f !important;
}

body.theme-cream-material .setting-hint-small a,
body.theme-cream-material .setting-link {
  color: #6750a4 !important;
}

body.theme-cream-material .setting-control input {
  background: #f5f0e8 !important;
  border-color: #cac4d0 !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .setting-control input:focus {
  border-color: #6750a4 !important;
}

/* === adminBtn и adminSettingsBtn — transparent, перекрытый button-правилом темы === */
body.theme-cream-material #adminBtn,
body.theme-cream-material #adminSettingsBtn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #6750a4 !important;
}

body.theme-cream-material #adminBtn:hover,
body.theme-cream-material #adminSettingsBtn:hover {
  background: rgba(103,80,164,0.1) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* === bracket-filter-btn в cream теме === */
body.theme-cream-material .bracket-filter-btn {
  background: linear-gradient(135deg, rgba(103,80,164,0.15), rgba(103,80,164,0.1)) !important;
  border: 2px solid rgba(103,80,164,0.4) !important;
  color: #6750a4 !important;
  box-shadow: 0 2px 8px rgba(103,80,164,0.15) !important;
}

body.theme-cream-material .bracket-filter-btn:hover {
  background: linear-gradient(135deg, rgba(103,80,164,0.25), rgba(103,80,164,0.2)) !important;
  border-color: rgba(103,80,164,0.6) !important;
  box-shadow: 0 4px 12px rgba(103,80,164,0.25) !important;
}

/* === user-profile-overlay / user-profile-modal === */
body.theme-cream-material .user-profile-overlay {
  background: rgba(0,0,0,0.4) !important;
}

body.theme-cream-material .user-profile-modal {
  background: #fffdf9 !important;
  border: 1px solid #e8e0d4 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  color: #1c1b1f !important;
}

body.theme-cream-material .user-profile-modal h2 {
  color: #1c1b1f !important;
}

/* === Кнопка баг-репорта === */
body.theme-cream-material button[onclick="openBugReportModal()"] {
  color: #b3261e !important;
  border-color: #b3261e !important;
}

/* === matches-header / tournaments-header === */
body.theme-cream-material .matches-header,
body.theme-cream-material .tournaments-header {
  background: #fffdf9 !important;
}

/* === Карточки настроек — перекрытие инлайн цветов текста === */
body.theme-cream-material .settings-item h3,
body.theme-cream-material .settings-item [style*="color: #fff"],
body.theme-cream-material .settings-item [style*="color:#fff"],
body.theme-cream-material .settings-item [style*="color: white"] {
  color: #1c1b1f !important;
}

body.theme-cream-material .settings-item [style*="color: #e0e6f0"],
body.theme-cream-material .settings-item [style*="color: #e0e0e0"] {
  color: #1c1b1f !important;
}

body.theme-cream-material .settings-item [style*="color: #b0b8c8"],
body.theme-cream-material .settings-item [style*="color: #aaa"],
body.theme-cream-material .settings-item [style*="color: #999"] {
  color: #49454f !important;
}

body.theme-cream-material .settings-item [style*="color: #5a9fd4"] {
  color: #6750a4 !important;
}

/* Инпуты и select внутри карточек настроек */
body.theme-cream-material .settings-item input,
body.theme-cream-material .settings-item select,
body.theme-cream-material .settings-item textarea {
  background: #f5f0e8 !important;
  border-color: #cac4d0 !important;
  color: #1c1b1f !important;
}

/* Фон самих карточек */
body.theme-cream-material .settings-item {
  background: rgba(103,80,164,0.05) !important;
}

/* Кнопка "Ранее" в Live разделе */
body.theme-cream-material .completed-days-earlier-btn,
body.theme-cream-material .completed-days-earlier-btn:hover,
body.theme-cream-material .completed-days-earlier-btn:focus {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: #7ab0e0 !important;
}
