/* ============================================
   ПО НИЗУ - ПОЛНЫЙ СТИЛЬ (ИСПРАВЛЕННЫЙ)
   Версия: 3.0 - ФИНАЛЬНАЯ
   ============================================ */

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */
main {
    flex: 1 0 auto;
    padding-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   НАВИГАЦИЯ (NAVBAR)
   ============================================ */
.navbar {
    background: #1a1a2e;
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-brand {
    flex-shrink: 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #e94560;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 15px;
}

.nav-search form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.nav-search input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    min-width: 100px;
}

.nav-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.nav-search button {
    padding: 10px 20px;
    background: #e94560;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.nav-search button:hover {
    background: #c73652;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #e94560;
    color: white;
}

.btn-primary:hover {
    background: #c73652;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.btn-outline:hover {
    background: #1a1a2e;
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* ============================================
   ФИЛЬТРЫ
   ============================================ */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #e94560;
    outline: none;
}

/* ============================================
   СЕТКА ОБЪЯВЛЕНИЙ (ОСНОВНОЙ БЛОК)
   ============================================ */

/* Показываем сетку ОБЯЗАТЕЛЬНО */
.ads-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin: 20px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100px !important;
}

/* ============================================
   КАРТОЧКИ ОБЪЯВЛЕНИЙ
   ============================================ */

/* Показываем карточки ОБЯЗАТЕЛЬНО */
.ad-card {
    display: block !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Ссылка внутри карточки */
.ad-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Изображение */
.ad-image {
    display: block !important;
    position: relative !important;
    height: 200px !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
}

.ad-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.no-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    background: #f5f5f5 !important;
    color: #ccc !important;
    font-size: 48px !important;
}

.ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e94560;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* ============================================
   КОНТЕНТ КАРТОЧКИ (ГЛАВНОЕ — ПОКАЗЫВАЕМ!)
   ============================================ */

/* Показываем контент ОБЯЗАТЕЛЬНО */
.ad-content {
    display: block !important;
    padding: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ad-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-price {
    display: block !important;
    margin-bottom: 10px !important;
}

.ad-price .price {
    font-size: 20px;
    font-weight: 700;
    color: #e94560;
}

.ad-price .market-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.ad-meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.ad-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ad-color {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 5px !important;
}

.ad-color-circle {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 2px solid #ddd !important;
    flex-shrink: 0 !important;
}

.ad-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0f0f0 !important;
    font-size: 13px !important;
    color: #888 !important;
}

.brand-model {
    font-weight: 600;
    color: #1a1a2e;
}

.views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   АДАПТАЦИЯ ДЛЯ РАЗНЫХ ЭКРАНОВ
   ============================================ */

