/* Светлая современная тема для страницы аккаунтов */
:root {
  --color-bg-page: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f5f9;
  --color-border: #e5e7eb;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-accent: #2563eb;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
}

* { 
  box-sizing: border-box; 
}

/* Глобальное отключение всех псевдоэлементов в таблице */
table *::before,
table *::after,
.table *::before,
.table *::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}


html, body { height: 100%; }
body { 
  margin: 0; 
  color: var(--color-text-primary); 
  background: var(--color-bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Фиксированный хедер */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 64px; /* Унифицированная минимальная высота для всех страниц */
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px; /* Соответствует минимальной высоте хедера */
}

.header .title { font-size: 22px; font-weight: 700; }

/* Стили для страниц без дополнительных элементов в хедере */
.header-right:empty {
  min-height: 32px; /* Минимальная высота для выравнивания */
}
.header .hint { color: var(--color-text-secondary); }
.header .row { display:flex; align-items:center; gap: 10px; }
.header .header-right { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

/* Десктопная версия хедера */
.header-right .row {
  display: flex;
  align-items: center;
  gap: 16px;
}



.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}



/* Стили для селектора количества элементов */
.header-actions select {
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.header-actions select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.cart { display:flex; align-items:center; gap: 8px; font-weight:600; color: var(--color-text-primary); }
.cart .cart-icon { display:inline-flex; color: var(--color-accent); }
.cart .divider { color: var(--color-text-secondary); margin: 0 4px; }

/* Стили для кнопки поддержки */
.button.is-info { 
  background: #06b6d4; 
  border-color: #06b6d4; 
  color: white;
  display: flex;
  align-items: center;
}
.button.is-info:hover { 
  background: #0891b2; 
  border-color: #0891b2; 
}

.container { max-width: 1280px; margin: 0 auto; padding: 16px 20px; }

/* Единый футер на страницах */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 16px 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  color: var(--color-text-secondary);
  font-size: 11px;
  margin: 0;
  line-height: 1.2;
}

/* Адаптивные стили для футера */
@media (max-width: 768px) {
  .footer {
    padding: 12px 0;
  }
  
  .footer-links {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-link {
    font-size: 12px;
  }
  
  .footer-copyright {
    margin-top: 0;
  }
}

/* Обеспечиваем прижатие футера к низу */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Специальные стили для страниц с контентом */
.content-section {
  flex: 1;
}

/* Специальные стили для checkout страницы */
.checkout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-page .container {
  flex: 1;
  overflow: visible;
}

/* Стили для счетчика аккаунтов */
.accounts-count {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}

/* Стили для хлебных крошек в хедере */
.breadcrumb-separator {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 20px;
}

/* Стили для хлебных крошек */
.breadcrumb-container {
  display: flex;
  align-items: center;
}

.breadcrumb {
  font-size: 14px;
  margin: 0;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.breadcrumb .is-active a {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Переопределение стилей Bulma breadcrumb */
.breadcrumb.is-centered {
  justify-content: center;
}

.breadcrumb.is-right {
  justify-content: flex-end;
}

.breadcrumb.is-small {
  font-size: 0.75rem;
}

.breadcrumb.is-medium {
  font-size: 1.25rem;
}

.breadcrumb.is-large {
  font-size: 1.5rem;
}

.breadcrumb.has-arrow-separator li + li::before {
  content: "›";
}

.breadcrumb.has-bullet-separator li + li::before {
  content: "•";
}

.breadcrumb.has-dot-separator li + li::before {
  content: "·";
}

.breadcrumb.has-succeeds-separator li + li::before {
  content: "≻";
}



/* Адаптивные стили для хедера */
@media (max-width: 768px) {
  .header-container {
    padding: 8px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .header-right .row {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .breadcrumb {
    font-size: 12px;
  }
  
  .accounts-count {
    font-size: 12px;
  }
}

/* Стили для guide страницы */
.guide-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.guide-header h1 {
  color: var(--color-text-primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.guide-subtitle {
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}

.guide-video-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.guide-video-section h2 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-text-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.guide-text-section h2 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.guide-step {
  margin-bottom: 32px;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-step h3 {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-content {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.step-content p {
  margin-bottom: 16px;
}

.step-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.step-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.tip {
  background: #f0f8ff;
  border-left: 4px solid var(--color-accent);
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.parameter {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.parameter h4 {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.parameter p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.status-yes {
  color: #22c55e;
  font-weight: 600;
}

.status-no {
  color: #ef4444;
  font-weight: 600;
}

.status-valid {
  color: #22c55e;
  font-weight: 600;
}

.status-captcha {
  color: #eab308;
  font-weight: 600;
}

.status-logout {
  color: #3b82f6;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.link-muted {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-muted:hover {
  color: var(--color-text-primary);
}

.username-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.username-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.username-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.search-icon {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.search-icon:hover {
  opacity: 1;
}

.col-username {
  min-width: 150px;
  max-width: 200px;
}

tr.selected {
  background: rgba(37, 99, 235, 0.05) !important;
}

tr.selected:hover {
  background: rgba(37, 99, 235, 0.08) !important;
}

.price-minor {
  opacity: 0.7;
  font-size: 0.85em;
}

.hint {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.recommendation {
  border-radius: var(--radius-sm);
  padding: 20px;
}

.recommendation.good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.recommendation.caution {
  background: #fefce8;
  border: 1px solid #fde047;
}

.recommendation h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.recommendation.good h4 {
  color: #16a34a;
}

.recommendation.caution h4 {
  color: #ca8a04;
}

.recommendation ul {
  margin: 12px 0;
  padding-left: 20px;
}

.recommendation li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Новые стили для переработанного руководства */
.filter-category {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.filter-category h4 {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-details {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.filter-details p {
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.option {
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.checkbox-label {
  font-weight: 600;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 4px;
}

.description {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 6px;
}

.example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0;
}

.example strong {
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 8px;
}

.example ul {
  margin: 8px 0;
  padding-left: 20px;
}

.example li {
  margin-bottom: 4px;
  font-size: 14px;
}

.example code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
}

.status-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.status-option {
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.status-badge.valid {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge.captcha {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.status-badge.logout {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.sb-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.sb-option {
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.sb-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sb-badge.no {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.sb-badge.yes {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.price-note {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 3px;
}

.phone-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.phone-option {
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.phone-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.phone-badge.yes {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.phone-badge.no {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.selection-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.method {
  padding: 20px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.method h4 {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.method p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.random-sample-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.random-option {
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.limit-note {
  font-size: 12px;
  color: var(--color-danger);
  font-weight: 500;
  margin-top: 4px;
}

.cart-tracking {
  margin-top: 24px;
  padding: 20px;
  background: #f0f8ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
}

.cart-tracking h4 {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.cart-item .label {
  font-weight: 500;
  color: var(--color-text-primary);
}

.cart-item .value {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.checkout-step {
  padding: 20px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.checkout-step h4 {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-step p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.action {
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.action strong {
  color: var(--color-accent);
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.payment-option {
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.payment-option.disabled {
  opacity: 0.4;
  color: var(--color-text-secondary);
  background: var(--color-surface-2);
  border-color: #d1d5db;
  cursor: not-allowed;
}

.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.delivery-time,
.delivery-format,
.delivery-content {
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.purchase-examples {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0;
}

.example-scenario {
  padding: 24px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.example-scenario h4 {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.filter-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.filter-name {
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 80px;
}

.filter-value {
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 3px;
}

.filter-reason {
  color: var(--color-text-secondary);
  font-size: 14px;
  flex: 1;
}

.scenario-result {
  margin-top: 16px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
}

.scenario-result strong {
  color: #16a34a;
}

.recommendation li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.faq-item h4 {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cta-section {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.cta-section h3 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.cta-section .button {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  padding: 12px 24px;
  min-height: 48px;
}

.guide-footer {
  margin-top: 40px;
}

/* Стили для body guide страницы */
.guide-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guide-page-body .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Адаптивные стили для guide страницы */
@media (max-width: 768px) {
  .guide-page {
    padding: 16px 0;
  }
  
  .guide-header h1 {
    font-size: 24px;
  }
  
  .guide-subtitle {
    font-size: 16px;
  }
  
  .guide-video-section,
  .guide-text-section,
  .cta-section {
    padding: 16px;
  }
  
  .guide-footer {
    margin-top: 24px;
  }
  
  .guide-video-section h2,
  .guide-text-section h2,
  .cta-section h3 {
    font-size: 20px;
  }
  
  .guide-step h3 {
    font-size: 18px;
  }
  
  .button.is-large {
    font-size: 16px;
    padding: 14px 24px;
    min-height: 48px;
  }
  
  .parameters-grid {
    grid-template-columns: 1fr;
  }
  
  .recommendations {
    grid-template-columns: 1fr;
  }
}

.layout { 
  display: flex; 
  gap: 16px; 
  flex: 1;
}
.aside { flex: 0 0 280px; width: 280px; min-width: 280px; max-width: 280px; }
.content { flex: 1; display: flex; flex-direction: column; }
.aside .form .row { width: 100%; }
.aside .form .row .form-control { width: 100%; }
.aside .form .row input[type="number"] { width: 100%; }
.content { flex: 1; min-width: 0; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form { display:flex; flex-direction: column; gap: 12px; }
.form-group { display:flex; flex-direction: column; gap: 6px; }
.form-control {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
/* Адаптация Bulma под палитру проекта */
.button.is-primary { background: var(--color-accent); border-color: var(--color-accent); }
.button.is-danger { background: #ef4444; border-color: #ef4444; }
.button.is-light { background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-primary); }

.button.is-large {
  font-size: 18px;
  padding: 16px 32px;
  min-height: 56px;
}
.button.is-light:hover { filter: brightness(0.98); }

.table-wrap { 
  overflow: auto; 
  margin: 0 -12px;
  padding: 0 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  background: var(--color-surface);
  table-layout: fixed;
  flex: 1;
}
th, td { 
  padding: 10px 8px; 
  border-bottom: 1px solid var(--color-border); 
  text-align: left; 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Убираем точки и псевдоэлементы у чекбоксов */
input[type="checkbox"]::before,
input[type="checkbox"]::after {
  display: none !important;
  content: none !important;
}

/* Убираем стили Bulma для чекбоксов */
.checkbox::after,
.checkbox::before,
.radio::after,
.radio::before {
  display: none !important;
  content: none !important;
}

/* Агрессивное удаление точек от Bulma CSS */
.is-checkradio[type="checkbox"] + label::before,
.is-checkradio[type="checkbox"] + label::after,
.is-checkradio[type="radio"] + label::before,
.is-checkradio[type="radio"] + label::after {
  display: none !important;
  content: none !important;
}

/* Убираем точки от всех возможных checkbox стилей */
input[type="checkbox"] + label::before,
input[type="checkbox"] + label::after,
input[type="radio"] + label::before,
input[type="radio"] + label::after {
  display: none !important;
  content: none !important;
}

/* Отключаем все custom checkbox стили */
.custom-checkbox::before,
.custom-checkbox::after,
.custom-radio::before,
.custom-radio::after {
  display: none !important;
  content: none !important;
}

/* Убираем все возможные псевдоэлементы в ячейках таблицы */
td::after,
td::before {
  display: none !important;
  content: none !important;
}

/* Дополнительная очистка от Bulma и других CSS framework */
.table td::after,
.table td::before,
.table th::after,
.table th::before {
  display: none !important;
  content: none !important;
}

/* Убираем точки и другие артефакты */
input[type="checkbox"] + *::after,
input[type="checkbox"] + *::before,
label::after,
label::before {
  display: none !important;
  content: none !important;
}

/* Принудительная очистка всех псевдоэлементов в таблице */
#accounts-table *::before,
#accounts-table *::after {
  display: none !important;
  content: none !important;
}



/* Дополнительная агрессивная очистка точек */
td:first-child::after,
td:first-child::before,
th:first-child::after,
th:first-child::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Убираем все возможные точки от Bulma */
.table td:first-child::after,
.table td:first-child::before,
.table th:first-child::after,
.table th:first-child::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Убираем точки от любых CSS frameworks */
*[class*="table"] td:first-child::after,
*[class*="table"] td:first-child::before,
*[class*="table"] th:first-child::after,
*[class*="table"] th:first-child::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Принудительное удаление всех псевдоэлементов в первой колонке */
tbody tr td:first-child::after,
tbody tr td:first-child::before,
thead tr th:first-child::after,
thead tr th:first-child::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

th[data-sort] { cursor: pointer; }

/* Десктопные размеры колонок */
.col-username { 
  width: 25%; 
}

/* Специальные стили для колонки username с иконкой поиска */
.col-username,
th:nth-child(2), td:nth-child(2) {
  position: relative;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Контейнер для username и иконки поиска */
.username-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* Ссылка username с ellipsis */
.username-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Иконка поиска всегда справа */
.search-icon {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex !important;
  align-items: center;
}

th:nth-child(1), td:nth-child(1) { 
  width: 50px !important; 
  min-width: 50px !important;
  max-width: 50px !important;
  position: relative;
  flex-shrink: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
} /* чекбокс */

/* Специально убираем псевдоэлементы в первой колонке */
th:nth-child(1)::before,
th:nth-child(1)::after,
td:nth-child(1)::before,
td:nth-child(1)::after {
  display: none !important;
  content: none !important;
}

/* Убираем псевдоэлементы у чекбокса в первой колонке */
td:nth-child(1) input[type="checkbox"]::before,
td:nth-child(1) input[type="checkbox"]::after,
th:nth-child(1) input[type="checkbox"]::before,
th:nth-child(1) input[type="checkbox"]::after {
  display: none !important;
  content: none !important;
}
th:nth-child(3), td:nth-child(3) { width: 15%; } /* дата */
th:nth-child(4), td:nth-child(4) { 
  width: 60px !important; 
  min-width: 60px !important;
  max-width: 60px !important;
  text-align: center; 
  flex-shrink: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
} /* дни */
th:nth-child(5), td:nth-child(5) { width: 8%; text-align: center; } /* SB */
th:nth-child(6), td:nth-child(6) { width: 8%; text-align: center; } /* телефон */
th:nth-child(7), td:nth-child(7) { width: 12%; } /* статус */
th:nth-child(8), td:nth-child(8) { width: 12%; text-align: right; } /* фолловеры */
th:nth-child(9), td:nth-child(9) { 
  width: 12%; 
  text-align: right; 
  min-width: 80px; /* Минимальная ширина для цены */
  white-space: nowrap; /* Запрещаем перенос */
} /* цена */
.hint { color: var(--color-text-secondary); font-size: 12px; }
.badge { padding: 1px 5px; border-radius: 12px; display:inline-block; font-size: 11px; }
.link { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.link-muted { color: var(--color-text-secondary); text-decoration: none; }

/* Отображение цены: мелкие последние два знака */
.price-minor { 
  opacity: 0.4; 
  font-size: 0.75em; 
  font-weight: normal; 
}

/* Улучшаем отображение цен на мобильных */
@media (max-width: 768px) {
  th:nth-child(9), td:nth-child(9) { /* цена */
    font-weight: 600;
    color: var(--color-accent);
  }
  
  .price-minor {
    opacity: 0.6;
    font-size: 0.8em;
  }
}

/* Дополнительная защита цены от обрезания */
th:nth-child(9), td:nth-child(9) {
  overflow: visible !important; /* Запрещаем обрезание */
  text-overflow: clip !important; /* Запрещаем многоточие */
}

/* Принудительное отображение цены */
@media (max-width: 1400px) {
  th:nth-child(9), td:nth-child(9) {
    min-width: 80px !important;
  }
}

@media (max-width: 1200px) {
  th:nth-child(9), td:nth-child(9) {
    min-width: 70px !important;
  }
}

@media (max-width: 768px) {
  th:nth-child(9), td:nth-child(9) {
    min-width: 80px !important;
  }
}

@media (max-width: 480px) {
  th:nth-child(9), td:nth-child(9) {
    min-width: 70px !important;
  }
}

/* Выделение выбранной строки */
tr.selected { background: #eef2ff; }
tr:hover { background: #f8fafc; }

/* Пагинация */
#pagination .form-control { background: var(--color-surface-2); }

/* Стили для неактивных кнопок пагинации */
#pagination .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
}

#pagination .button:disabled:hover {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
}

/* Визуальное разделение секций фильтров */
.filters .filter-section { padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.filters .filter-section:last-child { border-bottom: 0; }
.filter-section-title { font-size: 14px; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: .04em; }

/* Range control styling */
input[type="range"] {
  width: 100%;
}

/* Soft minimal theme for noUiSlider (вписывается в текущую палитру) */
.noUi-target { border: 0; box-shadow: none; background: transparent; }
.noUi-horizontal .noUi-connects {
  background: var(--color-border);
  height: 4px;
  border-radius: 999px;
}
.noUi-horizontal .noUi-connect {
  background: var(--color-accent);
  border-radius: 999px;
}
.noUi-horizontal .noUi-handle {
  width: 18px; height: 12px; right: -9px; top: -4px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.noUi-handle:before { display: none; }
/* внутренняя вертикальная риска */
.noUi-horizontal .noUi-handle::after {
  content: '';
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 2px; height: 8px; border-radius: 1px;
  background: var(--color-accent);
}
.noUi-handle:hover { transform: scale(1.03); }
.noUi-active { transform: scale(1.05); }
.noUi-touch-area { background: transparent; }
.noUi-connect, .noUi-handle { transition: transform .15s ease, box-shadow .15s ease; }
.noUi-handle:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 2px; }

/* Мобильное меню фильтров */
.mobile-filters-toggle {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-filters-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.mobile-filters-toggle.active svg {
  transform: rotate(180deg);
}

/* Адаптивные стили для планшетов */
@media (max-width: 1024px) {
  .layout { flex-direction: column; }
  .aside { flex-basis: auto; width: 100%; max-width: none; }
  .header-container { padding: 12px 16px; }
  .container { padding: 12px 16px; }
}

/* Адаптивные стили для средних экранов */
@media (max-width: 1200px) {
  /* Скрываем дату регистрации */
  th:nth-child(3), td:nth-child(3) {
    display: none;
  }
  
  /* Оптимизируем ширину колонок для средних экранов */
  th:nth-child(1), td:nth-child(1) { /* чекбокс */
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(2), td:nth-child(2) { /* юзернейм */
    width: 25%;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(4), td:nth-child(4) { /* дни */
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  
  th:nth-child(5), td:nth-child(5) { /* SB */
    width: 10%;
    text-align: center;
  }
  
  th:nth-child(6), td:nth-child(6) { /* телефон */
    width: 10%;
    text-align: center;
  }
  
  th:nth-child(7), td:nth-child(7) { /* статус */
    width: 12%;
  }
  
  th:nth-child(8), td:nth-child(8) { /* фолловеры */
    width: 15%;
    text-align: right;
  }
  
  th:nth-child(9), td:nth-child(9) { /* цена */
    width: 15%;
    text-align: right;
    min-width: 70px; /* Минимальная ширина для цены */
    white-space: nowrap; /* Запрещаем перенос */
  }
}

/* Адаптивные стили для маленьких планшетов */
@media (max-width: 900px) {
  /* Скрываем статус */
  th:nth-child(7), td:nth-child(7) {
    display: none;
  }
  
  /* Дополнительная оптимизация для маленьких экранов */
  th:nth-child(1), td:nth-child(1) { /* чекбокс */
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(2), td:nth-child(2) { /* юзернейм */
    width: 30%;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(4), td:nth-child(4) { /* дни */
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    text-align: center;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  
  th:nth-child(5), td:nth-child(5) { /* SB */
    width: 12%;
    text-align: center;
  }
  
  th:nth-child(6), td:nth-child(6) { /* телефон */
    width: 12%;
    text-align: center;
  }
  
  th:nth-child(8), td:nth-child(8) { /* фолловеры */
    width: 15%;
    text-align: right;
  }
  
  th:nth-child(9), td:nth-child(9) { /* цена */
    width: 15%;
    text-align: right;
    min-width: 70px; /* Минимальная ширина для цены */
    white-space: nowrap; /* Запрещаем перенос */
  }
}



/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  /* Хедер */
  .header {
    min-height: auto; /* Убираем фиксированную высоту на мобильных */
  }
  
  .header-container {
    padding: 8px 12px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-height: auto; /* Убираем фиксированную высоту на мобильных */
  }
  
  .header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header .title {
    font-size: 18px;
  }
  
  .header-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  /* Первая строка: корзина и основные кнопки */
  .header-right .row:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  /* Вторая строка: настройки и дополнительные кнопки */
  .header-right .row:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .cart {
    font-size: 14px;
    justify-content: center;
    padding: 10px 12px;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 120px;
  }
  
  /* Кнопки в хедере */
  .header-right .button {
    flex: 1;
    min-height: 40px;
    font-size: 14px;
    padding: 8px 12px;
    max-width: 120px;
    border-radius: 12px !important;
  }
  
  /* Селект per page */
  #per-page {
    min-width: 80px;
    max-width: 100px;
    border-radius: 12px !important;
  }
  
  /* Группировка кнопок */
  .header-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
  
  /* Контейнер */
  .container {
    padding: 8px 12px;
  }
  
  /* Карточки */
  .card {
    padding: 12px;
    border-radius: var(--radius-sm);
  }
  
  /* Кнопки */
  .button {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px; /* Минимальная высота для touch */
  }
  
  /* Формы */
  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* Предотвращает zoom на iOS */
    min-height: 44px;
  }
  
  /* Таблицы */
  .table-wrap {
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 8px 6px;
  }
  
  /* Мобильное меню фильтров */
  .mobile-filters-toggle {
    display: flex;
  }
  
  .aside {
    display: none;
    margin-bottom: 16px;
  }
  
  .aside.active {
    display: block;
  }
  
  /* Фильтры на мобильных */
  .filters .filter-section {
    padding: 12px 0;
  }
  
  .filter-section-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  /* Слайдеры на мобильных */
  .noUi-horizontal .noUi-handle {
    width: 24px;
    height: 16px;
    right: -12px;
    top: -6px;
  }
  
  /* Пагинация */
  #pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  #pagination .button {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Футер */
  .footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Адаптивные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .header {
    min-height: auto; /* Убираем фиксированную высоту на очень маленьких экранах */
  }
  
  .header-container {
    padding: 6px 8px;
    min-height: auto; /* Убираем фиксированную высоту на очень маленьких экранах */
  }
  
  .header .title {
    font-size: 16px;
  }
  
  .header-right {
    gap: 6px;
  }
  
  .cart {
    font-size: 13px;
    gap: 4px;
  }
  
  .container {
    padding: 6px 8px;
  }
  
  .card {
    padding: 10px;
  }
  
  .button {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .form-control {
    padding: 10px 12px;
    font-size: 16px;
  }
  
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 6px 4px;
  }
  

  
  /* Оставляем: чекбокс, юзернейм, дни, SB, фолловеры, цена */
  .col-username {
    width: 35%;
  }
  
  /* Дополнительная оптимизация таблицы на очень маленьких экранах */
  table {
    font-size: 12px;
  }
  
  th:nth-child(1), td:nth-child(1) { /* чекбокс */
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(2), td:nth-child(2) { /* юзернейм */
    width: 35%;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(4), td:nth-child(4) { /* дни */
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    text-align: center;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  
  th:nth-child(5), td:nth-child(5) { /* SB */
    width: 15%;
  }
  
  th:nth-child(8), td:nth-child(8) { /* фолловеры */
    width: 10%;
  }
  
  th:nth-child(9), td:nth-child(9) { /* цена */
    width: 20%;
    min-width: 70px; /* Минимальная ширина для цены */
    white-space: nowrap; /* Запрещаем перенос */
  }
  
  /* Уменьшаем отступы в фильтрах */
  .filters .filter-section {
    padding: 8px 0;
  }
  
  .filter-section-title {
    font-size: 12px;
  }
}

/* Адаптация username контейнера для мобильных */
@media (max-width: 768px) {
  .username-container {
    gap: 4px;
  }
  
  .search-icon {
    margin-left: 4px;
  }
  

}

@media (max-width: 480px) {
  .username-container {
    gap: 2px;
  }
  
  .search-icon {
    margin-left: 2px;
  }
  
  .search-icon svg {
    width: 12px;
    height: 12px;
  }
  

}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
  /* Увеличиваем области нажатия */
  .button {
    min-height: 48px;
  }
  
  .form-control {
    min-height: 48px;
  }
  
  /* Убираем hover эффекты */
  tr:hover {
    background: inherit;
  }
  
  .button.is-light:hover {
    filter: none;
  }
  
  /* Увеличиваем слайдеры */
  .noUi-horizontal .noUi-handle {
    width: 28px;
    height: 20px;
    right: -14px;
    top: -8px;
  }
  
  /* Улучшаем скролл таблиц */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

/* Темная тема для устройств с темным режимом - отключена */
/* @media (prefers-color-scheme: dark) {
  :root {
    --color-bg-page: #0f172a;
    --color-surface: #1e293b;
    --color-surface-2: #334155;
    --color-border: #475569;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
  }
  
  body {
    background: var(--color-bg-page);
    color: var(--color-text-primary);
  }
  
  .form-control {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-primary);
  }
  
  .button.is-light {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-primary);
  }
  
  tr:hover {
    background: var(--color-surface-2);
  }
  
  tr.selected {
    background: rgba(37, 99, 235, 0.2);
  }
} */

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 768px) {
  /* Улучшаем доступность для touch-устройств */
  input[type="checkbox"], input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
  }
  
  /* Улучшаем скролл на iOS */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  /* Скрываем скроллбар на мобильных для чистоты */
  .table-wrap::-webkit-scrollbar {
    height: 4px;
  }
  
  .table-wrap::-webkit-scrollbar-track {
    background: var(--color-surface-2);
  }
  
  .table-wrap::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
  }
  
  /* Адаптивная таблица без горизонтального скролла */
  .table-wrap {
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  
  table {
    width: 100%;
    min-width: auto;
    table-layout: fixed;
  }
  
  /* Оптимизируем отображение длинных имен пользователей */
  .col-username {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Адаптивные колонки для мобильных (768px и меньше) */
  th:nth-child(1), td:nth-child(1) { /* чекбокс */
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(2), td:nth-child(2) { /* юзернейм */
    width: 40%;
    min-width: auto;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  th:nth-child(4), td:nth-child(4) { /* дни */
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  
  th:nth-child(5), td:nth-child(5) { /* SB */
    width: 12%;
    min-width: auto;
    text-align: center;
  }
  
  th:nth-child(8), td:nth-child(8) { /* фолловеры */
    width: 12%;
    min-width: auto;
    text-align: right;
  }
  
  th:nth-child(9), td:nth-child(9) { /* цена */
    width: 20%;
    min-width: 80px; /* Минимальная ширина для цены */
    text-align: right;
    white-space: nowrap; /* Запрещаем перенос */
  }
  
  /* Скрываем телефон на мобильных */
  th:nth-child(6), td:nth-child(6) {
    display: none;
  }
  
  /* Улучшаем отображение статусов */
  .badge {
    font-size: 10px;
    padding: 1px 3px;
    border-radius: 10px;
  }
  
  /* Оптимизируем пагинацию */
  #pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #pagination .button {
    margin: 2px;
  }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 480px) {
  /* Уменьшаем отступы еще больше */
  .card {
    margin-bottom: 8px;
  }
  
  /* Оптимизируем отображение цен */
  .price-minor {
    font-size: 0.7em;
  }
  
  /* Улучшаем отображение кнопок в хедере */
  .header-right .button {
    padding: 6px 8px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 10px !important;
  }
  
  /* Оптимизируем отображение корзины */
  .cart {
    font-size: 12px;
    padding: 6px;
  }
  
  .cart-icon svg {
    width: 16px;
    height: 16px;
  }
  
  /* Уменьшаем отступы в хедере */
  .header-right .row:first-child,
  .header-right .row:last-child {
    gap: 6px;
  }
  
  /* Селект per page на маленьких экранах */
  #per-page {
    min-width: 60px;
    max-width: 80px;
    border-radius: 8px !important;
  }
  
  /* Оптимизация кнопок на маленьких экранах */
  .header-right .button {
    max-width: 100px;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px !important;
  }
  
  .cart {
    max-width: 100px;
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Улучшения для ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  .header-container {
    padding: 6px 12px;
  }
  
  .header .title {
    font-size: 16px;
  }
  
  .container {
    padding: 6px 12px;
  }
  
  .card {
    padding: 8px;
  }
  
  /* Показываем фильтры в ландшафтной ориентации */
  .aside {
    display: block !important;
  }
  
  .mobile-filters-toggle {
    display: none !important;
  }
}

/* Стили для guide страницы */
.guide-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guide-page-body .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.guide-header h1 {
  color: var(--color-text-primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.guide-subtitle {
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}

.guide-video-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.guide-video-section h2 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-text-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.guide-text-section h2 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.guide-step {
  margin-bottom: 32px;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-step h3 {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-content {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.step-content p {
  margin-bottom: 16px;
}

.step-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.step-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.tip {
  background: #f0f8ff;
  border-left: 4px solid var(--color-accent);
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.parameter {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.parameter h4 {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.parameter p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.status-yes {
  color: #22c55e;
  font-weight: 600;
}

.status-no {
  color: #ef4444;
  font-weight: 600;
}

.status-valid {
  color: #22c55e;
  font-weight: 600;
}

.status-captcha {
  color: #eab308;
  font-weight: 600;
}

.status-logout {
  color: #3b82f6;
  font-weight: 600;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.recommendation {
  border-radius: var(--radius-sm);
  padding: 20px;
}

.recommendation.good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.recommendation.caution {
  background: #fefce8;
  border: 1px solid #fde047;
}

.recommendation h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.recommendation.good h4 {
  color: #16a34a;
}

.recommendation.caution h4 {
  color: #ca8a04;
}

.recommendation ul {
  margin: 0;
  padding-left: 20px;
}

.recommendation li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.faq-item h4 {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cta-section {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.cta-section h3 {
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.cta-section .button {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  padding: 12px 24px;
  min-height: 48px;
}

.guide-footer {
  margin-top: 40px;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.link-muted {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-muted:hover {
  color: var(--color-text-primary);
}

.username-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.username-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.username-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.search-icon {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.search-icon:hover {
  opacity: 1;
}

.col-username {
  min-width: 150px;
  max-width: 200px;
}

tr.selected {
  background: rgba(37, 99, 235, 0.05) !important;
}

tr.selected:hover {
  background: rgba(37, 99, 235, 0.08) !important;
}

.price-minor {
  opacity: 0.7;
  font-size: 0.85em;
}

.hint {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Адаптивные стили для guide страницы */
@media (max-width: 768px) {
  .guide-page {
    padding: 16px 0;
  }
  
  .guide-header h1 {
    font-size: 24px;
  }
  
  .guide-subtitle {
    font-size: 16px;
  }
  
  .guide-video-section,
  .guide-text-section,
  .cta-section {
    padding: 16px;
  }
  
  .guide-footer {
    margin-top: 24px;
  }
  
  .guide-video-section h2,
  .guide-text-section h2,
  .cta-section h3 {
    font-size: 20px;
  }
  
  .guide-step h3 {
    font-size: 18px;
  }
  
  .button.is-large {
    font-size: 16px;
    padding: 14px 24px;
    min-height: 48px;
  }
  
  .parameters-grid {
    grid-template-columns: 1fr;
  }
  
  .recommendations {
    grid-template-columns: 1fr;
  }
}

/* Глобальные стили для кнопок в хедере - переопределяют Bulma */
.header-right .button {
  border-radius: 8px !important;
}

.header-right #per-page {
  border-radius: 8px !important;
}

/* Мобильные стили для кнопок в хедере */
@media (max-width: 768px) {
  .header-right .button {
    border-radius: 6px !important;
  }
  
  .header-right #per-page {
    border-radius: 6px !important;
  }
}

@media (max-width: 480px) {
  .header-right .button {
    border-radius: 4px !important;
  }
  
  .header-right #per-page {
    border-radius: 4px !important;
  }
}

