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

/* Адаптация под светлую тему */
.bg-dark {
  background: #8863c4 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark:nth-child(2n) {
  background: #708dd5 !important;
}

.bg-dark:nth-child(3n) {
  background: #a867c3 !important;
}

.bg-dark:nth-child(4n) {
  background: #3a77e1 !important;
}

.bg-light {
  background: var(--light) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bg-light,
.bg-light *,
.bg-light .card-title,
.bg-light .card-text,
.bg-light p,
.bg-light h3,
.bg-light h4,
.bg-light li {
  color: #000000 !important;
}

/* Карточки бонусов */
.bonus-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

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

.bonus-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #fd8b0f;
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bonus-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: #fd8b0f;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Таблица условий */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.table {
  color: var(--text);
  margin-bottom: 0;
}

.table thead {
  background: #fd8b0f;
  color: white;
  border-bottom: 3px solid #fd8b0f;
}

.table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.table td, .table th {
  padding: 1rem;
  vertical-align: middle;
}

/* Процесс получения бонуса */
.steps-container {
  position: relative;
  padding-left: 2rem;
}

.step-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: #fd8b0f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(180deg, #fd8b0f 0%, transparent 100%);
}

.step-item:last-child::before {
  display: none;
}

/* Типы бонусов */
.bonus-type-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

/* Кнопки */
.btn-primary {
  background: #fd8b0f;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Highlight блоки */
.highlight-box {
  background: var(--light);
  border-left: 4px solid #fd8b0f;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.highlight-box,
.highlight-box *,
.highlight-box h3,
.highlight-box h5,
.highlight-box p,
.highlight-box li,
.highlight-box ul {
  color: #000000 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .bonus-value {
    font-size: 2rem;
  }
  
  .step-item {
    padding-left: 2rem;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}