/* ============================================================
   QEMAH DESIGN SYSTEM v2.0
   Modern Auction Platform Redesign
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES - Design Tokens
   ============================================================ */
:root {
    /* Primary Colors */
    --qm-primary: #0E7178;
    --qm-primary-dark: #095459;
    --qm-primary-light: #12959e;
    --qm-primary-50: rgba(14, 113, 120, 0.05);
    --qm-primary-100: rgba(14, 113, 120, 0.1);
    --qm-primary-200: rgba(14, 113, 120, 0.2);

    /* Accent Colors */
    --qm-accent: #22c55e;
    --qm-accent-dark: #16a34a;
    --qm-accent-light: #4ade80;

    /* Status Colors */
    --qm-success: #10b981;
    --qm-success-light: #d1fae5;
    --qm-warning: #f59e0b;
    --qm-warning-light: #fef3c7;
    --qm-danger: #ef4444;
    --qm-danger-light: #fee2e2;
    --qm-info: #3b82f6;
    --qm-info-light: #dbeafe;

    /* Neutrals */
    --qm-white: #ffffff;
    --qm-gray-50: #f9fafb;
    --qm-gray-100: #f3f4f6;
    --qm-gray-200: #e5e7eb;
    --qm-gray-300: #d1d5db;
    --qm-gray-400: #9ca3af;
    --qm-gray-500: #6b7280;
    --qm-gray-600: #4b5563;
    --qm-gray-700: #374151;
    --qm-gray-800: #1f2937;
    --qm-gray-900: #111827;
    --qm-black: #000000;

    /* Typography */
    --qm-font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    --qm-font-size-xs: 0.75rem;    /* 12px */
    --qm-font-size-sm: 0.875rem;   /* 14px */
    --qm-font-size-base: 1rem;     /* 16px */
    --qm-font-size-lg: 1.125rem;   /* 18px */
    --qm-font-size-xl: 1.25rem;    /* 20px */
    --qm-font-size-2xl: 1.5rem;    /* 24px */
    --qm-font-size-3xl: 1.875rem;  /* 30px */
    --qm-font-size-4xl: 2.25rem;   /* 36px */

    /* Spacing */
    --qm-space-1: 0.25rem;   /* 4px */
    --qm-space-2: 0.5rem;    /* 8px */
    --qm-space-3: 0.75rem;   /* 12px */
    --qm-space-4: 1rem;      /* 16px */
    --qm-space-5: 1.25rem;   /* 20px */
    --qm-space-6: 1.5rem;    /* 24px */
    --qm-space-8: 2rem;      /* 32px */
    --qm-space-10: 2.5rem;   /* 40px */
    --qm-space-12: 3rem;     /* 48px */

    /* Border Radius */
    --qm-radius-sm: 6px;
    --qm-radius-md: 10px;
    --qm-radius-lg: 14px;
    --qm-radius-xl: 20px;
    --qm-radius-2xl: 28px;
    --qm-radius-full: 9999px;

    /* Shadows */
    --qm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --qm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --qm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --qm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --qm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --qm-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --qm-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --qm-shadow-primary: 0 4px 14px rgba(14, 113, 120, 0.25);
    --qm-shadow-accent: 0 4px 14px rgba(34, 197, 94, 0.25);

    /* Transitions */
    --qm-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --qm-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --qm-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --qm-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index */
    --qm-z-dropdown: 1000;
    --qm-z-sticky: 1020;
    --qm-z-fixed: 1030;
    --qm-z-modal-backdrop: 1040;
    --qm-z-modal: 1050;
    --qm-z-popover: 1060;
    --qm-z-tooltip: 1070;
    --qm-z-overlay: 9999;
}

/* ============================================================
   2. BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--qm-font-family);
    color: var(--qm-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   3. CARDS - Modern Card System
   ============================================================ */
.qm-card {
    background: var(--qm-white);
    border-radius: var(--qm-radius-lg);
    box-shadow: var(--qm-shadow-sm);
    border: 1px solid var(--qm-gray-100);
    overflow: hidden;
    transition: all var(--qm-transition-base);
}

.qm-card:hover {
    box-shadow: var(--qm-shadow-md);
    transform: translateY(-2px);
}

.qm-card-header {
    padding: var(--qm-space-4) var(--qm-space-5);
    border-bottom: 1px solid var(--qm-gray-100);
    background: var(--qm-gray-50);
}

.qm-card-body {
    padding: var(--qm-space-5);
}

.qm-card-footer {
    padding: var(--qm-space-4) var(--qm-space-5);
    border-top: 1px solid var(--qm-gray-100);
    background: var(--qm-gray-50);
}

/* Card Variants */
.qm-card--primary {
    border-color: var(--qm-primary-200);
    background: linear-gradient(135deg, var(--qm-white) 0%, var(--qm-primary-50) 100%);
}

.qm-card--elevated {
    box-shadow: var(--qm-shadow-lg);
    border: none;
}

.qm-card--flat {
    box-shadow: none;
    border: 1px solid var(--qm-gray-200);
}

.qm-card--flat:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--qm-primary);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.qm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--qm-space-2);
    padding: var(--qm-space-3) var(--qm-space-5);
    font-family: var(--qm-font-family);
    font-size: var(--qm-font-size-sm);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--qm-radius-md);
    cursor: pointer;
    transition: all var(--qm-transition-base);
    white-space: nowrap;
}

.qm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--qm-primary-200);
}

.qm-btn:disabled,
.qm-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button */
.qm-btn--primary {
    background: var(--qm-primary);
    color: var(--qm-white);
    border-color: var(--qm-primary);
}

.qm-btn--primary:hover {
    background: var(--qm-primary-dark);
    border-color: var(--qm-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--qm-shadow-primary);
}

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

