/* ==========================================================================
   КЛАСТЕР — ДИЗАЙН-СИСТЕМА И ЕДИНЫЙ СТИЛЕВОЙ ФАЙЛ (STYLE.CSS)
   ========================================================================== */

/* Премиальный системный шрифт Apple / High-Perf Modern Stack (загрузка Google Fonts идет асинхронно в HTML без блокировки CSSOM) */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.28);

  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);

  --accent-violet: #7c3aed;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;

  --bg-color: #f8fafc;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --card-bg: #ffffff;
  --card-hover-bg: #ffffff;
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #818cf8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 24px rgba(79, 70, 229, 0.22);
  --shadow-glow-emerald: 0 8px 24px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  html {
    scroll-behavior: smooth;
  }
}

body { 
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  margin: 0; 
  padding: 0; 
  background: var(--bg-color); 
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Красивый скроллбар */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   2. ЕДИНАЯ ШАПКА САЙТА (HEADER)
   ========================================================================== */

#header-right:not(.initialized) {
  opacity: 0;
  visibility: hidden;
}

#header { 
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 4000;
  width: 100%;
  box-sizing: border-box;
  padding: 8px max(16px, calc((100% - 1320px) / 2 + 16px));
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
  transition: padding 0.3s ease, background 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right,
#header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ==========================================================================
   3. ЛОГОТИП И БРЕНДИНГ: ФЛАГМАНСКАЯ ПРЕМИАЛЬНАЯ ТИПОГРАФИКА
   (Уровень Uber / Cartier / Apple HIG)
   Никакого визуального шума и лишних картинок.
   Идеальная строчная посадка, сапфировая изумрудная точка и адаптивный бейдж.
   ========================================================================== */

.logo-area-elite {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  gap: 12px !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  flex-shrink: 0;
}

.logo-area-elite:active {
  transform: scale(0.97);
}

.logo-area-elite .logo-icon-wrap {
  display: none !important;
}

.logo-text-wrap {
  display: inline-flex !important;
  align-items: baseline !important;
  position: relative;
  line-height: 1 !important;
  gap: 0;
}

.logo-title {
  display: inline-flex !important;
  align-items: baseline !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro', 'Helvetica Neue', 'Outfit', sans-serif;
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 850;
  letter-spacing: -0.045em;
  color: #0b1329;
  line-height: 1 !important;
  margin: 0;
  padding: 0;
  transition: color 0.2s ease;
}

.logo-point {
  display: inline-block !important;
  width: clamp(7px, 1vw, 9.5px);
  height: clamp(7px, 1vw, 9.5px);
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #6ee7b7, #10b981 60%, #047857 100%) !important;
  margin-left: 3.5px;
  vertical-align: 0 !important;
  position: relative;
  bottom: 1px; /* Строго на базовой линии шрифта */
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* 
   УЛЬТРА-ТОНКИЙ МАТОВЫЙ СТЕКЛЯННЫЙ ДЕСКРИПТОР (APPLE PRO FROSTED GLASS)
   Выверен строго по оптическому центру строчных букв "абери" (x-height)
*/
.logo-area-elite::after {
  content: 'Загородное сообщество';
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #047857;
  padding: 3.5px 10px;
  background: rgba(16, 185, 129, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 0.5px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.04), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  top: 3.5px; /* Точнейшая оптическая посадка: центр шильдика совпадает с центром строчных букв "абери" */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-area-elite:hover .logo-title {
  color: #059669;
}

.logo-area-elite:hover .logo-point {
  transform: scale(1.3);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.95);
}

.logo-area-elite:hover::after {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.32);
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   АДАПТАЦИЯ ЛОГОТИПА К ТЕМНЫМ И СВЕТЛЫМ ФОНАМ
   ========================================================================== */

#header .logo-title,
.logo-title {
  color: #0f172a;
}

#header .logo-area-elite:hover .logo-title,
.logo-area-elite:hover .logo-title {
  color: #059669;
}

/* В темной теме */
.dark .logo-title,
[data-theme="dark"] .logo-title,
body.dark-theme .logo-title,
.dark-theme .logo-title,
.dark-header .logo-title,
#header.dark .logo-title,
#header[data-theme="dark"] .logo-title,
.bg-dark .logo-title,
.bg-black .logo-title {
  color: #f8fafc !important;
}

.dark .logo-area-elite:hover .logo-title,
[data-theme="dark"] .logo-area-elite:hover .logo-title,
body.dark-theme .logo-area-elite:hover .logo-title,
.dark-theme .logo-area-elite:hover .logo-title,
.dark-header .logo-area-elite:hover .logo-title,
#header.dark .logo-area-elite:hover .logo-title {
  color: #34d399 !important;
}

.dark .logo-area-elite::after,
[data-theme="dark"] .logo-area-elite::after,
body.dark-theme .logo-area-elite::after {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ПОЛНАЯ АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА И УСТРОЙСТВА APPLE
   ========================================================================== */
@media (max-width: 820px) {
  #header {
    padding: 8px 14px;
    min-height: 54px;
  }
  .logo-title {
    font-size: 24px;
    letter-spacing: -0.04em;
  }
  .logo-area-elite::after {
    font-size: 10px;
    padding: 3px 8.5px;
    top: 3px;
  }
}

/* Планшеты и фаблеты (до 680px) */
@media (max-width: 680px) {
  #header {
    padding: 8px 12px;
    min-height: 52px;
    gap: 8px;
  }
  .logo-area-elite {
    gap: 8px !important;
  }
  .logo-title {
    font-size: 22px;
  }
  .logo-area-elite::after {
    font-size: 9.5px;
    padding: 3px 7px;
    top: 2.5px;
    letter-spacing: -0.01em;
  }
  .btn-admin {
    padding: 7px 10px;
    font-size: 12px;
  }
  .btn-admin span.btn-admin-text,
  .btn-admin .btn-admin-text {
    display: none !important;
  }
}

/* Смартфоны (до 540px, включая все iPhone и Android) */
@media (max-width: 540px) {
  #header {
    padding: 6px 10px;
    min-height: 48px;
    gap: 6px;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .header-right,
  #header-right {
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
  }
  .user-panel {
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
  }
  .logo-area-elite {
    gap: 0 !important;
    flex-shrink: 0;
  }
  .logo-title {
    font-size: 21px !important;
    font-weight: 850;
    letter-spacing: -0.04em;
  }
  .logo-point {
    width: 7.5px !important;
    height: 7.5px !important;
    margin-left: 3px;
    bottom: 0.5px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
  }
  /* На смартфонах прячем текстовый дескриптор, чтобы логотип "КЛАСТЕР." стоял монументально и чисто */
  .logo-area-elite::after {
    display: none !important;
  }
  .header-points-badge {
    height: 32px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
    gap: 3px !important;
  }
  .header-points-icon {
    width: 11px !important;
    height: 11px !important;
  }
  .btn-admin {
    padding: 6px 8px;
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 50%;
  }
  .notification-bell-btn {
    width: 32px;
    height: 32px;
  }
  .user-greeting {
    padding: 0;
    width: 32px;
    height: 32px;
    font-size: 12px;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .user-greeting span.username-text {
    display: none !important;
  }
  .btn-logout-header {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .btn-logout-header span.logout-text,
  .btn-logout-header .logout-text,
  .btn-logout-header span.btn-logout-text {
    display: none !important;
  }
}

/* Ультра-компактные экраны (менее 380px) */
@media (max-width: 380px) {
  #header {
    padding: 5px 6px;
    gap: 3px;
  }
  .header-right,
  #header-right {
    gap: 3px;
  }
  .user-panel {
    gap: 3px;
  }
  .logo-title {
    font-size: 18px !important;
  }
  .btn-admin,
  .notification-bell-btn,
  .btn-logout-header {
    width: 30px;
    height: 30px;
  }
  .header-points-badge {
    height: 30px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }
  .user-greeting {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    max-width: none;
    flex-shrink: 0;
  }
  .user-greeting span.username-text {
    display: none !important;
  }
}

.back-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.back-btn:hover { 
  color: var(--primary);
  background: #f1f5f9;
  transform: translateX(-2px);
}

/* ==========================================================================
   4. КНОПКИ САЙТА
   ========================================================================== */

.btn-primary,
.btn-add-lot {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
}

.btn-primary:hover,
.btn-add-lot:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.38);
}

.btn-primary:active,
.btn-add-lot:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline,
.btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.btn-outline:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-admin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.08);
  transition: all var(--transition-fast);
}

.admin-badge-counter,
.notification-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff3b30 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 4.5px;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 7px rgba(239, 68, 68, 0.45);
  animation: pulseHeaderBadge 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  letter-spacing: -0.02em;
}

@keyframes pulseHeaderBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 7px rgba(239, 68, 68, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 3px 11px rgba(239, 68, 68, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 7px rgba(239, 68, 68, 0.45);
  }
}

.btn-admin:hover {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  border-color: #a5b4fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18);
}

.btn-admin svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-normal);
}

.btn-admin:hover svg {
  transform: rotate(45deg);
}

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

/* Премиальный индикатор клубных баллов (Apple Glass Points Pill) */
.header-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  padding: 0 11px;
  height: 36px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 2px 8px rgba(16, 185, 129, 0.08);
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}

.header-points-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #047857;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(16, 185, 129, 0.22);
}

.header-points-badge:active {
  transform: translateY(0);
}

.dark .header-points-badge, [data-theme="dark"] .header-points-badge {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-points-icon {
  flex-shrink: 0;
  stroke: currentColor;
}

.header-points-val {
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}

.user-greeting {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.user-greeting:hover {
  color: #4f46e5;
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.btn-logout-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-logout-header:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.btn-logout-header:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   5. ПОИСКОВАЯ СЕКЦИЯ И БАННЕР ПРОЕКТА
   ========================================================================== */

.search-section {
  max-width: 1280px;
  margin: 14px auto 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   УМНЫЙ ПОИСК — СТИЛЬНЫЙ НЕ НАВЯЗЧИВЫЙ AI ИНДИКАТОР (APPLE INTELLIGENCE GLASS)
   ========================================================================== */
.smart-search-badge-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
  user-select: none;
  z-index: 2;
  will-change: opacity, transform;
}

.smart-search-badge-hint .smart-sparkle-icon {
  flex-shrink: 0;
  display: block;
  animation: aiGlowPulse 3.5s infinite ease-in-out;
  filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.2));
}

@keyframes aiGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.45));
  }
}

.smart-search-badge-hint .smart-search-text {
  font-family: inherit;
  white-space: nowrap;
  color: #64748b;
  transition: color 0.2s ease;
}

/* При наведении курсора на строку поиска */
.search-input-wrapper:hover .smart-search-badge-hint {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(203, 213, 225, 0.95);
}

.search-input-wrapper:hover .smart-search-badge-hint .smart-search-text {
  color: #475569;
}

/* При активном фокусе (пока поле пустое) — плашка мягко подсвечивается */
.search-input-wrapper:focus-within .smart-search-badge-hint {
  background: rgba(238, 242, 255, 0.7);
  border-color: rgba(199, 210, 254, 0.85);
}

.search-input-wrapper:focus-within .smart-search-badge-hint .smart-search-text {
  color: #4f46e5;
}

/* ПЛАВНОЕ ИСЧЕЗНОВЕНИЕ ПРИ НАЛИЧИИ ВВЕДЕННОГО ТЕКСТА */
.smart-search-badge-hint.is-hidden,
.search-input-wrapper.has-query .smart-search-badge-hint {
  opacity: 0 !important;
  transform: translateY(-50%) scale(0.88) !important;
  pointer-events: none !important;
}

/* ТЕМНАЯ ТЕМА */
.dark .smart-search-badge-hint, 
[data-theme="dark"] .smart-search-badge-hint {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(51, 65, 85, 0.85);
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .smart-search-badge-hint .smart-search-text,
[data-theme="dark"] .smart-search-badge-hint .smart-search-text {
  color: #94a3b8;
}

.dark .search-input-wrapper:focus-within .smart-search-badge-hint,
[data-theme="dark"] .search-input-wrapper:focus-within .smart-search-badge-hint {
  background: rgba(49, 46, 129, 0.45);
  border-color: rgba(99, 102, 241, 0.4);
}

.dark .search-input-wrapper:focus-within .smart-search-badge-hint .smart-search-text,
[data-theme="dark"] .search-input-wrapper:focus-within .smart-search-badge-hint .smart-search-text {
  color: #c7d2fe;
}

@media (max-width: 640px) {
  .smart-search-badge-hint {
    right: 12px;
    padding: 5px;
    gap: 0;
    width: 26px;
    height: 26px;
    justify-content: center;
    border-radius: 50%;
  }
  .smart-search-badge-hint .smart-search-text {
    display: none; /* На мобильных экранах скрываем текст, оставляем элегантную искру */
  }
  .smart-search-badge-hint .smart-sparkle-icon {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ ТЕХНОЛОГИЧНЫЙ БАННЕР «О ПЛАТФОРМЕ» (ECO-TECH & APPLE GLASS)
   ========================================================================== */

.platform-showcase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 10px 18px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.platform-showcase-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #10b981 0%, #059669 40%, #6366f1 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.platform-showcase-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px -4px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.banner-left-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

/* 
   ФЛАГМАНСКАЯ КНОПКА «О ПЛАТФОРМЕ» (APPLE GLASS FROSTED PILL)
   Вместо плоского плотного зеленого овала — благородное полупрозрачное изумрудное стекло
*/
.banner-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.09);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #047857;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 0.5px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.06), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.9);
  text-transform: none;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-showcase-banner:hover .banner-badge-pill {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #065f46;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12), inset 0 0.5px 0.5px rgba(255, 255, 255, 1);
}

.badge-pulse-indicator {
  width: 6.5px;
  height: 6.5px;
  background: radial-gradient(circle at 35% 35%, #6ee7b7, #10b981 60%, #047857 100%);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: bannerPulse 2.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
  flex-shrink: 0;
}

@keyframes bannerPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.banner-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.banner-main-title {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.banner-sub-desc {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-right-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.banner-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(241, 245, 249, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(226, 232, 240, 0.9);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.platform-showcase-banner:hover .banner-tech-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.banner-tech-chip svg {
  color: #10b981;
}

/* КНОПКА «УЗНАТЬ БОЛЬШЕ» В ТОМ ЖЕ ИЗЫСКАННОМ СТИЛЕ */
.banner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
}

.platform-showcase-banner:hover .banner-action-btn {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
}

.banner-arrow-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-showcase-banner:hover .banner-arrow-icon {
  transform: translateX(4px);
}

/* Dark theme support for showcase banner */
[data-theme="dark"] .platform-showcase-banner,
.dark-theme .platform-showcase-banner,
.dark .platform-showcase-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .platform-showcase-banner:hover,
.dark-theme .platform-showcase-banner:hover,
.dark .platform-showcase-banner:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .platform-showcase-banner .banner-main-title,
.dark-theme .platform-showcase-banner .banner-main-title,
.dark .platform-showcase-banner .banner-main-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .platform-showcase-banner .banner-sub-desc,
.dark-theme .platform-showcase-banner .banner-sub-desc,
.dark .platform-showcase-banner .banner-sub-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .platform-showcase-banner .banner-badge-pill,
.dark-theme .platform-showcase-banner .banner-badge-pill,
.dark .platform-showcase-banner .banner-badge-pill {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.32) !important;
  color: #6ee7b7 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .platform-showcase-banner .banner-tech-chip,
.dark-theme .platform-showcase-banner .banner-tech-chip,
.dark .platform-showcase-banner .banner-tech-chip {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .platform-showcase-banner .banner-action-btn,
.dark-theme .platform-showcase-banner .banner-action-btn,
.dark .platform-showcase-banner .banner-action-btn {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}

/* ==========================================================================
   ПОИСКОВАЯ СТРОКА С БЕЗУПРЕЧНЫМ ОПТИЧЕСКИМ ВЫРАВНИВАНИЕМ ЛУПЫ (TRUE FLEXBOX)
   ========================================================================== */

.search-input-wrapper {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 16px 0 18px !important;
  overflow: hidden;
}

.dark .search-input-wrapper, [data-theme="dark"] .search-input-wrapper {
  background: rgba(30, 41, 59, 0.82) !important;
  border: 1.5px solid rgba(51, 65, 85, 0.85) !important;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.3) !important;
}

.search-input-wrapper:hover {
  border-color: rgba(203, 213, 225, 1) !important;
  box-shadow: 0 10px 32px -4px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.02) !important;
}

.search-input-wrapper:focus-within {
  border-color: rgba(99, 102, 241, 0.65) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.12), 0 12px 32px -4px rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-0.5px);
}

.dark .search-input-wrapper:focus-within, [data-theme="dark"] .search-input-wrapper:focus-within {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(129, 140, 248, 0.7) !important;
  box-shadow: 0 0 0 3.5px rgba(129, 140, 248, 0.18), 0 12px 32px -4px rgba(0, 0, 0, 0.4) !important;
}

/* Фиксированный оптический контейнер иконки лупы */
.search-icon-centered {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px;
  height: 24px;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  pointer-events: none;
  transform: translateY(0.5px) !important;
}

.search-icon-svg,
.search-icon {
  color: #94a3b8;
  display: block;
  width: 20px;
  height: 20px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

#search-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 120px 0 0 !important; /* Безопасный отступ справа под ненавязчивую плашку */
  border: none !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  display: block !important;
  transition: padding 0.2s ease;
}

/* Когда введен текст — отдаем максимум ширины под символы */
.search-input-wrapper.has-query #search-input {
  padding-right: 42px !important;
}

#search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.search-input-wrapper:focus-within .search-icon-svg {
  color: #4f46e5;
  transform: scale(1.08);
}

