/* ==========================================================================
   Base Styles
   ========================================================================== */
  :root {
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --secondary-color: #6c757d;
    --background-light: #f4f4f4;
    --background-card: #fff;
    --text-color-light: #222;
    --text-color-dark: #555;
    --border-color-light: #ddd;
    --border-color-medium: #ccc;
    --highlight-color: #FFD700;
    --highlight-color-rgb: 255, 215, 0;
    --odds-update-flash-color: rgba(228, 252, 228, 0.3);
  }

  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
  }

  input[type="number"] {
      -moz-appearance: textfield;
      appearance: textfield;
  }

   body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-light);
  color: var(--text-color-light);
  overflow-x: hidden;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
  background: var(--background-card);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  contain: layout style paint;
}


.competition-group .competition-events li {
  margin-right: 0;
  margin-left: 0;
}

.game-list-tab > .competition-events > li {
  margin-right: 12%;
  margin-left: 12%;
}

li:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-color-dark);
  text-align: center;
}

.no-vpn-popup {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

.no-vpn-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.no-vpn-popup-content {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.96), rgba(22, 61, 46, 0.96));
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  padding: 18px 18px 16px;
  width: min(360px, calc(100vw - 32px));
  position: relative;
  font-family: inherit;
  overflow: hidden;
}

.no-vpn-popup-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #bcebd1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.no-vpn-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.3em;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
}

.no-vpn-popup-close:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.14);
}

.no-vpn-popup-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
  margin-bottom: 12px;
  animation: popup-bounce-in 0.85s cubic-bezier(.34, 1.56, .64, 1);
}

.no-vpn-popup-emoji {
  font-size: 1.9rem;
  line-height: 1;
  animation: pop-bounce 1.4s ease-in-out infinite alternate;
}

.no-vpn-popup-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.no-vpn-popup-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.no-vpn-popup-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(247, 251, 255, 0.86);
}

.no-vpn-popup-actions {
  display: flex;
  gap: 10px;
}

.no-vpn-popup-actions button {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.no-vpn-popup-actions button:hover {
  transform: translateY(-1px);
}

.no-vpn-popup-primary {
  background: linear-gradient(135deg, #27d17f, #7bf1b0);
  color: #0b1d14;
}

.no-vpn-popup-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fbff;
}

@keyframes popup-bounce-in {
  0% { transform: translateY(16px) scale(0.92); opacity: 0; }
  65% { transform: translateY(-4px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pop-bounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.08); }
}

@media (max-width: 600px) {
  .no-vpn-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .no-vpn-popup-content {
    width: 100%;
  }

  .no-vpn-popup-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Header / Top Section
   ========================================================================== */

.header-controls {
  position: relative;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  border-radius: 5px;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  gap: 5px;
  top: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dadada;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: rgb(255, 255, 255);
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #054f6d;
}

.switch.is-checked .slider,
.switch[data-checked="true"] .slider {
  background-color: #054f6d;
}

  input:checked+.slider:before {
    transform: translateX(20px);
  }

.switch.is-checked .slider:before,
.switch[data-checked="true"] .slider:before {
  transform: translateX(20px);
}

.logo-container {
  text-align: center;
  margin: 10px auto;
  position: relative; 
  display: block; 
}


.responsive-logo {
  max-width: 100px;
  height: auto;
  width: 100%;
  transition: transform 0.3s ease;
  animation: fadeInSlideUp 1s ease-out forwards, subtleRotate 30s linear infinite; 
}

.responsive-logo:hover {
  transform: scale(1.05);
}


/* Fade + Slide In Animation */
@keyframes fadeInSlideUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Subtle Rotation Animation */
@keyframes subtleRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Main Content Headings
   ========================================================================== */
h1 {
  color: var(--text-color-light);
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
}

.description-radar {
  text-align: center;
  display: block;
  padding-bottom: 2%;
  color: var(--text-color-light);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.5em; 
}

[data-i18n="noGamesFound"] {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
}

[data-i18n="noLiveGamesFound"],
[data-i18n="noTodayGamesFound"] {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */
.tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 10px;
  border-bottom: 2px solid var(--border-color-light);
  min-height: 50px; /* Add a minimum height to prevent layout shifts */
}

.tab-button {
  background-color: var(--background-light);
  border: solid 0.5px;
  border-color: #d3d3d3;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 5px 5px 0 0;
  margin: 0 5px;
  color: var(--text-color-dark);
}

.tab-button:hover {
  background-color: var(--border-color-light);
  transform: translateY(-2px);
}

.tab-button.active {
  color: white;
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark), var(--primary-color));
  background-size: 200% 100%;
  animation: gradient-animation 4s ease infinite;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.game-list-tab {
  min-height: 300px;
}

html[data-theme="dark"] .tab-button {
  background-color: #0F172A;
  color: #f0f0f0;
  border: none;
}

html[data-theme="dark"] .tab-button:hover {
  background-color: #172441;
  transform: translateY(-2px);
}

html[data-theme="dark"] .tab-button.active {
  color: #f0f0f0;
  border-bottom: 2px solid transparent; 
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-dark), var(--primary-color));
  background-size: 200% 100%; 
  animation: gradient-animation 4s ease infinite; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ==========================================================================
   Search and Favorites Section
   ========================================================================== */