/* Secondary Button */
.qm-btn--secondary {
    background: var(--qm-white);
    color: var(--qm-primary);
    border-color: var(--qm-primary);
}

.qm-btn--secondary:hover {
    background: var(--qm-primary-50);
}

/* Accent/Success Button */
.qm-btn--accent {
    background: var(--qm-accent);
    color: var(--qm-white);
    border-color: var(--qm-accent);
}

.qm-btn--accent:hover {
    background: var(--qm-accent-dark);
    border-color: var(--qm-accent-dark);
    box-shadow: var(--qm-shadow-accent);
}

/* Ghost Button */
.qm-btn--ghost {
    background: transparent;
    color: var(--qm-gray-600);
    border-color: transparent;
}

.qm-btn--ghost:hover {
    background: var(--qm-gray-100);
    color: var(--qm-gray-800);
}

/* Button Sizes */
.qm-btn--sm {
    padding: var(--qm-space-2) var(--qm-space-3);
    font-size: var(--qm-font-size-xs);
    min-height: 34px;
    border-radius: var(--qm-radius-md);
}

.qm-btn--lg {
    padding: var(--qm-space-2) var(--qm-space-4);
    font-size: var(--qm-font-size-sm);
    border-radius: var(--qm-radius-md);
    min-height: 40px;
    font-weight: 600;
}

.qm-btn--xl {
    padding: var(--qm-space-3) var(--qm-space-5);
    font-size: var(--qm-font-size-base);
    border-radius: var(--qm-radius-md);
    min-height: 46px;
    font-weight: 600;
}

/* Action Buttons Container - Always in row */
.qm-auction__actions {
    display: flex;
    gap: var(--qm-space-2);
    flex-wrap: nowrap;
    width: 100%;
}

.qm-auction__actions .qm-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    padding: var(--qm-space-2);
    font-size: var(--qm-font-size-xs);
}

.qm-auction__actions .qm-btn i {
    font-size: 12px;
}

.qm-btn--full {
    width: 100%;
}

.qm-btn--rounded {
    border-radius: var(--qm-radius-full);
}

/* Icon Button */
.qm-btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--qm-radius-full);
}

.qm-btn--icon.qm-btn--sm {
    width: 32px;
    height: 32px;
}

.qm-btn--icon.qm-btn--lg {
    width: 48px;
    height: 48px;
}

/* ----------------------
   Navbar Styles
------------------------ */
/* .navbar-vertical.navbar-expand-xs .navbar-nav .nav .nav-link{
    padding-right: 0;
    padding-left: 0;
} */

.navbar-vertical .navbar-nav .nav-item .collapse .nav .nav-item .nav-link:before,
.navbar-vertical .navbar-nav .nav-item .collapse .nav .nav-item .nav-link.active:before {
    display: none;
}

/* ============================================================
   5. AUCTION LIVE PAGE - Complete Redesign
   ============================================================ */

/* Main Container */
.qm-auction {
    position: relative;
}

/* Equal Height Columns */
.qm-auction .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.qm-auction .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.qm-auction__vehicle-section,
.qm-bidding {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .qm-auction__vehicle-section,
    .qm-bidding {
        min-height: 550px;
    }
}

/* Overlay */
.qm-auction__overlay {
    position: absolute;
    inset: 0;
    z-index: var(--qm-z-overlay);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qmFadeIn var(--qm-transition-slow);
}

.qm-auction__overlay-content {
    background: var(--qm-white);
    padding: var(--qm-space-8);
    border-radius: var(--qm-radius-xl);
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: var(--qm-shadow-2xl);
    animation: qmSlideUp var(--qm-transition-slow);
}

.qm-auction__overlay-content h3 {
    color: var(--qm-gray-800);
    font-size: var(--qm-font-size-lg);
    margin-bottom: var(--qm-space-2);
}

.qm-auction__overlay-content p {
    color: var(--qm-gray-500);
    font-size: var(--qm-font-size-sm);
}

/* Vehicle Image Slider */
.qm-auction__slider {
    position: relative;
    background: var(--qm-gray-100);
}

.qm-auction__slider .carousel {
    position: relative;
}

.qm-auction__slide-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--qm-transition-fast);
}

.qm-auction__slide-image:hover {
    transform: scale(1.02);
}

/* Slider Navigation */
.qm-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--qm-gray-700);
    border: none;
    border-radius: var(--qm-radius-full);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    z-index: 5;
    opacity: 0;
}

.qm-auction__slider:hover .qm-slider__nav {
    opacity: 1;
}

.qm-slider__nav:hover {
    background: var(--qm-white);
    transform: translateY(-50%) scale(1.1);
}

.qm-slider__nav--prev {
    right: 12px;
    left: auto;
}

.qm-slider__nav--next {
    left: 12px;
    right: auto;
}

/* Slider Dots */
.qm-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.qm-slider__dots button {
    width: 8px;
    height: 8px;
    border-radius: var(--qm-radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    padding: 0;
}

.qm-slider__dots button.active {
    background: var(--qm-white);
    width: 20px;
}

/* Image Counter */
.qm-slider__counter,
.qm-slider__sort {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--qm-white);
    font-size: var(--qm-font-size-xs);
    font-weight: 600;
    border-radius: var(--qm-radius-full);
    z-index: 5;
}

.qm-slider__sort {
    left: auto;
    right: 12px;
}

/* Video Overlay */
.qm-auction__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    background: var(--qm-black);
}

/* Video Modal */
.qm-video-modal .modal-content {
    background: var(--qm-black);
    border: none;
    border-radius: var(--qm-radius-lg);
    overflow: hidden;
}

.qm-video-modal .modal-body {
    padding: 0;
}

