/* ==========================================
   CSS DESIGN SYSTEM - CAR MART SHOWROOM
   ========================================== */

:root {
    /* Color Palette */
    --bg-dark: #050711;
    --bg-card: rgba(14, 18, 38, 0.6);
    --bg-card-hover: rgba(22, 28, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(91, 54, 245, 0.4);
    
    --primary-purple: #5833ee;
    --primary-purple-hover: #7251f2;
    --gradient-purple-blue: linear-gradient(135deg, #5833ee 0%, #2a8bf2 100%);
    --gradient-glow: linear-gradient(135deg, rgba(88, 51, 238, 0.3) 0%, rgba(42, 139, 242, 0.3) 100%);
    --gradient-text: linear-gradient(90deg, #5833ee, #00e5ff);
    
    --neon-blue: #00e5ff;
    --neon-green: #00e676;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-muted: #8b92b6;
    --text-desc: #a4adc9;
    
    /* Box Shadows & Glows */
    --glow-shadow-purple: 0 0 25px rgba(88, 51, 238, 0.45);
    --glow-shadow-blue: 0 0 25px rgba(0, 229, 255, 0.45);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1b213b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================
   BUTTONS & FORM CONTROLS
   ========================================== */
.btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-purple-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    box-shadow: var(--glow-shadow-purple);
    transform: translateY(-2px);
}

.btn-purple {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

.btn-purple:hover {
    background-color: var(--primary-purple-hover);
    box-shadow: 0 0 15px rgba(88, 51, 238, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    background-color: rgba(88, 51, 238, 0.08);
}

.btn-gradient {
    background: var(--gradient-purple-blue);
    color: var(--text-white);
}

.btn-gradient:hover {
    box-shadow: var(--glow-shadow-blue);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* ==========================================
   HEADER NAVIGATION
   ========================================== */
.main-header {
    background-color: rgba(5, 7, 17, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.logo span {
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f132b;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    margin-top: 10px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

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

.favorite-indicator,
.notification-indicator {
    position: relative;
    font-size: 1.35rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
}

.favorite-indicator:hover,
.notification-indicator:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.06);
}

.favorite-indicator.active i {
    color: #ff3366;
    animation: heartBeat 0.4s ease;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: var(--primary-purple);
    color: var(--text-white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-badge {
    background-color: #ff3366;
}

/* Notification Dropdown styling */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0f132b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 320px;
    margin-top: 15px;
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 110;
}

.notification-indicator.active .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.noti-header {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.noti-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease;
}

.noti-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.noti-item i {
    font-size: 1.1rem;
    margin-top: 3px;
}

.noti-content p {
    font-size: 0.88rem;
    color: var(--text-desc);
    line-height: 1.3;
}

.noti-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.text-green { color: var(--neon-green); }
.text-blue { color: var(--neon-blue); }
.text-purple { color: #a084ff; }


/* ==========================================
   HERO SECTION
   ========================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 30px;
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 35px;
}

.hero-left {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trust-badge {
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.check-icon {
    font-size: 0.8rem;
}

.hero-heading {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.02rem;
    color: var(--text-desc);
    margin-bottom: 20px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* Stats grid under Hero */
.stats-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.stat-card {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 1rem;
    color: var(--text-muted);
}

.stat-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.stat-card p {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Hero Right Graphics */
.hero-right {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.hero-image-wrapper {
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 160px);
    display: block;
    overflow: hidden;
    border-radius: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Left-to-right fade for text readability and left edge blend */
        linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 20%, rgba(5, 7, 17, 0.95) 30%, rgba(5, 7, 17, 0.45) 55%, transparent 75%, rgba(5, 7, 17, 0.6) 90%, var(--bg-dark) 100%),
        /* Top-to-bottom fade */
        linear-gradient(to bottom, var(--bg-dark) 0%, transparent 12%, transparent 80%, var(--bg-dark) 98%);
    pointer-events: none;
    z-index: 3;
}

.neon-frame-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 45%, rgba(88, 51, 238, 0.25) 0%, rgba(0, 229, 255, 0.1) 50%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-car-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 2;
    transform: scale(0.85); /* Zoomed out slightly */
    filter: brightness(0.7) contrast(1.1) saturate(1.1); /* Blend darker into background */
    transition: transform 0.5s ease;
}

/* Floating Cards style */
.floating-card {
    position: absolute;
    background: rgba(14, 18, 38, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 5;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px);
}

.watch-video-bar,
.mobile-menu-btn,
.mobile-tags-row {
    display: none;
}

.future-card {
    top: -20px;
    right: 0px;
    width: 140px;
    text-align: center;
}

.future-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.future-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.chart-icon {
    font-size: 1.2rem;
    color: #a084ff;
    animation: barChartGlow 1.5s infinite alternate;
}

.customers-card {
    bottom: -15px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 14px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #0f132b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.av-1 { background-gradient: var(--gradient-purple-blue); background-color: #5833ee; }
.av-2 { background-color: #2a8bf2; }
.av-3 { background-color: #ff3366; }

.customer-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.rating span {
    font-size: 0.8rem;
    font-weight: 700;
}

.stars {
    color: #ffb300;
    font-size: 0.7rem;
    display: flex;
    gap: 1px;
}

.reviews-count {
    color: var(--text-muted);
    font-size: 0.75rem !important;
    font-weight: 400 !important;
}


/* ==========================================
   SEARCH & FILTER SECTION
   ========================================== */
.search-section {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.search-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

.search-tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.search-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.search-tab:hover {
    color: var(--text-white);
}

.search-tab.active {
    color: var(--text-white);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-purple-blue);
    border-radius: 2px;
}

.search-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.filter-group {
    flex: 1;
}

.search-input-group {
    position: relative;
    flex: 2.2;
}

.search-input-group input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 12px 10px 36px;
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 40px;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background-color: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.3s ease;
    height: 40px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.search-btn {
    padding: 10px 20px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Advanced Filters Drawer styling */
.advanced-filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 0px;
}

.advanced-filters-panel.open {
    max-height: 250px;
    margin-bottom: 20px;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 15px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.adv-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.chips-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
    background-color: rgba(88, 51, 238, 0.1);
    border-color: var(--primary-purple);
    color: var(--text-white);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.88rem;
}

.range-inputs input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.range-inputs span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Search Bottom Row */
.search-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popular-searches {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.popular-searches span {
    color: var(--text-muted);
}

.tags {
    display: flex;
    gap: 6px;
}

.tag-search {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-desc);
}

.tag-search:hover {
    border-color: var(--primary-purple);
    background-color: rgba(88, 51, 238, 0.08);
    color: var(--text-white);
}

.advanced-filters-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.advanced-filters-toggle:hover {
    color: var(--text-white);
}


/* ==========================================
   SIDEBAR-CONTENT LAYOUT
   ========================================== */
.content-layout {
    display: grid;
    grid-template-columns: 210px 1fr 210px;
    gap: 20px;
    margin-bottom: 35px;
}

/* Shared sidebar style */
.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Why Choose car mart card styling */
.why-choose-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.why-choose-header {
    display: none;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.why-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.why-item:hover .why-icon-box {
    transform: scale(1.08);
}

/* Neon glows for left sidebar icons */
.blue-glow {
    background-color: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.purple-glow {
    background-color: rgba(88, 51, 238, 0.08);
    border: 1px solid rgba(88, 51, 238, 0.2);
    color: #a084ff;
    box-shadow: 0 0 10px rgba(88, 51, 238, 0.05);
}

.green-glow {
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.05);
}

.orange-glow {
    background-color: rgba(255, 112, 67, 0.08);
    border: 1px solid rgba(255, 112, 67, 0.2);
    color: #ff7043;
    box-shadow: 0 0 10px rgba(255, 112, 67, 0.05);
}

.why-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.2;
}

.why-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}


/* ==========================================
   POPULAR CARS LIST
   ========================================== */
.cars-content {
    display: flex;
    flex-direction: column;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.view-all-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: var(--text-white);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* Car Card Styling */
.car-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--gradient-purple-blue);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 5;
}

.heart-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.heart-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.heart-icon.active {
    background-color: rgba(255, 51, 102, 0.15);
    border-color: rgba(255, 51, 102, 0.3);
    color: #ff3366;
}

.car-img-container {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.car-img-container img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.car-card:hover .car-img-container img {
    transform: scale(1.05);
}

.car-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-specs {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.car-specs .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.car-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
}

.price-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.green-badge {
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
}

.blue-badge {
    background-color: rgba(42, 139, 242, 0.08);
    border: 1px solid rgba(42, 139, 242, 0.2);
    color: var(--neon-blue);
}

/* Pagination navigation styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.pag-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pag-btn:hover {
    border-color: var(--primary-purple);
    color: var(--text-white);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dots .dot.active {
    width: 16px;
    border-radius: 4px;
    background-color: var(--primary-purple);
}


/* ==========================================
   RIGHT SIDEBAR: CAR LOAN
   ========================================== */
.loan-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.loan-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 15px;
}

.loan-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.loan-benefits li {
    font-size: 0.78rem;
    color: var(--text-desc);
    display: flex;
    align-items: center;
    gap: 6px;
}

.loan-benefits li i {
    color: var(--neon-blue);
}

.loan-visual-box {
    margin-top: auto;
    position: relative;
    height: 120px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 12px;
    background: radial-gradient(circle at top right, rgba(88, 51, 238, 0.15) 0%, transparent 70%);
}

.percentage-symbol {
    position: absolute;
    top: 5px;
    left: 5px;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(88, 51, 238, 0.07);
    line-height: 1;
    pointer-events: none;
}

.loan-car-overlay {
    max-width: 95%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    z-index: 2;
}


/* ==========================================
   BOTTOM STATS / FEATURES BAR
   ========================================== */
.bottom-features-bar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--glass-shadow);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.feature-item p {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.feature-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.05);
}


/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ==========================================
   MODAL POPUPS
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 4, 12, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #0d1024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 820px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s ease;
}

.close-btn:hover {
    color: var(--text-white);
}

/* Details modal grid */
.modal-body-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.modal-left img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.modal-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-right h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 5px;
}

.modal-car-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.spec-table-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-desc);
    margin-bottom: 12px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 25px;
}

.spec-cell {
    display: flex;
    flex-direction: column;
}

.spec-cell .label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.spec-cell .val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Small modal (Booking form) */
.small-modal {
    max-width: 420px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-desc);
}

.form-group input,
.form-group select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Booking Success View */
.booking-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 10px;
}

.success-check {
    font-size: 3.5rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.3));
}

