/* ================================================================
   D Auto Sales — site.css
   Covers: Layout, Home, Buy Cars, Sell Car, Admin Panel
   ================================================================ */

/* ?? CSS Variables ??????????????????????????????????????????? */
:root {
    --primary: #ef4444;
    --primary-dark: #b91c1c;
    --primary-light: #fee2e2;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --success: #10b981;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 14px;
    --radius-sm: 8px;
    --font: 'DM Sans', sans-serif;
    --font-display: 'Playfair Display', serif;
    --nav-h: 68px;
}

/* ?? Reset ??????????????????????????????????????????????????? */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
    border-color: var(--primary) !important;
    outline: none;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

    .btn-primary:hover {
        background: var(--primary-dark) !important;
        border-color: var(--primary-dark) !important;
    }

.btn-outline-secondary {
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ????????????????????????????????????????????????????????????
   ?  NAVBAR                                                  ?
   ???????????????????????????????????????????????????????????? */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar {
    padding: 0;
    min-height: var(--nav-h);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text) !important;
}

.brand-icon {
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.brand-text {
    color: var(--secondary);
}

.brand-accent {
    color: var(--primary);
}

.brand-num {
    color: var(--text-muted);
    font-size: .85em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: .5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all .2s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary) !important;
        background: var(--primary-light);
    }

.btn-admin {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: .4rem .9rem;
    font-size: .85rem;
    transition: background .2s;
}

    .btn-admin:hover {
        background: #334155;
        color: #fff;
    }

.nav-buy-btn {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .4rem .9rem;
    font-size: .85rem;
    transition: all .2s;
}

    .nav-buy-btn:hover {
        background: var(--primary);
        color: #fff !important;
    }

/* ????????????????????????????????????????????????????????????
   ?  HERO                                                    ?
   ???????????????????????????????????????????????????????????? */
.hero-section {
    position: relative;
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#1e3a5f 100%);
    overflow: hidden;
    padding: 60px 0;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-row {
    min-height: calc(85vh - var(--nav-h));
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .06;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #60a5fa;
    bottom: -80px;
    left: 10%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 30%;
    left: 40%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(239,68,68,.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 500;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem,5vw,3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.hero-accent {
    color: var(--primary);
}

.hero-subtext {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 480px;
}

.cta-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media(min-width:480px) {
    .cta-cards {
        flex-direction: row;
    }
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius);
    transition: transform .22s,box-shadow .22s;
    flex: 1;
}

    .cta-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.cta-buy {
    background: var(--primary);
    color: #fff;
}

.cta-sell {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(6px);
}

    .cta-sell:hover {
        background: rgba(255,255,255,.15);
        color: #fff;
    }

.cta-card-icon {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.cta-card-body h4 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
}

.cta-card-body p {
    font-size: .78rem;
    margin: 0;
    opacity: .8;
}

.cta-card-arrow {
    margin-left: auto;
    font-size: 1.4rem;
    opacity: .8;
}

.hero-stats {
    display: flex;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

    .stat-item:first-child {
        padding-left: 0;
    }

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.15);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero-car-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.hero-car-img-wrap {
    position: relative;
}

.hero-car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-car-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.hero-car-info {
    padding: 16px;
}

    .hero-car-info h5 {
        font-size: .95rem;
        font-weight: 700;
        color: var(--text);
    }

.hero-car-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-car-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .hero-car-tags span {
        font-size: .72rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 3px;
    }

.float-badge {
    position: absolute;
    background: #fff;
    border-radius: 50px;
    padding: 7px 14px;
    font-size: .78rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    color: var(--text);
    white-space: nowrap;
}

.float-badge-1 {
    top: -14px;
    right: -30px;
    animation: floatB1 3s ease-in-out infinite;
}

.float-badge-2 {
    bottom: 30px;
    left: -40px;
    animation: floatB2 3.5s ease-in-out infinite;
}

@keyframes floatB1 {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

@keyframes floatB2 {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(6px)
    }
}

/* ????????????????????????????????????????????????????????????
   ?  SECTION SHARED                                          ?
   ???????????????????????????????????????????????????????????? */
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem,3vw,2.2rem);
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 0;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
}