.qm-video-player {
    width: 100%;
    max-height: 70vh;
    display: block;
}

/* Close Video Button */
.qm-slider__close-video {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--qm-gray-800);
    border: none;
    border-radius: var(--qm-radius-full);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    z-index: 20;
}

.qm-slider__close-video:hover {
    background: var(--qm-white);
    transform: scale(1.1);
}

/* Old image container (keep for backwards compatibility) */
.qm-auction__image-container {
    position: relative;
    overflow: hidden;
    background: var(--qm-gray-100);
}

.qm-auction__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--qm-transition-slow);
}

.qm-auction__image-container:hover .qm-auction__image {
    transform: scale(1.02);
}

/* Car Title Under Image */
.qm-auction__car-title {
    padding: var(--qm-space-2) var(--qm-space-4);
    background: var(--qm-white);
    text-align: center;
    border-bottom: 1px solid var(--qm-gray-100);
}

.qm-auction__car-name {
    font-size: var(--qm-font-size-base);
    font-weight: 700;
    color: var(--qm-gray-800);
    margin: 0 0 var(--qm-space-1) 0;
}

.qm-auction__car-type {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    font-weight: 500;
}

/* Car Section - Matching Bidding Section Style */
.qm-auction__vehicle-section {
    border-radius: var(--qm-radius-lg);
    overflow: hidden;
    box-shadow: var(--qm-shadow-md);
    background: var(--qm-white);
    display: flex;
    flex-direction: column;
}

.qm-auction__vehicle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--qm-space-3) var(--qm-space-4);
    background: linear-gradient(135deg, var(--qm-primary) 0%, var(--qm-primary-dark) 100%);
    color: var(--qm-white);
    flex-shrink: 0;
}

.qm-auction__vehicle-header-title {
    font-size: var(--qm-font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
}

.qm-auction__vehicle-header-actions {
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
}

.qm-auction__vehicle-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--qm-white);
    justify-content: flex-start;
}

/* Top Bar (Photos, Video, Timer, Sound) */
.qm-auction__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--qm-space-2);
    flex-wrap: wrap;
    background: var(--qm-white);
}

.qm-auction__toolbar-group {
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
}

.qm-auction__toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--qm-space-2);
    padding: var(--qm-space-2) var(--qm-space-3);
    background: var(--qm-white);
    color: var(--qm-gray-700);
    font-size: var(--qm-font-size-xs);
    font-weight: 500;
    border: 1px solid var(--qm-gray-200);
    border-radius: var(--qm-radius-md);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
}

.qm-auction__toolbar-btn:hover {
    background: var(--qm-gray-50);
    border-color: var(--qm-gray-300);
}

.qm-auction__toolbar-btn i {
    font-size: var(--qm-font-size-sm);
}

/* Timer */
.qm-auction__timer {
    display: inline-flex;
    align-items: center;
    gap: var(--qm-space-1);
    padding: var(--qm-space-1) var(--qm-space-3);
    background: rgba(255, 255, 255, 0.2);
    color: var(--qm-white);
    font-size: var(--qm-font-size-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: var(--qm-radius-md);
    min-width: 70px;
    justify-content: center;
}

.qm-auction__timer--warning {
    background: var(--qm-warning);
    animation: qmPulse 1s infinite;
}

.qm-auction__timer--danger {
    background: var(--qm-danger);
    animation: qmPulse 0.5s infinite;
}

/* Sound Button */
.qm-auction__sound-btn,
.mute_voice,
.unmute_voice {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: var(--qm-white);
    border: none;
    border-radius: var(--qm-radius-full);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    font-size: 14px;
}

.qm-auction__sound-btn:hover,
.mute_voice:hover,
.unmute_voice:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Unmuted State - Green with animation */
.mute_voice {
    background: var(--qm-accent) !important;
    color: var(--qm-white) !important;
    animation: qmSpeakerPulse 1.5s ease-in-out infinite;
}

.mute_voice i {
    color: var(--qm-white) !important;
    animation: qmSpeakerWave 1s ease-in-out infinite;
}

/* Muted State */
.unmute_voice {
    background: rgba(255, 255, 255, 0.2);
    color: var(--qm-white);
}

/* Active Speaker Animation */
.qm-auction__sound-btn.speaker-active,
.mute_voice.speaker-active,
.unmute_voice.speaker-active {
    background: var(--qm-accent) !important;
    color: var(--qm-white) !important;
    animation: qmSpeakerPulse 1.5s ease-in-out infinite !important;
}

.qm-auction__sound-btn.speaker-active i,
.mute_voice.speaker-active i,
.unmute_voice.speaker-active i {
    color: var(--qm-white) !important;
    animation: qmSpeakerWave 1s ease-in-out infinite !important;
}

@keyframes qmSpeakerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 113, 120, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(14, 113, 120, 0);
    }
}

@keyframes qmSpeakerWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Ping Indicator - Signal Bars */
.qm-ping-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--qm-radius-full);
    cursor: default;
}

.qm-ping__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.qm-ping__bar {
    width: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.qm-ping__bar[data-bar="1"] {
    height: 7px;
}

.qm-ping__bar[data-bar="2"] {
    height: 13px;
}

.qm-ping__bar[data-bar="3"] {
    height: 18px;
}

.qm-ping__bar.active {
    background: currentColor;
}

.qm-ping__ms {
    font-size: 11px;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}

/* Ping Colors */
.qm-ping-indicator.ping-good {
    color: #22c55e;
}

.qm-ping-indicator.ping-medium {
    color: #f59e0b;
}

.qm-ping-indicator.ping-poor {
    color: #ef4444;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .qm-ping-indicator {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .qm-ping__bars {
        height: 16px;
        gap: 2px;
    }
    
    .qm-ping__bar {
        width: 4px;
    }
    
    .qm-ping__bar[data-bar="1"] {
        height: 6px;
    }
    
    .qm-ping__bar[data-bar="2"] {
        height: 10px;
    }
    
    .qm-ping__bar[data-bar="3"] {
        height: 14px;
    }
    
    .qm-ping__ms {
        font-size: 10px;
        min-width: 32px;
    }
}