.booking-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.booking-success p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.close-success-btn {
    padding: 10px 30px;
}

/* Medium Modal (EMI Calculator) */
.medium-modal {
    max-width: 720px;
}

.loan-calc-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 15px;
}

.calc-slider-group {
    margin-bottom: 22px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--text-desc);
}

.slider-val {
    font-weight: 700;
    color: var(--text-white);
}

.calc-slider-group input[type="range"] {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.calc-slider-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-purple-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(88, 51, 238, 0.4);
    transition: transform 0.1s ease;
}

.calc-slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.emi-result-box {
    background-color: rgba(88, 51, 238, 0.08);
    border: 1px solid rgba(88, 51, 238, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.emi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emi-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-top: 4px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.calc-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-desc);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-white);
}

.summary-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 5px 0;
}

.total-pay {
    font-size: 0.95rem;
}

.total-pay span:last-child {
    color: var(--neon-green);
    font-weight: 700;
}


/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes barChartGlow {
    from { opacity: 0.6; filter: drop-shadow(0 0 2px rgba(160, 132, 255, 0.2)); }
    to { opacity: 1; filter: drop-shadow(0 0 8px rgba(160, 132, 255, 0.8)); }
}


/* ==========================================
   RESPONSIVENESS (BREAKPOINTS)
   ========================================== */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 200px 1fr 200px;
        gap: 15px;
    }
    .hero-heading {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image-wrapper {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        opacity: 0.35;
    }
    .hero-image-wrapper::after {
        background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(5, 7, 17, 0.7) 30%, rgba(5, 7, 17, 0.7) 70%, var(--bg-dark) 100%);
    }
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar-left,
    .sidebar-right {
        flex-direction: row;
        width: 100%;
    }
    .why-choose-card,
    .loan-card {
        flex: 1;
    }
    .loan-visual-box {
        max-height: 100px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =======================================================
   MOBILE-ONLY GLOBAL COMPONENTS (always rendered, hidden on desktop)
   ======================================================= */

/* Mobile header back button and page title */
.mobile-header-left {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.mobile-page-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* ── BOTTOM NAV BAR ── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(5, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 8px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
}

.nav-icon-wrapper {
    padding: 5px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav-item i {
    font-size: 1.1rem;
}

.mobile-bottom-nav-item.active {
    color: #a084ff;
}

.mobile-bottom-nav-item.active .nav-icon-wrapper {
    background: rgba(88, 51, 238, 0.18);
    box-shadow: 0 0 12px rgba(88, 51, 238, 0.15);
}

/* ── SIDE DRAWER ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 12, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100%;
    background: #080c1e;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 10000;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Drawer header branding */
.mobile-drawer::before {
    content: 'CAR MART';
    display: block;
    padding: 28px 24px 10px 24px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a084ff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 24px 16px;
}

.mobile-drawer-links a {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 13px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: 1px solid transparent;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
    color: #fff;
    background: rgba(88, 51, 238, 0.12);
    border-color: rgba(88, 51, 238, 0.2);
}

/* ── SHOWROOM PROMO BANNER ── */
.showroom-promo-banner {
    background: linear-gradient(135deg, rgba(88, 51, 238, 0.2), rgba(0, 229, 255, 0.06));
    border: 1px solid rgba(88, 51, 238, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.showroom-promo-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
    z-index: 1;
}

.promo-text { flex: 1.2; z-index: 2; }
.promo-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}
.promo-text p {
    font-size: 0.82rem;
    color: var(--text-desc);
    margin-bottom: 16px;
    line-height: 1.4;
}

.promo-img { flex: 0.8; max-height: 110px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.promo-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }


/* =======================================================
   RESPONSIVE — max-width 768px
   ======================================================= */
@media (max-width: 768px) {

    /* ── GLOBAL ── */
    * { -webkit-tap-highlight-color: transparent; }

    body {
        padding-bottom: 72px !important;
        overflow-x: hidden;
    }

    /* ── HEADER ── */
    .main-header {
        height: 60px;
    }

    .header-container {
        height: 60px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* Logo centered between left area and right actions */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.35rem !important;
        letter-spacing: -0.5px;
        flex: none;
    }

    .nav-links { display: none !important; }

    /* Show inner page back button */
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 2;
    }

    .header-actions {
        display: flex;
        gap: 4px;
        align-items: center;
        z-index: 2;
        margin-left: auto;
    }

    .header-actions #auth-btn { display: none !important; }

    /* Shrink header icon buttons */
    .favorite-indicator,
    .notification-indicator {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .favorite-indicator .badge,
    .notification-indicator .badge {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: -3px;
        right: -3px;
    }

    .mobile-menu-btn {
        display: flex;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        color: var(--text-white);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
        border: none;
        transition: background 0.2s;
        flex-shrink: 0;
    }

    .mobile-bottom-nav { display: flex; }

    /* ── MAIN CONTENT ── */
    .main-content {
        padding: 16px 16px 20px;
    }

    /* ── HERO SECTION ── */
    .hero-section {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 420px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .hero-image-wrapper {
        position: absolute;
        top: -16px;
        left: -16px;
        width: calc(100% + 32px);
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow: hidden;
        z-index: 0;
    }

    .hero-image-wrapper::after {
        background:
            linear-gradient(to top, rgba(5,7,18,1) 0%, rgba(5,7,18,0.7) 40%, transparent 80%),
            linear-gradient(to bottom, rgba(5,7,18,0.6) 0%, transparent 30%);
    }

    .hero-year-bg {
        font-size: 5rem;
        opacity: 0.12;
    }

    .hero-car-img {
        z-index: 2;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Watch video bar overlapping image */
    .watch-video-bar {
        display: none; /* Hidden on mobile to save space */
    }

    .mobile-watch-pill {
        position: absolute;
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(14, 18, 38, 0.65);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        padding: 6px 16px 6px 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 5;
        white-space: nowrap;
    }
    .mobile-watch-pill .play-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(99, 51, 255, 0.2);
        color: #a084ff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }
    .mobile-watch-pill .text {
        display: flex;
        flex-direction: column;
    }
    .mobile-watch-pill .text strong {
        font-size: 0.85rem;
        color: #fff;
    }
    .mobile-watch-pill .text span {
        font-size: 0.65rem;
        color: #aaa;
    }

    /* Floating cards — hidden on mobile */
    .hero-right .floating-card {
        display: none;
    }

    .hero-right {
        order: 1;
        display: none; /* hero-right is the floating card column, hide it */
    }

    /* Hero text block */
    .hero-left {
        position: relative;
        z-index: 2;
        align-items: flex-start;
        padding-top: 140px;
    }

    .trust-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .hero-heading {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .hero-subtext {
        font-size: 0.84rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .hero-buttons {
        display: flex;
        width: 100%;
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-buttons .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 11px 10px;
        border-radius: 12px;
        height: 44px;
        justify-content: center;
    }

    /* Stats grid -> horizontal scroll row */
    .stats-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-bottom: 24px !important;
    }
    .stats-grid::-webkit-scrollbar { display: none; }

    .stats-grid .stat-card {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 80px;
        padding: 5px !important;
        background: transparent !important;
        border: none !important;
    }

    .stats-grid .stat-card i {
        font-size: 1.3rem;
        color: #a084ff;
        margin-bottom: 8px;
    }
    
    .stats-grid .stat-card div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-grid .stat-card h4 {
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .stats-grid .stat-card p {
        font-size: 0.6rem;
        color: var(--text-muted);
        line-height: 1.2;
    }

    /* ── SEARCH SECTION ── */
    .search-section {
        margin-bottom: 28px;
    }

    .search-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .search-tabs {
        display: none !important;
    }

    .search-tab {
        font-size: 0.9rem;
        padding-bottom: 8px;
    }

    .search-filter-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        align-items: stretch !important;
    }

    .search-input-group {
        width: 100%;
    }

    .search-input-group input {
        height: 46px;
        font-size: 0.9rem;
        padding-left: 36px;
        border-radius: 12px;
    }

    .search-icon {
        left: 12px;
        font-size: 0.85rem;
    }

    /* Brand & Location row side by side */
    .filter-group {
        flex: 1;
    }

    .filter-group select {
        height: 44px;
        font-size: 0.85rem;
        padding: 10px 28px 10px 12px;
        border-radius: 12px;
        width: 100%;
    }

    /* Show search btn on mobile, full width */
    .search-btn {
        display: flex !important;
        width: 100% !important;
        height: 46px !important;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    /* Mobile filter tags row */
    .mobile-tags-row {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 2px 0 6px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

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

    .mobile-filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        font-size: 0.75rem;
        color: var(--text-muted);
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: var(--font-heading);
        font-weight: 500;
    }

    .mobile-filter-tag.active {
        background: rgba(88, 51, 238, 0.2);
        color: #c5b5ff;
        border-color: rgba(88, 51, 238, 0.4);
    }

    /* ── POPULAR CARS (horizontal scroll on home page) ── */
    .cars-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 4px 14px 4px;
        scrollbar-width: none;
    }

    .cars-grid::-webkit-scrollbar { display: none; }

    .car-card {
        flex: 0 0 220px !important;
        scroll-snap-align: start;
        margin: 0;
    }

    /* ── SHOWROOM GRID (vertical list on buy-cars page) ── */
    .cars-grid.showroom-grid {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        scroll-snap-type: none;
        padding: 0 !important;
        gap: 10px;
    }

    .cars-grid.showroom-grid .car-card {
        flex: none !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: 116px;
        padding: 0;
        gap: 0;
        border-radius: 14px;
        overflow: hidden;
        align-items: stretch;
    }

    /* Image section */
    .cars-grid.showroom-grid .car-card .car-img-container {
        width: 120px;
        min-width: 120px;
        height: 100%;
        border-radius: 0;
        margin: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.3);
        overflow: hidden;
        position: relative;
    }

    .cars-grid.showroom-grid .car-card .car-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Details section */
    .cars-grid.showroom-grid .car-card .car-details {
        flex: 1;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        gap: 0;
    }

    .cars-grid.showroom-grid .car-card h3 {
        font-size: 0.88rem;
        font-weight: 700;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-white);
    }

    .cars-grid.showroom-grid .car-card .car-specs {
        font-size: 0.7rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
        overflow: hidden;
        margin-bottom: 6px;
    }

    .cars-grid.showroom-grid .car-card .car-specs span {
        white-space: nowrap;
    }

    .cars-grid.showroom-grid .car-card .car-specs .dot {
        width: 3px;
        height: 3px;
        min-width: 3px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
    }

    .cars-grid.showroom-grid .car-card .car-price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: auto;
    }

    .cars-grid.showroom-grid .car-card .price {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-white);
    }

    /* Hide the price badge — no room in horizontal layout */
    .cars-grid.showroom-grid .car-card .price-badge {
        display: none;
    }

    /* Heart icon for horizontal card */
    .cars-grid.showroom-grid .car-card .heart-icon {
        top: 8px;
        right: 8px;
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
    }

    /* Featured badge for horizontal card */
    .cars-grid.showroom-grid .car-card .featured-badge {
        top: auto;
        bottom: 0;
        left: 0;
        font-size: 0.55rem;
        padding: 2px 6px;
        border-radius: 0 6px 0 0;
    }

    /* ── CONTENT LAYOUT ── */
    .content-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100% !important;
    }

    /* ── WHY CHOOSE CARD ── */
    .why-choose-card {
        padding: 16px;
        border-radius: 14px;
    }

    .why-choose-card .why-items {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 14px;
    }

    .why-choose-card .why-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .why-choose-card .why-icon-box {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }

    .why-choose-card .why-text h4 {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }

    .why-choose-card .why-text p {
        font-size: 0.68rem !important;
        line-height: 1.4 !important;
    }

    /* ── BOTTOM FEATURES BAR ── */
    .bottom-features-bar {
        display: none !important;
    }

    /* ── PAGE TITLE SECTION ── */
    .page-title-section {
        display: none !important;
    }

    /* ── MODALS ── */
    .modal-content {
        width: 92% !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-body-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .loan-calc-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── PROMO BANNER ── */
    .showroom-promo-banner {
        flex-direction: column;
        text-align: left;
        padding: 20px 18px;
        gap: 12px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .promo-img {
        width: 100%;
        max-height: 80px;
    }

    .promo-text h3 {
        font-size: 1.1rem;
    }

    /* ── SECTION HEADERS ── */
    .section-header h2,
    .cars-content .section-header h2 {
        font-size: 1.25rem;
    }

    .section-header {
        margin-bottom: 14px;
    }

    /* ── FILTER SIDEBAR PANELS ── */
    .filter-panel {
        display: none;
    }

    /* ── PAGINATION ── */
    .pagination-controls {
        gap: 8px;
    }

    .pagination-controls .pag-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* ── FLOATING TOAST ── */
    .floating-toast {
        bottom: 84px !important;
        font-size: 0.88rem !important;
        padding: 10px 20px !important;
    }

    /* ── FOOTER ── */
    footer,
    .main-footer {
        display: none !important;
    }

    /* ── SERVICES / ABOUT / CONTACT PAGE CARDS ── */
    .service-card,
    .about-card,
    .contact-card {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    /* ── LOAN PAGE ── */
    .loan-hero-section {
        flex-direction: column !important;
        gap: 20px;
    }

    .loan-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ── SELL PAGE ── */
    .sell-hero-layout,
    .sell-how-layout {
        flex-direction: column !important;
        gap: 20px;
    }

    /* Notification dropdown */
    .notification-dropdown {
        right: -80px;
        width: 270px;
    }

    /* ── ADVANCED FILTER PANEL ── */
    .advanced-panel {
        border-radius: 12px;
    }

    /* ── INPUT FIELDS ── */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* ── EXTRA SMALL PHONES ── */
@media (max-width: 375px) {
    .hero-heading {
        font-size: 1.65rem !important;
    }

    .stats-grid .stat-card h4 {
        font-size: 0.82rem;
    }

    .mobile-bottom-nav-item span {
        font-size: 0.58rem;
    }

    .cars-grid.showroom-grid .car-card {
        height: 106px;
    }

    .cars-grid.showroom-grid .car-card .car-img-container {
        width: 105px;
        min-width: 105px;
    }
}