.dark .search-input-wrapper:focus-within .search-icon-svg {
  color: #818cf8;
}

.search-clear-btn {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 3;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.search-clear-btn:hover {
  background: rgba(100, 116, 139, 0.28);
  color: #0f172a;
  transform: translateY(-50%) scale(1.08);
}

.search-clear-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.dark .search-clear-btn, [data-theme="dark"] .search-clear-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.dark .search-clear-btn:hover, [data-theme="dark"] .search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

@media (max-width: 640px) {
  #search-input {
    padding-right: 36px !important; /* На мобилке компактная искра справа */
    font-size: 14px !important;
  }
  .search-clear-btn {
    right: 10px;
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   6. ПАНЕЛЬ РАСШИРЕННЫХ ФИЛЬТРОВ И СОРТИРОВКИ (APPLE GLASS CONTROL BAR)
   ========================================================================== */

/* Базовые стили для десктопа и ноутбуков (от 800px): единая ровная строка без разрывов */
.advanced-filters-bar {
  max-width: 1280px;
  margin: 10px auto 6px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.filters-geo-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.filters-view-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Управление адаптивным отображением текстов кнопок карты и сортировки */
.map-text-full {
  display: inline;
}
.map-text-short,
.map-text-compact {
  display: none;
}

.sort-text-full {
  display: inline;
}
.sort-text-short {
  display: none;
}

/* Компактный десктоп и средние экраны (1025px - 1239px): убираем лишний текст в карте, сохраняя полную сортировку */
@media (max-width: 1239px) and (min-width: 1025px) {
  .advanced-filters-bar {
    padding: 0 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  .filters-geo-cluster,
  .filters-view-cluster {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .filter-location-btn {
    padding: 4px 8px 4px 5px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }
  .filter-loc-prefix {
    display: none !important;
  }
  .filter-loc-city {
    max-width: 140px !important;
    font-size: 12px !important;
  }
  .filter-loc-icon-wrap {
    width: 24px !important;
    height: 24px !important;
  }
  .filters-radius-group {
    padding: 3px 4px !important;
    gap: 2px !important;
  }
  .radius-label {
    display: none !important;
  }
  .radius-chip {
    padding: 4px 7px !important;
    font-size: 11.5px !important;
  }
  .map-text-full {
    display: none !important;
  }
  .map-text-short {
    display: inline !important; /* 'Скрыть' при открытой, 'Развернуть' при свернутой */
  }
  .map-text-compact {
    display: none !important;
  }
  .sort-buttons-row {
    padding: 3px !important;
    gap: 3px !important;
  }
  .sort-btn-text {
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .sort-text-full {
    display: inline !important; /* Полные фразы 'Сначала новые' и 'Сначала ближе' */
  }
  .sort-text-short {
    display: none !important;
  }
  .btn-sort-date,
  .btn-sort-dist {
    padding: 4px 9px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
  .apple-map-toggle-pill {
    padding: 5px 10px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }
}

/* Премиальная Apple Glass капсула локации / объекта */
.filter-location-btn {
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 244, 0.82) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  white-space: nowrap;
  padding: 5px 10px 5px 6px;
  border-radius: 14px;
  color: #064e3b;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.1), 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 1.5px rgba(255, 255, 255, 1);
  min-width: 0;
  width: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-location-btn:hover {
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(135deg, #ffffff 0%, rgba(236, 253, 245, 0.95) 100%);
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.22), inset 0 1px 2px #fff;
  transform: translateY(-1px);
}

.filter-location-btn:active {
  transform: translateY(0);
}

.filter-loc-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12);
  transition: all 0.2s ease;
}

.filter-loc-icon-wrap svg {
  stroke: currentColor !important;
  transition: stroke 0.2s ease;
}

.filter-location-btn:hover .filter-loc-icon-wrap {
  background: #10b981;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.filter-location-btn:hover .filter-loc-icon-wrap svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.filter-loc-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  min-width: 0;
}

.filter-loc-prefix {
  font-size: 11.5px;
  color: #059669;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.filter-loc-city {
  font-weight: 750;
  color: #0f172a;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.filter-loc-edit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
  margin-left: 2px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-location-btn:hover .filter-loc-edit-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: scale(1.08);
}

/* Dark mode для кнопки локации */
.dark .filter-location-btn,
[data-theme="dark"] .filter-location-btn {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(6, 78, 59, 0.35) 100%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: #a7f3d0;
}

.dark .filter-location-btn:hover,
[data-theme="dark"] .filter-location-btn:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(6, 95, 70, 0.5) 100%);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 6px 22px -2px rgba(16, 185, 129, 0.25);
}

.dark .filter-loc-city,
[data-theme="dark"] .filter-loc-city {
  color: #f8fafc;
}

.dark .filter-loc-prefix,
[data-theme="dark"] .filter-loc-prefix {
  color: #34d399;
}

/* Радиус поиска: компактный сегментированный Apple pill */
.filters-radius-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
}

.radius-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  padding-left: 6px;
  white-space: nowrap;
}

.radius-chips-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.radius-chip {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.radius-chip:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.radius-chip.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 750 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1) !important;
}

/* Сортировка: Сегментированный переключатель Apple Segmented Control */
.sort-buttons-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
}

.btn-sort-date,
.btn-sort-dist {
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
}

.sort-btn-text {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-sort-date:hover,
.btn-sort-dist:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.btn-sort-date.active,
.btn-sort-dist.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
  font-weight: 750;
}

.btn-sort-date.active svg {
  color: #6366f1;
}

.btn-sort-dist.active svg {
  color: #059669;
}

/* Умная динамическая стеклянная капсула сброса фильтров (Apple Frosted Glass) */
.smart-filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 6px 12px 6px 10px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  order: 2.5;
  margin-left: 8px;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: scale(0.92) translateY(2px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.smart-filter-reset-btn.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.smart-filter-reset-btn:hover {
  background: #ffffff;
  color: #dc2626;
  border-color: #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.smart-filter-reset-btn:hover .reset-icon-svg {
  transform: rotate(-45deg);
  color: #dc2626;
}

.smart-filter-reset-btn:hover .reset-count-badge {
  background: #fee2e2;
  color: #dc2626;
}

.smart-filter-reset-btn:active {
  transform: scale(0.96);
}

.smart-filter-reset-btn.is-resetting .reset-icon-svg {
  animation: resetSpinAnim 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resetSpinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.reset-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.reset-btn-text {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.reset-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.filters-radius-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  order: 3;
  margin-left: auto;
}

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

.radius-chips-row {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(241, 245, 249, 0.85);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.radius-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  user-select: none;
  white-space: nowrap;
}

.dark-theme .radius-label,
[data-theme="dark"] .radius-label,
.dark .radius-label {
  color: #94a3b8;
}

.dark-theme .radius-chips-row,
[data-theme="dark"] .radius-chips-row,
.dark .radius-chips-row {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.8);
}

.radius-chip {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.radius-chip:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.radius-chip.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dark-theme .radius-chip.active,
[data-theme="dark"] .radius-chip.active,
.dark .radius-chip.active {
  background: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Умный смарт-баннер переключения при смене физической локации */
.smart-geo-diff-banner {
  max-width: 1280px;
  margin: 10px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.smart-geo-inner {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-sizing: border-box;
}

.smart-geo-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.smart-geo-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.smart-geo-content {
  flex: 1;
  min-width: 0;
}

.smart-geo-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

.smart-geo-title strong {
  color: #059669;
  font-weight: 700;
}

.smart-geo-dist-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.smart-geo-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}

.smart-geo-btn-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.smart-geo-btn-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.smart-geo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.smart-geo-btn-switch {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  font-family: inherit;
  flex: 1 1 auto;
  min-height: 38px;
  text-align: center;
}

.smart-geo-btn-switch span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-geo-btn-switch:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.smart-geo-btn-keep {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-family: inherit;
  flex: 1 1 auto;
  min-height: 38px;
  text-align: center;
}

.smart-geo-btn-keep span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-geo-btn-keep:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* На экранах ПК делаем горизонтальное размещение */
@media (min-width: 768px) {
  .smart-geo-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .smart-geo-header {
    flex: 1;
    align-items: center;
  }

  .smart-geo-actions {
    width: auto;
    flex-shrink: 0;
  }

  .smart-geo-btn-switch,
  .smart-geo-btn-keep {
    flex: 0 0 auto;
  }

  .smart-geo-btn-close {
    order: 3;
    margin-left: 4px;
  }
}

/* На узких смартфонах (до 480px) */
@media (max-width: 480px) {
  .smart-geo-diff-banner {
    padding: 0 10px;
  }

  .smart-geo-inner {
    padding: 12px 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .smart-geo-actions {
    flex-direction: column;
    gap: 8px;
  }

  .smart-geo-btn-switch,
  .smart-geo-btn-keep {
    width: 100%;
    min-height: 40px;
  }

  .smart-geo-title {
    font-size: 13px;
  }

  .smart-geo-sub {
    font-size: 11.5px;
  }
}

/* Dark Theme Support */
[data-theme="dark"] .smart-geo-inner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .smart-geo-badge-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

[data-theme="dark"] .smart-geo-title {
  color: #f8fafc;
}

[data-theme="dark"] .smart-geo-title strong {
  color: #a5b4fc;
}

[data-theme="dark"] .smart-geo-dist-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

[data-theme="dark"] .smart-geo-sub {
  color: #94a3b8;
}

[data-theme="dark"] .smart-geo-btn-keep {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .smart-geo-btn-keep:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .smart-geo-btn-close {
  color: #64748b;
}

[data-theme="dark"] .smart-geo-btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

/* Гео-баннер подсказка */
#geo-banner {
  display: none;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-bottom: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.05);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. КАРТА LEAFLET И ПОПАПЫ
   ========================================================================== */

.map-wrapper-shelf {
  max-width: 1280px;
  width: 100%;
  margin: 12px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.map-container {
  width: 100%;
  margin: 0;
  padding: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
  max-height: 500px;
  box-sizing: border-box;
}

.map-container.map-collapsed {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ APPLE GLASS ПЕРЕКЛЮЧАТЕЛЬ КАРТЫ (EXPAND / COLLAPSE)
   ========================================================================== */
.apple-map-toggle-pill,
.map-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #1e293b;
  padding: 6px 13px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 1);
  white-space: nowrap;
}

.apple-map-toggle-pill:hover,
.map-toggle-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.1), inset 0 1px 1.5px rgba(255, 255, 255, 1);
}

.apple-map-toggle-pill:active,
.map-toggle-chip:active {
  transform: translateY(0);
}

/* 1. Когда карта РАЗВЕРНУТА (Active) — легкий полупрозрачный акцент */
.apple-map-toggle-pill.active,
.map-toggle-chip.active {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(203, 213, 225, 0.95) !important;
  color: #1e293b !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), inset 0 1px 1.5px rgba(255, 255, 255, 1) !important;
}

.apple-map-toggle-pill.active .map-pill-action,
.map-toggle-chip.active .map-pill-badge {
  background: rgba(241, 245, 249, 0.95);
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* 2. Когда карта СВЕРНУТА (Collapsed) — мягкий изумрудный Apple Glass акцент, привлекающий внимание */
.apple-map-toggle-pill.collapsed,
.map-toggle-chip.collapsed {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(240, 253, 244, 0.9) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  color: #065f46 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18), inset 0 1px 1.5px rgba(255, 255, 255, 0.9) !important;
  font-weight: 700 !important;
}

.apple-map-toggle-pill.collapsed:hover,
.map-toggle-chip.collapsed:hover {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.98) 0%, rgba(220, 252, 231, 0.95) 100%) !important;
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.28) !important;
}

.apple-map-toggle-pill.collapsed .map-pill-action,
.map-toggle-chip.collapsed .map-pill-badge {
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.map-pill-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: mapPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.apple-map-toggle-pill.collapsed .map-pulse-dot {
  background: #059669;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.9);
  animation: mapPulseFast 1.4s infinite ease-in-out;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes mapPulseFast {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.map-pill-title {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.map-pill-action {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.map-pill-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.apple-map-toggle-pill.collapsed .map-pill-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.dark .apple-map-toggle-pill,
[data-theme="dark"] .apple-map-toggle-pill,
.dark .map-toggle-chip,
[data-theme="dark"] .map-toggle-chip {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
}

#map { 
  height: 380px; 
  width: 100%; 
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  position: relative;
  background: #0f172a; /* Глубокий темный фон исключает белые вспышки при загрузке плиток */
  transition: opacity 0.3s ease;
  contain: layout paint;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Плавная быстрая анимация загрузки тайлов карты без морганий */
.leaflet-tile {
  image-rendering: auto;
}

.leaflet-container {
  background: #0f172a !important;
}

.premium-enhanced-map {
  position: relative;
}

/* Всплывающие карточки на карте (VisionOS Glassmorphism Popups) */
.custom-map-popup {
  margin-bottom: 6px;
}

.custom-map-popup .leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.custom-map-popup .leaflet-popup-tip-container {
  width: 24px;
  height: 12px;
}

.custom-map-popup .leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.88) !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 0 !important;
  border-left: 0 !important;
}

.custom-map-popup .leaflet-popup-content {
  margin: 13px !important;
  line-height: 1.35 !important;
  width: 285px !important;
  max-width: calc(100vw - 36px) !important;
}

.custom-map-popup .leaflet-popup-close-button {
  color: #cbd5e1 !important;
  font-size: 15px !important;
  top: 10px !important;
  right: 10px !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  z-index: 10 !important;
}

.custom-map-popup .leaflet-popup-close-button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.08) !important;
}

.custom-map-popup .leaflet-popup-close-button:active {
  transform: scale(0.92) !important;
}

.map-popup-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.map-popup-action-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   СУПЕР-МАРКЕРЫ КАРТЫ (FUTURISTIC 3D NEUMORPHIC PINS — APPLE MAPS VISIONOS)
   ========================================================================== */
.lot-micro-pin-wrap, .super-map-pin-wrapper {
  background: none !important;
  border: none !important;
}

.lot-micro-pin, .super-map-pin {
  position: relative;
  width: 36px;
  height: 44px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Сонарная волна радара - ТОЛЬКО ПРИ НАВЕДЕНИИ / КЛИКЕ (В ПОКОЕ 0% АНИМАЦИИ) */
.lot-micro-pin::before, .super-map-pin::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease;
}

/* Пульсация ДОПУСКАЕТСЯ ИСКЛЮЧИТЕЛЬНО при наведении курсора */
.lot-micro-pin:hover::before, .super-map-pin:hover::before {
  opacity: 1;
  animation: superPinSonar 1.8s infinite ease-out;
}

@keyframes superPinSonar {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.4); opacity: 0.9; }
  100% { transform: translate3d(-50%, -50%, 0) scale(1.5); opacity: 0; }
}

