/* =========================================================
   Washin Auto — all-blue theme
   ========================================================= */

:root {
    /* Brand — all-blue palette */
    --primary: #0072BA;          /* Washin signature blue */
    --primary-dark: #005d96;
    --primary-light: #e6f3ff;
    --primary-soft: #D6E3E9;
    --accent: #16213e;           /* Deep navy — for high-emphasis CTAs */
    --accent-dark: #0a1429;
    --accent-light: #DCE3EE;
    --accent-bright: #00A6E2;    /* Bright sky blue — for highlights */

    /* Neutrals */
    --text: #121926;
    --text-medium: #4a4a68;
    --text-light: #6e7191;
    --bg: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-dark: #16213e;
    --border: #e9ecef;

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadow */
    --shadow-sm: 0 4px 12px rgba(15, 28, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 28, 46, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 28, 46, 0.12);

    /* Type */
    --font-body: "Noto Sans", "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Oswald", "Noto Sans", sans-serif;

    /* Motion */
    --t-fast: all 0.25s ease;
    --t-med: all 0.4s cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: var(--t-fast); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 .6em;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--t-fast);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 114, 186, 0.3);
}
.btn-accent {
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    color: #fff;
}
.btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 33, 62, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-light-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-light-outline:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.topbar {
    background: var(--bg-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 9px 0;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.topbar-social a:hover { background: var(--primary); color: #fff; }

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 28, 46, 0.06);
    position: relative;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 24px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.site-logo .logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    display: block;
}
.site-header .site-logo .logo-img { height: 52px; }
.site-footer .site-logo .logo-img { height: 56px; max-width: 220px; }
/* Legacy text-logo classes kept for fallback */
.site-logo .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
}
.site-logo span.accent { color: var(--accent); }

.main-nav {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--primary);
}
.main-nav .has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
    color: var(--text-light);
}
.main-nav .dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--t-fast);
}
.main-nav .has-dropdown:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}
.main-nav .dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.lang-switch:hover { background: var(--primary-light); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1429 0%, #0f1c33 50%, #16213e 100%);
    color: #fff;
    padding: 110px 0 180px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 114, 186, 0.4), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(0, 166, 226, 0.25), transparent 50%);
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-cars.svg");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.55;
    z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 24px;
    max-width: 780px;
}
.hero-title .highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}
.hero-title .highlight::after {
    content: "";
    position: absolute;
    left: 0; bottom: 4px;
    width: 100%; height: 14px;
    background: var(--accent);
    z-index: -1;
    border-radius: 4px;
    opacity: .8;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    max-width: 580px;
    margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.hero-stat .num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}
.hero-stat .label {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating search card */
.search-card {
    position: relative;
    margin: -80px auto 0;
    max-width: 1200px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    z-index: 5;
}
.search-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: -28px -28px 24px;
    padding: 6px 28px 0;
}
.search-tab {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-size: 15px;
}
.search-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.search-field { display: flex; flex-direction: column; }
.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.search-field select,
.search-field input {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    font-family: var(--font-body);
    background: #fff;
    transition: var(--t-fast);
}
.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,186,.12);
}

/* ---------- Sticky top search bar (carfromjapan-style) ---------- */
.top-search {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(15, 28, 46, 0.04);
    position: sticky;
    top: 0;
    z-index: 90;
}
.top-search .container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.top-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.ts-keyword {
    position: relative;
    flex: 1.6;
    min-width: 200px;
}
.ts-keyword i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}
.ts-keyword input {
    width: 100%;
    height: 52px;
    padding: 0 12px 0 36px;
    background: var(--bg-soft);
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: var(--font-body);
    transition: var(--t-fast);
}
.ts-keyword input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 186, 0.12);
}
.ts-field {
    position: relative !important;
    flex: 1;
    min-width: 110px;
    height: 52px;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px;
    padding: 18px 12px 4px !important;
    background: #fff;
    transition: var(--t-fast);
    /* Reset browser fieldset defaults */
    min-inline-size: 0;
    margin: 0 !important;
    display: block !important;
    overflow: hidden;
}
.ts-field:hover { border-color: var(--primary) !important; }
.ts-field:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 114, 186, 0.12);
}
.ts-field legend,
.ts-field .legend {
    position: absolute !important;
    top: 6px !important;
    left: 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--text-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    white-space: nowrap;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
    pointer-events: none;
}
.ts-field select {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0 18px 0 0 !important;
    font-size: 14px;
    color: var(--text-dark);
    font-family: var(--font-body);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236e7191' d='M5 6L0 0h10z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 0 center !important;
    height: 24px;
    line-height: 1.3;
    margin: 0;
    box-shadow: none !important;
    font-weight: 500;
}
.ts-field select:focus { outline: none; box-shadow: none !important; }