/* How It Works */
.how-section {
    background: var(--bg-white);
}

.how-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px 28px;
    position: relative;
    transition: transform .2s,box-shadow .2s;
    border: 1px solid var(--border);
}

    .how-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.how-card-accent {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

    .how-card-accent p, .how-card-accent .how-step {
        color: rgba(255,255,255,.7);
    }

    .how-card-accent .how-icon {
        background: rgba(255,255,255,.15);
        color: #fff;
    }

.how-step {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 22px;
    font-family: var(--font-display);
}

.how-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.how-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.how-card p {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
}

/* Why */
.why-section {
    background: var(--bg);
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.why-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.why-point h6 {
    font-weight: 700;
    margin: 0 0 2px;
    font-size: .9rem;
}

.why-point p {
    color: var(--text-muted);
    font-size: .82rem;
    margin: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.why-grid-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform .2s,box-shadow .2s;
}

    .why-grid-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

    .why-grid-card i {
        font-size: 1.8rem;
        margin-bottom: 8px;
        display: block;
    }

    .why-grid-card h3 {
        font-family: var(--font-display);
        font-size: 1.8rem;
        font-weight: 700;
        margin: 0;
    }

    .why-grid-card p {
        color: var(--text-muted);
        font-size: .82rem;
        margin: 0;
    }

.wgc-1 i {
    color: var(--primary)
}

.wgc-2 i {
    color: #3b82f6
}

.wgc-3 i {
    color: var(--success)
}

.wgc-4 i {
    color: var(--accent)
}

/* Sell CTA */
.sell-cta-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.sell-cta-card {
    background: linear-gradient(135deg,var(--secondary),#1e3a5f);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sell-cta-content h2 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.sell-cta-content p {
    color: #94a3b8;
    margin: 0;
    max-width: 500px;
}

.btn-sell-cta {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: background .2s,transform .2s;
}

    .btn-sell-cta:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateX(4px);
    }

/* ????????????????????????????????????????????????????????????
   ?  PAGE HERO MINI                                          ?
   ???????????????????????????????????????????????????????????? */
.page-hero-mini {
    background: linear-gradient(135deg,#0f172a,#1e3a5f);
    padding: 32px 0 28px;
}

    .page-hero-mini .breadcrumb-item a {
        color: #94a3b8;
    }

    .page-hero-mini .breadcrumb-item.active {
        color: #64748b;
    }

.page-hero-title {
    font-family: var(--font-display);
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.page-hero-sub {
    color: #94a3b8;
    font-size: .88rem;
    margin: 6px 0 0;
}

.sell-hero {
    background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);
}

/* ????????????????????????????????????????????????????????????
   ?  FILTER CARD (List page)                                 ?
   ???????????????????????????????????????????????????????????? */
.filter-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.filter-header {
    background: var(--secondary);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .9rem;
}

.filter-reset {
    color: #94a3b8;
    font-size: .78rem;
    cursor: pointer;
    text-decoration: underline;
}

    .filter-reset:hover {
        color: #fff;
    }

.filter-group {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

    .filter-group:last-of-type {
        border-bottom: none;
    }

.filter-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: block;
    margin-bottom: 10px;
}

.filter-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}

.filter-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: .88rem;
    cursor: pointer;
}

/* ????????????????????????????????????????????????????????????
   ?  LISTING TOOLBAR                                         ?
   ???????????????????????????????????????????????????????????? */
.listing-toolbar {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--border);
}

.listing-count {
    font-size: .88rem;
    color: var(--text-muted);
}

.sort-select {
    font-size: .85rem;
    border-color: var(--border);
    border-radius: var(--radius-sm);
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s;
    font-size: .9rem;
}

    .view-btn.active, .view-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

/* ????????????????????????????????????????????????????????????
   ?  CAR CARDS                                               ?
   ???????????????????????????????????????????????????????????? */
.car-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .22s,box-shadow .22s;
    height: 100%;
}

    .car-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.car-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.car-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s;
}

.car-card:hover .car-card-img {
    transform: scale(1.04);
}

.car-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.car-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
}