.micro-pin-core, .super-pin-head {
  position: relative;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2.5px solid #ffffff;
  z-index: 2;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.micro-pin-tip, .super-pin-tip {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #1d4ed8;
  margin-top: -3px;
  z-index: 1;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
  transition: border-top-color 0.25s ease;
}

.lot-micro-pin:hover, .super-map-pin:hover {
  transform: translateY(-6px) scale(1.18);
  z-index: 9999 !important;
}

.lot-micro-pin:hover .micro-pin-core, .super-map-pin:hover .super-pin-head {
  background: linear-gradient(135deg, #60a5fa 0%, #1e40af 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.6);
}

/* 1. БЕСПЛАТНЫЕ ЛОТЫ НА КАРТЕ — ИЗУМРУДНЫЙ НАСЫЩЕННЫЙ ЦВЕТ */
.lot-micro-pin.is-free-pin .micro-pin-core, .super-map-pin.is-free-pin .super-pin-head {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
  border: 2.5px solid #ffffff !important;
}

.lot-micro-pin.is-free-pin .micro-pin-tip, .super-map-pin.is-free-pin .super-pin-tip {
  border-top-color: #059669 !important;
}

.lot-micro-pin.is-free-pin:hover .micro-pin-core, .super-map-pin.is-free-pin:hover .super-pin-head {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%) !important;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.6) !important;
}

/* 2. СВОИ ОБЪЯВЛЕНИЯ НА КАРТЕ — ЭЛЕКТРИЧЕСКИЙ ЦИАН / МОРСКИЙ АВАМАРИН (ЯРКИЙ, ПОЗИТИВНЫЙ, ПРЕМИАЛЬНЫЙ СТАТУС В СТИЛЕ APPLE VISIONOS) */
.super-map-pin.is-my-pin .super-pin-head {
  background: linear-gradient(135deg, #22d3ee 0%, #0284c7 100%) !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(6, 182, 212, 0.45), 0 8px 22px rgba(2, 132, 199, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
}

.super-map-pin.is-my-pin .super-pin-tip {
  border-top-color: #0284c7 !important;
}

.super-map-pin.is-my-pin:hover .super-pin-head {
  background: linear-gradient(135deg, #67e8f9 0%, #0369a1 100%) !important;
  box-shadow: 0 0 0 4.5px rgba(6, 182, 212, 0.6), 0 12px 28px rgba(2, 132, 199, 0.65), inset 0 2px 5px rgba(255, 255, 255, 0.8) !important;
}

/* Скрываем буквенный тег ВЫ */
.super-pin-owner-tag, .vehicle-pin-owner-tag {
  display: none !important;
}

/* В покое никакой пульсации */
.super-map-pin.is-my-pin::before {
  opacity: 0;
}

/* При наведении — плавная сонарная волнообразная пульсация */
.super-map-pin.is-my-pin:hover::before {
  opacity: 1;
  background: rgba(6, 182, 212, 0.25);
  border: 1.5px solid rgba(6, 182, 212, 0.55);
  animation: superPinSonar 1.8s infinite ease-out !important;
}

.vehicle-map-pin-elite.is-my-vehicle-pin {
  background: linear-gradient(135deg, #22d3ee 0%, #0284c7 100%) !important;
  border: 2.5px solid #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3.5px rgba(6, 182, 212, 0.45), 0 8px 22px rgba(2, 132, 199, 0.5) !important;
}

.vehicle-map-pin-elite.is-my-vehicle-pin .vehicle-pin-inner-icon {
  color: #ffffff !important;
}

.vehicle-pin-owner-tag {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #0f172a;
  color: #f5d0fe;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1;
  padding: 2.5px 5.5px;
  border-radius: 6px;
  border: 1.5px solid rgba(245, 208, 254, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 10;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.map-popup-owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2px 7px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 6px;
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 750;
  margin-bottom: 4px;
}

/* Маяк пользователя: Моя локация (Высокотехнологичный Cyber Cyan + Emerald) */
.user-beacon-marker {
  background: none !important;
  border: none !important;
  pointer-events: none !important;
}

.user-beacon-container {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
}

.user-beacon-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.22);
  border: 2px solid rgba(6, 182, 212, 0.85);
  animation: beaconPulse 2.2s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}

.user-beacon-wave-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 1.5px solid rgba(16, 185, 129, 0.9);
  animation: beaconPulse 2.2s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
  animation-delay: 0.6s;
  pointer-events: none;
}

@keyframes beaconPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

.user-beacon-dot {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.8), 0 4px 12px rgba(15, 23, 42, 0.25);
  z-index: 2;
  position: relative;
}

.user-beacon-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.user-beacon-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 1.2s infinite alternate;
}

@keyframes liveDotPulse {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.elite-map-marker {
  background: none;
  border: none;
}

.elite-pin {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -3px rgba(79, 70, 229, 0.5);
  border: 2.5px solid #ffffff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elite-pin:hover {
  transform: rotate(-45deg) scale(1.18);
  box-shadow: 0 12px 24px -3px rgba(79, 70, 229, 0.65);
}

.elite-pin-inner {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  transform: rotate(45deg);
}

/* Маркер пользователя */
.elite-user-marker {
  background: none;
  border: none;
}

/* Кластеры меток */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(79, 70, 229, 0.25) !important;
  border-radius: 50% !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
}

/* ==========================================================================
   8. ХАБ КАТАЛОГА (DISCOVERY HUB) И КАТЕГОРИИ
   ========================================================================== */

.catalog-discovery-hub {
  max-width: 1280px;
  margin: 8px auto 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.catalog-discovery-hub .categories-bar,
.categories-bar {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 4px 0 6px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .categories-bar-wrapper,
  .subcategories-bar-wrapper {
    justify-content: flex-start;
  }
  .categories-bar,
  .subcategories-bar {
    justify-content: flex-start;
  }
}

.categories-bar-wrapper,
.subcategories-bar-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.cat-bar-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0; /* Скрыто по умолчанию, показываем только при прокрутке */
}

.cat-bar-fade.visible {
  opacity: 1;
}

.cat-bar-fade.left {
  left: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
}

.cat-bar-fade.right {
  right: 0;
  background: linear-gradient(to left, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
}

.cat-bar-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-bar-arrow.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.cat-bar-arrow:hover {
  background: #ffffff;
  color: #2563eb;
  border-color: #3b82f6;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.cat-bar-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.cat-bar-arrow.left {
  left: -12px;
}

.cat-bar-arrow.right {
  right: -12px;
}

.cat-bar-arrow.mini {
  width: 26px;
  height: 26px;
}

@media (max-width: 767px) {
  .cat-bar-arrow {
    display: none !important;
  }
}

.categories-bar::-webkit-scrollbar { 
  display: none; 
}

.category-chip {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-family: inherit;
  outline: none;
  flex-shrink: 0;
}

.category-chip:hover {
  border-color: rgba(148, 163, 184, 0.8);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.07);
}

.category-chip:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.category-chip.active {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 3px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(79, 70, 229, 0.3);
}

.category-chip .cat-chip-icon {
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-chip .cat-chip-icon:not(.cat-mini-render) {
  color: #64748b;
}

.category-chip:hover .cat-chip-icon:not(.cat-mini-render) {
  color: #0f172a;
}

.category-chip.active .cat-chip-icon:not(.cat-mini-render) {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* 3D Glass & Isometric Mini-Renders in chips */
.category-chip .cat-chip-icon.cat-mini-render {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transform: translateZ(0);
}

.category-chip:hover .cat-chip-icon.cat-mini-render {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.category-chip.active .cat-chip-icon.cat-mini-render {
  transform: translateY(-0.5px) scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28)) brightness(1.05);
}

/* Dark mode for categories */
.dark .category-chip, [data-theme="dark"] .category-chip {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.8);
  color: #94a3b8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.dark .category-chip .cat-chip-icon:not(.cat-mini-render), [data-theme="dark"] .category-chip .cat-chip-icon:not(.cat-mini-render) {
  color: #94a3b8;
}

.dark .category-chip:hover, [data-theme="dark"] .category-chip:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(100, 116, 139, 0.9);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dark .category-chip:hover .cat-chip-icon:not(.cat-mini-render), [data-theme="dark"] .category-chip:hover .cat-chip-icon:not(.cat-mini-render) {
  color: #ffffff;
}

.dark .category-chip.active, [data-theme="dark"] .category-chip.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(99, 102, 241, 0.35);
}

/* Visual 2-Step Category Picker */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.cat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  user-select: none;
}

.cat-card:hover {
  background: #ffffff;
  border-color: #a5b4fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.cat-card.selected {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 14px rgba(99, 102, 241, 0.15);
}

.cat-card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-card-icon-box svg {
  max-width: 32px;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
  overflow: visible;
}

.cat-card-icon-box svg.cat-mini-render {
  max-width: 36px;
  max-height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cat-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.subcat-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcat-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.subcat-pill:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

.subcat-pill.selected {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.subcat-pill.is-other {
  border-style: dashed;
  border-color: #cbd5e1;
  color: #64748b;
}

.subcat-pill.is-other.selected {
  background: #475569;
  color: #ffffff;
  border-style: solid;
}

.dark .cat-card, [data-theme="dark"] .cat-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.9);
}

.dark .cat-card-title, [data-theme="dark"] .cat-card-title {
  color: #f1f5f9;
}

.dark .subcat-pill, [data-theme="dark"] .subcat-pill {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.9);
  color: #cbd5e1;
}

.dark .subcat-pill.selected, [data-theme="dark"] .subcat-pill.selected {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* Subcategories Bar (2nd Level) */
.subcategories-bar {
  max-width: 100%;
  margin: 0;
  padding: 4px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(241, 245, 249, 0.65);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInSubcats 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subcategories-bar::-webkit-scrollbar {
  display: none;
}

@keyframes fadeInSubcats {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategory-chip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: inherit;
}

.subcategory-chip:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

.subcategory-chip.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.dark .subcategories-bar, [data-theme="dark"] .subcategories-bar {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.7);
}

.dark .subcategory-chip, [data-theme="dark"] .subcategory-chip {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.9);
  color: #cbd5e1;
}

.dark .subcategory-chip:hover, [data-theme="dark"] .subcategory-chip:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(100, 116, 139, 0.9);
  color: #ffffff;
}

.dark .subcategory-chip.active, [data-theme="dark"] .subcategory-chip.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* ==========================================================================
   9. СУПЕР СОВРЕМЕННЫЙ ДИЗАЙН КАРТОЧЕК ЛОТОВ (LOT CARDS)
   ========================================================================== */

#lots-container { 
  padding: 10px 20px 20px 20px; 
  max-width: 1280px; 
  margin: 0 auto; 
}

#lots-list, .lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  contain: layout style;
}

.lot-card { 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px; 
  border: 1px solid rgba(226, 232, 240, 0.85); 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  padding: 10px;
  box-sizing: border-box;
  height: 100%;
}

.dark .lot-card, [data-theme="dark"] .lot-card {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

.lot-card:active {
  transform: scale(0.984);
}

@media (hover: hover) {
  .lot-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.18), 0 8px 18px -6px rgba(15, 23, 42, 0.08); 
    border-color: rgba(99, 102, 241, 0.4);
  }

  .dark .lot-card:hover, [data-theme="dark"] .lot-card:hover {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
  }
}

.lot-img-wrap {
  width: 100%;
  height: 205px;
  background: #f8fafc;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.dark .lot-img-wrap, [data-theme="dark"] .lot-img-wrap {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.7);
}

/* ==========================================================================
   ВЫДЕЛЕНИЕ СОБСТВЕННЫХ ОБЪЯВЛЕНИЙ (APPLE GLASS LUXURY AURA)
   ========================================================================== */
.lot-card.is-my-lot {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 255, 0.95) 100%);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(99, 102, 241, 0.04);
}

.lot-card.is-my-lot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #38bdf8 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.9;
  z-index: 2;
}

.dark .lot-card.is-my-lot, [data-theme="dark"] .lot-card.is-my-lot {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.lot-owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7.5px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  color: #4f46e5;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .lot-owner-pill, [data-theme="dark"] .lot-owner-pill {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(165, 180, 252, 0.35);
  color: #c7d2fe;
}

.vehicle-card.is-my-vehicle {
  border-color: rgba(79, 70, 229, 0.35) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 255, 0.95) 100%) !important;
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(79, 70, 229, 0.04) !important;
  position: relative;
}

.vehicle-card.is-my-vehicle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.9;
  z-index: 2;
}

.vehicle-owner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 9px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   АДАПТАЦИЯ ДЛЯ СМАРТФОНОВ (MOBILE RESPONSIVE)
   ========================================================================== */

@media (max-width: 768px) {
  /* Аппаратная оптимизация для плавного 120fps тач-скролла на мобильных */
  #header {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }
  body.dark-theme #header {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  /* Оптимизация карточек на мобильных: шелковый 120fps скролл без потери дизайна */
  .lot-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: transform 0.15s ease, border-color 0.15s ease !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    content-visibility: visible !important;
    contain: none !important;
  }
  body.dark-theme .lot-card, [data-theme="dark"] .lot-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #1e293b !important;
    border: 1px solid rgba(51, 65, 85, 0.9) !important;
  }
  .lot-card:active {
    transform: scale(0.982) !important;
  }
  .lot-photo-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.9) !important;
  }
  .favorite-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }
  .photo-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.88) !important;
  }
  .btn-quick-view, .btn-quick-view-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.88) !important;
  }
  .platform-showcase-banner {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
  .advanced-filters-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  /* Фильтры: пропорциональный двухрядный Apple Glass бар для планшетов и ноутбуков (без пустых дыр и без вылетов) */
  .advanced-filters-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .filters-geo-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .filters-geo-cluster .filter-location-btn {
    flex: 1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 12px 6px 8px !important;
  }

  .filters-geo-cluster .filters-radius-group {
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    margin: 0 !important;
  }

  .filters-geo-cluster .radius-chips-row {
    display: flex !important;
    gap: 3px !important;
  }

  .filters-geo-cluster .radius-chip {
    padding: 5px 8px !important;
    font-size: 12px !important;
  }

  .filters-view-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .filters-view-cluster .apple-map-toggle-pill {
    flex: 1 !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    order: 1 !important;
  }

  .map-text-full {
    display: inline !important; /* 'Скрыть карту' / 'Показать карту' */
  }
  .map-text-short,
  .map-text-compact {
    display: none !important;
  }

  .filters-view-cluster .sort-buttons-row {
    flex: 1.4 !important;
    display: flex !important;
    padding: 3.5px !important;
    order: 2 !important;
    gap: 3px !important;
  }

  .filters-view-cluster .sort-buttons-row > button {
    flex: 1 !important;
    justify-content: center !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }

  .sort-text-full {
    display: inline !important; /* 'Сначала новые' и 'Сначала ближе' */
  }
  .sort-text-short {
    display: none !important;
  }

  .smart-filter-reset-btn {
    margin: 0 !important;
    order: 3 !important;
  }
}

