main {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

main .container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Основные стили для аукциона */
.auction-container {
    width: 100%;
    margin: 0;
    padding: 20px;
    background: transparent;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Шапка аукциона */
.auction-header {
    background: #2D3037;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #FD48B6;
}

.auction-header h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Статистика */
.auction-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background: rgba(253, 72, 182, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(253, 72, 182, 0.15);
}

.stat-card .stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #FD48B6;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: #888;
}

/* Секции */
.auction-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.active-lots-section h2,
.ended-lots-section h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FD48B6;
    display: inline-block;
}

/* Сетка лотов */
.lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Карточка лота */
.lot-card {
    background: #2D3037;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.lot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FD48B6, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lot-card:hover::before {
    transform: scaleX(1);
}

/* Изображение лота в карточке */
.lot-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #1a1c20, #2D3037);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.lot-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
}

.no-image {
    font-size: 64px;
    color: #FD48B6;
    text-align: center;
}

/* Информация о лоте */
.lot-info {
    padding: 20px;
}

.lot-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.lot-info h3 a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lot-info h3 a:hover {
    color: #FD48B6;
}

/* Цена */
.lot-price {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-label {
    color: #888;
    font-size: 12px;
}

.price-value {
    color: #FD48B6;
    font-weight: bold;
    font-size: 16px;
}

.price-value::after {
    content: ' ⭐';
    font-size: 12px;
}

/* Таймер */
.lot-timer {
    background: rgba(253, 72, 182, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-family: monospace;
}

.timer-label {
    color: #888;
    font-size: 12px;
    margin-right: 10px;
}

.timer-value {
    color: #FD48B6;
    font-weight: bold;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Статистика лота */
.lot-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 8px 0;
    font-size: 12px;
    color: #888;
    border-top: 1px solid rgba(253, 72, 182, 0.1);
    border-bottom: 1px solid rgba(253, 72, 182, 0.1);
}

/* Кнопка ставки */
.btn-bid {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FD48B6, #ff8c42);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-bid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 72, 182, 0.4);
}

.btn-bid:active {
    transform: translateY(0);
}

/* Завершенные лоты */
.ended-lots-section {
    margin-top: 20px;
}

.ended-lots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ended-lot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2D3037;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid #888;
}

.ended-lot-item:hover {
    transform: translateX(5px);
    background: rgba(45, 48, 55, 0.9);
    border-left-color: #FD48B6;
}

.ended-lot-info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.ended-lot-info strong {
    color: #e0e0e0;
    font-size: 16px;
    min-width: 200px;
}

.ended-lot-info span {
    color: #888;
    font-size: 14px;
}

.ended-lot-info span:first-of-type {
    color: #FD48B6;
    font-weight: bold;
}

.btn-view {
    background: rgba(253, 72, 182, 0.2);
    color: #FD48B6;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #FD48B6;
}

.btn-view:hover {
    background: #FD48B6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(253, 72, 182, 0.3);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current-page {
    padding: 8px 15px;
    background: #2D3037;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #FD48B6;
    color: white;
    transform: translateY(-2px);
}

.pagination .current-page {
    background: #FD48B6;
    color: white;
    cursor: default;
}

/* Пустые состояния */
.no-lots {
    text-align: center;
    padding: 60px 20px;
    background: #2D3037;
    border-radius: 8px;
    color: #888;
    font-size: 16px;
}

.no-lots p {
    margin: 0;
}

/* Стили для детальной страницы лота */
.lot-detail-container {
    max-width: 100%;
    margin: 20px;
    padding: 30px;
    background: #2D3037;
    border-radius: 12px;
    border-top: 3px solid #FD48B6;
    box-sizing: border-box;
}

.lot-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.lot-detail-image {
    flex: 0 0 auto;
    max-width: 300px;
    min-width: 150px;
    background: #1a1c20;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.lot-detail-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.lot-detail-image .no-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #FD48B6;
}

.lot-detail-info {
    flex: 1;
    min-width: 250px;
}

.lot-detail-info h1 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 28px;
}

.lot-description {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #e0e0e0;
    line-height: 1.6;
}

