/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CAR LISTING INDEX - ULTRA-LUXURY STYLESHEET
   Namespace: cliiiiiii (Car Listing Index Interface Incredible)
   Brand: Automotive Excellence | High-Performance Design System
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ═══════════════════════════════════════════════════════════════════════════
   ROOT VARIABLES - BRAND COLOR SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --cliiiiiii-primary-orange: #ff7a00;
    --cliiiiiii-orange-light: #ff9533;
    --cliiiiiii-orange-dark: #e66a00;
    --cliiiiiii-orange-glow: rgba(255, 122, 0, 0.4);
    
    --cliiiiiii-white: #ffffff;
    --cliiiiiii-cream: #f5e7da;
    --cliiiiiii-black: #000000;
    
    --cliiiiiii-dark-primary: #0a0a0a;
    --cliiiiiii-dark-secondary: #0d0d0d;
    --cliiiiiii-dark-elevated: #141414;
    --cliiiiiii-dark-surface: #181818;
    --cliiiiiii-dark-card: #1a1a1a;
    --cliiiiiii-dark-border: #222222;
    --cliiiiiii-dark-medium: #2d2d2d;
    
    --cliiiiiii-success: #10b981;
    --cliiiiiii-success-dark: #059669;
    --cliiiiiii-danger: #ef4444;
    --cliiiiiii-danger-dark: #dc2626;
    --cliiiiiii-warning: #f59e0b;
    --cliiiiiii-warning-dark: #d97706;
    --cliiiiiii-info: #3b82f6;
    --cliiiiiii-info-dark: #2563eb;
    
    --cliiiiiii-text-primary: #ffffff;
    --cliiiiiii-text-secondary: rgba(255, 255, 255, 0.85);
    --cliiiiiii-text-tertiary: rgba(255, 255, 255, 0.7);
    --cliiiiiii-text-muted: rgba(255, 255, 255, 0.5);
    --cliiiiiii-text-disabled: rgba(255, 255, 255, 0.3);
    
    --cliiiiiii-gradient-primary: linear-gradient(135deg, #ff7a00, #ff9533);
    --cliiiiiii-gradient-dark: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    --cliiiiiii-gradient-glass: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(255, 149, 51, 0.06));
    --cliiiiiii-gradient-card: linear-gradient(145deg, rgba(24, 24, 24, 0.98), rgba(34, 34, 34, 0.95));
    --cliiiiiii-gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
    
    --cliiiiiii-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --cliiiiiii-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --cliiiiiii-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --cliiiiiii-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --cliiiiiii-shadow-glow: 0 0 40px rgba(255, 122, 0, 0.3);
    --cliiiiiii-shadow-glow-strong: 0 0 60px rgba(255, 122, 0, 0.5);
    --cliiiiiii-shadow-primary: 0 25px 80px rgba(255, 122, 0, 0.35);
    
    --cliiiiiii-blur-glass: blur(25px);
    --cliiiiiii-blur-heavy: blur(40px);
    
    --cliiiiiii-radius-xs: 8px;
    --cliiiiiii-radius-sm: 12px;
    --cliiiiiii-radius-md: 16px;
    --cliiiiiii-radius-lg: 20px;
    --cliiiiiii-radius-xl: 24px;
    --cliiiiiii-radius-2xl: 32px;
    --cliiiiiii-radius-full: 9999px;
    
    --cliiiiiii-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cliiiiiii-transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cliiiiiii-transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --cliiiiiii-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --cliiiiiii-transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --cliiiiiii-z-base: 1;
    --cliiiiiii-z-dropdown: 100;
    --cliiiiiii-z-sticky: 200;
    --cliiiiiii-z-fixed: 300;
    --cliiiiiii-z-modal: 400;
    --cliiiiiii-z-popover: 500;
    --cliiiiiii-z-tooltip: 600;
}

