/* style.css - ПОЛНАЯ ИСПРАВЛЕННАЯ ВЕРСИЯ */

/* ===== БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;        /* Зеленый */
    --primary-dark: #27ae60;          /* Темно-зеленый */
    --secondary-color: #f1c40f;       /* Желтый */
    --secondary-dark: #f39c12;        /* Темно-желтый/оранжевый */
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --gradient-start: #2ecc71;         /* Зеленый старт */
    --gradient-end: #f1c40f;           /* Желтый финиш */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #404040;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1 0 auto;
    width: 100%;
	margin-top: 70px;
}

h2, h3, h4, h5 {
    color: #404040;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ===== ОБЩИЕ КОМПОНЕНТЫ ===== */
.btn {
    display: inline-block;
    padding: 8px 10px 9px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.5s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-2 {
    display: inline-block;
    padding: 4.7px 10px 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.5s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #00ac1b;
    color: var(--white);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #018616;
    transition: all 0.5s;
}

.btn-primary:hover {
    transition: all 0.5s;
    background: #019719;
    border: 1px solid #017313;
}

.btn-secondary {
	color: #ff0000;
    background: var(--secondary-color);
	border: 1px solid #f39c12;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: #00ac1b;
    color: var(--white);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #018616;
    transition: all 0.5s;
    text-align: center;
	padding: 5px 10px 6px 10px;
	height: 38px;
}

.btn-outline:hover {
    transition: all 0.5s;
    background: #019719;
    border: 1px solid #017313;
}

.btn-outline-2 {
    background: #00ac1b;
    color: var(--white);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #018616;
    transition: all 0.5s;
    text-align: center;
	padding: 4px 10px 6px 10px;
	height: 38px;
}

.btn-outline-2:hover {
    transition: all 0.5s;
    background: #019719;
    border: 1px solid #017313;
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
}

.btn-outline-danger {
    border: 1px solid #b31403;
    color: #ffffff;
    background: var(--danger-color);
}

.btn-outline-danger:hover {
    background: #c62413;
    color: white;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-top: 10px;
}

.btn-large {
    flex: 1;
    padding: 12px 20px;
    font-size: 18px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
	color: #404040;
}

.btn-small:hover {
	color: #00ac1b;
}

.btn-small i {
    margin-right: 5px;
}

.btn-warning {
    background: var(--warning-color);
}

.btn-warning:hover {
    background: #e67e22;
    color: white;
}

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

.fa-map-marker-alt::before {
    color: #00ac1b;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.5s;
}

.form-group .form-control:focus {
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-light);
}

.form-group.checkbox {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group.checkbox .form-text {
    margin-left: 28px;
    color: var(--text-light);
    font-size: 12px;
}

.form-control-file {
    padding: 10px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.form-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===== АЛЕРТЫ ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.alert-error {
    background: #fdeaea;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-error i {
    font-size: 18px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #abd2b4;
    text-align: center;
}

.alert-success i {
    font-size: 18px;
    color: #28a745;
}

.alert-danger {
    background: #fdeaea;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

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

/* ===== ТАБЛИЦЫ ===== */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover td {
    background: #f8f9fa;
}

/* ===== ШАПКА (Header) ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    z-index: 1000;
	width: 100%
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #00ac1b;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

.main-nav {
    flex: 1;
    margin-left: 40px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: #00ac1b;
}

.btn-add-listing {
    background: #00ac1b;
    color: var(--white);
    padding: 6px 8px 7px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.5s;
    display: inline-block;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #018616;
}

.btn-add-listing:hover {
    background: #019719;
    color: var(--white);
}

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

.action-btn {
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding: 5px;
    color: #00ac1b;
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.mobile-user-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li {
    margin-bottom: 5px;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.5s;
}

.mobile-nav ul li a:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    padding-left: 20px;
}

.mobile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
    list-style: none;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 10px 5px 5px;
    cursor: pointer;
    transition: all 0.5s;
    min-width: 70px;
    justify-content: space-between;
}

.user-menu-btn:hover {
    border-color: #00ac1b;
    box-shadow: var(--shadow);
    background-color: rgba(46, 204, 113, 0.05);
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light-color);
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 0px 5px rgba(0,0,0,0.1);
}

.listing-mini-card {
	margin: 0px 0px 30px 0px;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.price {
	color: #00ac1b;
	font-size: 20px;
	font-weight: 700;
}

.avatar-placeholder-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc47, var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    min-width: 240px;
    margin-top: 12px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #404040;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.user-dropdown a i {
    width: 18px;
    font-size: 16px;
    color: var(--text-light);
    transition: color 0.2s;
}

.user-dropdown a:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #00ac1b;
    border-left-color: #00ac1b;
}

.user-dropdown a:hover i {
    color: #00ac1b;
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ===== ГЛАВНАЯ (Hero Search) ===== */
.hero-search {
    background: linear-gradient(135deg, #2ecc56, var(--gradient-end));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-search h1 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.search-wrapper:hover {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.3);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-category,
.search-city {
    width: 180px;
    padding: 15px;
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--white);
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

.search-btn {
    background: #00ac1b;
    color: var(--white);
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.search-btn:hover {
    background: #019719;
    transition: all 0.5s;
}

/* ===== КАТЕГОРИИ ===== */
.categories-section {
    padding: 20px 0px;
}

.categories-section h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.5s;
    border-top: 4px solid #ffffff;
    border-left: 0px solid #ffffff;
    border-right: 0px solid #ffffff;
    border-bottom: 0px solid #ffffff;
    color: #404040;
}

.category-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    color: #ff8502;
    border-top: 4px solid #f1c40f;
    border-left: 0px solid #ffffff;
    border-right: 0px solid #ffffff;
    border-bottom: 0px solid #ffffff;
}

.category-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.category-card span {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

/* ===== ОБЪЯВЛЕНИЯ (общие стили для карточек) ===== */
.listings-section {
    padding: 0px;
}

.listings-section h2 {
    font-size: 28px;
    position: relative;
}

.listings-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 30px 0;
}

.listing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s;
    border: 1px solid #ddd;
    width: 270px;
	margin-bottom: 8px;
}

.listing-card:hover {
    transition: all 0.5s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.listing-link {
    text-decoration: none;
    color: inherit;
}

.listing-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    border-bottom: 1px solid #ddd;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.listing-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.listing-type-badge.buy {
    background: #3498db;
    color: white;
}

.listing-type-badge.barter {
    background: #9b59b6;
    color: white;
}

.listing-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-price {
    font-size: 22px;
    font-weight: 700;
    color: #00ac1b;
    margin-bottom: 15px;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.listing-meta span i {
    margin-right: 5px;
	color: #00ac1b;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff80;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 10;
    color: #00ac1b;
    font-size: 20px;
}

.favorite-btn:hover {
    background: var(--danger-color);
    color: var(--white);
}

.favorite-btn.active {
    background: var(--danger-color);
    color: var(--white);
}

/* ===== ПОДВАЛ (Footer) ===== */
.footer {
    background: #007507;
    color: var(--white);
    padding: 30px 0 20px;
    margin-top: 60px;
    flex-shrink: 0;
    width: 100%;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 17px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.5s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #bdc3c7;
    font-size: 14px;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    z-index: 999;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-dark);
}

/* ===== СТРАНИЦА ВХОДА (login.php) ===== */
.auth-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.auth-form label i {
    color: #00ac1b;
    width: 18px;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.5s;
}

.auth-form .form-control:focus {
    border-color: #00ac1b;
    outline: none;
}

.forgot-link {
    color: #00ac1b;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: #00ac1b;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: none;
}

/* ===== ЛИЧНЫЙ КАБИНЕТ (dashboard.php) ===== */
.welcome-section {
    margin: 40px 0 20px;
    padding: 30px;
    background: linear-gradient(135deg, #2ecc47, var(--gradient-end));
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-text {
    font-size: 22px;
}

.welcome-text strong {
    font-weight: 600;
    text-decoration: none;
}

/* ===== СТАТИСТИКА (общие стили) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stats-grid.small {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 30px 0;
	margin-right: 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.stat-card.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
	background: #ff020230;
}

.stat-card.active .stat-icon {
    transform: scale(1.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
	background: #ff020230;
	border: 1px solid #d99b9b;
}

.center {
	text-align: center;
}

.stat-icon.green {
    background: rgba(46, 204, 113, 0.15);
    color: #00ac1b;
    border: 1px solid #98e1a4;
}

.stat-icon.yellow {
    background: rgba(241, 196, 15, 0.15);
    color: var(--secondary-color);
	border: 1px solid #f0db8a;
}

.stat-icon.blue {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid #97c9ec;
}

.stat-icon.purple {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid #ccbdd2;
}

.stat-icon.pink {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

.stat-icon.orange {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid #e8c997;
}

.stat-icon.gray {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
    border: 1px solid #d0d0d0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-value.text-danger {
    color: var(--danger-color);
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== БЫСТРЫЕ ДЕЙСТВИЯ ===== */
.quick-actions {
    margin: 50px 0;
}

.quick-actions h2 {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.quick-actions h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: var(--secondary-color);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.5s;
    position: relative;
    border: 1px solid #ddd;
	color: #404040;
}

.action-card:hover {
    border: 1px solid #f1c40f;
	color: #b08d00;
}

.action-card i {
    font-size: 40px;
    color: #00ac1b;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.action-card:hover i {
    color: var(--secondary-color);
}

.action-card span {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

.action-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 15px;
    min-width: 25px;
}

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    min-height: calc(100vh - 300px);
}

/* Боковое меню */
.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px 0;
    height: fit-content;
    top: 90px;
}

.admin-user-info {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.admin-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border: 5px solid #00ac1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.admin-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.admin-role {
    font-size: 14px;
    color: #00ac1b;
    font-weight: 500;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
}

.admin-nav ul li {
    margin: 0px;
}

.admin-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    text-decoration: none;
    transition: all 0.5s;
    border-left: 3px solid transparent;
	color: #404040;
	border: 1px solid #d5d5d500;
}

.admin-nav ul li a i {
    width: 20px;
    color: var(--text-light);
    transition: color 0.3s;
}

.admin-nav ul li:hover a {
    background: rgba(46, 204, 113, 0.1);
    color: #00ac1b;
	border-top: 1px solid #00ac1b24;
	border-bottom: 1px solid #00ac1b24;
}

.admin-nav ul li:hover a i {
    color: #00ac1b;
}

.admin-nav ul li.active a {
    background: rgba(46, 204, 113, 0.1);
    color: #00ac1b;
	border-top: 1px solid #00ac1b24;
	border-left: 4px solid #00ac1b;
	border-bottom: 1px solid #00ac1b24;
}

.admin-nav ul li.active a i {
    color: #00ac1b;
}

.admin-nav ul li.divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.admin-nav .badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Основной контент админки */
.admin-content {
    flex: 1;
	min-width: 0;
}

.admin-content h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
	margin-right: 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: #00ac1b;
}

/* ===== ФИЛЬТРЫ ===== */
.filters-bar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
	margin-right: 0;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.filter-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 150px;
}

/* ===== КНОПКИ ДЕЙСТВИЙ (общие) ===== */
.action-buttons {
    display: flex;
    gap: 0px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #018616;
    text-decoration: none;
    transition: all 0.5s;
    color: #ffffff;
    background: #00ac1b;
	margin-right: 5px;
}

.btn-icon:hover {
    color: #f1c40f;
	border: 1px solid #018616;
	transition: all 0.5s;
}

.btn-icon.success:hover {
    color: #f1c40f;
}

.btn-icon.warning:hover {
    color: #f1c40f;
}

/* Для админ-панели */
.admin-content .search-box input:focus,
.admin-content .filter-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
}

