/* =============================================
   UTTARAKHAND CARS - Main Stylesheet
   ============================================= */

:root {
    --primary: #1a3c6e;
    --primary-dark: #0f2444;
    --accent: #f5a623;
    --accent-dark: #d4891a;
    --success: #27ae60;
    --danger: #e74c3c;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fc;
    --bg-gray: #f0f2f7;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-sm: 8px;
    font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }
body { color: var(--text-dark); background: var(--white); }

/* ── TOP STRIP ─────────────────────────────── */
.top-strip {
    background: var(--primary-dark);
    color: #cdd5e0;
    font-size: 13px;
    padding: 7px 0;
}
.top-strip a { color: #cdd5e0; text-decoration: none; transition: color .2s; }
.top-strip a:hover { color: var(--accent); }

/* ── NAVBAR ─────────────────────────────────── */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    padding: 10px 0;
    transition: all .3s;
    position: relative;
    z-index: 1000;
}
.main-nav.scrolled { padding: 6px 0; }

.navbar-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-icon {
    width: 42px; height: 42px;
   background: linear-gradient(135deg, #fe8686, #f52323);
    border-radius: 10px;
    display: flex; align-items:center; justify-content:center;
    color: white; font-size: 18px;
}
.logo-title { display:block; font-size:18px; font-weight:800; color:var(--primary); line-height:1; font-family:'Bebas Neue',cursive; letter-spacing:1px; }
.logo-sub   { display:block; font-size:11px; font-weight:700; color:var(--accent); letter-spacing:4px; line-height:1; }

.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: all .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--primary) !important; background: rgba(26,60,110,.08); }

.btn-sell-nav {
    background: linear-gradient(135deg, var(--primary), #2a5298);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: all .3s;
}
.btn-sell-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(26,60,110,.4); }

/* User nav avatar */
.user-nav-btn { padding: 4px 8px !important; border-radius: 50px !important; }
.user-nav-btn:hover { background: var(--bg-gray) !important; }
.user-nav-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), #2a5298);
    border-radius: 50%;
    display: inline-flex; align-items:center; justify-content:center;
    color: white; font-size: 14px; font-weight: 700;
}
.dropdown-item { font-size: 14px; font-weight: 600; }
.dropdown-item:hover { background: var(--bg-gray); }

/* ── HERO SECTION ───────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2a5298 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.2);
    border: 1px solid rgba(245,166,35,.5);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}
.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 16px 0 12px;
}
.hero-subtitle { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 36px; }

.hero-search-box {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}
.search-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.tab-btn {
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
}
.search-input { border-radius: var(--radius-sm) !important; border: 1.5px solid var(--border) !important; font-size: 14px; height: 44px; }
.search-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(26,60,110,.1) !important; }
.search-btn { height: 44px; border-radius: var(--radius-sm) !important; font-weight: 700; }

/* ── STATS BAR ──────────────────────────────── */
.stats-bar {
    background: var(--primary);
    padding: 0;
}
.stat-item {
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,.15);
    display: flex; flex-direction: column; align-items: center;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--accent); font-family: 'Bebas Neue', cursive; letter-spacing: 1px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTIONS ───────────────────────────────── */
