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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #666666;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Увеличено с 10px до 20px */
    flex: 1;
}

/* ============================================================================
   ШАПКА И НАВИГАЦИЯ - БЕЛЫЙ ХЭДЕР БЕЗ ЗАЛИВКИ
   ============================================================================ */
header {
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

nav {
    padding: 0.8rem 0;
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Синхронизация с контейнером */
    height: 100%;
    justify-content: flex-end;
}

/* ЛОГОТИП УДАЛЕН - ОСТАВЛЕНО ТОЛЬКО ДЛЯ СОВМЕСТИМОСТИ */
.nav-brand {
    display: none;
}

/* Обёртка для навигационных ссылок */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* СТАНДАРТНЫЕ ССЫЛКИ В НАВИГАЦИИ */
.nav-links a:not(.btn) {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.9);
    /* Убрана граница, добавлена лёгкая тень */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ФЛЭШ ЭФФЕКТ ДЛЯ ССЫЛОК В НАВИГАЦИИ */
.nav-links a:not(.btn):hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* Цвета иконок для разных пунктов меню */
.nav-links a i.fa-home { color: #3498db; }
.nav-links a i.fa-file-alt { color: #2ecc71; }
.nav-links a i.fa-store { color: #f39c12; }
.nav-links a i.fa-comments { color: #9b59b6; }
.nav-links a i.fa-history { color: #1abc9c; }
.nav-links a i.fa-users { color: #e74c3c; }
.nav-links a i.fa-search { color: #f1c40f; }
.nav-links a i.fa-user { color: #95a5a6; }
.nav-links a i.fa-sign-out-alt { color: #e74c3c; }

/* КНОПКИ В НАВИГАЦИИ (для неавторизованных пользователей) */
.nav-links a.btn {
    min-width: auto !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    margin: 0 5px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
}

/* Фиолетовая кнопка "Войти" в хэдере */
.nav-links a.btn:not(.btn-primary) {
    background: #9b59b6 !important;
    color: white !important;
    border: none !important;
}

.nav-links a.btn:not(.btn-primary):hover {
    background: #9b59b6 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3) !important;
}

/* Салатовая кнопка "Регистрация" в хэдере */
.nav-links a.btn.btn-primary {
    background: #9acd32 !important;
    color: #333 !important;
    border: none !important;
}

.nav-links a.btn.btn-primary:hover {
    background: #9acd32 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(154, 205, 50, 0.3) !important;
}

/* Специальный стиль для кнопки Выход */
.nav-links a:last-child:not(.btn) {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-left: 5px;
}

.nav-links a:last-child:not(.btn):hover {
    background: rgba(231, 76, 60, 0.4) !important;
    color: #333 !important;
}

/* ============================================================================
   КНОПКА БУРГЕР-МЕНЮ
   ============================================================================ */
.menu-toggle {
    display: none; /* Скрыта на десктопе */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    color: #333;
}

/* ============================================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================================ */
main {
    padding: 1rem 0;
    flex: 1;
}

/* ============================================================================
   ФУТЕР (2026 ГОД) - УМЕНЬШЕННАЯ ВЫСОТА
   ============================================================================ */
footer {
    background: #45209;
    color: white;
    padding: 0.8rem 0;
    margin-top: auto;
    border-top: 0px solid #34495e;
}

.footer-content {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Синхронизация */
}

.footer-content p {
    margin: 0.3rem 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-content p:first-child {
    font-weight: 600;
    color: #ecf0f1;
}

/* ============================================================================
   FLASH СООБЩЕНИЯ
   ============================================================================ */
.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 12px 15px;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease;
    cursor: pointer;
    transition: all 0.3s ease !important;
    border-left: 5px solid;
}

.flash:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.flash.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.flash.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.flash-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.category-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.3em;
}

/* ============================================================================
   КАРТОЧКИ - УМЕНЬШЕНЫ ПАДДИНГИ БЕЗ ФЛЭШ ЭФФЕКТА
   ============================================================================ */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.2rem;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.card h1 {
    margin: 0 0 1.2rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 {
    margin: 0 0 0.8rem 0;
    color: #34495e;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h3 {
    margin: 0 0 0.6rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.card p {
    margin: 0.4rem 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================================
   ФОРМЫ - УМЕНЬШЕНЫ РАЗМЕРЫ БЕЗ ФЛЭШ ЭФФЕКТА
   ============================================================================ */
.auth-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.auth-form:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd !important;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #aaa !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(170, 170, 170, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================================================
   ПОИСК ПРОДАВЦОВ - УМЕНЬШЕНЫ ФОРМЫ БЕЗ ФЛЭШ ЭФФЕКТА
   ============================================================================ */
.search-form {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-form:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.search-form h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.search-filters .form-group {
    margin-bottom: 0;
}

.search-filters .form-group input,
.search-filters .form-group select {
    padding: 12px 15px;
    font-size: 1rem;
}

.search-filters .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ============================================================================
   КНОПКИ (УМЕНЬШЕНЫ РАЗМЕРЫ, ОДИНАКОВЫЕ ПО ГОРИЗОНТАЛИ) - ФЛЭШ ЭФФЕКТ СОХРАНЕН
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    min-width: 120px;
}

.btn:hover {
    background: #9b59b6 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn-primary {
    background: #9acd32;
    color: #333;
}

.btn-primary:hover {
    background: #9acd32 !important;
    color: #333 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #2ecc71 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #e74c3c !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn-warning {
    background: #f39c12;
    color: #212529;
}

.btn-warning:hover {
    background: #f39c12 !important;
    color: #212529 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #17a2b8 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* МАЛЕНЬКИЕ КНОПКИ ДЛЯ ВХОДА И ПОИСКА */
.btn-sm-auto {
    padding: 10px 20px;
    font-size: 0.95rem;
    min-width: auto !important;
    width: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 100px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-width: 140px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Специальные стили для кнопок в группах (одинаковая ширина) */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.button-group .btn {
    flex: 1;
    min-width: 0;
}

/* ============================================================================
   ГЛАВНАЯ СТРАНИЦА - ИНДЕКС
   ============================================================================ */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero:hover {
    transform: none !important;
    box-shadow: none !important;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* БЛОКИ ДЛЯ ПОКУПАТЕЛЕЙ И ПРОДАВЦОВ НА ГЛАВНОЙ */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-block {
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.feature-block:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.feature-block.buyer {
    background: #ffe599;
}

.feature-block.seller {
    background: #bbe166;
}

.feature-block h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-block ul,
.feature-block ol {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.feature-block li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ============================================================================
   БЛОК ЦИФРЫ И ПРЕИМУЩЕСТВА - ИСПРАВЛЕННЫЙ БЕЗ ФЛЭШ ЭФФЕКТА
   ============================================================================ */
.stats-advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

.stats-advantages-container > .card {
    background: #cfe2f3 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-advantages-container > .card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.advantages-block {
    background: #f7dbdb !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.advantages-block:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.stats-advantages-container > .card h3,
.advantages-block h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.advantages-block h4 {
    color: #3498db;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.stats-advantages-container > .card ul,
.advantages-block ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.stats-advantages-container > .card li,
.advantages-block li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ГОРИЗОНТАЛЬНЫЙ БЛОК "КАК ЭТО РАБОТАЕТ" */
.how-it-works {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

.how-it-works:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-size: 1.6rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.step-item {
    text-align: center;
    padding: 1rem;
}

.step-item:hover {
    transform: none !important;
}

.step-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.8rem;
}

.step-item:hover i {
    transform: none !important;
}

.step-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-item p {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================================================
   ПАНЕЛЬ УПРАВЛЕНИЯ
   ============================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
}

.stat-card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.stat-card:hover i {
    transform: none !important;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: #2c3e50;
}

.stat-card p {
    color: #6c757d;
    font-size: 1rem;
}

/* ============================================================================
   ПРОФИЛЬ
   ============================================================================ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.profile-avatar:hover {
    transform: none !important;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.profile-info p {
    color: #6c757d;
    margin: 0.3rem 0;
    font-size: 1rem;
}

.profile-section {
    margin: 1.5rem 0;
}

/* ============================================================================
   ТАБЛИЦЫ (УМЕНЬШЕНЫ) БЕЗ ФЛЭШ ЭФФЕКТА
   ============================================================================ */
.table-responsive {
    overflow-x: auto;
    margin: 1.2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.table:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
}

.table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.1rem;
}

.table th:hover {
    background: #f8f9fa !important;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 1rem;
}

.table tbody tr:hover {
    background: #f8f9fa;
    transform: none !important;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================================
   ПРОДАВЦЫ И ПОИСК
   ============================================================================ */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.seller-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease !important;
    border-top: 5px solid #3498db;
}

.seller-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.seller-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    transition: all 0.3s ease !important;
}

.seller-card:hover .seller-avatar {
    transform: scale(1.1) !important;
}

.seller-info h3 {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.seller-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0.5rem 0;
    color: #f1c40f;
    font-size: 1.1rem;
}

.seller-meta {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1rem 0;
    font-size: 1rem;
    color: #6c757d;
}

.search-results {
    margin-top: 1.5rem;
}

/* ============================================================================
   УВЕЛИЧЕННЫЕ РАЗМЕРЫ ДЛЯ ВСЕХ ФОРМ И ПОЛЕЙ
   ============================================================================ */
select, input[type="text"], input[type="password"], input[type="email"], input[type="search"] {
    font-size: 1rem !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border: 2px solid #ddd !important;
}

select:hover, input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, input[type="search"]:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
}

textarea {
    font-size: 1rem !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border: 2px solid #ddd !important;
    min-height: 120px !important;
}

textarea:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
}

label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

label:hover {
    color: #495057 !important;
}

/* ============================================================================
   КНОПКИ В СТИЛЕ CREATE REQUEST (БЕЗ ЭМОДЗИ, ОДИНАКОВЫЕ)
   ============================================================================ */
.request-actions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.request-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
}

.request-actions .btn i,
.request-actions .btn .fas,
.request-actions .btn .fa {
    display: none;
}

/* ============================================================================
   АДАПТИВНОСТЬ
   ============================================================================ */
@media (max-width: 992px) {
    .nav-links {
        max-width: 60%;
    }

    .nav-links a:not(.btn) {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .nav-links a.btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        margin: 0 3px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .auth-form {
        max-width: 95%;
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .auth-form h2 {
        font-size: 1.6rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .features-container,
    .stats-advantages-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .nav-links-wrapper {
        width: 100%;
        justify-content: center;
        position: relative;
    }

    /* Кнопка бургера */
    .menu-toggle {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        max-width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a:not(.btn) {
        padding: 6px 8px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .nav-links a.btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        margin: 0 2px !important;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .auth-form {
        padding: 1.2rem;
        margin: 1.2rem auto;
    }

    .auth-form h2 {
        font-size: 1.4rem;
    }

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

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .sellers-grid {
        grid-template-columns: 1fr;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .request-actions {
        flex-direction: column;
    }

    .btn {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Увеличено с 5px до 15px */
    }

    .card {
        padding: 1rem;
    }

    .auth-form {
        padding: 1rem;
        margin: 1rem auto;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 90px;
    }

    .nav-links a.btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        margin: 0 1px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   АНИМАЦИИ
   ============================================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ============================================================================
   ПРОГРЕСС БАР
   ============================================================================ */
.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.8rem 0;
}

.progress-bar:hover {
    transform: none !important;
    box-shadow: none !important;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #9b59b6 100%);
    border-radius: 3px;
    transition: width 0.4s ease !important;
}

.progress-fill:hover {
    background: linear-gradient(90deg, #3498db 0%, #9b59b6 100%) !important;
}

/* ============================================================================
   УТИЛИТЫ
   ============================================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 15px;
    text-transform: uppercase;
}

.badge:hover {
    transform: none !important;
    box-shadow: none !important;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.badge-success {
    background: #2ecc71;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: #212529;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

/* ============================================================================
   ЦВЕТА ДЛЯ РАЗНЫХ РОЛЕЙ
   ============================================================================ */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-badge:hover {
    transform: none !important;
    box-shadow: none !important;
}

.role-buyer {
    background: #3498db;
    color: white;
}

.role-seller {
    background: #2ecc71;
    color: white;
}

.role-admin {
    background: #e74c3c;
    color: white;
}

/* ============================================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================================ */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.empty-state:hover {
    transform: none !important;
    box-shadow: none !important;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state:hover i {
    opacity: 0.5 !important;
    transform: none !important;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.4rem;
}

/* ============================================================================
   СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ СЕЛЕКТОВ И ИНПУТОВ ВО ВСЕХ ФОРМАХ
   ============================================================================ */
select.form-control,
input.form-control {
    height: 46px !important;
    font-size: 1rem !important;
}

select.form-control:hover,
input.form-control:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
}

.dropdown-menu {
    font-size: 1rem !important;
    padding: 8px 0 !important;
}

.dropdown-menu:hover {
    transform: none !important;
    box-shadow: none !important;
}

.dropdown-item {
    padding: 10px 15px !important;
    font-size: 1rem !important;
}

.dropdown-item:hover {
    transform: none !important;
    background-color: #f8f9fa !important;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination strong {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.pagination a:hover {
    background-color: #f0f0f0;
}
.pagination strong {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}


/* Кастомный чекбокс */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 0;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.custom-checkbox:hover .checkmark {
    border-color: #9b59b6;
    background-color: #f3e8ff;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #9b59b6;
    border-color: #9b59b6;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox .label-text {
    flex: 1;
    line-height: 1.4;
    color: #495057;
}
/* ============================================================================
   КАСТОМНЫЙ МУЛЬТИСЕЛЕКТ ДЛЯ КАТЕГОРИЙ И ПОДКАТЕГОРИЙ
   ============================================================================ */
.multiselect-container {
    position: relative;
    margin-bottom: 1rem;
}

.multiselect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 2px solid #ddd !important;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s;
}

.multiselect-header:hover {
    border-color: #aaa !important;
}

.multiselect-header i {
    transition: transform 0.3s;
}

.multiselect-header.open i {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.multiselect-option:hover {
    background-color: #f8f9fa;
}

.multiselect-option input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.multiselect-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-size: 1rem;
}

.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
}

.multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #9b59b6;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: fadeInTag 0.3s ease;
}

.multiselect-tag i {
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.multiselect-tag i:hover {
    transform: scale(1.2);
}

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

/* Адаптивность для кастомного мультиселекта */
@media (max-width: 768px) {
    .multiselect-header {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .multiselect-option {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .multiselect-tag {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .multiselect-header {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .multiselect-option {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .multiselect-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .multiselect-tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    /* Дополнительные улучшения для мобильных устройств */
    @media (max-width: 768px) {
        table:not(.table-responsive table) {
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }

    @media (max-width: 480px) {
        .card {
            padding: 1rem;
        }

        .stat-card {
            padding: 1rem;
        }

        .stat-card h3 {
            font-size: 1.5rem;
        }

        .seller-card {
            padding: 1rem;
        }

        .seller-info h3 {
            font-size: 1.2rem;
        }

        .seller-avatar {
            width: 70px;
            height: 70px;
            font-size: 1.8rem;
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            font-size: 2rem;
        }

        .profile-info h2 {
            font-size: 1.5rem;
        }

        .hero h1 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .search-form {
            padding: 1rem;
        }

        .search-filters .form-group input,
        .search-filters .form-group select {
            padding: 10px;
            font-size: 0.95rem;
        }

        .btn {
            padding: 10px 16px;
            font-size: 0.9rem;
            min-width: 80px;
        }
    }

    @media (max-width: 360px) {
        .nav-links a:not(.btn) {
            font-size: 0.7rem;
            padding: 4px 6px;
        }
        .nav-links a.btn {
            font-size: 0.7rem !important;
            padding: 4px 6px !important;
        }
    }
}