/* ============================================
   LEARNBLOX HUB (Daily, Shop, Leaderboard)
   Redesigned for Full Width & Consistency
   ============================================ */

/* ============================================
   QUIT DUEL CONFIRMATION MODAL
   ============================================ */

.quit-duel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.quit-duel-modal.active {
  opacity: 1;
  visibility: visible;
}

.quit-duel-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.quit-duel-container {
  position: relative;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quit-duel-modal.active .quit-duel-container {
  transform: scale(1) translateY(0);
}

.quit-duel-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--warning-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quit-duel-icon i {
  width: 32px;
  height: 32px;
  color: var(--warning-color);
}

.quit-duel-container h3 {
  color: var(--text-headings);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quit-duel-container p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.quit-duel-container p strong {
  color: var(--danger-color);
  font-weight: 600;
}

.quit-duel-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-quit-cancel,
.btn-quit-confirm {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-quit-cancel {
  background: var(--primary-accent);
  border: none;
  color: white;
}

.btn-quit-cancel:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-quit-cancel i {
  width: 18px;
  height: 18px;
}

.btn-quit-confirm {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-quit-confirm:hover {
  background: var(--danger-bg);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.btn-quit-confirm i {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .quit-duel-container {
    padding: 1.5rem;
  }

  .quit-duel-icon {
    width: 50px;
    height: 50px;
  }

  .quit-duel-icon i {
    width: 26px;
    height: 26px;
  }

  .quit-duel-container h3 {
    font-size: 1.1rem;
  }

  .quit-duel-container p {
    font-size: 0.9rem;
  }

  .quit-duel-actions {
    flex-direction: column;
  }

  .btn-quit-cancel,
  .btn-quit-confirm {
    padding: 0.75rem;
  }
}

/* ============================================
   BATTLE ARENA MODAL - FULLSCREEN (Theme-Aware)
   ============================================ */

.battle-arena-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.battle-arena-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Backdrop - adapté au thème */
.battle-arena-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-body);
}

/* Effet de glow subtle */
.battle-arena-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(var(--primary-accent-rgb), 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(239, 68, 68, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.battle-arena-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header de l'arène - adapté au thème */
.battle-arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.battle-arena-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-headings);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.battle-arena-title i {
  width: 28px;
  height: 28px;
  color: var(--danger-color);
}

.battle-arena-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.battle-arena-close:hover {
  background: var(--danger-bg);
  border-color: var(--danger-color);
  color: var(--danger-color);
  transform: rotate(90deg);
}

.battle-arena-close i {
  width: 20px;
  height: 20px;
}

/* Contenu de l'arène - adapté au thème */
.battle-arena-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--text-primary);
  -webkit-overflow-scrolling: touch;
}

/* Loading state */
.battle-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 300px;
}

.battle-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border-width: 4px;
  border-color: var(--border-color);
  border-top-color: var(--danger-color);
}

.battle-loading p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Matchmaking screen */
.duel-matchmaking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  min-height: 300px;
}

.matchmaking-animation {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matchmaking-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-light);
  animation: matchmakingPulse 2s ease-out infinite;
}

@keyframes matchmakingPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.matchmaking-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-accent);
  animation: matchmakingRotate 2s linear infinite;
  z-index: 1;
}

@keyframes matchmakingRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.duel-matchmaking h3 {
  color: var(--text-headings);
  font-size: 1.3rem;
  margin: 0;
}

.matchmaking-status {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.matchmaking-bet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--warning-color);
  font-weight: 600;
}

.matchmaking-bet i {
  width: 16px;
  height: 16px;
}

/* Real player & Bot badges */
.real-player-badge,
.bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.real-player-badge {
  background: var(--primary-light);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
}

.real-player-badge i,
.bot-badge i {
  width: 12px;
  height: 12px;
}

.bot-badge {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ============================================
   ÉCRAN "PRÊT" - PvP Synchronisation
   ============================================ */

.duel-ready-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  min-height: 350px;
}

.ready-title {
  color: var(--text-headings);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.ready-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.ready-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border: 2px solid var(--border-color);
  min-width: 140px;
  transition: all 0.3s ease;
}

.ready-player-card.me .ready-status.is-ready {
  background: var(--success-bg);
  color: var(--success-color);
  border-color: var(--success-color);
}

.ready-player-card.opponent .ready-status.is-ready {
  background: var(--primary-light);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.ready-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-content);
  overflow: hidden;
}

.ready-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-avatar span {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-headings);
}

.ready-name {
  font-weight: 600;
  color: var(--text-headings);
  font-size: 1rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ready-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-content);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.ready-status i {
  width: 14px;
  height: 14px;
}

.ready-status.is-ready {
  animation: readyPulse 0.5s ease;
}

@keyframes readyPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.ready-vs {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--danger-color);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.ready-instruction {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 400px;
}

.btn-duel-ready {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--success-color), #059669);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-duel-ready:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-duel-ready:disabled,
.btn-duel-ready.is-ready {
  background: var(--success-color);
  opacity: 0.8;
  cursor: default;
  transform: none;
}

.btn-duel-ready i {
  width: 20px;
  height: 20px;
}

