/* 
   Paraguauto Gold Master — Visual Architecture 1.2
   Final Production CSS for HostGator
*/

:root {
  --red-paraguauto: #EE1C24;
  --red-paraguauto-dark: #c1161d;
  --red-paraguauto-soft: rgba(238, 28, 36, 0.10);

  --bg-deep: #0b0b0d;
  --bg-surface: #141416;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --border-soft: rgba(15, 23, 42, 0.08);
  --border-dark: rgba(255, 255, 255, 0.10);

  --glass-dark: rgba(15, 23, 42, 0.65);
  --glass-light: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --blur-glass: 16px;

  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 40px 80px rgba(15, 23, 42, 0.12);
  --shadow-cinematic: 0 50px 100px rgba(15, 23, 42, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-premium: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --easing-premium: cubic-bezier(0.16, 1, 0.3, 1);

  /* Compatibility aliases */
  --color-primary: var(--red-paraguauto);
  --color-primary-dark: var(--red-paraguauto-dark);
  --color-primary-soft: var(--red-paraguauto-soft);
  --color-bg-deep: var(--bg-deep);
  --color-bg-surface: var(--bg-surface);
  --color-bg-main: var(--bg-page);
  --color-bg-white: var(--bg-card);
  --color-border: var(--border-soft);
  --color-border-dark: var(--border-dark);
  --color-text-main: var(--text-main);
  --color-text-muted: var(--text-muted);
  --color-text-white: var(--text-white);
  --p-blur: var(--blur-glass);
  --p-glass-bg: var(--glass-dark);
  --p-glass-light: var(--glass-light);
  --p-glass-border: var(--glass-border);
  --p-shadow-sm: var(--shadow-soft);
  --p-shadow-md: var(--shadow-medium);
  --p-shadow-lg: var(--shadow-cinematic);
  --p-shadow-premium: var(--shadow-premium);
  --p-transition: var(--transition-premium);
  --p-easing: var(--easing-premium);
  --accent-color: var(--red-paraguauto);
}

/* --- VISIBILITY HELPERS --- */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

@media (max-width: 1023px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}


/* GLOBAL POLISH */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, 
.main-title, .car-title, .ad-title, .nav-link, .btn-primary-red,
.price-tag, .section-title, .modal-title, .detail-main-title h1, .detail-main-price {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* HEADER & FOOTER */
.header {
    background: var(--glass-light);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
    z-index: 1000;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-soft);
    height: 32px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.lang-btn {
    opacity: 0.6;
    transition: var(--transition-premium);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active {
    opacity: 1;
    background: var(--red-paraguauto-soft);
    color: var(--red-paraguauto);
}

.lang-divider {
    color: var(--border-soft);
}


.footer {
    background: var(--bg-deep);
    color: var(--text-white);
    padding: 80px 0 40px;
}

/* GLASS COMPONENTS */
.glass-panel {
    background: var(--glass-dark);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--glass-border);
}

/* VEHICLE CARDS */
.car-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-premium);
    position: relative;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.card-meta-pill {
    background: var(--bg-page);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-soft);
}

/* INVENTORY DESKTOP PREMIUM */
@media (min-width: 1024px) {
    .inventory-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 40px;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .inventory-cockpit {
        background: var(--bg-surface);
        border-radius: var(--radius-lg);
        padding: 32px;
        color: var(--text-white);
        position: sticky;
        top: 100px;
        box-shadow: var(--shadow-medium);
        border: 1px solid var(--border-dark);
    }
}

/* VEHICLE DETAILS HERO-FIRST */
.vehicle-hero-first {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 70vh;
    background: var(--bg-deep);
    overflow: hidden;
}

.detail-modular-stack {
    max-width: 1200px;
    margin: -100px auto 100px;
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 0 40px;
}

/* COMPARE SYSTEM */
.compare-bar-sticky {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--glass-dark);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-premium);
    transform: translateY(150%);
}

.compare-bar-sticky.active {
    transform: translateY(0);
}

/* MOBILE PREMIUM APP-LIKE EXPERIENCE */
@media (max-width: 1023px) {
    .bottom-nav {
        background: var(--glass-light);
        backdrop-filter: blur(var(--blur-glass));
        -webkit-backdrop-filter: blur(var(--blur-glass));
        border-top: 1px solid var(--border-soft);
        height: 80px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        box-shadow: var(--shadow-premium);
    }

    .mobile-search-sticky {
        position: sticky;
        top: 0;
        z-index: 110;
        background: var(--bg-card);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-soft);
    }
}

/* --- MOBILE SEARCH & PILLS FIX --- */
.search-box-premium {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box-premium input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
}


