/* ===== MODALE TYPES DE JEU ===== */
.game-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.game-modal-overlay.active .game-modal-container {
  transform: scale(1);
}

/* ===== MODAL DE SÉLECTION DE GRILLES ===== */
.grid-selection-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.grid-modal-header {
  text-align: center;
  margin-bottom: 0;
}

.grid-modal-header h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mode-icon {
  font-size: 3rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.mode-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.grid-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.grid-type-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.grid-type-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .grid-selection-container {
    padding: 20px;
    gap: 20px;
  }

  .grid-modal-header h2 {
    font-size: 2rem;
    gap: 10px;
  }

  .mode-icon {
    font-size: 2.5rem;
  }

  .mode-subtitle {
    font-size: 1rem;
  }

  .grid-options {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }

  .grid-type-card {
    max-width: 100%;
    padding: 20px;
  }

  .grid-preview h4 {
    font-size: 1.1rem;
  }

  .grid-preview p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .grid-selection-container {
    padding: 15px;
    gap: 15px;
  }

  .grid-modal-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 5px;
  }

  .mode-icon {
    font-size: 2rem;
  }

  .mode-subtitle {
    font-size: 0.9rem;
  }

  .grid-type-card {
    padding: 15px;
  }

  .grid-visual {
    padding: 6px;
  }

  /* ✅ SPÉCIFIQUE aux previews dans les modals (media query) */
  .grid-visual .grid-cell {
    width: 10px;
    height: 10px;
  }

  .small-grid {
    width: 50px;
  }

  .medium-grid {
    width: 65px;
  }

  .large-grid {
    width: 80px;
  }
}

.grid-preview h4 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin: 15px 0 8px 0;
}

.grid-preview p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.grid-visual {
  display: grid;
  gap: 2px;
  margin: 0 auto 15px;
  background: var(--light-blue);
  padding: 8px;
  border-radius: 8px;
  width: fit-content;
}

.small-grid {
  grid-template-columns: repeat(3, 1fr);
  width: 60px;
}

.medium-grid {
  grid-template-columns: repeat(4, 1fr);
  width: 80px;
}

.large-grid {
  grid-template-columns: repeat(5, 1fr);
  width: 100px;
}

/* ✅ SPÉCIFIQUE aux previews de grilles dans les modals */
.grid-visual .grid-cell {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 2px;
}

.game-bubble {
  background: linear-gradient(
    145deg,
    var(--secondary-blue) 0%,
    var(--primary-blue) 100%
  );
  border-radius: 6px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) scale(0.5);
}

.game-bubble.animate {
  opacity: 1;
  transform: translateY(0);
}

.game-bubble:nth-child(1) {
  animation-delay: 0.1s;
}
.game-bubble:nth-child(2) {
  animation-delay: 0.2s;
}
.game-bubble:nth-child(3) {
  animation-delay: 0.3s;
}
.game-bubble:nth-child(4) {
  animation-delay: 0.4s;
}

.game-bubble:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--sky-blue);
}

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

.game-bubble:hover::before {
  left: 100%;
}

