/* ============================================
   ОСНОВНЫЕ СТИЛИ АУКЦИОНА
   ============================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: #f8f9fa;
    padding-top: 5px;
}

.auction-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 100px);
}

/* ============================================
   НАВИГАЦИЯ АУКЦИОНА
   ============================================ */

.auction-nav {
    background: white;
    border-bottom: 2px solid #e9ecef;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 10px;
    position: relative;
}

/* ============================================
   ЛОГОТИП/НАЗВАНИЕ СЛЕВА
   ============================================ */

.nav-logo {
    flex-shrink: 0;
    order: 1;
}

.nav-logo-link {
    font-size: 20px;
    font-weight: 700;
    color: #333 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.nav-logo-link:hover {
    color: #ff6b6b !important;
}

.nav-logo-link .logo-hammer {
    font-size: 18px;
    display: inline-block;
    color: #495057;
}

.nav-logo-link .logo-hammer i {
    color: #495057;
}

/* Скрываем молоточек в логотипе на мобильных */
@media (max-width: 768px) {
    .nav-logo-link .logo-hammer {
        display: none !important;
    }
}

/* ============================================
   ДЕСКТОПНОЕ МЕНЮ
   ============================================ */

.nav-links-desktop {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    order: 2;
    justify-content: flex-end;
}
.nav-links-desktop::-webkit-scrollbar {
    display: none;
}

.auction-nav a {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #495057 !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 1000;
}

.auction-nav a:hover {
    background: #f1f3f5;
}