/* Select2 inside .ts-field — match the flat look */
.ts-field .select2-container { width: 100% !important; }
.ts-field .select2-container--default .select2-selection {
    border: 0 !important;
    background: transparent !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
}
.ts-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 0 18px 0 0 !important;
    line-height: 24px !important;
    height: 24px !important;
}
.ts-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 24px !important;
    top: 0 !important;
    right: 0 !important;
}
.ts-field .select2-container--default .select2-selection--multiple {
    border: 0 !important;
    background: transparent !important;
    min-height: 24px !important;
    padding: 0 !important;
}
.ts-field .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 18px 0 0 !important;
    line-height: 24px !important;
}
.ts-field .select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    height: 24px !important;
    padding: 0 !important;
    font-size: 14px;
    color: var(--text-dark);
}
.ts-more {
    height: 52px;
    padding: 0 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--t-fast);
    white-space: nowrap;
}
.ts-more:hover { border-color: var(--primary); color: var(--primary); }
.ts-submit {
    height: 52px;
    padding: 0 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--t-fast);
    white-space: nowrap;
}
.ts-submit:hover { background: var(--primary-dark); }
.ts-reset {
    color: var(--text-light);
    text-decoration: underline;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0 6px;
    white-space: nowrap;
}
.ts-reset:hover { color: var(--primary); }

/* ---------- Compact homepage banner + search strip ---------- */
.home-banner {
    background: linear-gradient(135deg, #0a1429 0%, #0f1c33 50%, #16213e 100%);
    color: #fff;
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}
.home-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 114, 186, 0.4), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(0, 166, 226, 0.25), transparent 50%);
}
.home-banner .container { position: relative; z-index: 1; }
.home-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}
.home-banner-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    margin: 6px 0 8px;
    line-height: 1.1;
}
.home-banner-title .highlight {
    position: relative; display: inline-block; color: #fff;
}
.home-banner-title .highlight::after {
    content: ""; position: absolute; left: 0; bottom: 4px;
    width: 100%; height: 10px; background: var(--primary); opacity: .85;
    z-index: -1; border-radius: 4px;
}
.home-banner-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin: 0;
    max-width: 720px;
}
.home-banner-stats {
    display: flex;
    gap: 30px;
}
.home-banner-stats .num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.home-banner-stats .lab {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.home-search {
    background: var(--bg-soft);
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.home-search-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin: -50px auto 0;
    position: relative;
    z-index: 5;
}
.home-search-form .search-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
.home-search-form input,
.home-search-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    font-family: var(--font-body);
    background: #fff;
    transition: var(--t-fast);
}
.home-search-form input:focus,
.home-search-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,186,.12);
}
.home-search-form .btn { white-space: nowrap; height: 44px; }