@media (max-width: 640px) {
  /* Шапка: компактнее */
  #header {
    padding: 10px 16px !important;
  }
  .header-container {
    gap: 8px;
  }
  .header-right {
    gap: 8px;
  }
  .btn-add-lot {
    padding: 8px 12px;
    font-size: 12px;
  }

  .advanced-filters-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filters-geo-cluster {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .filter-location-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 12px 6px 8px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .filter-location-btn .filter-loc-text {
    justify-content: flex-start !important;
  }

  .filter-location-btn .filter-loc-city {
    max-width: calc(100vw - 160px) !important;
  }

  .filters-radius-group {
    width: 100% !important;
    display: flex !important;
    padding: 3px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  .radius-label {
    display: none !important;
  }

  .radius-chips-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 3px !important;
    width: 100% !important;
  }

  .radius-chips-row .radius-chip {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 7px 0 !important;
    font-size: 11.5px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }

  .filters-view-cluster {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .apple-map-toggle-pill {
    flex-shrink: 0 !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }

  .map-text-compact {
    display: inline !important; /* 'Карта' */
  }
  .map-text-full,
  .map-text-short {
    display: none !important;
  }

  .sort-buttons-row {
    flex: 1 !important;
    display: flex !important;
    gap: 2px !important;
    padding: 3px !important;
    min-width: 0 !important;
  }

  .sort-buttons-row > button {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-size: 11.5px !important;
    min-width: 0 !important;
  }

  .sort-btn-text {
    font-size: 11.5px !important;
    letter-spacing: -0.02em;
    white-space: nowrap !important;
  }

  .smart-filter-reset-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
  }
}

/* Смартфоны от 401px до 640px: полные названия сортировки */
@media (max-width: 640px) and (min-width: 401px) {
  .sort-text-full {
    display: inline !important;
  }
  .sort-text-short {
    display: none !important;
  }
}

/* Узкие смартфоны до 400px (iPhone SE и др.): компактные названия сортировки, предотвращающие наложение и перенос */
@media (max-width: 400px) {
  .apple-map-toggle-pill {
    padding: 7px 8px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
  }
  .sort-buttons-row > button {
    padding: 6.5px 3px !important;
    font-size: 11.5px !important;
  }
  .sort-text-full {
    display: none !important;
  }
  .sort-text-short {
    display: inline !important;
  }
}

.adaptive-photo-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: photoShimmer 1.6s infinite linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Полная остановка анимации и градиента после загрузки изображения */
.adaptive-photo-container.photo-loaded {
  animation: none !important;
  background: #f8fafc !important;
}

.dark .adaptive-photo-container, [data-theme="dark"] .adaptive-photo-container {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

.dark .adaptive-photo-container.photo-loaded, [data-theme="dark"] .adaptive-photo-container.photo-loaded {
  animation: none !important;
  background: #1e293b !important;
}

@keyframes photoShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Скрываем подложку размытия в карточках для чистой картинки */
.adaptive-photo-bg {
  display: none !important;
}

/* Основной резкий слой, полностью заполняющий контейнер без боковых полос */
.adaptive-photo-main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot-card:hover .adaptive-photo-main,
.my-item-media:hover .adaptive-photo-main,
.deal-media:hover .adaptive-photo-main {
  transform: scale(1.05);
}

.lot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot-card:hover .lot-img {
  transform: scale(1.05);
}

/* Бейджи на карточке */
.photo-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Кнопка «Быстрый просмотр» */
.btn-quick-view {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  z-index: 5;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .btn-quick-view {
    opacity: 0;
    transform: translateY(4px);
  }
  .lot-card:hover .btn-quick-view {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-quick-view:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-quick-view svg {
  width: 14px;
  height: 14px;
}

/* Кнопка «В Избранное» (Сердце с анимацией) */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  z-index: 10;
  padding: 0;
}

.favorite-btn:hover {
  transform: scale(1.12);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.favorite-btn.active {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  fill: transparent;
  stroke-width: 2;
  transition: all var(--transition-normal);
}

.favorite-btn:hover svg {
  stroke: #0f172a;
}

.favorite-btn.active svg {
  stroke: #ef4444;
  fill: #ef4444;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.35));
}

.favorite-btn.just-added {
  animation: heartButtonSpring 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.favorite-btn.just-added svg {
  animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartButtonSpring {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  65% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Контент карточки */
.lot-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px 4px 2px 4px;
  justify-content: space-between;
  min-width: 0;
}

.lot-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  min-height: 22px;
  min-width: 0;
}

.lot-time-ago {
  font-size: 11px;
  font-weight: 550;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .lot-time-ago, [data-theme="dark"] .lot-time-ago {
  color: #64748b;
}

.lot-title { 
  margin: 0 0 5px 0; 
  font-size: 14.5px; 
  font-weight: 750; 
  color: #0f172a; 
  line-height: 1.32;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 38px;
  max-height: 38px;
  transition: color 0.2s ease;
}

.dark .lot-title, [data-theme="dark"] .lot-title {
  color: #f8fafc;
}

.lot-card:hover .lot-title {
  color: #4f46e5;
}

.dark .lot-card:hover .lot-title, [data-theme="dark"] .lot-card:hover .lot-title {
  color: #818cf8;
}

/* Премиальная загородная капсула локации в стиле Apple Glass (VisionOS / iOS) */
.lot-location-row {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 11.5px;
  color: #475569;
  background: rgba(248, 250, 252, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 3px 8px 3px 5px;
  border-radius: 9999px;
  margin-bottom: 7px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.lot-card:hover .lot-location-row {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 3px 8px -1px rgba(99, 102, 241, 0.12), inset 0 1px 0 #ffffff;
  transform: translateY(-0.5px);
}

.dark .lot-location-row, [data-theme="dark"] .lot-location-row {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark .lot-card:hover .lot-location-row, [data-theme="dark"] .lot-card:hover .lot-location-row {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lot-loc-pin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  flex-shrink: 0;
}

.dark .lot-loc-pin-wrap, [data-theme="dark"] .lot-loc-pin-wrap {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.lot-loc-pin-wrap svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
}

.lot-location-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.lot-loc-settlement {
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 160px;
}

.dark .lot-loc-settlement, [data-theme="dark"] .lot-loc-settlement {
  color: #f1f5f9;
}

.lot-loc-divider {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.65;
  user-select: none;
}

.lot-loc-district {
  color: #64748b;
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.dark .lot-loc-district, [data-theme="dark"] .lot-loc-district {
  color: #94a3b8;
}

.lot-desc { 
  margin: 0 0 8px 0; 
  color: #64748b; 
  font-size: 12px; 
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 32px;
  flex-shrink: 0;
}

.dark .lot-desc, [data-theme="dark"] .lot-desc {
  color: #94a3b8;
}

/* Стеклянный оверлей расстояния на фотографии (iOS Aero Glass) */
.lot-photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  line-height: 1;
  transition: all 0.25s ease;
}
.lot-photo-badge svg { flex-shrink: 0; stroke: #38bdf8; filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.6)); }

/* Дифференциация по дальности */
.lot-photo-badge.dist-tier-close {
  background: rgba(6, 78, 59, 0.85);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
  color: #ecfdf5;
}
.lot-photo-badge.dist-tier-close svg {
  stroke: #34d399;
  filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.8));
}

.lot-photo-badge.dist-tier-neighbor {
  background: rgba(30, 58, 138, 0.82);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  color: #eff6ff;
}
.lot-photo-badge.dist-tier-neighbor svg {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.8));
}

.lot-photo-badge.dist-tier-far {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}
.lot-photo-badge.dist-tier-far svg {
  stroke: #38bdf8;
}

/* Плавающие элементы поверх фото */
.lot-photo-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 6;
  pointer-events: none;
}

.lot-photo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lot-photo-dot.active {
  width: 14px;
  border-radius: 4px;
  background: #ffffff;
}

.lot-photo-hover-zones {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 4;
}

.lot-photo-hover-zone {
  flex: 1;
  height: 100%;
  cursor: pointer;
}

@media (hover: none) {
  .lot-photo-hover-zones {
    display: none !important;
  }
}

.btn-quick-view-glass {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-quick-view-glass:hover {
  background: rgba(99, 102, 241, 0.88);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.lot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  gap: 8px;
  height: 40px;
  box-sizing: border-box;
}

.dark .lot-footer, [data-theme="dark"] .lot-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.lot-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lot-action-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.dark .lot-action-arrow, [data-theme="dark"] .lot-action-arrow {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.lot-card:hover .lot-action-arrow {
  background: #6366f1;
  color: #ffffff;
  transform: translateX(3px);
}

.dark .lot-card:hover .lot-action-arrow {
  background: #818cf8;
  color: #0f172a;
}

.lot-price { 
  font-weight: 850; 
  color: #0f172a; 
  font-size: 18px; 
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lot-price .currency-sign {
  font-size: 0.9em;
  margin-left: 2px;
  font-weight: 700;
  color: #64748b;
}

.dark .lot-price .currency-sign, [data-theme="dark"] .lot-price .currency-sign {
  color: #94a3b8;
}

.lot-price.big-price {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.dark .lot-price, [data-theme="dark"] .lot-price {
  color: #f8fafc;
}

.lot-price.free {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.1px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.dark .lot-price.free, [data-theme="dark"] .lot-price.free {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.lot-badges-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.1px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 26px;
  box-sizing: border-box;
}

.dark .views-badge, [data-theme="dark"] .views-badge {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.distance-badge:not(.lot-photo-badge) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4338ca;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 26px;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.dark .distance-badge:not(.lot-photo-badge), [data-theme="dark"] .distance-badge:not(.lot-photo-badge) {
  background: rgba(79, 70, 229, 0.22);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.25);
}

.distance-badge:hover {
  background: #e0e7ff;
}

.distance-badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   10. СТРАНИЦА ПРОСМОТРА ОБЪЯВЛЕНИЯ (ITEM.HTML)
   ========================================================================== */

.main-container,
.container, 
.form-container { 
  max-width: 840px; 
  margin: 24px auto 60px auto; 
  padding: 0 20px; 
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  border: 1.5px solid var(--border-color);
  overflow: visible;
  padding: 32px;
}

/* ==========================================================================
   11. ФОРМЫ (ADD.HTML, PROFILE.HTML)
   ========================================================================== */

label { 
  display: block; 
  margin-top: 18px; 
  font-weight: 700; 
  font-size: 12px; 
  color: #475569; 
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

input:not([type="hidden"]):not([type="checkbox"]), 
textarea, 
select { 
  width: 100%; 
  padding: 12px 16px; 
  margin-top: 6px; 
  border: 1.5px solid #e2e8f0; 
  border-radius: 12px; 
  box-sizing: border-box; 
  font-size: 15px; 
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

/* Reset for auth modal inputs so they are perfectly flat and aligned */
.auth-card label,
.auth-card .auth-field-group label,
.auth-card .auth-field-header-row label,
.auth-card .auth-checkbox-label {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #334155 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.auth-card .auth-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-weight: normal !important;
  text-transform: none !important;
  cursor: pointer !important;
}

.auth-card input:not([type="checkbox"]):not([type="hidden"]),
.auth-input-wrapper input {
  width: 100% !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 14px 0 0 !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  color: #0f172a !important;
  outline: none !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
}

.auth-card input:focus,
.auth-input-wrapper input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

input:focus, 
textarea:focus, 
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

#map-select { 
  height: 280px; 
  border-radius: 14px; 
  margin-top: 10px; 
  border: 1.5px solid var(--border-color);
}

button[type="submit"] { 
  width: 100%; 
  margin-top: 24px; 
  padding: 14px; 
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); 
  color: #ffffff; 
  border: none; 
  border-radius: 14px; 
  font-size: 16px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.38);
}

button[type="submit"]:disabled { 
  background: #94a3b8; 
  transform: none;
  box-shadow: none;
  cursor: not-allowed; 
}

.upload-trigger-btn {
  width: 100%; 
  padding: 14px; 
  background: #f8fafc; 
  color: var(--primary); 
  border: 2px dashed #cbd5e1; 
  border-radius: 14px; 
  font-weight: 700; 
  cursor: pointer; 
  margin-top: 6px; 
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.upload-trigger-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

#photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #f1f5f9;
  cursor: grab;
  user-select: none;
}

.preview-item.main { 
  border-color: var(--accent-emerald); 
}

.preview-img-wrap { 
  width: 100%; 
  height: 100%; 
  position: relative; 
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-img-wrap img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  pointer-events: none; 
  position: relative;
  z-index: 2;
}

.preview-img-wrap .adaptive-photo-bg {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px) !important;
  height: calc(100% + 20px) !important;
  object-fit: cover !important;
  filter: blur(12px) brightness(0.6);
  opacity: 0.8;
  z-index: 1;
}

.preview-remove {
  position: absolute; 
  top: 4px; 
  right: 4px;
  background: rgba(239, 68, 68, 0.85); 
  color: white;
  border: none; 
  border-radius: 50%; 
  width: 22px; 
  height: 22px;
  font-size: 14px; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 10;
}

.preview-badge {
  position: absolute; 
  bottom: 4px; 
  left: 4px;
  background: var(--accent-emerald); 
  color: white; 
  font-size: 10px; 
  padding: 2px 6px; 
  border-radius: 6px; 
  font-weight: 700;
}

/* ==========================================================================
   12. МОДАЛЬНЫЕ ОКНА И ГАЛЕРЕЯ
   ========================================================================== */

#image-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 10000;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
}

.modal-content-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 1200px;
  max-height: calc(100dvh - 120px);
  margin: auto;
  overflow: hidden;
}

.img-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}

#modal-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.close-btn:hover { 
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

.modal-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10010;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 16px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  transition: all var(--transition-fast);
  font-size: 22px;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

@media (max-width: 640px) {
  #image-modal {
    padding: 12px 8px 14px 8px;
  }
  .modal-content-wrap {
    max-height: calc(100dvh - 110px);
  }
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .modal-prev { left: 6px; }
  .modal-next { right: 6px; }
  .close-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .modal-counter {
    top: 14px;
    font-size: 12px;
    padding: 4px 12px;
  }
}

.modal-thumbs-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  max-width: 100%;
  height: 60px;
  flex-shrink: 0;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.modal-thumbs-container::-webkit-scrollbar {
  display: none;
}

.modal-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.55;
  transition: all var(--transition-fast);
  background: #0f172a;
}

.modal-thumb-item.active {
  opacity: 1;
  border-color: #10b981;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#success-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.success-modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: successModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes successModalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.success-modal-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.success-modal-content p {
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.success-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.success-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.success-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   13. ЛИЧНЫЙ КАБИНЕТ (PROFILE.HTML) & МОИ ОБЪЯВЛЕНИЯ
   ========================================================================== */

.profile-page {
  padding: 24px 0 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.profile-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.tab-btn:hover {
  color: var(--primary);
  background: #f1f5f9;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Эффектные счетчики и пузыри в личном кабинете (WOW BADGES) */
@keyframes wowPulseGlowIndigo {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); transform: scale(1); }
}

@keyframes wowPulseGlowRose {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); transform: scale(1); }
}

@keyframes wowPulseGlowSky {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(14, 165, 233, 0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); transform: scale(1); }
}

@keyframes wowPulseGlowAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); transform: scale(1); }
}

.wow-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.wow-badge-indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}

.wow-badge-rose {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.45);
  animation: wowPulseGlowRose 2.2s infinite ease-in-out;
}

.wow-badge-sky {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
  animation: none;
}

.wow-badge-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  animation: wowPulseGlowAmber 2.2s infinite ease-in-out;
}

.wow-badge-emerald {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.wow-badge-slate {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.25);
}

.tab-btn.active .wow-badge {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  border: none !important;
  animation: none !important;
}

.tab-btn.active .wow-badge-indigo {
  color: #4f46e5 !important;
}

.tab-btn.active .wow-badge-sky {
  color: #0284c7 !important;
}

.tab-btn.active .wow-badge-rose {
  color: #e11d48 !important;
}

.tab-btn.active .wow-badge-amber {
  color: #d97706 !important;
}

.tab-btn.active .wow-badge-emerald {
  color: #059669 !important;
}

.tab-btn.active .wow-badge-slate {
  color: #475569 !important;
}

