/* Protezione da scroll orizzontale */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Adattamento tema scuro */
.bg-light {
  background-color: var(--dark-alt) !important;
  color: var(--text) !important;
}

.card {
  background: var(--dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.table {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-dark {
  --bs-table-bg: var(--dark-alt);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: var(--primary);
  color: white;
  border-bottom: 2px solid var(--primary-dark);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-level {
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--dark-alt) 0%, var(--dark) 100%);
}

.vip-level.bronze {
  border-color: #CD7F32;
  box-shadow: 0 4px 20px rgba(205, 127, 50, 0.2);
}

.vip-level.silver {
  border-color: #C0C0C0;
  box-shadow: 0 4px 20px rgba(192, 192, 192, 0.2);
}

.vip-level.gold {
  border-color: #FFD700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.vip-level.platinum {
  border-color: #E5E4E2;
  box-shadow: 0 4px 20px rgba(229, 228, 226, 0.3);
}

.vip-level.diamond {
  border-color: #B9F2FF;
  box-shadow: 0 4px 20px rgba(185, 242, 255, 0.3);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.stats-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--dark-alt);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-vip {
  background: var(--gradient-1);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
}

.progress-tracker {
  background: var(--dark-alt);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.progress-bar-custom {
  height: 8px;
  background: var(--dark);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 10px;
  transition: width 0.3s ease;
}