/* Адаптация под светлую тему сайта */
.bg-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 100%) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.card.bg-light {
  background-color: var(--light-card) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(0,0,0,0.1);
}

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

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255,255,255,0.05);
}

.commission-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  margin: 0.5rem 0;
}

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

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.highlight-box {
  background: var(--gradient-3);
  padding: 2rem;
  border-radius: 10px;
  color: white;
  margin: 2rem 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
}

.table-responsive table {
  margin: 0;
  min-width: 100%;
}

@media (max-width: 768px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .table-responsive::-webkit-scrollbar {
    height: 8px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background: var(--light);
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
  }

  .table {
    font-size: 0.9rem;
  }

  .table thead th,
  .table tbody td {
    padding: 10px 8px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .table {
    font-size: 0.85rem;
  }

  .table thead th,
  .table tbody td {
    padding: 8px 6px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}