.badge-verified {
    background: rgba(16,185,129,.9);
    color: #fff;
}

.badge-emi {
    background: rgba(59,130,246,.9);
    color: #fff;
}

.car-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: .9rem;
    color: #94a3b8;
}

    .car-wishlist:hover, .car-wishlist.wishlisted {
        background: #fff;
        color: var(--primary);
    }

.car-card-body {
    padding: 14px;
}

.car-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.car-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.car-price-original {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.car-emi {
    font-size: .7rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.car-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

    .car-specs span {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: .72rem;
        color: var(--text-muted);
        background: var(--bg);
        border: 1px solid var(--border);
        padding: 3px 8px;
        border-radius: 50px;
    }

.car-stock-code {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: 8px;
}

.btn-view-details {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .85rem;
    padding: 7px;
    transition: all .2s;
}

    .btn-view-details:hover {
        background: var(--primary);
        color: #fff;
    }

.no-results {
    color: var(--text-muted);
}

.custom-pagination .page-link {
    border-color: var(--border);
    color: var(--text);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ????????????????????????????????????????????????????????????
   ?  SELL CAR FORM                                           ?
   ???????????????????????????????????????????????????????????? */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    transition: all .3s;
    border: 2px solid transparent;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239,68,68,.15);
}

.step-item.completed .step-circle {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.step-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-item.active .step-label {
    color: var(--primary);
}

.step-item.completed .step-label {
    color: var(--success);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px 22px;
    max-width: 80px;
}

.sell-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sell-card-header {
    background: var(--secondary);
    color: #fff;
    padding: 16px 22px;
    font-weight: 700;
    font-size: .95rem;
}

.sell-card-body {
    padding: 28px 24px;
}

.form-floating-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-floating-custom label {
        font-size: .78rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .form-floating-custom .form-control, .form-floating-custom .form-select {
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 10px 14px;
        font-size: .9rem;
        transition: border-color .2s;
    }

        .form-floating-custom .form-control:focus, .form-floating-custom .form-select:focus {
            border-color: var(--primary);
        }

.field-error {
    font-size: .75rem;
    color: #ef4444;
}

.form-control.is-invalid {
    border-color: #ef4444 !important;
}

.fuel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fuel-option {
    cursor: pointer;
    user-select: none;
}

    .fuel-option input[type="radio"] {
        display: none;
    }

    .fuel-option span {
        display: block;
        padding: 7px 16px;
        border: 1.5px solid var(--border);
        border-radius: 50px;
        font-size: .82rem;
        font-weight: 600;
        color: var(--text-muted);
        transition: all .15s;
    }

    .fuel-option input:checked + span {
        border-color: var(--primary);
        background: var(--primary-light);
        color: var(--primary);
    }

    .fuel-option:hover span {
        border-color: var(--primary);
    }

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    background: var(--bg);
}

    .upload-zone:hover, .upload-zone.drag-over {
        border-color: var(--primary);
        background: var(--primary-light);
    }

.upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.upload-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: .88rem;
}

.upload-content small {
    color: #94a3b8;
    font-size: .75rem;
}

.upload-link {
    color: var(--primary);
    font-weight: 600;
}

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--primary-light);
}

    .preview-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.emi-toggle-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.emi-fields-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.sell-terms .form-check-label {
    font-size: .82rem;
    color: var(--text-muted);
}

.sell-terms a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-next {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

    .btn-next:hover {
        background: var(--primary-dark);
        color: #fff;
    }

.btn-submit-sell {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    transition: background .2s,transform .15s;
}

    .btn-submit-sell:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.sell-why-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.sell-why-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    font-size: .9rem;
}

.sell-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .sell-why-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .sell-why-list i {
        font-size: 1.1rem;
        color: var(--primary);
        min-width: 22px;
        margin-top: 1px;
    }

    .sell-why-list strong {
        display: block;
        font-size: .88rem;
        font-weight: 700;
    }

    .sell-why-list p {
        font-size: .78rem;
        color: var(--text-muted);
        margin: 2px 0 0;
    }

/* ????????????????????????????????????????????????????????????
   ?  ADMIN PANEL                                             ?
   ???????????????????????????????????????????????????????????? */
