/* ================================================================
   eldauto.ru — Глобальная тёмная тема (dark-theme.css)
   Версия: v=166 (Фикс селектора html[data-theme=dark] + плавный скролл 60/120fps на iOS Safari без fixed-перерисовки)
   ----------------------------------------------------------------
   Все фоновые и акцентные тона строго нейтральные (R = G = B),
   все кнопки выдержаны в едином премиальном чёрном стиле.
   ================================================================ */

/* ==========================================
   ГЛОБАЛЬНЫЙ ТЁМНЫЙ ФОН СТРАНИЦ (БЕЗ ФИОЛЕТОВОГО)
   ========================================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: radial-gradient(circle at 50% 0%, #181818 0%, #0e0e0e 58%, #080808 100%) !important;
  background-color: #0c0c0c !important;
  background-attachment: fixed !important;
}
@media (max-width: 768px) {
  html[data-theme="dark"],
  html[data-theme="dark"] body {
    background: #0c0c0c !important;
    background-attachment: scroll !important;
  }
}

/* ==========================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ В ЧЁРНОМ СТИЛЕ
   ========================================== */
[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border-color: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .theme-toggle:hover .theme-toggle-track {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(28px);
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .icon-sun {
  color: #737373;
  opacity: 0.65;
}
[data-theme="dark"] .icon-moon {
  color: #f5f5f5;
  opacity: 1;
}

/* ============================================================
   ПЕРЕМЕННЫЕ ТЁМНОЙ ТЕМЫ (PURE CARBON DARK)
   ============================================================ */
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0c0c0c;
  --card-bg: #141414;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: #262626;
  --primary: #1c1c1c;
  --primary-hover: #292929;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.58);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.78);
  --filter-bg: #121212;
  --input-bg: #1a1a1a;
  --filter-focus-bg: #222222;
  --filter-border: #2e2e2e;
  --car-img-bg: linear-gradient(135deg, #171717, #222222);
  --car-img-text: #737373;
  --fav-inactive: #525252;
  --overlay-bg: rgba(0, 0, 0, 0.85);
  --btn-invert-bg: #ffffff;
  --btn-invert-text: #0a0a0a;
  --toast-bg: #171717;
  --toast-text: #ffffff;
  --bottom-nav-bg: #0f0f0f;
  --bottom-nav-border: #242424;
  --select-arrow: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a3a3a3' d='M6 9L11 3H1z'/%3E%3C/svg%3E");
}

/* --- Шапка в тёмно-графитовом стеклянном стиле --- */
[data-theme="dark"] header {
  background: rgba(18, 18, 18, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.58);
}

[data-theme="dark"] .header-nav-link {
  color: #ffffff;
}
[data-theme="dark"] .header-nav-link:hover,
[data-theme="dark"] .header-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

/* --- Логотип и молния (янтарно-оранжевый акцент, v=275) --- */
/* --- Фирменный логотип eldauto (тёмная тема: белый eld + янтарный auto + двухцветная молния, v=279) --- */
[data-theme="dark"] .logo,
[data-theme="dark"] .login-logo,
[data-theme="dark"] .reset-logo,
[data-theme="dark"] .footer-logo {
  color: #ffffff;
}
[data-theme="dark"] .logo-auto {
  color: #f59e0b !important;
}
[data-theme="dark"] .logo-bolt .logo-bolt-main {
  fill: #fbbf24 !important;
  stroke: none !important;
}
[data-theme="dark"] .logo-bolt .logo-bolt-accent {
  fill: #ea580c !important;
  stroke: none !important;
}
[data-theme="dark"] .logo svg:not(.logo-bolt),
[data-theme="dark"] .login-logo svg:not(.logo-bolt),
[data-theme="dark"] .reset-logo svg:not(.logo-bolt),
[data-theme="dark"] .m-top-brand svg:not(.logo-bolt),
[data-theme="dark"] .m-top-logo svg:not(.logo-bolt),
[data-theme="dark"] .mobile-logo svg:not(.logo-bolt),
[data-theme="dark"] .m-header-logo svg:not(.logo-bolt) {
  stroke: #f59e0b !important;
}
[data-theme="dark"] .logo svg:not(.logo-bolt) path,
[data-theme="dark"] .login-logo svg:not(.logo-bolt) path,
[data-theme="dark"] .reset-logo svg:not(.logo-bolt) path,
[data-theme="dark"] .m-top-brand svg:not(.logo-bolt) path,
[data-theme="dark"] .m-top-logo svg:not(.logo-bolt) path,
[data-theme="dark"] .mobile-logo svg:not(.logo-bolt) path,
[data-theme="dark"] .m-header-logo svg:not(.logo-bolt) path {
  fill: #f59e0b !important;
  stroke: #f59e0b !important;
}
@media (max-width: 768px) {
  html[data-theme="dark"] .logo,
  html[data-theme="dark"] header .logo {
    color: #ffffff !important;
  }
  html[data-theme="dark"] .logo-auto {
    color: #f59e0b !important;
  }
  html[data-theme="dark"] .logo-bolt .logo-bolt-main {
    fill: #fbbf24 !important;
    stroke: none !important;
  }
  html[data-theme="dark"] .logo-bolt .logo-bolt-accent {
    fill: #ea580c !important;
    stroke: none !important;
  }
}

/* --- Нативные селекты --- */
[data-theme="dark"] select,
[data-theme="dark"] .filter-select,
[data-theme="dark"] .form-group select {
  color-scheme: dark;
}
[data-theme="dark"] select option {
  background-color: #141414;
  color: #f5f5f5;
}

/* ============================================================
   ЕДИНАЯ СИСТЕМА ЧЁРНЫХ КНОПОК (DARK THEME)
   ============================================================ */

/* --- Главная кнопка "+ Разместить" в шапке --- */
[data-theme="dark"] .btn-add-listing {
  background: linear-gradient(180deg, #222222 0%, #090909 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
[data-theme="dark"] header .btn-add-listing:hover,
[data-theme="dark"] .btn-add-listing:hover {
  background: linear-gradient(180deg, #2e2e2e 0%, #141414 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* --- Все основные CTA-кнопки сайта в чёрном стиле --- */
[data-theme="dark"] #loginBtnDesktop,
[data-theme="dark"] .btn-search-inline,
[data-theme="dark"] #submitSearchBtn,
[data-theme="dark"] .btn-empty-action,
[data-theme="dark"] .lp-btn.primary,
[data-theme="dark"] .btn-create,
[data-theme="dark"] .btn-create-ticket,
[data-theme="dark"] .btn-submit,
[data-theme="dark"] .form-submit,
[data-theme="dark"] .chat-send-btn,
[data-theme="dark"] .seller-message-btn,
[data-theme="dark"] .compare-act-btn.write,
[data-theme="dark"] .fav-empty-state a,
[data-theme="dark"] .limit-warning a,
[data-theme="dark"] #savePhoneBtn,
[data-theme="dark"] .name-edit-save,
[data-theme="dark"] #backToListBtn,
[data-theme="dark"] .ticket-reply-box button,
[data-theme="dark"] .ticket-reply-actions button,
[data-theme="dark"] .review-modal-actions .btn-submit {
  background: linear-gradient(180deg, #202020 0%, #0a0a0a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  font-weight: 700;
}

[data-theme="dark"] #loginBtnDesktop:hover,
[data-theme="dark"] .btn-search-inline:hover,
[data-theme="dark"] #submitSearchBtn:hover,
[data-theme="dark"] .btn-empty-action:hover,
[data-theme="dark"] .lp-btn.primary:hover,
[data-theme="dark"] .btn-create:hover,
[data-theme="dark"] .btn-create-ticket:hover,
[data-theme="dark"] .btn-submit:hover:not(:disabled),
[data-theme="dark"] .form-submit:hover:not(:disabled),
[data-theme="dark"] .chat-send-btn:hover:not(:disabled),
[data-theme="dark"] .seller-message-btn:hover:not(.disabled),
[data-theme="dark"] .compare-act-btn.write:hover,
[data-theme="dark"] .fav-empty-state a:hover,
[data-theme="dark"] .limit-warning a:hover,
[data-theme="dark"] #savePhoneBtn:hover,
[data-theme="dark"] .name-edit-save:hover,
[data-theme="dark"] #backToListBtn:hover,
[data-theme="dark"] .ticket-reply-box button:hover:not(:disabled),
[data-theme="dark"] .ticket-reply-actions button:hover:not(:disabled),
[data-theme="dark"] .review-modal-actions .btn-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #2c2c2c 0%, #141414 100%) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  filter: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* --- Вторичные, контурные и вспомогательные кнопки в чёрном стиле --- */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-primary-large,
[data-theme="dark"] .btn-login-desktop,
[data-theme="dark"] .lp-top-btn,
[data-theme="dark"] .lp-btn.secondary,
[data-theme="dark"] .seller-phone-btn,
[data-theme="dark"] .ticket-back-btn,
[data-theme="dark"] .btn-cancel,
[data-theme="dark"] .user-actions .btn-action,
[data-theme="dark"] .ml-actions .btn-action:not(.btn-del):not(.btn-restore):not(.btn-archive) {
  background: linear-gradient(180deg, #181818 0%, #0e0e0e 100%) !important;
  color: #f5f5f5 !important;
  border: 1px solid #2b2b2b !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-primary-large:hover,
[data-theme="dark"] .btn-login-desktop:hover,
[data-theme="dark"] header .btn-primary:hover,
[data-theme="dark"] header .btn-secondary:hover,
[data-theme="dark"] .lp-top-btn:hover,
[data-theme="dark"] .lp-btn.secondary:hover,
[data-theme="dark"] .seller-phone-btn:hover,
[data-theme="dark"] .ticket-back-btn:hover,
[data-theme="dark"] .btn-cancel:hover,
[data-theme="dark"] .user-actions .btn-action:hover,
[data-theme="dark"] .ml-actions .btn-action:not(.btn-del):not(.btn-restore):not(.btn-archive):hover {
  background: linear-gradient(180deg, #242424 0%, #151515 100%) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
  filter: none;
}

[data-theme="dark"] .btn-login-desktop.has-avatar {
  border-color: #333333 !important;
  background-color: #1f1f1f !important;
}

[data-theme="dark"] .btn-fav-desktop {
  background: #141414 !important;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .btn-fav-desktop:hover {
  border-color: #ff4d4d !important;
  color: #ff4d4d !important;
}

/* --- Профиль и аватары --- */
[data-theme="dark"] .header-user-btn { color: #f5f5f5 !important; }
[data-theme="dark"] .header-user-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .header-user-avatar,
[data-theme="dark"] .profile-user-avatar,
[data-theme="dark"] .lp-seller-avatar,
[data-theme="dark"] .seller-avatar-big,
[data-theme="dark"] .dialog-avatar,
[data-theme="dark"] .chat-header-avatar,
[data-theme="dark"] .user-avatar,
[data-theme="dark"] .seller-avatar,
[data-theme="dark"] .review-author-avatar,
[data-theme="dark"] .ticket-msg-avatar:not(.admin),
[data-theme="dark"] .message-avatar,
[data-theme="dark"] .review-item-avatar {
  background: #222222;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* --- Кнопка и модалка региона --- */
[data-theme="dark"] .btn-region {
  background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%) !important;
  border: 1px solid #2b2b2b !important;
  color: #f5f5f5 !important;
}
[data-theme="dark"] .btn-region:hover {
  background: linear-gradient(180deg, #242424 0%, #141414 100%) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .region-search-wrap input:focus {
  border-color: rgba(255, 255, 255, 0.38);
}
[data-theme="dark"] .region-item.active::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* --- Навигация категорий, подкатегорий и фильтров --- */
[data-theme="dark"] .category-nav .cat-btn,
[data-theme="dark"] .tickets-filter-btn {
  background: #141414;
  border-color: #262626;
  color: #a3a3a3;
}
[data-theme="dark"] .category-nav .cat-btn.active,
[data-theme="dark"] .tickets-filter-btn.active {
  background: linear-gradient(180deg, #222222 0%, #0d0d0d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
[data-theme="dark"] .category-nav .cat-btn:hover,
[data-theme="dark"] .tickets-filter-btn:hover {
  background: #1f1f1f !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .sub-tab { background: #141414; border-color: #262626; }
[data-theme="dark"] .sub-tab.active {
  background: linear-gradient(180deg, #222222 0%, #0d0d0d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* --- Переключатель вида (сетка / список) --- */
[data-theme="dark"] .view-btn.active {
  background: #242424;
  color: #ffffff;
}

/* --- Карточки объявлений в чёрном стиле --- */
[data-theme="dark"] .car-card {
  background: linear-gradient(155deg, #171717 0%, #0d0d0d 100%) !important;
  border: 1px solid #262626 !important;
  border-radius: 17px !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58) !important;
}
[data-theme="dark"] .car-card:hover {
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-4px);
}
[data-theme="dark"] .car-img-wrapper {
  border-bottom: 1px solid #262626;
}
[data-theme="dark"] .car-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -24px 32px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  border-radius: 17px 17px 0 0;
}
[data-theme="dark"] .car-title,
[data-theme="dark"] .listing-title,
[data-theme="dark"] .seller-listing-title,
[data-theme="dark"] .similar-title,
[data-theme="dark"] .fav-title {
  color: #f5f5f5 !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
}
[data-theme="dark"] .car-price-row,
[data-theme="dark"] .car-price,
[data-theme="dark"] .listing-price,
[data-theme="dark"] .seller-listing-price,
[data-theme="dark"] .similar-price,
[data-theme="dark"] .fav-price {
  color: #ffffff !important;
  font-size: 1.22rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}
[data-theme="dark"] .car-specs-row {
  color: #b5b5b5 !important;
}
[data-theme="dark"] .btn-write-card {
  background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 700;
}
[data-theme="dark"] .btn-write-card:hover {
  background: linear-gradient(180deg, #2b2b2b 0%, #161616 100%) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}
[data-theme="dark"] .location-badge {
  background: #1f1f1f !important;
  color: #e5e5e5 !important;
}
[data-theme="dark"] .badge-used {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
}

/* --- Fav-кнопка в карточке --- */
[data-theme="dark"] .fav-btn-card {
  background: rgba(18, 18, 18, 0.88);
  color: #a3a3a3;
}
[data-theme="dark"] .fav-btn-card:hover,
[data-theme="dark"] .fav-btn-card.active {
  background: rgba(18, 18, 18, 0.96);
  color: #ff4d4d;
}

/* --- Табы и поля форм --- */
[data-theme="dark"] .tab.active { color: #ffffff !important; background: var(--input-bg); }
[data-theme="dark"] .tab:hover { color: #ffffff !important; }

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .search-input-inline:focus,
[data-theme="dark"] .results-sort-select:hover,
[data-theme="dark"] .results-sort-select:focus {
  background: var(--filter-focus-bg) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

/* --- Toast --- */
[data-theme="dark"] .toast {
  background: #171717 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78);
}

/* --- Sidebar-виджеты (главная) в нейтральном чёрном стиле --- */
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .sidebar-widget.safe-deal,
[data-theme="dark"] .safe-deal {
  background: radial-gradient(circle at 100% 100%, #1f1f1f 0%, #131313 62%, #0c0c0c 100%) !important;
  border: 1px solid #292929 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .sidebar-widget h3,
[data-theme="dark"] .safe-deal h3 {
  color: #ffffff !important;
}
[data-theme="dark"] .safe-deal h3 svg {
  stroke: #ffffff;
  flex-shrink: 0;
}
[data-theme="dark"] .sidebar-widget p,
[data-theme="dark"] .safe-deal p {
  color: #a3a3a3 !important;
}
[data-theme="dark"] .safe-deal .btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  background: linear-gradient(180deg, #222222 0%, #0a0a0a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}
[data-theme="dark"] .safe-deal .btn-white:hover {
  background: linear-gradient(180deg, #2e2e2e 0%, #141414 100%) !important;
  border-color: rgba(255, 255, 255, 0.44) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* === СОЛИДНЫЕ ЧЁРНЫЕ КАПСУЛЫ КАТЕГОРИЙ НА ГЛАВНОЙ === */
[data-theme="dark"] .category-cards-divider {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .category-card {
  --cat-icon-cutout: #1f1f1f;
  background: linear-gradient(145deg, #171717 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cat-icon-badge {
  background: radial-gradient(circle at 35% 30%, #292929 0%, #161616 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.48);
}

[data-theme="dark"] .category-card:hover {
  --cat-icon-cutout: #262626;
  background: linear-gradient(145deg, #212121 0%, #121212 100%);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

[data-theme="dark"] .category-card:hover .cat-icon-badge {
  background: radial-gradient(circle at 35% 30%, #333333 0%, #1c1c1c 100%);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

/* --- Пустое состояние --- */
[data-theme="dark"] .empty-state-icon-wrapper {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03);
}

/* --- Нижнее меню (mobile) --- */
[data-theme="dark"] .bottom-nav {
  background: rgba(12, 12, 12, 0.96) !important;
  backdrop-filter: blur(12px);
  border-top: 1px solid #262626 !important;
}
[data-theme="dark"] .bottom-nav-item.active {
  color: #ffffff !important;
}

/* --- Hero-section на главной в нейтральном чёрном цвете --- */
[data-theme="dark"] .hero-section {
  background: #0b0b0b !important;
  border: 1px solid #262626;
}

/* --- Меню дропдауна пользователя в шапке --- */
[data-theme="dark"] .header-user-menu {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.68);
}

/* --- Профиль, табы, чат и селекты в чёрной теме --- */
[data-theme="dark"] .profile-menu-item.active {
  background: linear-gradient(180deg, #222222 0%, #0d0d0d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .profile-tab-btn.active,
[data-theme="dark"] .admin-tab.active,
[data-theme="dark"] .ml-tab.active {
  color: #ffffff;
}
[data-theme="dark"] .profile-tab-btn.active::after,
[data-theme="dark"] .admin-tab.active::after,
[data-theme="dark"] .ml-tab.active::after {
  background: #ffffff;
}
[data-theme="dark"] .profile-listing-price {
  color: #ffffff;
}
[data-theme="dark"] .custom-option.selected {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}
[data-theme="dark"] .custom-select.open .custom-select-trigger,
[data-theme="dark"] .custom-select-trucks.open .custom-select-trigger,
[data-theme="dark"] .floating-group:focus-within {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] main a:not([class]),
[data-theme="dark"] .no-listings a,
[data-theme="dark"] #avatarUploadLabel,
[data-theme="dark"] .seller-link,
[data-theme="dark"] .popular-header .btn-all,
[data-theme="dark"] .filter-link-reset:hover,
[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] .forgot-password:hover,
[data-theme="dark"] .back-link:hover,
[data-theme="dark"] .login-tab:hover,
[data-theme="dark"] .header-dropdown-menu a:hover,
[data-theme="dark"] .header-dropdown-menu a:hover svg,
[data-theme="dark"] .info-item:hover {
  color: #ffffff !important;
}
[data-theme="dark"] .dialog-listing,
[data-theme="dark"] .chat-header-listing {
  color: #d4d4d4;
}
[data-theme="dark"] .dialog-item.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] .msg-mine {
  background: linear-gradient(180deg, #242424 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