.btn-icon.danger:hover {
    background: #c62413;
    border: 1px solid #c62413;
}

.btn-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== СТАТУСЫ И БЕЙДЖИ ===== */
.status-badge {
	background: #fff6da;
	color: #796100;
	border: 1px solid #f5d77a;
	border-radius: 6px;
	padding: 2px 8px 4px 8px;
	font-size: 12px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #00ac1b;
	border-radius: 6px;
	padding: 2px 8px 4px 8px;
	font-size: 12px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
	border: 1px solid #ddc886;
}

.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.status-archived {
    background: #cce5ff;
    color: #004085;
}

.status-blocked {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

.status-deleted {
    background: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
}

.status-resolved {
    background: #d4edda;
    color: #155724;
}

.status-dismissed {
    background: #e2e3e5;
    color: #383d41;
}

/* ===== ПУСТЫЕ СОСТОЯНИЯ ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.empty-icon {
    font-size: 100px;
    color: #ffcccc;
    margin-bottom: 20px;
}

.empty-favorites h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-favorites p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-conversations {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-conversations i {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--border-color);
}

.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

/* ===== УПРАВЛЕНИЕ ПОЛЬЗОВАТЕЛЯМИ ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder.tiny {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

.role-badge {
    background: var(--secondary-color);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
	border: 1px solid #b38f00;
}

.stats-links {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.stat-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-link i {
    font-size: 11px;
}

.stat-link.warning {
    color: var(--warning-color);
}

/* ===== ПРОСМОТР ПОЛЬЗОВАТЕЛЯ ===== */
.user-profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-email {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.profile-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.profile-meta i {
    color: #00ac1b;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
	border: 1px solid #ddd;
}

.profile-contact {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.profile-contact h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.profile-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-contact i {
    color: #00ac1b;
    width: 20px;
}

/* ===== УПРАВЛЕНИЕ ОБЪЯВЛЕНИЯМИ ===== */
.listing-info-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.listing-info-cell strong {
    font-size: 14px;
    /*max-width: 250px;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-meta-small {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-light);
}

.listing-meta-small i {
    margin-right: 3px;
}

.complaints-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fdeaea;
    color: var(--danger-color);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    width: fit-content;
}

.user-info-cell {
    display: flex;
    flex-direction: column;
}

.user-info-cell strong {
    font-size: 13px;
}

.user-info-cell small {
    font-size: 11px;
    color: var(--text-light);
}

.price-cell {
    font-weight: 600;
    color: #00ac1b;
    white-space: nowrap;
}

tr.has-complaints {
    background: rgba(212, 237, 218, 0.2);
}

tr.has-complaints:hover td {
    background: rgba(212, 237, 218, 0.4);
}

/* ===== УПРАВЛЕНИЕ КАТЕГОРИЯМИ ===== */
.category-form {
    max-width: 800px;
}

.category-icon {
    font-size: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.category-name {
    font-weight: 500;
}

.categories-table td.category-name {
    font-size: 14px;
}

.categories-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ===== УПРАВЛЕНИЕ ГОРОДАМИ ===== */
.city-form {
    max-width: 600px;
}

/* ===== УПРАВЛЕНИЕ ЖАЛОБАМИ ===== */
.complaint-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.complaint-type.listing {
    background: #d4edda;
	color: #155724;
	border: 1px solid #00ac1b;
}

.complaint-type.user {
    background: #d4edda;
    color: #155724;
}

.complaint-target {
    display: flex;
    flex-direction: column;
	min-width: 350px;
}

.complaint-target strong {
    font-size: 14px;
    margin-bottom: 3px;
}

.complaint-target small {
    font-size: 11px;
}

.complaint-target small i {
    margin-right: 3px;
}

.complaint-author {
    display: flex;
    flex-direction: column;
}

.complaint-author strong {
    font-size: 13px;
}

.complaint-author small {
    font-size: 11px;
    color: var(--text-light);
}

.complaint-reason {
    max-width: 250px;
    font-size: 13px;
    line-height: 1.4;
}

tr.complaint-row.resolved td {
    opacity: 0.7;
}

tr.complaint-row.dismissed td {
    opacity: 0.5;
}

/* ===== НАСТРОЙКИ ПРОФИЛЯ ===== */
.profile-layout {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    min-height: calc(100vh - 300px);
}

.profile-sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #00ac1b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-sidebar h3 {
    text-align: center;
    margin-bottom: 5px;
}

.profile-email-small {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.profile-nav ul li {
    margin: 5px 0;
}

.profile-nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.5s;
    border: 1px solid #cae3d5;
    color: #404040;
}

.profile-nav ul li a i {
    width: 20px;
    color: var(--text-light);
    margin-right: 10px;
    transition: color 0.3s;
}

.profile-nav ul li a:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #00ac1b;
    border: 1px solid #cae3d5;
}

.profile-nav ul li a:hover i {
    color: #00ac1b;
}

.profile-nav ul li a.active {
    background: rgba(46, 204, 113, 0.1);
    color: #00ac1b;
    font-weight: 500;
    border: 1px solid #cae3d5;
}

.profile-nav ul li a.active i {
    color: #00ac1b;
}

.profile-stats-mini {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat-item {
	border: 1px solid #a4d7b0;
	background: #01971914;
	padding: 10px;
	border-radius: 10px;
}

.profile-stats-mini .stat-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.5s;
    border: 1px solid #ddd;
}

.profile-stats-mini .stat-item:hover {
    background: var(--light-color);
}

.profile-stats-mini .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #00ac1b;
}

.profile-stats-mini .stat-label {
    font-size: 11px;
    color: var(--text-light);
}

.profile-content {
    flex: 1;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.profile-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h2 i {
    color: #00ac1b;
}

.profile-form {
    max-width: 300px;
}

.info-text {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===== МОИ ОБЪЯВЛЕНИЯ ===== */
.my-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.listings-table {
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.listing-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.5s;
}

.listing-row:hover {
    background: #f9f9f9;
}

.listing-row:last-child {
    border-bottom: none;
}

.listing-row-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid #dfdfdf;
}

.listing-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-row-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

.listing-row-info {
    flex: 1;
    min-width: 0;
    color: #404040;
}

.listing-row-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #404040;
}

.listing-row-info h3 a {
    text-decoration: none;
    color: #404040;
}

.listing-row-info h3 a:hover {
    color: #00ac1b;
}

.listing-row-info .price {
    font-weight: 600;
    color: #00ac1b;
    font-size: 20px;
}

.listing-row-status {
    margin: 0 20px;
    min-width: 100px;
    text-align: center;
}

.listing-row-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* ===== ФОРМА ДОБАВЛЕНИЯ ОБЪЯВЛЕНИЯ ===== */
.listing-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control[multiple] {
    min-height: 100px;
    padding: 8px;
}

select.form-control[multiple] option {
    padding: 6px 10px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #f8f9fa;
    padding: 2px 10px 3px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.image-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.image-upload-container:hover {
    border-color: #00ac1b;
    background: rgba(46, 204, 113, 0.1);
}

.image-upload-container i {
    font-size: 48px;
    color: #00ac1b;
    margin-bottom: 10px;
}

.image-upload-container p {
    color: var(--text-light);
    font-size: 14px;
    margin: 5px 0;
}

.image-upload-container small {
    color: var(--text-light);
    font-size: 12px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item {
    display: none !important;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.image-preview .remove-image:hover {
    background: #c0392b;
}

/* ===== ПРОСМОТР ОБЪЯВЛЕНИЯ ===== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #00ac1b;
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 12px;
    color: var(--border-color);
}

.breadcrumbs span {
    font-weight: 500;
}

.listing-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.listing-gallery {
    flex: 0 0 38%;
    max-width: 38%;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image .no-image-large {
    font-size: 80px;
    color: var(--border-color);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s;
    border: 1px solid #ddd;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border-color: #f1c40f;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-header {
    margin-bottom: 20px;
}

.listing-header h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.listing-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.listing-meta-top i {
    margin-right: 5px;
    color: #00ac1b;
}

.listing-price-block {
    background: linear-gradient(135deg, #2ecc56, var(--gradient-end));
    border-radius: 8px;
    padding: 20px;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #ffffff;
}

.listing-price-block .price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
	color: #ffffff;
}

.listing-actions-top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.listing-actions-top .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
}

.listing-price-block .quantity {
    font-size: 14px;
}

.listing-details-grid {
    display: grid;
    gap: 5px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.detail-item {
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
}

.detail-value i {
    color: #00ac1b;
    margin-right: 5px;
}

.detail-value small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

.listing-attributes {
    margin-bottom: 25px;
}

.listing-attributes h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.attributes-grid {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.attribute-row {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.attribute-row:last-child {
    border-bottom: none;
}

.attribute-name {
    width: 40%;
    font-size: 14px;
    color: var(--text-light);
}

.attribute-value {
    width: 60%;
    font-size: 14px;
    font-weight: 500;
}

.listing-description {
    margin-bottom: 25px;
}

.listing-description h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.description-text {
    font-size: 15px;
    line-height: 1.6;
}

.listing-actions-bottom {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.listing-info {
    flex: 0 0 30%;
    max-width: 30%;
}

.listing-info-2 {
    margin: 10px 10px 18px 10px;
}

.listing-info-h3 {
    margin: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.seller-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
}

.seller-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.seller-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.seller-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 5px solid #00ac1b;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.seller-stats {
    font-size: 13px;
    color: var(--text-light);
}

.seller-stats i {
    margin-right: 5px;
    color: #00ac1b;
}

.seller-contact {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.contact-item i {
    width: 20px;
    color: #00ac1b;
    font-size: 16px;
}

.contact-item span {
    font-size: 14px;
}

.similar-listings {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.similar-listings h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

/* ===== ПОИСК ===== */
.search-layout {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.search-filters {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
    top: 90px;
}

.search-filters h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 50%;
}

.search-results {
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h1 {
    font-size: 28px;
}

.results-count {
    color: var(--text-light);
    font-size: 16px;
}

.results-count strong {
    color: #00ac1b;
    font-size: 20px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
}

/* ===== КАТЕГОРИИ (публичная страница) ===== */
.categories-page-header {
    text-align: center;
    margin: 40px 0 30px;
}

.page-description {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 10px;
}

.alphabet-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.index-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.5s;
}

.index-link:hover {
    background: var(--primary-color);
    color: white;
}

.letter-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.letter-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.letter-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.5s;
    border: 1px solid transparent;
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: #00ac1b;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.category-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.category-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.category-count {
    font-size: 13px;
    color: var(--text-light);
    background: var(--light-color);
    padding: 3px 8px;
    border-radius: 15px;
}

.empty-categories {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ===== СООБЩЕНИЯ ===== */
.messages-layout {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 30px;
    min-height: 800px;
}

.conversations-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    background: #fafafa;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h2 {
    font-size: 18px;
}

.conversations-list {
    height: calc(100% - 70px);
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.5s;
    position: relative;
}

.conversation-item:hover {
    background: rgba(253, 251, 142, 0.12);
}

.conversation-item.active {
    background: rgba(0, 253, 28, 0.02);
    border-left: 3px solid #00ac1b;
}

.conversation-item.unread {
    background: #d1ffbc;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unread-badge {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.conversation-preview {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 11px;
    color: var(--text-light);
}

.messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.messages-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.messages-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.messages-user-avatar {
    width: 50px;
    height: 50px;
}

.messages-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.messages-user-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.view-profile {
    font-size: 12px;
    color: #00ac1b;
    text-decoration: none;
}

.view-profile i {
    font-size: 10px;
}

.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
    min-height: 400px;
    max-height: 800px;
}

.message-item {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.message-item.outgoing {
    justify-content: flex-end;
}

.message-item.incoming {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 12px;
    position: relative;
}

.outgoing .message-content {
    background: #61b002;
    color: white;
    font-weight: 600;
    border: 1px solid #24a601;
    border-bottom-right-radius: 0px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.incoming .message-content {
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-listing {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.message-listing a {
    color: white;
    text-decoration: none;
    margin-left: 5px;
}

.incoming .message-listing {
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
}

.incoming .message-listing a {
    color: #00ac1b;
}

.message-content p {
    margin: 0 0 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.outgoing .message-meta {
    color: rgb(255, 255, 255);
}

.incoming .message-meta {
    color: var(--text-light);
}

.message-status i {
    font-size: 12px;
}

.message-form {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #ececec;
}

.message-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input-wrapper textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cacaca;
    border-radius: 10px;
    resize: none;
    min-height: 100px;
    max-height: 200px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.5s;
}

.message-input-wrapper textarea:focus {
    outline: none;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00ac1b;
    border: 5px solid #019719;
}

.btn-send:hover {
    background: #019719;
}

.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

.no-conversation-selected i {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-conversation-selected h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-messages {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

/* ===== АДМИНСКИЕ КНОПКИ ДЛЯ СООБЩЕНИЙ ===== */
.message-admin-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.message-admin-actions:hover {
    opacity: 1;
}

.btn-icon.small {
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
}

/* ===== ИЗБРАННОЕ ===== */
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.favorites-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.favorites-count {
    color: var(--text-light);
    font-size: 14px;
}

.favorites-count strong {
    font-size: 18px;
}

.favorites-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.favorite-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.favorite-card.inactive {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.favorite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.favorite-card:hover .favorite-image img {
    transform: scale(1.1);
}

.favorite-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 48px;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.favorite-content {
    padding: 20px;
}

.favorite-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.favorite-seller i {
    color: #00ac1b;
    width: 16px;
}

.seller-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder.mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.favorite-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.favorite-title a {
    text-decoration: none;
}

.favorite-title a:hover {
    color: #00ac1b;
}

.favorite-price {
    font-size: 22px;
    font-weight: 700;
    color: #00ac1b;
    margin-bottom: 10px;
}

.favorite-price .free {
    color: var(--success-color);
    font-size: 18px;
    font-weight: 500;
}

.favorite-meta {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.favorite-actions {
    display: flex;
    gap: 10px;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.notifications-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.notifications-list {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.5s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #fff8f3;
}

.notification-item.unread:hover {
    background: #fcfff3;
}

.notification-item.read:hover {
    background: #f9f9f9;
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

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

.notification-message {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.notification-meta i {
    margin-right: 3px;
}

.unread-label {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2ecc47, var(--gradient-end));
    border-radius: 16px 16px 0 0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    font-size: 20px;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    font-size: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.modal-body .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.5s;
    font-family: inherit;
}

.modal-body .form-control:focus {
    border-color: #00ac1b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.modal-body select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.modal-body .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 10px;
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, #2ecc47, var(--gradient-end));
    border: none;
    color: white;
    font-weight: 600;
}

/* ===== УВЕДОМЛЕНИЯ (тосты) ===== */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    border-left: 4px solid var(--primary-color);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.notification-warning i {
    color: #ffc107;
}

.notification-toast i {
    font-size: 24px;
}

.notification-toast.success i {
    color: #00ac1b;
}

.notification-toast.error i {
    color: var(--danger-color);
}

/* ===== СТРАНИЦА МОДЕРАЦИИ ===== */
.moderation-warning {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid #ffe69c;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.warning-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #f39c12;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.warning-content {
    flex: 1;
}

.warning-content h2 {
    font-size: 24px;
    color: #856404;
    margin-bottom: 10px;
}

.warning-content p {
    font-size: 16px;
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.warning-content a {
    color: #856404;
    font-weight: 600;
    text-decoration: none;
}

.warning-content a:hover {
    color: #533f03;
}

/* ===== ИНФОРМАЦИОННЫЕ ТАБЛИЦЫ ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-table td:first-child {
    width: 200px;
    color: var(--text-light);
}

.info-table td:last-child {
    font-weight: 500;
}

.info-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 40px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    border-color: #00ac1b;
    color: #00ac1b;
}

.page-link.active {
    background: var(--primary-color);
    border-color: #00ac1b;
    color: white;
}

/* ===== КОМПАНИЯ / ИНФОРМАЦИОННЫЕ СТРАНИЦЫ ===== */
.company-header, .terms-header {
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0px;
    margin-bottom: 30px;
}

.page-title {
    padding: 40px 0px 30px 0px;
}

.company-content, .terms-content, .terms-info {
	padding: 10px 30px 10px 30px;
}

.company-content, .terms-content {
    line-height: 1.8;
    font-size: 16px;
}

.company-content h2, .terms-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.company-content h2:first-child, .terms-content h2:first-child {
    margin-top: 0;
}

.company-content h3, .terms-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
}

.company-content p, .terms-content p {
    margin-bottom: 15px;
}

.company-content ul, .company-content ol,
.terms-content ul, .terms-content ol {
    margin: 15px 0 15px 25px;
}

.company-content li, .terms-content li {
    margin-bottom: 5px;
}

.company-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.company-content a, .terms-content a {
    color: #00ac1b;
    text-decoration: none;
}

.company-content a:hover, .terms-content a:hover {
    text-decoration: none;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00ac1b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
	border: 1px solid #018616;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.contact-item a {
    text-decoration: none;
    font-size: 14px;
}

.contact-item a:hover {
    color: #00ac1b;
}

.terms-info {
    background: #f8f9fa;
    border-left: 4px solid #00ac1b;
}

.terms-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-info h2 i {
    color: #00ac1b;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    margin: 0 auto;
    width: 500px;
}

.captcha-group {
    margin-bottom: 20px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    width: 120px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.captcha-wrapper .form-control {
    flex: 1;
}

.captcha-refresh {
    margin-top: 5px;
    font-size: 13px;
}

.btn-link {
    color: #00ac1b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    text-decoration: none;
}

/* ===== УЛУЧШЕННЫЙ ФИЛЬТР ДЛЯ ПОИСКА ===== */
.search-filters .filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.5s;
    background-color: var(--white);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.filter-group .form-control:focus {
    outline: none;
}

.price-range-input {
    flex: 1;
    min-width: 0;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    border: 1px solid transparent;
    text-decoration: none;
}

.filter-actions .btn-primary {
    background: #00ac1b;
    color: var(--white);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #018616;
    transition: all 0.5s;
}

.filter-actions .btn-primary:hover {
    transition: all 0.5s;
    background: #019719;
    border: 1px solid #017313;
}

.search-filters .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.search-filters .filter-actions .filter-btn {
    display: block;
    width: 100%;
    padding: 10px 16px 12px 16px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.4;
    border: 1px solid #017313;
}

.search-filters select[name="type"],
.search-filters #type,
.search-filters select.form-control {
    width: 100% !important;
    box-sizing: border-box;
}

.filter-group:has(select[name="type"]),
.filter-group:has(#type) {
    width: 100%;
    display: block;
}

.listing-description-full {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: -24px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== VIP ВЫДЕЛЕНИЕ ОБЪЯВЛЕНИЙ ===== */
.listing-card.featured {
    position: relative;
    border-top: 10px solid #f1c40f;
    border-left: 2px solid #f1c40f;
    border-right: 2px solid #f1c40f;
    border-bottom: 2px solid #f1c40f;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.featured-badge i {
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Для списка в личном кабинете */
.listing-row.featured {
    background: linear-gradient(145deg, #fff9e6, #fff2d6);
    border-left: 4px solid #f1c40f;
}

.listing-row.featured:hover {
    background: linear-gradient(145deg, #fff5d6, #ffebc6);
}

/* ===== КНОПКА ВЫДЕЛЕНИЯ ===== */
.featured-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: transparent;
    color: #ccc;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid #ddd;
}

.featured-toggle:hover {
    background: #fff3cd;
    border-color: #f1c40f;
    color: #f39c12;
}

.featured-toggle.active {
    background: #f1c40f;
    border-color: #f39c12;
    color: white;
}

.featured-toggle.active:hover {
    background: #f39c12;
    border-color: #e67e22;
}

/* ===== ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ ЗАГОЛОВКОВ H1 ===== */
h1, .page-title {
    margin: 30px 0 20px;
    padding: 0;
    line-height: 1.3;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ СОЗДАНИЯ ОБЪЯВЛЕНИЯ ===== */
.create-listing-header {
    text-align: center;
    margin: 30px 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.section-header i {
    font-size: 24px;
    color: #00ac1b;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
    padding: 0;
    border: none;
}

.required:after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ac1b;
}

.radio-label span {
    font-size: 14px;
    color: var(--text-color);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 35px;
    cursor: pointer;
}

.select-wrapper.multiple select {
    padding-right: 10px;
    height: auto;
    min-height: 100px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ac1b;
    pointer-events: none;
    font-size: 14px;
}

.price-input-wrapper {
    position: relative;
}

.price-input-wrapper input {
    padding-right: 40px;
}

.currency {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ac1b;
    font-weight: 600;
}

.upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #00ac1b;
    background: rgba(0, 172, 27, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: #00ac1b;
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--text-color);
    font-size: 16px;
    margin: 5px 0;
}

.upload-area small {
    color: var(--text-light);
    font-size: 13px;
}

/* ===== АДАПТИВНОСТЬ (ОСНОВНЫЕ МЕДИА-ЗАПРОСЫ) ===== */
@media (max-width: 1200px) {
    .listing-gallery {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .listing-info {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .seller-sidebar {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (max-width: 992px) {
    .search-wrapper {
        flex-wrap: wrap;
        border-radius: 8px;
    }
    
    .search-input {
        width: 100%;
        flex: none;
    }
    
    .search-category,
    .search-city {
        width: 50%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .search-btn {
        width: 100%;
        padding: 15px;
    }
    
    .admin-layout,
    .profile-layout,
    .search-layout,
    .messages-layout {
        flex-direction: column;
    }
    
    .admin-sidebar,
    .profile-sidebar,
    .search-filters,
    .conversations-sidebar {
        width: 100%;
        position: static;
    }
    
    .admin-nav ul,
    .profile-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .admin-nav ul li,
    .profile-nav ul li {
        flex: 1 1 auto;
    }
    
    .admin-nav ul li a,
    .profile-nav ul li a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
        justify-content: center;
    }
    
    .admin-nav ul li.active a,
    .profile-nav ul li.active a {
        border-left-color: transparent;
        border-bottom-color: #00ac1b;
    }
    
    .stats-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .favorites-stats,
    .notifications-stats,
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .messages-layout {
        min-height: auto;
    }
    
    .conversations-list {
        max-height: 300px;
    }
    
    .listing-detail {
        flex-direction: column;
    }
    
    .listing-gallery {
        width: 100%;
        max-width: 100%;
    }
    
    .main-image {
        height: 400px;
    }
    
    .listing-info {
        width: 100%;
        max-width: 100%;
    }
    
    .seller-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .seller-card {
        position: static;
    }
    
    .listing-gallery,
    .listing-info,
    .seller-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-search h1 {
        font-size: 28px;
    }
    
    .header-wrapper {
        height: auto;
        padding: 15px 0;
    }
    
    .main-nav {
        margin-left: 0;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .main-nav,
    .header-actions .btn-outline,
    .header-actions .btn-primary {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .header-actions .btn-add-listing {
        display: inline-block;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .listings-grid,
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .footer-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-section {
        margin: 20px 0;
        padding: 20px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .filter-select,
    .btn {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .listing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .listing-row-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
    }
    
    .listing-row-status {
        margin: 0;
        text-align: left;
    }
    
    .listing-row-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .messages-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .alphabet-index {
        gap: 5px;
        padding: 10px;
    }
    
    .index-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .letter-categories {
        grid-template-columns: 1fr;
    }
    
    .letter-title {
        font-size: 24px;
    }
    
    .listing-details-grid {
        grid-template-columns: 1fr;
    }
    
    .attribute-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .attribute-name,
    .attribute-value {
        width: 100%;
    }
    
    .seller-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .seller-contact {
        text-align: center;
    }
    
    .listing-actions-bottom,
    .favorite-actions {
        flex-direction: column;
    }
    
    .listing-actions-bottom .btn,
    .favorite-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .moderation-warning {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .warning-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .warning-content h2 {
        font-size: 20px;
    }
    
    .warning-content p {
        font-size: 14px;
    }
    
    .city-form .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .card {
        padding: 20px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-question {
        width: 100%;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .info-item i {
        margin-bottom: 5px;
    }
    
    h1, .page-title {
        font-size: 24px;
        margin: 20px 0 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo, 
    .header-actions {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .btn-add-listing {
        width: 100%;
        text-align: center;
    }
    
    .hero-search h1 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .auth-card {
        padding: 25px;
    }
    
    .form-checkbox {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .action-btn {
        font-size: 18px;
    }
    
    .user-menu-btn span {
        display: none;
    }
    
    .stats-grid.small {
        grid-template-columns: 1fr;
    }
    
    .favorites-stats,
    .notifications-stats,
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-nav ul {
        flex-direction: column;
    }
    
    .profile-nav ul li a {
        text-align: left;
    }
    
    .profile-nav ul li a i {
        display: inline-block;
        margin: 0 10px 0 0;
    }
    
    .profile-stats-mini {
        flex-direction: column;
    }
    
    .profile-form {
        max-width: 100%;
    }
    
    .favorites-header,
    .notifications-header,
    .my-listings-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .favorites-actions,
    .notifications-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .favorites-actions .btn,
    .notifications-actions .btn {
        width: 100%;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .message-content {
        max-width: 95%;
    }
    
    .message-input-wrapper {
        flex-direction: column;
    }
    
    .btn-send {
        width: 100%;
        border-radius: 24px;
    }
    
    .notification-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-header h2 i {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .company-content h2,
    .terms-content h2 {
        font-size: 22px;
    }
    
    .company-content h3,
    .terms-content h3 {
        font-size: 18px;
    }
    
    .info-table td:first-child {
        width: 120px;
    }
    
    h1, .page-title {
        font-size: 22px;
        margin: 15px 0 10px;
    }
    
    .contact-form {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