.cliiiiiii-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cliiiiiii-dark-primary), var(--cliiiiiii-dark-elevated), var(--cliiiiiii-dark-secondary));
    color: var(--cliiiiiii-text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    padding: clamp(80px, 12vh, 120px) clamp(16px, 3vw, 40px) clamp(60px, 10vh, 100px);
    overflow-x: hidden;
}

.cliiiiiii-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--cliiiiiii-z-base);
    overflow: hidden;
}

.cliiiiiii-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cliiiiiii-primary-orange), transparent);
    opacity: 0.2;
    animation: cliiiiiiFloatOrbit 25s linear infinite;
}

.cliiiiiii-particle:nth-child(1) { width: 4px; height: 4px; left: 15%; top: 25%; animation-duration: 20s; }
.cliiiiiii-particle:nth-child(2) { width: 6px; height: 6px; left: 75%; top: 20%; animation-duration: 28s; animation-delay: -5s; }
.cliiiiiii-particle:nth-child(3) { width: 3px; height: 3px; left: 50%; top: 70%; animation-duration: 22s; animation-delay: -10s; }
.cliiiiiii-particle:nth-child(4) { width: 5px; height: 5px; left: 85%; top: 55%; animation-duration: 26s; animation-delay: -15s; }

.cliiiiiii-glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12), transparent);
    filter: blur(100px);
    animation: cliiiiiiPulseGlow 7s ease-in-out infinite;
}

.cliiiiiii-glow-1 { width: 350px; height: 350px; left: 20%; top: 30%; animation-delay: 0s; }
.cliiiiiii-glow-2 { width: 450px; height: 450px; left: 65%; top: 55%; animation-delay: -4s; }

.cliiiiiii-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 35%, rgba(255, 122, 0, 0.08), transparent 60%),
                radial-gradient(circle at 75% 75%, rgba(245, 231, 218, 0.05), transparent 60%);
    pointer-events: none;
    z-index: var(--cliiiiiii-z-base);
}

.cliiiiiii-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 4vw, 32px);
    margin-bottom: clamp(40px, 8vh, 60px);
    padding: clamp(28px, 5.5vh, 40px) clamp(28px, 5.5vw, 48px);
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-xl);
    border: 1px solid rgba(255, 122, 0, 0.15);
    box-shadow: var(--cliiiiiii-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cliiiiiii-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12), transparent 70%);
    pointer-events: none;
    animation: cliiiiiiPulseSlow 5s ease-in-out infinite;
}

.cliiiiiii-header-content {
    flex: 1;
    z-index: 2;
}

.cliiiiiii-header-title {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 900;
    font-family: "Outfit", sans-serif;
    background: linear-gradient(135deg, var(--cliiiiiii-primary-orange), var(--cliiiiiii-orange-light), var(--cliiiiiii-white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cliiiiiii-header-title i {
    color: var(--cliiiiiii-primary-orange);
    font-size: 0.85em;
    -webkit-text-fill-color: var(--cliiiiiii-primary-orange);
}

.cliiiiiii-header-subtitle {
    font-size: clamp(0.95rem, 1.8vw + 0.3rem, 1.05rem);
    color: var(--cliiiiiii-text-tertiary);
    font-weight: 500;
}

.cliiiiiii-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(12px, 2.5vh, 16px) clamp(20px, 4vw, 28px);
    border-radius: var(--cliiiiiii-radius-md);
    font-size: clamp(0.9rem, 1.6vw + 0.3rem, 0.95rem);
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--cliiiiiii-transition-smooth);
    overflow: hidden;
    z-index: 2;
}

.cliiiiiii-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cliiiiiii-btn:hover::before {
    left: 100%;
}

.cliiiiiii-btn-primary {
    background: var(--cliiiiiii-gradient-primary);
    color: var(--cliiiiiii-white);
    box-shadow: 0 6px 20px var(--cliiiiiii-orange-glow);
    border: 2px solid transparent;
}

.cliiiiiii-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 122, 0, 0.5);
}

