/*
Theme Name: Lazadromm
Author: Shinetheme Custom Development
Version: 1.0.7
Template: traveler
*/

/* =========================================================================
   1. ГЛОБАЛЬНАЯ ДИЗАЙН-СИСТЕМА (ПЕРЕМЕННЫЕ И СБРОСЫ)
   ========================================================================= */
:root {
    --bg-main: #000000;            /* Глубокий нативный черный фон */
    --bg-card: #1c1c1e;            /* Темно-серый цвет блоков (iOS-стиль) */
    --bg-input: #242424;           /* Фон полей ввода и табов */
    --border-color: #2c2c2e;       /* Цвет разделительных линий */
    
    --text-main: #ffffff;          /* Основной белый текст */
    --text-muted: #e1e1e1;         /* Мягкий белый для описаний */
    --text-sub: #8e8e93;           /* Серый системный текст подписей */
    
    --accent: #00d2c4;             /* Фирменный бирюзовый */
    --green: #34a853;              /* Зеленый для звонков и статусов */
    --red: #ff3b30;                /* Красный для баджей и удаления */
    --purple: #5d33a6;             /* Фиолетовый для чатов Авито */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--bg-main) !important; 
    color: var(--text-main); 
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
input, textarea { user-select: text !important; }

/* =========================================================================
   2. КОМПОНЕНТ: СМАРТ-ШАПКА (ГЛАВНАЯ СТРАНИЦА)
   ========================================================================= */
.header-fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: var(--bg-main);
    padding-top: env(safe-area-inset-top);
    display: flex;
    flex-direction: column; 
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    border-bottom: 1px solid var(--border-color);
}

.header-fixed-wrapper.hide-tabs { transform: translateY(-76px); }

