/* ========================================
   PROFILE PAGE - OPTIPLAY (COMPLETE)
   CSS complet pour toute la page profil
   ======================================== */

/* ==================== VARIABLES ==================== */
:root {
  --bg-dark: #0a0f1e;
  --bg-card: rgba(20, 25, 40, 0.8);
  --primary-color: #00d4ff;
  --secondary-color: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-color: rgba(0, 212, 255, 0.2);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.profile-main {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 4rem;
}

.profile-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ==================== HEADER PROFIL ==================== */
.profile-header {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.9), rgba(15, 20, 35, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.profile-header-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.4);
}

.btn-change-avatar {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-change-avatar:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.profile-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-member {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 146, 60, 0.2));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.badge-date {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ==================== STATISTIQUES ==================== */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.stat-card-plan {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.1));
  border: 2px solid rgba(124, 58, 237, 0.4);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.stat-card-plan[data-plan="beginner"] {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.4);
}

.stat-card-plan[data-plan="advanced"] {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(139, 92, 246, 0.4);
}

.stat-card-plan[data-plan="premium"] {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
  border-color: rgba(245, 158, 11, 0.4);
}

.stat-card-plan:hover {
  border-color: rgba(124, 58, 237, 0.8);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.stat-card {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.8), rgba(15, 20, 35, 0.6));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.btn-upgrade {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-upgrade:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.stat-icon-plan {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4));
  color: #10b981;
  font-size: 2rem;
}

.stat-info {
  flex: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==================== SECTIONS ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2 i {
  color: var(--primary-color);
}

/* ==================== BOUTONS ==================== */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0038ff, #00d4ff);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 56, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 56, 255, 0.5);
  background: linear-gradient(135deg, #0044ff, #00e0ff);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

/* ==================== FILTRES ==================== */
.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: white;
}

/* ==================== MES ACHATS ==================== */
.my-purchases {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.6), rgba(15, 20, 35, 0.4));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.purchase-card {
  background: linear-gradient(145deg, rgba(30, 35, 50, 0.8), rgba(20, 25, 40, 0.6));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.purchase-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.purchase-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.purchase-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.purchase-content {
  padding: 1.5rem;
}

.purchase-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.purchase-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.purchase-category {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 600;
}

.purchase-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.purchase-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.purchase-actions {
  display: flex;
  gap: 0.75rem;
}

/* ==================== ÉTATS VIDES ==================== */
.no-purchases,
.no-history {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-purchases i,
.no-history i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-purchases h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.no-purchases p {
  margin-bottom: 2rem;
}

/* ==================== HISTORIQUE ==================== */
.download-history {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.6), rgba(15, 20, 35, 0.4));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

.history-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.history-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.history-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.history-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.history-time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== MES JEUX SECTION ==================== */
.my-games {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.6), rgba(15, 20, 35, 0.4));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.games-grid:has(.no-games:only-child) {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.game-card {
  background: linear-gradient(145deg, rgba(30, 35, 50, 0.8), rgba(20, 25, 40, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0038ff, #00d4ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 56, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 56, 255, 0.3);
}

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

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.game-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0038ff, #00d4ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 56, 255, 0.3);
}

.game-actions {
  display: flex;
  gap: 0.5rem;
}

.game-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.game-action-btn:hover {
  background: rgba(0, 56, 255, 0.2);
  border-color: rgba(0, 56, 255, 0.5);
  color: #00d4ff;
  transform: scale(1.1);
}

.game-action-btn.delete:hover {
  background: rgba(255, 51, 68, 0.2);
  border-color: rgba(255, 51, 68, 0.5);
  color: #ff3344;
}

.game-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.game-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(0, 56, 255, 0.2), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(0, 56, 255, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00d4ff;
  margin-top: 0.5rem;
}

.game-rank i {
  font-size: 0.8rem;
  color: #fbbf24;
}

.game-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.game-link:hover {
  background: rgba(0, 56, 255, 0.2);
  border-color: rgba(0, 56, 255, 0.5);
  color: #00d4ff;
  transform: translateX(3px);
}

.game-link i {
  font-size: 0.85rem;
}

.no-games {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.no-games:hover {
  border-color: rgba(0, 56, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.no-games i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  display: block;
}

.no-games h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.no-games p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.98), rgba(15, 20, 35, 0.95));
  border: 1px solid rgba(0, 56, 255, 0.4);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 650px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.modal-header h2 i {
  color: #0038ff;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(255, 51, 68, 0.2);
  border-color: rgba(255, 51, 68, 0.5);
  color: #ff3344;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem 0;
}

.modal-game .form-group {
  margin-bottom: 1.5rem;
}

.modal-game .form-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.modal-game .form-group label i {
  color: #0038ff;
  font-size: 1rem;
}

.modal-game input,
.modal-game select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.modal-game input:focus,
.modal-game select:focus {
  outline: none;
  border-color: #0038ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 56, 255, 0.15);
}

.modal-game input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.modal-game select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2300d4ff' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3rem;
}

.modal-game select:hover {
  border-color: rgba(0, 56, 255, 0.5);
}

.modal-game select option {
  background: #1a1f38;
  color: #fff;
  padding: 0.8rem;
  font-size: 1rem;
}

.modal-game small {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 120px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-main {
    padding-top: 80px;
  }

  .profile-header {
    padding: 2rem;
  }

  .profile-header-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card-plan {
    grid-column: 1;
  }
  
  .btn-upgrade {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 1rem;
  }
  
  .btn-upgrade:hover {
    transform: scale(1.05);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .purchases-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .history-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .my-games,
  .my-purchases,
  .download-history {
    padding: 1.5rem;
  }

  .game-card,
  .purchase-card {
    padding: 1.2rem;
  }

  .game-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .game-info h3 {
    font-size: 1.1rem;
  }

  .game-links {
    flex-direction: column;
  }

  .game-link {
    justify-content: center;
  }

  .modal-content {
    max-width: 100%;
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .game-card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .game-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-container {
    padding: 0 1rem;
  }
}
