:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --accent-color: #2ecc40;
    --accent-dark: #27ae36;
    --accent-text: #1a7a29; /* darkened for WCAG AA on white (5.1:1 contrast) */
    --dark-bg: #1a1a2e;
    --navbar-bg: #ffffff;
    --btn-text: #ffffff;
}

/* ============================================
   Skip-to-content link (accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 12px 20px;
    background: var(--dark-bg);
    color: #fff;
    font-weight: 700;
    z-index: 99999;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    transition: top 0.1s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   Focus-visible: keyboard-only focus ring
   ============================================ */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   prefers-reduced-motion: disable transforms
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .st-how-card, .reel-card, .card {
        transition: none !important;
    }
    .st-how-card:hover, .reel-card:hover {
        transform: none !important;
    }
    .happy-marquee-track {
        animation: none !important;
    }
}

/* ============================================
   Bootstrap Primary → Theme Accent (Global)
   All btn-primary, bg-primary, text-primary
   across every page pick up the theme color.
   ============================================ */
.btn-primary {
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-disabled-bg: var(--accent-color);
    --bs-btn-disabled-border-color: var(--accent-color);
    color: var(--btn-text) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    color: var(--btn-text) !important;
}
.btn-outline-primary {
    --bs-btn-color: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-color: var(--btn-text);
    --bs-btn-hover-bg: var(--accent-color);
    --bs-btn-hover-border-color: var(--accent-color);
    --bs-btn-active-color: var(--btn-text);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
}
.bg-primary { background-color: var(--accent-color) !important; }
.text-primary { color: var(--accent-color) !important; }
.border-primary { border-color: var(--accent-color) !important; }
.link-primary { color: var(--accent-color) !important; }
.link-primary:hover { color: var(--accent-dark) !important; }
.badge.bg-primary { background-color: var(--accent-color) !important; }
.nav-pills .nav-link.active { background-color: var(--accent-color) !important; }
.page-item.active .page-link { background-color: var(--accent-color) !important; border-color: var(--accent-color) !important; }
.page-link { color: var(--accent-color) !important; }
.page-link:hover { color: var(--accent-dark) !important; }
.form-check-input:checked { background-color: var(--accent-color) !important; border-color: var(--accent-color) !important; }
.progress-bar { background-color: var(--accent-color) !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* ============================================
   TWO-ROW SITE HEADER
   ============================================ */

.site-header {
    background: var(--navbar-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 1050;
    top: 0;
    left: 0;
    right: 0;
}

/* --- Top bar --- */
.header-top {
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
}

.logo-box {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-right: 2px;
}

.logo-name {
    color: var(--dark-bg);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.header-info-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #444;
}

.contact-label {
    color: #666;
    font-weight: 500;
}

.contact-phone {
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.contact-phone:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.header-address {
    font-size: 0.85rem;
    color: #555;
}

.header-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-social a {
    color: #555;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.header-social a:hover {
    color: var(--accent-color);
}

/* --- Nav bar (desktop uses CMS navbar_bg, mobile uses accent-color via mobile-action-bar) --- */
.header-nav-bar {
    padding: 0;
    background: var(--navbar-bg);
}

.header-nav-inner {
    display: flex;
    align-items: center;
}

.main-nav {
    width: 100%;
}

.main-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
}

.main-nav-item {
    position: relative;
}

.main-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-bottom: 3px solid transparent;
}

.main-nav-link:hover,
.main-nav-link:focus {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-color);
    background: none;
}

/* Dropdown */
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 6px 6px;
    min-width: 180px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 100;
}

.nav-dropdown li a {
    display: block;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown li a:hover {
    background: #f5f5f5;
    color: var(--accent-color);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    position: relative;
}

.mobile-menu-toggle > span:not(.mob-action-menu-badge) {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    background: var(--accent-color);
    width: 100%;
    position: relative;
}

.mob-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    background: none;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mob-action-btn:last-child {
    border-right: none;
}

.mob-action-btn:hover,
.mob-action-btn:active {
    background: var(--accent-dark);
    color: #fff;
}

.mob-action-menu-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Desktop Right-Side FAB Strip ─────────────────────────────── */
/* Positioning handled via inline style on the element for cache-safety */
.desktop-fab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 58px;
    height: 58px;
    border-radius: 10px 0 0 10px;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    text-decoration: none;
    transition: width .18s, box-shadow .18s, background .15s;
    box-shadow: -2px 2px 10px rgba(0,0,0,.18);
    padding: 0;
    line-height: 1;
}

.desktop-fab-btn:hover {
    width: 66px;
    box-shadow: -3px 3px 14px rgba(0,0,0,.24);
    text-decoration: none;
}

.desktop-fab-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1;
}

