/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%, #0a0a0a 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.app-container {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header et barre de recherche */
.header {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
  width: 100%;
  margin-bottom: 12px;
}

.search-bar {
  width: 100%;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 16px;
  outline: none;
  color: #ffffff;
  font-weight: 500;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.search-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cart-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
}

.cart-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cart-count {
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B6B 100%);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

/* Contenu principal */
.main-content {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.user-info {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.promotion-badge {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.username {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
}

/* Section Solde */
.balance-section {
  margin-bottom: 24px;
}

.balance-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.balance-header h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.add-money-btn {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-money-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.balance-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.currency {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-right: 4px;
}

.amount {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Courier New', monospace;
}

.balance-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-item:last-child {
  border-bottom: none;
}

.balance-item .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.balance-item .value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Section des cartes */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cards-section h2 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.cards-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 26px;
  font-weight: 500;
}

.buy-cards-btn {
  background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-cards-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.3);
}

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

.credit-card {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  height: 240px;
  margin: 0 auto;
  aspect-ratio: 1.7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.credit-card.selected {
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
  transform: translateY(-4px) scale(1.01);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.cart-btn-fixed {
  position: fixed;
  bottom: 60px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  transform: none;
  z-index: 1000;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInFromBottom 0.3s ease-out;
}

.cart-btn-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.5);
}

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

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-btn-fixed .cart-count {
  background: #FF3B30;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.credit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-card.selected:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 1);
}


.credit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.card-type {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.bank-logo {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-logo.bnp-paribas {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  color: white;
}

.bank-logo.credit-agricole {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: white;
}

.bank-logo.societe-generale {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: white;
}

.bank-logo.lcl {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  color: white;
}

.card-number {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
}

.card-details {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
  opacity: 0.9;
}

.card-details > div {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  backdrop-filter: blur(5px);
}


.card-price {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  position: relative;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  margin-right: 4px;
}

.discounted-price {
  color: #34C759;
  font-weight: 800;
  font-size: 14px;
}

.discount-badge {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
  box-shadow: 0 1px 4px rgba(255, 107, 107, 0.3);
}

/* Section panier */
.cart-section {
  margin-top: 24px;
}

.cart-section h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.cart-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cart-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  padding: 40px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-details h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.cart-item-details p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.cart-item-price {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.cart-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: 40px;
  margin-top: 20px;
}

.cart-actions .btn-primary,
.cart-actions .btn-secondary {
  flex: 1;
  max-width: 200px;
}

/* Styles pour les groupes de cartes dans le panier */
.cart-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-group:last-child {
  margin-bottom: 0;
}

.cart-group-info {
  flex: 1;
}

.cart-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.cart-group-header h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cart-group-count {
  background: #007AFF;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-group-levels {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.cart-group-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-group-price {
  color: #34C759;
  font-size: 18px;
  font-weight: 700;
}

.remove-group-btn {
  background: rgba(255, 59, 48, 0.2);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-group-btn:hover {
  background: rgba(255, 59, 48, 0.3);
  border-color: rgba(255, 59, 48, 0.5);
  transform: scale(1.1);
}


/* Modal de filtres */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Masquer la scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE et Edge */
}

.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px 24px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

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

.modal-body {
  padding: 24px;
}

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

.filter-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffffff;
  font-size: 16px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #007AFF;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.filter-group select option {
  background: #1d1d1f;
  color: #ffffff;
}


.modal-footer {
  padding: 24px;
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 480px) {
  .search-container {
    margin-bottom: 8px;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .credit-card {
    max-width: 360px;
    height: 220px;
  }
  
  .card-number {
    font-size: 18px;
    letter-spacing: 2px;
  }
  
  .main-content {
    padding: 16px 12px;
  }
  
  .card-details {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 10px;
  }
  
  .card-details > div {
    font-size: 10px;
    padding: 3px 5px;
  }
  
  .card-price {
    font-size: 12px !important;
    padding: 4px 6px !important;
  }
  
  .cart-btn-fixed {
    bottom: 40px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .app-container {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  }
  
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.credit-card {
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* États spéciaux */
.credit-card.blocked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.credit-card.blocked .card-status {
  background: rgba(231, 76, 60, 0.8);
}

/* Modal Crypto */
.crypto-modal-content {
  max-width: 500px;
  width: 90%;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  /* Masquer la scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE et Edge */
}

.crypto-modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.crypto-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  /* Masquer la scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE et Edge */
}

.crypto-modal-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.crypto-selection {
  margin-bottom: 16px;
}

.crypto-selection h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.crypto-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.crypto-select:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.crypto-select:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.crypto-select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px;
}

.network-selection {
  margin-top: 12px;
}

.network-selection h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.network-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.network-select:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.network-select:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.network-select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px;
}

.crypto-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-code-container h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.qr-code {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  color: #333;
  opacity: 0.5;
}

.crypto-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crypto-address {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  word-break: break-all;
  margin: 0;
}

.copy-btn {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.crypto-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.crypto-warning p {
  color: #ffffff;
  font-size: 11px;
  margin: 0;
}

.crypto-warning strong {
  color: #FFC107;
}

/* Modal Acheter des cartes */
.buy-cards-info {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

.buy-cards-info p {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.quantity-selection {
  margin-bottom: 20px;
}

.quantity-selection h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.quantity-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.quantity-btn.active {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border-color: #007AFF;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.price-summary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
  border-bottom: none;
}

.price-item.total {
  font-weight: 700;
  font-size: 18px;
  color: #34C759;
  border-top: 2px solid rgba(52, 199, 89, 0.3);
  margin-top: 8px;
  padding-top: 12px;
}

.price-item .label {
  color: rgba(255, 255, 255, 0.8);
}

.price-item .value {
  color: #ffffff;
  font-weight: 600;
}

.card-levels-selection {
  margin-bottom: 20px;
}

.card-levels-selection h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.levels-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 16px;
}

.level-sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.level-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-slider label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-slider-input {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.level-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.level-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.slider-value {
  color: #007AFF;
  font-size: 14px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

.total-percentage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
}

.total-percentage .label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.total-percentage .value {
  color: #34C759;
  font-size: 16px;
  font-weight: 700;
}

.buy-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  flex: 2;
  background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.3);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* Styles pour le code antiscam */
.code-value {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}