/* Responsive pour écran prêt */
@media (max-width: 480px) {
  .duel-ready-screen {
    padding: 1rem;
    gap: 1rem;
  }

  .ready-title {
    font-size: 1.2rem;
  }

  .ready-players {
    gap: 1rem;
  }

  .ready-player-card {
    padding: 1rem;
    min-width: 100px;
  }

  .ready-avatar {
    width: 55px;
    height: 55px;
  }

  .ready-name {
    font-size: 0.9rem;
    max-width: 90px;
  }

  .ready-vs {
    font-size: 1.2rem;
  }

  .ready-instruction {
    font-size: 0.8rem;
  }

  .btn-duel-ready {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Countdown - adapté au thème */
.battle-arena-content .duel-countdown {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.battle-arena-content .countdown-number {
  font-size: 6rem;
  color: var(--danger-color);
  font-weight: 900;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.battle-arena-content .duel-countdown p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 1rem;
}

/* Battle Screen dans le modal */
.battle-arena-content .duel-battle-screen {
  width: 100%;
  max-width: 800px;
  gap: 1rem;
}

/* Battle Header - scores */
.battle-arena-content .duel-battle-header {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.battle-arena-content .duel-player-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.battle-arena-content .duel-player-score.opponent {
  flex-direction: row-reverse;
  text-align: right;
}

.battle-arena-content .score-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--primary-accent);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  overflow: hidden;
}

.battle-arena-content .score-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-arena-content .score-avatar.opponent,
.battle-arena-content .duel-player-score.opponent .score-avatar {
  background: var(--danger-bg);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.battle-arena-content .score-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.battle-arena-content .score-name {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-arena-content .score-points {
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.battle-arena-content .duel-player-score.opponent .score-points {
  color: var(--danger-color);
}

/* Timer container */
.battle-arena-content .duel-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0 0.5rem;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.battle-arena-content .duel-question-number {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.battle-arena-content .duel-timer {
  width: 54px;
  height: 54px;
}

.battle-arena-content .timer-text {
  color: var(--text-headings);
  font-size: 1.2rem;
}

.battle-arena-content .timer-ring-bg {
  stroke: var(--border-color);
}

.battle-arena-content .timer-ring-progress {
  stroke: var(--success-color);
}

/* Question container */
.battle-arena-content .duel-question-container {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.battle-arena-content .duel-question-text {
  color: var(--text-headings);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

/* Options grid */
.battle-arena-content .duel-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.battle-arena-content .duel-option-btn {
  background: var(--bg-alt);
  border: 2px solid var(--border-color);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.battle-arena-content .duel-option-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.battle-arena-content .option-letter {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.battle-arena-content .option-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.battle-arena-content .duel-option-btn.correct {
  background: var(--success-bg);
  border-color: var(--success-color);
}

.battle-arena-content .duel-option-btn.correct .option-letter {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.battle-arena-content .duel-option-btn.incorrect {
  background: var(--danger-bg);
  border-color: var(--danger-color);
}

.battle-arena-content .duel-option-btn.incorrect .option-letter {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

/* Answer status */
.battle-arena-content .duel-answer-status {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.battle-arena-content .answer-indicator {
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.battle-arena-content .answer-indicator i {
  width: 14px;
  height: 14px;
}

.battle-arena-content .answer-indicator.correct {
  color: var(--success-color);
  background: var(--success-bg);
}

.battle-arena-content .answer-indicator.incorrect {
  color: var(--danger-color);
  background: var(--danger-bg);
}

.battle-arena-content .answer-indicator.timeout {
  color: var(--warning-color);
  background: var(--warning-bg);
}

/* Result screen */
.battle-arena-content .duel-result-screen {
  max-width: 500px;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.battle-arena-content .result-banner {
  text-align: center;
}

.battle-arena-content .result-banner h2 {
  font-size: 2rem;
  font-weight: 800;
}

.battle-arena-content .duel-result-screen.victory .result-banner h2 {
  color: var(--success-color);
  animation: victoryPulse 1.5s ease infinite;
}

.battle-arena-content .duel-result-screen.defeat .result-banner h2 {
  color: var(--danger-color);
}

.battle-arena-content .duel-result-screen.draw .result-banner h2 {
  color: var(--warning-color);
}

@keyframes victoryPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Result scores */
.battle-arena-content .result-scores {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.battle-arena-content .result-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.battle-arena-content .result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--primary-accent);
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.battle-arena-content .result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-arena-content .result-avatar.opponent {
  background: var(--danger-bg);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.battle-arena-content .result-player.winner .result-avatar {
  border-color: var(--warning-color);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.battle-arena-content .result-name {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.battle-arena-content .result-score {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 800;
}

.battle-arena-content .result-player.winner .result-score {
  color: var(--success-color);
}

.battle-arena-content .result-vs {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 800;
}

.battle-arena-content .winner-badge {
  position: absolute;
  top: -10px;
  font-size: 1.5rem;
  animation: bounce 1s ease infinite;
}

/* Result rewards */
.battle-arena-content .result-rewards {
  background: var(--primary-light);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
  color: var(--primary-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.battle-arena-content .result-rewards i {
  width: 18px;
  height: 18px;
}

/* Result limit warning */
.battle-arena-content .result-limit-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.battle-arena-content .result-limit-warning i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Result daily counter */
.battle-arena-content .result-daily-counter {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.battle-arena-content .result-daily-counter i {
  width: 14px;
  height: 14px;
  color: var(--warning-color);
}

/* Result stats */
.battle-arena-content .result-stats {
  display: flex;
  gap: 2rem;
}

.battle-arena-content .result-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.battle-arena-content .result-stats .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.battle-arena-content .result-stats .stat-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

/* Result actions */
.battle-arena-content .result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.battle-arena-content .btn-duel-primary {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.battle-arena-content .btn-duel-primary:hover {
  background: var(--danger-hover);
  transform: translateY(-2px);
}

.battle-arena-content .btn-duel-secondary {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.battle-arena-content .btn-duel-secondary:hover {
  background: var(--bg-element);
}

/* Animation d'entrée du modal */
.battle-arena-modal .battle-arena-container {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.battle-arena-modal.active .battle-arena-container {
  transform: scale(1);
}

/* ============================================
   RESPONSIVE MOBILE - BATTLE ARENA
   ============================================ */

@media (max-width: 768px) {
  .battle-arena-header {
    padding: 0.75rem 1rem;
  }

  .battle-arena-title {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .battle-arena-title i {
    width: 22px;
    height: 22px;
  }

  .battle-arena-close {
    width: 38px;
    height: 38px;
  }

  .battle-arena-close i {
    width: 18px;
    height: 18px;
  }

  .battle-arena-content {
    padding: 0.75rem;
    justify-content: flex-start;
    align-items: center;
  }

  /* Battle screen mobile - centré */
  .battle-arena-content .duel-battle-screen {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
  }

  /* Countdown mobile */
  .battle-arena-content .countdown-number {
    font-size: 4rem;
  }

  .battle-arena-content .duel-countdown p {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  /* Battle header mobile - LAYOUT HORIZONTAL */
  .battle-arena-content .duel-battle-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.875rem;
    gap: 0;
    flex-wrap: nowrap;
  }

  .battle-arena-content .duel-player-score {
    flex: 1;
    gap: 0.5rem;
    flex-direction: row !important;
  }

  .battle-arena-content .duel-player-score.opponent {
    flex-direction: row-reverse !important;
  }

  .battle-arena-content .duel-player-score .score-info {
    align-items: flex-start;
    text-align: left;
  }

  .battle-arena-content .duel-player-score.opponent .score-info {
    align-items: flex-end;
    text-align: right;
  }

  .battle-arena-content .score-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 0.95rem;
    border-width: 2px;
  }

  .battle-arena-content .score-name {
    font-size: 0.8rem;
    max-width: 75px;
  }

  .battle-arena-content .score-points {
    font-size: 1.25rem;
  }

  .battle-arena-content .duel-timer-container {
    padding: 0 0.75rem;
    margin: 0 0.25rem;
  }

  .battle-arena-content .duel-timer {
    width: 48px;
    height: 48px;
  }

  .battle-arena-content .timer-text {
    font-size: 1.1rem;
  }

  .battle-arena-content .duel-question-number {
    font-size: 0.7rem;
  }

  /* Question mobile */
  .battle-arena-content .duel-question-container {
    padding: 1rem;
    width: 100%;
  }

  .battle-arena-content .duel-question-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .battle-arena-content .duel-option-btn {
    padding: 0.875rem;
    width: 100%;
  }

  .battle-arena-content .option-letter {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.8rem;
  }

  .battle-arena-content .option-text {
    font-size: 0.9rem;
  }

  /* Answer status mobile - centré */
  .battle-arena-content .duel-answer-status {
    padding: 0.5rem 0.75rem;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .battle-arena-content .answer-indicator {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .battle-arena-content .answer-indicator i {
    width: 14px;
    height: 14px;
  }

  /* Result mobile */
  .battle-arena-content .duel-result-screen {
    padding: 1rem;
    gap: 1rem;
  }

  .battle-arena-content .result-banner h2 {
    font-size: 1.5rem;
  }

  .battle-arena-content .result-scores {
    padding: 1rem;
    gap: 1rem;
  }

  .battle-arena-content .result-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .battle-arena-content .result-name {
    font-size: 0.8rem;
  }

  .battle-arena-content .result-score {
    font-size: 1rem;
  }

  .battle-arena-content .result-vs {
    font-size: 0.9rem;
  }

  .battle-arena-content .winner-badge {
    font-size: 1.25rem;
    top: -8px;
  }

  .battle-arena-content .result-rewards {
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
  }

  .battle-arena-content .result-stats {
    gap: 1.5rem;
  }

  .battle-arena-content .result-stats .stat-label {
    font-size: 0.75rem;
  }

  .battle-arena-content .result-stats .stat-value {
    font-size: 0.9rem;
  }

  .battle-arena-content .result-actions {
    width: 100%;
  }

  .battle-arena-content .btn-duel-primary,
  .battle-arena-content .btn-duel-secondary {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Small mobile screens (480px) */
@media (max-width: 480px) {
  .battle-arena-content .duel-battle-header {
    padding: 0.75rem 0.5rem;
  }

  .battle-arena-content .duel-player-score {
    gap: 0.4rem;
  }

  .battle-arena-content .score-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.85rem;
  }

  .battle-arena-content .score-name {
    font-size: 0.7rem;
    max-width: 60px;
  }

  .battle-arena-content .score-points {
    font-size: 1.1rem;
  }

  .battle-arena-content .duel-timer-container {
    padding: 0 0.5rem;
    margin: 0 0.15rem;
  }

  .battle-arena-content .duel-timer {
    width: 44px;
    height: 44px;
  }

  .battle-arena-content .timer-text {
    font-size: 1rem;
  }

  .battle-arena-content .duel-question-number {
    font-size: 0.65rem;
  }

  .battle-arena-content .duel-question-container {
    padding: 0.875rem;
  }

  .battle-arena-content .duel-question-text {
    font-size: 0.95rem;
  }

  .battle-arena-content .option-text {
    font-size: 0.875rem;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .battle-arena-header {
    padding: 0.5rem 0.75rem;
  }

  .battle-arena-title span {
    display: none;
  }

  .battle-arena-content {
    padding: 0.5rem;
  }

  .battle-arena-content .duel-battle-header {
    padding: 0.6rem 0.4rem;
  }

  .battle-arena-content .duel-player-score {
    gap: 0.3rem;
  }

  .battle-arena-content .score-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.8rem;
  }

  .battle-arena-content .score-name {
    font-size: 0.65rem;
    max-width: 50px;
  }

  .battle-arena-content .score-points {
    font-size: 1rem;
  }

  .battle-arena-content .duel-timer-container {
    padding: 0 0.4rem;
    margin: 0;
    border-left-width: 1px;
    border-right-width: 1px;
  }

  .battle-arena-content .duel-timer {
    width: 40px;
    height: 40px;
  }

  .battle-arena-content .timer-text {
    font-size: 0.9rem;
  }

  .battle-arena-content .duel-question-number {
    font-size: 0.6rem;
  }

  .battle-arena-content .duel-question-container {
    padding: 0.75rem;
  }

  .battle-arena-content .duel-question-text {
    font-size: 0.9rem;
  }

  .battle-arena-content .duel-option-btn {
    padding: 0.75rem;
  }

  .battle-arena-content .option-text {
    font-size: 0.85rem;
  }

  .battle-arena-content .answer-indicator {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
  }

  .battle-arena-content .result-scores {
    flex-direction: column;
  }

  .battle-arena-content .result-vs {
    margin: 0.5rem 0;
  }
}

/* --- Layout Container --- */

/* --- Header Section --- */

/* --- Navigation Tabs (Legacy - Overridden by cours.css .nav-pill) --- */

/* 
.daily-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.daily-tab-btn:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.daily-tab-btn.active {
  color: var(--primary-accent);
  background: var(--primary-light);
}

.daily-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -0.6rem; 
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-accent);
  border-radius: 3px 3px 0 0;
}
*/

/* --- Content Area --- */
.daily-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.daily-tab-content.active {
  display: block;
}

/* --- Grid Layouts --- */

/* --- Cards --- */

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.card-icon.primary {
  background: var(--primary-light);
  color: var(--primary-accent);
}
.card-icon.danger {
  background: var(--danger-bg);
  color: var(--danger-color);
}
.card-icon.success {
  background: var(--success-bg);
  color: var(--success-color);
}
.card-icon.warning {
  background: var(--warning-bg);
  color: var(--warning-color);
}

/* --- Specific Components --- */

/* Duel Arena - styles principaux définis plus bas dans 'Final Fixes' */

/* ============================================
   BOUTIQUE (Shop) - Clean Minimal Design
   ============================================ */

/* Shop Header */

.shop-header-left h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-headings);
}

.shop-header-left p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Boost Status Badge */
.boost-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
}

.boost-status-badge i {
  width: 16px;
  height: 16px;
}

.boost-status-badge .boost-time {
  font-family: "Fira Code", monospace;
  font-weight: 700;
}

/* Shop Items List */

.item-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.item-icon i {
  width: 24px;
  height: 24px;
}

.item-icon.joker {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.item-icon.boost {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Item icon colors */
.item-icon.lucky {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.item-icon.effect {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

/* Shop Inventory */

.inventory-header h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inventory-header h3 i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.inventory-empty {
  width: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.inventory-empty i {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.inventory-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   SHOP MODALS - Clean Style
   ============================================ */

.modal-overlay-clean {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-clean {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header-clean h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-headings);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--bg-body);
  color: var(--text-primary);
}

.modal-close-btn i {
  width: 18px;
  height: 18px;
}

.modal-body-clean {
  padding: 1.5rem;
}

.modal-body-clean.centered {
  text-align: center;
}

.modal-body-clean h3 {
  margin: 0.75rem 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-headings);
}

.modal-body-clean p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Modal Footer */
.modal-footer-clean {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-modal-primary,
.btn-modal-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-primary {
  background: var(--primary-accent);
  color: white;
}

.btn-modal-primary:hover {
  opacity: 0.9;
}

.btn-modal-secondary {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-modal-secondary:hover {
  background: var(--bg-body);
}

.btn-modal-primary.full,
.btn-modal-secondary.full {
  width: 100%;
}

/* Success/Error Icons */
.success-icon-clean,
.error-icon-clean,
.boost-activate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.success-icon-clean {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.error-icon-clean {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.boost-activate-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.success-icon-clean i,
.error-icon-clean i,
.boost-activate-icon i {
  width: 28px;
  height: 28px;
}

/* Boost Quantity Selector */
.boost-qty-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
  width: 100%;
}

.boost-qty-selector label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: var(--bg-content);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
}

#boostQtyValue {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-headings);
  min-width: 40px;
  text-align: center;
}

.qty-available {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.boost-duration-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  color: #f59e0b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.boost-duration-info i {
  width: 18px;
  height: 18px;
}

.gems-needed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gems-needed .needed-value {
  font-weight: 700;
  color: #ef4444;
}

.gems-needed i {
  width: 16px;
  height: 16px;
  color: #a855f7;
}

@media (max-width: 600px) {
  .shop-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================
   BUTTONS
   ========================================= */

.bet-btn {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bet-btn.selected {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

.duel-user-gems-display {
  background: var(--primary-light);
  color: var(--primary-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.duel-betting-controls {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bet-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-duel-primary {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-duel-primary:hover {
  background: var(--danger-hover);
}

.btn-duel-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
}
.btn-duel-secondary:hover {
  background: var(--bg-alt);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .daily-tab-btn span {
    display: inline;
  }
}

/* fadeIn keyframe maintenant dans _animations.css */

/* Leaderboard Styles déplacé plus bas dans ce fichier (version Fixed) */

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   NOUVEAU DESIGN DU CLASSEMENT
   ============================================ */

/* --- Podium 3D RÃ©aliste --- */
.podium-3d-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(
    to bottom,
    rgba(99, 102, 241, 0.03) 0%,
    transparent 100%
  );
  border-radius: 24px;
  margin-bottom: 2rem;
  min-height: 400px;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.podium-step:hover {
  transform: translateY(-8px);
}

/* Partie utilisateur (au-dessus du bloc) */
.step-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  z-index: 2;
}

.step-medal {
  font-size: 2rem;
  margin-bottom: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  line-height: 1;
  display: block;
}

.step-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
}

.podium-first .step-avatar {
  width: 90px;
  height: 90px;
  font-size: 2.2rem;
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
  margin-top: 0.75rem;
}

.podium-step:hover .step-avatar {
  transform: scale(1.1) rotate(5deg);
}

.step-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-first .step-name {
  font-size: 1.2rem;
}

.step-score {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.podium-first .step-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-accent);
}

/* Plateforme du podium */
.step-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.podium-first .step-platform {
  width: 160px;
}

.platform-rank {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.platform-block {
  width: 100%;
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.podium-step:hover .platform-block {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Effet 3D avec pseudo-Ã©lÃ©ments */
.platform-block::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
  border-radius: 0 0 8px 8px;
}

.platform-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 12px 12px 0 0;
}

/* Hauteurs et couleurs des blocs */
.platform-block.gold {
  height: 200px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  animation: pulseGold 2s ease-in-out infinite;
}

.platform-block.silver {
  height: 150px;
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.platform-block.bronze {
  height: 120px;
  background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%);
}

@keyframes pulseGold {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
  }
}

/* Ordre visuel: 2e, 1er, 3e */
.podium-second {
  order: 1;
}

.podium-first {
  order: 2;
}

.podium-third {
  order: 3;
}

/* --- Position de l'utilisateur --- */
.user-position-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
  border: 2px solid var(--primary-accent);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.position-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.position-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.position-rank {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-accent);
  min-width: 80px;
  text-align: center;
}

.position-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.position-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.position-username {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-headings);
}

.position-score {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-accent);
}

/* --- Liste complÃ¨te --- */
.full-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.full-leaderboard-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-headings);
  margin: 0;
}

.leaderboard-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

.new-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-content);
  border: 2px solid transparent;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.new-leaderboard-item:hover {
  border-color: var(--primary-accent);
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.new-leaderboard-item.is-user {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(168, 85, 247, 0.05) 100%
  );
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.item-rank {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 50px;
  text-align: center;
}

.new-leaderboard-item.is-user .item-rank {
  color: var(--primary-accent);
}

.item-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.item-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.item-grade {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.item-score {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.score-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .podium-3d-container {
    gap: 1rem;
    padding: 2rem 1rem 1rem 1rem;
    min-height: 320px;
  }

  .step-platform {
    width: 100px;
  }

  .podium-first .step-platform {
    width: 110px;
  }

  .platform-block.gold {
    height: 160px;
  }

  .platform-block.silver {
    height: 120px;
  }

  .platform-block.bronze {
    height: 100px;
  }

  .step-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .podium-first .step-avatar {
    width: 75px;
    height: 75px;
    font-size: 1.8rem;
  }

  .step-name {
    font-size: 0.9rem;
    max-width: 100px;
  }

  .step-score {
    font-size: 0.8rem;
  }

  .platform-rank {
    font-size: 1.5rem;
  }

  .position-content {
    gap: 1rem;
  }

  .position-rank {
    font-size: 2rem;
    min-width: 60px;
  }

  .position-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .new-leaderboard-item {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .item-rank {
    font-size: 1.1rem;
    min-width: 40px;
  }

  .item-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .item-username {
    font-size: 1rem;
  }

  .item-score {
    padding: 0.4rem 0.75rem;
  }
}

/* OLD STYLES - KEEPING FOR BACKWARDS COMPATIBILITY */
/* --- Top 4-20 Cards Grid (Improved Design) --- */

/* --- Daily Challenge Styles --- */
.daily-challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.daily-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.daily-type-badge.mini_quiz {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.daily-type-badge.code_challenge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.daily-xp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

.daily-question-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-headings);
  line-height: 1.4;
}

.daily-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* float keyframe maintenant dans _animations.css */

/* --- Leaderboard Styles (Fixed) --- */
.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  min-height: 300px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  width: 120px;
}

.podium-place:hover {
  transform: translateY(-5px);
}

.podium-place.first {
  order: 2;
  z-index: 3;
}

.podium-place.second {
  order: 1;
  z-index: 2;
}

.podium-place.third {
  order: 3;
  z-index: 1;
}

.podium-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  background: var(--bg-alt);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.podium-place.first .podium-avatar {
  width: 100px;
  height: 100px;
  border-color: #fbbf24;
}

.podium-place.second .podium-avatar {
  border-color: #94a3b8;
}

.podium-place.third .podium-avatar {
  border-color: #b45309;
}

.podium-username {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-headings);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

/* PEDESTALS (Pieds) */
.podium-base {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  color: white;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  position: relative;
}

.podium-place.first .podium-base {
  height: 160px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

.podium-place.second .podium-base {
  height: 120px;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.podium-place.third .podium-base {
  height: 90px;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
}

.podium-rank {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.podium-score {
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.podium-crown {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
  z-index: 4;
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
/* --- Improved Daily Challenge Styles --- */

/* No Challenge State */
.daily-no-challenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border: 2px dashed var(--border-color);
  color: var(--text-secondary);
  gap: 1rem;
  min-height: 250px;
}

.daily-no-challenge i {
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.daily-no-challenge p {
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

/* Active Challenge Header */
.daily-question-title {
  text-align: center;
  font-size: 1.4rem;
  margin: 1rem 0;
  color: var(--text-headings);
}

.daily-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
}

/* Quiz Grid */
.daily-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.daily-option-btn {
  background: var(--bg-alt);
  border: 2px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  font-size: 1rem;
}

.daily-option-btn:hover {
  border-color: var(--primary-accent);
  background: var(--bg-content);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.daily-option-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.daily-option-btn.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}

.daily-option-btn.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
  opacity: 0.7;
}

/* Drag & Drop Container */
.drag-drop-container {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.instruction-text {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Validation Feedback */
.daily-feedback {
  margin-top: 2rem;
  animation: slideUp 0.3s ease;
}

.validation-feedback {
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.validation-feedback.positive {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.validation-feedback.negative {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* --- Fixes for Daily Section Alignment (User Request) --- */

/* 1. Adjust Card Padding & Layout for Daily Tab */
#tab-challenges .content-card {
  padding: 2rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
}

/* 2. Make content areas flexible to fill the card */
#dailyChallengeContent,
#duelArenaContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 3. Fix No Challenge State to fill space */
.daily-no-challenge {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 4. Fix Duel Arena Alignment */
.duel-intro-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 0;
}

/* 5. Ensure Duel Visuals are centered */
.duel-visual {
  margin: 1.5rem 0;
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* 6. Fix Betting Controls spacing */
.duel-betting-controls {
  margin: 1.5rem 0;
  width: 100%;
}

/* 7. Ensure buttons are properly sized */
.duel-actions {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* 8. Fix Header Alignment inside cards */
#tab-challenges .content-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* 9. Responsive adjustments */
@media (max-width: 768px) {
  #tab-challenges .content-card {
    min-height: auto;
    padding: 1.5rem !important;
  }

  .duel-visual {
    gap: 1rem;
  }
}

/* --- Refined Spacing for Reordered Duel Arena --- */
.duel-intro-state h3 {
  margin-bottom: 0.5rem;
}

.duel-intro-state p {
  margin-bottom: 1.5rem;
}

.duel-visual {
  margin: 1rem 0 2rem 0;
}

.duel-user-gems-display {
  margin-bottom: 1.5rem;
}

/* --- Final Fixes for Duel Arena (User Request) --- */

/* 1. Fix Buttons Sizing & Centering */
.duel-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto 0 auto;
}

.btn-duel-primary,
.btn-duel-secondary {
  flex: 1;
  justify-content: center;
  min-width: 180px;
  text-align: center;
  padding: 0.8rem 1.5rem;
}

/* 2. Fix Avatar Placeholders Size Consistency */
.duel-avatar-placeholder {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* Ensure the icon inside is properly sized */
.duel-avatar-placeholder i {
  width: 32px;
  height: 32px;
}

/* Specific style for the right placeholder (Help/Unknown) */
.duel-avatar-placeholder.right {
  border-style: dashed;
  border-color: var(--text-muted);
  background: var(--bg-alt);
}

/* 3. Fix Explanation Text Centering */
.duel-intro-state p {
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 4. Responsive adjustments for buttons */
@media (max-width: 600px) {
  .duel-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-duel-primary,
  .btn-duel-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Shop Responsive */
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-item {
    padding: 1.5rem;
  }

  .shop-item-icon {
    width: 64px;
    height: 64px;
  }

  .shop-item-icon i {
    width: 28px;
    height: 28px;
  }

  .shop-item {
    width: 100%;
    max-width: 320px;
  }
}

/* --- Shop Redesign (Emoji Style) --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.shop-item {
  background: var(--bg-content);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: none;
}

.shop-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-accent);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.shop-item-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.shop-item:hover .shop-item-emoji {
  transform: scale(1.1) rotate(5deg);
}

.shop-item-details h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: var(--text-headings);
}

.shop-item-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.btn-buy {
  margin-top: auto;
  background: var(--bg-body);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
  font-size: 1rem;
}

.btn-buy:hover:not(:disabled) {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
  transform: scale(1.02);
}

.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-alt);
}

/* --- Social Grid V2 (Redesign - Moved to daily.css for safety) --- */
.pp-social-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.social-card-v2 {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.social-card-v2.discord {
  border-left: 4px solid #5865f2;
}

.social-card-v2.roblox {
  border-left: 4px solid #000000;
}

/* Background decoration */
.social-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.03) 100%
  );
  z-index: 0;
}

.social-icon-v2 {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-card-v2.discord .social-icon-v2 {
  background: #5865f2;
}

.social-card-v2.roblox .social-icon-v2 {
  background: #232323;
}

.social-info-v2 {
  flex: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.social-label-v2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-alt);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 0.25rem;
}

.social-username-v2 {
  font-weight: 700;
  color: var(--text-headings);
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.btn-copy-v2 {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-copy-v2:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-accent);
}

.btn-copy-v2 i {
  width: 16px;
  height: 16px;
}

.social-status-v2 {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.social-status-v2::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Empty state styling */
.social-card-v2.empty {
  opacity: 0.8;
  filter: grayscale(0.5);
}

.social-card-v2.empty:hover {
  opacity: 1;
  filter: grayscale(0);
}
/* ============================================
   REDESIGN: ONGLET INFORMATIONS (MODERN)
   ============================================ */

/* --- Container Grid --- */
.info-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .info-grid-container {
    grid-template-columns: 1fr;
  }
}

/* --- Modern Card Style --- */
.info-card-modern {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.info-card-modern::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-accent)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.info-card-modern:hover::after {
  opacity: 1;
}

/* Card Color Variants - Modern */
.info-card-modern.points-card {
  border-left: 4px solid var(--primary-accent);
}

.info-card-modern.studs-card {
  border-left: 4px solid #10b981;
}

.info-card-modern.grades-card {
  border-left: 4px solid #ef4444;
}

.info-card-modern.shop-card {
  border-left: 4px solid #a855f7;
}

/* --- Card Header --- */
.info-card-header {
  padding: 1.5rem;
  background: linear-gradient(
    to right,
    rgba(var(--primary-rgb), 0.05),
    transparent
  );
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Icon Boxes --- */
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.xp-icon {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}
/* Points - Indigo (classement) */
.points-icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-accent);
}
.rank-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
/* Boutique - Violet vif */
.shop-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}
/* Studs - Vert Ã©meraude (Ã©conomie) */
.studs-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* --- Card Body --- */
.info-card-body {
  padding: 1.5rem;
  flex: 1;
}

/* --- XP List Modern --- */
.xp-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xp-list-modern li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.xp-badge {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 70px;
  text-align: center;
}

.xp-details {
  display: flex;
  flex-direction: column;
}

.xp-details strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.xp-details small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* --- Grades Timeline --- */
.grades-timeline {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grade-step {
  position: relative;
  padding-left: 1.5rem;
}

.grade-dot {
  position: absolute;
  left: -0.45rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.grade-dot.novice {
  background: #94a3b8;
}
.grade-dot.apprentice {
  background: #60a5fa;
}
.grade-dot.initiate {
  background: #34d399;
}
.grade-dot.developer {
  background: #a78bfa;
}
.grade-dot.expert {
  background: #fbbf24;
}

.grade-content {
  display: flex;
  flex-direction: column;
}

.grade-content strong {
  color: var(--text-primary);
}

.grade-content small {
  color: var(--text-secondary);
}

/* --- Tips Text --- */
.tip-text {
  background: var(--bg-body);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-left: 4px solid var(--primary-color);
}

.tip-text:last-child {
  margin-bottom: 0;
}

/* --- Button Mini Check --- */

/* --- Responsive --- */
@media (max-width: 768px) {
  .info-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Active Grade Highlight - Fixed for Light/Dark */
.grade-step.active-grade {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), transparent);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color, #3b82f6);
  padding: 8px 12px;
  margin: -5px -13px;
}

.grade-step.active-grade .grade-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--bg-card);
  z-index: 2;
}

.grade-step.active-grade strong {
  color: var(--primary-color, #3b82f6);
  font-weight: 800;
  font-size: 1.05em;
  text-shadow: none;
}
[data-theme="light"] .grade-step.active-grade {
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Bouton Prolonger Boost --- */

/* Ajuster l'inventaire pour les actions multiples */

/* --- Lucky Box Animation --- */

@keyframes luckyReveal {
  0% {
    transform: scale(0.8) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* --- Lucky Box Slot Animation Modal --- */
/* fadeIn, bounceIn are in _animations.css */

#luckyBoxAnimationModal .slot-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#luckyBoxAnimationModal .slot-item.winner {
  animation: winnerPulse 1s ease infinite;
  animation-delay: 3.8s;
}

@keyframes winnerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* --- Unique Item States --- */

/* --- Effect Icon Colors --- */
.item-icon.effect.sparkle {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(236, 72, 153, 0.2) 100%
  );
  color: #a855f7;
}

/* =========================================
   DAILY BONUS MODAL
   ========================================= */

/* Animations - All defined in _animations.css: slideUp, fadeIn, fadeOut, pulse, bounce, spin */

/* --- Social XP Item (Discord + Roblox combined) --- */
/* Style simple, cohÃ©rent avec les autres items */

/* --- XP Total Info --- */
.xp-total-info {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0.05)
  );
  border-radius: 10px;
  border: 1px dashed rgba(16, 185, 129, 0.3);
  text-align: center;
}

.xp-total-info small {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.xp-total-info strong {
  color: #10b981;
}

/* --- Grades Section Labels --- */

/* --- Final Grade (Certified) --- */
.grade-step.final-grade .grade-dot.certified {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.grade-step.final-grade .grade-content strong {
  color: #10b981;
}

/* --- Bonus Grades --- */
/* =========================================
   SYSTÃˆME V2 - INFO CARDS
   ========================================= */

/* --- Info Cards Grid --- */

/* --- V2 Card Base --- */

/* V2 Badges - Style unifiÃ© doux */
.points-badge,
.studs-badge,
.shop-badge {
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 70px;
  justify-content: center;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.points-badge {
  color: var(--primary-accent);
}

.studs-badge,
.shop-badge {
  color: #4b5563;
}

.studs-badge i,
.shop-badge i {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

/* Les badges studs/shop restent gris - pas de variantes colorÃ©es */

/* ============================================
   BOUTIQUE V2 - LEARNBLOX STYLE!
   ============================================ */

/* --- Shop Page Container --- */
.shop-page {
  padding: 2rem !important;
}

/* --- Shop Header V2 --- */
.shop-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.shop-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shop-title-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #7c3aed 100%);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.shop-title-icon i {
  width: 28px;
  height: 28px;
}

.shop-header-left h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-header-left p {
  margin: 0.25rem 0 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.shop-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Balance Card V2 */
.balance-card-v2 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .balance-card-v2 {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #4b5563;
}

.balance-value i {
  width: 24px;
  height: 24px;
  color: #9ca3af;
}

/* --- Shop Category --- */
.shop-category {
  margin-bottom: 2.5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon i {
  width: 22px;
  height: 22px;
}

.category-icon.advantage {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.category-icon.mystery {
  background: rgba(251, 191, 36, 0.15);
  color: #f59e0b;
}

.category-icon.cosmetic {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.category-info h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headings);
}

.category-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Shop Grid --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* --- Shop Card --- */
.shop-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-accent);
}

/* Featured Card */
.shop-card.featured {
  border: 2px solid var(--primary-accent);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.03) 0%,
    rgba(168, 85, 247, 0.03) 100%
  );
}

.featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #7c3aed 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 0 20px 0 12px;
}

/* Mystery Card */
.shop-card.mystery-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.05) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
}

.mystery-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.2) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  animation: mysteryPulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes mysteryPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Cosmetic Card */
.shop-card.cosmetic-card {
  border: 2px solid #ec4899;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.03) 0%,
    rgba(219, 39, 119, 0.03) 100%
  );
}

/* Coming Soon */
.shop-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.shop-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

/* Card Icon */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-icon i {
  width: 28px;
  height: 28px;
}

.card-icon.advantage {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.card-icon.boost {
  background: linear-gradient(135deg, var(--primary-accent) 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.card-icon.mystery {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.card-icon.cosmetic {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.card-icon.disabled {
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* Card Content */
.card-content {
  margin-bottom: 1rem;
}

.card-content h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-headings);
}

.card-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  margin-top: auto;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #4b5563;
}

.card-price i {
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.card-price.muted {
  color: var(--text-muted);
}

/* --- Inventory Section V2 --- */

.inventory-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inventory-title i {
  width: 24px;
  height: 24px;
  color: var(--primary-accent);
}

.inventory-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-headings);
}

.inventory-count {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Inventory Empty State V2 */

.empty-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-content);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-icon i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .shop-header-v2 {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .shop-header-left {
    flex-direction: column;
    align-items: center;
  }

  .shop-header-left > div {
    text-align: center;
  }

  .shop-header-left h2,
  .shop-header-left p {
    text-align: center;
  }

  .shop-header-right {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .balance-card-v2 {
    width: 100%;
    max-width: 200px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-category {
    text-align: center;
  }

  .category-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .category-info {
    text-align: center;
  }

  .category-info h3,
  .category-info p {
    text-align: center;
  }

  .shop-card-v2 {
    max-width: 100%;
  }
}

/* ============================================
   INVENTAIRE V2 - LEARNBLOX STYLE CARDS
   ============================================ */

/* Card Header */
.inv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inv-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.inv-card-icon i {
  width: 26px;
  height: 26px;
}

.inv-card-icon.advantage {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.inv-card-icon.boost {
  background: linear-gradient(135deg, var(--primary-accent) 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.inv-card-icon.mystery {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.inv-card-icon.cosmetic {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}

.inv-card-icon.default {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

/* Quantity Badge */
.inv-quantity-badge {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .inv-quantity-badge {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #334155;
}

/* Card Body */
.inv-card-body {
  text-align: center;
  padding: 0.25rem 0;
}

.inv-card-body h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-headings);
}

.inv-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Card Footer */
.inv-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* Status Badge */
.inv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.inv-status-badge i {
  width: 12px;
  height: 12px;
}

.inv-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  animation: pulse-glow 2s ease-in-out infinite;
}

.inv-status-badge.quiz {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

/* Cosmetic active badge */
.inv-status-badge.cosmetic {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(236, 72, 153, 0);
  }
}

/* Time remaining badge */
.inv-quantity-badge.time {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.inv-quantity-badge.time i {
  width: 12px;
  height: 12px;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* Action Button */
.btn-inv-action {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-inv-action i {
  width: 16px;
  height: 16px;
}

.btn-inv-action.primary {
  background: linear-gradient(135deg, var(--primary-accent) 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-inv-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.btn-inv-action.extend {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 2px solid #10b981;
}

.btn-inv-action.extend:hover {
  background: #10b981;
  color: white;
}

.btn-inv-action:disabled {
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-inv-action:disabled:hover {
  transform: none;
}

@media (max-width: 600px) {
  .inv-card-icon {
    width: 44px;
    height: 44px;
  }

  .inv-card-icon i {
    width: 22px;
    height: 22px;
  }

  .inv-card-body h4 {
    font-size: 1rem;
  }
}
/* --- Shop Card V2 (Fix for Corruption) --- */
.shop-card-v2 {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
}

.shop-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-accent);
}

/* Featured Card */
.shop-card-v2.featured {
  border: 2px solid var(--primary-accent);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.03) 0%,
    rgba(168, 85, 247, 0.03) 100%
  );
}

/* Mystery Card */
.shop-card-v2.mystery-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.05) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
}

/* Cosmetic Card */
.shop-card-v2.cosmetic-card {
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.shop-card-v2.cosmetic-card:hover {
  border-color: #ec4899;
  box-shadow: 0 20px 40px -10px rgba(236, 72, 153, 0.2);
}

/* Coming Soon */
.shop-card-v2.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--bg-alt);
  border-style: dashed;
}

.shop-card-v2.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

/* ============================================
   FIX: BOUTON PANIER DANS LES CARDS SHOP
   ============================================ */
.card-footer .btn-buy {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-footer .btn-buy i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card-footer .btn-buy:hover:not(:disabled) {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
  transform: scale(1.05);
}

.card-footer .btn-buy:disabled {
  opacity: 0.4;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.card-footer .btn-buy.mystery-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  color: white;
}

.card-footer .btn-buy.mystery-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ============================================
   FIX: INVENTAIRE SECTION & GRID (sans -v2)
   ============================================ */
.inventory-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.inventory-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inventory-title i {
  width: 24px;
  height: 24px;
  color: var(--primary-accent);
}

.inventory-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-headings);
}

.inventory-count {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Inventory Empty State */
.inventory-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border: 2px dashed var(--border-color);
  text-align: center;
}

.inventory-empty .empty-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-content);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.inventory-empty .empty-icon i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.inventory-empty p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--text-secondary);
}

.inventory-empty small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Inventory Card (match JS generated classes) */
.inventory-card {
  background: var(--bg-content);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.inventory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-accent);
}

.inventory-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inventory-card:hover::before {
  opacity: 1;
}

.inventory-card.cosmetic-card {
  border-color: rgba(236, 72, 153, 0.3);
}

.inventory-card.cosmetic-card:hover {
  border-color: #ec4899;
}

.inventory-card.orblox-card {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.05) 0%,
    rgba(217, 119, 6, 0.05) 100%
  );
}

.inventory-card.orblox-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 12px 30px -8px rgba(251, 191, 36, 0.25);
}

/* Action Button Styles */
.btn-inv-action {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-inv-action i {
  width: 16px;
  height: 16px;
}

.btn-inv-action:hover:not(:disabled) {
  background: var(--bg-body);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.btn-inv-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-inv-action.primary {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
}

.btn-inv-action.primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-inv-action.extend {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
  color: white;
}

.btn-inv-action.extend:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Status Badge */
.inv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.inv-status-badge i {
  width: 14px;
  height: 14px;
}

.inv-status-badge.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.inv-status-badge.quiz {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.inv-status-badge.active.cosmetic {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* Quantity Badge (time version) */
.inv-quantity-badge.time {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.inv-quantity-badge.time i {
  width: 12px;
  height: 12px;
}

@media (max-width: 768px) {
  .inventory-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .inventory-card {
    padding: 1rem;
  }

  .inv-card-icon {
    width: 44px;
    height: 44px;
  }

  .inv-card-icon i {
    width: 22px;
    height: 22px;
  }

  .inv-card-body h4 {
    font-size: 1rem;
  }
}

/* ============================================
   DUEL ARENA - BATTLE STYLES
   ============================================ */

/* Player Column in VS screen */
.duel-player-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.duel-player-level {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Bet Info Badge */
.duel-bet-info {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.duel-bet-info i {
  width: 18px;
  height: 18px;
}

.duel-potential-win {
  color: #22c55e;
  font-weight: 700;
}

/* Countdown Animation */
.duel-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1rem;
}

.countdown-number {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary-accent);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  animation: pulse 0.5s ease-in-out;
}

.duel-countdown p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Battle Screen */
.duel-battle-screen {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Battle Header with Scores */
.duel-battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 16px;
  gap: 1rem;
}

.duel-player-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.duel-player-score.opponent {
  flex-direction: row-reverse;
}

.score-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-accent);
  overflow: hidden;
  font-weight: bold;
  color: var(--primary-accent);
}

.score-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-avatar.opponent {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.score-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.score-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.score-points {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-accent);
  transition: all 0.3s ease;
}

.score-points.score-up {
  transform: scale(1.2);
  color: #22c55e;
}

.duel-player-score.opponent .score-points {
  color: #ef4444;
}

/* Timer */
.duel-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.duel-question-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.duel-timer {
  position: relative;
  width: 60px;
  height: 60px;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 3;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--primary-accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Question Container */
.duel-question-container {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.duel-question-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Options Grid */
.duel-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.duel-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.duel-option-btn:hover:not(:disabled) {
  border-color: var(--primary-accent);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.duel-option-btn:disabled {
  cursor: default;
}

.duel-option-btn.correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.duel-option-btn.correct .option-letter {
  background: #22c55e;
  color: white;
}

.duel-option-btn.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.duel-option-btn.incorrect .option-letter {
  background: #ef4444;
  color: white;
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-content);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.option-text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Answer Status */
.duel-answer-status {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 12px;
}

.answer-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.answer-indicator i {
  width: 18px;
  height: 18px;
}

.answer-indicator.correct {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.answer-indicator.incorrect {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.answer-indicator.timeout {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* Result Screen */
.duel-result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

.result-banner {
  text-align: center;
}

.result-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.duel-result-screen.victory .result-banner h2 {
  color: #22c55e;
}

.duel-result-screen.defeat .result-banner h2 {
  color: #ef4444;
}

.duel-result-screen.draw .result-banner h2 {
  color: #f59e0b;
}

/* Result Scores */
.result-scores {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
}

.result-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.result-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-accent);
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-accent);
}

.result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-avatar.opponent {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.result-player.winner .result-avatar {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.result-name {
  font-weight: 600;
  color: var(--text-primary);
}

.result-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.result-player.winner .result-score {
  color: #22c55e;
}

.winner-badge {
  position: absolute;
  top: -15px;
  font-size: 1.5rem;
  animation: bounce 1s ease infinite;
}

.result-vs {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Result Rewards */
.result-rewards {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  font-weight: 700;
  color: #a855f7;
  font-size: 1.1rem;
}

.result-rewards i {
  width: 20px;
  height: 20px;
}

/* Result Stats */
.result-stats {
  display: flex;
  gap: 2rem;
}

.result-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.result-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-stats .stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 0.3s ease;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .duel-battle-header {
    flex-direction: column;
    gap: 1rem;
  }

  .duel-player-score {
    width: 100%;
    justify-content: center;
  }

  .duel-player-score.opponent {
    flex-direction: row;
  }

  .duel-options-grid {
    grid-template-columns: 1fr;
  }

  .duel-question-container {
    padding: 1.5rem;
  }

  .result-scores {
    flex-direction: column;
    gap: 1rem;
  }

  .result-vs {
    order: 0;
  }

  .result-player.user {
    order: -1;
  }
}

/* ============================================
   BATTLE ARENA V2 STYLES
   ============================================ */
/* REMOVED */