.search-container {
    padding: 10px 16px 8px 16px;
    background-color: var(--bg-main);
    position: relative;
    z-index: 1300;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.header-fixed-wrapper.hide-tabs .search-container { transform: translateY(76px); }

.search-box { position: relative; width: 100%; display: flex; align-items: center; }
.search-input { width: 100%; height: 44px; background: var(--bg-input); border: 1px solid var(--bg-input); border-radius: 22px; padding: 0 45px 0 16px; font-size: 15px; color: var(--text-main); outline: none; }
.search-input:focus { background: #1c1c1c; }
.search-input::placeholder { color: #777777; }
.search-btn { position: absolute; right: 4px; width: 36px; height: 36px; background: none; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.categories-wrapper { height: 76px; overflow: hidden; background-color: var(--bg-main); z-index: 1100; transition: opacity 0.2s linear; }
.header-fixed-wrapper.hide-tabs .categories-wrapper { opacity: 0; }
.categories-grid { display: flex; gap: 8px; padding: 10px 16px 12px 16px; overflow-x: auto; scroll-behavior: smooth; }
.categories-grid::-webkit-scrollbar { display: none; }

.cat-card { min-width: 115px; height: 54px; background: var(--bg-input); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; border: 2px solid transparent; transition: background 0.15s, border-color 0.15s; flex-shrink: 0; }
.cat-card .cat-title { font-size: 13px; font-weight: 500; color: #999999; }
.cat-card.active { background: #2a2a2a; border-color: var(--accent); }
.cat-card.active .cat-title { color: var(--text-main); font-weight: 600; }

/* =========================================================================
   3. СТРУКТУРНАЯ СЕТКА КОНТЕНТА И СИСТЕМНЫЕ СДВИГИ
   ========================================================================= */
.main-body {
    margin-top: calc(144px + env(safe-area-inset-top)) !important; 
    padding: 0 12px;
    transition: margin-top 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: margin-top;
}

body.tabs-are-hidden .main-body {
    margin-top: calc(68px + env(safe-area-inset-top)) !important;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* =========================================================================
   4. УНИВЕРСАЛЬНЫЙ КОМПОНЕНТ: КАРТОЧКА ОБЪЯВЛЕНИЯ (ОБЩАЯ ДЛЯ ВСЕХ ЭКРАНОВ)
   ========================================================================= */
.avito-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.avito-card-link { display: flex; flex-direction: column; height: 100%; }
.avito-card-image { position: relative; width: 100%; padding-top: 75%; background: #2c2c2e; }
.avito-card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.avito-no-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-sub); font-size: 13px; }

.avito-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
    filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.9)); 
    z-index: 10;
}

.avito-card-content { padding: 10px 12px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.avito-card-title { margin: 0 0 6px 0; font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.avito-card-price { font-size: 16px; font-weight: 700; color: var(--text-main); }
.avito-card-footer { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.avito-card-location { font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avito-badge { align-self: flex-start; font-size: 10px; background: var(--border-color); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-weight: 500; }

/* =========================================================================
   5. УНИВЕРСАЛЬНЫЙ КОМПОНЕНТ: БЛОКИ УПРАВЛЕНИЯ, СПИСКИ И ФОРМЫ (МОИ ОБЪЯВЛЕНИЯ)
   ========================================================================= */
.pwa-my-ads-page-wrapper, .pwa-edit-page-wrapper, .pwa-wishlist-page-wrapper, .pwa-profile-page-wrapper, .pwa-dialogs-list-page-wrapper, .pwa-single-view-wrapper {
    padding: 16px 12px;
}

.pwa-dashboard-title, .pwa-page-main-title { font-size: 22px; font-weight: bold; margin-bottom: 16px; }

/* Виджеты CRM */
.pwa-stats-widgets-grid, .analytics-widgets-flex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pwa-stat-box, .analytics-mini-card-item { padding: 14px; border-radius: 14px; position: relative; border: 1px solid var(--border-color); }
.widget-purple { background: linear-gradient(135deg, #3a225d, #20113a); }
.widget-green { background: linear-gradient(135deg, #1b4d3e, #0f2b22); }
.widget-box-title, .analytics-card-label { display: block; font-size: 15px; font-weight: bold; }
.widget-box-sub { display: block; font-size: 11px; color: #aaa; margin-top: 4px; }
.widget-mock-chart, .widget-mock-badge { position: absolute; right: 12px; bottom: 12px; opacity: 0.3; font-size: 20px; }

/* Кабинетные Табы */
.pwa-status-tabs-scroller, .pwa-wishlist-tabs-scroller { display: flex; gap: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 16px; font-size: 15px; font-weight: bold; overflow-x: auto; }
.status-tab-item, .wish-tab-item { color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.status-tab-item.active, .wish-tab-item.active { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 8px; }
.tab-count-num { font-size: 11px; background: #2c2c2e; padding: 1px 5px; border-radius: 6px; margin-left: 2px; }

.pwa-dashboard-search-container { margin-bottom: 16px; }
.pwa-dash-search-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; color: #fff; outline: none; }

.pwa-dashboard-cards-list, .pwa-dialogs-items-vertical-list, .pwa-photo-edit-grid { display: flex; flex-direction: column; gap: 12px; }

/* Карточка в панели CRM */
.pwa-crm-card { background: var(--bg-card); border-radius: 14px; padding: 12px; display: flex; gap: 12px; position: relative; border: 1px solid var(--border-color); }
.pwa-crm-card-img { width: 90px; height: 90px; background: #2c2c2e; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.pwa-crm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pwa-crm-card-info { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.crm-card-title { font-size: 14px; margin: 0 0 4px 0; color: var(--text-muted); }
.crm-card-price { font-size: 16px; font-weight: bold; }
.crm-price-period { font-size: 11px; color: var(--text-sub); font-weight: 400; }
.crm-analytics-metrics-row { font-size: 11px; color: var(--text-sub); display: flex; gap: 10px; }
.pwa-crm-edit-link-trigger { position: absolute; right: 12px; top: 12px; font-size: 18px; }

/* Форма сплошной ленты редактирования */
.pwa-edit-header { 
    height: 50px; 
    background: var(--bg-card); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 16px; 
    border-bottom: 1px solid var(--border-color); 
    margin: -16px -12px 20px -12px; 
}
.pwa-edit-close { color: var(--accent); font-size: 26px; }
.pwa-edit-page-title { font-size: 16px; font-weight: bold; }

.pwa-edit-form-flow { display: flex; flex-direction: column; gap: 20px; padding-bottom: 60px; }
.form-section-block { display: flex; flex-direction: column; gap: 8px; }
.pwa-input-label { font-size: 14px; color: var(--text-sub); }
.pwa-form-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; color: #fff; outline: none; font-size: 15px; }
.pwa-disabled-input-view, .pwa-select-custom-view { background: #141416; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; color: #777; font-size: 15px; }

.pwa-photo-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pwa-photo-item { position: relative; aspect-ratio: 4/3; background: #2c2c2e; border-radius: 12px; overflow: hidden; }
.pwa-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag-badge { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.6); padding: 2px 6px; font-size: 11px; border-radius: 4px; }
.photo-edit-icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 24px; height: 24px; color: #fff; }
.pwa-photo-add-btn { aspect-ratio: 4/3; border: 2px dashed var(--border-color); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-sub); }

.pwa-tags-inline-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-feature-tag { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; font-size: 13px; color: #fff; }
.pwa-feature-tag.active { background: #2c2c2e; border-color: #666; }

.rules-wrapper-block { background: var(--bg-card); padding: 14px; border-radius: 14px; border: 1px solid var(--border-color); gap: 16px !important; }
.rule-toggle-row { display: flex; justify-content: space-between; align-items: center; }
.pwa-radio-btn-group { display: flex; background: #0b0b0c; padding: 3px; border-radius: 8px; border: 1px solid var(--border-color); }
.pwa-radio-switch { background: transparent; border: none; color: var(--text-sub); padding: 6px 16px; border-radius: 6px; font-weight: bold; font-size: 13px; }
.pwa-radio-switch.active { background: #fff; color: #000; }

.pwa-form-submit-btn, .pwa-sticky-publish-btn { position: fixed; bottom: 76px; left: 16px; right: 16px; height: 48px; background: #fff; color: #000; border: none; border-radius: 24px; font-size: 15px; font-weight: bold; text-align: center; line-height: 48px; z-index: 1100; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }

/* =========================================================================
   6. КОМПОНЕНТ: СВАЙП-СПИСКИ (ДЛЯ ИЗБРАННОГО)
   ========================================================================= */
.swipe-container-item { position: relative; width: 100%; overflow: hidden; background: var(--red); margin-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.swipe-delete-back-action { position: absolute; top: 0; right: 0; width: 80px; height: 100%; background: var(--red); display: flex; align-items: center; justify-content: center; z-index: 1; }
.trash-icon-view { font-size: 22px; }
.swipe-front-card-content { position: relative; background: var(--bg-main); z-index: 5; width: 100%; }

.wish-card-link-flow { display: flex; gap: 14px; padding: 12px 16px; }
.wish-card-image-box { width: 100px; height: 100px; background: #2c2c2e; border-radius: 8px; overflow: hidden; position: relative; flex-shrink: 0; }
.wish-card-image-box img { width: 100%; height: 100%; object-fit: cover; }
.wish-active-heart-icon { position: absolute; top: 6px; right: 6px; font-size: 16px; filter: drop-shadow(0 1px 2px #000); color: var(--red); }

.wish-card-info-box { display: flex; flex-direction: column; flex-grow: 1; }
.wish-price-row { font-size: 17px; font-weight: bold; margin-bottom: 2px; }
.wish-price-period { font-size: 11px; color: var(--text-sub); font-weight: normal; margin-left: 2px; }
.wish-card-title-text { font-size: 13px; color: var(--text-muted); line-height: 1.3; margin-bottom: 4px; }
.wish-card-location-meta { font-size: 11px; color: var(--text-sub); }
.wish-status-alert-badge { align-self: flex-start; background: #2c2c2e; color: var(--red); font-size: 11px; padding: 2px 6px; border-radius: 4px; margin: 4px 0; font-weight: bold; }
.wish-find-similar-action-btn { align-self: flex-start; background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; font-size: 12px; padding: 4px 10px; margin-top: 4px; font-weight: bold; }

/* Сохраненные Поиски и Профили */
.wish-search-query-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); margin: 0 12px 8px 12px; border-radius: 12px; }
.query-main-title { font-size: 15px; font-weight: bold; margin-bottom: 2px; }
.query-sub-parameters { font-size: 12px; color: var(--text-sub); line-height: 1.3; max-width: 85%; }
.query-menu-dots-btn, .author-menu-dots-btn { background: none; border: none; color: var(--text-sub); font-size: 16px; }

.wish-author-subscription-block { background: var(--bg-card); border-radius: 14px; padding: 14px; margin: 0 12px 12px 12px; border: 1px solid var(--border-color); }
.author-sub-line-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.author-avatar-stub { width: 40px; height: 40px; background: #2c2c2e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.author-profile-name { font-size: 14px; font-weight: bold; }
.author-profile-ads-count { font-size: 11px; color: var(--text-sub); }
.author-horizontal-products-scroller { display: flex; gap: 10px; overflow-x: auto; }
.carousel-product-mini-card { min-width: 120px; flex-shrink: 0; }
.carousel-img-wrapper { width: 100%; aspect-ratio: 4/3; border-radius: 8px; margin-bottom: 4px; }

/* =========================================================================
   7. КОМПОНЕНТ: ЛИЧНЫЙ КАБИНЕТ И СИСТЕМНЫЕ НАСТРОЙКИ
   ========================================================================= */
.pwa-profile-header { 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 16px; 
}
.pwa-profile-header-title { font-size: 20px; font-weight: bold; }
.pwa-profile-header-icons { display: flex; gap: 16px; font-size: 18px; }

.pwa-profile-user-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pwa-profile-avatar-box { width: 60px; height: 60px; background: var(--bg-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; border: 1px solid var(--border-color); }
.avatar-add-photo-plus { position: absolute; bottom: 0; right: 0; background: #fff; color: #000; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; }
.profile-company-name { font-size: 16px; font-weight: bold; line-height: 1.3; }
.profile-company-sub-meta { font-size: 12px; color: var(--text-sub); display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }

.pwa-profile-wallet-card { background: var(--bg-card); padding: 14px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 20px; }
.wallet-label-text { font-size: 12px; color: var(--text-sub); }
.wallet-balance-amount { font-size: 18px; font-weight: bold; margin-top: 2px; }
.wallet-bonus-amount { font-size: 12px; color: var(--text-sub); font-weight: normal; margin-left: 4px; }

.profile-orders-section-title { font-size: 15px; font-weight: bold; margin-bottom: 10px; }
.profile-orders-navigation-row { background: var(--bg-card); padding: 14px; border-radius: 12px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.orders-nav-arrow, .settings-item-arrow { color: var(--text-sub); font-size: 16px; }

.analytics-mock-bars-chart { display: flex; gap: 4px; align-items: flex-end; height: 30px; margin-top: 10px; }
.chart-bar-pillar { flex: 1; border-radius: 2px; }
.bar-teal { background: var(--accent); }
.bar-pink { background: #ff3366; }
.bar-dark { background: var(--border-color); }

.analytics-detailed-rows-list { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.analytics-meta-table-row { padding: 12px 14px; display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.analytics-meta-table-row:last-child { border: none; }
.analytics-row-label { color: var(--text-sub); }
.analytics-row-value { font-weight: bold; }

.pwa-profile-settings-menu-list { display: flex; flex-direction: column; gap: 10px; }
.settings-menu-item-single { background: var(--bg-card); padding: 14px; border-radius: 12px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.settings-menu-item-single.no-arrow { color: var(--text-sub); display: block; }
.settings-menu-grouped-block { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }
.settings-menu-item-inside-group { padding: 14px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.settings-menu-item-inside-group:last-child { border: none; }
.settings-new-feature-badge { background: var(--red); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 4px; font-weight: bold; margin-left: 4px; }

/* =========================================================================
   8. КОМПОНЕНТ: ДИАЛОГИ, ЧАТ И СИСТЕМНЫЕ ЛОГИ ЗВОНКОВ
   ========================================================================= */
.pwa-dialogs-search-box-container { padding: 12px 16px; }
.pwa-dialogs-search-input-field { width: 100%; background-color: var(--bg-card); border: none; border-radius: 10px; padding: 10px 14px; color: #fff; font-size: 14px; box-sizing: border-box; }
.pwa-dialogs-filter-tabs-row { display: flex; gap: 16px; padding: 4px 16px 12px 16px; border-bottom: 1px solid var(--border-color); }
.dialogs-filter-tab { font-size: 14px; color: var(--text-sub); cursor: pointer; }
.dialogs-filter-tab.active { color: var(--text-main); font-weight: bold; }

.pwa-support-banner-widget { display: flex; align-items: center; background-color: #0b1f34; margin: 12px 16px; padding: 12px; border-radius: 12px; }
.support-widget-avatar-box { width: 36px; height: 36px; background-color: #163656; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.support-widget-main-title { font-size: 14px; font-weight: bold; }
.support-widget-sub-message { font-size: 12px; color: #8da4be; }

.pwa-dialog-list-item-row { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.pwa-dialog-list-item-row.has-unread { background-color: rgba(0, 210, 196, 0.03); }
.dialog-row-avatar-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; color: #fff; margin-right: 12px; flex-shrink: 0; }
.dialog-row-main-content-body { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
.dialog-row-header-line { display: flex; justify-content: space-between; margin-bottom: 2px; }
.dialog-row-partner-name-text { font-size: 14px; font-weight: bold; }
.dialog-row-meta-time-stamp { font-size: 11px; color: var(--text-sub); }
.dialog-row-object-meta-description { font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.dialog-row-last-message-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Окно внутреннего Чата */
.pwa-chat-window-wrapper { display: flex; flex-direction: column; height: 100vh; background-color: var(--bg-main); }
.pwa-chat-window-header { position: fixed; top: 0; left: 0; right: 0; height: 52px; background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 16px; padding-top: env(safe-area-inset-top); z-index: 100; }
.chat-window-back-btn { font-size: 22px; color: #fff; margin-right: 12px; }
.chat-window-object-meta { flex-grow: 1; overflow: hidden; }
.chat-window-partner-name { font-size: 14px; font-weight: bold; }
.chat-window-object-title-sub { font-size: 11px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-window-call-action-btn { font-size: 18px; padding: 6px; }

.pwa-chat-messages-stream { flex-grow: 1; padding: calc(68px + env(safe-area-inset-top)) 16px 80px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.chat-stream-date-divider { text-align: center; font-size: 11px; color: var(--text-sub); margin: 10px 0; }
.chat-message-row-bubble { display: flex; gap: 10px; align-items: flex-start; }
.chat-avatar-letter-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #fff; }

.chat-call-status-bubble { background-color: var(--bg-card); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 16px; display: flex; align-items: center; gap: 12px; max-width: 70%; position: relative; }
.call-status-icon-box { width: 32px; height: 32px; background-color: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.call-status-title-text { font-size: 13px; font-weight: 500; }
.call-status-duration-text { font-size: 11px; color: var(--red); margin-top: 1px; }
.call-sent-time-stamp { font-size: 10px; color: var(--text-sub); align-self: flex-end; margin-left: 10px; margin-bottom: -4px; }

.pwa-chat-window-footer-bar { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--bg-main); border-top: 1px solid var(--border-color); padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; z-index: 100; }
.chat-footer-attach-plus-btn { background: transparent; border: none; color: var(--text-sub); font-size: 26px; cursor: pointer; }
.chat-footer-input-inner-container { display: flex; align-items: center; background-color: var(--bg-card); border-radius: 20px; flex-grow: 1; padding: 2px 6px 2px 14px; }
.chat-footer-message-input-field { flex-grow: 1; background: transparent; border: none; color: #fff; font-size: 14px; height: 36px; }
.chat-footer-message-input-field:focus { outline: none; }
.chat-footer-media-action-btn { background: transparent; border: none; font-size: 16px; padding: 6px; cursor: pointer; }

.avito-pagination { grid-column: 1/-1; text-align: center; padding: 24px 0 12px; display: flex; justify-content: center; gap: 6px; }
.avito-pagination .page-numbers { color: #fff; padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; font-size: 13px; }
.avito-pagination .page-numbers.current { background: var(--accent); color: #000; border-color: var(--accent); font-weight: bold; }

/* =========================================================================
   9. КОМПОНЕНТ: СИНГЛ СТРАНИЦА ОБЪЯВЛЕНИЯ (iOS / АВИТО-СТИЛЬ)
   ========================================================================= */
.pwa-single-view-wrapper { background-color: var(--bg-main); color: var(--text-main); padding-bottom: calc(85px + env(safe-area-inset-bottom)); padding: 0 !important; }

.pwa-single-top-nav-bar { position: fixed; top: 0; left: 0; width: 100%; height: 50px; padding: 0 16px; padding-top: env(safe-area-inset-top); display: flex; justify-content: space-between; align-items: center; z-index: 1500; background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0)); }
.single-nav-back-btn { font-size: 26px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.single-nav-right-actions { display: flex; gap: 20px; font-size: 20px; align-items: center; }
.single-fav-btn { position: static !important; filter: drop-shadow(0 1px 3px #000); font-size: 24px; color: #fff; background: none; border: none; }

/* Горизонтальный нативный 4:3 слайдер картинок */
.pwa-single-photo-slider-container { position: relative; width: 100%; aspect-ratio: 4/3; background-color: #141416; }
.pwa-single-slider-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pwa-single-slider-track::-webkit-scrollbar { display: none; }
.pwa-slider-slide-item { min-width: 100%; height: 100%; scroll-snap-align: start; position: relative; }
.pwa-slider-slide-item img { width: 100%; height: 100%; object-fit: cover; }
.pwa-slider-counter-badge { position: absolute; bottom: 14px; right: 16px; background: rgba(0, 0, 0, 0.65); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; color: #fff; z-index: 10; }

.pwa-single-content-body-box { padding: 16px; }
.pwa-single-price-amount-row { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pwa-single-price-period-label { font-size: 14px; font-weight: 400; color: var(--text-sub); margin-left: 4px; }
.pwa-single-main-title { font-size: 20px; font-weight: bold; line-height: 1.3; margin-bottom: 8px; color: #e1e1e1; }
.pwa-single-location-address-text { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }

/* Правила Проживания */
.pwa-single-specifications-card-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.single-section-inner-title { font-size: 16px; font-weight: bold; margin-bottom: 14px; color: #fff; }
.single-spec-rows-list { display: flex; flex-direction: column; gap: 12px; }
.spec-meta-row-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.spec-meta-row-line:last-child { border: none; padding-bottom: 0; }
.spec-label-name { color: var(--text-muted); }
.spec-value-status { font-weight: bold; font-size: 13px; }
.status-green { color: var(--green); }
.status-gray { color: var(--text-sub); }

/* Виджет Автора Людмилы */
.pwa-single-author-profile-widget-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; margin-bottom: 20px; }
.author-widget-user-flex-row { display: flex; align-items: center; gap: 12px; }
.author-widget-avatar-stub-circle { width: 44px; height: 44px; background: #2c2c2e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.author-widget-display-name { font-size: 15px; font-weight: bold; }
.author-widget-rating-stars-row { font-size: 12px; color: var(--text-sub); margin-top: 1px; }

.pwa-single-description-text-content-block { padding: 4px 0; }
.single-html-description-body { font-size: 15px; line-height: 1.5; color: #d1d1d1; }
.single-html-description-body p { margin-bottom: 12px; }

/* Закрепленные Кнопки Внизу (Написать / Позвонить) */
.pwa-single-sticky-action-bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 70px; background-color: var(--bg-card); border-top: 1px solid var(--border-color); display: flex; gap: 12px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2000; }
.single-sticky-btn { flex: 1; height: 44px; border-radius: 22px; text-align: center; line-height: 44px; font-size: 15px; font-weight: bold; color: #fff; }
.action-btn-chat { background-color: var(--purple); } 
.action-btn-call { background-color: var(--green); }

/* =========================================================================
   10. СТРОГИЙ НИЖНИЙ НАВИГАЦИОННЫЙ БАР (УНИВЕРСАЛЬНЫЙ)
   ========================================================================= */
.bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: #1c1c1e !important; 
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 999999 !important; 
    padding-bottom: env(safe-area-inset-bottom) !important; 
}

.bottom-item { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; color: var(--text-sub) !important; flex: 1 !important; height: 100% !important; }
.bottom-item svg { width: 22px !important; height: 22px !important; margin-bottom: 3px !important; fill: var(--text-sub) !important; }
.bottom-item.active svg { fill: var(--accent) !important; }
.bottom-item span { font-size: 10px !important; color: var(--text-sub) !important; }
.bottom-item.active span { color: var(--text-main) !important; font-weight: 500 !important; }

/* =========================================================================
   11. АДАПТИВНОСТЬ ПОД БОЛЬШИЕ ЭКРАНЫ (ЦЕНТРИРОВАНИЕ МОБИЛЬНОГО ФРЕЙМА НА ПК)
   ========================================================================= */
@media (min-width: 768px) {
    .items-grid { 
        grid-template-columns: repeat(4, 1fr) !important; 
    }
    .header-fixed-wrapper, .pwa-chat-window-header, .pwa-single-top-nav-bar { 
        max-width: 500px !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        border-radius: 0 0 16px 16px !important; 
    }
    .bottom-bar, .pwa-chat-window-footer-bar, .pwa-single-sticky-action-bottom-bar { 
        max-width: 500px !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        border-radius: 16px 16px 0 0 !important; 
    }
    .pwa-my-ads-page-wrapper, .pwa-profile-page-wrapper, .pwa-dialogs-list-page-wrapper, .pwa-wishlist-page-wrapper, .pwa-edit-page-wrapper, .pwa-single-view-wrapper { 
        max-width: 500px !important; 
        margin: 0 auto !important; 
    }
    .pwa-form-submit-btn, .pwa-sticky-publish-btn { 
        max-width: 468px !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        bottom: 75px !important; 
    }
}
