@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;
}

:root {
  /* Couleurs principales DeepBetting */
  --neon-blue: #00f0ff;
  --neon-purple: #b14aed;
  --neon-pink: #ff2d92;
  --gradient-neon: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  
  /* Fonds sombres */
  --dark-bg: #0a0a0f;
  --dark-card: #12121a;
  --sidebar-dark: #0d0d12;
  --border-color: #1a1a2e;
  
  /* Textes */
  --text-light: #ffffff;
  --text-secondary: #8892a4;
  
  /* Couleurs d'état */
  --match-bg: #12121a;
  --match-hover: #1a1a2e;
  --match-active: #252538;
  --status-live: #ff2d92;
  --status-finished: #00f0ff;
  --status-ongoing: #b14aed;
  --odds-bg: #1a1a2e;
  
  /* Sport-specific colors */
  --football-accent: #00f0ff;
  --football-accent-transparent: rgba(0, 240, 255, 0.1);
  --nba-accent: #ff2d92;
  --nba-accent-transparent: rgba(255, 45, 146, 0.1);
  --tennis-accent: #b14aed;
  --tennis-accent-transparent: rgba(177, 74, 237, 0.1);
  --free-accent: #00d664;
  --free-accent-secondary: #00f080;
  --free-accent-transparent: rgba(0, 214, 100, 0.1);
  --gradient-free: linear-gradient(135deg, #00d664 0%, #00f080 50%, #00b854 100%);
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  display: flex;
  min-height: 100vh;
  font-size: 1.0rem;
  position: relative;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */

/* Animated grid with scan lines */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 240, 255, 0.03) 2px,
      rgba(0, 240, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
  animation: scan-lines 25s linear infinite;
}

@keyframes scan-lines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* Glow orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.2);
  top: -100px;         /* remonté légèrement */
  right: 10%;          /* rapproché du centre */
  animation: float-1 8s ease-in-out infinite;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(177, 74, 237, 0.18);
  bottom: 10%;
  left: 20%;
  animation: float-2 10s ease-in-out infinite;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(255, 45, 146, 0.15);
  top: 55%;            /* descendu pour séparer de orb-1 */
  right: 15%;          /* rapproché du centre */
  animation: float-3 12s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 40px) scale(1.05); }
  50% { transform: translate(40px, -30px) scale(0.95); }
  75% { transform: translate(-20px, -40px) scale(1.02); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 50px) scale(0.92); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-40px, 30px) scale(1.04); }
  40% { transform: translate(30px, -50px) scale(0.96); }
  60% { transform: translate(50px, 20px) scale(1.06); }
  80% { transform: translate(-20px, -30px) scale(0.98); }
}

/* ===== END ANIMATED BACKGROUND ===== */

/* Sidebar */
.sidebar {
  width: 16%;
  background-color: var(--sidebar-dark);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  position: relative;
  z-index: 10;
}

.logo {
  padding: 0 15px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  height: 60px;
}

.logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-left: 8px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-neon);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-section {
  padding: 0 15px;
  margin-bottom: 15px;
}

.nav-section h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(0, 240, 255, 0.1);
}

.nav-link.active {
  background-color: rgba(0, 240, 255, 0.15);
  border-left: 3px solid var(--neon-blue);
}

.nav-link i {
  margin-right: 8px;
  color: var(--neon-blue);
  font-size: 0.9rem;
}

/* Sports Section */
.sports-nav {
  padding: 0 15px;
  margin-bottom: 15px;
}

.sports-nav h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.sport-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.sport-link.football {
  border-left: 3px solid var(--football-accent);
}

.sport-link.football.active {
  background-color: var(--football-accent-transparent);
}

.sport-link.nba {
  border-left: 3px solid var(--nba-accent);
}

.sport-link.nba.active {
  background-color: var(--nba-accent-transparent);
}

.sport-link.tennis {
  border-left: 3px solid var(--tennis-accent);
}

.sport-link.tennis.active {
  background-color: var(--tennis-accent-transparent);
}

.sport-link.free {
  border-left: 3px solid var(--free-accent);
}

.sport-link.free.active {
  background-color: var(--free-accent-transparent);
}

.sport-link:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

.sport-link i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.sport-link.football i {
  color: var(--football-accent);
}