/* --- NOTIFICATIONS DROPDOWN FIX --- */
.notif-wrapper {
    position: relative;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-soft);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-premium);
    overflow: hidden;
}

.notif-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}


.notif-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-page);
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition-premium);
}

.notif-item:hover {
    background: var(--bg-page);
}

.notif-item.unread {
    background: var(--red-paraguauto-soft);
}

/* --- INVENTORY POLISH --- */
.inventory-header {
    margin-bottom: 30px;
    z-index: 50;
    position: relative;
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.category-pill {
    white-space: nowrap;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-premium);
    cursor: pointer;
}

.category-pill.active {
    background: var(--red-paraguauto);
    color: white;
    border-color: var(--red-paraguauto);
}

/* --- DASHBOARD DETAIL PAGE (PREMIUM) --- */
@media (min-width: 1024px) {
    .dashboard-detail-page {
        display: flex;
        background: var(--bg-page);
        min-height: 100vh;
        width: 100%;
        position: relative;
        z-index: 1500; /* Above global header if we don't hide it, but we will */
    }

    body.is-dashboard-view {
        overflow-x: hidden;
    }

    body.is-dashboard-view .header {
        display: none !important;
    }
    
    body.is-dashboard-view .footer-new {
        display: none !important;
    }


    .detail-sidebar-nav {
        width: 80px;
        background: var(--bg-deep);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        position: sticky;
        top: 0;
        height: 100vh;
        z-index: 100;
    }

    .detail-sidebar-item {
        color: rgba(255, 255, 255, 0.4);
        font-size: 24px;
        cursor: pointer;
        transition: var(--transition-premium);
        position: relative;
    }

    .detail-sidebar-item:hover, .detail-sidebar-item.active {
        color: var(--red-paraguauto);
    }

    .detail-sidebar-item.active::after {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 24px;
        background: var(--red-paraguauto);
        border-radius: 0 4px 4px 0;
    }

    .dashboard-detail-main {
        flex: 1;
        padding: 40px 60px;
        max-width: calc(100vw - 80px);
    }

    .dashboard-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .dashboard-title-area h1 {
        font-size: 36px;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 5px;
    }

    .dashboard-title-area p {
        color: var(--text-muted);
        font-size: 18px;
    }

    .dashboard-price-area {
        text-align: left;
        margin-top: 20px;
    }

    .dashboard-price-main {
        font-size: 48px;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -1px;
    }

    .dashboard-price-label {
        font-size: 14px;
        color: var(--text-muted);
        margin-left: 5px;
    }

    .dashboard-pills-row {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .dashboard-pill {
        background: var(--bg-card);
        padding: 8px 20px;
        border-radius: 100px;
        border: 1px solid var(--border-soft);
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-muted);
    }

    .dashboard-car-display {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        margin: 40px 0;
        padding: 40px;
        text-align: center;
        position: relative;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-car-display img {
        max-width: 90%;
        height: auto;
        object-fit: contain;
    }

    .dashboard-content-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }

    .dashboard-feature-section {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 30px;
    }

    .dashboard-feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 25px;
    }

    .feature-group h4 {
        font-size: 12px;
        text-transform: uppercase;
        color: var(--text-muted);
        letter-spacing: 0.1em;
        margin-bottom: 15px;
    }

    .feature-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .feature-item {
        font-size: 14px;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .feature-item::before {
        content: '';
        width: 6px;
        height: 6px;
        background: var(--red-paraguauto);
        border-radius: 50%;
    }

    /* RIGHT SIDEBAR BOXES */
    .dashboard-sidebar-box {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 25px;
        margin-bottom: 25px;
        border: 1px solid var(--border-soft);
    }

    .dashboard-sidebar-box h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .journey-item {
        margin-bottom: 20px;
    }

    .journey-label {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .journey-value {
        background: var(--bg-page);
        padding: 12px 15px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 14px;
        color: var(--text-main);
    }

    .breakdown-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .breakdown-row.total {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px dashed var(--border-soft);
        font-weight: 800;
        font-size: 18px;
    }

    .btn-dashboard-action {
        width: 100%;
        height: 56px;
        background: var(--red-paraguauto);
        color: white;
        border-radius: 16px;
        font-weight: 800;
        font-size: 16px;
        margin-top: 20px;
        box-shadow: 0 10px 20px var(--red-paraguauto-soft);
        transition: var(--transition-premium);
    }

    .btn-dashboard-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px var(--red-paraguauto-soft);
    }
}

/* Ensure mobile compatibility by defaulting back to standard layout */
@media (max-width: 1023px) {
    .dashboard-detail-page {
        display: block;
    }
    .detail-sidebar-nav {
        display: none;
    }
}