/* Базовый класс .badge-count для совместимости */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  background: #e2e8f0;
  color: #475569;
  box-sizing: border-box;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.tab-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.tab-btn:not(.active):hover .badge-count {
  background: #cbd5e1;
  color: #1e293b;
}

/* Кнопки подвкладок сделок ("Я отдаю" / "Я забираю") */
.subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.subtab-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

.subtab-btn:not(.active) {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1.5px solid #e2e8f0 !important;
}

.subtab-btn:not(.active):hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wow-subtab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  animation: wowPulseGlowAmber 2s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.subtab-btn.active .wow-subtab-badge {
  background: #ffffff;
  color: #d97706;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.settings-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border: 1.5px solid var(--border-color);
  width: 100%;
}

/* Фильтры подвкладок в "Моих объявлениях" */
.item-filter-btn {
  background: #f8fafc;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.item-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.item-filter-btn.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
}

.item-filter-btn .filter-count {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.item-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Сетка карточек моих объявлений */
.my-items-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.my-item-card {
  display: flex;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  padding: 1.25rem;
  gap: 1.25rem;
  box-sizing: border-box;
}

.my-item-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Медиа блок карточки */
.my-item-media {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 140px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.my-item-media .adaptive-photo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.my-item-card:hover .my-item-media img.adaptive-photo-main {
  transform: scale(1.04);
}

.my-item-photo-count {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  font-family: monospace;
}

.my-item-top-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* Информация в карточке */
.my-item-body {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.my-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.my-item-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.my-item-title:hover {
  color: #059669;
}

.my-item-price {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.my-item-price.free {
  color: #10b981;
}

.my-item-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.my-item-category-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.my-item-condition-tag {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.my-item-address {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-item-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Метаданные (дата, просмотры, заявки) */
.my-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
  flex-wrap: wrap;
}

.my-item-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Панель действий */
.my-item-actions-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-left: none;
  min-width: 140px;
  width: 140px;
}

.my-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.my-action-btn.btn-view {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}
.my-action-btn.btn-view:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.my-action-btn.btn-edit {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}
.my-action-btn.btn-edit:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.my-action-btn.btn-archive {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}
.my-action-btn.btn-archive:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.my-action-btn.btn-unarchive {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.my-action-btn.btn-unarchive:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.my-action-btn.btn-delete {
  background: #fff5f5;
  color: #dc2626;
  border-color: #fecaca;
}
.my-action-btn.btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* ==========================================================================
   СТИЛИ ДЛЯ РАЗНЫХ СОСТОЯНИЙ ЛОТОВ (АРХИВ, МОДЕРАЦИЯ, ОТКЛОНЕНО)
   ========================================================================== */

/* Карточка в архиве */
.my-item-card.is-archived {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-style: dashed;
}

.my-item-card.is-archived .my-item-media img {
  filter: grayscale(45%) opacity(0.75);
}

.my-item-card.is-archived .my-item-title {
  color: #64748b;
}

.my-item-card.is-archived .my-item-actions-panel {
  background: #f1f5f9;
  border-left-color: #cbd5e1;
}

.archived-notice-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Карточка отклонена */
.my-item-card.is-rejected {
  border-color: #fca5a5;
}

.rejected-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Карточка на модерации */
.my-item-card.is-moderation {
  border-color: #fcd34d;
}

.moderation-notice-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Статус-чипы */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.status-chip.active { background: #10b981; color: #ffffff; }
.status-chip.pending, .status-chip.moderation { background: #f59e0b; color: #ffffff; }
.status-chip.booked { background: #3b82f6; color: #ffffff; }
.status-chip.archived { background: #64748b; color: #ffffff; }
.status-chip.rejected { background: #ef4444; color: #ffffff; }

/* Пустое состояние */
.my-items-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  color: #64748b;
}

.my-items-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.my-items-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.my-items-empty-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .my-item-card {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .my-item-media {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 160px;
  }
  .my-item-actions-panel {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 4px;
    gap: 6px;
  }
  .my-action-btn {
    flex: 1 1 calc(50% - 4px);
  }
}

/* Стили для расширенного Избранного и Сделок */
.fav-summary-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.fav-summary-stats strong {
  color: #0f172a;
}

/* ==========================================================================
   FAVORITES PRO APPLE GLASS SYSTEM (PREMIUM DESIGN FOR CABINET & MOBILE)
   ========================================================================== */

/* Header & Summary Stats */
.fav-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.fav-hero-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fav-hero-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
}

.fav-hero-title {
  margin: 0 0 3px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.fav-hero-desc {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.4;
}

.fav-hero-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fav-summary-stats-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.fav-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fav-stat-label {
  color: #94a3b8;
  font-weight: 500;
}

.fav-stat-divider {
  opacity: 0.35;
}

.fav-stat-sum {
  color: #059669;
  font-weight: 800;
}

.fav-clear-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 14px;
  color: #e11d48;
  background: rgba(255, 241, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(254, 205, 211, 0.9);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fav-clear-btn-glass:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.fav-clear-btn-glass:active {
  transform: scale(0.97);
}

/* Controls Bar & Apple Glass Pills */
.fav-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.fav-filters-scroll {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 5px;
  background: rgba(241, 245, 249, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.fav-filters-scroll::-webkit-scrollbar {
  display: none;
}

.fav-filter-pill,
.item-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fav-filter-pill:hover,
.item-filter-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.fav-filter-pill.active,
.item-filter-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.fav-filter-count,
.filter-count {
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  transition: all 0.2s ease;
}

.fav-filter-pill.active .fav-filter-count,
.item-filter-btn.active .filter-count {
  background: #0f172a;
  color: #ffffff;
}

.fav-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: nowrap;
}

/* Glass Search Input */
.fav-search-wrap {
  position: relative;
  width: 240px;
  height: 40px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 12px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 !important;
}

.fav-search-wrap:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(59, 130, 246, 0.06);
}

.fav-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  pointer-events: none;
}

.fav-search-wrap input,
#favSearchInput,
.fav-search-input,
.my-items-search-wrap input,
#dealsSearchInput,
#myItemsSearch {
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 38px 0 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  min-width: 0;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}

.fav-search-wrap input:focus,
#favSearchInput:focus,
.fav-search-input:focus,
.my-items-search-wrap input:focus,
#dealsSearchInput:focus,
#myItemsSearch:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.fav-search-wrap input::placeholder,
.fav-search-input::placeholder,
.my-items-search-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* Glass Clear Search Button */
.fav-search-clear-btn,
#favSearchClear,
#myItemsSearchClear,
#dealsSearchClear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

.fav-search-clear-btn:hover,
#favSearchClear:hover,
#myItemsSearchClear:hover,
#dealsSearchClear:hover {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.35);
}

.fav-search-clear-btn:active,
#favSearchClear:active,
#myItemsSearchClear:active,
#dealsSearchClear:active {
  transform: translateY(-50%) scale(0.9);
}

/* Glass Sort Dropdown */
.fav-sort-dropdown {
  position: relative;
  width: auto;
}

.fav-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.fav-sort-trigger:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.fav-sort-trigger-icon {
  display: flex;
  align-items: center;
  color: #2563eb;
}

.fav-sort-chevron {
  color: #64748b;
  transition: transform 0.2s ease;
}

.fav-sort-dropdown.open .fav-sort-chevron {
  transform: rotate(180deg);
}

.fav-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.03);
  padding: 6px;
  z-index: 100;
  display: none;
  animation: favDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fav-sort-dropdown.open .fav-sort-menu {
  display: block;
}

@keyframes favDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fav-sort-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fav-sort-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.fav-sort-item.selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.fav-sort-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-sort-check {
  display: none;
  color: #2563eb;
}

.fav-sort-item.selected .fav-sort-check {
  display: block;
}

/* ==========================================================================
   FAVORITES CARDS GRID & APPLE GLASS CARDS
   ========================================================================== */
.fav-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.fav-glass-card {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.fav-glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}

.fav-glass-card.fav-card-removing {
  opacity: 0 !important;
  transform: scale(0.95) translateY(-8px) !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

/* Card Media */
.fav-card-media-wrap {
  width: 175px;
  min-width: 175px;
  max-width: 175px;
  height: 175px;
  margin: 14px 0 14px 14px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
  flex-shrink: 0;
}

.fav-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.fav-card-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.fav-glass-card:hover .fav-card-media-link img {
  transform: scale(1.04);
}

.fav-card-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Quick Un-favorite Heart Button on Photo */
.fav-card-heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e11d48;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.fav-card-heart-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.fav-card-heart-btn:active {
  transform: scale(0.92);
}

.fav-card-photo-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card Content */
.fav-card-content {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.fav-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fav-card-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fav-card-price {
  font-size: 19px;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fav-card-price.is-free {
  color: #10b981;
}

.fav-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.fav-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-card-title a:hover {
  color: #2563eb;
}

.fav-card-details-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fav-card-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.fav-card-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.fav-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.fav-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
  flex-wrap: wrap;
}

.fav-card-submeta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.fav-card-date,
.fav-card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.fav-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #0f172a;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.fav-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.fav-btn-primary:active {
  transform: scale(0.97);
}

.fav-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.fav-btn-icon:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}

.fav-btn-icon:active {
  transform: scale(0.92);
}

.fav-btn-icon.fav-btn-remove {
  color: #e11d48;
  border-color: rgba(254, 205, 211, 0.85);
  background: rgba(255, 241, 242, 0.7);
}

.fav-btn-icon.fav-btn-remove:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Empty & Loading States (Apple Glass) */
.fav-empty-glass {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  margin: 10px 0;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.03);
}

.fav-empty-icon-glass {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 241, 242, 0.8);
  border: 1px solid rgba(254, 205, 211, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #e11d48;
}

.fav-empty-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.fav-empty-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 auto 20px;
  max-width: 420px;
  line-height: 1.5;
}

.fav-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  background: #0f172a;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.fav-empty-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.fav-loading-glass {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
}

.fav-loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #e11d48;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

.fav-loading-text {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

/* Modal Clear Favorites (Apple Glass) */
.fav-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: favFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fav-modal-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  animation: favScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes favFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes favScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.fav-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fav-modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.fav-modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
}

.fav-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.fav-modal-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px;
}

.fav-modal-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fav-modal-btn-danger {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  background: #e11d48;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.fav-modal-btn-danger:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.fav-modal-btn-cancel {
  width: 100%;
  min-height: 40px;
  padding: 10px;
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fav-modal-btn-cancel:hover {
  color: #0f172a;
}

/* ==========================================================================
   MOBILE & APPLE DEVICE ADAPTATIONS
   ========================================================================== */
@media (max-width: 900px) {
  .fav-controls-bar {
    gap: 12px;
  }
  .fav-actions-group {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .fav-search-wrap {
    flex: 1;
    width: auto;
    min-width: 170px;
  }
}

@media (max-width: 768px) {
  .fav-hero-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
  .fav-hero-actions-bar {
    justify-content: space-between;
    width: 100%;
  }
  .fav-summary-stats-glass {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }
  .fav-clear-btn-glass {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .fav-glass-card {
    flex-direction: column;
    border-radius: 18px;
  }
  .fav-card-media-wrap {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 190px;
    margin: 0;
    border-radius: 18px 18px 0 0;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  }
  .fav-card-content {
    padding: 16px;
  }
  .fav-card-meta-row {
    margin-bottom: 8px;
  }
  .fav-card-title {
    font-size: 16px;
  }
  .fav-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
  }
  .fav-card-submeta {
    justify-content: space-between;
    width: 100%;
  }
  .fav-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .fav-btn-primary {
    flex: 1;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13.5px;
  }
  .fav-btn-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .fav-hero-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  .fav-hero-actions-bar {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .fav-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .fav-filters-scroll {
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .fav-filters-scroll::-webkit-scrollbar {
    display: none;
  }
  .fav-actions-group {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .fav-search-wrap {
    width: 100%;
    height: 44px; /* Apple Human Interface Guidelines 44px touch target */
    border-radius: 14px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .fav-search-wrap input,
  .fav-search-input {
    font-size: 16px !important; /* iOS Safari auto-zoom killer */
    padding-right: 38px !important;
  }
  .fav-sort-dropdown,
  .fav-sort-trigger {
    width: 100% !important;
    height: 44px !important;
    border-radius: 14px;
  }
  .fav-sort-trigger {
    justify-content: space-between;
    padding: 0 14px;
  }
  .fav-sort-menu {
    left: 0;
    right: 0;
    min-width: 100%;
    border-radius: 16px;
    z-index: 100;
  }
  .fav-sort-item {
    min-height: 44px;
    font-size: 14.5px;
    padding: 10px 14px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   DARK THEME SUPPORT (APPLE GLASS DARK)
   ========================================================================== */
body.dark-theme .fav-hero-title {
  color: #f8fafc;
}
body.dark-theme .fav-hero-desc {
  color: #94a3b8;
}
body.dark-theme .fav-hero-icon-box {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.3);
}
body.dark-theme .fav-summary-stats-glass {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(51, 65, 85, 0.75);
  color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.dark-theme .fav-clear-btn-glass {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.35);
  color: #fb7185;
}
body.dark-theme .fav-clear-btn-glass:hover {
  background: #e11d48;
  color: #ffffff;
}
body.dark-theme .fav-filters-scroll {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.75);
}
body.dark-theme .fav-filter-pill:hover,
body.dark-theme .item-filter-btn:hover {
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.6);
}
body.dark-theme .fav-filter-pill.active,
body.dark-theme .item-filter-btn.active {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
  border-color: rgba(100, 116, 139, 0.6);
}
body.dark-theme .fav-filter-count,
body.dark-theme .filter-count {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
body.dark-theme .fav-filter-pill.active .fav-filter-count,
body.dark-theme .item-filter-btn.active .filter-count {
  background: #ffffff;
  color: #0f172a;
}
body.dark-theme .fav-search-wrap,
body.dark-theme .fav-sort-trigger {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.75);
  color: #f8fafc;
}
body.dark-theme .fav-search-wrap input {
  color: #f8fafc;
}
body.dark-theme .fav-sort-menu {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.5);
}
body.dark-theme .fav-sort-item {
  color: #cbd5e1;
}
body.dark-theme .fav-sort-item:hover {
  background: rgba(51, 65, 85, 0.7);
  color: #f8fafc;
}
body.dark-theme .fav-sort-item.selected {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}
body.dark-theme .fav-glass-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(51, 65, 85, 0.75);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dark-theme .fav-glass-card:hover {
  border-color: rgba(71, 85, 105, 0.9);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.4);
}
body.dark-theme .fav-card-media-wrap {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.75);
}
body.dark-theme .fav-card-heart-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
}
body.dark-theme .fav-card-title a {
  color: #f8fafc;
}
body.dark-theme .fav-card-title a:hover {
  color: #60a5fa;
}
body.dark-theme .fav-card-desc,
body.dark-theme .fav-card-details-row {
  color: #94a3b8;
}
body.dark-theme .fav-card-footer {
  border-color: rgba(51, 65, 85, 0.7);
}
body.dark-theme .fav-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}
body.dark-theme .fav-btn-primary:hover {
  background: #2563eb;
}
body.dark-theme .fav-btn-icon {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
}
body.dark-theme .fav-btn-icon:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}
body.dark-theme .fav-btn-icon.fav-btn-remove {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.35);
  color: #fb7185;
}
body.dark-theme .fav-empty-glass,
body.dark-theme .fav-loading-glass {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(51, 65, 85, 0.75);
}
body.dark-theme .fav-empty-title {
  color: #f8fafc;
}
body.dark-theme .fav-empty-desc {
  color: #94a3b8;
}
body.dark-theme .fav-empty-btn {
  background: #3b82f6;
}
body.dark-theme .fav-modal-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(51, 65, 85, 0.85);
}
body.dark-theme .fav-modal-title {
  color: #f8fafc;
}
body.dark-theme .fav-modal-desc {
  color: #94a3b8;
}
body.dark-theme .fav-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
body.dark-theme .fav-modal-btn-cancel {
  color: #94a3b8;
}
body.dark-theme .fav-modal-btn-cancel:hover {
  color: #ffffff;
}