/* ---------- Brand list (homepage sidebar) ---------- */
.brand-list, .popular-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.brand-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    transition: var(--t-fast);
    font-size: 14px;
}
.brand-list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.brand-list .brand-logo {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    letter-spacing: -0.5px;
}
.brand-list li a:hover .brand-logo {
    background: var(--primary);
    color: #fff;
}
.brand-list .brand-name { flex: 1; font-weight: 500; }
.brand-list .brand-count {
    background: var(--bg-soft);
    color: var(--text-light);
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.popular-list li a {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 13px;
}
.popular-list li a i {
    color: var(--accent-bright);
    font-size: 11px;
}
.popular-list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header.left { text-align: left; }
.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-light), rgba(230, 243, 255, 0.5));
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.15;
}
.section-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.section-title .highlight::after {
    content: "";
    position: absolute;
    left: 0; bottom: 4px;
    width: 100%; height: 8px;
    background: rgba(0, 114, 186, 0.12);
    z-index: -1;
    border-radius: 4px;
}
.section-desc {
    font-size: 17px;
    color: var(--text-medium);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-header.left .section-desc { margin: 0; }

/* ---------- Vehicle Cards ---------- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
/* Responsive: step down columns on smaller screens */
@media (max-width: 1400px) { .vehicle-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .vehicle-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px)  { .vehicle-grid { grid-template-columns: 1fr; } }
.vehicle-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t-med);
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.vehicle-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #eef2f5;
}
.vehicle-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--t-med);
}
.vehicle-card:hover .vehicle-img img { transform: scale(1.06); }
.vehicle-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vehicle-badge.used { background: var(--text); }
.vehicle-badge.ev { background: #00a86b; }
.vehicle-actions {
    position: absolute;
    top: 16px; right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: var(--t-fast);
}
.vehicle-card:hover .vehicle-actions { opacity: 1; transform: translateY(0); }
.vehicle-actions button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.95);
    color: var(--text);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--t-fast);
    font-size: 14px;
}
.vehicle-actions button:hover { background: var(--accent); color: #fff; }

.vehicle-body {
    padding: 22px;
    display: flex; flex-direction: column;
    flex: 1;
}
.vehicle-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.vehicle-brand { font-weight: 700; color: var(--primary); }
.vehicle-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.3;
}
.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.vehicle-spec {
    text-align: center;
    font-size: 11px;
    color: var(--text-medium);
}
.vehicle-spec i {
    color: var(--primary);
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.vehicle-spec .val { font-weight: 600; color: var(--text); font-size: 12px; }

.vehicle-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
}
.vehicle-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.vehicle-price small { font-size: 12px; color: var(--text-light); font-weight: 400; }
.vehicle-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}
.vehicle-link:hover { color: var(--accent-dark); }

/* ---------- Feature row ---------- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.feature-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--t-med);
}
.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.feature-title { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.feature-desc { font-size: 14px; color: var(--text-medium); margin: 0; line-height: 1.6; }

/* ---------- Browse by make ---------- */
.make-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.make-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: var(--t-fast);
    color: var(--text);
}
.make-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
.make-logo {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.make-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0; }
.make-count { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---------- Why us split ---------- */
.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-2 .why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
.why-item {
    display: flex; gap: 18px;
}
.why-item-icon {
    flex: 0 0 56px;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.why-item h4 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--text-medium); font-size: 15px; line-height: 1.65; }
