:root {
    --primary-color: #009FE3;
    --primary-dark: #0d47a1;
    --accent-color: #00d4ff;
    --success-color: #00e676;
    --warning-color: #ff9800;
    --danger-color: #d32f2f;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
}

.auction-wrapper {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    padding: 40px 0;
}

.auction-container {
    background: white;
    border-radius: 20px;
    padding: 50px 35px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.auction-content {
    position: relative;
    z-index: 1;
}

.status-badge {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.status-active {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
}

.status-scheduled {
    background: linear-gradient(135deg, #ffd740, #ffc107);
    color: #333;
}

/* ============================================
   NO AUCTION PLACEHOLDER
   ============================================ */
.no-auction-placeholder {
    text-align: center;
    padding: 60px 30px;
}

.no-auction-icon {
    margin-bottom: 30px;
}

.no-auction-icon svg {
    width: 180px;
    height: 180px;
    opacity: 0.9;
}

.no-auction-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.no-auction-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-auction-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 159, 227, 0.15);
}

.step-card.completed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: var(--success-color);
}

.step-card.pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: var(--warning-color);
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card:not(.completed):not(.pending) .step-number {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #666;
}

.step-card.completed .step-number {
    background: linear-gradient(135deg, var(--success-color), #00c853);
    color: white;
}

.step-card.pending .step-number {
    background: linear-gradient(135deg, var(--warning-color), #f57c00);
    color: white;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.step-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.step-status {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-card.completed .step-status {
    color: var(--success-color);
}

.step-card.pending .step-status {
    color: var(--warning-color);
}

.no-auction-cta {
    margin-top: 30px;
}

.no-auction-cta .cta-button {
    margin: 10px;
}

.notification-signup {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.notification-signup-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.notification-signup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.notification-signup-text {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Animated car icon */
@keyframes carBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.no-auction-icon svg .car-body {
    animation: carBounce 2s ease-in-out infinite;
}

@keyframes wheelSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TIMER WITH VEHICLE IMAGE INSIDE
   ============================================ */
.timer-vehicle-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: auto;
}

/* Vehicle image as background inside timer */
.vehicle-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

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

/* Dark overlay on image for better text readability */
.vehicle-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Timer section positioned over vehicle */
.timer-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.timer-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.timer-svg {
    width: 100%;
    height: 100%;
}

/* Timer ticks */
.timer-tick {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
}

.timer-tick-major {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 3;
}

.timer-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 10;
}

/* Progress shows REMAINING time - starts full, depletes to empty */
.timer-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 8px rgba(0, 159, 227, 0.6));
}

.timer-progress.urgent {
    stroke: url(#timerUrgentGradient);
    filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.7));
}

/* Pulse animation for the timer circle */
.timer-progress.pulse {
    animation: circlePulse 1s ease-out;
}

@keyframes circlePulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 159, 227, 0.6));
    }
    30% {
        filter: drop-shadow(0 0 18px rgba(0, 159, 227, 1));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 159, 227, 0.6));
    }
}

.timer-progress.urgent.pulse {
    animation: circlePulseUrgent 1s ease-out;
}

@keyframes circlePulseUrgent {
    0% {
        filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.7));
    }
    30% {
        filter: drop-shadow(0 0 20px rgba(211, 47, 47, 1));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.7));
    }
}

/* Timer text - positioned over vehicle image */
.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

/* White text with dark border/shadow */
.time-display {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6),
        1px -1px 2px rgba(0, 0, 0, 0.6),
        -1px 1px 2px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

.time-display.urgent {
    color: #ff6b6b;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.7),
        1px -1px 2px rgba(0, 0, 0, 0.7),
        -1px 1px 2px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(255, 107, 107, 0.5);
}

/* Soft pulse animation for numbers */
.time-display.pulse {
    animation: numberPulse 1s ease-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.03);
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            -1px -1px 2px rgba(0, 0, 0, 0.6),
            1px -1px 2px rgba(0, 0, 0, 0.6),
            -1px 1px 2px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.time-display.urgent.pulse {
    animation: numberPulseUrgent 1s ease-out;
}

@keyframes numberPulseUrgent {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.05);
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            -1px -1px 2px rgba(0, 0, 0, 0.7),
            1px -1px 2px rgba(0, 0, 0, 0.7),
            -1px 1px 2px rgba(0, 0, 0, 0.7),
            0 0 25px rgba(255, 107, 107, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

.time-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
    font-weight: 600;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
}

/* Warning Message */
.warning-message {
    background: linear-gradient(135deg, #fff3cd, #ffe082);
    color: #856404;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 400px;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    display: none;
}

.warning-message.show {
    display: block;
}

/* ============================================
   PRICE SECTION
   ============================================ */
.price-section {
    background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
    border-radius: 18px;
    padding: 35px;
    margin: 35px 0;
    border: 2px solid #ddd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.price-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.price-starting {
    font-size: 2.2rem;
}

.bid-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-top: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.bid-info i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.new-bid-flash {
    animation: flashBid 0.6s ease;
}

@keyframes flashBid {
    0%, 100% {
        background: white;
        border-color: #e0e0e0;
        transform: scale(1);
    }
    50% {
        background: #ffd740;
        border-color: #ffc107;
        transform: scale(1.08);
    }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
    margin: 40px 0;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 22px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid #e0e0e0;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 159, 227, 0.35);
    border-color: var(--primary-color);
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 159, 227, 0.85), rgba(0, 212, 255, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    margin-top: 45px;
}

.cta-button {
    display: inline-block;
    padding: 20px 55px;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-button span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.btn-bid-now {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
}

.btn-verify {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.btn-signup {
    background: linear-gradient(135deg, #009FE3, #0d47a1);
    color: white;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.cta-message {
    background: #f5f5f5;
    border-left: 5px solid var(--success-color);
    padding: 18px 28px;
    border-radius: 10px;
    margin-top: 22px;
    font-size: 1rem;
    color: #555;
}

.cta-message i {
    color: var(--success-color);
    margin-right: 10px;
}

.cta-warning {
    border-left-color: var(--warning-color);
}

.cta-warning i {
    color: var(--warning-color);
}

.cta-info {
    border-left-color: var(--primary-color);
}

.cta-info i {
    color: var(--primary-color);
}

/* ============================================
   LOADER
   ============================================ */
.auction-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(0, 159, 227, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auction-container {
        padding: 35px 20px;
    }

    .timer-vehicle-wrapper {
        width: 280px;
        height: 280px;
    }

    .vehicle-image-bg {
        width: 190px;
        height: 190px;
    }

    .time-display {
        font-size: 40px;
    }

    .price-value {
        font-size: 2.8rem;
    }

    .price-starting {
        font-size: 1.8rem;
    }

    .cta-button {
        width: 100%;
        padding: 18px 40px;
        font-size: 1.15rem;
    }

    .no-auction-placeholder {
        padding: 40px 20px;
    }

    .no-auction-icon svg {
        width: 140px;
        height: 140px;
    }

    .no-auction-title {
        font-size: 1.4rem;
    }

    .no-auction-subtitle {
        font-size: 1rem;
    }

    .step-card {
        padding: 15px 20px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .timer-vehicle-wrapper {
        width: 240px;
        height: 240px;
    }

    .vehicle-image-bg {
        width: 160px;
        height: 160px;
    }

    .time-display {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .time-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .price-value {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 12px;
    }

    .no-auction-icon svg {
        width: 120px;
        height: 120px;
    }

    .no-auction-title {
        font-size: 1.25rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .step-content {
        text-align: center;
    }

    .notification-signup {
        padding: 20px;
    }
}