.admin-body {
    background: #f1f5f9;
    font-family: var(--font);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    /*height: 100vh;*/
    z-index: 100;
    transition: transform .3s;
}

.admin-brand {
    padding: 20px 22px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
}

.admin-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 500;
    transition: all .18s;
    cursor: pointer;
}

    .admin-nav-item:hover, .admin-nav-item.active {
        background: rgba(239,68,68,.15);
        color: #fca5a5;
    }

    .admin-nav-item.active {
        color: #fff;
        background: var(--primary);
    }

.admin-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Main */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

    .admin-topbar h5 {
        font-size: 1rem;
    }

.admin-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
}

.admin-content {
    padding: 24px;
    flex: 1;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}

    .stat-card:hover {
        box-shadow: var(--shadow);
    }

.sc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sc-blue .sc-icon {
    background: #dbeafe;
    color: #2563eb;
}

.sc-green .sc-icon {
    background: #d1fae5;
    color: var(--success);
}

.sc-orange .sc-icon {
    background: #fef3c7;
    color: var(--accent);
}

.sc-purple .sc-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.sc-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.sc-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Table Card */
.admin-table-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .admin-table-header h6 {
        font-weight: 700;
        color: var(--text);
    }

.admin-search-wrap {
    position: relative;
}

.admin-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .85rem;
}

.admin-search {
    padding-left: 30px !important;
    width: 220px;
    border-radius: var(--radius-sm) !important;
    font-size: .85rem !important;
}

.admin-table {
    margin: 0;
    font-size: .85rem;
}

    .admin-table thead th {
        background: #f8fafc;
        color: var(--text-muted);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    .admin-table tbody td {
        padding: 12px 14px;
        vertical-align: middle;
        border-bottom: 1px solid var(--border);
    }

    .admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-table tbody tr:hover {
        background: #fafafa;
    }

.admin-car-thumb {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.stock-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.status-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.emi-chip {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    border: 1px solid var(--border);
    background: #fff;
    transition: all .15s;
}

.btn-edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.btn-toggle:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.btn-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-table-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

/* Admin Modal */
.admin-modal {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-modal-header {
    background: var(--secondary);
    color: #fff;
    border-bottom: none;
    padding: 18px 24px;
}

.admin-modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 14px 24px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.form-label-sm {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
    display: block;
}

.req {
    color: var(--primary);
}

/* Toast */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    z-index: 9999;
    animation: toastIn .3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.toast-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@keyframes toastIn {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

/* ????????????????????????????????????????????????????????????
   ?  FOOTER                                                  ?
   ???????????????????????????????????????????????????????????? */
.site-footer {
    background: var(--secondary);
    color: #fff;
    padding: 56px 0 0;
    margin-top: 60px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.footer-desc {
    color: #94a3b8;
    font-size: .85rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        color: #cbd5e1;
        font-size: .88rem;
        transition: color .15s;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

.footer-socials {
    display: flex;
    gap: 10px;
}

    .footer-socials a {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,.08);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: .9rem;
        transition: all .2s;
    }

        .footer-socials a:hover {
            background: var(--primary);
            color: #fff;
        }

.footer-newsletter .form-control {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    border-radius: var(--radius-sm);
}

    .footer-newsletter .form-control::placeholder {
        color: #64748b;
    }

.footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 40px 0 20px;
}

.footer-bottom {
    padding-bottom: 24px;
    font-size: .82rem;
    color: #64748b;
}

    .footer-bottom a {
        color: #94a3b8;
        transition: color .15s;
    }

        .footer-bottom a:hover {
            color: var(--primary);
        }

/* ????????????????????????????????????????????????????????????
   ?  RESPONSIVE                                              ?
   ???????????????????????????????????????????????????????????? */
@media (max-width:991px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .cta-cards {
        flex-direction: column;
    }

    .sell-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .filter-card {
        position: static;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

        .admin-sidebar.open {
            transform: translateX(0);
        }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width:575px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .step-connector {
        max-width: 40px;
    }

    .sell-card-body {
        padding: 20px 16px;
    }

    .admin-content {
        padding: 16px;
    }
}
