/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация к темной теме */
.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);
}

.card {
  background: var(--dark-card);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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-hover-bg: var(--dark-lighter);
}

.table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-bottom: 2px solid var(--accent);
}

.table thead th {
  color: #ffffff;
  font-weight: 600;
  border: none;
}

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

.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.payment-icon {
  width: 60px;
  height: 40px;
  background: var(--dark-lighter);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.feature-box {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--dark-card);
  border: 1px solid var(--border-color);
  height: 100%;
}

.feature-box h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.alert-info {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  margin-right: 1rem;
}