.search-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  align-items: center;
  gap: 0.5em; 
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 850px; 
  margin: 0 auto;
  margin-bottom: 2%;
  min-height: 100px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.search-input {
  padding: 0.75rem 1rem;
  width: 100%;
  border: 1px solid #ccc; 
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding-right: 6rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); 
}

.search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.clear-search-btn {
  position: absolute;
  right: 4rem;
  background: none !important;
  border: none;
  color: #444!important;
  font-size: 1.0rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: #222;
}

.search-shortcut {
  position: absolute;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #eee;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #555;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

html[data-theme="dark"] .search-shortcut {
  background-color: #555;
  color: #eee;
}

html[data-theme="dark"] .search-input {
  background-color: #cacaca;
  color: #333;
}

html[data-theme="dark"] .clear-search-btn {
  color: #555;
}

html[data-theme="dark"] .clear-search-btn:hover {
  color: #888;
}

.search-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #007bff;
  color: white;
  border-radius: 0.5rem; 
  border: none;
  cursor: pointer;
  transition: all 0.3s ease; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #0056b3;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-container button:hover {
  background-color: #0056b3; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px); 
}

.event-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef4fb, #dde8f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(80, 114, 156, 0.18);
  gap: 0.35rem;
}

.event-view-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: #90a1b8;
  font-weight: 600;
  box-shadow: none;
}

.search-container .event-view-button:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #5d86b8;
}

.icon-only-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0.75rem;
}


.event-view-button.active {
  background: #ffffff;
  color: #63acf1;
  box-shadow: 0 6px 14px rgba(99, 172, 241, 0.18);
}

html[data-theme="dark"] .event-view-toggle {
  background: linear-gradient(135deg, #c4c4c4, #16253a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .event-view-button {
  color: #8fa6c2;
}

html[data-theme="dark"] .search-container .event-view-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #a8d3ff;
}

html[data-theme="dark"] .event-view-button.active {
  background: #eef4fb;
  color: #3a8ddd;
}

.filter-button-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #15ab79;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-right: 0.2em;
}

.finished-games-button.active {
  background-color: #ff6f00;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.finished-games-button:hover,
.finished-games-button.active:hover {
  background-color: #ff6f00;
}

.odds-filter-count {
  display: none;
  background-color: #0056b3;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 0.5em;
  min-width: 1.5em;
  text-align: center;
  line-height: 1.5em;
}

  .filter-button-container button:hover {
    background-color: #15ab79;
  }

  .time-filter-container select {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    background-color: #15ab79;
    color: white;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2C197.3L159.3%2C69.6c-3.2-3.2-8.4-3.2-11.6%2C0L1.4%2C197.3c-3.2%2C3.2-3.2%2C8.4%2C0%2C11.6l11.6%2C11.6c3.2%2C3.2%2C8.4%2C3.2%2C11.6%2C0l120.2-120.2l120.2%2C120.2c3.2%2C3.2%2C8.4%2C3.2%2C11.6%2C0l11.6-11.6C290.2%2C205.7%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
    padding-right: 1.5em;
  }

  .time-filter-container select:hover {
    background-color: #15ab79;
  }

  html[data-theme="dark"] .time-filter-container select {
    background-color: #15ab79; 
  }

  html[data-theme="dark"] .time-filter-container select:hover {
    background-color: #15ab79; 
  }

.star {
  cursor: pointer;
  color: #a0a0a0;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-right: 0.2em;
}

.star.favorited {
  color: #FFD700;
}

.star-competition {
  cursor: pointer;
  color: #a0a0a0;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-right: 5px;
}

.star-competition.favorited {
  color: #FFD700;
}

/* ==========================================================================
   Game List Section
   ========================================================================== */
.competition-group {
  margin-bottom: 10px;
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 10px;
  background-color: #f9f9f9;
  margin-right: 10%;
  margin-left: 10%;
  min-height: 50px;
  transition: all 0.3s ease; 
}

.competition-group h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.competition-group h2 .accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.competition-group.collapsed .competition-events {
  display: none;
}

.competition-group.collapsed .accordion-icon {
  transform: rotate(-90deg);
}


.competition-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-list-tab.grid-view,
.game-list-container.grid-view,
#upcoming-game-list.grid-view {
  column-count: 2;
  column-gap: 12px;
}

.game-list-tab.grid-view > .competition-group,
.game-list-container.grid-view > .competition-group,
#upcoming-game-list.grid-view > .competition-group {
  display: inline-block;
  /* width: 100%; */
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.competition-events li {
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f0f0f0, #deece3, #fbffff);
  background-size: 200% 100%;
  animation: gradient-animation 8s ease infinite;
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 0;
  margin-left: 0;
  min-height: 50px;
  transition: all 0.3s ease;
}

.competition-events li.brazil-highlight {
  background: linear-gradient(180deg, #00fe13, #19811b, #00cc2d);
}

.event-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}

.event-header strong {
  flex-grow: 1;
  margin-top: 0.2em;
}

.event-time {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-color-dark);
  /* margin-left: 0.5em;  */
}

.event-ranking {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-color-dark);
}
.team-ranking {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-color-dark);
}

.favorite-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0;
  margin-right: 0.35rem;
  vertical-align: text-bottom;
  cursor: help;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.favorite-indicator--filled {
  -webkit-mask-image: url('/img/laurel-super.svg');
  mask-image: url('/img/laurel-super.svg');
}

.favorite-indicator--outline {
  -webkit-mask-image: url('/img/laurel-thin.svg');
  mask-image: url('/img/laurel-thin.svg');
}