@media (max-width: 575.98px) {
    .qm-ping-indicator {
        padding: 3px 6px;
    }
    
    .qm-ping__bars {
        height: 14px;
    }
    
    .qm-ping__bar {
        width: 3px;
    }
    
    .qm-ping__bar[data-bar="1"] {
        height: 5px;
    }
    
    .qm-ping__bar[data-bar="2"] {
        height: 9px;
    }
    
    .qm-ping__bar[data-bar="3"] {
        height: 12px;
    }
    
    .qm-ping__ms {
        font-size: 9px;
        min-width: 28px;
    }
}

/* Vehicle Details Card */
.qm-auction__details {
    padding: var(--qm-space-3);
}

.qm-auction__details-row {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--qm-space-2);
}

.qm-auction__detail-item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
    padding: var(--qm-space-2);
    background: var(--qm-gray-50);
    border-radius: var(--qm-radius-sm);
}

.qm-auction__detail-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qm-white);
    border-radius: var(--qm-radius-md);
    color: var(--qm-primary);
    font-size: var(--qm-font-size-base);
    box-shadow: var(--qm-shadow-xs);
}

.qm-auction__detail-text {
    flex: 1;
    min-width: 0;
}

.qm-auction__detail-label {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qm-auction__detail-value {
    font-size: var(--qm-font-size-sm);
    font-weight: 600;
    color: var(--qm-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VAT Badge */
.qm-auction__vat-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--qm-space-2);
    padding: var(--qm-space-2) var(--qm-space-3);
    background: var(--qm-success-light);
    color: var(--qm-success);
    font-size: var(--qm-font-size-xs);
    font-weight: 600;
    border-radius: var(--qm-radius-full);
}

/* ============================================================
   6. BIDDING SECTION
   ============================================================ */

/* Live Bidding Container - FIXED HEIGHT */
.qm-bidding {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--qm-radius-lg);
    overflow: hidden;
    box-shadow: var(--qm-shadow-md);
    background: var(--qm-white);
    max-height: 450px;
    height: 450px;
}

.qm-bidding__header {
    flex: 0 0 auto;
}

.qm-bidding__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.qm-bidding__action {
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .qm-bidding {
        max-height: 520px;
        height: 520px;
    }
}

@media (min-width: 1400px) {
    .qm-bidding {
        max-height: 580px;
        height: 580px;
    }
}

@media (max-width: 767.98px) {
    .qm-bidding {
        max-height: 400px;
        height: 400px;
    }
}

.qm-bidding__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--qm-space-3) var(--qm-space-4);
    background: linear-gradient(135deg, var(--qm-primary) 0%, var(--qm-primary-dark) 100%);
    color: var(--qm-white);
    flex-shrink: 0;
}

.qm-bidding__title {
    font-size: var(--qm-font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
}

.qm-bidding__live-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: var(--qm-radius-full);
    animation: qmBlink 1s infinite;
}

.qm-bidding__count {
    font-size: var(--qm-font-size-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--qm-space-1) var(--qm-space-3);
    border-radius: var(--qm-radius-full);
}

/* Bids List - Scrollable inside fixed container */
.qm-bidding__list {
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--qm-white);
    flex: 1;
    min-height: 0;
}

@media (min-width: 992px) {
    .qm-bidding__list {
        flex: 1;
        min-height: 0;
    }
}

.qm-bidding__list::-webkit-scrollbar {
    width: 4px;
}

.qm-bidding__list::-webkit-scrollbar-track {
    background: var(--qm-gray-100);
}

.qm-bidding__list::-webkit-scrollbar-thumb {
    background: var(--qm-gray-300);
    border-radius: var(--qm-radius-full);
}

.qm-bidding__list::-webkit-scrollbar-thumb:hover {
    background: var(--qm-gray-400);
}

/* Single Bid Item */
.qm-bid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--qm-space-3) var(--qm-space-5);
    background: var(--qm-white);
    border-bottom: 1px solid var(--qm-gray-100);
    transition: background var(--qm-transition-fast);
    animation: qmSlideIn var(--qm-transition-base);
}

.qm-bid:last-child {
    border-bottom: none;
}

.qm-bid:hover {
    background: var(--qm-gray-50);
}

/* Highlight latest/winning bid */
.qm-bid--latest {
    background: linear-gradient(90deg, var(--qm-success-light) 0%, var(--qm-white) 100%);
    border-inline-start: 3px solid var(--qm-success);
}

.qm-bid--own {
    background: linear-gradient(90deg, var(--qm-primary-50) 0%, var(--qm-white) 100%);
    border-inline-start: 3px solid var(--qm-primary);
}

/* User with Avatar */
.qm-bid__user {
    display: flex;
    align-items: center;
    gap: var(--qm-space-3);
}

.qm-bid__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--qm-radius-full);
    background: linear-gradient(135deg, var(--qm-primary) 0%, var(--qm-primary-light) 100%);
    color: var(--qm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--qm-font-size-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.qm-bid__avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--qm-radius-full);
    object-fit: cover;
}

.qm-bid__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qm-bid__username {
    font-size: var(--qm-font-size-sm);
    font-weight: 600;
    color: var(--qm-gray-800);
}

.qm-bid__time {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-400);
}

.qm-bid__amount {
    text-align: end;
}

.qm-bid__label {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    margin-bottom: 2px;
}