.sport-link.nba i {
  color: var(--nba-accent);
}

.sport-link.tennis i {
  color: var(--tennis-accent);
}

.sport-link.free i {
  color: var(--free-accent);
}

/* Main Content */
.content {
  width: 82%;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  height: 60px;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.page-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-neon);
  color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
}

.btn-outline:hover {
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

/* Sport Selector Tabs */
.sport-tabs {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

.sport-tab {
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.sport-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: all 0.3s ease;
  border-radius: 3px 3px 0 0;
}

.sport-tab.active::after {
  background: var(--gradient-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.sport-tab.football.active::after {
  background-color: var(--football-accent);
  box-shadow: 0 0 10px var(--football-accent);
}

.sport-tab.nba.active::after {
  background-color: var(--nba-accent);
  box-shadow: 0 0 10px var(--nba-accent);
}

.sport-tab.tennis.active::after {
  background-color: var(--tennis-accent);
  box-shadow: 0 0 10px var(--tennis-accent);
}

.sport-tab.free.active::after {
  background: var(--gradient-free);
  box-shadow: 0 0 10px var(--free-accent), 0 0 20px var(--free-accent-secondary);
}

.sport-tab i {
  margin-right: 8px;
}

.sport-tab.football i {
  color: var(--football-accent);
}

.sport-tab.nba i {
  color: var(--nba-accent);
}

.sport-tab.tennis i {
  color: var(--tennis-accent);
}

.sport-tab.free i {
  color: var(--free-accent);
  text-shadow: 0 0 8px var(--free-accent);
}

/* Bouton de basculement de vue */
.view-toggle-btn {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 6px 12px;
  align-self: center;
  margin-bottom: 3px;
}

/* Sport Content Sections */
.sport-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.sport-content.active {
  display: block;
}

/* Leagues Section */
.league-section {
  margin-bottom: 25px;
  animation: fadeIn 0.5s ease;
}

.league-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.league-icon {
  width: 28px;
  height: 28px;
  background-color: var(--football-accent-transparent);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.league-icon.football {
  background-color: var(--football-accent-transparent);
}

.league-icon.football i {
  color: var(--football-accent);
}

.league-icon.nba {
  background-color: var(--nba-accent-transparent);
}

.league-icon.nba i {
  color: var(--nba-accent);
}

.league-icon.tennis {
  background-color: var(--tennis-accent-transparent);
}

.league-icon.tennis i {
  color: var(--tennis-accent);
}

.league-icon.free {
  background-color: var(--free-accent-transparent);
}

.league-icon.free i {
  color: var(--free-accent);
}

.league-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

/* Vue compacte */
.compact-view .matches-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.match-card {
  background-color: var(--match-bg);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Glow effect on hover */
.match-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.match-card.football::after {
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.match-card.nba::after {
  box-shadow: inset 0 0 20px rgba(255, 45, 146, 0.1);
}

.match-card.tennis::after {
  box-shadow: inset 0 0 20px rgba(177, 74, 237, 0.1);
}

.match-card:hover::after {
  opacity: 1;
}

/* Styles pour la vue compacte */
.match-card.compact {
  padding: 8px;
  font-size: 0.85rem;
}

.match-card.compact .match-time {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
}

.match-card.compact .team-name {
  font-size: 0.75rem;
}

.match-card.compact .team-score {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
}

.match-card.compact .prediction-label {
  font-size: 0.7rem;
}

.match-card.compact .prediction-value {
  font-size: 0.8rem;
}

.match-card.compact .team-row .score-separator.live-score {
  color: var(--neon-pink);
}

.match-time.live-score {
  animation: text-pulse 2s infinite alternate;
}

@keyframes text-pulse {
  0% {
    color: var(--neon-pink);
  }
  100% {
    color: #ff6ba8;
  }
}

.match-card.football::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.match-card.nba::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--nba-accent), var(--neon-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.match-card.tennis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--tennis-accent), var(--neon-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.match-card:hover {
  background-color: var(--match-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 240, 255, 0.2);
}

.match-card:hover::before {
  opacity: 1;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.match-time {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.match-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.status-live {
  background-color: rgba(255, 45, 146, 0.2);
  color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 45, 146, 0.3);
}

.status-finished {
  background-color: rgba(0, 240, 255, 0.2);
  color: var(--neon-blue);
}

.status-ongoing {
  background-color: rgba(177, 74, 237, 0.2);
  color: var(--neon-purple);
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* Style pour les équipes en vue compacte */
.compact-teams {
  margin-bottom: 6px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 5px;
}

.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Ajuster la taille des icônes et logos dans la vue compacte */
.match-card.compact .team-logo {
  width: 16px;
  height: 16px;
}

.score-separator {
  font-weight: bold;
  margin: 0 3px;
}

.team {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-name {
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.team-score {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
}

.match-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  flex: 1;
}

/* Footer en vue compacte */
.compact-footer {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  padding-top: 4px;
  width: 100%;
}

.compact-prediction {
  display: flex;
  align-items: center;
  gap: 5px;
}

.compact-odds .odds-value {
  font-size: 0.8rem;
  font-weight: 600;
}

.match-prediction {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Ligne d'informations complémentaires - toujours en bas */
.match-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 0 0 0;
  width: 100%;
  margin-top: auto;
}

.prediction-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.prediction-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prediction-value.football {
  color: var(--football-accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.prediction-value.nba {
  color: var(--nba-accent);
  text-shadow: 0 0 10px rgba(255, 45, 146, 0.3);
}

.prediction-value.tennis {
  color: var(--tennis-accent);
  text-shadow: 0 0 10px rgba(177, 74, 237, 0.3);
}

.match-odds-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  background-color: var(--odds-bg);
  margin-left: 8px;
  transition: all 0.2s ease;
}

.match-odds-value.football {
  color: var(--football-accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.match-odds-value.nba {
  color: var(--nba-accent);
  border: 1px solid rgba(255, 45, 146, 0.3);
}

.match-odds-value.tennis {
  color: var(--tennis-accent);
  border: 1px solid rgba(177, 74, 237, 0.3);
}

.match-odds-value:hover {
  transform: scale(1.05);
}

/* Style de l'analyse */
.match-analysis {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.match-analysis::before {
  content: '🤖';
  font-size: 0.9rem;
}

/* Style des barres de confiance */
.confidence-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
}

.confidence-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 5px;
}

.bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.bar {
  width: 6px;
  height: 100%;
  background-color: var(--odds-bg);
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.low .bar:nth-child(1) {
  background-color: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
}

.medium .bar:nth-child(-n+2) {
  background-color: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
}

.high .bar {
  background-color: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
}

/* Météo */
.weather-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
}

.weather-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-align: center;
}

.weather-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--neon-blue);
}

.weather-icon i {
  font-size: 1rem;
  vertical-align: middle;
}

/* Style de la cote */
.odds-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
}

.odds-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-align: center;
}

.odds-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.odds-value.football {
  color: var(--football-accent);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.odds-value.nba {
  color: var(--nba-accent);
  text-shadow: 0 0 8px rgba(255, 45, 146, 0.4);
}

.odds-value.tennis {
  color: var(--tennis-accent);
  text-shadow: 0 0 8px rgba(177, 74, 237, 0.4);
}

.odds-value.free {
  color: var(--free-accent);
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.prediction-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style du bouton LIVE */
.live-button {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-circle {
  width: 8px;
  height: 8px;
  background-color: #FFFFFF;
  border-radius: 50%;
  position: relative;
  animation: pulse-animation 2s infinite;
}

.live-text {
  color: #FFFFFF;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 1px;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(255, 255, 255, 0);
  }
}

.live-score {
  color: var(--neon-pink);
}

/* Gestion des pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Styles pour les tableaux de résultats */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--match-bg);
  color: var(--text-secondary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

td img {
  vertical-align: middle;
}

/* Centrer horizontalement la cellule de résultat et son contenu */
.result-cell, .result-header {
  text-align: center;
}

.result-cell span {
  margin: 0 auto;
  display: inline-block;
}

/* Styles pour la modale de filtre */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  overflow: auto;
}

.modal-content {
  background-color: var(--dark-card);
  margin: 8% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.modal-header h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.close-modal, .close-predictions-modal, .close-search-modal, .close-preferences-modal {
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.close-modal:hover, .close-predictions-modal:hover, .close-search-modal:hover, .close-preferences-modal:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

.modal-body {
  padding: 24px;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section h4 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 12px;
  color: var(--neon-blue);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-group {
  margin-bottom: 12px;
}

.filter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.filter-date, .filter-odds {
  display: flex;
  gap: 15px;
}

.filter-date .filter-group, .filter-odds .filter-group {
  flex: 1;
}

.filter-checkboxes {
  display: flex;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
  accent-color: var(--neon-blue);
  width: 18px;
  height: 18px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Styles pour les modales de recherche */
.search-modal-content {
  max-width: 450px;
}

.search-section {
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.search-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Styles pour highlight les résultats de recherche */
.search-highlight {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(177, 74, 237, 0.3));
  border-radius: 3px;
  padding: 0 3px;
}

.odds-display { display: none; }

/* Results badges */
.result-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.result-badge.won {
  background-color: rgba(0, 240, 255, 0.2);
  color: var(--neon-blue);
}

.result-badge.lost {
  background-color: rgba(255, 45, 146, 0.2);
  color: var(--neon-pink);
}

.result-badge.push {
  background-color: rgba(177, 74, 237, 0.2);
  color: var(--neon-purple);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* Selection styling */
::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text-light);
}

/* ===== FREE TAB SPECIAL STYLES ===== */

/* Effet de lueur animée sur l'onglet Free */
.sport-tab.free {
  position: relative;
}

.sport-tab.free.active {
  background: var(--free-accent-transparent);
  border-radius: 8px 8px 0 0;
}





/* Badge "FREE" spécial */
.free-badge {
  background: var(--gradient-free);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse-free 2s ease-in-out infinite;
}

@keyframes pulse-free {
  0%, 100% {
    box-shadow: 0 0 5px var(--free-accent);
  }
  50% {
    box-shadow: 0 0 15px var(--free-accent), 0 0 20px var(--free-accent-secondary);
  }
}

.nba .weather-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--neon-pink);
}


.nba .low .bar:nth-child(1) {
  background-color: var(--neon-pink);
  box-shadow: 0 0 5px var(--neon-pink);
}

.nba .medium .bar:nth-child(-n+2) {
  background-color: var(--neon-pink);
  box-shadow: 0 0 5px var(--neon-pink);
}

.nba .high .bar {
  background-color: var(--neon-pink);
  box-shadow: 0 0 5px var(--neon-pink);
}

.results-table tr td,
.results-table tr th {
  border: none;
}

.match-card.compact .match-status {
  font-size: 0.5rem;
  padding: 3px 6px;
}

.match-card.compact .live-text {
  font-size: 0.5rem;
}

/* ============================================================================
   FREE PICKS SECTION STYLES
   À ajouter à la fin de dashboard.css
   ============================================================================ */

/* Container principal de la section Free */
.free-sport-section {
  margin-bottom: 40px;
  position: relative;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.free-sport-section:nth-child(1) {
  animation-delay: 0.1s;
}

.free-sport-section:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.free-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gradient-free);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}


@keyframes pulse-free-badge {
  0%, 100% {
    box-shadow: 0 0 5px var(--free-accent), 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px var(--free-accent), 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
  }
}


/* ===== RESPONSIVE FREE PICKS ===== */

@media (max-width: 768px) {
  
  .free-section-title {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }
}

/* Badge FREE simple sans animation */
/* Désactiver les effets spéciaux sur les cartes free-pick */
.match-card.free-pick::before,
.match-card.free-pick::after {
  display: none;
}

.match-card.free-pick:hover {
  border-color: var(--free-accent);
}

.prediction-value.free {
  color: var(--free-accent);
  text-shadow: 0 0 10px rgba(0, 214, 100, 0.3);
}

.free .low .bar:nth-child(1) {
  background-color: var(--free-accent);
  box-shadow: 0 0 5px var(--free-accent);
}

.free .medium .bar:nth-child(-n+2) {
  background-color: var(--free-accent);
  box-shadow: 0 0 5px var(--free-accent);
}

.free .high .bar {
  background-color: var(--free-accent);
  box-shadow: 0 0 5px var(--free-accent);
}

.free .weather-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--free-accent);
}