.lot-detail-price {
    background: rgba(253, 72, 182, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.price-row .label {
    color: #888;
}

.price-row .value {
    color: #FD48B6;
    font-weight: bold;
    font-size: 18px;
}

.price-row .value::after {
    content: ' ⭐';
    font-size: 14px;
}

/* Таймер на детальной странице */
.lot-timer {
    background: rgba(253, 72, 182, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.timer-label {
    color: #888;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
}

.timer-value {
    color: #FD48B6;
    font-weight: bold;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
    font-family: monospace;
}

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

.timer-note small {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 11px;
}

/* Стили для баланса пользователя */
.user-points-info {
    background: rgba(40, 167, 69, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.user-points-info,
.user-points-info span,
.user-points-info div,
.user-points-info p {
    color: #ffffff !important;
}

.user-points-info strong {
    color: #FD48B6 !important;
    font-size: 22px;
    font-weight: bold;
}

/* Стили для сообщений */
.messages {
    margin: 20px 0;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    animation: fadeInMsg 0.3s ease;
}

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

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border-left: 3px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border-left: 3px solid #dc3545;
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    color: #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-left: 3px solid #17a2b8;
    color: #17a2b8;
}

/* Блок ставки */
.bid-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.bid-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Новая структура формы */
.bid-form {
    width: 100%;
}

.bid-form-wrapper {
    width: 100%;
}

.bid-label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
}

.bid-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.bid-input-wrapper {
    flex: 3;
}

.bid-input {
    width: 100%;
    padding: 12px;
    background: #1a1c20;
    border: 1px solid #FD48B6;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    height: 46px;
}

.bid-input:focus {
    outline: none;
    border-color: #ff8c42;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #888;
}

.btn-submit-bid {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 150px;
    height: 46px;
    padding: 0 20px;
}

.btn-submit-bid:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-submit-bid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Таблица ставок */
.bids-table {
    margin-top: 30px;
    overflow-x: auto;
}

.bids-table h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.bids-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.bids-table th,
.bids-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(253, 72, 182, 0.2);
}

.bids-table th {
    background: rgba(253, 72, 182, 0.1);
    color: #FD48B6;
    font-weight: 600;
}

.bids-table td {
    color: #e0e0e0;
}

/* Стили для строк таблицы */
.winner-row {
    background: rgba(40, 167, 69, 0.1);
}

.winner-row td {
    color: #28a745;
}

.frozen-row {
    background: rgba(253, 72, 182, 0.08);
}

.frozen-row td {
    color: #FD48B6;
}

/* Статусы */
.status-winner {
    color: #28a745;
    font-weight: bold;
}

.status-frozen {
    color: #FD48B6;
    font-weight: bold;
}

.status-lost {
    color: #dc3545;
}

.status-outbid {
    color: #888;
}

.active-bid-warning {
    background: rgba(253, 72, 182, 0.15);
    border-left: 3px solid #FD48B6;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 6px;
    color: #FD48B6;
    font-size: 14px;
}

.no-bids {
    text-align: center;
    color: #888;
    padding: 30px;
}

/* Сообщения */
.warning-message {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #e0e0e0;
}

.warning-message a {
    color: #FD48B6;
    text-decoration: none;
}

.warning-message a:hover {
    text-decoration: underline;
}

.info-message {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-message,
.info-message h3,
.info-message h4,
.info-message p {
    color: #e0e0e0;
}

.info-message h3,
.info-message h4 {
    color: #FD48B6;
}

.winners-list {
    margin-top: 15px;
}

.winners-list h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.winners-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.winners-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #28a745;
}

.winners-list li::before {
    content: '🏆';
    margin-right: 10px;
}

/* Адаптация для мобильных */
@media (max-width: 1200px) {
    .lots-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .auction-container {
        padding: 15px;
    }
    
    .auction-header {
        padding: 20px;
    }
    
    .auction-header h1 {
        font-size: 28px;
    }
    
    .lots-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .ended-lot-info {
        gap: 15px;
    }
    
    .ended-lot-info strong {
        min-width: 150px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .auction-container {
        padding: 10px;
    }
    
    .auction-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .auction-header h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .auction-stats {
        gap: 10px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 10px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
    }
    
    .stat-card .stat-label {
        font-size: 10px;
    }
    
    .lots-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lot-image {
        height: 120px;
    }
    
    .lot-image img {
        max-height: 100px;
    }
    
    .lot-info {
        padding: 15px;
    }
    
    .lot-info h3 {
        font-size: 16px;
    }
    
    .price-value {
        font-size: 14px;
    }
    
    .timer-value {
        font-size: 14px;
    }
    
    .active-lots-section h2,
    .ended-lots-section h2 {
        font-size: 20px;
    }
    
    .ended-lot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .ended-lot-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .ended-lot-info strong {
        min-width: auto;
    }
    
    .btn-view {
        width: 100%;
        text-align: center;
    }
    
    .pagination {
        gap: 8px;
        margin-top: 30px;
    }
    
    .pagination a,
    .pagination .current-page {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Детальная страница */
    .lot-detail-container {
        margin: 10px;
        padding: 15px;
    }
    
    .lot-detail-header {
        flex-direction: column;
    }
    
    .lot-detail-image {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
    
    .lot-detail-image img {
        max-height: 150px;
    }
    
    /* На мобильных форма становится вертикальной */
    .bid-row {
        flex-direction: column;
    }
    
    .bid-input-wrapper {
        width: 100%;
    }
    
    .btn-submit-bid {
        width: 100%;
        white-space: normal;
        height: auto;
        padding: 12px;
    }
    
    .bids-table th,
    .bids-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .winners-list li {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .auction-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .lot-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .bids-table {
        font-size: 12px;
    }
    
    .active-bid-warning {
        font-size: 12px;
    }
}

/* Дополнительные стили */
.user-points-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
}

.user-points-info div {
    margin-bottom: 8px;
}

.user-points-info div:last-child {
    margin-bottom: 0;
}

.user-points-info strong {
    color: #FD48B6;
    font-size: 18px;
}

.frozen-points-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 4px;
    color: #ffc107;
    font-size: 13px;
}

.frozen-points-warning strong {
    color: #ffc107;
    font-size: 14px;
}

.status-outbid {
    color: #ffc107;
}

.status-active {
    color: #17a2b8;
}

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

.bids-table th {
    background: rgba(253, 72, 182, 0.1);
    color: #FD48B6;
    padding: 12px;
    text-align: left;
}

.bids-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(253, 72, 182, 0.1);
}

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