.favorite-indicator--home {
  color: #2563eb;
}

.favorite-indicator--away {
  color: #dc2626;
}

.favorite-indicator--neutral {
  color: #ccc;
}

html[data-theme="dark"] .event-ranking,
html[data-theme="dark"] .team-ranking {
  color: var(--ranking-color-dark, #ccc);
}

.competition-events li:last-child {
  margin-bottom: 0;
}

.view-radar-btn {
  background-color: #19692c;
  color: white;
  margin-top: 0.2em;
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: pulse-shadow 2s infinite;
}

.view-radar-btn:hover {
  background-color: #114e1f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.view-radar-wh-pack-btn {
  background-color: var(--primary-color); 
  margin-top: 0.2em;
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem; 
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease; 
  margin-left: 0.5em; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-radar-wh-pack-btn:hover {
  background-color: var(--primary-color-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.packball-link {
  display: inline-block;
  vertical-align: middle;
}

.packball-icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: auto;
  margin-top: 0.2em;
  margin-left: 0.5em;
  border-radius: 5px;
}

.radar-wh-pack-icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: auto;
  margin-top: 0.2em;
  margin-left: 0.5em;
  border-radius: 5px;
}

.analysis-btn,
.historical-matches-link {
  background: none;
  border: none;
  color: #ff8f00;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: color 0.2s ease;
  margin-left: 0.5em;
  padding: 0;
}

.analysis-btn:hover,
.historical-matches-link:hover {
  color: #a75d00;
}


/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
  background-color: var(--primary-color-dark);
  transform: scale(1.05);
}

#back-to-top .arrow-up {
  visibility: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top .arrow-up::before {
  content: "\2191"; 
  visibility: visible;
  position: absolute;
  font-size: 20px; 
  color: white; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#back-to-top:focus {
  outline: none;
}

/* ==========================================================================
   Donation Section
   ========================================================================== */
.donation-section-2 {
  margin-top: 30px;
}

.donation-options-2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pix-option-2 .qrcode {
  width: 150px;
  height: 150px;
  border-radius: 8px;
}

.pix-option-2 .font-smaller {
  font-size: small;
  color: #444;
  margin-top: -10px;
}

.donate-button {
  background-color: var(--primary-color);
  color: white;
  padding: 7px 10px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.donate-button:hover {
  background-color: var(--primary-color-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.payment-methods-icons {
  text-align: center;
}

.payment-methods-icons img {
  width: 24px;
  height: 24px;
  gap: 2
}

.footer-timestamps {
  text-align: left;
  margin-left: 12%;
}

/* ==========================================================================
   Dark Mode Styles
   ========================================================================== */
html[data-theme="dark"] {
  --background-light: #030a18;
  --background-card: #0F172A;
  --text-color-light: #f0f0f0;
  --text-color-dark: #ccc;
  --border-color-light: #444;
  --border-color-medium: #555;
  background-color: var(--background-light);
  color: var(--text-color-light);
}

html[data-theme="dark"] body {
  background-color: var(--background-light);
  color: var(--text-color-light);
}

html[data-theme="dark"] .description-radar {
  color: var(--text-color-light);
}

html[data-theme="dark"] .pix-option .font-smaller {
  color: #ccc;
}

html[data-theme="dark"] li {
  background: var(--background-card);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .view-radar-btn,
html[data-theme="dark"] .star {
  color: var(--text-color-light);
}

html[data-theme="dark"] footer {
  color: var(--text-color-dark);
}


html[data-theme="dark"] .language-switch select {
  background-color: var(--background-card);
  color: var(--text-color-light);
  border-color: var(--border-color-light);
}

html[data-theme="dark"] .tab-container {
  border-bottom: 2px solid var(--border-color-light);
}

html[data-theme="dark"] .logo-container img {
  filter: brightness(0.8);
}


html[data-theme="dark"] .star.favorited {
  color: #FFD700;
}

html[data-theme="dark"] .competition-group {
  background-color: var(--background-card);
  border-color: var(--border-color-light);
}

html[data-theme="dark"] .competition-group h2 {
  color: var(--primary-color); 
  border-bottom-color: var(--border-color-light);
}

html[data-theme="dark"] .competition-events li {
  background: linear-gradient(90deg, #1E293B, #113860, #1E293B);
  background-size: 200% 100%;
  animation: gradient-animation 8s ease infinite;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .competition-events li.brazil-highlight {
  background: linear-gradient(180deg, #00fe13, #19811b, #00cc2d);
}

html[data-theme="dark"] .event-time {
  color: #cccccc;
}

html[data-theme="dark"] .odds-display {
    color: #cccccc;
}

html[data-theme="dark"] .odds-section-container {
    background: #030a18;
    border-radius: 0.5em;
}

.odds-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dark"] .odds-filter-container {
  background-color: var(--background-card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.odds-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.odds-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.5em;
}

.odds-filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.odds-filter-group label {
  font-weight: bold;
  color: #333;
}

html[data-theme="dark"] .odds-filter-group label {
  color: var(--text-color-light);
}

.filter-select,
.filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); 
}

html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .filter-input {
  background-color: var(--border-color-medium);
  color: var(--text-color-light);
  border-color: var(--border-color-medium);
}

.filter-select:focus,
.filter-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-button {
  padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem; 
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.filter-button:hover {
  background-color: var(--primary-color-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  transform: translateY(-1px); 
}

.clear-button {
  background-color: #dc3545;
  transition: all 0.3s ease; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.clear-button:hover {
  background-color: #c82333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  transform: translateY(-1px);
}

.remove-filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem; 
  width: 40px;
  height: 40px; 
}

.remove-filter-button svg {
  width: 24px;
  height: 24px;
}

.add-filter-button {
  background-color: #15ab79;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-filter-button:hover {
  background-color: #096446;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px); 
}

.add-filter-button svg {
  width: 24px;
  height: 24px;
}

.odds-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: right;
  margin-top: 1rem;
}

.language-switch select {
  padding: 0.2rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.language-switch select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.date-navigation-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}

.date-nav-button {
  background-color: #ff6f00 !important;
  color: white;
  border: none;
  border-radius: 20px !important;
  padding: 8px 15px !important;
  font-size: 0.8rem !important;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.date-nav-button:hover:not(:disabled) {
  background-color: #e65100;
}

.date-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

html[data-theme="dark"] .date-nav-button {
  background-color: #ff8f00;
}

html[data-theme="dark"] .date-nav-button:hover:not(:disabled) {
  background-color: #ff6f00;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 860px) {
  .responsive-logo {
    max-width: 70px;
  }

  .description-radar {
    font-size: 0.7rem;
    padding-bottom: 5%;
  }

  .competition-group {
    margin-right: 2%;
    margin-left: 2%;
  }
  .odds-display {
    font-size: 0.7em;
  }
  .odds-display .odds-value {
    font-size: 0.7em !important;
  }
    .odds-display .odds-label {
    font-size: 0.7em !important;
  }
}

@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
    gap: 10px;
  }

  .event-view-toggle {
    display: none;
  }

  .search-container input,
  .search-container button,
  .filter-button-container {
    width: 80%;
    margin-bottom: 0;
    margin-left: 0;
  }

  .search-container input,
  .search-container button,
  .filter-button-container,
  .time-filter-container,
  .time-filter-container select,
  .search-input-wrapper { 
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }

  .event-view-toggle {
    width: 100%;
    justify-content: center;
  }

  .event-view-button {
    flex: 1;
    justify-content: center;
    width: auto !important;
  }

  .game-list-tab.grid-view,
  .game-list-container.grid-view,
  #upcoming-game-list.grid-view {
    column-count: 1;
  }

  .search-input-wrapper { 
    flex-grow: 0;
  }

  .search-container input {
    flex-grow: 0;
  }

  .search-container {
    max-width: 90%;
  }

  .clear-search-btn {
    right: 0;
  }
  
  .header-controls {
    flex-direction: column;
    align-items: flex-end;
    right: 15px;
    padding: 5px;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-end;
  }

  .theme-switch {
    font-size: 10px;
    padding: 0;
    gap: 3px;
    margin-left: 0;
  }

  .switch {
    width: 36px;
    height: 20px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }

  input:checked+.slider:before {
    transform: translateX(16px);
  }

  .switch.is-checked .slider:before,
  .switch[data-checked="true"] .slider:before {
    transform: translateX(16px);
  }

  .logo-container {
    margin-top: 10px;
  }

  .responsive-logo {
    max-width: 70px;
  }

  h1 {
    font-size: 1.7rem;
    width: 90%;
    margin: auto;
  }

  .description-radar {
    font-size: 0.7rem;
    padding-bottom: 5%;
  }

  .tab-button {
        font-size: 0.7rem;
        font-weight: 600;
        margin: 0 1px;
        padding: 10px 15px;
  }

  .date-nav-button {
    margin: 0.2rem;
  }

  .competition-group {
    margin-right: 2%;
    margin-left: 2%;
  }

  .competition-events li {
    font-size: 0.77rem;
    padding: 5px !important;
  }

  .competition-group h2 {
    font-size: 1rem;
  }

  
.analysis-btn,
.historical-matches-link {
  background: none;
  border: none;
  color: #ff8f00;
  cursor: pointer;
  font-size: 0.85em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: all 0.3s ease;
  margin-left: 0.5em;
  padding: 0;
}

  .view-radar-btn {
    padding: 0.4rem;
    font-size: 0.7rem;
  }

  .odds-display {
    margin-left: 0;
    gap: 0px!important;
    border-right: 0.1px solid;
    border-color: #444;
    font-size: 0.77em !important;
  }

  .odds-display-inline {
    gap: 0.2rem !important;
    margin-left: 0.1rem !important;
  }

  .filter-button-container button {
    margin-bottom: 0.8em;
  }

  .filter-select {
    font-size: 0.8em;
  }

  .filter-input {
    font-size: 0.8em;
  }

  .odds-filter-count {
    font-size: 0.6em;
  }

  .odds-filter-wrapper {
    margin: 0 auto;
  }

  .odds-filter-row {
    gap: 0.5rem;
    font-size: 0.8em;
  }

  .odds-filter-actions {
    justify-content:center;
  }

.language-switch select {
  padding: 0.2rem;
  border: 1px solid var(--border-color-light);
  border-radius: 0.5rem; 
  background-color: var(--background-card);
  color: var(--text-color-light);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

  .game-list-tab > .competition-events > li {
  margin-right: 5%;
  margin-left: 5%;
  }

  .date-navigation-container {
    width: 100%; 
    justify-content: center;
    margin-bottom: 10px; 
    margin-right: 0;
  }

  .date-nav-button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {

  h1 {
    font-size: 1rem;
  }

  .description-radar {
    font-size: 0.6rem;
  }

  .header-controls {
    right: 10px;
    padding: 3px;
    gap: 3px;
  }

  .theme-switch {
    font-size: 9px;
    padding: 0;
    gap: 2px;
    margin-left: 0;
  }

  .switch {
    width: 30px;
    height: 18px;
  }

  .slider:before {
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
  }

  input:checked+.slider:before {
    transform: translateX(12px);
  }

  .switch.is-checked .slider:before,
  .switch[data-checked="true"] .slider:before {
    transform: translateX(12px);
  }

  .language-switch select {
    font-size: 0.7rem;
    padding: 3px;
    top:2px
  }
}

/* ==========================================================================
   Odds Update Animation
   ========================================================================== */

[data-theme="dark"] {
  --odds-update-flash-color: rgba(14, 44, 14, 0.3);
}

.odds-section-container.updated-flash {
  border-radius: 4px;
  animation: flash-background 1s ease-out;
}
@keyframes flash-background {
  0% {
    background-color: var(--odds-update-flash-color);
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

.odds-display-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem; 
  margin-left: 0.5rem;
}

.odds-display .odds-label {
  font-size: 0.8em;
  color: var(--text-secondary);
  grid-row: 1;
  padding-bottom: 0.3em;
}

.odds-display .odds-value {
  font-weight: bold;
  padding: 0.5em;
  grid-row: 2;
}

.odds-display {
    font-size: 0.8em;
    font-weight: 700;
    margin-top: 0.5em;
    color: #444;
    padding: 0.5em 0;
    border-radius: 0.5em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease-out;
}

.odds-display--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.odds-display--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.odds-display .odds-value s {
  text-decoration: line-through;
  color: #767676;
  font-weight: normal;
}

html[data-theme="dark"] .odds-display .odds-value s {
  color: #a9a9a9;
}

.odds-container {
    width: 100%;
    border-radius: 0.5em;
}

.odds-section-container {
    display: flex;
    align-items: center;
    gap: 0.2em; 
    margin-top: 0.5em;
    background:#f9f9f9;
    border-radius: 0.5em;
    transition: all 0.2s ease-out;
}

.odds-refresh-icon {
  margin-left: 0.5rem;
  font-size: 1.2em;
  color: var(--highlight-color);
  animation: rotate-icon 0.8s ease-out;
}

@keyframes rotate-icon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar Styles */
body {
  --sb-track-color: #232e33;
  --sb-thumb-color: #15ab79;
  --sb-size: 15px;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

/* ==========================================================================
   Historical Data Styles
   ========================================================================== */

.historical-data-btn {
  background-color: #15ab79;
  color: white;
  padding: 0.6rem;
  border: none;
  border-radius: 0.375rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  margin-left: 0.5em;
}

.historical-data-btn:hover {
  background-color: #096446;
}

.historical-data-link {
  background: none;
  border: none;
  color: #15ab79;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.85em;
  font-weight: 600;
  gap: 0.2em;
  transition: color 0.2s ease;
  margin-left: 0.5em;
  padding: 0;
}

.historical-data-link:hover {
  color: #096446; 
}


html[data-theme="dark"] .historical-data-btn {
  background-color: #15ab79;
}

html[data-theme="dark"] .historical-data-btn:hover {
  background-color: #096446;
}

.historical-data-content {
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

html[data-theme="dark"] .historical-data-content {
  background-color: #030a18;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.historical-data-content h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  text-align: center;
}

html[data-theme="dark"] .historical-data-content h4 {
  color: var(--primary-color); 
}

.team-stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.team-stats {
  flex: 1;
  /* min-width: 280px; Minimum width for each team's stats */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1em;
}

html[data-theme="dark"] .team-stats {
  background-color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.team-stats .border-b {
  border-color: #eee;
}

html[data-theme="dark"] .team-stats .border-b {
  border-color: #444;
}

.team-stats button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 0.9em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7em;
}

html[data-theme="dark"] .team-stats button {
  color: #f0f0f0;
}

.team-stats button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.team-stats table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

.team-stats table td {
  padding: 0.5em 0.2em;
  text-align: center;
  border-bottom: 1px solid #eee;
}

html[data-theme="dark"] .team-stats table td {
  border-bottom-color: #444;
}

.team-stats table tbody tr:last-child td {
  border-bottom: none;
}

.team-stats table .text-muted-foreground\/50 {
  color: #888;
}

html[data-theme="dark"] .team-stats table .text-muted-foreground\/50 {
  color: #aaa;
}

.team-stats table .text-\[10px\] {
  font-size: 10px;
}

@media (max-width: 600px) {
  .team-stats-container {
    /* flex-direction: column; */
  }
  .team-stats {
    min-width: unset;
    /*width: 100%;*/
  }
}

.odds-logic-switch-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.odds-logic-switch-label {
  font-weight: bold;
  font-size: 0.8em;
  color: #555;
}

html[data-theme="dark"] .odds-logic-switch-label {
  color: var(--text-color-light);
}

.odds-logic-switch .slider {
  background-color: #ccc;
}

html[data-theme="dark"] .odds-logic-switch .slider {
  background-color: var(--border-color-medium);
}

.odds-logic-switch input:checked + .slider {
  background-color: #007bff;
}

html[data-theme="dark"] .odds-logic-switch input:checked + .slider {
  background-color: var(--primary-color);
}

.odds-logic-switch .slider:before {
  background-color: white;
}


.vpn-popup-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vpn-popup-content {
    max-width: 90%;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.vpn-popup-content h2 {
    color: var(--highlight-color) !important;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.vpn-popup-content p {
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 0.9em;
}

.vpn-popup-content a {
    color: #0275d8;
    text-decoration: underline;
    font-weight: bold;
}

.vpn-popup-content a:hover {
    color: #025aa5;
}

.toggle-instructions-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 0.5rem; 
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-instructions-btn:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-1px);
}

.vpn-instructions-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
    visibility: hidden;
}

.vpn-instructions-visible {
    max-height: 500px;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.vpn-instructions-visible p,
.vpn-instructions-visible div {
    color: #f0f0f0;
}

.close-vpn-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em !important;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: #218838;
}

.download-vpn-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 0.5rem; 
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.download-vpn-btn:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-1px); 
}

.vpn-popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .vpn-popup-content {
        padding: 10px;
    }

    .vpn-popup-content h2 {
        font-size: 1.2em;
    }

    .vpn-popup-content p {
        font-size: 0.8em;
    }

    .toggle-instructions-btn,
    .close-button,
    .download-vpn-btn {
        padding: 6px 12px;
        font-size: 0.8em;
        width: 100%;
        box-sizing: border-box;
    }

    .vpn-popup-actions {
        flex-direction: column;
        gap: 8px;
    }
}

.vpn-popup-actions button {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

/* Temporarily hide the VPN popup to identify the green bar */
.vpn-popup-bottom {
    display: none !important;
}

/* Accordion animations for historical data */
.overflow-hidden.transition-all {
  max-height: 1000px; 
  opacity: 1;
  visibility: visible;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overflow-hidden.transition-all[data-state="closed"] {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Rotate chevron icon */
.team-stats button[data-state="open"] > svg {
  transform: rotate(180deg);
}


@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 184, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.event-meta-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 0.9em;
  flex-wrap: wrap;
}

/* Linha de placar/tempo ao vivo (Bolsa) */
.inplay-scoreline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.6em;
  padding: 0.25em 0.6em;
  border-radius: 8px;
  background-color: #d4edda;
  color: #155724;
  width: fit-content;
}

.inplay-scoreline .inplay-icon {
  color: inherit;
}

.inplay-scoreline .inplay-time,
.inplay-scoreline .inplay-score {
  font-weight: 700;
  color: #155724;
}

.inplay-scoreline .inplay-ht {
  font-size: 0.7em;
  opacity: 0.9;
}

html[data-theme="dark"] .inplay-scoreline {
  background-color: #1f4f2a;
  color: #a3e6b3;
}

html[data-theme="dark"] .inplay-scoreline .inplay-time,
html[data-theme="dark"] .inplay-scoreline .inplay-score,
html[data-theme="dark"] .inplay-scoreline .inplay-ht {
  color: #a3e6b3;
}

.view-progress-link {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-progress-link:hover {
  color: #06518f; 
}

.event-details-container {
  margin: 1em 1em 0 1em;
}

.game-list-tab.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.game-list-tab.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color); 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.today-lazy-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px 28px;
  color: var(--text-secondary, #a7afc3);
  font-size: 0.95rem;
  text-align: center;
}

.today-lazy-loading-indicator__spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #15ab79;
  animation: today-lazy-spin 0.8s linear infinite;
}

[data-theme="light"] .today-lazy-loading-indicator__spinner {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: #0f8f65;
}

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes today-lazy-spin {
    100% { transform: rotate(360deg); }
  }

  .analysis-content {
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
  }

  html[data-theme="dark"] .analysis-content {
    background-color: #030a18;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .analysis-content h4 {
    color: #ff8f00;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
  }

  html[data-theme="dark"] .analysis-content h4 {
    color: #ff8f00;
    border-bottom-color: #444;
  }

  .analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 0.9em;
  }

  .analysis-table th,
  .analysis-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
  }

  html[data-theme="dark"] .analysis-table th,
  html[data-theme="dark"] .analysis-table td {
    border-color: #444;
  }

  .analysis-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
  }

  html[data-theme="dark"] .analysis-table th {
    background-color: #0F172A;
    color: #f0f0f0;
  }

  .analysis-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  html[data-theme="dark"] .analysis-table tbody tr:nth-child(even) {
    background-color: #0F172A;
  }

  .analysis-columns {
    display: flex;
    gap: 16px;
    /* align-items: flex-start; */
  }

  .analysis-col {
    flex: 1;
    min-width: 240px;
  }

  .analysis-col-title {
    font-weight: 700;
    margin: 0 0 0.5em 0;
  }

  .analysis-table.analysis-table--2col td {
    text-align: left;
  }

  .analysis-table.analysis-table--2col td:last-child {
    text-align: center;
    font-weight: 600;
    width: 90px;
    white-space: nowrap;
  }

  .analysis-table.analysis-table--2col .analysis-label {
    width: auto;
  }

  @media (max-width: 700px) {
    .analysis-columns {
      flex-direction: column;
    }
  }

  /* Cores de desempenho vindas da fonte (classes cor-*) */
  .analysis-content .cor-excelente {
    background-color: #d4edda;
    color: #155724;
  }

  .analysis-content .cor-bom {
    background-color: #e6ffe6;
    color: #155724;
  }

  .analysis-content .cor-medio {
    background-color: #d1ffcd;
    color: #048565;
  }

  .analysis-content .cor-baixo {
    background-color: #ffe8cc;
    color: #7a4a00;
  }

  .analysis-content .cor-muito-baixo {
    background-color: #f8d7da;
    color: #721c24;
  }

  html[data-theme="dark"] .analysis-content .cor-excelente {
    background-color: #1f4f2a;
    color: #a3e6b3;
  }

  html[data-theme="dark"] .analysis-content .cor-bom {
    background-color: #2a3a2a;
    color: #c3f0c3;
  }

  html[data-theme="dark"] .analysis-content .cor-medio {
    background-color: #183b21;
    color: #a1ffd3;
  }

  html[data-theme="dark"] .analysis-content .cor-baixo {
    background-color: #3a2b1a;
    color: #ffd2a1;
  }

  html[data-theme="dark"] .analysis-content .cor-muito-baixo {
    background-color: #4a1f24;
    color: #ffb3b9;
  }

  .cell-highlight-green {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
  }

  html[data-theme="dark"] .cell-highlight-green {
    background-color: #1f4f2a;
    color: #a3e6b3;
  }

  .cell-light-green {
    background-color: #e6ffe6;
    color: #155724;
  }

  html[data-theme="dark"] .cell-light-green {
    background-color: #2a3a2a;
    color: #c3f0c3;
  }

  .cell-highlight-red {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
  }

  html[data-theme="dark"] .cell-highlight-red {
    background-color: #5c2c30;
    color: #f5b7bc;
  }

  .cell-light-red {
    background-color: #fff0f0;
    color: #721c24;
  }

  html[data-theme="dark"] .cell-light-red {
    background-color: #3a2a2a;
    color: #f0c3c3;
  }

  .sequence-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1em;
    justify-content: center;
  }

  .sequence-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
  }

  html[data-theme="dark"] .sequence-item {
    color: #f0f0f0;
  }

  .seq-loss {
    background-color: #f8d7da;
  }

  html[data-theme="dark"] .seq-loss {
    background-color: #5c2c30;
  }

  .seq-draw {
    background-color: #fff3cd; 
  }

  html[data-theme="dark"] .seq-draw {
    background-color: #5c522c;
  }

  .seq-win {
    background-color: #d4edda;
  }

  html[data-theme="dark"] .seq-win {
    background-color: #1f4f2a;
  }

  .responsible-gaming-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px 20px 100px;
    background-color: #222831;
    color: #eeeeee;
    margin-top: 20px;
    flex-wrap: wrap;
  }