/* Карточки сделок */
.deal-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  min-height: 175px;
}

.deal-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.deal-media {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  position: relative;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: stretch;
  flex-shrink: 0;
}

.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-media .adaptive-photo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.deal-body {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.deal-participant-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deal-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.deal-phone-link:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
  .deal-card {
    flex-direction: column;
  }
  .deal-media {
    width: 100%;
    min-width: 100%;
    height: 160px;
  }
}

/* ==========================================================================
   14. ПАНЕЛЬ МОДЕРАЦИИ (ADMIN-MODERATION.HTML) — COMMAND CENTER
   ========================================================================== */

.admin-page {
  max-width: 1240px;
  margin: 24px auto;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 22px 28px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04), 0 8px 10px -6px rgba(0,0,0,0.02);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dark .admin-header,
[data-theme="dark"] .admin-header {
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.85) 100%);
  border-color: rgba(51, 65, 85, 0.8);
  color: #f8fafc;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-avatar {
  font-size: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.dark .admin-avatar,
[data-theme="dark"] .admin-avatar {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  color: #818cf8;
}

.admin-info-text h1 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dark .admin-info-text h1,
[data-theme="dark"] .admin-info-text h1 {
  color: #f8fafc;
}

.admin-info-text p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

/* KPI Metrics Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.dark .admin-kpi-card,
[data-theme="dark"] .admin-kpi-card {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.kpi-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.kpi-icon-wrapper.lots { background: #e0f2fe; color: #0284c7; }
.kpi-icon-wrapper.pending { background: #fef3c7; color: #d97706; }
.kpi-icon-wrapper.users { background: #dcfce7; color: #15803d; }
.kpi-icon-wrapper.reviews { background: #f3e8ff; color: #7e22ce; }

.dark .kpi-icon-wrapper.lots { background: rgba(2, 132, 199, 0.2); }
.dark .kpi-icon-wrapper.pending { background: rgba(217, 119, 6, 0.2); }
.dark .kpi-icon-wrapper.users { background: rgba(21, 128, 61, 0.2); }
.dark .kpi-icon-wrapper.reviews { background: rgba(126, 34, 206, 0.2); }

.kpi-content {
  flex: 1;
  min-width: 0;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dark .kpi-value,
[data-theme="dark"] .kpi-value {
  color: #f8fafc;
}

.kpi-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.kpi-badge.pulse {
  background: #fef3c7;
  color: #b45309;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Главная навигация админки (Top Admin Nav) */
.admin-nav-bar {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 20px;
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}