.desktop-fab-fav {
    background: #1a2a4a;
    color: #fff;
    position: relative;
}
.desktop-fab-fav:hover { background: #243a64; color: #fff; }

.desktop-fab-approve {
    background: #1a2a4a;
    color: #fff;
    text-decoration: none;
}
.desktop-fab-approve:hover { background: #243a64; color: #fff; }

.desktop-fab-trade {
    background: #1a2a4a;
    color: #fff;
    text-decoration: none;
}
.desktop-fab-trade:hover { background: #243a64; color: #fff; }

.desktop-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Favourites Slide-Out Panel ────────────────────────────────── */
.fav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    z-index: 1050;
    box-shadow: -4px 0 24px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

.fav-panel.fav-panel-open {
    transform: translateX(0);
}

.fav-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1049;
    opacity: 0;
    transition: opacity .28s;
}

.fav-panel-overlay.fav-panel-overlay-show {
    display: block;
    opacity: 1;
}

.fav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    background: #1a2a4a;
    color: #fff;
}

.fav-panel-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: .85;
}
.fav-panel-close:hover { opacity: 1; }

.fav-panel-viewall {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    padding: 2px 8px;
    transition: color .15s, border-color .15s;
}
.fav-panel-viewall:hover {
    color: #fff;
    border-color: rgba(255,255,255,.75);
}

.fav-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.fav-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
}

.fav-panel-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.fav-panel-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow .15s;
}
.fav-panel-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }

/* Row 1: image+info link and the remove button, side by side. Kept as its
   own flex row (rather than flex-wrap on .fav-panel-card) so the carfax
   row below always starts a genuinely new line regardless of this row's
   content width. */
.fav-panel-card-mainrow {
    display: flex;
    align-items: stretch;
}

.fav-panel-card-carfax-row {
    padding: 6px 10px;
    border-top: 1px solid #dee2e6;
}

.fav-panel-card-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    gap: 0;
    overflow: hidden;
}

.fav-panel-card-img {
    width: 80px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}

.fav-panel-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.fav-panel-card-info {
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
}