.section-pad { padding: 60px 0; }
.bg-light-gray { background: var(--bg-gray); }
.section-title { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.section-sub    { color: var(--text-muted); font-size: 15px; }

/* ── BRAND CARD ─────────────────────────────── */
.brand-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 12px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
}
.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.brand-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--bg-gray), var(--border));
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    font-size: 22px; color: var(--primary);
    transition: all .25s;
}
.brand-card:hover .brand-icon { background: linear-gradient(135deg, var(--primary), #2a5298); color: white; }
.brand-name { font-size: 12px; font-weight: 700; color: var(--text-dark); text-align: center; }

/* ── CAR CARD ───────────────────────────────── */
.car-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all .3s;
    display: flex; flex-direction: column;
    height: 100%;
}
.car-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.car-card-img {
    position: relative;
    height: 185px;
    overflow: hidden;
    background: var(--bg-gray);
}
.car-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.car-card:hover .car-card-img img { transform: scale(1.06); }
.car-card-img .no-img {
    width: 100%; height: 100%;
    display: flex; align-items:center; justify-content:center;
    flex-direction: column; gap: 8px;
    color: var(--text-muted);
}
.car-badge-status {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.car-badge-featured {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: white;
    padding: 3px 10px; border-radius: 50px;
    font-size: 10px; font-weight: 700;
}
.car-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.car-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.car-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.car-meta-tag {
    background: var(--bg-gray); color: var(--text-muted);
    padding: 3px 9px; border-radius: 50px;
    font-size: 11px; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.car-location { font-size: 12px; color: var(--text-muted); margin-top: auto; }
.car-location i { color: var(--primary); }
.car-card-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}
.btn-view-car {
    flex: 1; background: #255fb4; color: white;
    border: none; padding: 8px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700;
    text-decoration: none; text-align: center;
    transition: all .2s;
}
.btn-view-car:hover { background: var(--primary-dark); color: white; }
.btn-enquire {
    background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700;
    text-decoration: none; text-align: center;
    transition: all .2s;
}
.btn-enquire:hover { background: var(--primary); color: white; }

/* ── CITY CARD ──────────────────────────────── */
.city-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all .25s;
}
.city-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(4px); }
.city-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #2a5298);
    border-radius: 10px;
    display: flex; align-items:center; justify-content:center;
    color: white; font-size: 18px; flex-shrink: 0;
}
.city-info { flex: 1; }
.city-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.city-info small  { font-size: 11px; color: var(--text-muted); }
.city-arrow { color: var(--primary); font-size: 12px; }

/* ── SELL CTA ───────────────────────────────── */
.sell-cta-section { padding: 60px 0; }
.sell-cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 20px;
    padding: 50px 48px;
    position: relative; overflow: hidden;
}
.sell-cta-box::after {
    content:''; position:absolute; right:-60px; top:-60px;
    width:250px; height:250px;
    background: rgba(245,166,35,.15);
    border-radius: 50%;
}
.sell-cta-badge { display:inline-block; background:rgba(245,166,35,.25); color:var(--accent); padding:4px 14px; border-radius:50px; font-size:12px; font-weight:700; letter-spacing:1px; }
.sell-cta-title { font-size:32px; font-weight:800; color:white; margin:8px 0; }
.sell-cta-text  { color: rgba(255,255,255,.75); font-size:16px; }
.sell-features  { display:flex; flex-wrap:wrap; gap:16px; }
.sell-features span { color:rgba(255,255,255,.9); font-size:14px; font-weight:600; }

/* ── WHY CARD ───────────────────────────────── */
.why-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1.5px solid var(--border);
    transition: all .3s;
    height: 100%;
}
.why-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items:center; justify-content:center;
    font-size: 22px; margin-bottom: 16px;
}
.why-primary { background: rgba(26,60,110,.12); color: var(--primary); }
.why-success { background: rgba(39,174,96,.12); color: var(--success); }
.why-warning { background: rgba(245,166,35,.15); color: var(--accent-dark); }
.why-danger  { background: rgba(231,76,60,.12);  color: var(--danger); }
.why-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.why-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── TESTIMONIALS ───────────────────────────── */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    border: 1.5px solid var(--border);
    height: 100%;
    transition: all .3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.test-text   { color: var(--text-dark); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #2a5298);
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    color: white; font-size: 18px; font-weight: 700;
}