.why-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.why-image::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(135deg, rgba(0,114,186,.85), rgba(15,28,46,.6)),
        repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,.03) 20px 40px);
}
.why-image .stat-card {
    position: absolute;
    bottom: 30px; left: 30px; right: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    z-index: 2;
}
.stat-card .stat .num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat .label {
    font-size: 12px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- How it works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: step;
    position: relative;
}
.step-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.step-item::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -22px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 16px rgba(0,114,186,.3);
}
.step-icon {
    width: 56px; height: 56px;
    margin: 16px auto 18px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.step-title { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.step-desc { font-size: 14px; color: var(--text-medium); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.testimonial {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial::before {
    content: "“";
    position: absolute;
    top: 18px; right: 24px;
    font-size: 80px;
    line-height: 1;
    color: var(--primary-light);
    font-family: Georgia, serif;
}
.testimonial-rating { color: #f5b50a; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-medium);
    margin: 0 0 22px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.testimonial-author .name { font-weight: 600; color: var(--text); }
.testimonial-author .meta { font-size: 13px; color: var(--text-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-banner::before { width: 320px; height: 320px; top: -100px; right: -80px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -80px; left: -50px; }
.cta-banner .content { position: relative; z-index: 1; }
.cta-banner h2 {
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 16px;
}
.cta-banner p {
    font-size: 17px;
    color: rgba(255,255,255,.9);
    max-width: 620px;
    margin: 0 auto 32px;
}
.cta-banner .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Newsletter strip ---------- */
.newsletter {
    background: var(--bg-dark);
    color: #fff;
    padding: 50px 0;
}
.newsletter .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.newsletter h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 26px;
    margin: 0 0 6px;
}
.newsletter p { color: rgba(255,255,255,.75); margin: 0; }
.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}
.newsletter-form input {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a1429;
    color: rgba(255,255,255,.75);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 56px;
}
.footer-grid h5 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 17px;
    margin: 0 0 22px;
    letter-spacing: 0.5px;
}
.footer-about p { font-size: 14.5px; line-height: 1.75; margin: 16px 0 22px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { color: rgba(255,255,255,.7); font-size: 14.5px; transition: var(--t-fast); }
.footer-list a:hover { color: #fff; padding-left: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin-bottom: 12px; }
.footer-contact i { color: var(--primary); margin-top: 4px; flex: 0 0 auto; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
}
.footer-bottom a { color: rgba(255,255,255,.7); margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }
.footer-payment { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer-payment .pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 24px;
    padding: 0;
    line-height: 0;
    transition: var(--t-fast);
}
.footer-payment .pay-logo:hover { transform: translateY(-2px); }
.footer-payment .pay-logo svg {
    height: 24px;
    width: auto;
    display: block;
}
.footer-payment .pay-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    padding: 0 10px;
    height: 24px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.footer-payment .pay {
    background: rgba(255,255,255,.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
}

/* ---------- Page header ---------- */
.page-header {
    background: linear-gradient(135deg, #0a1429, #16213e);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 90% 30%, rgba(0,114,186,.5), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 166, 226, 0.22), transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 8px;
}
.breadcrumbs { color: rgba(255,255,255,.75); font-size: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs .sep { margin: 0 10px; opacity: .5; }

/* ---------- Inventory layout ---------- */
.inv-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}
.filter-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: sticky;
    top: 100px;
    align-self: start;
}
.filter-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 22px 0 14px;
    color: var(--text);
    letter-spacing: 0.3px;
}
.filter-card h4:first-child { margin-top: 0; }
.filter-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
    padding: 4px 0;
    cursor: pointer;
}
.filter-card label .count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 10px;
}
.filter-card label:hover { color: var(--primary); }
.filter-card input[type="checkbox"] { accent-color: var(--primary); }
.filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.filter-range input {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatches .sw {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
}
.color-swatches .sw.active { border-color: var(--primary); transform: scale(1.1); }

.inv-toolbar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.inv-toolbar .count { font-size: 14px; color: var(--text-medium); }
.inv-toolbar .count strong { color: var(--text); }
.inv-toolbar select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
    width: 38px; height: 38px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-medium);
}
.view-toggle button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination button, .pagination a {
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
}
.pagination button:hover, .pagination a:hover {
    border-color: var(--primary); color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- Vehicle detail ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}
.gallery-main {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #eef2f5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.gallery-thumbs .thumb {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #eef2f5;
}
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb.active { border-color: var(--primary); }

.detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    position: sticky;
    top: 100px;
    align-self: start;
}
.detail-card h1 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 0 0 6px;
}
.detail-card .sub { color: var(--text-medium); font-size: 14px; margin-bottom: 20px; }
.detail-card .price {
    font-family: var(--font-display);
    font-size: 38px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}
.detail-card .price small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.detail-card .price-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    color: var(--text-medium);
    font-size: 13px;
}
.detail-card .price-meta .strike { text-decoration: line-through; color: var(--text-light); }
.detail-card .price-meta .save {
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}
.detail-card .ctas {
    display: flex; flex-direction: column; gap: 10px;
    margin: 24px 0;
}
.trust-strip {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
    color: var(--text-medium);
}
.trust-strip span { display: inline-flex; gap: 6px; align-items: center; }
.trust-strip i { color: #00a86b; }

.specs-grid {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-top: 32px;
}
.specs-grid h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 22px; }
.specs-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;
}
.specs-grid .row {
    display: flex; justify-content: space-between;
    border-bottom: 1px dashed var(--border);
    padding: 8px 0;
    font-size: 14px;
}
.specs-grid .row .key { color: var(--text-medium); }
.specs-grid .row .val { color: var(--text); font-weight: 600; }