.fav-panel-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.fav-panel-card-meta {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.fav-panel-card-price {
    font-size: 0.8rem;
}

.fav-panel-card-view {
    font-size: 0.72rem;
    color: #0d6efd;
    margin-top: 4px;
    font-weight: 500;
}

.fav-panel-card-remove {
    background: none;
    border: none;
    border-left: 1px solid #dee2e6;
    color: #adb5bd;
    padding: 0 12px;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color .12s, background .12s;
}
.fav-panel-card-remove:hover { color: #dc3545; background: #fff5f5; }

.fav-panel-toast {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a4a;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
    pointer-events: none;
    z-index: 10;
    animation: favPanelToastIn .22s ease forwards;
}
.fav-panel-toast.fav-panel-toast-undo {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fav-panel-toast-undo-btn {
    background: none;
    border: none;
    color: #7eb8ff;
    font-size: .8rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.fav-panel-toast-undo-btn:hover {
    color: #aad4ff;
}
.fav-panel-toast.fav-panel-toast-out {
    animation: favPanelToastOut .3s ease forwards;
}
@keyframes favPanelToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes favPanelToastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* Social Media Modal Rows */
.mob-social-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #222;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.mob-social-row:last-child {
    border-bottom: none;
}

.mob-social-row:hover,
.mob-social-row:active {
    background: #f9f9f9;
    color: #222;
}

.mob-social-icon {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.mob-social-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.mob-social-arrow {
    color: #bbb;
    font-size: 0.8rem;
}

/* Mobile responsive header */
@media (max-width: 991px) {
    .header-top-inner {
        justify-content: center;
        gap: 0;
    }
    .header-top-right {
        display: none;
    }
    .header-top {
        padding: 10px 0;
    }
    .mobile-action-bar {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .header-nav-bar {
        padding: 0;
        height: 0;
        overflow: visible;
        border: none;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1049;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    .main-nav-item {
        width: 100%;
    }
    .main-nav-link {
        padding: 12px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #333;
    }
    .main-nav-link:hover {
        border-bottom: none;
        border-left-color: var(--accent-color);
        color: var(--accent-color);
        background: rgba(0,0,0,.04);
    }
    .nav-dropdown {
        display: none;
        position: static;
        border: none;
        border-top: none;
        box-shadow: none;
        padding-left: 16px;
        background: #f5f5f5;
    }
    .has-dropdown.open > .nav-dropdown {
        display: block;
    }
    main {
        margin-top: 145px !important;
    }
    .hero-section {
        margin-top: 0 !important;
        min-height: 380px;
    }
}

@media (max-width: 576px) {
    .header-address {
        display: none;
    }
}

.carousel-image-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

footer {
    margin-top: auto;
}

.table-responsive {
    overflow-x: auto;
}

.badge {
    font-weight: 500;
}

@media (max-width: 768px) {
    .carousel-image-placeholder {
        height: 300px !important;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

.alert {
    border-radius: 0.5rem;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.card-img-top-link {
    display: block;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.inventory-card.card {
    overflow: hidden;
}

/* Inventory grid cards: fixed image height so ALL images in all cards
   sit at the exact same Y-coordinate, preventing the "image of right card
   appearing next to price of left card" scroll illusion */
.inventory-card .card-img-top-link {
    height: 215px;
}

.inventory-card .card-img-top {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
}

.inventory-card .card-img-placeholder {
    width: 100%;
    height: 215px;
    aspect-ratio: unset;
}

.card-img-top-link:hover .card-img-top {
    opacity: 0.88;
}

/* Featured inventory cards in horizontal scroll strip */
.featured-inventory-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35) !important;
}
.featured-scroll::-webkit-scrollbar {
    height: 5px;
}
.featured-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.featured-scroll::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
}

.card-title-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--btn-text);
    border: none;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 4px;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    color: var(--btn-text);
}

.btn-outline-accent {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 4px;
}
.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.section-title-center {
    text-align: center;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #222;
}

.section-desc-center {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
}

.hero-section {
    position: relative;
    margin-top: -70px;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-section .carousel,
.hero-section .hero-placeholder {
    position: relative;
    z-index: 1;
}

.hero-section .carousel-inner img,
.hero-slide-img {
    filter: brightness(0.45);
    height: 620px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-section .carousel-item {
    height: 620px;
}

.hero-placeholder {
    background: var(--dark-bg);
    height: 620px;
}

.hero-section .carousel-item img[src=""],
.hero-section .carousel-item img:not([src]) {
    visibility: hidden;
}

.hero-section .carousel-item {
    background: #111;
}

.hero-embed-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-embed-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    filter: brightness(0.45);
}

.hero-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.hero-overlay * {
    pointer-events: auto;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}
.btn-hero:hover {
    background-color: var(--accent-dark);
    color: #fff;
}

.hero-search-bar {
    position: relative;
    z-index: 10;
    background: rgba(255,255,255,0.97);
    padding: 16px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    margin-top: -1px;
}

.hero-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 140px;
}

.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.search-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-search-go {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 4px;
    white-space: nowrap;
    border: none;
}
.btn-search-go:hover {
    background-color: var(--accent-dark);
    color: #fff;
}

.body-style-section {
    padding: 60px 0 40px;
    background: #fff;
}

.body-style-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.body-style-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 20px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.body-style-item:hover {
    background: #f5f5f5;
    color: var(--accent-color);
    transform: translateY(-3px);
}

.body-style-icon {
    margin-bottom: 10px;
    color: #555;
}

.body-style-item:hover .body-style-icon {
    color: var(--accent-color);
}

.body-style-item span {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.browse-by-section {
    padding: 60px 0 50px;
    background: #f8f9fa;
}

.browse-by-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.browse-by-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 24px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e8e8e8;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.browse-by-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
    color: #333;
}

.browse-by-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.browse-by-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.browse-by-card p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 14px;
    flex: 1;
}

.browse-by-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.about-home-section {
    padding: 60px 0;
    background: #fff;
}

.about-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-home-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #999;
}

.about-home-content h2 {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #222;
}

.about-home-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.featured-section {
    padding: 60px 0;
    background: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-no-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #999;
}

.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.tag-new { background: var(--accent-color); }
.tag-sale { background: #dc3545; }
.tag-sold { background: #333; }

.featured-card-body {
    padding: 16px;
}

.featured-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.price-special {
    font-size: 1.2rem;
    font-weight: 800;
    color: #dc3545;
}

.price-original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* ── Service Categories Section ────────────────────────────────────────── */
.service-cats-section {
    padding: 70px 0;
    background: #f4f6f9;
}

.service-cats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-cat-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.service-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    color: #333;
    border-color: var(--accent-color);
}

.service-cat-icon {
    color: var(--accent-color);
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0,150,60,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-cat-body {
    flex: 1;
    min-width: 0;
}

.service-cat-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
    color: #1a1a1a;
}

.service-cat-desc {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-cat-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.service-cat-card:hover .service-cat-cta {
    gap: 8px;
}

@media (max-width: 767px) {
    .service-cats-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-cat-card {
        padding: 18px 16px;
    }
}

/* ── End Service Categories ─────────────────────────────────────────────── */

.cta-boxes-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cta-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cta-box {
    background: #fff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.cta-box:hover {
    border-bottom-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: #222;
}

.cta-box-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.cta-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.reviews-section {
    padding: 60px 0;
    background: #fff;
}

.reviews-carousel {
    position: relative;
}

/* --- JS-enabled carousel mode --- */
.js-reviews {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

@keyframes reviews-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* No-JS default: wrapping flex row (all cards visible) */
.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* JS-enabled: single-row track with infinite scroll */
.js-reviews .reviews-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: reviews-scroll var(--reviews-scroll-duration, 40s) linear infinite;
}

.js-reviews.paused .reviews-grid {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .js-reviews .reviews-grid {
        animation: none;
    }
    .js-reviews {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s;
    flex: 0 0 300px;
    width: 300px;
    box-sizing: border-box;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.review-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

.review-quote-full { display: none; }
.review-quote-wrap.expanded .review-quote-short { display: none; }
.review-quote-wrap.expanded .review-quote-full { display: inline; }
.review-readmore-btn {
    display: block;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
    text-decoration: underline;
}
.review-readmore-btn:hover { color: #084298; }

/* ── Review Card — Customer Avatar ─────────────────────────────── */
.review-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.review-avatar-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.review-avatar-initial {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    line-height: 1;
}

/* ── Happy Customers Gallery Section ────────────────────────────── */
.happy-customers-section {
    padding: 60px 0 0;
    background: #fff;
}

.happy-marquee-outer {
    margin-top: 32px;
    overflow: hidden;
    width: 100%;
    padding-bottom: 60px;
}

.happy-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: happyScroll 40s linear infinite;
}

.happy-marquee-outer:hover .happy-marquee-track {
    animation-play-state: paused;
}

.happy-marquee-outer.no-loop {
    padding-bottom: 0;
}
.happy-marquee-outer.no-loop .happy-marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes happyScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.happy-customer-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.happy-customer-item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.happy-customer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.happy-customer-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 24px 10px 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .happy-customer-item {
        width: 160px;
        height: 160px;
    }
    .happy-marquee-track {
        gap: 10px;
    }
}

.dual-cta-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dual-cta-card {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-cta-sell {
    background: var(--dark-bg);
    opacity: 0.85;
}

.dual-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.dual-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dual-cta-content h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.inventory-strip-section {
    padding: 60px 0;
    background: #fff;
}

.inventory-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.inventory-strip-item {
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
    transition: transform 0.2s;
}

.inventory-strip-item:hover {
    transform: scale(1.05);
}

.inventory-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strip-no-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
}

.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.service-card p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
}

.service-card-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.map-section {
    background: var(--dark-bg);
}

.map-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.map-header h2 {
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.map-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.map-embed iframe {
    display: block;
    width: 100%;
}

.site-footer {
    margin-top: 0;
}

.footer-top {
    background: var(--dark-bg);
    color: #fff;
    padding: 50px 0 30px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: #fff;
}

.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background: #12121f;
    padding: 16px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    .about-home-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta-boxes-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .body-style-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .inventory-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        height: 420px;
    }
    .hero-slide-img,
    .hero-section .carousel-inner img {
        height: 420px;
    }
    .hero-section .carousel,
    .hero-section .carousel-inner {
        height: 420px;
    }
    .hero-section .carousel-item {
        height: 420px;
    }
    .hero-placeholder {
        height: 420px;
    }
    .hero-overlay {
        top: 50%;
        padding: 0 16px;
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    .btn-hero {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        text-align: center;
    }
    .hero-search-form {
        flex-direction: column;
        gap: 8px;
    }
    .search-field {
        min-width: 100%;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .cta-boxes-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        flex: 0 0 260px;
        width: 260px;
    }
    .js-reviews {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dual-cta-grid {
        grid-template-columns: 1fr;
    }
    .dual-cta-card {
        height: 200px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .body-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .browse-by-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inventory-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title-center {
        font-size: 1.4rem;
    }
}

/* Inline Editing Styles */
[data-editable] {
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 2px 4px;
    border-radius: 4px;
}

[data-editable]:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

[data-editable].editing {
    background-color: transparent;
    cursor: default;
}

.edit-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.edit-icon:hover {
    opacity: 1;
}

/* Toast Notification Styles */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-body {
    padding: 1rem;
}

.toast .btn-close {
    padding: 0.5rem;
}

/* Editable content types */
[data-content-type="textarea"] {
    display: block;
    min-height: 60px;
}

[data-content-type="url"] {
    color: var(--primary-color);
    text-decoration: underline;
}

[data-content-type="email"] {
    color: var(--info-color);
}

[data-content-type="phone"] {
    font-weight: 500;
}

.text-white-50:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

:root {
    /* SK Auto Hub — Admin Panel Tokens (distinct namespace from public-site --primary-color/--accent-color) */
    --sk-blue: #1a56db;
    --sk-blue-dark: #123f9e;
    --sk-blue-light: #e8f0fe;

    --sk-green: #4caf50;
    --sk-green-dark: #2d6a2d;
    --sk-green-light: #e8f5e9;

    --sk-red: #e53935;
    --sk-red-dark: #c62828;
    --sk-red-light: #fdecea;

    --sk-white: #ffffff;

    --sk-gray-50:  #f8f9fa;
    --sk-gray-100: #f5f6fa;
    --sk-gray-200: #e8e8e8;
    --sk-gray-300: #dcdce3;
    --sk-gray-400: #c0c0cc;
    --sk-gray-500: #8c8c9a;
    --sk-gray-600: #5a5a72;
    --sk-gray-700: #3a3a4a;
    --sk-gray-900: #1a1a2e;
}

.admin-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f6fa;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-main {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-brand h6 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: #1a1a2e;
}

.sidebar-brand small {
    color: #8c8c9a;
    font-size: 0.75rem;
}

.sidebar-section { border-bottom: 1px solid #f0f0f0; }

.sidebar-nav-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c8c9a;
    padding: 13px 20px 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, background 0.15s;
}

.sidebar-nav-label:hover {
    color: #1a1a2e;
    background: #f9f9fb;
}

.sidebar-nav-label .snl-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: #c0c0cc;
}

.sidebar-section.open .snl-chevron {
    transform: rotate(180deg);
    color: #4caf50;
}

.sidebar-section.open .sidebar-nav-label {
    color: #1a1a2e;
}

.sidebar-section-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.sidebar-section.open .sidebar-section-items {
    max-height: 1200px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #5a5a72;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
    border-radius: 0;
    margin: 1px 0;
}

.admin-nav-item:hover {
    background: #f0f7f0;
    color: #2d6a2d;
}

.admin-nav-item.active {
    background: #e8f5e9;
    color: #2d6a2d;
    font-weight: 600;
    border-left: 3px solid #4caf50;
}

.admin-nav-item i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
}

.sidebar-user {
    position: sticky;
    bottom: 0;
    padding: 16px 20px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.admin-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-stat-card .stat-label {
    font-size: 0.82rem;
    color: #8c8c9a;
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.admin-stat-card .stat-sub {
    font-size: 0.75rem;
    color: #aaa;
}

.admin-stat-card .stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-stat-card .stat-icon-wrap.icon-green {
    background: #e8f5e9;
    color: #4caf50;
}

.admin-stat-card .stat-icon-wrap.icon-orange {
    background: #fef3e2;
    color: #f5a524;
}

.admin-stat-card .stat-icon-wrap.icon-red {
    background: #fce4ec;
    color: #e53935;
}

.admin-stat-card .stat-icon-wrap.icon-blue {
    background: #e3f2fd;
    color: var(--sk-blue);
}

.admin-stat-card .stat-icon-wrap.icon-purple {
    background: #eef0fd;
    color: #5b6fd8;
}
.admin-stat-card .stat-icon-wrap.icon-teal {
    background: #e0f2f1;
    color: #00897b;
}

.notif-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.notif-orange { background: #fef3e2; color: #f5a524; }
.notif-teal   { background: #e0f2f1; color: #00897b; }
.notif-blue   { background: var(--sk-blue-light); color: var(--sk-blue); }
.notif-purple { background: #eef0fd; color: #5b6fd8; }
.notif-green  { background: var(--sk-green-light); color: var(--sk-green-dark); }

.notif-row:hover { background: #f9fafb; }
.notif-row { transition: background 0.15s; }

.admin-page-header {
    margin-bottom: 24px;
}

.admin-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.admin-page-header p {
    color: #8c8c9a;
    font-size: 0.88rem;
    margin: 4px 0 0;
}

.admin-section-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

.admin-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-card .admin-card-header {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 1px solid #e8e8e8;
}

.admin-card .admin-card-body {
    padding: 20px;
}

.admin-table {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table thead th {
    background: #f8f9fa;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8c8c9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 16px;
}

.admin-table .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.88rem;
    color: #3a3a4a;
    border-color: #f0f0f0;
}

.admin-table .table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .admin-table .table thead th,
    .admin-table .table tbody td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8c8c9a;
}

.admin-breadcrumb a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb .separator {
    margin: 0 2px;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-quick-actions .btn {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ============================================
   SK Auto Hub — shared admin components
   ============================================ */

.sk-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}
.sk-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.sk-pill-success { background: var(--sk-green-light); color: var(--sk-green-dark); }
.sk-pill-info    { background: var(--sk-blue-light);  color: var(--sk-blue); }
.sk-pill-warning { background: #fef3e2; color: #b8791a; }
.sk-pill-danger  { background: var(--sk-red-light);    color: var(--sk-red-dark); }
.sk-pill-purple  { background: #eef0fd; color: #5b6fd8; }
.sk-pill-neutral { background: var(--sk-gray-100); color: var(--sk-gray-500); }

.sk-toolbar {
    background: #fff;
    border: 1px solid var(--sk-gray-200);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.sk-toolbar .input-group-text {
    background: #fff;
    border-right: none;
    color: var(--sk-gray-500);
}
.sk-toolbar .form-control {
    border-left: none;
}
.sk-toolbar .form-control:focus,
.sk-toolbar .form-select:focus {
    box-shadow: none;
    border-color: var(--sk-gray-300);
}
.sk-toolbar .toolbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 767px) {
    .sk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sk-toolbar > * {
        width: 100%;
    }
}

.sk-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--sk-gray-500);
}
.sk-empty-state i {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 12px;
    opacity: .35;
}
.sk-empty-state p {
    margin: 0;
    font-size: .9rem;
}
.sk-empty-state .sk-empty-cta {
    margin-top: 14px;
}

.sk-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sk-gray-200);
    border-radius: 7px;
    background: #fff;
    color: var(--sk-gray-600);
    font-size: .85rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.sk-icon-btn:hover {
    transform: translateY(-1px);
}
.sk-icon-btn--view:hover {
    color: var(--sk-blue);
    border-color: var(--sk-blue-light);
    background: var(--sk-blue-light);
}
.sk-icon-btn--edit:hover {
    color: #b8791a;
    border-color: #fde7c2;
    background: #fef3e2;
}
.sk-icon-btn--delete:hover {
    color: var(--sk-red);
    border-color: #fecaca;
    background: var(--sk-red-light);
}
.sk-icon-btn--approve:hover {
    color: var(--sk-green-dark);
    border-color: #c8e6c9;
    background: var(--sk-green-light);
}
.sk-icon-btn--favorite:hover,
.sk-icon-btn--favorite.is-active {
    color: #f5a524;
    border-color: #fde7c2;
    background: #fef3e2;
}
.sk-icon-btn-group {
    display: inline-flex;
    gap: 6px;
}

.sk-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sk-blue-light);
    color: var(--sk-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #5a5a72;
    cursor: pointer;
    display: none;
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: block;
    }
}

.page-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.page-header p {
    color: #8c8c9a;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    font-size: 0.88rem;
}

.breadcrumb-modern li {
    display: flex;
    align-items: center;
    color: #8c8c9a;
}

.breadcrumb-modern li a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-modern li a:hover {
    text-decoration: underline;
}

.breadcrumb-modern li + li::before {
    content: '\203A';
    margin-right: 6px;
    color: #adb5bd;
    font-size: 1.1rem;
}

.breadcrumb-modern li.active {
    color: #1a1a2e;
    font-weight: 600;
}

.stat-card {
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
    min-height: auto;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-right: 16px;
    flex-shrink: 0;
    color: #4caf50;
}

.stat-card .stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1;
    color: #1a1a2e;
}

.stat-card .stat-content p {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8c8c9a;
}

.stat-card.stat-primary {
    background: #fff;
    border-left: 3px solid #667eea;
}
.stat-card.stat-primary .stat-icon { color: #667eea; }

.stat-card.stat-success {
    background: #fff;
    border-left: 3px solid #4caf50;
}
.stat-card.stat-success .stat-icon { color: #4caf50; }

.stat-card.stat-info {
    background: #fff;
    border-left: 3px solid #1e88e5;
}
.stat-card.stat-info .stat-icon { color: #1e88e5; }

.stat-card.stat-warning {
    background: #fff;
    border-left: 3px solid #ff9800;
}
.stat-card.stat-warning .stat-icon { color: #ff9800; }

.stat-card.stat-danger {
    background: #fff;
    border-left: 3px solid #e53935;
}
.stat-card.stat-danger .stat-icon { color: #e53935; }

.stat-card.stat-purple {
    background: #fff;
    border-left: 3px solid #8e24aa;
}
.stat-card.stat-purple .stat-icon { color: #8e24aa; }

.stat-card.stat-dark {
    background: #fff;
    border-left: 3px solid #434343;
}
.stat-card.stat-dark .stat-icon { color: #434343; }

.stat-card.stat-secondary {
    background: #fff;
    border-left: 3px solid #6c757d;
}
.stat-card.stat-secondary .stat-icon { color: #6c757d; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.section-header i {
    font-size: 1.2rem;
    color: #4caf50;
}

.section-header h4,
.section-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
}

.section-header.section-success i { color: #4caf50; }
.section-header.section-info i { color: #1e88e5; }
.section-header.section-warning i { color: #ff9800; }
.section-header.section-purple i { color: #8e24aa; }
.section-header.section-danger i { color: #e53935; }
.section-header.section-dark i { color: #434343; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 10px;
}

.cms-card {
    background: #fff;
    border-radius: 12px;
    transition: box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.cms-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cms-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.cms-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.cms-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.cms-card-icon.icon-primary { background: #e8eaf6; color: #667eea; }
.cms-card-icon.icon-success { background: #e8f5e9; color: #4caf50; }
.cms-card-icon.icon-info { background: #e3f2fd; color: #1e88e5; }
.cms-card-icon.icon-warning { background: #fff3e0; color: #ff9800; }
.cms-card-icon.icon-danger { background: #fce4ec; color: #e53935; }
.cms-card-icon.icon-purple { background: #f3e5f5; color: #8e24aa; }
.cms-card-icon.icon-dark { background: #f5f5f5; color: #434343; }

.cms-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cms-card-desc {
    font-size: 0.75rem;
    color: #8c8c9a;
    margin: 0;
    line-height: 1.3;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
    min-width: 0;
}

.action-tile:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #1a1a2e;
    text-decoration: none;
}

.action-tile .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.action-tile .action-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.data-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.data-table .data-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table .data-table-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.data-table .data-table-header i {
    color: #4caf50;
    font-size: 1.1rem;
}

.data-table .table {
    margin-bottom: 0;
    border: none;
}

.data-table .table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 600;
    font-size: 0.8rem;
    color: #8c8c9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-top: none;
}

.data-table .table tbody tr {
    transition: background 0.15s ease;
}

.data-table .table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #f0f0f0;
    font-size: 0.88rem;
    color: #3a3a4a;
}

.cms-nav-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border: 1px solid #e8e8e8;
}

.cms-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #5a5a72;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}

.cms-nav-item:hover {
    background: #f0f7f0;
    color: #2d6a2d;
    text-decoration: none;
}

.cms-nav-item.active {
    background: #e8f5e9;
    color: #2d6a2d;
    font-weight: 600;
}

.cms-nav-item i {
    font-size: 1rem;
}

.dashboard-section {
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 18px;
        border-radius: 10px;
    }
    .page-header h1 {
        font-size: 1.3rem;
    }
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-card .stat-icon {
        font-size: 1.6rem;
        margin-right: 12px;
    }
    .stat-card .stat-content h3 {
        font-size: 1.3rem;
    }
    .cms-nav-bar {
        border-radius: 10px;
    }
    .section-header {
        padding-bottom: 10px;
    }
    .action-tile {
        padding: 14px 10px 12px;
    }
}

/* =====================================================
   Sell & Trade Page
   ===================================================== */
.st-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
}
.st-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1400&q=60') center/cover no-repeat;
    opacity: 0.18;
}
.st-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
    color: #fff;
}
.st-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.st-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 28px;
}
.st-hero-btns .btn { min-width: 160px; }

.st-form-section {
    background: #f8f9fa;
    padding: 64px 0;
}
.st-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.st-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.st-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.st-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    transition: opacity .2s;
}
.st-step.active { opacity: 1; }
.st-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background .2s, color .2s;
}
.st-step.active .st-step-num {
    background: var(--accent-color, #2ecc40);
    color: #fff;
}
.st-step-label { font-weight: 600; font-size: 0.9rem; color: #333; }
.st-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
}
.st-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.st-how-section {
    padding: 72px 0;
    background: #fff;
}
.st-how-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.st-how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.st-how-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color, #2ecc40);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.st-how-icon {
    font-size: 2rem;
    color: var(--accent-color, #2ecc40);
    display: block;
    margin: 8px auto 12px;
}
.st-how-card h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.st-how-card p { font-size: 0.875rem; color: #666; margin: 0; }

.st-why-section {
    padding: 72px 0;
    background: #f8f9fa;
}
.st-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.st-benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}
.st-benefit-list li:last-child { border-bottom: none; }
.st-benefit-list li i { color: var(--accent-color, #2ecc40); font-size: 1.1rem; flex-shrink: 0; }
.st-benefit-list--sm li { font-size: 0.95rem; }

.st-why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.st-stat {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.st-stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color, #2ecc40);
    line-height: 1;
    margin-bottom: 6px;
}
.st-stat-label { font-size: 0.85rem; color: #666; font-weight: 500; }

.st-private-section {
    padding: 72px 0;
    background: #fff;
}
.st-private-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}
.st-private-card h5 { font-weight: 700; margin-bottom: 16px; color: #1a1a2e; }
.st-private-steps {
    padding-left: 20px;
    color: #444;
}
.st-private-steps li { padding: 6px 0; }

@media (max-width: 768px) {
    .st-form-card { padding: 24px 16px; }
    .st-hero-content { padding: 60px 0 40px; }
    .st-steps { flex-wrap: nowrap; overflow-x: auto; }
    .st-step-label { display: none; }
    .st-why-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .st-stat { padding: 16px 12px; }
    .st-stat-num { font-size: 1.6rem; }
}

/* ── Homepage Reels Strip ────────────────────────────────────────── */
.reels-section {
    padding: 60px 0 50px;
    background: #f8f9fa;
}

.reels-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #e0e0e0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.reels-strip::-webkit-scrollbar {
    height: 6px;
}
.reels-strip::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}
.reels-strip::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.reel-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.reel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.reel-card .ratio-9x16 {
    --bs-aspect-ratio: 177.78%;
}

.reel-caption {
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .reel-card {
        flex: 0 0 175px;
    }
}

/* ============================================
   Remove number input spinner arrows globally
   ============================================ */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================
   Deal Forms — Create Estimate / Create Bill of Sale
   Scoped under .deal-form-page so it never leaks
   into other admin pages.
   ============================================ */
.deal-form-page {
    padding-bottom: .5rem;
}

.deal-form-page .page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.deal-form-page .page-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: .25rem;
}
.deal-form-page .page-heading h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: .15rem;
    font-size: 1.7rem;
}
.deal-form-page .page-heading .page-subtitle {
    color: #6c7488;
    font-size: .92rem;
    margin: 0;
}

/* Cards */
.deal-form-page .card {
    border: 1px solid rgba(16,24,40,.07);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
    overflow: hidden;
}
.deal-form-page .card-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(16,24,40,.06);
}
.deal-form-page .card-header h5 {
    margin: 0;
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.deal-form-page .card-header .card-header-sub {
    display: block;
    font-size: .74rem;
    font-weight: 400;
    opacity: .85;
    letter-spacing: normal;
    margin-top: .1rem;
}
.deal-form-page .card-header .section-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.20);
    font-size: .95rem;
}
.deal-form-page .card-header.card-header-light .section-icon {
    background: rgba(0,0,0,.06);
    color: inherit;
}
.deal-form-page .card-body {
    padding: 1.15rem 1.15rem 1.3rem;
}

/* Form controls */
.deal-form-page .form-label {
    font-size: .81rem;
    font-weight: 600;
    color: #47506b;
}
.deal-form-page .form-control,
.deal-form-page .form-select {
    border-radius: 8px;
    border-color: #dde1ea;
}
.deal-form-page .form-control:focus,
.deal-form-page .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .2rem rgba(46,204,64,.14);
}
.deal-form-page .form-control[readonly] {
    background-color: #f6f7fa;
}
.deal-form-page .input-group-text {
    border-radius: 8px 0 0 8px;
    background: #f3f4f8;
    border-color: #dde1ea;
    font-weight: 600;
    color: #6c7488;
}

/* Deal type selector pills */
.deal-form-page .deal-type-option {
    cursor: pointer;
    background: #fff;
    border-radius: 10px !important;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.deal-form-page .deal-type-option:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-1px);
}
.deal-form-page .deal-type-option .form-check-label {
    cursor: pointer;
}

/* Receipt-style totals / summary rows */
.deal-form-page .summary-block {
    background: #f8f9fc;
    border: 1px dashed #d6dae4;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.deal-form-page .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    padding: .3rem 0;
    font-size: .88rem;
}
.deal-form-page .summary-row .summary-label {
    color: #5a6178;
    font-weight: 500;
}
.deal-form-page .summary-row .summary-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a2e;
    white-space: nowrap;
}
.deal-form-page .summary-row.deduction .summary-value { color: #b8241e; }
.deal-form-page .summary-row .badge-no-tax {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .02em;
    vertical-align: middle;
}
.deal-form-page .summary-divider {
    border: none;
    border-top: 1px solid #e2e5ec;
    margin: .6rem 0;
}
.deal-form-page .summary-row.grand-total {
    margin-top: .25rem;
    padding: .65rem .75rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #262647 100%);
    border-radius: 10px;
    color: #fff;
}
.deal-form-page .summary-row.grand-total .summary-label {
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.deal-form-page .summary-row.grand-total .summary-value {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}
.deal-form-page .summary-row.balance-due {
    margin-top: .5rem;
    padding: .55rem .75rem;
    background: rgba(46,204,64,.09);
    border-radius: 10px;
}
.deal-form-page .summary-row.balance-due .summary-label {
    font-weight: 700;
    color: #1a1a2e;
    font-size: .88rem;
}
.deal-form-page .summary-row.balance-due .summary-value {
    color: var(--accent-text);
    font-size: 1.15rem;
    font-weight: 800;
}

/* Compact floating action bar — SK Auto Hub theme */
.deal-sticky-actions {
    position: sticky;
    bottom: .85rem;
    z-index: 20;
    margin-top: 1.25rem;
    background: var(--sk-white, #fff);
    border: 1px solid var(--sk-gray-200, #e8e8e8);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(16,24,40,.10);
    padding: .55rem .85rem;
}
.deal-sticky-actions .sticky-figures {
    font-size: .8rem;
    color: var(--sk-gray-500, #8c8c9a);
}
.deal-sticky-actions .sticky-figures strong {
    color: var(--sk-gray-900, #1a1a2e);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.deal-sticky-actions .sticky-figures .text-success {
    color: var(--sk-green-dark, #2d6a2d) !important;
}
.deal-sticky-actions .btn {
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
}
@media (max-width: 767.98px) {
    .deal-sticky-actions { bottom: .5rem; padding: .5rem .6rem; }
    .deal-sticky-actions .sticky-figures { display: none; }
}
