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

/* Adattamento tema scuro */
.bg-light {
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-lighter) 100%) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
  --bs-table-color: var(--text-primary);
}

.table thead {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-electric) 100%);
  border-bottom: 2px solid var(--accent-coral);
  color: var(--text-light);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.vip-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-bottom: 1rem;
}

.level-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
}

.level-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-lg);
}

.level-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-item {
  padding: 1rem;
  background: var(--dark-card);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-coral);
  transition: var(--transition);
}

.benefit-item:hover {
  background: var(--dark-lighter);
  transform: translateX(5px);
}

.progress-bar-custom {
  height: 8px;
  background: var(--dark-lighter);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  transition: width 0.5s ease;
}

.cta-vip {
  background: var(--gradient-card);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
  border: 2px solid var(--accent-coral);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}