.cliiiiiii-btn-secondary {
    background: rgba(34, 34, 34, 0.8);
    color: var(--cliiiiiii-text-secondary);
    border: 2px solid rgba(255, 122, 0, 0.2);
}

.cliiiiiii-btn-secondary:hover {
    background: rgba(255, 122, 0, 0.1);
    border-color: var(--cliiiiiii-primary-orange);
    color: var(--cliiiiiii-primary-orange);
    transform: translateY(-2px);
}

.cliiiiiii-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cliiiiiii-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(32px, 6vh, 48px);
}

.cliiiiiii-stat-card {
    position: relative;
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-lg);
    padding: clamp(24px, 5vh, 32px);
    text-align: center;
    border: 2px solid rgba(255, 122, 0, 0.1);
    box-shadow: var(--cliiiiiii-shadow-md);
    transition: var(--cliiiiiii-transition-smooth);
    overflow: hidden;
}

.cliiiiiii-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.cliiiiiii-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--cliiiiiii-shadow-lg), 0 0 40px rgba(255, 122, 0, 0.25);
    border-color: rgba(255, 122, 0, 0.3);
}

.cliiiiiii-stat-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.cliiiiiii-stat-icon.cliiiiiii-primary { color: var(--cliiiiiii-primary-orange); }
.cliiiiiii-stat-icon.cliiiiiii-success { color: var(--cliiiiiii-success); }
.cliiiiiii-stat-icon.cliiiiiii-warning { color: var(--cliiiiiii-warning); }
.cliiiiiii-stat-icon.cliiiiiii-info { color: var(--cliiiiiii-info); }

.cliiiiiii-stat-number {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: 900;
    font-family: "Outfit", sans-serif;
    background: linear-gradient(135deg, var(--cliiiiiii-white), var(--cliiiiiii-cream));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1;
}

.cliiiiiii-stat-label {
    font-size: clamp(0.85rem, 1.5vw + 0.3rem, 0.9rem);
    color: var(--cliiiiiii-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cliiiiiii-filter-section {
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-xl);
    padding: clamp(24px, 5vh, 32px);
    border: 1px solid rgba(255, 122, 0, 0.12);
    box-shadow: var(--cliiiiiii-shadow-md);
    margin-bottom: clamp(32px, 6vh, 48px);
}

.cliiiiiii-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(16px, 3vw, 20px);
    align-items: end;
}

.cliiiiiii-form-control {
    width: 100%;
    padding: clamp(12px, 2.5vh, 15px) clamp(16px, 3vw, 20px);
    background: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 122, 0, 0.15);
    border-radius: var(--cliiiiiii-radius-sm);
    color: var(--cliiiiiii-text-primary);
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 0.95rem);
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: var(--cliiiiiii-transition-base);
}

.cliiiiiii-form-control::placeholder {
    color: var(--cliiiiiii-text-muted);
}

.cliiiiiii-form-control:focus {
    outline: none;
    border-color: var(--cliiiiiii-primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
    transform: translateY(-2px);
}

.cliiiiiii-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ff7a00' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAR CARDS GRID - DROPDOWN FIX APPLIED
   ═══════════════════════════════════════════════════════════════════════════ */
.cliiiiiii-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 4vw, 32px);
    margin-bottom: clamp(32px, 6vh, 48px);
}

.cliiiiiii-car-card {
    position: relative;
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-xl);
    border: 1px solid rgba(255, 122, 0, 0.12);
    box-shadow: var(--cliiiiiii-shadow-md);
    overflow: visible !important;
    transition: var(--cliiiiiii-transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cliiiiiii-car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    pointer-events: none;
    opacity: 0;
    transition: var(--cliiiiiii-transition-base);
}

.cliiiiiii-car-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--cliiiiiii-shadow-xl), 0 0 50px rgba(255, 122, 0, 0.3);
    border-color: rgba(255, 122, 0, 0.3);
}