.game-icon {
  font-size: 60px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (min-width: 768px) and (max-width: 1199px) {
  .game-modal-container {
    gap: 30px;
    padding: 30px;
  }

  .game-bubble {
    width: 130px;
    height: 130px;
  }

  .game-icon {
    font-size: 50px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767px) {
  .game-modal-container {
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    justify-content: center;
  }

  .game-bubble {
    width: 110px;
    height: 110px;
  }

  .game-icon {
    font-size: 40px;
  }

  .close-modal {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.3) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.game-bubble.animate {
  animation: bubbleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ===== COULEURS SPÉCIFIQUES PAR MODE ===== */
.game-bubble.solo {
  background: linear-gradient(
    145deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
}

.game-bubble.chrono {
  background: linear-gradient(
    145deg,
    var(--primary-yellow) 0%,
    var(--secondary-yellow) 100%
  );
}

.game-bubble.chrono .game-title,
.game-bubble.chrono .game-description,
.game-bubble.chrono .game-features li {
  color: var(--black);
}

.game-bubble.amis {
  background: linear-gradient(
    145deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
}

.game-bubble.tournoi {
  background: linear-gradient(
    145deg,
    var(--orange-gold) 0%,
    var(--pure-gold) 100%
  );
}

.game-bubble.tournoi .game-title,
.game-bubble.tournoi .game-description,
.game-bubble.tournoi .game-features li {
  color: var(--black);
}

/* ===== MODALE SÉLECTION DE GRILLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(
    145deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: var(--white);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 30px;
}

.grid-selection-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.grid-type-card {
  background: var(--white);
  border: 3px solid var(--light-blue);
  border-radius: 15px;
  padding: 25px;
  min-width: 180px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
}

.grid-type-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.grid-type-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.grid-type-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.grid-type-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.grid-size {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--secondary-blue);
}

.grid-subtitle {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
}

.time-limit {
  font-size: 0.9rem;
  color: var(--primary-yellow);
  font-weight: bold;
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px;
  }

  .grid-selection-container {
    flex-direction: column;
    gap: 15px;
  }

  .grid-type-card {
    min-width: auto;
    padding: 20px;
  }

  .grid-type-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .grid-type-title {
    font-size: 1.1rem;
  }
}

/* ===== NOUVEAU DESIGN PAGES MODE ===== */
.page-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  border-radius: 0 0 25px 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.title-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

/* Statistics Dashboard */
.stats-dashboard {
  margin: 0 20px 30px 20px;
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stats-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin: 0;
}

.stats-loading {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-blue);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
  border: 2px solid var(--light-blue);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0.7;
  transform: translateY(10px);
}

.stat-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* Couleurs spécifiques par carte */
.games-card {
  border-left: 4px solid #4caf50;
}
.score-card {
  border-left: 4px solid #ff9800;
}
.average-card {
  border-left: 4px solid #2196f3;
}
.level-card {
  border-left: 4px solid #9c27b0;
}
.time-card {
  border-left: 4px solid #ff5722;
}
.speed-card {
  border-left: 4px solid #ffeb3b;
}

/* Action Section */
.action-section {
  text-align: center;
  padding: 0 20px 30px 20px;
}

.action-content {
  max-width: 500px;
  margin: 0 auto;
}

.action-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin: 0 0 10px 0;
}

.action-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin: 0 0 25px 0;
}

.play-button {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.play-button:active {
  transform: translateY(-1px);
}

.button-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.button-text {
  position: relative;
  z-index: 2;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.play-button:hover .button-shine {
  left: 100%;
}

/* Styles spécifiques pour la page chrono */
.chrono-header {
  background: linear-gradient(
    135deg,
    var(--primary-yellow) 0%,
    var(--secondary-yellow) 100%
  );
}

.chrono-header .page-title,
.chrono-header .page-subtitle {
  color: var(--black);
}

.chrono-button {
  background: linear-gradient(
    135deg,
    var(--primary-yellow) 0%,
    var(--secondary-yellow) 100%
  );
  color: var(--black);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.chrono-button:hover {
  box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 2rem;
    gap: 10px;
  }

  .title-icon {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .stats-dashboard {
    margin: 0 15px 20px 15px;
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .stat-value {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .action-section {
    padding: 0 15px 30px 15px;
  }

  .action-title {
    font-size: 1.3rem;
  }

  .play-button {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 10px;
    border-radius: 12px;
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stats-dashboard {
    margin: 0 10px 15px 10px;
    padding: 12px;
  }

  .stats-header {
    margin-bottom: 15px;
  }

  .stats-title {
    font-size: 1.2rem;
  }
}

/* ===== STYLES BULLES VERROUILLÉES ===== */
.game-bubble.locked {
  background: linear-gradient(145deg, #6c757d 0%, #495057 100%);
  border-color: #adb5bd;
  cursor: not-allowed;
  position: relative;
  opacity: 0.7;
}

.game-bubble.locked:hover {
  transform: translateY(0) scale(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  border-color: #adb5bd;
}

.game-bubble.locked .lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.game-bubble.locked .upgrade-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

/* ===== MODAL D'UPGRADE ===== */
.upgrade-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.upgrade-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.upgrade-modal-container {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.upgrade-modal-overlay.active .upgrade-modal-container {
  transform: scale(1);
}

.close-upgrade-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-upgrade-modal:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--black);
}

.upgrade-content {
  padding: 40px 30px 30px 30px;
  text-align: center;
}

.upgrade-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.upgrade-content h2 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 15px 0;
}

.upgrade-content p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 30px 0;
}

.upgrade-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-upgrade {
  background: linear-gradient(
    135deg,
    var(--orange-gold) 0%,
    var(--pure-gold) 100%
  );
  color: var(--black);
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-upgrade:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

.btn-cancel {
  background: transparent;
  color: var(--gray);
  border: 2px solid var(--light-blue);
  border-radius: 50px;
  padding: 13px 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Responsive pour modal upgrade */
@media (max-width: 768px) {
  .upgrade-modal-container {
    width: 95%;
    margin: 20px;
  }

  .upgrade-content {
    padding: 30px 20px 25px 20px;
  }

  .upgrade-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .upgrade-content h2 {
    font-size: 1.5rem;
  }

  .upgrade-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .upgrade-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-upgrade,
  .btn-cancel {
    width: 100%;
    justify-content: center;
  }
}