.copyright-info {
  font-size: 0.9em;
  color: #cccccc;
  text-align: left;
  flex-basis: auto;
  padding-right: 10px;
}

.responsible-gaming-link {
  display: flex;
  align-items: center;
  color: #eeeeee;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
  flex-basis: auto;
  margin-right: 5%;
}

.responsible-gaming-link a {
  display: flex;
  align-items: center;
  color: #eeeeee;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.responsible-gaming-link a:hover {
  color: #aaaaaa;
}

.responsible-gaming-link img {
  width: 40px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

html[data-theme="dark"] .responsible-gaming-section {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .responsible-gaming-section .copyright-info {
  color: #b0b0b0;
}

html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a {
  color: #cccccc;
}

html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a:hover {
  color: #aaaaaa;
}

  html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a:hover {
    color: #aaaaaa;
  }

  .social-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    transition: background-color 0.3s ease;
  }

  .social-button:hover {
    background-color: #555;
  }

  .social-button img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  html[data-theme="dark"] .social-button {
    background-color: #444;
  }

  html[data-theme="dark"] .social-button:hover {
    background-color: #666;
  }

/* Neon Effect */
@keyframes neonPulseLight {
  0%, 100% {
    text-shadow:
      0 0 5px #22C55E,
      0 0 10px #22C55E,
      0 0 20px #16A34A;
  }
  50% {
    text-shadow:
      0 0 10px #4ADE80,
      0 0 20px #4ADE80,
      0 0 40px #22C55E;
  }
}

@keyframes neonPulseDark {
  0%, 100% {
    text-shadow:
      0 0 5px #3B82F6,
      0 0 10px #3B82F6,
      0 0 20px #2563EB;
  }
  50% {
    text-shadow:
      0 0 10px #60A5FA,
      0 0 20px #60A5FA,
      0 0 40px #3B82F6;
  }
}

.neon-text {
  animation-duration: 3s; 
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Light mode neon */
html:not([data-theme="dark"]) .neon-text {
  color: #222222;
  animation-name: neonPulseLight;
}

/* Dark mode neon */
html[data-theme="dark"] .neon-text {
  color: #ccdfff;
  animation-name: neonPulseDark;
}

@media (max-width: 768px) {
  .responsible-gaming-section {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .social-buttons-container {
    justify-content: center;
  }

  .copyright-info {
    padding-right: 0;
    margin-bottom: 10px;
    text-align:center;
    width:90%;
  }
}

/* Modern Team Historical Data Styles */
.modern-team-stats {
  background: var(--background-card, #fff);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  max-width: 900px;
  width: 100%;
}
html[data-theme="dark"] .modern-team-stats {
  background: #101624;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.modern-section {
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color-light, #eee);
  background: linear-gradient(90deg, var(--background-light, #f4f4f4) 60%, var(--background-card, #fff) 100%);
}
html[data-theme="dark"] .modern-section {
  background: linear-gradient(90deg, #101624 60%, #172441 100%);
  border-color: #222;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.modern-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.95em;
  transition: background 0.2s;
}

.modern-row {
  transition: background 0.2s;
}
.modern-row:nth-child(even) {
  filter: brightness(0.98);
}
.modern-row:nth-child(odd) {
  filter: brightness(1.04);
}

@media (max-width: 600px) {
  .modern-team-stats {
    padding: 0.5rem 0.2rem;
    font-size: 0.95em;
    max-width: 100vw;
  }
  .modern-section {
    margin-bottom: 0.5rem;
    padding: 0.2rem;
  }
  .modern-table td {
    padding: 0.5rem 0.2rem;
    font-size: 0.85em;
  }
}

/* Cores para linhas específicas */
.modern-row .text-primary { color: var(--primary-color, #007bff); }
.modern-row .text-success { color: #22C55E; }
.modern-row .text-warning { color: #fbbf24; }
.modern-row .text-destructive { color: #ef4444; }
html[data-theme="dark"] .modern-row .text-primary { color: #60A5FA; }
html[data-theme="dark"] .modern-row .text-success { color: #4ADE80; }
html[data-theme="dark"] .modern-row .text-warning { color: #facc15; }
html[data-theme="dark"] .modern-row .text-destructive { color: #f87171; }

/* Histórico 10 jogos (hm10-*) */
.hm10-wrapper {
  width: 100%;
}

/* Deixar o "Ver últimos 10 jogos" (stats) no mesmo estilo do hm10 */
.hm10-wrapper .modern-team-stats {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color-light, #eee);
  background: var(--background-card, #fff);
}
html[data-theme="dark"] .hm10-wrapper .modern-team-stats {
  background: #101624;
  border-color: #222;
}

.hm10-wrapper .modern-team-stats h4 {
  font-weight: 800;
}

.hm10-wrapper .modern-team-stats .modern-section {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color-light, #eee);
  background: transparent;
}
html[data-theme="dark"] .hm10-wrapper .modern-team-stats .modern-section {
  border-color: #222;
}

.hm10-wrapper .modern-team-stats .modern-section button {
  background: transparent;
  border-radius: 0.6rem;
  font-weight: 750;
}
.hm10-wrapper .modern-team-stats .modern-section button:hover {
  background: rgba(0, 0, 0, 0.03);
  color: inherit;
}
html[data-theme="dark"] .hm10-wrapper .modern-team-stats .modern-section button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hm10-wrapper .modern-team-stats .modern-table td {
  font-size: 0.9em;
}

.hm10-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}
.hm10-tab {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-color-light, #ddd);
  background: var(--background-card, #fff);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.hm10-tab--primary {
  background: var(--primary-color, #007bff);
  border-color: var(--primary-color, #007bff);
  color: #fff;
}
.hm10-tab__text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm10-columns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hm10-col {
  flex: 1 1 320px;
  min-width: 280px;
}

.hm10-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color-light, #eee);
  background: var(--background-card, #fff);
  overflow: hidden;
}
html[data-theme="dark"] .hm10-card {
  background: #101624;
  border-color: #222;
}

.hm10-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color-light, #eee);
}
html[data-theme="dark"] .hm10-header {
  border-bottom-color: #222;
}
.hm10-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary-color, #007bff);
}
.hm10-subtitle {
  font-size: 0.78rem;
  opacity: 0.8;
}

.hm10-content {
  padding: 0.85rem;
}

.hm10-list {
  width: 100%;
}

.hm10-item {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-color-light, #eee);
  text-decoration: none;
  color: inherit;
}
html[data-theme="dark"] .hm10-item {
  border-bottom-color: #222;
}
.hm10-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
html[data-theme="dark"] .hm10-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hm10-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.hm10-date {
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.85;
}
.hm10-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.hm10-scorecol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0.2rem 0.25rem;
  border-radius: 0.4rem;
  background: rgba(0,0,0,0.06);
}
html[data-theme="dark"] .hm10-scorecol {
  background: rgba(255,255,255,0.08);
}
.hm10-score {
  line-height: 1.1;
  font-size: 0.78rem;
}
.hm10-score--ht {
  opacity: 0.75;
  font-weight: 600;
}
.hm10-score--ft {
  font-weight: 800;
}

.hm10-mid {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.hm10-teamline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.hm10-team {
  font-size: 0.92rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm10-odd {
  font-size: 0.78rem;
  opacity: 0.75;
  white-space: nowrap;
}

.hm10-right {
  display: flex;
  justify-content: flex-end;
}
.hm10-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.82rem;
  color: #fff;
}
html[data-theme="dark"] .hm10-badge {
  color: #111;
}
.hm10-badge--win { background: #22C55E; }
.hm10-badge--loss { background: #ef4444; }
.hm10-badge--draw { background: #9ca3af; }
.hm10-badge--unknown { background: #9ca3af; }

@media (max-width: 600px) {
  .hm10-item {
    grid-template-columns: 104px 1fr 30px;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
  }
  .hm10-badge {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
  }
}

/* Botão de expansão moderno */
.modern-section button {
  border-radius: 0.5rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modern-section button:hover {
  background: var(--primary-color, #007bff);
  color: #fff;
}