.tabs {
    display: flex;
    gap: 4px;
    margin-top: 32px;
    border-bottom: 1px solid var(--border);
}
.tab-btn {
    background: none; border: none;
    padding: 14px 22px;
    font-weight: 600; color: var(--text-medium); cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content {
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.seller-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}
.seller-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
}
.seller-card h4 { font-family: var(--font-display); margin: 0; font-size: 17px; }
.seller-card .verified { color: var(--primary); font-size: 12px; }
.seller-card .meta { font-size: 13px; color: var(--text-medium); margin-top: 2px; }

/* ---------- Dashboard ---------- */
.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 100vh;
}
.dash-sidebar {
    background: #0a1429;
    color: rgba(255,255,255,.85);
    padding: 28px 18px;
}
.dash-brand {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    margin-bottom: 32px;
}
.dash-brand .logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    display: block;
}
.dash-brand .mark {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: inline-flex; align-items: center; justify-content: center;
}
.dash-nav { list-style: none; padding: 0; margin: 0; }
.dash-nav .label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.4);
    padding: 18px 12px 8px;
}
.dash-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    color: rgba(255,255,255,.75);
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 14.5px;
}
.dash-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dash-nav a.active {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,114,186,.3);
}
.dash-main {
    background: var(--bg-soft);
    padding: 32px 40px;
}
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.dash-topbar h1 { font-family: var(--font-display); font-size: 28px; margin: 0; }
.dash-topbar .greet { color: var(--text-medium); margin: 4px 0 0; font-size: 14px; }
.dash-search {
    position: relative;
    flex: 1; max-width: 380px;
}
.dash-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 14px;
}
.dash-search i {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-light);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.kpi {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}
.kpi .label { font-size: 13px; color: var(--text-medium); }
.kpi .num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 4px;
}
.kpi .delta {
    font-size: 12px;
    color: #00a86b;
    font-weight: 600;
}
.kpi .delta.down { color: var(--accent); }
.kpi .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.kpi.accent .icon { background: var(--accent-light); color: var(--accent); }
.kpi.green .icon { background: #d1f3e3; color: #00a86b; }
.kpi.amber .icon { background: #fff3d6; color: #d97e08; }

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.panel-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px;
}
.panel-head h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.panel-head a { font-size: 13px; }

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dash-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
}
.dash-table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .car-cell { display: flex; align-items: center; gap: 10px; }
.dash-table .car-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 700; font-size: 12px;
}
.status {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}
.status.live { background: #d1f3e3; color: #008f5e; }
.status.pending { background: #fff3d6; color: #b46b08; }
.status.sold { background: var(--accent-light); color: var(--accent-dark); }

.activity { display: flex; flex-direction: column; gap: 14px; }
.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.activity .who { font-weight: 600; font-size: 14px; }
.activity .what { font-size: 13px; color: var(--text-medium); }
.activity .when { font-size: 12px; color: var(--text-light); }

/* ---------- Auth ---------- */
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-brand {
    background: linear-gradient(135deg, #0a1429, #16213e 60%, var(--primary-dark));
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-brand::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 166, 226, 0.28), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0,114,186,.4), transparent 50%);
}
.auth-brand .logo, .auth-brand .pitch, .auth-brand .auth-quote { position: relative; z-index: 1; }
.auth-brand .logo {
    display: inline-flex; align-items: center;
    text-decoration: none;
}
.auth-brand .logo .logo-img {
    height: 56px;
    width: auto;
    max-width: 240px;
    display: block;
}
.auth-brand .logo .mark {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: inline-flex; align-items: center; justify-content: center;
}
.auth-brand .pitch h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 40px;
    margin: 0 0 20px;
    line-height: 1.1;
}
.auth-brand .pitch p {
    color: rgba(255,255,255,.85);
    font-size: 17px;
    line-height: 1.7;
    max-width: 480px;
}
.auth-quote {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.auth-quote p { font-size: 15px; color: #fff; margin: 0 0 14px; line-height: 1.65; }
.auth-quote .author { display: flex; align-items: center; gap: 12px; }
.auth-quote .author .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-soft);
}
.auth-form {
    width: 100%;
    max-width: 460px;
}
.auth-form h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; }
.auth-form .lead { color: var(--text-medium); margin: 0 0 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--t-fast);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,186,.15);
}
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 24px; }
.divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}
.divider::before, .divider::after {
    content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-social {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}
.btn-social:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Helpers ---------- */
.btn-block { display: flex; width: 100%; }
.text-center { text-align: center; }
.muted { color: var(--text-medium); }
.flex { display: flex; gap: 12px; }
.flex.between { justify-content: space-between; }
.flex.center { align-items: center; }
hr.divide { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .home-search-form { grid-template-columns: repeat(3, 1fr); }
    .home-search-form .btn { grid-column: 1 / -1; }
    .home-banner-inner { grid-template-columns: 1fr; }
    .home-banner-stats { gap: 20px; }
    .top-search .container { flex-wrap: wrap; }
    .top-search-form { flex-wrap: wrap; }
    .ts-keyword { flex: 1 1 100%; }
    .ts-field { flex: 1 1 calc(33.33% - 8px); min-width: 100px; }
}
@media (max-width: 720px) {
    .top-search { position: relative; }
    .top-search-form { gap: 6px; }
    .ts-field { flex: 1 1 calc(50% - 6px); }
    .ts-more { flex: 1 1 100%; justify-content: center; }
    .ts-submit { flex: 1; padding: 0 14px; }
    .ts-reset { display: none; }
}
@media (max-width: 1100px) {
    .feature-row, .testimonial-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .inv-layout, .detail-layout { grid-template-columns: 1fr; }
    .filter-card, .detail-card { position: static; }
    .split-2 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; min-height: auto; }
    .auth-brand { padding: 40px; }
}
@media (max-width: 720px) {
    .section { padding: 60px 0; }
    .hero { padding: 70px 0 130px; }
    .home-banner { padding: 30px 0 20px; }
    .home-search-form { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; margin-top: -30px; }
    .home-search-form .btn { grid-column: 1 / -1; }
    .home-banner-stats { flex-wrap: wrap; gap: 14px; }
    .home-banner-stats .num { font-size: 22px; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .feature-row, .testimonial-grid, .steps-grid, .vehicle-specs { grid-template-columns: 1fr 1fr; }
    .specs-grid .grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .newsletter .container, .newsletter-form { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .dash-main { padding: 24px; }
    .topbar-info { display: none; }
    .main-nav { display: none; }
    .cta-banner { padding: 40px 24px; }
}

/* ===== FAQ accordion (site-wide) ===== */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,114,186,.08);
}
.faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 18px 22px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    line-height: 1.45;
    transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q:focus { outline: none; }
.faq-q .chev {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, background .2s, color .2s;
}
.faq-item.open .faq-q .chev {
    background: var(--primary);
    color: #fff;
    transform: rotate(180deg);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 22px;
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}
.faq-item.open .faq-a {
    max-height: 800px;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--bg-soft);
}
.faq-a p { margin: 0 0 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: 8px 0 8px 18px; padding: 0; }
.faq-a li { margin-bottom: 4px; }
.faq-a a { color: var(--primary); }