/* --- COMPARE BAR MOBILE FIX --- */
@media (max-width: 1023px) {
    .compare-bar-sticky {
        bottom: 90px; /* Above bottom nav */
        left: 10px;
        right: 10px;
        padding: 12px 20px;
        border-radius: var(--radius-md);
    }
    
    .compare-bar-sticky .compare-items {
        display: none; /* Hide item previews on mobile to save space */
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DASHBOARD INVENTORY LAYOUT (PREMIUM) --- */
@media (min-width: 1024px) {
    .dashboard-inventory-wrapper {
        display: flex;
        background: var(--bg-page);
        min-height: 100vh;
        width: 100%;
        position: relative;
        z-index: 1500;
    }

    body.is-inventory-dashboard .header, 
    body.is-inventory-dashboard .footer-new,
    body.is-inventory-dashboard .bottom-nav {
        display: none !important;
    }

    /* Sidebar Nav */
    .inventory-sidebar-nav {
        width: 80px;
        background: var(--bg-deep);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        position: sticky;
        top: 0;
        height: 100vh;
        z-index: 100;
    }

    /* Refinement Panel (Dark) */
    .inventory-refinement-panel {
        width: 340px;
        background: #141416;
        color: white;
        padding: 40px 25px;
        overflow-y: auto;
        height: 100vh;
        position: sticky;
        top: 0;
        border-right: 1px solid rgba(255,255,255,0.05);
    }

    .refinement-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .refinement-header h2 {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
        color: white;
    }

    .refinement-reset {
        color: #3b82f6;
        background: none;
        border: none;
        font-size: 14px;
        cursor: pointer;
        font-weight: 600;
    }

    .refinement-search-box {
        background: #1e1e21;
        border-radius: 12px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .refinement-search-box i {
        color: rgba(255,255,255,0.3);
    }

    .refinement-search-box input {
        background: none;
        border: none;
        color: white;
        width: 100%;
        font-size: 14px;
        outline: none;
    }

    .refinement-group {
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 25px;
    }

    .refinement-group:last-child {
        border-bottom: none;
    }

    .refinement-group h3 {
        font-size: 12px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        letter-spacing: 0.1em;
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .refinement-select-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .refinement-select-btn {
        background: #1e1e21;
        border: 1px solid rgba(255,255,255,0.05);
        color: white;
        padding: 12px;
        border-radius: 10px;
        font-size: 14px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    /* Duration Toggles */
    .duration-toggles {
        display: flex;
        background: #1e1e21;
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .duration-btn {
        flex: 1;
        padding: 10px;
        border-radius: 10px;
        border: none;
        background: none;
        color: rgba(255,255,255,0.5);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .duration-btn.active {
        background: #3b82f6;
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    /* Budget Range Histogram */
    .budget-histogram {
        height: 60px;
        display: flex;
        align-items: flex-end;
        gap: 2px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .histogram-bar {
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
        transition: 0.3s;
    }

    .histogram-bar.highlight {
        background: #3b82f6;
    }

    /* Range Display */
    .range-display {
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }

    .range-val-box {
        background: #1e1e21;
        padding: 10px 15px;
        border-radius: 10px;
        flex: 1;
        font-size: 14px;
        color: white;
        display: flex;
        justify-content: space-between;
    }

    /* Checkbox & Radio Style */
    .refinement-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .refinement-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
    }

    .refinement-item input {
        width: 18px;
        height: 18px;
        accent-color: #3b82f6;
        cursor: pointer;
    }

    /* Main Content Area */
    .inventory-dashboard-main {
        flex: 1;
        padding: 40px 60px;
        background: #f8fafc;
        overflow-y: auto;
        height: 100vh;
    }

    .dashboard-inventory-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .dashboard-inventory-top h1 {
        font-size: 36px;
        font-weight: 800;
        margin: 0;
        color: #1a1a1a;
    }

    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .theme-switch {
        display: flex;
        background: #fff;
        padding: 4px;
        border-radius: 100px;
        border: 1px solid #e2e8f0;
    }

    .theme-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        cursor: pointer;
        color: #94a3b8;
    }

    .theme-btn.active {
        background: #f8fafc;
        color: #1a1a1a;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .icon-action-btn {
        font-size: 22px;
        color: #64748b;
        cursor: pointer;
        transition: 0.2s;
        position: relative;
    }

    .icon-action-btn:hover {
        color: #1a1a1a;
    }

    .icon-action-btn.has-dot::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 8px;
        height: 8px;
        background: #ef4444;
        border: 2px solid #f8fafc;
        border-radius: 50%;
    }

    .user-profile-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #e2e8f0;
        border: 2px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* GRID OF CARS */
    .dashboard-inventory-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
        gap: 35px;
    }

    .db-car-card {
        background: white;
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.02);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .db-car-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    }

    .db-card-header {
        position: absolute;
        top: 24px;
        right: 24px;
        display: flex;
        gap: 10px;
        z-index: 5;
    }

    .db-circle-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #1a1a1a;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: 0.2s;
    }

    .db-circle-btn:hover {
        background: white;
        transform: scale(1.1);
    }

    .db-circle-btn.active {
        color: var(--red-paraguauto);
    }

    .db-card-img-wrap {
        width: 100%;
        height: 240px;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .db-card-img-wrap img {
        max-width: 95%;
        max-height: 100%;
        object-fit: contain;
    }

    .db-card-title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .db-card-title-row h3 {
        font-size: 20px;
        font-weight: 800;
        color: #1a1a1a;
        margin: 0;
    }

    .db-card-price-main {
        font-size: 22px;
        font-weight: 800;
        color: #1a1a1a;
    }

    .db-card-price-main span {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
    }

    .db-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
        margin-top: auto;
    }

    .db-card-specs {
        display: flex;
        gap: 15px;
    }

    .db-spec-pill {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #64748b;
        font-weight: 600;
    }

    .db-spec-pill i {
        font-size: 16px;
        color: #94a3b8;
    }
}
/* --- MOBILE PREMIUM INVENTORY (APP STYLE) --- */
@media (max-width: 1023px) {
    body.is-inventory-mobile {
        background: #f5f5f7;
    }

    body.is-inventory-mobile .header,
    body.is-inventory-mobile .mobile-search-sticky {
        display: none !important;
    }

    .mobile-premium-container {
        padding: 20px;
        padding-bottom: 100px;
    }

    /* Welcome Header */
    .mobile-welcome-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    .user-info-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-avatar-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #eee;
        overflow: hidden;
    }

    .user-text-col h4 {
        font-size: 13px;
        color: #8e8e93;
        font-weight: 500;
        margin: 0;
    }

    .user-text-col h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1c1c1e;
        margin: 0;
    }

    .header-notif-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #1c1c1e;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* Mobile Search Bar */
    .mobile-app-search {
        display: flex;
        gap: 12px;
        margin-bottom: 30px;
    }

    .search-input-wrap {
        flex: 1;
        background: white;
        border-radius: 14px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    .search-input-wrap input {
        border: none;
        background: none;
        outline: none;
        width: 100%;
        font-size: 15px;
        color: #1c1c1e;
    }

    .filter-icon-btn {
        width: 48px;
        height: 48px;
        background: #1c1c1e;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
    }

    /* Horizontal Brands Row */
    .mobile-brands-row {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 25px;
        margin: 0 -20px;
        padding-left: 20px;
        scrollbar-width: none;
    }

    .mobile-brands-row::-webkit-scrollbar {
        display: none;
    }

    .brand-circle-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .brand-circle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 15px rgba(0,0,0,0.04);
        padding: 12px;
    }

    .brand-circle img {
        width: 100%;
        object-fit: contain;
    }

    .brand-circle-item span {
        font-size: 12px;
        font-weight: 600;
        color: #8e8e93;
    }

    .brand-circle-item.active .brand-circle {
        background: #1c1c1e;
    }

    .brand-circle-item.active span {
        color: #1c1c1e;
    }

    /* Section Title */
    .mobile-section-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-section-title h2 {
        font-size: 20px;
        font-weight: 700;
        color: #1c1c1e;
        margin: 0;
    }

    .mobile-section-title a {
        font-size: 14px;
        color: #8e8e93;
        text-decoration: none;
        font-weight: 500;
    }

    /* Mobile Premium Car Card */
    .mobile-premium-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .mobile-car-card {
        background: white;
        border-radius: 24px;
        padding: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.03);
        position: relative;
    }

    .mobile-car-heart {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 18px;
        color: #1c1c1e;
        z-index: 5;
    }

    .mobile-car-img {
        width: 100%;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .mobile-car-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .mobile-car-info h3 {
        font-size: 14px;
        font-weight: 700;
        color: #1c1c1e;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-car-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-car-price {
        font-size: 13px;
        font-weight: 600;
        color: #8e8e93;
    }

    .mobile-car-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        font-weight: 700;
        color: #1c1c1e;
    }

    .mobile-car-rating i {
        color: #ffcc00;
    }

    /* Floating Bottom Nav */
    .floating-bottom-nav {
        position: fixed;
        bottom: 30px;
        left: 20px;
        right: 20px;
        background: #1c1c1e;
        height: 70px;
        border-radius: 24px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    }

    .floating-nav-item {
        color: rgba(255,255,255,0.4);
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-nav-item.active {
        color: white;
    }
}