/* ── FOOTER ─────────────────────────────────── */
.main-footer { background: #0f1923; }
.footer-body { padding: 56px 0 40px; }
.footer-heading { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-list a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: #94a3b8; font-size: 14px; margin-bottom: 12px; }
.footer-contact i { margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: #94a3b8; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    display: flex; align-items:center; justify-content:center;
    color: #94a3b8; font-size: 14px;
    transition: all .2s; text-decoration: none;
}
.footer-socials a:hover { background: var(--accent); color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
    color: #64748b;
}

/* ── WHATSAPP FLOAT ─────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 54px; height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    color: white; font-size: 26px;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    text-decoration: none;
    transition: all .3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
@keyframes pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
    50%      { box-shadow: 0 4px 30px rgba(37,211,102,.8); }
}

/* ── AUTH PAGES ─────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--bg-gray); display:flex; align-items:center; padding: 40px 0; }
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 480px; margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.auth-sub   { color: var(--text-muted); font-size: 14px; }
.form-label { font-weight: 600; font-size: 13px; color: var(--text-dark); margin-bottom: 5px; }
.form-control, .form-select {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px;
    padding: 10px 14px;
    transition: all .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(26,60,110,.1) !important;
}
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #2a5298);
    color: white; border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px;
    width: 100%; transition: all .3s;
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,60,110,.4); }

/* ── USER PANEL ─────────────────────────────── */
.user-layout { display: flex; min-height: calc(100vh - 130px); }
.user-sidebar {
    width: 260px; flex-shrink: 0;
    background: white;
    border-right: 1.5px solid var(--border);
    padding: 24px 0;
}
.user-main { flex: 1; padding: 32px; background: var(--bg-gray); }
.sidebar-user-info {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.sidebar-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #2a5298);
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    color: white; font-size: 22px; font-weight: 700;
    margin-bottom: 10px;
}
.sidebar-name  { font-weight: 700; font-size: 15px; color: var(--text-dark); }
.sidebar-email { font-size: 12px; color: var(--text-muted); }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(26,60,110,.06);
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-nav a i { width: 18px; text-align: center; color: var(--primary); opacity: .7; }
.sidebar-nav a:hover i, .sidebar-nav a.active i { opacity: 1; }

.page-title { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.page-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ── STAT CARDS ─────────────────────────────── */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px 20px;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    transition: all .3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items:center; justify-content:center;
    font-size: 22px; flex-shrink: 0;
}
.stat-card-val   { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ── TABLE ──────────────────────────────────── */
.table-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
}
.table-card-header {
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border);
    display: flex; justify-content:space-between; align-items:center;
}
.table-card-header h5 { margin: 0; font-weight: 700; font-size: 16px; color: var(--primary); }
.table { margin: 0; }
.table th { background: var(--bg-gray); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 12px 16px; border: none; }
.table td { padding: 12px 16px; vertical-align: middle; font-size: 14px; border-color: var(--border); }
.table tbody tr:hover { background: var(--bg-gray); }
.car-thumb { width: 50px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--bg-gray); }

/* ── STATUS BADGES ──────────────────────────── */
.badge-active   { background: rgba(39,174,96,.15);  color: var(--success);  padding:4px 12px; border-radius:50px; font-size:12px; font-weight:700; }
.badge-pending  { background: rgba(245,166,35,.15); color: var(--accent-dark); padding:4px 12px; border-radius:50px; font-size:12px; font-weight:700; }
.badge-sold     { background: rgba(108,117,125,.15); color: #6c757d; padding:4px 12px; border-radius:50px; font-size:12px; font-weight:700; }
.badge-rejected { background: rgba(231,76,60,.15);  color: var(--danger); padding:4px 12px; border-radius:50px; font-size:12px; font-weight:700; }

/* ── ADMIN PANEL ─────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 130px); }
.admin-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--primary-dark);
    padding: 20px 0;
}
.admin-sidebar .sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 12px;
    color: white; font-weight: 800; font-size: 16px;
}
.admin-sidebar .sidebar-logo small { display:block; color: rgba(255,255,255,.5); font-size:11px; font-weight:400; }
.admin-sidebar a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,.7);
    text-decoration: none; font-size: 14px; font-weight: 600;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,.08);
    color: white;
    border-left-color: var(--accent);
}
.admin-sidebar a i { width: 18px; text-align: center; }
.admin-main { flex: 1; padding: 32px; background: var(--bg-gray); overflow: auto; }

/* ── SELL CAR FORM ──────────────────────────── */
.form-section {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    border: 1.5px solid var(--border);
    margin-bottom: 20px;
}
.form-section-title {
    font-size: 16px; font-weight: 700; color: var(--primary);
    padding-bottom: 14px; border-bottom: 1.5px solid var(--border);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

/* ── CAR DETAIL PAGE ────────────────────────── */
.car-detail-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
}
.car-detail-main-img { 
    width: 100%; 
    height: 340px; 
    object-fit: cover; 
    display: block;
}
@media (max-width: 576px) {
    .car-detail-main-img { 
        height: auto !important;
        max-height: 260px;
        width: 100% !important;
        object-fit: cover;
    }
    .car-detail-gallery {
        border-radius: 0 !important;
        margin: 0 -12px;
    }
}
.car-info-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1.5px solid var(--border);
    margin-bottom: 16px;
}
.car-detail-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.car-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.car-spec-item {
    background: var(--bg-gray);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 10px;
}
.car-spec-item i { color: var(--primary); width: 16px; text-align:center; }
.car-spec-label { font-size: 11px; color: var(--text-muted); display: block; }
.car-spec-val   { font-size: 14px; font-weight: 700; color: var(--text-dark); }