.cliiiiiii-car-card:hover::before {
    opacity: 1;
}

.cliiiiiii-car-image-container {
    position: relative;
    height: clamp(180px, 25vw, 220px);
    overflow: hidden;
    border-radius: var(--cliiiiiii-radius-lg) var(--cliiiiiii-radius-lg) 0 0;
}

.cliiiiiii-car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--cliiiiiii-transition-slow);
}

.cliiiiiii-car-card:hover .cliiiiiii-car-image {
    transform: scale(1.1);
}

.cliiiiiii-car-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cliiiiiii-gradient-overlay);
    opacity: 0;
    transition: var(--cliiiiiii-transition-base);
}

.cliiiiiii-car-card:hover .cliiiiiii-car-image-overlay {
    opacity: 1;
}

.cliiiiiii-car-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.cliiiiiii-badge {
    padding: 6px 14px;
    border-radius: var(--cliiiiiii-radius-full);
    font-size: clamp(0.7rem, 1.2vw + 0.3rem, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cliiiiiii-badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: var(--cliiiiiii-white);
}

.cliiiiiii-badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: var(--cliiiiiii-white);
}

.cliiiiiii-badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: var(--cliiiiiii-white);
}

.cliiiiiii-badge-primary {
    background: var(--cliiiiiii-gradient-primary);
    color: var(--cliiiiiii-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWN - COMPLETE FIX
   ═══════════════════════════════════════════════════════════════════════════ */
.cliiiiiii-car-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

.cliiiiiii-action-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(18, 18, 18, 0.95));
    backdrop-filter: blur(20px);
    color: var(--cliiiiiii-white);
    border: 2px solid rgba(255, 122, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 200;
}

.cliiiiiii-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.cliiiiiii-action-btn:hover::before {
    width: 100px;
    height: 100px;
}

.cliiiiiii-action-btn:hover {
    background: linear-gradient(135deg, #ff7a00, #ff9533);
    border-color: var(--cliiiiiii-orange-light);
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 8px 32px rgba(255, 122, 0, 0.5),
                0 0 40px rgba(255, 122, 0, 0.3);
}

.cliiiiiii-action-btn i {
    font-size: 16px;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.cliiiiiii-action-btn:hover i {
    transform: scale(1.1);
}

/* Kill Bootstrap's positioning completely */
.cliiiiiii-dropdown-menu {
    min-width: 200px !important;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(20, 20, 20, 0.96)) !important;
    backdrop-filter: blur(30px) !important;
    border: 2px solid rgba(255, 122, 0, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6),
                0 8px 24px rgba(255, 122, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 12px !important;
    animation: cliiiiiiDropdownSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    overflow: visible !important;
    
    /* CRITICAL - Force fixed positioning */
    position: fixed !important;
    top: 0 !important;
    left: 100 !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 999999 !important;
    
    /* Hide until positioned */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.dropdown-menu.show {
    position: fixed !important;
    transform: none !important;
    inset: set !important;
}

/* Show when correctly positioned */
.cliiiiiii-dropdown-menu.show.positioned {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cliiiiiii-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 122, 0, 0.05), 
                transparent 60%,
                rgba(255, 122, 0, 0.03));
    pointer-events: none;
    z-index: 0;
}

/* Show dropdown only when positioned */
.cliiiiiii-dropdown-menu.positioned {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease, visibility 0s linear 0s !important;
}

/* Override Bootstrap's default positioning immediately */
.dropdown-menu {
    position: fixed !important;
    transform: none !important;
    will-change: top, left;
}

.cliiiiiii-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--cliiiiiii-text-secondary);
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    overflow: hidden;
    z-index: 1;
}

.cliiiiiii-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 122, 0, 0.08),
                transparent);
    transition: left 0.4s ease;
    z-index: -1;
}

.cliiiiiii-dropdown-item:hover::before {
    left: 100%;
}