.qm-bid__value {
    font-size: var(--qm-font-size-base);
    font-weight: 700;
    color: var(--qm-primary);
}

.qm-bid__currency {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    margin-inline-start: var(--qm-space-1);
}

/* Empty State */
.qm-bidding__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--qm-space-8);
    text-align: center;
    color: var(--qm-gray-400);
}

.qm-bidding__empty-icon {
    font-size: 48px;
    margin-bottom: var(--qm-space-4);
    opacity: 0.5;
}

.qm-bidding__empty-text {
    font-size: var(--qm-font-size-sm);
}

/* Bid Button */
.qm-bidding__action {
    padding: var(--qm-space-3) var(--qm-space-4);
    background: var(--qm-white);
    border-top: 1px solid var(--qm-gray-100);
}

.qm-bid-btn {
    width: 100%;
    padding: var(--qm-space-3) var(--qm-space-5);
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    font-size: var(--qm-font-size-sm);
    font-weight: 700;
    border: none;
    border-radius: var(--qm-radius-lg);
    cursor: not-allowed;
    transition: all var(--qm-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--qm-space-2);
    box-shadow: none;
}

/* Active state - DARK GREEN when can bid */
.qm-bid-btn--active {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%) !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.3);
}

.qm-bid-btn--active:hover:not(:disabled):not(.qm-bid-btn--own) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.4);
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%) !important;
}

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

/* Gavel icon */
.qm-bid-btn i {
    font-size: 1.1em;
}

/* Disabled/Own bid - GRAY */
.qm-bid-btn:disabled,
.qm-bid-btn--disabled,
.qm-bid-btn--own {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Rate limited - RED */
.qm-bid-btn--rate-limited {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    cursor: not-allowed;
}

.qm-bid-btn__amount {
    font-size: var(--qm-font-size-base);
}

/* Warning Text */
.qm-bidding__warning {
    text-align: center;
    margin-top: var(--qm-space-2);
    font-size: var(--qm-font-size-xs);
    color: var(--qm-danger);
}

/* Cannot Bid Messages */
.qm-bidding__message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--qm-space-6);
    text-align: center;
    background: var(--qm-gray-50);
    border-radius: var(--qm-radius-lg);
    border: 1px dashed var(--qm-gray-300);
}

.qm-bidding__message-icon {
    font-size: 32px;
    margin-bottom: var(--qm-space-3);
    color: var(--qm-gray-400);
}

.qm-bidding__message-text {
    font-size: var(--qm-font-size-sm);
    color: var(--qm-gray-600);
    margin-bottom: var(--qm-space-3);
}

.qm-bidding__message-link {
    color: var(--qm-primary);
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================================
   7. WINNER / AUCTION END STATES
   ============================================================ */

/* Original winner_box from auctionCarStop.js */
.winner_box,
.no_winner_box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: none !important;
    border-radius: var(--qm-radius-lg);
}

.no_winner_box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

.winner_box .winnerTitle {
    font-family: 'Monoton', cursive;
    color: var(--qm-primary) !important;
}

.winner_box .winnerName {
    color: var(--qm-gray-800);
}

.winner_box p {
    margin-bottom: 0.5rem;
}

.winner_box .h6 {
    color: var(--qm-success);
    font-weight: 700;
}

/* Make list-group-item work in qm-bidding__list */
.qm-bidding__list .list-group-item {
    display: block !important;
    border: none !important;
    background: transparent;
    padding: 10px 15px;
}

.qm-bidding__list .list-group-item.winner_box,
.qm-bidding__list .list-group-item.no_winner_box {
    min-height: 200px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Broadcast Messages from Admin - Orange */
.qm-broadcast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--qm-space-3);
    padding: var(--qm-space-3) var(--qm-space-4);
    margin: var(--qm-space-2) 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--qm-radius-lg);
    border-right: 4px solid #f59e0b;
    animation: qmFadeInUp 0.3s ease-out;
}

.qm-broadcast__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: var(--qm-white);
    border-radius: var(--qm-radius-full);
    font-size: 14px;
}

.qm-broadcast__text {
    font-size: var(--qm-font-size-base);
    font-weight: 600;
    color: #92400e;
}

/* Winner Card - Dark Green */
.qm-winner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 8px 0;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 12px;
    text-align: center;
    animation: winnerPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.4);
    position: relative;
    overflow: hidden;
}

.qm-winner-card__header {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
    animation: winnerGlow 2s ease-in-out infinite alternate;
}

/* Winner info - NAME NEXT TO PIC */
.qm-winner-card__winner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 30px;
}

.qm-winner-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    flex-shrink: 0;
}

.qm-winner-card__name {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.qm-winner-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Confetti */
.qm-confetti {
    position: absolute;
    font-size: 16px;
    animation: confettiFall 2s ease-out infinite;
    z-index: 2;
}
.qm-confetti--1 { top: -15px; left: 10%; animation-delay: 0s; }
.qm-confetti--2 { top: -15px; left: 35%; animation-delay: 0.2s; }
.qm-confetti--3 { top: -15px; right: 35%; animation-delay: 0.4s; }
.qm-confetti--4 { top: -15px; right: 10%; animation-delay: 0.6s; }

@keyframes winnerPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.03); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes winnerGlow {
    0% { text-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
    100% { text-shadow: 0 0 20px rgba(251, 191, 36, 1); }
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

/* Winner Animations */
@keyframes winnerPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* New qm-winner styles */
.qm-winner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--qm-space-8);
    text-align: center;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 50%, #fde68a 100%);
    border-radius: var(--qm-radius-lg);
    animation: qmWinnerPop var(--qm-transition-bounce);
    z-index: 100;
}

.qm-winner__icon {
    font-size: 48px;
    margin-bottom: var(--qm-space-3);
    animation: qmBounce 1s infinite;
}