/* ── FILTER SIDEBAR ─────────────────────────── */
.filter-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    position: sticky; top: 80px;
}
.filter-header {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    font-weight: 700; font-size: 15px;
}
.filter-body { padding: 18px; }
.filter-section { margin-bottom: 20px; }
.filter-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 10px; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 991px) {
    .user-sidebar  { display: none; }
    .admin-sidebar { display: none; }
    .user-main, .admin-main {
        padding: 16px;
        width: 100%;
        min-width: 0;
    }
    .user-layout, .admin-layout {
        flex-direction: column;
    }
    .hero-section  { padding: 50px 0 70px; }
    .sell-cta-box  { padding: 32px 24px; }

    /* Stat cards — no overflow */
    .stat-card {
        padding: 14px 12px;
        gap: 10px;
    }
    .stat-card-icon {
        width: 40px; height: 40px;
        border-radius: 10px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .stat-card-val   { font-size: 20px; }
    .stat-card-label { font-size: 11px; }

    /* Table responsive */
    .table-card { overflow-x: auto; }
    .table-card-header { flex-wrap: wrap; gap: 8px; }

    /* My Cars list on mobile */
    .car-thumb { width: 60px; height: 48px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 28px; }
    .stat-num   { font-size: 22px; }
    .car-spec-grid { grid-template-columns: 1fr; }

    /* Page title smaller */
    .page-title { font-size: 18px; }
    .page-sub   { font-size: 13px; }

    /* Sell CTA */
    .sell-cta-title { font-size: 22px; }
    .sell-cta-box   { padding: 24px 16px; }
    .sell-features  { gap: 10px; }

    /* Forms */
    .form-section { padding: 16px; }
    .form-section-title { font-size: 14px; }

    /* User main full width */
    .user-main { padding: 12px; }
}





/* ═══════════════════════════════════════════════
   MOBILE NAVBAR — Pure CSS (No Bootstrap collapse)
   ═══════════════════════════════════════════════ */

/* Hamburger button */
.nav-hamburger-btn {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    z-index: 100;
    position: relative;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 900;
}
.nav-overlay.open { display: block; }

/* Nav drawer */
.nav-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 950;
    padding: 64px 24px 32px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
}
.nav-drawer.open {
    transform: translateX(0);
}

/* Close button */
.nav-close-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: #f0f2f7;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-close-btn:hover { background: #e2e8f0; }

body.nav-open { overflow: hidden; }

/* Mobile nav items */
@media (max-width: 991px) {
    .nav-hamburger-btn { display: block; }

    /* Hide desktop nav items */
    .main-nav .navbar-nav {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        align-items: flex-start !important;
    }
    .main-nav .nav-item {
        width: 100% !important;
    }
    .main-nav .nav-link {
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 16px 4px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #f0f2f7 !important;
        color: #1a1a2e !important;
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
    }
    .main-nav .nav-link:hover {
        color: #1a3c6e !important;
        background: #f8faff !important;
        padding-left: 10px !important;
    }
    .main-nav .nav-link.active { color: #1a3c6e !important; }

    /* Auth buttons full width */
    .main-nav .ms-2,
    .main-nav li.ms-2 {
        margin-left: 0 !important;
        margin-top: 16px !important;
        width: 100% !important;
    }
    .main-nav .btn-outline-primary,
    .main-nav .btn-sell-nav {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 13px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    /* User dropdown in mobile */
    .main-nav .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8f9fc !important;
        border-radius: 10px !important;
        padding: 8px !important;
        margin: 4px 0 !important;
        display: block !important;
    }
    .main-nav .dropdown-item {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

@media (min-width: 992px) {
    .nav-drawer {
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
    }
    .nav-close-btn { display: none !important; }
    .nav-overlay  { display: none !important; }
}

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

.car-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-share {
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    color: #4a6cf7;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-share:hover {
    background: #4a6cf7;
    color: #fff;
    transform: scale(1.1);
}

.btn-share.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.car-card-footer {
    position: relative;
    z-index: 5;
}

.btn-share {
    position: relative;
    z-index: 10;
}