.dark .admin-nav-bar,
[data-theme="dark"] .admin-nav-bar {
  background: #1e293b;
  border-color: #334155;
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.dark .admin-nav-btn:hover {
  color: #f8fafc;
  background: #334155;
}

.admin-nav-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.admin-nav-btn .badge-pill {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
}

.admin-nav-btn:not(.active) .badge-pill {
  background: #e2e8f0;
  color: #475569;
}

.dark .admin-nav-btn:not(.active) .badge-pill {
  background: #334155;
  color: #94a3b8;
}

/* Стилизация подвкладок модерации (.admin-tabs) */
.admin-tabs {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.dark .admin-tabs,
[data-theme="dark"] .admin-tabs {
  background: #1e293b;
  border-color: #334155;
}

.admin-tabs .tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.admin-tabs .tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.dark .admin-tabs .tab-btn:hover {
  color: #f8fafc;
  background: #334155;
}

.admin-tabs .tab-btn.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

/* Карточка лота в админке */
.admin-lot-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.admin-lot-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.dark .admin-lot-card,
[data-theme="dark"] .admin-lot-card {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

/* Карточка пользователя */
.admin-user-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

.admin-user-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.dark .admin-user-card,
[data-theme="dark"] .admin-user-card {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.role-badge.admin { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.role-badge.moderator { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.role-badge.user { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.dark .role-badge.admin { background: rgba(180, 83, 9, 0.25); color: #fde68a; }
.dark .role-badge.moderator { background: rgba(67, 56, 202, 0.25); color: #c7d2fe; }
.dark .role-badge.user { background: rgba(71, 85, 105, 0.25); color: #cbd5e1; }

/* Адаптивность панели модерации под мобильные устройства */
@media (max-width: 900px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-page {
    padding: 0 12px;
    margin: 16px auto;
  }

  .admin-header {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admin-kpi-card {
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .kpi-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .kpi-value {
    font-size: 20px;
  }

  .admin-lot-card {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }

  .admin-lot-card > div:first-child {
    width: 100% !important;
    height: 180px !important;
  }

  .admin-user-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-user-card > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.moderation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.moderation-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.moderation-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.moderation-card-image {
  position: relative;
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moderation-card-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.moderation-card-image .adaptive-photo-container {
  width: 100%;
  height: 100%;
}

.moderation-card-content {
  flex: 1;
  min-width: 0;
}

.moderation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.btn-approve, .btn-reject, .btn-edit-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-approve { background: #10b981; color: #fff; }
.btn-approve:hover { background: #059669; }

.btn-reject { background: #fee2e2; color: #dc2626; }
.btn-reject:hover { background: #dc2626; color: #fff; }

.btn-edit-admin { background: #f1f5f9; color: #475569; }
.btn-edit-admin:hover { background: #e2e8f0; color: #0f172a; }

/* ==========================================================================
   15. СТРАНИЦА О ПРОЕКТЕ (ABOUT.HTML) — FULL 1280PX MASTER LAYOUT
   ========================================================================== */

.about-page-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
}

.btn-about-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.btn-about-back:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.about-container {
  max-width: 1280px;
  width: 100%;
  margin: 28px auto 70px auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Bento Hero Layout --- */
.about-hero-bento {
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.about-hero-bento::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(79, 70, 229, 0.03) 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: logoPulse 2s infinite;
}

.about-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero-lead-text {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 14px;
}

.slogan-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4 0%, #eef2ff 100%);
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: auto;
}

.slogan-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.slogan-text {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

/* --- Hero Right Col: Honest Math & Deal Card --- */
.hero-right-col {
  display: flex;
  position: relative;
  z-index: 1;
}

.community-stats-card {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.stats-period {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.deal-math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.deal-party-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.deal-party-box:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.deal-party-box.seller-side {
  border-top: 3px solid #10b981;
}

.deal-party-box.buyer-side {
  border-top: 3px solid #4f46e5;
}

.party-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.party-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.seller-side .party-badge { color: #059669; }
.buyer-side .party-badge { color: #4f46e5; }

.party-icon {
  font-size: 15px;
}

.party-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.party-list li {
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
  position: relative;
  padding-left: 11px;
}

.party-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: #10b981;
  font-weight: bold;
  font-size: 13px;
}

.buyer-side .party-list li::before {
  color: #4f46e5;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

/* --- Common About Section Styling --- */
.about-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.02);
}

.section-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-icon-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.section-subdesc {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-bubble.glow-bubble {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* --- Mission Grid Layout --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

.mission-manifest-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.manifest-accent-quote {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.quote-mark {
  font-size: 28px;
  color: #10b981;
  line-height: 0.8;
  font-family: Georgia, serif;
  font-weight: bold;
}

.manifest-accent-quote p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
  font-weight: 600;
  margin: 0;
}

.manifest-footer-text {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.mission-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.benefit-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

.benefit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.benefit-icon {
  font-size: 18px;
}

.benefit-head h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.benefit-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

/* --- Synergy Showcase Grid (Examples of Mutual Benefit) --- */
.synergy-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.synergy-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.synergy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #10b981, #4f46e5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.synergy-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.05);
}

.synergy-card:hover::before {
  opacity: 1;
}

.synergy-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.synergy-icon-badge {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.synergy-card-top h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.synergy-roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.synergy-role-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.35;
}

.role-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  min-width: 58px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.giver-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.taker-pill {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.synergy-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 7px;
  align-self: flex-start;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --- Interactive Calculator --- */
.interactive-calc-wrapper {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
}

.calc-tabs-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.calc-tab {
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-tab:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.calc-tab.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.calc-result-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calc-metric-col {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.calc-metric-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-metric-value {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.calc-metric-value.text-emerald { color: #059669; }
.calc-metric-value.text-indigo { color: #4f46e5; }

.calc-metric-sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* --- Guarantee & Steps --- */
.section-intro {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 24px;
}

.guarantee-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.guarantee-feature-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guarantee-feature-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.feature-num {
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  background: #ecfdf5;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.guarantee-feature-item h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.guarantee-feature-item p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.tier-grid-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.tier-grid-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 20px;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.tier-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.08);
}

.tier-badge-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.popular-tier {
  border: 2px solid #10b981;
  background: #f0fdf4;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.tier-price {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.tier-name {
  font-size: 16px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 10px;
}

.tier-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.tier-footnote {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #475569;
}

/* --- Money Breakdown & Split box --- */
.money-explanation-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
}

.money-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 24px;
}

.split-info-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.split-column {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
}

.split-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.split-icon {
  font-size: 20px;
}

.split-column h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.split-column p {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.protection-callout {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 18px;
  padding: 20px 24px;
}

.protection-callout h4 {
  font-size: 16px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.protection-callout p {
  font-size: 14px;
  color: #047857;
  line-height: 1.55;
  margin: 0;
}

/* --- FAQ Accordion --- */
.about-faq-container {
  margin-top: 32px;
  border-top: 1.5px solid #e2e8f0;
  padding-top: 28px;
}

.faq-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
}

.faq-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: #10b981;
  background: #ffffff;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

.faq-arrow {
  font-size: 18px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #10b981;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* --- Disclaimer Section --- */
.disclaimer-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 24px;
}

.rules-flex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.rule-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
}

.rule-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.rule-box h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.rule-box p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.trust-summary-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 100%);
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 18px 24px;
  font-size: 14.5px;
  color: #1e293b;
  line-height: 1.6;
}

/* --- Full-width Footer CTA Banner (1280px) --- */
.about-footer-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-glow-bg {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.25) 0%, rgba(79, 70, 229, 0.1) 60%, transparent 100%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-content-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-btns-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   16. МОБИЛЬНАЯ АДАПТАЦИЯ (RESPONSIVE MASTER)
   ========================================================================== */

@media (max-width: 768px) {
  #header {
    padding: 10px 14px !important;
  }
  
  .logo-icon-wrap,
  .medallion-logo-svg {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
  
  .logo-title {
    font-size: 21px;
  }
  
  .search-section, 
  .hub-mode-switcher-shelf,
  .smart-geo-diff-banner,
  .map-wrapper-shelf,
  .catalog-discovery-hub,
  #lots-container, 
  .container, 
  .form-container { 
    padding-left: 12px; 
    padding-right: 12px; 
  }

  .map-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .catalog-discovery-hub .categories-bar {
    padding: 4px 0 6px 0 !important;
    margin: 0 !important;
  }

  .platform-showcase-banner {
    padding: 9px 12px !important;
    border-radius: 16px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .banner-left-flow {
    gap: 8px !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .banner-badge-pill {
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.02em !important;
    flex-shrink: 0;
  }

  .banner-text-group {
    display: none !important; /* На смартфонах прячем длинный слоган чтобы не резалось многоточием */
  }

  .banner-main-title {
    display: none !important;
  }

  .banner-sub-desc {
    display: none !important;
  }

  .banner-chips-group {
    display: none !important;
  }

  .banner-right-flow {
    margin-left: auto;
    flex-shrink: 0;
  }

  .banner-action-btn {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    border-radius: 9999px !important;
  }

  .search-input-wrapper {
    height: 50px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
  }

  .search-icon-centered {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    transform: translateY(0.5px) !important;
  }

  .search-icon-svg,
  .search-icon {
    width: 18px !important;
    height: 18px !important;
  }

  #search-input {
    font-size: 14px !important;
  }

  #lots-list, .lots-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
  }

  .lot-img-wrap {
    height: 160px;
  }

  .about-container {
    margin: 14px auto 40px auto;
    padding: 0 12px;
    gap: 16px;
  }

  .about-hero-bento {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 18px;
    border-radius: 20px;
  }

  .about-title {
    font-size: 25px;
    margin-bottom: 4px;
  }

  .about-subtitle {
    font-size: 15.5px;
    margin-bottom: 10px;
  }

  .hero-lead-text {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .slogan-banner {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .slogan-text {
    font-size: 12.5px;
  }

  .community-stats-card {
    padding: 16px;
    border-radius: 16px;
  }

  .deal-math-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .deal-party-box {
    padding: 12px;
  }

  .about-section {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .section-icon-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .section-icon-header h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  .section-subdesc {
    font-size: 13px;
  }

  .icon-bubble {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mission-manifest-card {
    padding: 16px;
    border-radius: 14px;
  }

  .manifest-accent-quote p {
    font-size: 13.5px;
  }

  .manifest-footer-text {
    font-size: 12.5px;
  }

  .benefit-card {
    padding: 14px;
    border-radius: 14px;
  }

  .benefit-head h4 {
    font-size: 15px;
  }

  .benefit-card p {
    font-size: 12.5px;
  }

  .synergy-showcase-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .synergy-card {
    padding: 14px;
    border-radius: 14px;
  }

  .synergy-card-top h3 {
    font-size: 15px;
  }

  .synergy-role-row {
    font-size: 12.5px;
  }

  .interactive-calc-wrapper {
    padding: 14px;
    border-radius: 16px;
  }

  .calc-tabs-bar {
    gap: 6px;
    margin-bottom: 14px;
  }

  .calc-tab {
    padding: 7px 10px;
    font-size: 12px;
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .calc-result-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-metric-col {
    padding: 14px;
  }

  .guarantee-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-tiers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tier-card {
    padding: 22px;
    border-radius: 18px;
  }

  .money-explanation-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .split-info-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .split-column {
    padding: 18px;
  }

  .rules-flex-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rule-box {
    padding: 20px;
    border-radius: 18px;
  }

  .about-footer-cta {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .cta-btns-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-cta-main,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .moderation-card {
    flex-direction: column;
  }
  .moderation-card-image {
    width: 100%;
    height: 180px;
  }
  .moderation-actions {
    flex-direction: row;
    width: 100%;
  }
  .moderation-actions button {
    flex: 1;
  }

  .btn-admin .btn-admin-text {
    display: none;
  }
  .btn-admin {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  #lots-list, .lots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  
  .lot-card {
    padding: 8px !important;
    border-radius: 16px !important;
  }

  .lot-img-wrap {
    height: 125px !important;
    border-radius: 12px !important;
  }

  .lot-content {
    padding: 6px 2px 2px 2px !important;
  }

  .lot-meta-row {
    margin-bottom: 4px !important;
    min-height: 20px !important;
  }

  .cat-badge-glass {
    padding: 2.5px 7px !important;
    font-size: 10.5px !important;
  }

  .lot-time-ago {
    font-size: 10px !important;
  }

  .lot-title {
    font-size: 13px !important;
    line-height: 1.28 !important;
    min-height: 33px !important;
    max-height: 33px !important;
    margin-bottom: 3px !important;
  }

  .lot-location-row {
    font-size: 10.5px !important;
    margin-bottom: 4px !important;
  }

  .lot-desc {
    display: none !important;
  }

  .lot-footer {
    padding-top: 6px !important;
  }

  .lot-price {
    font-size: 13.5px !important;
  }

  .lot-price.free {
    font-size: 10.5px !important;
    padding: 2px 6px !important;
  }

  .views-badge {
    font-size: 10px !important;
    padding: 1px 4px !important;
  }

  .lot-action-arrow {
    width: 22px !important;
    height: 22px !important;
  }

  .category-chip {
    padding: 5px 12px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  #lots-list, .lots-grid {
    gap: 8px !important;
  }
  .lot-card {
    padding: 6px !important;
  }
  .lot-img-wrap {
    height: 115px !important;
  }
}

.set-main-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.set-main-btn:hover {
  background: #4f46e5;
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* ==========================================================================
   Стили модуля рейтингов и отзывов (ratings.js)
   ========================================================================== */

.reviews-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.reviews-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.reviews-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.reviews-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.reviews-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.rev-header-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rev-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.rev-user-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rev-header-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.reviews-modal-tabs {
  display: flex;
  background: #f8fafc;
  padding: 6px;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.rev-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rev-tab-btn.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rev-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.rev-breakdown-box {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  align-items: center;
}

@media (max-width: 480px) {
  .rev-breakdown-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rev-score-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
  border-right: 1px solid #e2e8f0;
}

@media (max-width: 480px) {
  .rev-score-hero {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
  }
}

.rev-score-big {
  font-size: 38px;
  font-weight: 900;
  color: #d97706;
  line-height: 1;
}

.rev-bars-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.rev-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.rev-bar-label {
  width: 28px;
  text-align: right;
  white-space: nowrap;
}

.rev-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.rev-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.rev-bar-count {
  width: 20px;
  color: #94a3b8;
  font-size: 11px;
}

.rev-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rev-card-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all var(--transition-fast);
}

.rev-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.rev-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rev-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.rev-item-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rev-item-author {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.rev-item-date {
  font-size: 12px;
  color: #94a3b8;
}

.rev-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.rev-item-tag-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

.rev-item-comment {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-line;
}

/* Форма написания отзыва */
.rev-form-section {
  margin-bottom: 20px;
}

.rev-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-pick-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-pick-btn.active {
  color: #f59e0b;
}

.star-pick-btn:hover {
  transform: scale(1.25);
}

.star-rating-title {
  margin-left: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #b45309;
}

.rev-tags-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rev-tag-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rev-tag-chip.active {
  background: #e0e7ff;
  border-color: #6366f1;
  color: #4338ca;
  font-weight: 700;
}

.rev-form-textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.rev-form-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rev-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Карточка продавца на странице лота */
.seller-info-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.seller-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #e2e8f0;
  flex-shrink: 0;
}

.seller-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-title-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-meta-badge {
  font-size: 12px;
  color: #64748b;
}

.seller-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-btn-reviews {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seller-btn-reviews:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.seller-btn-write {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.seller-btn-write:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* ==========================================================================
   Герой-карточка профиля и аватарка
   ========================================================================== */

.profile-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile-hero-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
}

.hero-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar-box {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #10b981 0%, #4f46e5 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.hero-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.hero-avatar-edit-btn:hover {
  background: #4338ca;
  transform: scale(1.1);
}

.hero-info-body {
  flex: 1;
  min-width: 0;
}

.hero-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .hero-top-row {
    justify-content: center;
  }
}

.hero-user-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hero-tenure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-meta-row {
    justify-content: center;
  }
}

.hero-rating-clickable {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.hero-rating-clickable:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

.hero-dot-sep {
  opacity: 0.4;
  font-size: 10px;
}

.hero-meta-item {
  color: #475569;
}

.hero-actions-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-hero-action {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-hero-action:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-hero-action.text-danger {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.btn-hero-action.text-danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

/* Скрываем старые кнопки добавления из шапки, чтобы не загромождать интерфейс */
.header-right .btn-add-lot,
#header-right .btn-add-lot {
  display: none !important;
}

/* ==========================================
   13. ПАРЯЩАЯ КНОПКА ДОБАВЛЕНИЯ ЛОТА (FAB)
   ========================================== */
.global-fab-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 4500;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  padding: 14px 26px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  animation: fabSoftFloat 4s ease-in-out infinite;
}

.global-fab-btn:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.global-fab-btn:active {
  transform: translateY(-2px) scale(0.97);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.global-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-fab-btn:hover .global-fab-icon {
  transform: rotate(90deg);
}

.global-fab-text {
  letter-spacing: -0.01em;
}

@keyframes fabSoftFloat {
  0% {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Полная адаптация для мобильных */
@media (max-width: 640px) {
  .global-fab-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: fabSoftFloatMobile 4s ease-in-out infinite;
  }
  
  .global-fab-icon svg {
    width: 18px;
    height: 18px;
  }
}

@keyframes fabSoftFloatMobile {
  0% {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
  }
  100% {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  }
}

/* Стильная стеклянная подсказка для зума колесиком на десктопе (Apple Glass Hint Pill) */
.map-wheel-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.map-wheel-hint.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-wheel-hint strong {
  color: #38bdf8;
  font-weight: 750;
}

/* Интуитивная и стильная блокировка взаимодействия с картой (Click-to-Activate) */
.map-interaction-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  z-index: 1000;
  pointer-events: none; /* Пропускает скролл через себя */
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-interaction-overlay.unlocked {
  opacity: 0;
  pointer-events: none;
}

/* Слой для клика по всей области карты */
.map-click-catcher {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
}

.map-interaction-overlay.unlocked .map-click-catcher {
  pointer-events: none;
}

.map-unlock-btn {
  position: relative;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  pointer-events: auto !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.map-unlock-btn svg {
  color: #10b981 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
  transition: all 0.25s ease !important;
}

.map-unlock-btn:hover {
  background: rgba(16, 185, 129, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.map-unlock-btn:hover svg {
  color: #ffffff !important;
  transform: scale(1.15) rotate(5deg) !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Mobile Safety Nets */
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .distance-badge {
    padding: 3px 7px;
    font-size: 11px;
    gap: 4px;
  }
  .distance-badge svg {
    width: 12px;
    height: 12px;
  }
  .username-text {
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }
  .logout-text {
    display: none;
  }
  .btn-logout-header {
    padding: 8px !important;
  }
}

/* ==========================================================================
   17. ЕДИНАЯ ГЕОЛОКАЦИЯ: ШАПКА, МОДАЛЬНОЕ ОКНО И VPN-БАННЕР
   ========================================================================== */

/* Кнопка локации в шапке */
.header-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  user-select: none;
  max-width: 250px;
}

.header-location-pill:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.loc-pill-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.loc-pill-icon-box.is-db {
  background: #ecfdf5;
  color: #10b981;
}

.loc-pill-icon-box.is-gps {
  background: #eef2ff;
  color: #4f46e5;
}

.loc-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
}

.loc-status-dot.dot-db {
  background: #10b981;
}

.loc-status-dot.dot-gps {
  background: #4f46e5;
}

.loc-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.loc-pill-sub {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.loc-pill-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.header-location-pill:hover .loc-pill-title {
  color: #059669;
}

.loc-pill-chevron {
  color: #94a3b8;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.header-location-pill:hover .loc-pill-chevron {
  transform: translateY(1px);
  color: #059669;
}

/* Модальное окно выбора локации */
.location-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loc-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loc-modal-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.loc-modal-title {
  margin: 0 0 2px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.loc-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
}

.loc-modal-close-btn {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #64748b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.loc-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.06);
}

.location-privacy-banner {
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 243, 208, 0.6);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #065f46;
  line-height: 1.45;
}

.loc-privacy-icon-pill {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #059669;
}

.loc-modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Быстрые действия: GPS, Профиль, Центр МО в Apple-стиле */
.loc-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loc-action-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.loc-action-btn-gps {
  background: rgba(16, 185, 129, 0.08);
  border: 1.2px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.loc-action-btn-gps:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.loc-action-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: radarPulse 2s infinite ease-in-out;
}

.loc-action-btn-profile {
  background: rgba(79, 70, 229, 0.07);
  border: 1.2px solid rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

.loc-action-btn-profile:hover {
  background: rgba(79, 70, 229, 0.14);
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.loc-action-btn-reset {
  background: rgba(241, 245, 249, 0.9);
  border: 1.2px solid #e2e8f0;
  color: #475569;
}

.loc-action-btn-reset:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Поиск локации */
.loc-search-box-wrap {
  position: relative;
  width: 100%;
}

.loc-input-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.loc-search-icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0.5px);
  z-index: 3;
}

.loc-modal-input {
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 40px 0 44px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all var(--transition-fast) !important;
  font-family: inherit !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.loc-modal-input:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14) !important;
}

.loc-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
}

.loc-clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* iOS / Apple Toggle Switch для назначения основного адреса */
.loc-primary-toggle-row {
  margin-top: 10px;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.loc-primary-toggle-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.apple-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.apple-switch-text {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-transform: none !important;
}

.apple-switch-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apple-switch-icon {
  font-size: 14px;
}

.apple-switch-title {
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.apple-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.apple-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.apple-switch input:checked + .apple-slider {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.apple-switch input:checked + .apple-slider:before {
  transform: translateX(20px);
}

.loc-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 2500;
  display: none;
}

.loc-suggestion-item {
  padding: 12px 16px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loc-suggestion-item:last-child {
  border-bottom: none;
}

.loc-suggestion-item:hover {
  background: #f0fdf4;
  color: #059669;
}

.loc-suggestion-empty {
  padding: 16px;
  font-size: 13.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

/* Мои загородные объекты */
.loc-presets-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.loc-presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loc-presets-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.loc-presets-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.slots-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЕ ЗАГОРОДНЫЕ СЛОТЫ АДРЕСОВ (APPLE GLASS / VISIONOS)
   ========================================================================== */
.slots-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.apple-slot-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.apple-slot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.12), inset 0 1px 0 #ffffff;
}

.apple-slot-card.is-active {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(240, 253, 250, 0.9) 100%);
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 10px 28px -4px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.apple-slot-card.is-empty {
  border-style: dashed;
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.65);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
}

.apple-slot-card.is-empty:hover {
  border-color: #4f46e5;
  background: rgba(245, 243, 255, 0.7);
}

.apple-slot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.apple-slot-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 3px 9px;
  border-radius: 9999px;
}

.apple-slot-type-badge.active {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.apple-slot-type-badge.empty {
  color: #64748b;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
}

.apple-slot-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.pulse-dot-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: appleLivePulse 1.8s infinite;
}

@keyframes appleLivePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.apple-slot-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-slot-geo-capsule {
  margin-bottom: 6px;
}

.apple-slot-full-addr {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 14px;
}

.apple-slot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.apple-slot-card.is-active .apple-slot-actions {
  border-top-color: rgba(167, 243, 208, 0.8);
}

.apple-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
  box-sizing: border-box;
}

.apple-slot-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  flex: 1;
}

.apple-slot-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.apple-slot-btn-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 750;
  flex: 1;
}

.apple-slot-btn-secondary {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.apple-slot-btn-secondary:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

.apple-slot-btn-danger {
  background: rgba(254, 242, 242, 0.8);
  color: #dc2626;
  border: 1px solid rgba(254, 202, 202, 0.8);
  padding: 8px 10px;
}

.apple-slot-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.apple-slot-empty-title {
  font-size: 14.5px;
  font-weight: 750;
  color: #475569;
  margin-bottom: 4px;
}

.apple-slot-empty-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 240px;
}

.apple-slot-btn-empty {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
  padding: 8px 16px;
  border-radius: 12px;
}

.apple-slot-btn-empty:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.35);
}

/* Dark mode for Apple Slots */
.dark .apple-slot-card, [data-theme="dark"] .apple-slot-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark .apple-slot-card.is-active, [data-theme="dark"] .apple-slot-card.is-active {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.dark .apple-slot-name, [data-theme="dark"] .apple-slot-name {
  color: #f8fafc;
}

.dark .apple-slot-btn-secondary, [data-theme="dark"] .apple-slot-btn-secondary {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(71, 85, 105, 0.8);
  color: #f1f5f9;
}

.slot-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 72px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.slot-card:hover {
  border-color: #4f46e5;
  background: #fafaff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.slot-card.is-active-selection {
  border-color: #4f46e5 !important;
  background: #f5f3ff !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
}

.slot-card-primary {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.slot-card-primary:hover {
  border-color: #4f46e5;
}

.slot-card.is-empty {
  border-style: dashed;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.slot-card.is-empty:hover {
  border-color: #4f46e5;
  background: #fafaff;
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.slot-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
}

.slot-badge-primary {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.14);
  font-weight: 800;
}

.slot-edit-trigger {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.slot-edit-trigger:hover {
  color: #4f46e5;
  background: #eef2ff;
}

.slot-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.slot-card-desc {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.slot-empty-content {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
}

.slot-empty-icon {
  font-size: 11px;
  color: #4f46e5;
}

.slot-empty-text {
  font-size: 11.5px;
  color: #64748b;
}

/* Интерактивная карта выбора локации */
.loc-modal-map-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.loc-modal-map {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

/* Премиальная стилизация подложки карты */
.premium-enhanced-map {
  background: #f8fafc;
}

.premium-enhanced-map .leaflet-tile-pane {
  filter: none;
}

.premium-enhanced-map .leaflet-container {
  font-family: inherit;
}

/* ==========================================================================
   УМНЫЙ ОВЕРЛЕЙ ПОДСКАЗКИ ДЛЯ 2 ПАЛЬЦЕВ (MOBILE & TABLET SMART INTERACTION)
   ========================================================================== */
.map-two-finger-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.96);
  z-index: 2600;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
  user-select: none;
  -webkit-user-select: none;
  max-width: calc(100% - 32px);
}

.map-two-finger-hint.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.map-two-finger-hint svg {
  color: #38bdf8;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.premium-enhanced-map.map-gesture-active {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   УМНЫЙ ОВЕРЛЕЙ АКТИВАЦИИ КАРТЫ (CLICK-TO-ACTIVATE ДЛЯ ДЕСКТОПА)
   ========================================================================== */
.map-interaction-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.map-click-catcher {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.map-interaction-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Floating Glass HUD: современные парящие кнопки управления картой */
.map-floating-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2500 !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 3px;
  user-select: none;
  -webkit-user-select: none;
}

.map-hud-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
}

.map-hud-btn:hover {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  transform: scale(1.05);
}

.map-hud-btn:active {
  transform: scale(0.95);
}

.map-hud-btn.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.map-hud-icon-text {
  font-size: 15px;
  line-height: 1;
}

.map-hud-divider {
  height: 1px;
  background: rgba(203, 213, 225, 0.6);
  margin: 2px 4px;
}

/* ==========================================================================
   ПОЛНОЭКРАННЫЙ РЕЖИМ КАРТЫ (APPLE LIQUID GLASS FULLSCREEN MAP)
   ========================================================================== */

/* Блокировка скролла страницы при полноэкранной карте */
html.map-fullscreen-active,
body.map-fullscreen-active {
  overflow: hidden !important;
  touch-action: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* Скрытие фиксированных плашек навигации и FAB при развернутой карте */
body.map-fullscreen-active .floating-nav-dock,
body.map-fullscreen-active .global-fab-btn,
body.map-fullscreen-active .mobile-bottom-bar,
body.map-fullscreen-active #global-mobile-menu,
body.map-fullscreen-active .site-header,
body.map-fullscreen-active .header-glass-wrapper {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Снятие ограничений по высоте, overflow, contain и трансформаций с родительских элементов */
body.map-fullscreen-active .map-container,
body.map-fullscreen-active .map-wrapper-shelf,
body.map-fullscreen-active .item-map-card,
body.map-fullscreen-active .item-map-container,
body.map-fullscreen-active .veh-map-shelf,
body.map-fullscreen-active .add-map-shelf,
.map-parent-fullscreen,
.map-ancestor-fullscreen {
  overflow: visible !important;
  max-height: none !important;
  contain: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  perspective: none !important;
  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  z-index: 999998 !important;
  border-radius: 0 !important;
}

/* Фиксированный полноэкранный вьюпорт карты во всех разделах */
.premium-enhanced-map.map-is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  max-width: none !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  contain: none !important;
  background: #0f172a !important;
}

/* В полноэкранном режиме скрываем мешающие подсказки свайпа 2 пальцами и колесика мыши */
.premium-enhanced-map.map-is-fullscreen .map-two-finger-hint,
.premium-enhanced-map.map-is-fullscreen .map-wheel-hint {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Безопасная зона для парящего Glass HUD в полноэкранном режиме (iPhone notch / Dynamic Island) */
.premium-enhanced-map.map-is-fullscreen .map-floating-hud {
  top: max(16px, env(safe-area-inset-top, 16px)) !important;
  right: max(16px, env(safe-area-inset-right, 16px)) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28), 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  z-index: 2000 !important;
}

[data-theme="dark"] .premium-enhanced-map.map-is-fullscreen .map-floating-hud,
.dark .premium-enhanced-map.map-is-fullscreen .map-floating-hud {
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 640px) {
  .premium-enhanced-map.map-is-fullscreen .map-floating-hud .map-hud-btn {
    width: 38px;
    height: 38px;
  }
}

/* Парящая плашка «Свернуть карту» (Apple Liquid Glass Pill) */
.map-fullscreen-exit-pill {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500 !important;
  display: flex;
  align-items: center;
  pointer-events: auto !important;
  animation: mapPillFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-fullscreen-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.map-fullscreen-exit-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

.map-fullscreen-exit-btn:active {
  transform: scale(0.96);
}

.map-fullscreen-esc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  margin-left: 2px;
}

@media (max-width: 640px) {
  .map-fullscreen-esc-badge {
    display: none;
  }
  .map-fullscreen-exit-btn {
    padding: 9px 15px 9px 12px;
    font-size: 13px;
    gap: 6px;
  }
}

@keyframes mapPillFadeIn {
  0% { opacity: 0; transform: translate(-50%, -10px) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.map-hud-btn.hud-fullscreen-btn {
  color: #334155;
}

.map-hud-btn.hud-fullscreen-btn:hover {
  color: #2563eb;
  background: #ffffff;
}

.map-hud-btn.hud-fullscreen-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.dark .map-fullscreen-exit-btn,
[data-theme="dark"] .map-fullscreen-exit-btn {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Нижний стеклянный чип Apple Maps */
.loc-map-glass-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0f172a;
  padding: 6px 16px 6px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  max-width: 90%;
  overflow: hidden;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.loc-badge-dot-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-emerald-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radarWave 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.loc-badge-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

@keyframes radarWave {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Премиальный пин локации в стиле Apple Maps */
.apple-map-marker-container {
  background: none !important;
  border: none !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-pin-wrap {
  position: relative;
  width: 44px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: grab;
}

.apple-pin-wrap:active {
  cursor: grabbing;
}

.apple-pin-beacon {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
  animation: appleRadarWave 2.4s infinite cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes appleRadarWave {
  0% {
    transform: translateX(-50%) scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) scale(1.6);
    opacity: 0;
  }
}

.apple-pin-shadow {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 5px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-pin-body {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38), 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.apple-pin-glyph {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.apple-pin-wrap:hover .apple-pin-body {
  transform: rotate(-45deg) translateY(-3px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.5), 0 4px 8px rgba(0, 0, 0, 0.12);
}

.apple-pin-wrap:active .apple-pin-body {
  transform: rotate(-45deg) translateY(-8px) scale(1.08);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.55), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.apple-pin-wrap:active .apple-pin-shadow {
  transform: translateX(-50%) scale(0.7);
  opacity: 0.5;
}

/* Подвал модалки */
.location-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  gap: 12px;
}

.loc-footer-info-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.loc-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .slots-presets-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .location-modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 16px !important;
  }
  .loc-footer-info-hint {
    display: none;
  }
  .loc-footer-actions {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .loc-footer-actions button {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.btn-apply-location {
  padding: 11px 22px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-apply-location:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.btn-apply-location:active {
  transform: scale(0.98);
}

/* Leaflet Map Pins */
.elite-map-marker {
  background: none;
  border: none;
}

.elite-pin-small {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elite-pin-inner-small {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: rotate(45deg);
}

/* VPN / Foreign IP Alert Banner */
.vpn-geo-alert-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 12px 18px;
  margin: 10px auto 0 auto;
  max-width: 1280px;
  display: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
  animation: fadeIn 0.3s ease;
  box-sizing: border-box;
}

.vpn-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vpn-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.vpn-banner-info {
  flex: 1;
}

.vpn-banner-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}

.vpn-banner-desc {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.35;
}

.vpn-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vpn-btn-gps {
  background: #ffffff;
  border: 1.5px solid #d97706;
  color: #b45309;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.vpn-btn-gps:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.vpn-btn-select {
  background: #d97706;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.vpn-btn-select:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.vpn-btn-close {
  background: transparent;
  border: none;
  color: #92400e;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
}

.vpn-btn-close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .vpn-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .vpn-banner-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }
  .header-location-pill {
    padding: 5px 10px;
    max-width: 160px;
  }
  .loc-pill-sub {
    display: none;
  }
  .loc-pill-title {
    max-width: 90px;
    font-size: 12px;
  }
  .location-modal-card {
    border-radius: 18px;
  }
  .loc-modal-body {
    padding: 14px 16px;
    gap: 12px;
  }
  .location-modal-header, .location-modal-footer {
    padding: 14px 16px;
  }
  .loc-modal-map-wrap {
    height: 200px;
    min-height: 200px;
  }
}

/* Floating Navigation Dock at Bottom Center */
.floating-nav-dock {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  padding: 5px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-nav-dock.dock-hidden,
body.auth-modal-open .floating-nav-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, 20px) scale(0.92) !important;
  box-shadow: none !important;
  border-color: transparent !important;
  background: transparent !important;
}

.floating-nav-dock:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48), 0 0 24px rgba(16, 185, 129, 0.25);
}

.btn-dock-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-dock-add:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-dock-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0;
  margin-left: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 0px solid rgba(255, 255, 255, 0.2);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: translateX(-15px) scale(0.88);
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-width 0.25s ease,
              background 0.2s ease;
}

.btn-dock-top.visible {
  opacity: 1;
  visibility: visible;
  max-width: 140px;
  padding: 0 18px;
  border-width: 1px;
  transform: translateX(0) scale(1);
}

/* Плавно создаем отступ между кнопкой добавления и кнопкой наверх */
.btn-dock-add[style*="inline-flex"] + .btn-dock-top.visible,
.btn-dock-add:not([style*="display: none"]):not([style*="display:none"]) + .btn-dock-top.visible {
  margin-left: 8px;
}

.btn-dock-top:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1.5px);
  border-color: rgba(255, 255, 255, 0.38);
}

/* Pagination Sentinel Container */
.pagination-status-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px 50px;
  margin-top: 10px;
}

.pagination-info-text {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

/* ==========================================================================
   HIGH-TECH PRO COMMAND CENTER & RESIDENT ID UI TOKENS
   ========================================================================== */

:root {
  --tech-bg-subtle: #f8fafc;
  --tech-border-glass: rgba(226, 232, 240, 0.85);
  --tech-border-dark: rgba(15, 23, 42, 0.08);
  --tech-glass: rgba(255, 255, 255, 0.92);
  --tech-glass-hover: rgba(255, 255, 255, 0.98);
  --tech-accent-emerald: #059669;
  --tech-emerald-glow: rgba(16, 185, 129, 0.18);
  --tech-accent-blue: #2563eb;
  --tech-blue-glow: rgba(37, 99, 235, 0.15);
  --tech-accent-amber: #d97706;
  --tech-amber-glow: rgba(245, 158, 11, 0.18);
  --tech-accent-rose: #e11d48;
  --tech-radius-sm: 8px;
  --tech-radius-md: 14px;
  --tech-radius-lg: 20px;
  --tech-shadow-subtle: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --tech-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --tech-shadow-float: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Glassmorphism & High-tech Card Containers */
.tech-card {
  background: var(--tech-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-lg);
  box-shadow: var(--tech-shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

.tech-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: var(--tech-shadow-float);
}

/* HUD KPI Metrics Bar */
.kpi-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .kpi-hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kpi-hud-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-hud-card {
  background: #ffffff;
  border: 1px solid var(--tech-border-dark);
  border-radius: var(--tech-radius-md);
  padding: 1.25rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--tech-shadow-subtle);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.kpi-hud-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tech-shadow-card);
  border-color: rgba(148, 163, 184, 0.4);
}

.kpi-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-hud-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-hud-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-feature-settings: "tnum";
}

.kpi-hud-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.kpi-hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* LED Live Dot Status */
.led-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.led-status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  animation: ledPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.led-emerald {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.led-emerald::after {
  background-color: rgba(16, 185, 129, 0.4);
}

.led-amber {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.led-amber::after {
  background-color: rgba(245, 158, 11, 0.4);
}

.led-blue {
  background-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.led-blue::after {
  background-color: rgba(59, 130, 246, 0.4);
}

.led-rose {
  background-color: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}
.led-rose::after {
  background-color: rgba(244, 63, 94, 0.4);
}

@keyframes ledPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(2.2);
  }
}

.tech-tabs-nav {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #f1f5f9;
  padding: 0.375rem;
  border-radius: var(--tech-radius-md, 14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.tech-tabs-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .tech-tabs-nav {
    padding: 0.25rem;
    gap: 0.25rem;
  }
  
  .tech-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

.tech-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.tech-tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

.tech-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #e2e8f0;
  color: #334155;
  transition: all 0.2s ease;
}

.tech-tab-btn.active .tech-tab-badge {
  background: #0f172a;
  color: #ffffff;
}

/* High-Tech Moderation & Profile Cards */
.tech-item-row {
  background: #ffffff;
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--tech-shadow-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item-row:hover {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--tech-shadow-card);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tech-item-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tech-img-box {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (max-width: 768px) {
  .tech-img-box {
    width: 100%;
    height: 180px;
  }
}

.tech-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tech-item-row:hover .tech-img-box img {
  transform: scale(1.04);
}

.tech-badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.tech-badge-emerald {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.tech-badge-amber {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.tech-badge-rose {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.tech-badge-slate {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.tech-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.tech-btn-action:active {
  transform: scale(0.97);
}

.tech-btn-emerald {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px -1px rgba(5, 150, 105, 0.35);
}
.tech-btn-emerald:hover {
  background: #047857;
  box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.45);
}

.tech-btn-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}
.tech-btn-amber:hover {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.22);
}

.tech-btn-danger {
  background: #ffffff;
  color: #e11d48;
  border-color: #fecdd3;
}
.tech-btn-danger:hover {
  background: #fff1f2;
  border-color: #fda4af;
}

.tech-btn-secondary {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}
.tech-btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Resident Profile Pro Header */
.resident-id-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--tech-radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--tech-shadow-card);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .resident-id-card {
    padding: 1.25rem;
  }
}

.resident-id-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Timeline Pro for Deals */
.deal-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 1.25rem 0 0.5rem 0;
  padding: 0 0.5rem;
}

.deal-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.deal-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s ease;
}

.deal-timeline-step.completed .deal-timeline-dot {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.deal-timeline-step.current .deal-timeline-dot {
  background: #ffffff;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
  transform: scale(1.15);
}

.deal-timeline-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.375rem;
  text-align: center;
}

.deal-timeline-step.completed .deal-timeline-label,
.deal-timeline-step.current .deal-timeline-label {
  color: #0f172a;
}

.deal-timeline-bar {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.deal-timeline-progress {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

/* ==========================================================================
   HIGH-TECH SUBTABS & FILTER CHIPS (PRO SYSTEM)
   ========================================================================== */
.tech-subtabs-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.tech-subtab-btn,
.item-filter-btn {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tech-subtab-btn:hover,
.item-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-0.5px);
}

.tech-subtab-btn.active,
.item-filter-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.tech-subtab-count,
.filter-count {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: all 0.15s ease;
}

.tech-subtab-btn.active .tech-subtab-count,
.item-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ МОБИЛЬНЫЙ СКРОЛЛ И ОПТИМИЗАЦИЯ КАРТОЧЕК
   ========================================================================== */

/* Индикатор скролла вверху страницы */
#page-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #4f46e5 100%);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

/* Плавный и эластичный скролл на мобильных устройствах */
body, html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-y: auto;
}

/* Мобильная оптимизация контейнеров и карточек товара (устранение пустого места) */
@media (max-width: 640px) {
  .main-container,
  .container,
  .form-container {
    margin: 8px auto 32px auto !important;
    padding: 0 8px !important;
  }

  .card {
    padding: 16px 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid var(--border-color) !important;
  }

  #item-main-photo-stage {
    height: 300px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  #item-thumbs-strip {
    gap: 8px !important;
    margin-bottom: 16px !important;
    padding-bottom: 4px !important;
  }

  .item-thumb-box {
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
  }

  h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
  }
}

/* Анимация вращающегося спиннера для AI помощника */
@keyframes aiSpinCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-spinner-svg {
  animation: aiSpinCircle 0.75s linear infinite !important;
  transform-origin: center center;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   Премиальный пустой экран лотов в стиле Apple Glass со сбросом фильтров
   ========================================================================== */
.empty-lots-glass-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  width: 100%;
  box-sizing: border-box;
}

.empty-lots-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 38px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: emptyFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes emptyFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-lots-icon-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.empty-lots-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.empty-lots-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 22px;
  max-width: 320px;
}

.empty-lots-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.empty-lots-reset-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
  filter: brightness(1.05);
}

.empty-lots-reset-btn:active {
  transform: scale(0.97);
}

/* Поддержка темной темы для сброса и пустого экрана */
.dark-theme .smart-filter-reset-btn,
[data-theme="dark"] .smart-filter-reset-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-theme .smart-filter-reset-btn:hover,
[data-theme="dark"] .smart-filter-reset-btn:hover {
  background: rgba(45, 55, 72, 0.95);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.dark-theme .reset-count-badge,
[data-theme="dark"] .reset-count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.dark-theme .empty-lots-glass-card,
[data-theme="dark"] .empty-lots-glass-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .empty-lots-title,
[data-theme="dark"] .empty-lots-title {
  color: #f8fafc;
}

.dark-theme .empty-lots-desc,
[data-theme="dark"] .empty-lots-desc {
  color: #94a3b8;
}

/* ==========================================================================
   ЕДИНЫЙ СТАНДАРТ ОРИГИНАЛЬНЫХ ПЛАТЁЖНЫХ ЛОГОТИПОВ И КНОПОК ОПЛАТЫ
   (СБП, SberPay, T-Pay, МИР) — СТРОГО ОФИЦИАЛЬНЫЕ ВЕКТОРНЫЕ ЗНАКИ БЕЗ ПЕРЕРИСОВОК
   ========================================================================== */

.booking-pay-chip,
.profile-topup-pay-btn {
  height: 54px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 2px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

body.dark-theme .booking-pay-chip,
body.dark-theme .profile-topup-pay-btn,
[data-theme="dark"] .booking-pay-chip,
[data-theme="dark"] .profile-topup-pay-btn {
  background: #ffffff; /* Белая контрастная основа гарантирует 100% оригинальный контраст и официальные цвета всех логотипов */
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.booking-pay-chip:hover,
.profile-topup-pay-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.dark-theme .booking-pay-chip:hover,
body.dark-theme .profile-topup-pay-btn:hover,
[data-theme="dark"] .booking-pay-chip:hover,
[data-theme="dark"] .profile-topup-pay-btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Активное состояние кнопки */
.booking-pay-chip.active,
.profile-topup-pay-btn.active {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22), 0 4px 14px rgba(37, 99, 235, 0.16) !important;
  transform: translateY(-1.5px);
}

.pay-brand-img {
  width: auto;
  max-width: 88%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Точная оптическая калибровка пропорций под размеры кнопок */
.pay-brand-img.sbp-img {
  height: 27px;
  max-height: 27px;
}

.pay-brand-img.sber-img {
  height: 29px;
  max-height: 29px;
}

.pay-brand-img.tpay-img {
  height: 29px;
  max-height: 29px;
}

.pay-brand-img.mir-img {
  height: 23px;
  max-height: 23px;
}

.booking-pay-chip:hover .pay-brand-img,
.profile-topup-pay-btn:hover .pay-brand-img {
  transform: scale(1.05);
}