.qm-winner__title {
    font-size: var(--qm-font-size-3xl);
    font-weight: 800;
    color: var(--qm-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--qm-space-2);
    text-shadow: 2px 2px 0 rgba(14, 113, 120, 0.1);
}

.qm-winner__name {
    font-size: var(--qm-font-size-xl);
    font-weight: 700;
    color: var(--qm-gray-800);
    margin-bottom: var(--qm-space-4);
}

.qm-winner__details {
    display: flex;
    flex-direction: column;
    gap: var(--qm-space-2);
    font-size: var(--qm-font-size-sm);
    color: var(--qm-gray-600);
}

.qm-winner__price {
    font-size: var(--qm-font-size-2xl);
    font-weight: 700;
    color: var(--qm-success);
}

/* No Winner State */
.qm-no-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--qm-space-4);
    text-align: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: var(--qm-radius-lg);
    animation: winnerPop 0.5s ease-out;
}

.qm-no-winner__icon {
    font-size: 32px;
    margin-bottom: var(--qm-space-2);
}

.qm-no-winner__title {
    font-size: var(--qm-font-size-lg);
    font-weight: 700;
    color: #dc2626;
    margin-bottom: var(--qm-space-1);
}

.qm-no-winner__text {
    font-size: var(--qm-font-size-sm);
    color: #7f1d1d;
    margin-bottom: var(--qm-space-2);
}

.qm-no-winner__wait {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
}

/* ============================================================
   8. MODALS - Photo Gallery & Details
   ============================================================ */
.qm-modal {
    z-index: calc(var(--qm-z-modal) + 1000);
}

.qm-modal .modal-content {
    border: none;
    border-radius: var(--qm-radius-xl);
    overflow: hidden;
}

.qm-modal--fullscreen .modal-dialog {
    max-width: 900px;
    margin: 1rem auto;
}

.qm-modal--fullscreen .modal-content {
    border-radius: var(--qm-radius-lg);
    background: var(--qm-black);
}

.qm-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--qm-gray-800);
    border: none;
    border-radius: var(--qm-radius-full);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    z-index: 100;
}

.qm-modal__close:hover {
    background: var(--qm-white);
    transform: scale(1.1);
}

/* Photo Gallery Carousel */
.qm-gallery {
    height: 70vh;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.qm-gallery__image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.qm-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--qm-gray-800);
    border: none;
    border-radius: var(--qm-radius-full);
    cursor: pointer;
    transition: all var(--qm-transition-fast);
    z-index: 10;
}

.qm-gallery__nav:hover {
    background: var(--qm-white);
    transform: translateY(-50%) scale(1.1);
}

.qm-gallery__nav--prev {
    right: 10px;
    left: auto;
}

.qm-gallery__nav--next {
    left: 10px;
    right: auto;
}

/* Mobile adjustments for gallery modal */
@media (max-width: 767.98px) {
    .qm-modal--fullscreen .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .qm-gallery {
        height: 50vh;
        max-height: 350px;
        padding: 10px;
    }
    
    .qm-gallery__nav {
        width: 32px;
        height: 32px;
    }
    
    .qm-modal__close {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
    }
}

/* Details Modal - Compact Design */
.qm-details-modal .modal-dialog {
    max-width: 500px;
}

.qm-details-modal .modal-content {
    border: none;
    border-radius: var(--qm-radius-lg);
    overflow: hidden;
    box-shadow: var(--qm-shadow-xl);
}

.qm-details-modal__content {
    border: none;
    border-radius: var(--qm-radius-lg);
    overflow: hidden;
}

.qm-details-modal__header {
    display: flex;
    align-items: center;
    gap: var(--qm-space-3);
    padding: var(--qm-space-3) var(--qm-space-4);
    background: linear-gradient(135deg, var(--qm-primary) 0%, var(--qm-primary-dark) 100%);
    color: var(--qm-white);
}

.qm-details-modal__header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--qm-radius-md);
    font-size: 18px;
}

.qm-details-modal__header-text {
    flex: 1;
}

.qm-details-modal__title {
    font-size: var(--qm-font-size-base);
    font-weight: 700;
    margin: 0 0 2px 0;
}

.qm-details-modal__subtitle {
    font-size: var(--qm-font-size-xs);
    opacity: 0.9;
    margin: 0;
}

.qm-details-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--qm-radius-full);
    color: var(--qm-white);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--qm-transition-fast);
}

.qm-details-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.qm-details-modal__body {
    padding: var(--qm-space-4);
    background: var(--qm-gray-50);
    max-height: 60vh;
    overflow-y: auto;
}

.qm-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--qm-space-3);
}

/* Details Card Style */
.qm-details-card {
    display: flex;
    align-items: center;
    gap: var(--qm-space-2);
    padding: var(--qm-space-3);
    background: var(--qm-white);
    border-radius: var(--qm-radius-md);
    box-shadow: var(--qm-shadow-xs);
    border: 1px solid var(--qm-gray-100);
    transition: all var(--qm-transition-fast);
}

.qm-details-card:hover {
    box-shadow: var(--qm-shadow-sm);
    border-color: var(--qm-primary-100);
}

.qm-details-card__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qm-primary-50);
    border-radius: var(--qm-radius-sm);
    color: var(--qm-primary);
    font-size: 14px;
}

.qm-details-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qm-details-card__label {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    font-weight: 500;
}

.qm-details-card__value {
    font-size: var(--qm-font-size-base);
    color: var(--qm-gray-800);
    font-weight: 600;
}

.qm-details-card--full {
    grid-column: 1 / -1;
}

.qm-details-card--full .qm-details-card__value {
    font-size: var(--qm-font-size-sm);
    font-weight: 400;
    line-height: 1.7;
}

