/* Premium Liquid Glass — страница аукциона */

.premium-auction-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 20, 25, 0.4) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 24px;
    margin: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.auction-live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.auction-live-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auction-live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.auction-viewers {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auction-timer-block {
    text-align: center;
    margin: 20px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px inset rgba(255, 255, 255, 0.03);
}

.auction-timer-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auction-timer-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-top: 4px;
}

.auction-price-block {
    text-align: center;
    margin-bottom: 24px;
}

.auction-current-price {
    font-size: 42px;
    font-weight: 800;
    color: #2dd4bf;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
    transition: color 0.3s, transform 0.2s;
}

.auction-current-price.price-updated {
    color: #fff;
    transform: scale(1.05);
}

.auction-price-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

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

.auction-bid-buttons .premium-bid-btn.auction-buy-now {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.premium-bid-btn {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: 0.2s;
}

.premium-bid-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.premium-bid-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    transform: none;
}

.auction-bid-btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auction-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes auction-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Оболочка страницы */
#auction-page.auction-page {
    min-height: 100%;
    box-sizing: border-box;
    background: var(--bg-app, #0f0f12);
}

#auction-page .auction-page-header {
    display: flex;
    align-items: center;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(15, 15, 18, 0.95) 70%, transparent);
}

#auction-page .auction-page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#auction-page .auction-page-back:active {
    opacity: 0.85;
}

#auction-page .auction-page-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding-right: 48px;
}

/* Виджет на главной (каталог товаров / услуг) */
.auctions-widget-host {
    margin: 0 0 8px;
}

.auctions-widget-inner {
    margin: 0 16px 12px;
}

.auctions-widget-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auctions-widget-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.auctions-widget-card:active {
    transform: scale(0.98);
}

.auctions-widget-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.auctions-widget-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.auctions-widget-card-body {
    flex: 1;
    min-width: 0;
}

.auctions-widget-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auctions-widget-live {
    font-size: 10px;
    padding: 2px 6px;
}

.auctions-widget-live .auction-live-dot {
    width: 4px;
    height: 4px;
}

.auctions-widget-card-price {
    text-align: right;
    flex-shrink: 0;
}

.auctions-widget-price-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.auctions-widget-price-value {
    color: #2dd4bf;
    font-weight: 800;
    font-size: 16px;
}

/* Карусель на главной: bleed — скролл уходит за край экрана, первая карточка с отступом как у текста */
.auctions-carousel-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 12px 16px;
    width: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.auctions-carousel-container::-webkit-scrollbar {
    display: none;
}

.auction-carousel-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    width: 85vw;
    max-width: 320px;
    min-width: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
}
.auction-carousel-card:active {
    transform: scale(0.98);
}

/* Сетка кнопок в карточке аукциона */
.auction-bids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.premium-bid-step-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.premium-bid-step-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}
.premium-bid-step-btn span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
    margin-bottom: 2px;
}

/* Кнопка моментального выкупа */
.premium-buy-now-btn {
    width: 100%;
    min-height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    transition: 0.2s;
    text-transform: uppercase;
}
.premium-buy-now-btn:active {
    transform: scale(0.97);
}

.auction-description-block,
.auction-carousel-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

.auction-description-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 16px;
}