.cliiiiiii-dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 122, 0, 0.15), 
                rgba(255, 149, 51, 0.1));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    z-index: -1;
}

.cliiiiiii-dropdown-item:hover::after {
    width: 100%;
}

.cliiiiiii-dropdown-item:hover {
    background: linear-gradient(135deg, 
                rgba(255, 122, 0, 0.12), 
                rgba(255, 149, 51, 0.08));
    color: var(--cliiiiiii-primary-orange);
    transform: translateX(6px);
    padding-left: 20px;
    box-shadow: inset 4px 0 0 var(--cliiiiiii-primary-orange);
}

.cliiiiiii-dropdown-item:active {
    transform: translateX(6px) scale(0.98);
}

.cliiiiiii-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cliiiiiii-dropdown-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--cliiiiiii-primary-orange);
    text-shadow: 0 0 12px rgba(255, 122, 0, 0.5);
}

.cliiiiiii-dropdown-item.cliiiiiii-danger::after {
    background: linear-gradient(135deg, 
                rgba(239, 68, 68, 0.15), 
                rgba(220, 38, 38, 0.1));
}

.cliiiiiii-dropdown-item.cliiiiiii-danger:hover {
    background: linear-gradient(135deg, 
                rgba(239, 68, 68, 0.15), 
                rgba(220, 38, 38, 0.1));
    color: var(--cliiiiiii-danger);
    box-shadow: inset 4px 0 0 var(--cliiiiiii-danger);
}

.cliiiiiii-dropdown-item.cliiiiiii-danger:hover i {
    color: var(--cliiiiiii-danger);
    animation: cliiiiiiShakeDelete 0.4s ease;
}

.cliiiiiii-dropdown-divider {
    height: 2px;
    background: linear-gradient(90deg, 
                transparent,
                rgba(255, 122, 0, 0.25),
                transparent);
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.cliiiiiii-dropdown-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent,
                rgba(255, 122, 0, 0.5),
                transparent);
    animation: cliiiiiiDividerShimmer 2s ease-in-out infinite;
}