/* ПК - 3 колонки */
@media (min-width: 992px) {
    .ads-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Планшеты - 2 колонки */
@media (max-width: 991px) and (min-width: 768px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Телефоны - 1 колонка */
@media (max-width: 767px) {
    .ads-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ============================================
   ОСТАЛЬНЫЕ СТИЛИ (СТРАНИЦЫ, ФОРМЫ, ПРОФИЛЬ...)
   ============================================ */

/* СТРАНИЦА ОБЪЯВЛЕНИЯ */
.ad-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ad-detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ad-detail-header h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.ad-detail-price {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ad-detail-price .price {
    font-size: 32px;
    font-weight: 700;
    color: #e94560;
}

.ad-detail-price .market-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.ad-detail-price .saving {
    background: #4caf50;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.ad-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ad-detail-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ad-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.main-image {
    height: 400px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fafafa;
}

.thumbnails img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnails img:hover {
    opacity: 0.7;
}

.ad-description h3 {
    margin-bottom: 12px;
}

.ad-description p {
    color: #555;
    line-height: 1.8;
}

.ad-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.ad-info-card h3 {
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.ad-color-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-color-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.ad-contacts {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.ad-contacts h3 {
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    color: #e94560;
}

.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.contact-hidden {
    text-align: center;
    padding: 30px 20px;
}

.contact-lock {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 20px;
    border: 2px dashed #dee2e6;
}

.contact-lock i {
    display: block;
    margin: 0 auto;
}

/* АВТОРИЗАЦИЯ */
.auth-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.auth-header p {
    color: #666;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.auth-form label i {
    margin-right: 6px;
    color: #e94560;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #e94560;
    outline: none;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer a {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* АДМИН-ПАНЕЛЬ */
.admin-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-header p {
    color: #666;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #e94560;
}

.stat-card i {
    font-size: 30px;
    color: #e94560;
}

.stat-card div h3 {
    font-size: 24px;
    margin: 0;
}

.stat-card div p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.stat-active { border-left-color: #28a745; }
.stat-active i { color: #28a745; }
.stat-sold { border-left-color: #ffc107; }
.stat-sold i { color: #ffc107; }
.stat-users { border-left-color: #17a2b8; }
.stat-users i { color: #17a2b8; }
.stat-admins { border-left-color: #6f42c1; }
.stat-admins i { color: #6f42c1; }

.admin-filters {
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-tabs .tab-btn {
    padding: 10px 24px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-tabs .tab-btn.active {
    background: #e94560;
    color: white;
}

.admin-tabs .tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.admin-panel .tab-content {
    display: none;
}

.admin-panel .tab-content.active {
    display: block;
}

/* ФОРМЫ */
.create-ad {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.create-ad h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.create-ad > p {
    color: #666;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    margin-bottom: 16px;
    color: #1a1a2e;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.form-group label i {
    margin-right: 6px;
    color: #e94560;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e94560;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Цвета */
.color-select option {
    padding: 8px 12px 8px 35px;
    background-position: 8px center;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.color-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-preview span {
    font-size: 14px;
    color: #666;
}

.color-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ИЗОБРАЖЕНИЯ */
.current-images {
    margin-bottom: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.image-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.image-item label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    cursor: pointer;
}

.main-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e94560;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* ПРОФИЛЬ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-avatar i {
    font-size: 80px;
    color: #e94560;
}

.profile-info h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.profile-info p {
    color: #666;
    margin: 4px 0;
}

.profile-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-tabs .tab-btn {
    padding: 10px 24px;
    border: none;
    background: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-tabs .tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.profile-tabs .tab-btn.active {
    background: #e94560;
    color: white;
}

.profile .tab-content {
    display: none;
}

.profile .tab-content.active {
    display: block;
}

/* ПАГИНАЦИЯ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 40px;
    text-align: center;
}

.page-info {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    font-weight: 600;
}

.page-dots {
    padding: 8px 12px;
    color: #999;
}

/* СТАТУСЫ */
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active { background: #d4edda; color: #155724; }
.status-sold { background: #fff3cd; color: #856404; }
.status-archived { background: #e2e3e5; color: #383d41; }

.role-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-admin { background: #cce5ff; color: #004085; }
.role-user { background: #e2e3e5; color: #383d41; }

/* ОПОВЕЩЕНИЯ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fde8e8;
    border: 1px solid #f5c6c6;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

/* ПУСТОЕ СОСТОЯНИЕ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #666;
}

/* FOOTER */
footer {
    flex-shrink: 0;
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 12px;
    color: #e94560;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */
@media (max-width: 992px) {
    .ad-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-search {
        order: 3;
        flex: 0 0 100%;
        margin: 10px 0 0;
        max-width: 100%;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0;
        gap: 5px;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ad-detail {
        padding: 16px;
    }
    
    .ad-detail-header h1 {
        font-size: 22px;
    }
    
    .ad-detail-price .price {
        font-size: 24px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-panel {
        padding: 16px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .create-ad {
        padding: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-detail-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ad-detail-price .price {
        font-size: 24px;
    }
    
    .main-image {
        height: 200px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}