.auction-nav a.active {
    background: #ff6b6b;
    color: white !important;
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ (МОЛОТОЧЕК СПРАВА)
   ============================================ */

.menu-toggle-checkbox {
    display: none;
}

/* Кнопка-молоточек (справа, только на мобильных) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
    order: 3;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #495057;
}

.mobile-menu-toggle:hover {
    background: #f1f3f5;
}

.mobile-menu-toggle .hammer-icon {
    font-size: 22px;
    display: block;
    transition: transform 0.3s ease;
    color: #495057;
}

.mobile-menu-toggle .hammer-icon i {
    color: #495057;
    transform: scaleX(-1);
    display: inline-block;
}

/* Вращение молоточка при открытии */
.menu-toggle-checkbox:checked ~ .mobile-menu-toggle .hammer-icon i {
    transform: scaleX(-1) rotate(45deg);
}

/* Мобильное меню (выпадающее) */
.nav-links-mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid #e9ecef;
    gap: 2px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

/* Показываем меню, когда чекбокс отмечен */
.menu-toggle-checkbox:checked ~ .nav-links-mobile {
    display: flex;
}

.nav-links-mobile a {
    padding: 14px 20px;
    border-radius: 0;
    white-space: normal;
    font-size: 16px;
    border-bottom: 1px solid #f1f3f5;
    width: 100%;
    display: block;
}

.nav-links-mobile a:last-child {
    border-bottom: none;
}

.nav-links-mobile a.active {
    background: #ff6b6b;
    color: white !important;
}

.nav-links-mobile a:hover {
    background: #f8f9fa;
}

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

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */

@media (max-width: 768px) {
    .auction-nav {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links-desktop {
        display: none !important;
    }
    
    .nav-logo-link {
        font-size: 18px;
    }
}

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

/* ============================================
   ГЛАВНЫЙ БАННЕР
   ============================================ */

.featured-banner {
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0 30px;
    color: white;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.featured-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.featured-image {
    flex: 0 0 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-info {
    flex: 1;
    color: white;
}

.featured-info h1 {
    font-size: 28px;
    margin: 10px 0;
    color: white !important;
}

.featured-info p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 15px;
}

.featured-label {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    color: white !important;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.featured-price .current-bid {
    color: white !important;
}

.bid-count {
    color: rgba(255,255,255,0.8) !important;
}

.featured-timer {
    margin: 15px 0;
}

.timer-countdown {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700 !important;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn-primary {
    display: inline-block;
    background: white;
    color: #333 !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-bid {
    display: inline-block;
    background: #ff6b6b;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.btn-bid:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-charity-bid {
    display: inline-block;
    background: #f5576c;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.btn-charity-bid:hover {
    background: #e8455a;
    transform: translateY(-2px);
}

.btn-small {
    display: inline-block;
    background: #e9ecef;
    color: #333 !important;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #dee2e6;
}

.btn-view-all {
    display: inline-block;
    color: #ff6b6b !important;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================
   БЫСТРАЯ СТАТИСТИКА
   ============================================ */

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

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-item i {
    font-size: 24px;
    color: #ff6b6b;
    display: block;
    margin-bottom: 8px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333 !important;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #868e96 !important;
    margin-top: 4px;
}

/* ============================================
   КАТЕГОРИИ / СЕКЦИИ
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 24px;
    color: #333 !important;
    margin: 0;
}

.section-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #868e96 !important;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff6b6b;
    color: white !important;
}

.view-all {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #ff6b6b !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
}

.view-all:hover {
    background: #ff6b6b;
    color: white !important;
}

/* ============================================
   АДАПТИВНОСТЬ СЕКЦИЙ
   ============================================ */

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .section-controls {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 5px;
    }
    
    .section-controls::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn,
    .view-all {
        font-size: 12px;
        padding: 5px 12px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 18px;
    }
    
    .filter-btn,
    .view-all {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ============================================
   КАРТОЧКИ АУКЦИОНОВ
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.category-name {
    display: block;
    font-weight: 500;
    color: #333 !important;
    font-size: 14px;
}

.category-count {
    display: block;
    font-size: 12px;
    color: #868e96 !important;
}

/* ============================================
   КАРТОЧКИ АУКЦИОНОВ
   ============================================ */

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.auction-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.auction-card.star-lot {
    border: 2px solid #ffd700;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.star-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 20px;
    z-index: 2;
}

.charity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f5576c;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
}

.card-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

.wishlist-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff6b6b;
}

.wishlist-btn:disabled {
    cursor: default;
    opacity: 0.8;
}
.wishlist-btn:disabled:hover {
    transform: none;
}

.card-body {
    padding: 15px;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

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

.user-name {
    font-size: 12px;
    color: #868e96 !important;
}

.user-rating {
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.card-title {
    font-size: 16px;
    margin: 8px 0;
    color: #333 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.card-price .current-bid {
    font-size: 20px;
    color: #ff6b6b !important;
}

.card-price .bid-count {
    color: #868e96 !important;
    font-size: 14px;
}

.card-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #868e96 !important;
    font-size: 14px;
    margin: 8px 0;
}

.card-charity {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f5576c !important;
    font-size: 12px;
    margin: 8px 0;
}

/* ============================================
   БЛАГОТВОРИТЕЛЬНЫЕ АУКЦИОНЫ
   ============================================ */

.charity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.charity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.charity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.charity-image {
    position: relative;
    height: 180px;
}

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

.charity-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 8px 12px;
}

.progress-bar {
    height: 4px;
    background: #f5576c;
    border-radius: 2px;
    transition: width 0.5s;
}

.progress-text {
    color: white !important;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.charity-body {
    padding: 15px;
}

.charity-body h4 {
    font-size: 16px;
    color: #333 !important;
    margin-bottom: 5px;
}

.fund-name {
    font-size: 14px;
    color: #868e96 !important;
    margin: 5px 0;
}

.charity-price .current-bid {
    font-size: 20px;
    color: #f5576c !important;
}

/* ============================================
   РЕЙТИНГ
   ============================================ */

.rating-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rating-item.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
}

.rating-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.rating-item.top-3 {
    background: linear-gradient(135deg, #cd7f32, #b8692b);
}

.rank {
    font-weight: bold;
    font-size: 18px;
    color: #868e96 !important;
    width: 40px;
}

.rating-item.top-1 .rank,
.rating-item.top-2 .rank,
.rating-item.top-3 .rank {
    color: white !important;
}

.rating-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.rating-info {
    flex: 1;
}

.rating-name {
    font-weight: 500;
    color: #333 !important;
}

.rating-level {
    font-size: 12px;
    font-weight: 500;
}

.rating-score {
    font-weight: 700;
    font-size: 18px;
}

.rating-stars {
    font-size: 12px;
    letter-spacing: 2px;
}

.rating-stats {
    text-align: right;
}

.rating-label {
    font-size: 12px;
    color: #868e96 !important;
}

.rating-achievements {
    font-size: 12px;
    color: #868e96 !important;
}

/* ============================================
   ЦВЕТА УРОВНЕЙ РЕЙТИНГА
   ============================================ */

.rating-legend { color: #ffd700; }
.rating-grandmaster { color: #9b59b6; }
.rating-master { color: #e74c3c; }
.rating-professional { color: #e67e22; }
.rating-experienced { color: #2ecc71; }
.rating-active { color: #3498db; }
.rating-beginner { color: #2ecc71; }
.rating-new { color: #95a5a6; }

/* ============================================
   СТРАНИЦА ЛОТА
   ============================================ */

.lot-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.lot-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lot-image .main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.lot-image .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.badge-star,
.badge-charity,
.badge-ended {
    position: absolute;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-star {
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #333 !important;
}

.badge-charity {
    top: 15px;
    left: 15px;
    background: #f5576c;
    color: white !important;
}

.badge-ended {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white !important;
    font-size: 24px;
    padding: 15px 30px;
    white-space: normal;
}

.lot-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-wishlist,
.btn-share,
.btn-edit {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333 !important;
}

.btn-wishlist.active {
    background: #ff6b6b;
    color: white !important;
    border-color: #ff6b6b;
}

.lot-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lot-category a {
    color: #ff6b6b !important;
    text-decoration: none;
    font-size: 14px;
}

.lot-title {
    font-size: 28px;
    color: #333 !important;
}

.lot-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lot-user .user-avatar {
    width: 32px;
    height: 32px;
}

.lot-user a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
}

.user-rating {
    color: #868e96 !important;
    font-size: 14px;
}

.lot-price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.current-price .price-label {
    display: block;
    color: #868e96 !important;
    font-size: 14px;
}

.current-price .price-amount {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ff6b6b !important;
}

.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.detail-label {
    color: #868e96 !important;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: #333 !important;
}

.detail-value.highlight {
    color: #f5576c !important;
}

.lot-timer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.timer-container i {
    color: #ff6b6b;
}

.timer-label {
    color: #868e96 !important;
}

.timer-countdown {
    font-weight: bold;
    color: #333 !important;
}

.timer-progress {
    margin-top: 10px;
}

.timer-progress .progress-bar {
    height: 4px;
    background: #ff6b6b;
    border-radius: 2px;
}

.lot-bid-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.bid-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bid-input-group {
    display: flex;
    gap: 10px;
}

.bid-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
}

.btn-place-bid {
    padding: 12px 30px;
    background: #ff6b6b;
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-place-bid:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-buyout {
    padding: 12px 20px;
    background: #28a745;
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buyout:hover {
    background: #218838;
}

.lot-ended,
.lot-cant-bid {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.lot-ended {
    background: #e9ecef;
}

.lot-cant-bid {
    background: #fff3cd;
    color: #856404 !important;
}

.lot-cant-bid.pending {
    background: #fff3cd;
    color: #856404 !important;
}
.lot-cant-bid.rejected {
    background: #f8d7da;
    color: #721c24 !important;
}

.lot-ended-with-chat {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.lot-ended-with-chat .btn-contact {
    display: inline-block;
    background: #28a745;
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 10px;
}
.lot-ended-with-chat .btn-contact:hover {
    background: #218838;
    transform: translateY(-2px);
}

.bid-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}
.bid-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.bid-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.bid-message.info {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.chat-status {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}
.chat-status.success {
    background: #d4edda;
    color: #155724;
}
.chat-status.error {
    background: #f8d7da;
    color: #721c24;
}

.balance-info {
    font-size: 13px;
    color: #868e96;
    margin-top: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}
.balance-info strong {
    color: #28a745;
}
.balance-info a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}
.balance-info a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .lot-actions {
        gap: 6px;
    }
    .lot-actions .btn-wishlist,
    .lot-actions .btn-share,
    .lot-actions .btn-edit {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
    }
    .lot-actions .btn-wishlist span,
    .lot-actions .btn-share span,
    .lot-actions .btn-edit span {
        font-size: 11px;
    }
    .lot-actions .btn-wishlist i,
    .lot-actions .btn-share i,
    .lot-actions .btn-edit i {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .lot-image .main-image img {
        height: 280px;
    }
    .badge-star,
    .badge-charity {
        font-size: 11px;
        padding: 4px 12px;
        top: 10px;
    }
    .badge-ended {
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .lot-image .main-image img {
        height: 220px;
    }
    .badge-star,
    .badge-charity {
        font-size: 10px;
        padding: 3px 10px;
        top: 8px;
    }
    .badge-star {
        right: 8px;
    }
    .badge-charity {
        left: 8px;
    }
    .badge-ended {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 400px) {
    .badge-star,
    .badge-charity {
        font-size: 9px;
        padding: 2px 8px;
        top: 6px;
    }
    .badge-star {
        right: 6px;
    }
    .badge-charity {
        left: 6px;
    }
    .lot-actions .btn-wishlist,
    .lot-actions .btn-share,
    .lot-actions .btn-edit {
        font-size: 10px;
        padding: 4px 8px;
    }
    .lot-actions .btn-wishlist span,
    .lot-actions .btn-share span,
    .lot-actions .btn-edit span {
        font-size: 10px;
    }
}

/* ============================================
   ОПИСАНИЕ ЛОТА
   ============================================ */

.lot-description {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lot-description h2 {
    margin-bottom: 15px;
    color: #333 !important;
}

.description-content {
    color: #495057 !important;
    line-height: 1.8;
}

.charity-info-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.charity-info-box i {
    font-size: 24px;
    color: #f5576c;
}

.charity-info-box h3 {
    color: #333 !important;
}

.charity-info-box a {
    color: #ff6b6b !important;
    text-decoration: none;
}

/* ============================================
   ИСТОРИЯ СТАВОК
   ============================================ */

.lot-bids-history {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lot-bids-history h2 {
    margin-bottom: 15px;
    color: #333 !important;
}

.bids-table {
    overflow-x: auto;
}

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

.bids-table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #e9ecef;
    color: #868e96 !important;
    font-weight: 500;
}

.bids-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
}

.bid-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.bid-amount {
    font-weight: 600;
    color: #ff6b6b !important;
}

.no-bids {
    text-align: center;
    color: #868e96 !important;
    padding: 20px;
}

/* ============================================
   КОММЕНТАРИИ
   ============================================ */

.lot-comments {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lot-comments h2 {
    margin-bottom: 20px;
    color: #333 !important;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-input-group {
    display: flex;
    gap: 10px;
}

.comment-input-group textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
}

.btn-comment {
    padding: 12px 24px;
    background: #ff6b6b;
    color: white !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-comment:hover {
    background: #ff5252;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user {
    font-weight: 500;
    color: #333 !important;
}

.comment-date {
    font-size: 12px;
    color: #868e96 !important;
}

.comment-text {
    color: #495057 !important;
    margin: 8px 0;
}

.btn-reply {
    background: none;
    border: none;
    color: #ff6b6b !important;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.comment-reply {
    margin-top: 15px;
    margin-left: 40px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* ============================================
   ПОХОЖИЕ ЛОТЫ
   ============================================ */

.similar-lots {
    margin-top: 30px;
}

.similar-lots h2 {
    margin-bottom: 20px;
    color: #333 !important;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.similar-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.similar-card h4 {
    padding: 10px 15px 5px;
    font-size: 14px;
    color: #333 !important;
}

.similar-price {
    display: block;
    padding: 0 15px;
    font-weight: 600;
    color: #ff6b6b !important;
}

.similar-card .btn-small {
    margin: 10px 15px 15px;
}

/* ============================================
   ПОИСК
   ============================================ */

.search-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.search-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.search-filters h3 {
    margin-bottom: 20px;
    color: #333 !important;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    margin-bottom: 10px;
    color: #495057 !important;
    font-size: 14px;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 16px;
    background: #ff6b6b;
    color: white !important;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    width: 80px;
}

.btn-apply-filters,
.btn-reset-filters {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-apply-filters {
    background: #ff6b6b;
    color: white !important;
}

.btn-apply-filters:hover {
    background: #ff5252;
}

.btn-reset-filters {
    background: #e9ecef;
    color: #495057 !important;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-reset-filters:hover {
    background: #dee2e6;
}

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

.results-count {
    font-size: 16px;
    color: #495057 !important;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #868e96 !important;
}

.no-results i {
    color: #dee2e6 !important;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #495057 !important;
}

/* ============================================
   БЛАГОТВОРИТЕЛЬНАЯ СТРАНИЦА
   ============================================ */

.charity-hero {
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0 30px;
    color: white;
}

.charity-hero-content {
    max-width: 600px;
}

.charity-hero-content h1 {
    font-size: 36px;
    color: white !important;
}

.charity-hero-content p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 18px;
    margin: 10px 0 20px;
}

.charity-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.charity-stats .stat-item {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
}

.charity-stats .stat-number {
    color: white !important;
    font-size: 28px;
}

.charity-stats .stat-label {
    color: rgba(255,255,255,0.8) !important;
}

.featured-charity-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.featured-charity-card .featured-image {
    flex: none;
}

.featured-charity-card .featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.fund-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.fund-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   ФОНДЫ
   ============================================ */

.funds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.fund-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.fund-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.fund-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8f9fa;
}

.fund-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.verified-badge {
    background: #28a745;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.fund-body {
    padding: 20px;
}

.fund-body h3 {
    margin-bottom: 10px;
    color: #333 !important;
}

.fund-body p {
    color: #868e96 !important;
    font-size: 14px;
    line-height: 1.6;
}

.fund-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.fund-stats .stat-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.fund-stats .stat-number {
    font-size: 18px;
}

.fund-progress {
    margin: 15px 0;
}

.fund-progress .progress-bar {
    height: 6px;
    background: #f5576c;
    border-radius: 3px;
    transition: width 0.5s;
}

.fund-progress .progress-text {
    display: block;
    color: #868e96 !important;
    font-size: 12px;
    margin-top: 4px;
}

.btn-fund {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #f5576c;
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-fund:hover {
    background: #e8455a;
}

/* ============================================
   ПРОФИЛЬ
   ============================================ */

.profile-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

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

.profile-avatar .star-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 24px;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 28px;
    color: #333 !important;
}

.profile-meta {
    display: flex;
    gap: 15px;
    margin: 8px 0 15px;
}

.profile-meta span {
    font-size: 14px;
    color: #868e96 !important;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 5px 0 10px 0;
}
.profile-rating .rating-score {
    font-size: 20px;
    font-weight: 700;
}
.profile-rating .rating-level {
    font-size: 14px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 12px;
    background: #f8f9fa;
}
.profile-rating .rating-stars {
    font-size: 14px;
    letter-spacing: 2px;
}
.profile-rating .rating-label {
    font-size: 13px;
    color: #868e96;
}

.profile-star {
    color: #ffd700 !important;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stats .stat-item {
    background: none;
    padding: 0;
    text-align: left;
}

.profile-stats .stat-number {
    font-size: 20px;
    color: #333 !important;
}

.profile-stats .stat-label {
    font-size: 12px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-create-lot {
    padding: 12px 24px;
    background: #ff6b6b;
    color: white !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-create-lot:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.profile-tabs {
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #868e96 !important;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #ff6b6b;
    color: white !important;
}

.tab-btn:hover:not(.active) {
    background: #f1f3f5;
}

.tab-pane {
    display: none;
}

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

/* Лоты в профиле */
.lots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lot-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lot-item .lot-image {
    position: relative;
    height: 150px;
}

.lot-item .lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lot-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}
.lot-status.active {
    background: #28a745;
    color: white !important;
}
.lot-status.ended {
    background: #dc3545;
    color: white !important;
}
.lot-status.draft {
    background: #ffc107;
    color: #333 !important;
}

.lot-item .lot-info {
    padding: 15px;
}

.lot-item .lot-info h4 {
    margin-bottom: 5px;
    color: #333 !important;
}

.lot-item .lot-price {
    font-weight: 600;
    color: #ff6b6b !important;
    margin: 8px 0;
}

.lot-moderation-status {
    margin-top: 5px;
}

.lot-moderation-status .lot-moderation-status {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
}
.lot-moderation-status .lot-moderation-status.pending {
    background: #ffc107;
    color: #333;
}
.lot-moderation-status .lot-moderation-status.approved {
    background: #28a745;
    color: white;
}
.lot-moderation-status .lot-moderation-status.rejected {
    background: #dc3545;
    color: white;
}

.charity-badge-small {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(245, 87, 108, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}

.star-badge-small {
    position: absolute;
    bottom: 10px;
    right: 45px;
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #868e96 !important;
}

.empty-state i {
    color: #dee2e6 !important;
    margin-bottom: 20px;
}

.empty-state p {
    margin: 10px 0;
}

/* Купленные лоты */
.purchased-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.purchase-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.purchase-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.purchase-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.purchase-info {
    flex: 1;
}

.purchase-info h4 {
    color: #333 !important;
    font-size: 14px;
    margin-bottom: 5px;
}

.purchase-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.purchase-amount {
    font-weight: 600;
    color: #ff6b6b !important;
    font-size: 16px;
}

.purchase-date {
    font-size: 12px;
    color: #868e96 !important;
}

/* Награды */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.achievement-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon i {
    font-size: 24px;
    color: #333;
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    color: #333 !important;
    font-size: 16px;
    margin-bottom: 3px;
}

.achievement-content p {
    color: #868e96 !important;
    font-size: 13px;
    margin-bottom: 3px;
}

.achievement-date {
    font-size: 11px;
    color: #adb5bd !important;
}

/* Не благотворительные */
.regular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.regular-header h3 {
    color: #333 !important;
    font-size: 18px;
}

.regular-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-label {
    color: #868e96 !important;
    font-size: 14px;
}

.total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b !important;
}

.regular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.regular-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.regular-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.regular-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.regular-info {
    flex: 1;
}

.regular-info h4 {
    color: #333 !important;
    font-size: 14px;
    margin-bottom: 5px;
}

.regular-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.regular-amount {
    font-weight: 600;
    color: #ff6b6b !important;
    font-size: 16px;
}

.regular-date {
    font-size: 12px;
    color: #868e96 !important;
}

/* Благотворительные в профиле */
.charity-stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.charity-stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.charity-stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #f5576c !important;
}

.charity-stat-label {
    display: block;
    font-size: 14px;
    color: #868e96 !important;
    margin-top: 5px;
}

.charity-lots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.charity-lot-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.charity-lot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.charity-lot-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.charity-lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.charity-lot-info {
    flex: 1;
}

.charity-lot-info h4 {
    color: #333 !important;
    font-size: 14px;
    margin-bottom: 5px;
}

.charity-lot-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.charity-lot-amount {
    font-weight: 600;
    color: #f5576c !important;
    font-size: 16px;
}

.charity-lot-date {
    font-size: 12px;
    color: #868e96 !important;
}

/* ============================================
   ИЗБРАННОЕ
   ============================================ */

.watchlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.watchlist-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.watchlist-page .page-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.watchlist-page .page-header p {
    color: #868e96;
    font-size: 16px;
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.watchlist-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

.watchlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.watchlist-item .item-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.watchlist-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watchlist-item .item-image .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-item .item-image .remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.watchlist-item .item-body {
    padding: 15px;
}

.watchlist-item .item-body .item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watchlist-item .item-body .item-title a {
    color: #333;
    text-decoration: none;
}

.watchlist-item .item-body .item-title a:hover {
    color: #ff6b6b;
}

.watchlist-item .item-body .item-seller {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 8px;
}

.watchlist-item .item-body .item-seller a {
    color: #ff6b6b;
    text-decoration: none;
}

.watchlist-item .item-body .item-seller a:hover {
    text-decoration: underline;
}

.watchlist-item .item-body .item-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
    margin: 8px 0;
}

.watchlist-item .item-body .item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #868e96;
}

.watchlist-item .item-body .item-meta i {
    margin-right: 4px;
}

.watchlist-item .item-body .item-status {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.watchlist-item .item-body .item-status.active {
    background: #d4edda;
    color: #155724;
}

.watchlist-item .item-body .item-status.ended {
    background: #e9ecef;
    color: #495057;
}

.watchlist-item .item-body .item-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.empty-watchlist {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #868e96;
}

.empty-watchlist i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-watchlist h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1200px) {
    .auctions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .auctions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .funds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-page {
        grid-template-columns: 1fr;
    }
    .search-filters {
        position: static;
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .watchlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    .featured-image {
        flex: none;
        width: 100%;
    }
    .featured-image img {
        height: 200px;
    }
    .lot-main {
        grid-template-columns: 1fr;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .profile-actions {
        width: 100%;
    }
    .btn-create-lot {
        width: 100%;
    }
    .charity-stats {
        flex-direction: column;
        gap: 10px;
    }
    .featured-charity-card {
        grid-template-columns: 1fr;
    }
    .lots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .purchased-grid {
        grid-template-columns: 1fr;
    }
    .regular-grid {
        grid-template-columns: 1fr;
    }
    .charity-lots-grid {
        grid-template-columns: 1fr;
    }
    .watchlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auctions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .lot-price-section .price-details {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charity-hero {
        padding: 25px 20px;
    }
    .charity-hero-content h1 {
        font-size: 28px;
    }
    .funds-grid {
        grid-template-columns: 1fr;
    }
    .lots-grid {
        grid-template-columns: 1fr;
    }
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .regular-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .regular-total {
        width: 100%;
        justify-content: space-between;
    }
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
    .charity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auctions-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .similar-grid {
        grid-template-columns: 1fr;
    }
    .profile-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    .bid-input-group {
        flex-direction: column;
    }
    .btn-place-bid {
        width: 100%;
    }
    .comment-input-group {
        flex-direction: column;
    }
    .price-details {
        grid-template-columns: 1fr;
    }
    .regular-item,
    .charity-lot-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .regular-image,
    .charity-lot-image {
        width: 100%;
        height: 120px;
    }
    .achievement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .purchase-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .purchase-image {
        width: 100%;
        height: 120px;
    }
    .featured-image img {
        height: 150px;
    }
    .featured-info h1 {
        font-size: 22px;
    }
    .lot-title {
        font-size: 22px;
    }
    .lot-image .main-image img {
        height: 250px;
    }
    .current-price .price-amount {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .auction-container {
        padding: 10px;
    }
    .section-header h2 {
        font-size: 18px;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }
    .stat-number {
        font-size: 18px;
    }
    .card-image {
        height: 150px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ ЛОКАЦИИ
   ============================================ */

.lot-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    margin: 5px 0;
}
.lot-location i {
    font-size: 16px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #868e96;
    margin: 4px 0;
}
.card-location i {
    font-size: 12px;
}

/* ============================================
   ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ
   ============================================ */

.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.lang-select-wrapper {
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    color: #495057;
    min-width: 100px;
    user-select: none;
    transition: all 0.3s ease;
}

.lang-select-wrapper:hover {
    border-color: #ff6b6b;
}

.lang-select-wrapper .current-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lang-select-wrapper .current-lang i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-select-wrapper.open .current-lang i {
    transform: rotate(180deg);
}

.lang-select-wrapper .lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 150px;
    margin-top: 0;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
}

.lang-select-wrapper.open .lang-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.lang-select-wrapper .lang-dropdown li {
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
    list-style: none;
    font-size: 13px;
    color: #495057;
}

.lang-select-wrapper .lang-dropdown li:hover {
    background: #f8f9fa;
}

.lang-select-wrapper .lang-dropdown li.active {
    background: #ff6b6b;
    color: white;
    cursor: default;
    pointer-events: none;
}

.lang-select-wrapper .lang-dropdown li a {
    display: block;
    text-decoration: none;
    color: #495057;
    width: 100%;
}

.lang-select-wrapper .lang-dropdown li a:hover {
    color: #495057;
}

.lang-select-wrapper .lang-dropdown li.active a {
    color: white;
    cursor: default;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .language-selector {
        width: 100%;
        margin-left: 0;
    }
    
    .lang-select-wrapper {
        width: 100%;
        min-width: unset;
        padding: 10px 15px;
        border-color: #dee2e6;
    }
    
    .lang-select-wrapper .lang-dropdown {
        width: 100%;
        min-width: unset;
        left: 0;
        right: 0;
        border-radius: 8px;
    }
    
    .nav-lang.mobile-lang .lang-select-wrapper {
        border-color: #dee2e6;
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .nav-lang.desktop-lang .lang-select-wrapper .lang-dropdown {
        right: auto;
        left: 0;
    }
}

/* Стили для пунктов меню в мобильной версии */
.nav-lang.mobile-lang {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f3f5;
    background: #f8f9fa;
}

.lang-select {
    padding: 6px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    color: #495057;
    min-width: 120px;
}

.lang-select:hover {
    border-color: #ff6b6b;
}

.lang-select:focus {
    outline: none;
    border-color: #ff6b6b;
}