.cliiiiiii-dropdown-item span {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.cliiiiiii-dropdown-item:hover span {
    letter-spacing: 0.5px;
}

/* END DROPDOWN FIX */

.cliiiiiii-car-body {
    padding: clamp(20px, 4vh, 24px);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.cliiiiiii-car-title {
    font-size: clamp(1.1rem, 2vw + 0.3rem, 1.25rem);
    font-weight: 700;
    color: var(--cliiiiiii-text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cliiiiiii-car-price {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 1.8rem);
    font-weight: 900;
    font-family: "Outfit", sans-serif;
    background: linear-gradient(135deg, var(--cliiiiiii-primary-orange), var(--cliiiiiii-orange-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.cliiiiiii-car-commission {
    font-size: clamp(0.8rem, 1.3vw + 0.3rem, 0.85rem);
    color: var(--cliiiiiii-text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.cliiiiiii-car-stats {
    display: flex;
    gap: 16px;
    font-size: clamp(0.8rem, 1.3vw + 0.3rem, 0.85rem);
    color: var(--cliiiiiii-text-muted);
    margin-bottom: 16px;
}

.cliiiiiii-car-stats i {
    color: var(--cliiiiiii-primary-orange);
}

.cliiiiiii-car-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--cliiiiiii-radius-full);
    font-size: clamp(0.75rem, 1.2vw + 0.3rem, 0.8rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.cliiiiiii-car-status.cliiiiiii-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    color: var(--cliiiiiii-success);
    border: 1px solid var(--cliiiiiii-success);
}

.cliiiiiii-car-status.cliiiiiii-inactive {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.1));
    color: #9ca3af;
    border: 1px solid #6b7280;
}

.cliiiiiii-car-actions-grid {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.cliiiiiii-btn-sm {
    padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2vw, 16px);
    font-size: clamp(0.85rem, 1.4vw + 0.3rem, 0.9rem);
}

.cliiiiiii-btn-outline {
    background: transparent;
    color: var(--cliiiiiii-primary-orange);
    border: 2px solid var(--cliiiiiii-primary-orange);
}

.cliiiiiii-btn-outline:hover {
    background: var(--cliiiiiii-primary-orange);
    color: var(--cliiiiiii-white);
}

.cliiiiiii-car-footer {
    padding: clamp(12px, 2.5vh, 16px) clamp(20px, 4vh, 24px);
    background: rgba(10, 10, 10, 0.4);
    border-top: 1px solid rgba(255, 122, 0, 0.1);
    font-size: clamp(0.8rem, 1.3vw + 0.3rem, 0.85rem);
    color: var(--cliiiiiii-text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.cliiiiiii-empty-state {
    text-align: center;
    padding: clamp(60px, 12vh, 100px) clamp(20px, 4vw, 40px);
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-xl);
    border: 1px solid rgba(255, 122, 0, 0.12);
}

.cliiiiiii-empty-icon {
    font-size: clamp(4rem, 8vw, 6rem);
    color: var(--cliiiiiii-text-muted);
    opacity: 0.5;
    margin-bottom: 24px;
}

.cliiiiiii-empty-title {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
    color: var(--cliiiiiii-text-primary);
    margin-bottom: 12px;
}

.cliiiiiii-empty-text {
    font-size: clamp(1rem, 2vw + 0.3rem, 1.1rem);
    color: var(--cliiiiiii-text-muted);
    margin-bottom: 32px;
}

.cliiiiiii-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: var(--cliiiiiii-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cliiiiiii-modal-dialog {
    width: 100%;
    max-width: 500px;
}

.cliiiiiii-modal-content {
    background: var(--cliiiiiii-gradient-card);
    backdrop-filter: var(--cliiiiiii-blur-glass);
    border-radius: var(--cliiiiiii-radius-xl);
    border: 1px solid rgba(255, 122, 0, 0.2);
    box-shadow: var(--cliiiiiii-shadow-xl);
    overflow: hidden;
}

.cliiiiiii-modal-header {
    padding: clamp(20px, 4vh, 24px) clamp(24px, 5vw, 32px);
    border-bottom: 1px solid rgba(255, 122, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cliiiiiii-modal-title {
    font-size: clamp(1.2rem, 2.5vw + 0.3rem, 1.4rem);
    font-weight: 700;
    color: var(--cliiiiiii-text-primary);
}

.cliiiiiii-modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid rgba(255, 122, 0, 0.2);
    border-radius: 50%;
    color: var(--cliiiiiii-text-secondary);
    cursor: pointer;
    transition: var(--cliiiiiii-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliiiiiii-modal-close:hover {
    background: var(--cliiiiiii-danger);
    border-color: var(--cliiiiiii-danger);
    color: var(--cliiiiiii-white);
}

.cliiiiiii-modal-body {
    padding: clamp(24px, 5vh, 32px);
}

.cliiiiiii-modal-footer {
    padding: clamp(20px, 4vh, 24px) clamp(24px, 5vw, 32px);
    border-top: 1px solid rgba(255, 122, 0, 0.15);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cliiiiiii-btn-danger {
    background: linear-gradient(135deg, var(--cliiiiiii-danger), var(--cliiiiiii-danger-dark));
    color: var(--cliiiiiii-white);
    border: 2px solid transparent;
}

.cliiiiiii-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.cliiiiiii-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: clamp(24px, 5vh, 32px) 0;
}

.cliiiiiii-page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(24, 24, 24, 0.8);
    color: var(--cliiiiiii-text-secondary);
    border: 2px solid rgba(255, 122, 0, 0.2);
    border-radius: var(--cliiiiiii-radius-sm);
    font-weight: 600;
    transition: var(--cliiiiiii-transition-base);
    cursor: pointer;
    text-decoration: none;
}

.cliiiiiii-page-link:hover,
.cliiiiiii-page-link.cliiiiiii-active {
    background: var(--cliiiiiii-gradient-primary);
    border-color: var(--cliiiiiii-primary-orange);
    color: var(--cliiiiiii-white);
    transform: translateY(-2px);
}

.cliiiiiii-page-link:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes cliiiiiiFloatOrbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
        opacity: 0.2;
    }
}

@keyframes cliiiiiiPulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.12);
    }
}

@keyframes cliiiiiiPulseSlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.06);
    }
}

@keyframes cliiiiiiShimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes cliiiiiiDropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cliiiiiiShakeDelete {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

@keyframes cliiiiiiDividerShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes cliiiiiiZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cliiiiiii-text-muted {
    color: var(--cliiiiiii-text-muted);
}

.cliiiiiii-mb-3 {
    margin-bottom: clamp(16px, 3vh, 24px);
}

.cliiiiiii-d-flex {
    display: flex;
}

.cliiiiiii-align-center {
    align-items: center;
}

.cliiiiiii-justify-between {
    justify-content: space-between;
}

.cliiiiiii-gap-2 {
    gap: clamp(12px, 2.5vw, 16px);
}

@media (max-width: 1200px) {
    .cliiiiiii-wrapper {
        padding: clamp(70px, 11vh, 100px) clamp(16px, 3vw, 32px) clamp(50px, 9vh, 80px);
    }
}

@media (max-width: 992px) {
    .cliiiiiii-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cliiiiiii-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .cliiiiiii-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .cliiiiiii-cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    }
}

@media (max-width: 768px) {
    .cliiiiiii-wrapper {
        padding: clamp(60px, 10vh, 90px) 20px clamp(40px, 8vh, 70px);
    }
    
    .cliiiiiii-header-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .cliiiiiii-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cliiiiiii-cars-grid {
        grid-template-columns: 1fr;
    }

    .cliiiiiii-dropdown-menu {
        min-width: 220px !important;
        padding: 10px !important;
    }
    
    .cliiiiiii-dropdown-item {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .cliiiiiii-action-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .cliiiiiii-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cliiiiiii-modal-footer {
        flex-direction: column;
    }
    
    .cliiiiiii-modal-footer .cliiiiiii-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.cliiiiiii-wrapper ::selection {
    background: var(--cliiiiiii-primary-orange);
    color: var(--cliiiiiii-white);
}

.cliiiiiii-wrapper :focus-visible {
    outline: 3px solid var(--cliiiiiii-primary-orange);
    outline-offset: 2px;
}

.cliiiiiii-wrapper::-webkit-scrollbar {
    width: 10px;
}

.cliiiiiii-wrapper::-webkit-scrollbar-track {
    background: var(--cliiiiiii-dark-primary);
}

.cliiiiiii-wrapper::-webkit-scrollbar-thumb {
    background: var(--cliiiiiii-gradient-primary);
    border-radius: 5px;
}

.cliiiiiii-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--cliiiiiii-orange-light);
}

.cliiiiiii-dropdown-item:focus-visible {
    outline: 3px solid var(--cliiiiiii-primary-orange);
    outline-offset: 2px;
    border-radius: 10px;
}

.cliiiiiii-action-btn:focus-visible {
    outline: 3px solid var(--cliiiiiii-primary-orange);
    outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL Z-INDEX FIX - CRITICAL
   ═══════════════════════════════════════════════════════════════════════════ */
/* Fix for nested elements */
.cliiiiiii-wrapper,
.cliiiiiii-particles-container,
.cliiiiiii-gradient-overlay,
.cliiiiiii-header,
.cliiiiiii-cars-grid,
.cliiiiiii-car-card {
    position: relative;
    z-index: 1 !important;
}

/* Modal appears above everything */
div[id^="markSoldModal"],
div[id^="deleteModal"] {
    z-index: 9999 !important;
}