/* Old details item (backwards compatibility) */
.qm-details-item {
    display: flex;
    flex-direction: column;
    gap: var(--qm-space-1);
}

.qm-details-item__label {
    font-size: var(--qm-font-size-xs);
    color: var(--qm-gray-500);
    font-weight: 500;
}

.qm-details-item__value {
    font-size: var(--qm-font-size-sm);
    color: var(--qm-gray-800);
    font-weight: 600;
}

.qm-details-item--full {
    grid-column: 1 / -1;
}

/* ============================================================
   9. ANIMATIONS
   ============================================================ */
@keyframes qmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

[dir="rtl"] .qm-bid {
    animation-name: qmSlideInRtl;
}

@keyframes qmSlideInRtl {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes qmPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes qmBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes qmBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes qmWinnerPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes qmSoundPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes qmHeartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

/* ============================================================
   10. RESPONSIVE - Mobile First
   ============================================================ */
@media (max-width: 991.98px) {
    .qm-auction__slide-image,
    .qm-auction__image {
        height: 220px;
    }

    .qm-bidding__list {
        max-height: 220px;
    }

    .qm-bid-btn {
        padding: var(--qm-space-3) var(--qm-space-5);
        font-size: var(--qm-font-size-sm);
    }
}

@media (max-width: 767.98px) {
    .qm-auction__toolbar {
        gap: var(--qm-space-2);
    }

    .qm-auction__toolbar-btn {
        padding: var(--qm-space-2) var(--qm-space-3);
        font-size: var(--qm-font-size-xs);
    }

    .qm-auction__timer {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 60px;
    }

    .qm-auction__sound-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .qm-auction__slide-image,
    .qm-auction__image {
        height: 180px;
    }
    
    .qm-auction__vehicle-header {
        padding: 8px 12px;
    }
    
    .qm-auction__vehicle-header-title {
        font-size: 12px;
    }

    .qm-auction__detail-item {
        flex: 1;
        min-width: 0;
        padding: 6px;
        gap: 6px;
    }

    .qm-auction__detail-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 10px;
    }
    
    .qm-auction__detail-label {
        font-size: 10px;
    }
    
    .qm-auction__detail-value {
        font-size: 11px;
    }

    .qm-bidding__header {
        padding: 8px 12px;
    }

    .qm-bidding__title {
        font-size: 12px;
    }
    
    .qm-bidding__count {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .qm-bidding {
        max-height: 320px;
        height: 320px;
    }

    .qm-bidding__list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .qm-bid {
        padding: 8px 12px;
    }
    
    .qm-bid__avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .qm-bid__user {
        gap: 8px;
    }

    .qm-bid__username {
        font-size: 11px;
    }
    
    .qm-bid__time {
        font-size: 9px;
    }
    
    .qm-bid__label {
        font-size: 9px;
    }
    
    .qm-bid__value {
        font-size: 12px;
    }
    
    .qm-bid__currency {
        font-size: 9px;
    }
    
    .qm-bidding__action {
        padding: 10px 12px;
    }
    
    .qm-bid-btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: var(--qm-radius-md);
    }
    
    .qm-bid-btn__amount {
        font-size: 13px;
    }
    
    .qm-slider__nav {
        width: 28px;
        height: 28px;
        opacity: 1;
    }
    
    .qm-slider__counter,
   .qm-slider__sort {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }
    
    .qm-slider__dots {
        bottom: 8px;
        gap: 5px;
    }
    
    .qm-slider__dots button {
        width: 6px;
        height: 6px;
    }
    
    .qm-slider__dots button.active {
        width: 14px;
    }

    .qm-winner {
        padding: var(--qm-space-4);
    }

    .qm-winner__title {
        font-size: var(--qm-font-size-lg);
    }

    .qm-winner__name {
        font-size: var(--qm-font-size-base);
    }

    .qm-details-grid {
        grid-template-columns: 1fr;
    }

    .qm-details-modal__header {
        padding: var(--qm-space-3);
    }

    .qm-details-modal__header-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .qm-details-modal__body {
        padding: var(--qm-space-3);
    }

    .qm-details-card {
        padding: var(--qm-space-2);
    }

    .qm-details-card__icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }
    
    /* Gap between sections */
    .row.g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    /* FIX HORIZONTAL SCROLL */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .auction_live_page,
    .auction_live_page .space_container,
    .qm-auction,
    .qm-auction .row,
    .qm-auction .row.g-4 {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Space container */
    .auction_live_page .space_container {
        padding: 6px !important;
    }
    
    /* Image - 180px */
    .qm-auction__slide-image,
    .qm-auction__image {
        height: 180px;
    }
    
    /* Header */
    .qm-auction__vehicle-header {
        padding: 6px 10px;
    }
    
    .qm-auction__vehicle-header-title {
        font-size: 11px;
    }
    
    .qm-auction__timer {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .qm-auction__sound-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    /* Buttons */
    .qm-auction__actions {
        padding: 6px 10px;
        gap: 5px;
    }

    .qm-auction__actions .qm-btn {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .qm-auction__actions .qm-btn i {
        font-size: 9px;
    }
    
    /* Details */
    .qm-auction__details-row {
        padding: 6px 10px;
        gap: 5px;
    }
    
    .qm-auction__detail-item {
        padding: 3px;
        gap: 3px;
    }
    
    .qm-auction__detail-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 9px;
    }
    
    .qm-auction__detail-label {
        font-size: 8px;
    }
    
    .qm-auction__detail-value {
        font-size: 10px;
    }
    
    /* Slider nav */
    .qm-slider__nav {
        width: 26px;
        height: 26px;
        opacity: 1;
    }
    
    .qm-slider__counter,
   .qm-slider__sort {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .qm-slider__dots button {
        width: 5px;
        height: 5px;
    }
    
    .qm-slider__dots button.active {
        width: 12px;
    }
    
    /* BIDDING BOX - BIGGER */
    .qm-bidding {
        max-height: 320px !important;
        height: auto !important;
        min-height: 300px;
    }
    
    .qm-bidding__header {
        padding: 8px 12px;
    }
    
    .qm-bidding__title {
        font-size: 11px;
    }
    
    .qm-bidding__count {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Bids list - BIGGER */
    .qm-bidding__list {
        min-height: 160px;
        max-height: 200px;
    }
    
    /* When winner box is shown, remove max-height */
    .qm-bidding__list:has(.winner_box),
    .qm-bidding__list:has(.no_winner_box),
    .qm-bidding__list:has(.no-bids-yet) {
        max-height: none !important;
        min-height: 180px !important;
        overflow: visible !important;
    }
    
    #bid-updates {
        margin: 0;
        padding: 0;
    }
    
    /* Winner box specific styles for mobile */
    .winner_box.list-group-item,
    .no_winner_box.list-group-item {
        display: block !important;
        padding: 15px 10px !important;
        min-height: 180px !important;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
        border: none !important;
        border-radius: 8px !important;
    }
    
    .no_winner_box.list-group-item {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    }
    
    .winner_box .winnerTitle,
    .no_winner_box .winnerTitle {
        font-size: 24px !important;
        line-height: 1 !important;
        margin-bottom: 5px !important;
    }
    
    .winner_box .winnerName,
    .no_winner_box .winnerName {
        font-size: 13px !important;
        margin: 5px 0 10px !important;
    }
    
    .winner_box p,
    .no_winner_box p {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }
    
    /* Broadcast messages mobile */
    .qm-broadcast {
        padding: 8px 12px;
        gap: 8px;
        margin: 4px 0;
    }
    
    .qm-broadcast__icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .qm-broadcast__text {
        font-size: 12px;
    }
    
    /* Winner card mobile */
    .qm-winner-card {
        padding: 12px;
        margin: 6px 0;
    }
    
    .qm-winner-card__header {
        font-size: 14px;
    }
    
    .qm-winner-card__winner {
        padding: 8px 14px;
        gap: 10px;
    }
    
    .qm-winner-card__avatar {
        width: 40px;
        height: 40px;
    }
    
    .qm-winner-card__name {
        font-size: 16px;
    }
    
    .qm-winner-card__price {
        font-size: 14px;
    }
    
    .qm-confetti {
        font-size: 12px;
    }
    
    .qm-bid {
        padding: 8px 12px;
    }
    
    .qm-bid__avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .qm-bid__user {
        gap: 6px;
    }
    
    .qm-bid__username {
        font-size: 11px;
    }
    
    .qm-bid__time {
        font-size: 9px;
    }
    
    .qm-bid__label {
        font-size: 9px;
    }
    
    .qm-bid__value {
        font-size: 13px;
    }
    
    .qm-bid__currency {
        font-size: 9px;
    }
    
    /* Bid button */
    .qm-bidding__action {
        padding: 10px 12px;
    }
    
    .qm-bid-btn {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .qm-bid-btn__amount {
        font-size: 14px;
    }
    
    /* Ping */
    .qm-ping-indicator {
        padding: 3px 6px;
        gap: 3px;
    }
    
    .qm-ping__bars {
        height: 14px;
        gap: 2px;
    }
    
    .qm-ping__bar {
        width: 3px;
    }
    
    .qm-ping__bar[data-bar="1"] { height: 5px; }
    .qm-ping__bar[data-bar="2"] { height: 9px; }
    .qm-ping__bar[data-bar="3"] { height: 13px; }
    
    .qm-ping__ms {
        font-size: 9px;
        min-width: 28px;
    }
    
    /* Row gaps - tighter */
    .row.g-4 {
        --bs-gutter-y: 0.4rem;
        --bs-gutter-x: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .row.g-4 > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .qm-auction__slide-image,
    .qm-auction__image {
        height: 350px;
    }

    .qm-bidding__list {
        max-height: 400px;
    }
}

@media (min-width: 1800px) {
    .qm-auction__slide-image,
    .qm-auction__image {
        height: 400px;
    }

    .qm-bidding__list {
        max-height: 450px;
    }
}

/* ============================================================
   11. UTILITIES
   ============================================================ */
.qm-text-primary { color: var(--qm-primary) !important; }
.qm-text-accent { color: var(--qm-accent) !important; }
.qm-text-success { color: var(--qm-success) !important; }
.qm-text-warning { color: var(--qm-warning) !important; }
.qm-text-danger { color: var(--qm-danger) !important; }
.qm-text-muted { color: var(--qm-gray-500) !important; }

.qm-bg-primary { background-color: var(--qm-primary) !important; }
.qm-bg-primary-light { background-color: var(--qm-primary-50) !important; }
.qm-bg-accent { background-color: var(--qm-accent) !important; }
.qm-bg-gray { background-color: var(--qm-gray-100) !important; }

.qm-rounded { border-radius: var(--qm-radius-md) !important; }
.qm-rounded-lg { border-radius: var(--qm-radius-lg) !important; }
.qm-rounded-xl { border-radius: var(--qm-radius-xl) !important; }
.qm-rounded-full { border-radius: var(--qm-radius-full) !important; }

.qm-shadow { box-shadow: var(--qm-shadow-md) !important; }
.qm-shadow-lg { box-shadow: var(--qm-shadow-lg) !important; }

.qm-hidden { display: none !important; }
.qm-visible { display: block !important; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print */
@media print {
    .qm-auction__toolbar,
    .qm-bidding__action,
    .qm-whatsapp-float {
        display: none !important;
    }
}