/* ===== AUCTION PAGE ===== */
.auction-page {
    padding: 24px 20px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Timer */
.auction-timer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auction-timer__label {
    font-size: 12px;
    font-weight: 700;
    color: #5a5a6a;
    letter-spacing: 3px;
}

.auction-timer__clock {
    font-size: 36px;
    font-weight: 800;
    color: #f5c842;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.auction-timer__clock--ended {
    color: #e74c3c;
    animation: timerPulse 1s ease-in-out infinite alternate;
}

@keyframes timerPulse {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

/* Prize card */
.auction-prize {
    position: relative;
    background: #13131b;
    border-radius: 20px;
    border: 2px solid #f5c842;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    overflow: hidden;
}

.auction-prize__glow {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auction-prize__badge {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #0a0a0f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 4px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(245, 200, 66, 0.25);
}

.auction-prize__img {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(245, 200, 66, 0.25));
}

.auction-prize__info {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auction-prize__name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-prize__price {
    font-size: 22px;
    font-weight: 800;
    color: #f5c842;
}

/* Current bid */
.auction-current {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #13131b;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 32px;
}

.auction-current__label {
    font-size: 12px;
    font-weight: 700;
    color: #5a5a6a;
    letter-spacing: 2px;
}

.auction-current__value {
    font-size: 24px;
    font-weight: 800;
    color: #2ecc71;
}

/* Leaders table */
.auction-leaders {
    background: #13131b;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    width: 100%;
    max-width: 480px;
}

.auction-leaders__title {
    font-size: 13px;
    font-weight: 700;
    color: #5a5a6a;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-align: center;
}

.auction-leaders__table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auction-leaders__row {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s;
}

.auction-leaders__row--header {
    padding: 6px 14px;
}

.auction-leaders__row--header .auction-leaders__col {
    font-size: 11px;
    font-weight: 700;
    color: #3a3a4a;
    letter-spacing: 1px;
}

.auction-leaders__row--1 {
    background: rgba(245, 200, 66, 0.08);
    border: 1px solid rgba(245, 200, 66, 0.15);
}

.auction-leaders__row--2 {
    background: rgba(192, 192, 192, 0.06);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.auction-leaders__row--3 {
    background: rgba(205, 127, 50, 0.06);
    border: 1px solid rgba(205, 127, 50, 0.1);
}

.auction-leaders__row--4 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.auction-leaders__col--place {
    font-size: 14px;
    font-weight: 800;
    color: #5a5a6a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auction-leaders__medal {
    font-size: 16px;
}

.auction-leaders__col--name {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-leaders__col--bid {
    font-size: 15px;
    font-weight: 700;
    color: #f5c842;
    text-align: right;
}

/* Bid input area */
.auction-bid {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auction-bid__row {
    display: flex;
    gap: 10px;
}

.auction-bid__input {
    flex: 1;
    background: #13131b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.auction-bid__input::placeholder {
    color: #3a3a4a;
}

.auction-bid__input:focus {
    border-color: #f5c842;
}

/* Remove number input spin buttons */
.auction-bid__input::-webkit-outer-spin-button,
.auction-bid__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.auction-bid__input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.auction-bid__btn {
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #0a0a0f;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
}

.auction-bid__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 200, 66, 0.4);
}

.auction-bid__btn:active {
    transform: translateY(0);
}

.auction-bid__hint {
    font-size: 12px;
    font-weight: 600;
    color: #5a5a6a;
    text-align: center;
    min-height: 18px;
    transition: color 0.2s;
}

.auction-bid__hint--error {
    color: #e74c3c;
}

.auction-bid__hint--success {
    color: #2ecc71;
}
