:root {
    --black: #1f1f1f;
    --surface: #303030;
    --surface-2: #383838;
    --line: rgba(255, 255, 255, .14);
    --text: #f4f4f4;
    --muted: #b9b9b9;
    --amber: #e7a12a;
    --amber-2: #f2b84d;
    --danger: #d94848;
    --blue: #1582c4;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

/* CRM, negotiations and reports */
.crm-panel {
    display: grid;
    gap: 18px;
}

.crm-form {
    display: grid;
    gap: 16px;
}

.crm-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.crm-card h3 {
    margin: 0 0 14px;
    color: #071326;
    font-size: 1rem;
}

.crm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.crm-grid input,
.crm-grid textarea,
.client-lookup input,
.report-search input {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: #0c1830;
    background: #f9fbff;
}

.crm-grid textarea {
    min-height: 86px;
    resize: vertical;
    grid-column: span 2;
}

.client-lookup {
    position: relative;
    margin-bottom: 12px;
}

.lookup-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.lookup-results button {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    padding: 11px 13px;
    color: #0c1830;
    text-align: left;
    cursor: pointer;
}

.lookup-results button:hover {
    background: #f3f7fc;
}

.crm-list {
    display: grid;
    gap: 10px;
}

.crm-list-card {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.crm-list-card strong {
    color: #071326;
    font-size: 1rem;
}

.crm-list-card span,
.crm-list-card small,
.crm-list-card p {
    margin: 0;
    color: #46546a;
}

.crm-list-card em {
    color: #0f8b62;
    font-style: normal;
    font-weight: 800;
}

.report-search {
    display: flex;
    gap: 8px;
    width: min(100%, 520px);
}

.report-search button,
.crm-form > button,
.detail-whatsapp-button {
    border: 0;
    border-radius: 6px;
    background: #eaa21a;
    color: #fff;
    font-weight: 900;
    padding: 12px 16px;
    cursor: pointer;
}

.detail-whatsapp-button {
    width: 100%;
    margin-bottom: 14px;
    background: #12a66a;
}

.report-card {
    border-left: 4px solid #eaa21a;
}

.report-card-sale {
    border-left-color: #ef4444 !important;
}

.report-card-sale em {
    color: #b91c1c;
}

.report-money-negative,
.metric-negative {
    color: #dc2626 !important;
}

.report-money-positive {
    color: #0f8b62;
}

@media (max-width: 900px) {
    .crm-grid {
        grid-template-columns: 1fr 1fr;
    }

    .crm-grid textarea {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .crm-card {
        padding: 14px;
    }

    .crm-grid,
    .report-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lookup-results {
        position: static;
        margin-top: 6px;
    }
}

/* Sale flow locks, lookup media and mobile admin menu */
.is-lookup-locked {
    position: relative;
}

.is-lookup-locked::after {
    content: "Dados puxados do cadastro";
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 999px;
    background: #eff6ff;
    padding: 7px 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.is-lookup-locked [data-locked-lookup],
.is-lookup-locked [data-locked-select="true"],
.is-lookup-locked [data-locked-checkbox="true"] {
    border-color: #dbeafe !important;
    background: #f8fafc !important;
    color: #475569 !important;
    cursor: not-allowed;
}

.is-lookup-locked [data-locked-select="true"],
.is-lookup-locked [data-locked-checkbox="true"] {
    pointer-events: none;
}

.lookup-cover-thumb {
    display: block;
    width: 120px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.lookup-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.lookup-gallery-thumbs img {
    width: 58px;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .10);
}

.crm-upload-placeholder small b {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.admin-mobile-topbar {
    display: none;
}

@media (max-width: 900px) {
    .admin-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        border-bottom: 1px solid #e5e7eb;
        background: rgba(255, 255, 255, .96);
        padding: 10px 14px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
        backdrop-filter: blur(12px);
    }

    .admin-mobile-logo {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        color: #0f172a;
        font-weight: 900;
    }

    .admin-mobile-logo img {
        max-width: 150px;
        max-height: 42px;
        object-fit: contain;
    }

    .admin-mobile-logo span {
        color: #d89421;
    }

    .admin-menu-toggle {
        display: inline-grid;
        place-items: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 0;
    }

    .admin-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #0f172a;
        transition: transform .2s ease, opacity .2s ease;
    }

    body.admin-menu-open .admin-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.admin-menu-open .admin-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.admin-menu-open .admin-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .app-sidebar {
        display: none;
        border-bottom: 1px solid #e5e7eb;
    }

    body.admin-menu-open .app-sidebar {
        display: block !important;
        animation: adminMenuDrop .18s ease-out;
    }

    .app-sidebar .sidebar-logo-code {
        display: none;
    }

    .app-sidebar nav {
        padding: 14px;
    }
}

@keyframes adminMenuDrop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile CRM form pass */
.crm-grid select {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #f8fafc;
    padding: 12px 13px;
    font: inherit;
    color: #0c1830;
}

@media (max-width: 640px) {
    body.app-body {
        background: #f3f5f7 !important;
    }

    .admin-mobile-topbar {
        min-height: 58px;
        padding: 8px 12px;
    }

    .admin-mobile-logo img {
        max-width: 122px;
        max-height: 36px;
    }

    .admin-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .app-body .dashboard {
        padding: 10px !important;
    }

    .app-body .dashboard-header {
        margin-bottom: 16px;
        border-radius: 12px;
        padding: 18px !important;
    }

    .app-body .dashboard-header p {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: .12em;
    }

    .app-body .dashboard-header h1 {
        font-size: clamp(2rem, 11vw, 2.7rem) !important;
        line-height: 1;
    }

    .app-body .panel.crm-panel {
        margin-top: 14px;
        border-radius: 12px;
        padding: 12px !important;
        overflow: visible;
    }

    .crm-panel .panel-header {
        margin-bottom: 14px;
        gap: 6px;
    }

    .crm-panel .panel-header p {
        font-size: 11px;
        letter-spacing: .12em;
    }

    .crm-panel .panel-header h2 {
        max-width: 100%;
        color: #0f172a !important;
        font-size: 1.22rem;
        line-height: 1.18;
        text-wrap: balance;
    }

    .crm-form {
        gap: 14px;
    }

    .crm-card {
        border-radius: 10px;
        padding: 12px !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    }

    .crm-card h3 {
        margin-bottom: 12px;
        font-size: .98rem;
    }

    .crm-grid,
    .crm-vehicle-form {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .crm-grid input,
    .crm-grid select,
    .crm-grid textarea,
    .client-lookup input,
    .crm-vehicle-form input,
    .crm-vehicle-form select,
    .crm-vehicle-form textarea {
        min-height: 46px !important;
        border-radius: 9px !important;
        padding: 0 13px !important;
        background: #f8fafc !important;
        color: #0f172a !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    .crm-grid textarea,
    .crm-vehicle-form textarea {
        min-height: 92px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .client-lookup {
        margin-bottom: 10px;
    }

    .client-lookup .lookup-icon {
        left: 13px;
    }

    .client-lookup .lookup-icon + input {
        padding-left: 42px !important;
    }

    .crm-upload-placeholder {
        min-height: auto !important;
        border-radius: 10px;
        padding: 12px !important;
    }

    .crm-upload-placeholder input[type="file"] {
        display: none !important;
    }

    .crm-upload-placeholder span {
        font-size: .95rem;
    }

    .crm-upload-placeholder small {
        display: block;
        color: #475569;
        font-size: 12px;
    }

    .admin-check {
        min-height: 42px;
        color: #475569 !important;
        font-size: .95rem;
    }

    .crm-form > button {
        min-height: 50px;
        border-radius: 9px;
        font-size: 1rem;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body.login-body,
body.app-body {
    background: #242424;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 36px, 1240px);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--black);
}

.site-header.compact .header-inner {
    min-height: 118px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 165px;
}

.logo-code {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto;
    align-items: center;
    min-width: 190px;
    padding: 8px 0 8px 46px;
}

.logo-code strong {
    color: var(--amber-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.8vw, 3.1rem);
    font-style: italic;
    font-weight: 500;
    line-height: .9;
    text-shadow: 0 0 18px rgba(231, 161, 42, .2);
}

.logo-code strong span {
    color: white;
}

.logo-code small {
    margin-left: 82px;
    color: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .38em;
    text-transform: uppercase;
}

.logo-orbit {
    position: absolute;
    left: 6px;
    top: 3px;
    width: 120px;
    height: 62px;
    border-top: 5px solid var(--amber-2);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.logo-orbit::before {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 18px rgba(231, 161, 42, .9);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 16px;
    font-weight: 800;
}

.main-nav a {
    color: white;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.nav-login {
    color: var(--amber);
}

.nav-login {
    border: 1px solid rgba(231, 161, 42, .55);
    padding: 11px 16px;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 30px;
}

.hero {
    height: clamp(320px, 42vw, 540px);
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-code {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 38%),
        radial-gradient(circle at 82% 28%, rgba(231, 161, 42, .14), transparent 22%),
        #242424;
}

.showroom-scene {
    position: relative;
    height: 100%;
    perspective: 900px;
    overflow: hidden;
}

.showroom-wall {
    position: absolute;
    inset: 0 0 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, .08) 12% 13%, transparent 13% 86%, rgba(255, 255, 255, .08) 86% 87%, transparent 87%),
        linear-gradient(180deg, #191919, #252525);
}

.wall-logo {
    color: var(--amber-2);
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 8vw, 7rem);
    font-style: italic;
    text-shadow: 0 5px 20px rgba(0, 0, 0, .45);
}

.wall-logo span {
    color: white;
}

.pulse-line {
    width: min(22vw, 260px);
    height: 72px;
    opacity: .9;
    background:
        linear-gradient(135deg, transparent 0 18%, #f4f4f4 18% 21%, transparent 21% 34%, #f4f4f4 34% 37%, transparent 37% 50%, #f4f4f4 50% 53%, transparent 53% 66%, #f4f4f4 66% 69%, transparent 69%),
        linear-gradient(90deg, transparent, rgba(130, 160, 255, .5), transparent);
    filter: drop-shadow(0 0 10px rgba(195, 205, 255, .8));
}

.pulse-right {
    transform: scaleX(-1);
}

.showroom-floor {
    position: absolute;
    inset: 42% -6% -18%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 38%),
        #bfc1c2;
    background-size: 80px 100%, auto, auto;
    transform: rotateX(58deg);
    transform-origin: top center;
}

.showroom-floor::before,
.showroom-floor::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, .22);
}

.showroom-floor::before {
    left: 42%;
    transform: rotate(14deg);
}

.showroom-floor::after {
    right: 38%;
    transform: rotate(-14deg);
}

.bike-row {
    position: absolute;
    display: flex;
    gap: 22px;
}

.bike-row i,
.stock-bike {
    position: relative;
    display: block;
    width: 78px;
    height: 44px;
    border-radius: 38px 34px 10px 10px;
    background: linear-gradient(135deg, #202020, #d71920 48%, #111 49%);
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .18);
}

.bike-row i::before,
.bike-row i::after,
.stock-bike::before,
.stock-bike::after {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 24px;
    border: 5px solid #171717;
    border-radius: 50%;
    background: #8b8b8b;
}

.bike-row i::before,
.stock-bike::before {
    left: 6px;
}

.bike-row i::after,
.stock-bike::after {
    right: 4px;
}

.row-a {
    left: 18%;
    top: 16%;
}

.row-b {
    left: 37%;
    top: 36%;
}

.row-c {
    left: 12%;
    top: 58%;
}

.row-b i {
    background: linear-gradient(135deg, #171717, #315ec8 52%, #111 53%);
}

.row-c i {
    background: linear-gradient(135deg, #151515, #f5f5f5 52%, #111 53%);
}

.car-shape {
    position: absolute;
    width: 170px;
    height: 62px;
    border-radius: 70px 90px 20px 20px;
    background: linear-gradient(135deg, #151515, #f4f4f4 48%, #777 49%);
}

.car-left {
    left: 8%;
    top: 30%;
}

.car-right {
    right: 12%;
    top: 20%;
    background: linear-gradient(135deg, #151515, #bb1d20 48%, #6b0d0f 49%);
}

.search-band {
    background: #333;
    padding: 52px 0;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .85fr .85fr .85fr 1fr;
    gap: 18px;
}

.search-grid input,
.search-grid select,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 58px;
    border: 2px solid rgba(255, 255, 255, .46);
    background: transparent;
    color: #d2d2d2;
    padding: 0 17px;
    outline: none;
}

.search-grid option,
.filter-panel option {
    background: #2d2d2d;
}

.search-grid button,
.login-form button[type="submit"],
.dashboard-header button,
.vehicle-modal button:last-child {
    border: 0;
    background: var(--amber);
    color: white;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.search-grid button:hover,
.login-form button[type="submit"]:hover,
.dashboard-header button:hover {
    background: var(--amber-2);
    transform: translateY(-1px);
}

.featured-section,
.categories-section,
.inventory-preview {
    padding: 72px 0;
}

.featured-section .container,
.preview-grid {
    border-top: 1px solid rgba(255, 255, 255, .42);
    padding-top: 58px;
}

.featured-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.38fr .95fr;
    min-height: 520px;
    overflow: hidden;
    background: #ddd;
    box-shadow: var(--shadow);
}

.featured-image {
    min-height: 520px;
    overflow: hidden;
}

.vehicle-art {
    position: relative;
    width: min(86%, 520px);
    height: 220px;
    margin: auto;
}

.vehicle-art-large {
    width: min(82%, 650px);
    height: 300px;
}

.featured-image {
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, transparent 0 62%, rgba(0, 0, 0, .12) 62% 64%, transparent 64%),
        linear-gradient(135deg, #e6e6e6, #cfcfcf);
}

.wheel {
    position: absolute;
    bottom: 15%;
    width: 25%;
    aspect-ratio: 1;
    border: 12px solid #151515;
    border-radius: 50%;
    background:
        radial-gradient(circle, #f0f0f0 0 13%, #777 14% 22%, transparent 23%),
        repeating-conic-gradient(from 0deg, #555 0 8deg, #cfcfcf 8deg 16deg);
    box-shadow: 0 18px 20px rgba(0, 0, 0, .18);
}

.wheel-a {
    left: 14%;
}

.wheel-b {
    right: 12%;
}

.vehicle-body-shape {
    position: absolute;
    left: 19%;
    right: 16%;
    top: 34%;
    height: 32%;
    border-radius: 44% 55% 38% 28%;
    background: linear-gradient(135deg, #111, #343434 34%, #171717 35%, #050505);
    transform: skewX(-9deg);
    box-shadow: inset 0 10px 0 rgba(255, 255, 255, .08);
}

.vehicle-seat {
    position: absolute;
    left: 34%;
    top: 23%;
    width: 28%;
    height: 13%;
    border-radius: 999px;
    background: #111;
    transform: rotate(-8deg);
}

.vehicle-handle {
    position: absolute;
    right: 14%;
    top: 25%;
    width: 22%;
    height: 8px;
    border-radius: 999px;
    background: #111;
    transform: rotate(-28deg);
}

.vehicle-art-scooter .vehicle-body-shape {
    top: 24%;
    height: 48%;
    border-radius: 58% 38% 45% 40%;
    background: linear-gradient(135deg, #111, #4b4b4b 45%, #0b0b0b 46%);
}

.vehicle-art-naked .vehicle-body-shape,
.vehicle-art-adventure .vehicle-body-shape {
    background: linear-gradient(135deg, #101010, #315ec8 44%, #111 45%);
}

.vehicle-art-custom .vehicle-body-shape {
    background: linear-gradient(135deg, #171717, #52656a 42%, #151515 43%);
}

.vehicle-art-car {
    height: 190px;
}

.vehicle-art-car .vehicle-body-shape {
    left: 10%;
    right: 9%;
    top: 28%;
    height: 38%;
    border-radius: 52% 58% 18% 18%;
    background: linear-gradient(135deg, #141414, #b71921 44%, #701013 45%);
    transform: none;
}

.vehicle-art-car .vehicle-seat {
    left: 28%;
    top: 17%;
    width: 38%;
    height: 28%;
    border-radius: 70% 70% 0 0;
    background: rgba(255, 255, 255, .35);
    transform: none;
}

.vehicle-art-car .vehicle-handle {
    display: none;
}

.featured-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 34px;
    background: var(--amber);
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.featured-info .eyebrow {
    color: white;
    opacity: .85;
}

.featured-info h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.featured-info span,
.featured-info strong {
    margin-top: 15px;
}

.featured-info ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 800;
}

.price {
    margin: 42px 0 0;
    font-size: 38px;
    font-weight: 300;
}

.outline-button {
    margin-top: 28px;
    border: 2px solid white;
    border-radius: 5px;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.slider-button {
    position: absolute;
    z-index: 2;
    top: 18px;
    width: 48px;
    height: 48px;
    border: 2px solid #696969;
    background: transparent;
    color: #696969;
    font-size: 34px;
    line-height: 1;
}

.slider-prev {
    left: 18px;
}

.slider-next {
    right: 18px;
}

.section-title {
    max-width: 680px;
    margin-bottom: 28px;
}

.section-title p,
.page-heading p,
.panel-header p,
.dashboard-header p {
    margin: 0 0 8px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title h2,
.page-heading h1,
.stock-copy h2,
.preview-grid h2,
.dashboard-header h1,
.panel h2 {
    margin: 0;
    color: white;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

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

.category-card,
.metric-grid article,
.panel,
.filter-panel,
.vehicle-card,
.login-card,
.admin-category-grid article,
.lead-list article {
    border: 1px solid var(--line);
    background: rgba(31, 31, 31, .7);
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 188px;
    padding: 24px;
    transition: border-color .2s ease, transform .2s ease;
}

.category-card:hover {
    border-color: var(--amber);
    transform: translateY(-3px);
}

.category-card strong,
.admin-category-grid strong {
    display: block;
    color: white;
    font-size: 21px;
}

.category-card span,
.admin-category-grid span,
.lead-list span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.category-card em,
.admin-category-grid em,
.lead-list em {
    display: inline-flex;
    margin-top: 22px;
    color: var(--amber);
    font-style: normal;
    font-weight: 900;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 42px;
    align-items: center;
}

.preview-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.stock-banner-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.stock-code-scene {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 38%, rgba(0, 0, 0, .35)),
        linear-gradient(135deg, #202020, #666);
}

.stock-code-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, .18) 12% 13%, transparent 13% 86%, rgba(255, 255, 255, .18) 86% 87%, transparent 87%),
        repeating-linear-gradient(90deg, transparent 0 90px, rgba(255, 255, 255, .08) 90px 92px);
}

.stock-bike {
    position: absolute;
    width: 124px;
    height: 66px;
    transform: scale(1.2);
}

.stock-bike-1 { left: 4%; top: 48%; }
.stock-bike-2 { left: 20%; top: 36%; background: linear-gradient(135deg, #141414, #315ec8 52%, #111 53%); }
.stock-bike-3 { left: 38%; top: 44%; background: linear-gradient(135deg, #151515, #f3f3f3 52%, #111 53%); }
.stock-bike-4 { left: 56%; top: 35%; background: linear-gradient(135deg, #151515, #e7a12a 52%, #111 53%); }
.stock-bike-5 { left: 72%; top: 47%; background: linear-gradient(135deg, #151515, #315ec8 52%, #111 53%); }
.stock-bike-6 { left: 86%; top: 38%; background: linear-gradient(135deg, #151515, #f3f3f3 52%, #111 53%); }

.preview-grid h2 {
    color: var(--amber);
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.preview-grid p:not(.eyebrow) {
    color: white;
    font-size: 21px;
    line-height: 1.55;
}

.dark-button,
.card-actions a,
.card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    background: var(--black);
    color: var(--amber);
    padding: 0 22px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer {
    background: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.3fr;
    gap: 36px;
    align-items: end;
    padding: 86px 0;
}

.footer-logo-code {
    min-width: 170px;
    transform: scale(.72);
    transform-origin: left center;
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 30px;
}

.social-links a {
    color: var(--amber);
    font-size: 34px;
    font-weight: 900;
}

.footer-grid p {
    margin: 0;
    font-weight: 800;
    line-height: 1.45;
}

.footer-grid span {
    margin-right: 12px;
    color: var(--amber);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 22px;
    background: white;
    color: #555;
    padding: 16px;
}

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

.powered strong {
    color: #d71920;
    font-weight: 900;
}

.page-shell {
    padding: 52px 0 90px;
}

.stock-page {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
}

.page-heading {
    grid-column: 1 / -1;
}

.page-heading h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.filter-panel {
    align-self: start;
    display: grid;
    gap: 14px;
    padding: 20px;
}

.filter-panel strong {
    display: block;
    background: #444;
    padding: 14px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.vehicle-card {
    overflow: hidden;
}

.vehicle-photo {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.vehicle-photo .vehicle-art {
    position: absolute;
    inset: 0;
    width: 82%;
    height: 78%;
    transform: translate(10%, 14%);
}

.vehicle-photo span,
.status-pill {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(231, 161, 42, .95);
    color: white;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.vehicle-photo span {
    position: absolute;
    left: 16px;
    top: 16px;
}

.vehicle-body {
    padding: 20px;
}

.vehicle-body h2 {
    margin: 0;
    font-size: 22px;
}

.vehicle-body p {
    color: var(--muted);
}

.vehicle-body ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    color: #dcdcdc;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
}

.vehicle-body strong {
    display: block;
    color: white;
    font-size: 24px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.card-actions button {
    background: var(--amber);
    color: white;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.login-visual {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 8vw;
    background:
        radial-gradient(circle at 25% 28%, rgba(231, 161, 42, .28), transparent 22%),
        linear-gradient(135deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .75)),
        #2d2d2d;
}

.login-logo-code {
    width: min(300px, 60vw);
    margin-bottom: 56px;
}

.login-visual h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5.5rem);
    line-height: .95;
}

.login-visual p {
    max-width: 560px;
    color: #e4e4e4;
    font-size: 20px;
    line-height: 1.55;
}

.login-card {
    align-self: center;
    width: min(100% - 40px, 480px);
    margin: auto;
    padding: 38px;
}

.login-card h2 {
    margin: 0 0 24px;
    font-size: 36px;
}

.alert {
    margin-bottom: 16px;
    border: 1px solid rgba(217, 72, 72, .4);
    background: rgba(217, 72, 72, .12);
    color: #ffb1b1;
    padding: 12px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-weight: 800;
}

.login-form input,
.vehicle-modal input,
.panel-header input {
    min-height: 54px;
    border: 1px solid var(--line);
    background: #272727;
    color: white;
    padding: 0 14px;
    outline: none;
}

.login-form button {
    min-height: 54px;
}

.ghost-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--amber);
    font-weight: 800;
}

.demo-access {
    color: var(--muted);
    font-size: 13px;
}

.app-body {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.app-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    border-right: 1px solid var(--line);
    background: var(--black);
    padding: 28px;
}

.sidebar-logo-code {
    width: 190px;
    margin-bottom: 42px;
    transform: scale(.72);
    transform-origin: left top;
}

.app-sidebar nav {
    display: grid;
    gap: 10px;
}

.app-sidebar a {
    border: 1px solid transparent;
    padding: 14px 16px;
    color: #ddd;
    font-weight: 800;
}

.app-sidebar a.active,
.app-sidebar a:hover {
    border-color: rgba(231, 161, 42, .45);
    color: var(--amber);
}

.dashboard {
    padding: 34px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-header h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.dashboard-header button {
    min-height: 52px;
    padding: 0 24px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.metric-grid article {
    padding: 24px;
}

.metric-grid span {
    color: var(--muted);
    font-weight: 800;
}

.metric-grid strong {
    display: block;
    margin-top: 16px;
    color: var(--amber);
    font-size: 42px;
}

.panel {
    margin-top: 24px;
    padding: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-header input {
    width: min(100%, 320px);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 16px;
    text-align: left;
}

th {
    color: var(--amber);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-category-grid,
.lead-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lead-list {
    grid-template-columns: repeat(3, 1fr);
}

.admin-category-grid article,
.lead-list article {
    padding: 20px;
}

.vehicle-modal {
    width: min(100% - 34px, 460px);
    border: 1px solid var(--line);
    background: #242424;
    color: white;
    padding: 0;
}

.vehicle-modal::backdrop {
    background: rgba(0, 0, 0, .72);
}

.vehicle-modal form {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 30px;
}

.vehicle-modal h2 {
    margin: 0;
}

.vehicle-modal button:last-child {
    min-height: 52px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 30px;
}

[hidden] {
    display: none !important;
}

.internal-page {
    background: #333333;
    color: white;
}

.internal-hero {
    padding: 86px 0 70px;
    background:
        linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .72)),
        url("../img/hero-desktop.webp") center / cover;
}

.internal-hero p {
    margin: 0 0 12px;
    color: #e49e2f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.internal-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
}

.internal-grid,
.service-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    padding: 75px 0;
}

.internal-grid img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.internal-copy h2,
.contact-card h2 {
    margin: 0 0 18px;
    color: #e49e2f;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.internal-copy p,
.contact-card p,
.check-list {
    color: #f1f1f1;
    font-size: 18px;
    line-height: 1.65;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li::before {
    content: "+";
    margin-right: 10px;
    color: #e49e2f;
    font-weight: 900;
}

.lead-form {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(31, 31, 31, .72);
    padding: 28px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #efefef;
    color: #333;
    padding: 0 14px;
    outline: none;
}

.lead-form textarea {
    min-height: 130px;
    padding-top: 14px;
    resize: vertical;
}

.lead-form button {
    min-height: 52px;
    border: 0;
    background: #e49e2f;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-card {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(31, 31, 31, .72);
    padding: 32px;
}

.stock-page-white {
    min-height: 70vh;
    background: #f7f7f7;
    color: #252a31;
}

.stock-title-bar {
    display: grid;
    place-items: center;
    min-height: 72px;
    background: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.stock-title-bar h1 {
    margin: 0;
    color: #e49e2f;
    font-size: 32px;
    font-weight: 900;
}

.stock-catalog-shell {
    padding: 34px 0 64px;
}

.stock-catalog-shell > h2 {
    margin: 0 0 22px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 18px;
    color: #252a31;
    font-size: 36px;
}

.catalog-intro {
    margin: -10px 0 24px;
    color: #666;
}

.stock-layout-webmotors {
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 16px;
}

.stock-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.result-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 55px;
    background: #444;
    color: white;
    padding: 14px 10px;
}

.result-count strong {
    font-size: 23px;
}

.result-count span {
    font-size: 12px;
    font-weight: 800;
}

.clear-filter {
    min-height: 39px;
    margin-top: -16px;
    border: 0;
    background: #c9c9c9;
    color: #222;
    font-size: 12px;
}

.keyword-box h3,
.refine-box h3 {
    margin: 0;
    background: #444;
    color: white;
    padding: 14px 10px;
    font-size: 14px;
}

.keyword-box > div {
    display: grid;
    grid-template-columns: 1fr 68px;
    background: #cfcfcf;
    padding: 10px;
}

.keyword-box input {
    min-height: 34px;
    border: 1px solid #c7c7c7;
    padding: 0 10px;
}

.keyword-box button {
    border: 1px solid #c7c7c7;
    background: #f3f3f3;
}

.accordion-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-bottom: 1px solid #aaa;
    background: linear-gradient(#dddddd, #bfbfbf);
    color: #252a31;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.accordion-filter span {
    display: grid;
    width: 13px;
    height: 13px;
    place-items: center;
    background: white;
    color: #555;
    font-size: 16px;
    line-height: 1;
}

.filter-options {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #aaa;
    background: #eeeeee;
    color: #222;
    font-size: 12px;
}

.filter-options label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.stock-results {
    min-width: 0;
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 55px;
    background: #333;
    color: white;
    padding: 10px;
}

.sort-bar span {
    margin-right: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sort-bar select,
.sort-bar button {
    min-height: 34px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #f5f5f5;
    color: #111;
    padding: 0 12px;
}

.sort-bar button {
    border-radius: 0;
    background: #aaa;
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stock-result-list {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.stock-result-list.is-loading {
    opacity: .55;
    pointer-events: none;
}

.empty-results {
    padding: 32px;
    background: #ddd;
    color: #222;
    font-weight: 800;
}

.stock-row-card {
    display: grid;
    grid-template-columns: 190px 1fr 178px;
    gap: 28px;
    align-items: center;
    background: #dedede;
    padding: 14px;
}

.row-photo {
    position: relative;
    height: 116px;
    overflow: hidden;
    background: #111;
}

.row-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-photo > span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    color: white;
    font-size: 10px;
    font-weight: 900;
}

.row-main h2 {
    margin: 0;
    color: #252a31;
    font-size: 14px;
    text-transform: uppercase;
}

.row-main p {
    margin: 3px 0 12px;
    color: #111;
    font-size: 11px;
    font-weight: 800;
}

.row-main ul {
    display: flex;
    gap: 18px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    color: #333;
    font-size: 10px;
}

.row-main li span {
    color: #777;
    font-size: 21px;
}

.row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.row-actions a,
.row-actions button {
    display: grid;
    min-height: 41px;
    place-items: center;
    border: 0;
    background: #a4a4a4;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.row-actions button {
    background: #e49e2f;
}

.row-price {
    align-self: stretch;
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 9px;
    color: #111;
    text-align: right;
}

.row-price strong {
    font-size: 18px;
}

.row-price p {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
}

.row-price label {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.small-admin-button,
.admin-form-inline button {
    min-height: 42px;
    border: 0;
    background: #e49e2f;
    color: white;
    padding: 0 18px;
    font-weight: 900;
}

.admin-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-chip-grid span {
    border: 1px solid rgba(228, 158, 47, .45);
    background: rgba(228, 158, 47, .12);
    color: #e49e2f;
    padding: 10px 14px;
    font-weight: 900;
}

.admin-form-inline {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-top: 18px;
}

.admin-form-inline input,
.vehicle-form-grid input,
.vehicle-form-grid select,
.vehicle-form-grid textarea {
    min-height: 46px;
    border: 1px solid var(--line);
    background: #272727;
    color: white;
    padding: 0 12px;
}

.vehicle-modal {
    width: min(100% - 34px, 920px);
}

.vehicle-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vehicle-form-grid textarea {
    min-height: 90px;
    padding-top: 12px;
    resize: vertical;
}

.vehicle-detail-page {
    background: #fff;
    color: #18212a;
    padding: 0 0 52px;
}

.detail-shell {
    width: min(100% - 48px, 936px);
    padding-top: 18px;
}

.detail-shell > h1 {
    margin: 0;
    color: #18212a;
    font-size: 30px;
    line-height: 1.2;
}

.detail-rule {
    height: 1px;
    margin: 14px 0 16px;
    background: #e1e1e1;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 16px;
    background: #464646;
    color: white;
}

.detail-topbar button,
.detail-topbar span {
    border: 0;
    background: transparent;
    color: white;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 800;
}

.detail-topbar span {
    align-self: stretch;
    display: grid;
    place-items: center;
    background: #626262;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr 288px;
    gap: 24px;
    align-items: start;
}

.detail-main-image {
    width: 300px;
    height: 225px;
    object-fit: cover;
    background: #ddd;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 12px;
}

.detail-thumbs button {
    height: 38px;
    border: 2px solid transparent;
    padding: 0;
    background: #ddd;
}

.detail-thumbs button.is-active {
    border-color: #e49e2f;
}

.detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-specs h2 {
    margin: 8px 0 10px;
    font-size: 15px;
}

.detail-specs dl {
    margin: 0;
}

.detail-specs dl div {
    position: relative;
    min-height: 40px;
    border-bottom: 1px solid #d6d6d6;
    padding: 6px 0 6px 48px;
}

.detail-specs dl div::before {
    content: "▧";
    position: absolute;
    left: 12px;
    top: 12px;
    color: #888;
    font-size: 18px;
}

.detail-specs dt {
    color: #b7b7b7;
    font-size: 9px;
}

.detail-specs dd {
    margin: 0;
    color: #111;
    font-size: 11px;
    font-weight: 900;
}

.proposal-panel h2 {
    margin: 14px 0 24px;
    color: #111;
    font-size: 24px;
    text-align: left;
}

.proposal-form {
    display: grid;
    gap: 8px;
}

.proposal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 31px;
    background: #444;
    color: white;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.proposal-form input,
.proposal-form select,
.proposal-form textarea {
    width: 100%;
    min-height: 40px;
    border: 0;
    background: #f0f0f0;
    color: #777;
    padding: 0 13px;
    font-size: 11px;
}

.proposal-form textarea {
    min-height: 104px;
    padding-top: 14px;
    resize: vertical;
}

.fake-recaptcha {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 242px;
    min-height: 60px;
    border: 1px solid #c9c9c9;
    background: #f7f7f7;
    padding: 10px;
    color: #111;
    font-size: 12px;
}

.fake-recaptcha span,
.fake-recaptcha input {
    width: 22px;
    height: 22px;
    border: 1px solid #666;
    background: white;
}

.fake-recaptcha strong {
    margin-left: auto;
    color: #999;
    font-size: 10px;
}

.proposal-check {
    color: #777;
    font-size: 11px;
}

.proposal-form button {
    min-height: 40px;
    border: 0;
    background: #e49e2f;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.detail-extra {
    max-width: 600px;
    margin-top: 8px;
    border-top: 1px solid #999;
    padding-top: 20px;
}

.detail-extra h2 {
    margin: 0 0 18px;
    color: #111;
    font-size: 20px;
}

.detail-extra p {
    margin: 0 0 24px;
    color: #4d5660;
    font-size: 13px;
    line-height: 1.42;
}

.detail-extra ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.detail-extra li {
    background: #f0f0f0;
    padding: 7px 10px;
    color: #333;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% - 12px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        background: #202020;
        padding: 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px;
    }

    .menu-button {
        display: block;
    }

    .header-inner {
        min-height: 96px;
    }

    .search-grid,
    .featured-card,
    .preview-grid,
    .stock-page,
    .login-layout,
    .app-body {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 360px;
    }

    .category-grid,
    .metric-grid,
    .admin-category-grid,
    .lead-list,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-sidebar {
        position: static;
        min-height: 0;
    }

    .internal-grid,
    .service-layout,
    .contact-layout,
    .stock-layout-webmotors {
        grid-template-columns: 1fr;
    }

    .stock-row-card {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-main-image {
        width: 100%;
        height: auto;
        max-height: 360px;
    }

    .row-price {
        justify-items: start;
        text-align: left;
    }

    .admin-form-inline {
        grid-template-columns: 1fr;
    }
}

/* Hard separation between filter sidebar and results */
.stock-page-white .stock-layout-webmotors {
    grid-template-columns: 262px minmax(0, 1fr) !important;
    column-gap: 42px !important;
}

.stock-page-white .stock-sidebar {
    width: 262px !important;
}

.stock-page-white .stock-results {
    margin-left: 0 !important;
    padding-left: 0 !important;
    min-width: 0 !important;
}

@media (min-width: 1051px) {
    .stock-page-white .stock-results {
        transform: translateX(8px);
    }
}

/* AJAX and admin controls */
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions button,
.admin-chip-grid button,
.admin-category-grid button,
.lead-list button {
    min-height: 30px;
    border: 0;
    border-radius: 4px;
    padding: 0 10px;
    background: #3d3d3d;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.admin-actions button:first-child {
    background: #e49e2f;
}

.admin-form-inline select {
    min-height: 46px;
    border: 1px solid var(--line);
    background: #272727;
    color: white;
    padding: 0 12px;
}

.admin-check {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #ddd;
    font-weight: 800;
}

/* Requested refinements */
.featured-carousel .slider-button,
.slider-button {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.featured-carousel .slider-button:hover,
.slider-button:hover {
    transform: translateY(-50%) scale(1.04) !important;
}

.vehicle-status,
.featured-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    border-radius: 999px;
    padding: 0 9px;
    background: #373737;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-status {
    margin: 0 0 12px;
    background: rgba(0, 0, 0, .24);
}

.status-vendido,
.status-indisponivel {
    background: #222;
}

.stock-row-card.is-unavailable {
    opacity: .72;
}

.row-actions button:disabled {
    background: #555 !important;
    cursor: not-allowed;
}

body.app-body {
    background: #f3f5f7 !important;
    color: #17202a;
}

.app-body .app-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e4e7ec;
    box-shadow: 8px 0 30px rgba(15, 23, 42, .05);
}

.app-body .app-sidebar a {
    border-radius: 8px;
    color: #4b5563;
}

.app-body .app-sidebar a.active,
.app-body .app-sidebar a:hover {
    border-color: transparent;
    background: #fff5e6;
    color: #c98416;
}

.app-body .dashboard {
    padding: 30px 36px;
}

.app-body .dashboard-header {
    border-radius: 14px;
    background: #ffffff;
    padding: 22px 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.app-body .dashboard-header h1,
.app-body .panel h2 {
    color: #17202a;
}

.app-body .metric-grid article,
.app-body .panel,
.app-body .admin-category-grid article,
.app-body .lead-list article {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.app-body .metric-grid article {
    padding: 20px;
}

.app-body .metric-grid strong {
    color: #d89421;
}

.app-body .panel {
    padding: 22px;
}

.app-body table {
    color: #17202a;
}

.app-body th {
    background: #f8fafc;
    color: #667085;
}

.app-body td {
    border-bottom-color: #eef2f6;
    color: #2f3a48;
}

.app-body .panel-header input,
.app-body .admin-form-inline input,
.app-body .admin-form-inline select,
.app-body .vehicle-form-grid input,
.app-body .vehicle-form-grid select,
.app-body .vehicle-form-grid textarea,
.settings-form input {
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #ffffff;
    color: #17202a;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-form input {
    min-height: 46px;
    padding: 0 14px;
}

.settings-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #e49e2f;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.settings-form input[name="address"],
.settings-form input[name="city"] {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .settings-form {
        grid-template-columns: 1fr;
    }

    .settings-form input[name="address"],
    .settings-form input[name="city"] {
        grid-column: auto;
    }
}

/* Final mobile/contrast polish */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.categories-section {
    background: linear-gradient(180deg, #f4efe5 0%, #fffaf0 100%) !important;
}

.categories-section .section-title p,
.categories-section .category-card strong {
    color: #c47a08 !important;
}

.categories-section .section-title h2,
.categories-section .category-card h3 {
    color: #17202a !important;
}

.categories-section .category-card p {
    color: #5b6472 !important;
}

.categories-section .category-card {
    background: rgba(255, 255, 255, .94) !important;
    border-color: rgba(23, 32, 42, .12) !important;
}

.form-feedback {
    border-radius: 4px;
    background: #e8f7ef;
    color: #166534;
    border: 1px solid #b7e4c7;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.35;
}

.form-feedback.is-error {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.service-layout .service-copy {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.service-layout .service-copy h2 {
    color: #17202a !important;
}

.service-layout .service-copy p,
.service-layout .service-copy .check-list {
    color: #41506a !important;
}

.lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.lead-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #fff4dd;
    color: #c47a08;
    padding: 4px 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.slide-editor-form {
    display: grid;
    gap: 18px;
}

.slide-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.slide-editor-card {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    border: 1px solid #dfe5ed;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.slide-editor-card:has(input:checked) {
    border-color: #e49e2f;
    box-shadow: 0 16px 34px rgba(228, 158, 47, .16);
}

.slide-editor-card input {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 20px;
    height: 20px;
    accent-color: #e49e2f;
    z-index: 2;
}

.slide-editor-media {
    display: block;
    min-height: 130px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f5;
}

.slide-editor-media img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    display: block;
}

.slide-editor-info {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
}

.slide-editor-info strong {
    color: #17202a;
    font-size: 18px;
    font-weight: 900;
}

.slide-editor-info em {
    width: max-content;
    border-radius: 999px;
    background: #fff4dd;
    color: #c47a08;
    padding: 4px 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.slide-editor-info small {
    color: #667085;
    font-weight: 700;
}

.slide-editor-info b {
    color: #17202a;
    font-size: 18px;
}

.slide-editor-form > button {
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #e49e2f;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .slide-editor-grid {
        grid-template-columns: 1fr;
    }

    .slide-editor-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1050px) {
    .stock-page-white .stock-catalog-shell {
        width: min(100% - 28px, 100%) !important;
        max-width: 100% !important;
        padding: 20px 0 44px !important;
        overflow: hidden !important;
    }

    .stock-page-white .stock-layout-webmotors {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .stock-page-white .stock-sidebar,
    .stock-page-white .stock-results {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }

    .stock-page-white .sort-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }

    .stock-page-white .sort-bar span {
        width: 100%;
        color: #ffffff !important;
    }

    .stock-page-white .sort-bar select,
    .stock-page-white .sort-bar button {
        min-width: 0 !important;
        flex: 1 1 90px !important;
    }

    .stock-page-white .stock-row-card {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        overflow: hidden !important;
    }

    .stock-page-white .row-photo {
        width: 100% !important;
        max-width: 100% !important;
        height: 210px !important;
    }

    .stock-page-white .row-main,
    .stock-page-white .row-price {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-items: start !important;
        text-align: left !important;
    }

    .stock-page-white .row-meta {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .stock-page-white .row-actions {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 520px) {
    .stock-page-white .stock-catalog-shell {
        width: calc(100% - 24px) !important;
    }

    .stock-page-white .stock-catalog-shell > h2 {
        font-size: 27px !important;
        line-height: 1.1 !important;
    }

    .stock-page-white .row-photo {
        height: 170px !important;
    }

    .stock-page-white .row-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stock-page-white .row-actions {
        grid-template-columns: 1fr !important;
    }

    .stock-page-white .row-title,
    .stock-page-white .row-price strong,
    .stock-page-white .dealer-name {
        overflow-wrap: anywhere;
    }
}

/* Admin paged layout and refined vehicle cards */
.admin-vehicle-grid {
    display: grid;
    gap: 16px;
}

.admin-vehicle-card {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.admin-vehicle-media {
    display: grid;
    min-height: 126px;
    overflow: hidden;
    place-items: center;
    border-radius: 12px;
    background: #f1f3f5;
}

.admin-vehicle-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-vehicle-media .vehicle-art {
    transform: scale(.6);
}

.admin-vehicle-main {
    display: grid;
    align-content: start;
    gap: 14px;
}

.admin-vehicle-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.admin-vehicle-title-row p {
    margin: 0 0 5px;
    color: #d28a19;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-vehicle-title-row h3 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    line-height: 1.15;
}

.admin-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-vehicle-specs span {
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
    color: #101828;
    font-size: 13px;
}

.admin-vehicle-specs b {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-vehicle-note {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}

.admin-vehicle-side {
    display: grid;
    align-content: space-between;
    justify-items: end;
    gap: 14px;
    border-left: 1px solid #eef2f6;
    padding-left: 18px;
    text-align: right;
}

.admin-vehicle-side strong {
    color: #101828;
    font-size: 20px;
}

.admin-vehicle-side small {
    color: #667085;
    font-weight: 800;
}

.admin-vehicle-side .admin-actions {
    justify-content: end;
}

.app-body .status-pill {
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    background: #efa52b;
    padding: 0 13px;
    color: #fff;
    font-size: 12px;
}

.app-body .status-vendido,
.app-body .status-indisponivel {
    background: #30343b;
}

.app-body .status-disponivel,
.app-body .status-novo {
    background: #19a974;
}

.app-body .app-sidebar nav {
    gap: 14px;
}

.app-body .app-sidebar a {
    min-height: 52px;
    display: flex;
    align-items: center;
}

@media (max-width: 1100px) {
    .admin-vehicle-card {
        grid-template-columns: 150px 1fr;
    }

    .admin-vehicle-side {
        grid-column: 1 / -1;
        justify-items: start;
        border-left: 0;
        border-top: 1px solid #eef2f6;
        padding: 14px 0 0;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .admin-vehicle-card,
    .admin-vehicle-specs {
        grid-template-columns: 1fr;
    }

    .admin-vehicle-side .admin-actions {
        justify-content: start;
    }
}

/* Dashboard charts and page editors */
.dashboard-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 18px;
    margin-top: 24px;
}

.chart-card {
    display: grid;
    gap: 18px;
    align-content: start;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.chart-wide {
    min-height: 260px;
}

.chart-card p {
    margin: 0 0 6px;
    color: #d28a19;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.chart-card h2 {
    margin: 0;
    color: #17202a;
}

.donut-chart {
    width: 190px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    background: conic-gradient(#e49e2f calc(var(--value) * 1%), #eef2f6 0);
    position: relative;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: inherit;
    background: #fff;
}

.donut-chart strong {
    position: relative;
    z-index: 1;
    color: #17202a;
    font-size: 34px;
}

.chart-legend {
    display: grid;
    gap: 8px;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-weight: 800;
}

.chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e49e2f;
}

.bar-chart {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
}

.bar-row span {
    color: #475467;
    font-weight: 800;
}

.bar-row div {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f6;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e49e2f, #f2bd58);
}

.bar-row strong {
    color: #17202a;
}

.about-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-form input,
.about-form textarea {
    min-height: 48px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #fff;
    color: #17202a;
    padding: 0 14px;
}

.about-form textarea {
    grid-column: span 2;
    min-height: 132px;
    padding-top: 14px;
    resize: vertical;
}

.about-form button,
.admin-link-button {
    display: inline-grid;
    min-height: 46px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #e49e2f;
    color: #fff;
    padding: 0 18px;
    font-weight: 900;
}

.admin-hidden-field {
    display: none !important;
}

.admin-upload-field {
    display: grid;
    gap: 8px;
    min-height: 94px;
    border: 1px dashed #c7ced8;
    border-radius: 10px;
    background: #f8fafc;
    padding: 14px;
    color: #17202a;
}

.admin-upload-field span {
    font-weight: 900;
}

.admin-upload-field input {
    min-height: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.admin-upload-field small {
    color: #667085;
    font-weight: 700;
    line-height: 1.35;
}

/* Pagination */
.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.pagination-nav[hidden] {
    display: none !important;
}

.pagination-nav button {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-weight: 900;
}

.pagination-nav button.is-active,
.pagination-nav button:hover {
    border-color: #e49e2f;
    background: #e49e2f;
    color: #fff;
}

.admin-pagination {
    justify-content: flex-end;
}

/* Cleaner public theme */
:root {
    --soft-bg: #f6f1e8;
    --surface: #fffdf9;
    --surface-2: #fbf7ef;
    --ink: #1f2933;
    --ink-muted: #667085;
}

body:not(.app-body) {
    background: var(--soft-bg);
    color: var(--ink);
}

.header-container.site-header,
.footer-container.site-footer {
    background: #2b2a28;
}

.main-container,
.stock-page-white,
.internal-page,
.vehicle-detail-page {
    background: var(--soft-bg) !important;
}

.search-section,
.categories-section,
.inventory-preview,
.featured-section.highlights-h006 {
    background: var(--soft-bg) !important;
}

.filter-panel,
.category-card,
.vehicle-card,
.stock-sidebar > div,
.keyword-box,
.refine-box,
.stock-row-card,
.detail-gallery,
.detail-specs,
.proposal-panel,
.internal-copy {
    border: 1px solid #eadfce !important;
    border-radius: 14px;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: 0 16px 38px rgba(82, 63, 35, .08) !important;
}

.stock-title-bar,
.sort-bar,
.result-count,
.keyword-box h3,
.refine-box h3,
.detail-topbar {
    background: #3a332b !important;
    color: #fff !important;
}

.clear-filter,
.accordion-filter,
.filter-options {
    background: var(--surface-2) !important;
    color: var(--ink) !important;
}

.stock-row-card {
    grid-template-columns: 190px 1fr 190px;
}

.row-main h2,
.row-price strong,
.stock-catalog-shell > h2,
.internal-copy h2,
.detail-shell h1,
.detail-specs h2 {
    color: var(--ink) !important;
}

.row-main p,
.row-main li,
.row-price p,
.internal-copy p,
.detail-extra p,
.detail-extra li {
    color: var(--ink-muted) !important;
}

.row-actions a {
    border-radius: 8px;
    background: #d7d1c8 !important;
    color: #2a2520 !important;
}

.row-actions button,
.search-grid button,
.proposal-form button,
.outline-button {
    border-radius: 8px !important;
    background: #e49e2f !important;
    color: #fff !important;
}

.sort-bar select,
.sort-bar button,
.keyword-box input,
.keyword-box button,
.filter-panel input,
.filter-panel select,
.proposal-form input,
.proposal-form select,
.proposal-form textarea {
    border: 1px solid #dccfbc !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ink) !important;
}

.footer-bottom {
    background: #fffdf9;
    color: var(--ink);
}

.footer-grid p {
    color: #fff;
}

@media (max-width: 1050px) {
    .stock-row-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .dashboard-chart-grid,
    .about-form {
        grid-template-columns: 1fr;
    }

    .about-form textarea {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .hero {
        height: 340px;
    }

    .search-grid,
    .category-grid,
    .vehicle-grid,
    .metric-grid,
    .admin-category-grid,
    .lead-list,
    .footer-grid,
    .card-actions {
        grid-template-columns: 1fr;
    }

    .featured-section,
    .categories-section,
    .inventory-preview {
        padding: 48px 0;
    }

    .featured-info {
        min-height: 350px;
        padding: 42px 18px;
    }

    .footer-bottom,
    .dashboard-header,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-bottom {
        display: grid;
        justify-items: center;
    }

    .dashboard {
        padding: 18px;
    }
}

/* Functional real-photo carousel */
.featured-carousel {
    position: relative;
    overflow: hidden;
    background: #e49e2f;
}

.featured-track {
    position: relative;
    min-height: 418px;
}

.featured-track .carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateX(22px);
    transition: opacity .35s ease, transform .35s ease;
}

.featured-track .carousel-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.featured-image {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #dddddd;
}

.vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 6;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 999px;
    background: transparent;
    padding: 0;
}

.carousel-dots button.is-active {
    background: white;
}

.featured-carousel .slider-button {
    z-index: 8;
}

/* Anchieta/Webmotors reference skin */
body {
    background: #333333;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.header-container.site-header {
    background: #222222;
}

.header-inner {
    min-height: 160px;
}

.compact .header-inner {
    min-height: 104px;
}

.nav-container {
    width: min(100% - 32px, 1170px);
}

.logo-code {
    min-width: 278px;
    padding-left: 64px;
}

.logo-code strong {
    font-size: clamp(2rem, 3vw, 3.6rem);
}

.logo-code small {
    margin-left: 118px;
}

.logo-orbit {
    left: 20px;
    top: -2px;
    width: 154px;
    height: 82px;
}

.main-nav {
    gap: 32px;
    font-size: 15px;
    letter-spacing: .04em;
}

.nav-login {
    border: 0;
    padding: 15px 0;
    color: white;
}

.has-dropdown {
    position: relative;
    display: inline-flex;
}

.has-dropdown > a {
    padding: 15px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 25;
    display: grid;
    min-width: 190px;
    padding: 8px 0;
    background: rgba(66, 66, 66, .96);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: .22s ease;
}

.dropdown-menu a {
    padding: 9px 22px;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

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

.slider-s001.hero-code {
    height: 540px;
    margin-bottom: -5px;
}

.showroom-wall {
    inset: 0 0 45%;
}

.showroom-floor {
    inset: 42% -7% -20%;
}

.search-band.buscador-b001 {
    margin-top: -1px;
    padding: 50px 0;
    background: #333333;
}

.search-grid {
    grid-template-columns: 1fr 1fr .78fr .78fr .78fr .78fr 1fr;
    gap: 18px;
}

.search-grid input,
.search-grid select {
    height: 62px;
    min-height: 62px;
    border: 2px solid #9c9c9c;
    border-radius: 0;
    background: #333333;
    color: #777777;
    font-size: 14px;
}

.search-grid button {
    min-height: 62px;
    border-radius: 0;
    background: #e49e2f;
}

.featured-section.highlights-h006 {
    padding: 30px 0 70px;
    background: #333333;
}

.featured-section .container {
    width: min(100% - 66px, 1170px);
    border-top: 0;
    padding-top: 0;
}

.featured-card {
    min-height: 418px;
    grid-template-columns: 7fr 5fr;
    background: #e49e2f;
    box-shadow: none;
}

.featured-image {
    min-height: 418px;
    background: #dddddd;
}

.vehicle-art-large {
    height: 268px;
}

.featured-info {
    min-height: 418px;
    padding: 94px 20px 40px 30px;
    background: #e49e2f;
}

.featured-info h1 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.featured-info p,
.featured-info strong {
    margin: 0 0 14px;
}

.featured-info ul {
    margin-top: 12px;
    margin-bottom: 20px;
    gap: 10px 18px;
    font-size: 14px;
}

.featured-info .price {
    margin: 12px 0 20px;
    font-size: 26px;
}

.outline-button {
    margin-top: 0;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 13px;
}

.slider-button {
    top: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid #1b1410;
    color: #1b1410;
    font-size: 31px;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.categories-section {
    padding: 58px 0 10px;
    background: #333333;
}

.category-card {
    background: #2c2c2c;
}

.inventory-preview.img-i006 {
    padding: 75px 0;
    background: #333333;
}

.preview-grid {
    width: min(100% - 32px, 1170px);
    grid-template-columns: 6fr 6fr;
    border-top: 0;
    padding-top: 0;
}

.stock-code-scene {
    min-height: 250px;
}

.preview-grid h2 {
    color: #e49e2f;
    font-size: 48px;
    font-weight: 900;
}

.preview-grid p:not(.eyebrow) {
    margin: 13px 0 28px;
    font-size: 17px;
}

.dark-button {
    min-height: 48px;
    border-radius: 5px;
    background: #1a1a1a;
    color: #e49e2f;
}

.footer-container.site-footer {
    background: #222222;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 34px;
    align-items: center;
    padding-top: 74px;
}

.footer-identity {
    display: grid;
    justify-items: center;
    gap: 28px;
}

.footer-logo-code {
    transform: scale(.58);
    transform-origin: center;
}

.social-links {
    justify-content: center;
    margin-top: 0;
}

.footer-map {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #d7d2c5;
    color: #222;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 210px;
    border: 0;
    display: block;
}

.footer-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    padding: 72px 0 44px;
}

.footer-bottom {
    display: block;
    padding: 0;
}

.powerbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    color: #555555;
}

.powered {
    display: inline-flex;
}

.powered strong {
    font-size: 20px;
}

.stock-original {
    background: #f7f7f7;
    color: #333333;
}

.stock-original .stock-page {
    width: min(100% - 24px, 430px);
    display: block;
    padding-top: 45px;
}

.stock-original .page-heading p {
    color: #333;
    letter-spacing: 0;
    text-transform: none;
}

.stock-original .page-heading h1 {
    color: #333;
    font-size: 30px;
    line-height: 1.15;
}

.stock-original .filter-panel {
    margin: 22px 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.stock-original .filter-panel strong {
    background: #4a4a4a;
    color: #fff;
}

.stock-original .filter-panel input,
.stock-original .filter-panel select {
    min-height: 42px;
    border: 1px solid #cfcfcf;
    background: #eeeeee;
    color: #555;
}

.stock-original .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 28px;
}

.stock-original .vehicle-card {
    border: 0;
    background: #dddddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.stock-original .vehicle-photo {
    height: 230px;
    margin: 12px;
    background: #111;
}

.stock-original .vehicle-body {
    padding: 0 18px 18px;
}

.stock-original .vehicle-body h2 {
    color: #222;
    font-size: 16px;
    text-transform: uppercase;
}

.stock-original .vehicle-body p,
.stock-original .vehicle-body ul {
    color: #555;
}

.stock-original .vehicle-body strong {
    color: #222;
    font-size: 17px;
}

.stock-original .card-actions a {
    background: #999999;
    color: #fff;
}

.stock-original .card-actions button {
    background: #e49e2f;
}

@media (max-width: 1050px) {
    .logo-code {
        min-width: 210px;
        transform: scale(.74);
        transform-origin: left center;
    }

    .slider-s001.hero-code {
        height: 286px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .featured-card,
    .preview-grid,
    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .featured-info {
        min-height: 330px;
        padding: 30px 15px 40px;
    }

    .footer-map {
        min-height: 190px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        min-height: 88px;
    }

    .logo-code {
        transform: scale(.58);
    }

    .slider-s001.hero-code {
        height: 286px;
    }

    .featured-section .container {
        width: 100%;
    }

    .featured-image {
        min-height: 250px;
    }

    .vehicle-art-large {
        height: 190px;
    }

    .preview-grid h2 {
        font-size: 36px;
        text-align: center;
    }

    .preview-grid p:not(.eyebrow),
    .preview-grid .info-xs {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .powerbar-inner {
        display: grid;
        justify-items: center;
        gap: 10px;
        padding: 14px 0;
    }

    .stock-catalog-shell > h2 {
        font-size: 30px;
    }

    .sort-bar {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .vehicle-form-grid {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        width: min(100% - 24px, 936px);
    }

    .detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Vehicle detail page: match reference layout */
.vehicle-detail-page .detail-shell {
    width: min(100% - 74px, 1170px);
    padding-top: 34px;
}

.vehicle-detail-page .detail-shell > h1 {
    font-size: 36px;
    font-weight: 900;
}

.vehicle-detail-page .detail-rule {
    margin: 18px 0 20px;
}

.vehicle-detail-page .detail-topbar {
    min-height: 49px;
    margin-bottom: 20px;
}

.vehicle-detail-page .detail-topbar button {
    padding-left: 20px;
}

.vehicle-detail-page .detail-topbar span {
    min-width: 154px;
}

.vehicle-detail-page .detail-grid {
    grid-template-columns: 375px 345px 360px;
    gap: 14px;
}

.vehicle-detail-page .detail-main-image {
    width: 375px;
    height: 282px;
}

.vehicle-detail-page .detail-thumbs {
    grid-template-columns: repeat(5, 64px);
    gap: 6px 9px;
    margin-top: 14px;
    padding-left: 4px;
}

.vehicle-detail-page .detail-thumbs button {
    width: 64px;
    height: 43px;
}

.vehicle-detail-page .detail-specs {
    padding-left: 0;
}

.vehicle-detail-page .detail-specs h2 {
    margin: 9px 0 16px;
    font-size: 17px;
}

.vehicle-detail-page .detail-specs dl div {
    min-height: 49px;
    padding: 8px 0 8px 60px;
}

.vehicle-detail-page .detail-specs dl div::before {
    left: 16px;
    top: 14px;
    width: 28px;
    color: #6c6c6c;
    font-size: 27px;
    text-align: center;
}

.vehicle-detail-page .detail-specs dl div:nth-child(1)::before { content: "▱"; }
.vehicle-detail-page .detail-specs dl div:nth-child(2)::before { content: "▤"; }
.vehicle-detail-page .detail-specs dl div:nth-child(3)::before { content: "▦"; }
.vehicle-detail-page .detail-specs dl div:nth-child(4)::before { content: "1.0"; font-size: 16px; border: 1px solid #777; }
.vehicle-detail-page .detail-specs dl div:nth-child(5)::before { content: "⌒"; }
.vehicle-detail-page .detail-specs dl div:nth-child(6)::before { content: "ABC"; font-size: 9px; border: 1px solid #777; top: 18px; }

.vehicle-detail-page .detail-specs dt {
    font-size: 10px;
}

.vehicle-detail-page .detail-specs dd {
    font-size: 12px;
}

.vehicle-detail-page .proposal-panel {
    padding-left: 16px;
}

.vehicle-detail-page .proposal-panel h2 {
    margin: 20px 0 30px;
    font-size: 29px;
}

.vehicle-detail-page .proposal-title {
    min-height: 40px;
    padding: 0 18px;
}

.vehicle-detail-page .proposal-form {
    gap: 10px;
}

.vehicle-detail-page .proposal-form input,
.vehicle-detail-page .proposal-form select {
    min-height: 50px;
}

.vehicle-detail-page .proposal-form textarea {
    min-height: 104px;
}

.vehicle-detail-page .detail-extra {
    max-width: 750px;
    margin-top: 12px;
    padding-top: 26px;
}

.vehicle-detail-page .detail-extra h2 {
    font-size: 24px;
}

@media (max-width: 1180px) {
    .vehicle-detail-page .detail-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-page .detail-main-image {
        width: 100%;
        height: auto;
        max-height: 420px;
    }

    .vehicle-detail-page .proposal-panel {
        padding-left: 0;
    }
}

/* Catalog/stock list alignment to reference */
.stock-page-white .stock-catalog-shell {
    width: min(100% - 152px, 1120px);
    padding: 34px 0 64px;
}

.stock-page-white .stock-catalog-shell > h2 {
    margin-bottom: 20px;
    padding-bottom: 18px;
    font-size: 36px;
    line-height: 1.15;
}

.stock-page-white .catalog-intro[hidden] {
    display: none !important;
}

.stock-page-white .stock-layout-webmotors {
    grid-template-columns: 262px minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 18px;
    align-items: start;
}

.stock-page-white .stock-sidebar {
    width: 262px;
}

.stock-page-white .stock-results {
    width: 100%;
    min-width: 0;
}

.stock-page-white .sort-bar {
    min-height: 55px;
    padding: 10px;
}

.stock-page-white .stock-result-list {
    gap: 16px;
    margin-top: 14px;
}

.stock-page-white .stock-row-card {
    grid-template-columns: 190px 1fr 178px;
    gap: 28px;
    min-height: 144px;
    padding: 14px;
}

.stock-page-white .row-photo {
    width: 190px;
    height: 130px;
}

.stock-page-white .row-main h2 {
    font-size: 14px;
}

.stock-page-white .row-actions {
    max-width: 354px;
}

.stock-page-white .row-actions a,
.stock-page-white .row-actions button {
    min-height: 41px;
}

@media (max-width: 1050px) {
    .stock-page-white .stock-catalog-shell {
        width: min(100% - 32px, 1154px);
    }

    .stock-page-white .stock-layout-webmotors,
    .stock-page-white .stock-row-card {
        grid-template-columns: 1fr;
    }

    .stock-page-white .stock-sidebar,
    .stock-page-white .row-photo {
        width: 100%;
    }
}

/* Final override: keep catalog filters visually separated from results */
@media (min-width: 1051px) {
    .stock-page-white .stock-layout-webmotors {
        display: grid !important;
        grid-template-columns: 262px minmax(0, 1fr) !important;
        column-gap: 56px !important;
        align-items: start !important;
    }

    .stock-page-white .stock-sidebar {
        width: 262px !important;
        min-width: 262px !important;
        max-width: 262px !important;
    }

    .stock-page-white .stock-results {
        min-width: 0 !important;
        margin-left: 0 !important;
        padding-left: 14px !important;
        transform: none !important;
    }
}

/* Final public clean palette override */
body:not(.app-body),
.main-container,
.stock-page-white,
.internal-page,
.vehicle-detail-page,
.featured-section.highlights-h006,
.categories-section,
.inventory-preview {
    background: #f6f1e8 !important;
    color: #1f2933 !important;
}

.stock-page-white .stock-row-card,
.stock-page-white .stock-sidebar > div,
.stock-page-white .keyword-box,
.stock-page-white .refine-box,
.detail-gallery,
.detail-specs,
.proposal-panel,
.internal-copy,
.category-card,
.vehicle-card {
    border: 1px solid #eadfce !important;
    border-radius: 14px !important;
    background: #fffdf9 !important;
    color: #1f2933 !important;
    box-shadow: 0 16px 38px rgba(82, 63, 35, .08) !important;
}

.stock-page-white .sort-bar,
.stock-page-white .result-count,
.stock-page-white .keyword-box h3,
.stock-page-white .refine-box h3,
.stock-title-bar,
.detail-topbar {
    background: #3a332b !important;
    color: #fff !important;
}

.stock-page-white .accordion-filter,
.stock-page-white .filter-options,
.stock-page-white .clear-filter {
    background: #fbf7ef !important;
    color: #1f2933 !important;
}

/* Interest lead modal */
.interest-modal {
    width: min(100% - 32px, 600px);
    border: 0;
    border-radius: 0;
    background: #e9edf2;
    color: #1f2933;
    padding: 0;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.interest-modal::backdrop {
    background: rgba(31, 41, 51, .45);
}

.interest-modal form {
    display: grid;
    gap: 20px;
    padding: 0 16px 16px;
}

.interest-modal-head {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: center;
    margin: 0 -16px;
    background: #23282c;
    color: #fff;
    padding: 30px 32px;
}

.interest-modal-head span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    font-size: 0;
}

.interest-modal-head span::before {
    content: "CAR";
    font-size: 14px;
    font-weight: 900;
}

.interest-modal h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.05;
    text-transform: uppercase;
}

.interest-modal p {
    margin: 6px 0 0;
    color: #fff;
    font-weight: 800;
}

.interest-close {
    position: absolute;
    top: 20px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
}

.interest-modal input,
.interest-modal select,
.interest-modal textarea {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: #fff;
    color: #344054;
    padding: 0 12px;
}

.interest-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.interest-modal textarea {
    min-height: 112px;
    padding-top: 12px;
    resize: vertical;
}

.interest-modal button[type="submit"] {
    min-height: 52px;
    border: 0;
    background: #e49e2f;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .interest-two-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Clean leads funnel */
.lead-kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 16px;
}

.lead-column {
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px;
    min-height: 320px;
}

.lead-column header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 8px;
}

.lead-column header span {
    color: #344054;
    font-size: 14px;
    font-weight: 900;
}

.lead-column header strong {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: #fff4dd;
    color: #d28a19;
    font-size: 13px;
}

.lead-stack {
    display: grid;
    gap: 10px;
}

.lead-card-clean {
    display: grid;
    gap: 9px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
}

.lead-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.lead-card-top strong {
    color: #101828;
    line-height: 1.25;
}

.lead-card-top button {
    min-height: 28px;
    border: 0;
    border-radius: 7px;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 900;
}

.lead-card-clean span {
    color: #344054;
    font-weight: 800;
}

.lead-card-clean small {
    color: #98a2b3;
    font-weight: 800;
}

.lead-contact {
    display: grid;
    gap: 4px;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
    color: #475467;
    font-size: 12px;
    line-height: 1.35;
}

.lead-contact b {
    display: inline-block;
    margin-right: 6px;
    color: #d28a19;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lead-card-clean p,
.lead-empty {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}

.lead-empty {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.lead-create-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 180px;
    gap: 10px;
    margin-top: 22px;
    border-top: 1px solid #eef2f6;
    padding-top: 18px;
}

.lead-create-form input,
.lead-create-form select {
    min-height: 46px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    color: #17202a;
    padding: 0 12px;
}

.lead-create-form button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #e49e2f;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.lead-pagination {
    justify-content: center;
    margin-top: 4px;
}

.lead-pagination button {
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    font-size: 12px;
}

@media (max-width: 1250px) {
    .lead-kanban {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .lead-kanban,
    .lead-create-form {
        grid-template-columns: 1fr;
    }
}

/* Final admin lead and mobile refinements */
.brand-logo-img {
    display: block;
    max-width: 210px;
    max-height: 86px;
    object-fit: contain;
}

.sidebar-logo-code .brand-logo-img,
.footer-logo-code .brand-logo-img {
    max-width: 170px;
}

.lead-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.lead-subnav a {
    display: inline-grid;
    min-height: 40px;
    place-items: center;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    padding: 0 18px;
    font-weight: 900;
}

.lead-subnav a.active {
    border-color: #e49e2f;
    background: #fff4dd;
    color: #c98416;
}

.sidebar-submenu {
    display: grid;
    gap: 8px;
    margin: -6px 0 4px 18px;
    padding-left: 14px;
    border-left: 2px solid #edf0f4;
}

.app-body .app-sidebar .sidebar-submenu a {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 8px;
    color: #667085;
    background: transparent;
}

.app-body .app-sidebar .sidebar-submenu a.active,
.app-body .app-sidebar .sidebar-submenu a:hover {
    background: #fff4dd;
    color: #c98416;
}

.lead-kanban {
    grid-template-columns: 1fr !important;
}

.lead-column {
    min-height: auto;
}

.lead-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-empty {
    grid-column: 1 / -1;
}

.lead-card-clean {
    min-width: 0;
    overflow: hidden;
}

.lead-card-clean * {
    overflow-wrap: anywhere;
}

.lead-reply-form {
    display: grid;
    gap: 8px;
    border-top: 1px solid #eef2f6;
    padding-top: 10px;
}

.lead-reply-form textarea {
    width: 100%;
    min-height: 78px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    color: #17202a;
    padding: 10px 12px;
    resize: vertical;
}

.lead-reply-form button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: #16a34a;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.lead-replied {
    display: grid;
    gap: 5px;
    border-radius: 10px;
    background: #ecfdf3;
    color: #166534;
    padding: 10px;
}

.lead-replied b {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.settings-logo-upload {
    grid-column: span 2;
}

body,
.app-body {
    overflow-x: hidden;
}

.premium-area-card {
    display: grid;
    gap: 18px;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.premium-area-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.premium-area-head p {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-area-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.premium-area-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.premium-area-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.premium-area-legend i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.legend-sales {
    background: #3b82f6;
}

.legend-profit {
    background: #10b981;
}

.legend-purchases {
    background: #fb7185;
}

.premium-area-card svg {
    width: 100%;
    min-height: 250px;
    overflow: visible;
}

.area-grid-line {
    stroke: #f1f5f9;
    stroke-width: 1;
}

.area-fill {
    fill: url(#salesBlueGradient);
}

.area-sales-line,
.area-profit-line,
.area-purchase-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area-sales-line {
    stroke: #2563eb;
    stroke-width: 3;
}

.area-profit-line {
    stroke: #10b981;
    stroke-width: 2;
    opacity: .78;
}

.area-purchase-line {
    stroke: #fb7185;
    stroke-width: 1.6;
    opacity: .62;
}

.area-dot {
    fill: #ffffff;
    stroke: #2563eb;
    stroke-width: 1.8;
}

.area-axis-label {
    fill: #94a3b8;
    font-size: 11px;
    text-anchor: middle;
}

input[data-cpf-mask],
input[data-money-mask],
input[data-digits-only] {
    font-variant-numeric: tabular-nums;
}

/* Premium summary charts aligned with the main area chart */
.dashboard-chart-grid {
    gap: 20px !important;
    margin-top: 22px !important;
}

.dashboard-chart-grid .chart-card {
    gap: 18px !important;
    min-height: 280px;
    border: 1px solid #edf1f7 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    padding: 24px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06) !important;
}

.dashboard-chart-grid .chart-card > div:first-child p {
    margin: 0 0 6px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.dashboard-chart-grid .chart-card > div:first-child h2 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 22px !important;
    letter-spacing: 0 !important;
}

.dashboard-chart-grid .donut-chart {
    width: 188px !important;
    background:
        conic-gradient(#2563eb calc(var(--value) * 1%), #eef4ff 0) !important;
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, .05),
        0 18px 42px rgba(37, 99, 235, .12);
}

.dashboard-chart-grid .donut-chart::after {
    inset: 25px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px #f1f5f9;
}

.dashboard-chart-grid .donut-chart strong {
    color: #0f172a !important;
    font-size: 34px !important;
    font-weight: 900 !important;
}

.dashboard-chart-grid .chart-legend {
    gap: 10px !important;
}

.dashboard-chart-grid .chart-legend span {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.dashboard-chart-grid .chart-legend i {
    width: 9px !important;
    height: 9px !important;
    background: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.dashboard-chart-grid .bar-chart {
    gap: 16px !important;
}

.dashboard-chart-grid .bar-row {
    grid-template-columns: 132px minmax(0, 1fr) 28px !important;
    gap: 14px !important;
    align-items: center !important;
}

.dashboard-chart-grid .bar-row span {
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.dashboard-chart-grid .bar-row > div {
    height: 10px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    overflow: hidden;
}

.dashboard-chart-grid .bar-row > div i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.dashboard-chart-grid .chart-card:nth-child(3) .bar-row > div i {
    background: linear-gradient(90deg, #fda4af 0%, #fb7185 100%) !important;
    box-shadow: 0 8px 18px rgba(251, 113, 133, .14);
}

.dashboard-chart-grid .bar-row strong {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: right;
}

.dashboard-chart-grid .mini-area-card {
    display: grid !important;
    grid-template-rows: auto minmax(180px, 1fr) auto;
    gap: 16px !important;
    min-height: 330px !important;
}

.mini-area-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mini-area-head strong {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.mini-area-svg {
    width: 100%;
    min-height: 184px;
    overflow: visible;
}

.mini-area-grid {
    stroke: #f1f5f9;
    stroke-width: 1;
}

.mini-area-line,
.mini-area-secondary {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-area-line {
    stroke: #2563eb;
    stroke-width: 3;
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .14));
}

.mini-area-secondary {
    stroke: #fb7185;
    stroke-width: 1.6;
    opacity: .62;
}

.mini-area-dot {
    fill: #ffffff;
    stroke: #2563eb;
    stroke-width: 1.7;
}

.mini-area-axis {
    fill: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

.mini-area-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.mini-area-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mini-area-legend i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

/* CRM polish */
.app-body .metric-grid article {
    min-width: 0;
}

.app-body .metric-grid strong {
    font-size: clamp(1.75rem, 2.7vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.client-lookup.has-icon,
.client-lookup {
    position: relative;
}

.client-lookup .lookup-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 2px solid #94a3b8;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.client-lookup .lookup-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -4px;
    border-radius: 999px;
    background: #94a3b8;
    transform: rotate(45deg);
}

.client-lookup .lookup-icon + input {
    padding-left: 44px;
}

.client-create-form {
    margin-top: 6px;
}

.report-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.report-card:hover,
.report-card:focus {
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .08);
    outline: 0;
    transform: translateY(-1px);
}

.report-modal {
    width: min(920px, calc(100vw - 32px));
    border: 0;
    border-radius: 14px;
    padding: 28px;
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
}

.report-modal::backdrop {
    background: rgba(15, 23, 42, .42);
}

.report-modal h2 {
    margin: 0 42px 22px 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.report-modal-grid,
.negotiation-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-modal-grid section,
.negotiation-detail-grid article {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.report-modal-grid h3,
.negotiation-detail-grid h2 {
    margin: 0 0 12px;
}

.report-modal-grid p {
    margin: 8px 0;
    color: #334155;
    line-height: 1.45;
}

.negotiation-page .dashboard {
    margin-left: 0;
    width: 100%;
}

.negotiation-detail {
    max-width: 1180px;
    margin: 0 auto;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(120px, .45fr) 1fr;
    gap: 8px 12px;
    margin: 0;
}

.detail-list dt {
    color: #64748b;
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
    color: #17202a;
}

.settings-logo-upload {
    min-height: 92px;
}

.sidebar-logo-code .brand-logo-img {
    max-height: 72px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .report-modal-grid,
    .negotiation-detail-grid {
        grid-template-columns: 1fr;
    }

    .report-modal {
        padding: 22px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }
}

/* Final CRM vehicle form and public stock/detail refinements */
.crm-vehicle-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.crm-vehicle-form input,
.crm-vehicle-form select,
.crm-vehicle-form textarea {
    min-height: 44px !important;
    border-radius: 6px !important;
}

.crm-vehicle-form textarea {
    min-height: 82px !important;
}

.crm-upload-placeholder {
    min-height: 82px;
}

.crm-upload-placeholder input:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.vehicle-detail-page .detail-topbar {
    display: none !important;
}

.vehicle-detail-page .detail-grid {
    align-items: start;
    gap: 18px !important;
}

.vehicle-detail-page .detail-specs {
    padding: 18px 20px !important;
}

.vehicle-detail-page .detail-specs h2 {
    margin: 0 0 14px !important;
}

.vehicle-detail-page .detail-specs dl {
    display: grid;
    gap: 0;
}

.vehicle-detail-page .detail-specs dl div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    min-height: 42px !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #e6ded2;
}

.vehicle-detail-page .detail-specs dl div::before {
    content: none !important;
    display: none !important;
}

.vehicle-detail-page .detail-specs dt {
    color: #777064 !important;
    font-size: 11px !important;
    font-weight: 700;
}

.vehicle-detail-page .detail-specs dd {
    color: #151515 !important;
    font-size: 13px !important;
    font-weight: 900;
    text-align: left;
}

.stock-page-white .stock-row-card {
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 34px !important;
    align-items: center !important;
    padding: 18px 20px !important;
}

.stock-page-white .row-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.stock-page-white .row-main h2,
.stock-page-white .row-main p {
    margin: 0 !important;
}

.stock-page-white .row-main ul {
    gap: 30px !important;
    margin: 2px 0 4px !important;
    flex-wrap: wrap;
}

.stock-page-white .row-main li span {
    font-size: 14px !important;
}

.stock-page-white .row-actions {
    max-width: 420px !important;
    gap: 12px !important;
}

@media (max-width: 760px) {
    .premium-area-head {
        display: grid;
    }

    .crm-vehicle-form,
    .vehicle-detail-page .detail-specs dl div,
    .stock-page-white .stock-row-card {
        grid-template-columns: 1fr !important;
    }

    .stock-page-white .row-main ul {
        gap: 18px !important;
    }
}

@media (max-width: 900px) {
    .app-body {
        display: block !important;
    }

    .app-sidebar {
        position: static !important;
        min-height: auto !important;
    }

    .app-body .dashboard {
        width: 100%;
        padding: 14px !important;
    }

    .app-body .dashboard-header {
        overflow: hidden;
        padding: 18px !important;
    }

    .app-body .dashboard-header h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .panel {
        overflow: hidden;
    }

    .lead-stack,
    .lead-create-form,
    .settings-logo-upload {
        grid-template-columns: 1fr !important;
        grid-column: auto;
    }
}

/* Premium negotiation detail page */
body.negotiation-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, .13), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.negotiation-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 46px;
}

.negotiation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 22px;
}

.negotiation-hero-copy,
.negotiation-hero-card,
.negotiation-kpis article,
.negotiation-panel,
.negotiation-notes-grid article {
    border: 1px solid #e6ebf2;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.negotiation-hero-copy {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 32px;
}

.negotiation-hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -80px -130px auto;
    width: 270px;
    height: 270px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(234, 162, 26, .12));
}

.negotiation-back {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: #0f172a;
    padding: 0 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.negotiation-hero-copy p,
.panel-title-row p,
.negotiation-notes-grid p {
    margin: 0 0 8px;
    color: #d89421;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.negotiation-hero-copy h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
    text-wrap: balance;
}

.negotiation-hero-copy > span {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 18px;
    color: #475569;
    font-size: .98rem;
    line-height: 1.45;
    font-weight: 650;
}

.negotiation-hero-card {
    display: grid;
    align-content: end;
    gap: 10px;
    border-radius: 18px;
    padding: 28px;
    background:
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.negotiation-hero-card.is-negative {
    background: linear-gradient(135deg, #1f2937 0%, #3f1d25 100%);
}

.negotiation-hero-card span,
.negotiation-hero-card small {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.negotiation-hero-card strong {
    color: #fff;
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.negotiation-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.negotiation-kpis article {
    min-width: 0;
    border-radius: 16px;
    padding: 18px;
}

.negotiation-kpis span {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.negotiation-kpis strong {
    display: block;
    margin-top: 10px;
    color: #d89421;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    line-height: 1.08;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.negotiation-main-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr .95fr;
    gap: 18px;
    align-items: start;
}

.negotiation-panel,
.negotiation-notes-grid article {
    border-radius: 16px;
    padding: 22px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-title-row h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.15rem, 1.75vw, 1.48rem);
    line-height: 1.16;
    font-weight: 800;
    text-wrap: balance;
}

.panel-title-row > span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eff6ff;
    padding: 7px 10px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.vehicle-detail-mini {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

.vehicle-detail-mini img,
.vehicle-detail-placeholder {
    width: 92px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    object-fit: cover;
}

.vehicle-detail-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    color: #64748b;
    font-size: 2rem;
    font-weight: 900;
}

.vehicle-detail-mini strong,
.vehicle-detail-mini span {
    display: block;
}

.vehicle-detail-mini strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.vehicle-detail-mini span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.premium-detail-list {
    display: grid;
    grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.premium-detail-list dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.premium-detail-list dd {
    min-width: 0;
    margin: 0;
    color: #17202a;
    font-size: 14px;
    line-height: 1.42;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.money-positive {
    color: #0f8b62 !important;
}

.money-negative {
    color: #be123c !important;
}

.negotiation-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.negotiation-notes-grid strong {
    display: block;
    color: #334155;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .negotiation-hero,
    .negotiation-main-grid {
        grid-template-columns: 1fr;
    }

    .negotiation-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .negotiation-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
    }

    .negotiation-hero-copy,
    .negotiation-hero-card,
    .negotiation-panel,
    .negotiation-notes-grid article {
        padding: 18px;
    }

    .negotiation-hero-copy h1 {
        font-size: clamp(1.85rem, 10vw, 2.75rem);
    }

    .negotiation-hero-card strong {
        font-size: clamp(1.55rem, 8vw, 2.15rem);
    }

    .negotiation-kpis,
    .negotiation-notes-grid {
        grid-template-columns: 1fr;
    }

    .premium-detail-list {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-mini {
        grid-template-columns: 76px 1fr;
    }

    .vehicle-detail-mini img,
    .vehicle-detail-placeholder {
        width: 76px;
    }
}

.report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.report-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.report-actions button {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.report-actions button:first-child {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.report-actions button:last-child {
    color: #b91c1c;
}

.negotiation-edit-modal {
    width: min(760px, calc(100vw - 28px));
}

.negotiation-edit-form {
    margin: 0;
}

.negotiation-edit-note {
    display: block;
    margin: 14px 0 0;
    color: #64748b;
    font-weight: 700;
}

.vehicle-detail-page .detail-grid-clean {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.vehicle-detail-page .detail-grid-clean .detail-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.vehicle-detail-page .detail-specs-complete {
    padding: 22px;
}

.vehicle-detail-page .detail-specs-complete dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.vehicle-detail-page .detail-specs-complete dl div {
    min-height: auto;
    padding: 12px 0;
}

.vehicle-detail-page .detail-specs-complete dl div::before {
    content: none !important;
}

.vehicle-detail-page .detail-specs-complete dt {
    font-size: 11px;
    color: #64748b;
}

.vehicle-detail-page .detail-specs-complete dd {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .vehicle-detail-page .detail-grid-clean,
    .vehicle-detail-page .detail-specs-complete dl {
        grid-template-columns: 1fr;
    }

    .report-card-head {
        display: grid;
    }

    .report-actions {
        width: 100%;
    }

    .report-actions button {
        flex: 1;
    }
}

.captcha-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 8px 0 10px;
    padding: 0 18px;
    border: 1px dashed rgba(255,255,255,.35);
    background: repeating-linear-gradient(135deg, rgba(234,158,47,.18) 0 8px, rgba(15,23,42,.18) 8px 16px);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 3px;
    user-select: none;
}

.settings-logo-thumb {
    display: block;
    width: 118px;
    height: 54px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.settings-form textarea {
    min-height: 110px;
    resize: vertical;
}

.settings-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 18px;
    margin-top: 22px;
}

.compact-panel-header {
    margin-bottom: 4px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
}

.permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 800;
    color: #334155;
}

.user-create-form,
.user-list {
    margin-top: 22px;
}

@media (max-width: 860px) {
    .settings-admin-grid {
        grid-template-columns: 1fr;
    }
}

#settings {
    display: grid;
    gap: 18px;
}

#settings > .panel-header {
    margin-bottom: 0;
}

#settings .settings-form,
#settings .user-list {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

#settings > .settings-form:first-of-type {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
}

#settings > .settings-form:first-of-type > input {
    grid-column: span 2;
}

#settings > .settings-form:first-of-type > input[name="address"] {
    grid-column: span 4;
}

#settings > .settings-form:first-of-type > input[name="city"] {
    grid-column: span 2;
}

#settings .settings-logo-upload {
    grid-column: span 2;
    min-height: 112px;
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 8px;
}

#settings .settings-logo-upload input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}

#settings .settings-logo-upload small {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: #64748b;
}

#settings .settings-logo-thumb {
    width: 92px;
    height: 44px;
}

#settings .settings-form button {
    justify-self: start;
    min-width: 190px;
    width: auto;
    min-height: 42px;
    padding: 0 22px;
    font-size: 13px;
}

#settings > .settings-form:first-of-type > button {
    grid-column: 1 / -1;
}

#settings .settings-admin-grid {
    align-items: stretch;
    margin-top: 0;
}

#settings .settings-admin-grid .settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

#settings .settings-admin-grid .compact-panel-header,
#settings .settings-admin-grid textarea,
#settings .settings-admin-grid button {
    grid-column: 1 / -1;
}

#settings .settings-admin-grid textarea {
    min-height: 86px;
}

#settings .user-create-form {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#settings .user-create-form .compact-panel-header,
#settings .user-create-form .permission-grid,
#settings .user-create-form button {
    grid-column: 1 / -1;
}

#settings .user-create-form .admin-check {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

#settings .permission-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
}

#settings .permission-grid label {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}

#settings .user-list {
    margin-top: 0;
}

#settings .user-list:empty {
    display: none;
}

.payment-summary-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.payment-summary-card {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .05);
}

.payment-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
}

.payment-summary-card .mini-area-svg {
    min-height: 230px;
}

.payment-total-list {
    display: grid;
    gap: 10px;
}

.payment-total-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.payment-total-list b {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.payment-total-list strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .payment-summary-section,
    .payment-summary-grid {
        grid-template-columns: 1fr;
    }
}

.app-body .metric-grid strong {
    display: block;
    color: #d89421;
    font-size: clamp(1.55rem, 2vw, 2.05rem) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.app-body .metric-grid article {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 1100px) {
    #settings > .settings-form:first-of-type,
    #settings .settings-admin-grid .settings-form,
    #settings .user-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #settings > .settings-form:first-of-type > input,
    #settings > .settings-form:first-of-type > input[name="address"],
    #settings > .settings-form:first-of-type > input[name="city"],
    #settings .settings-logo-upload {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    #settings > .settings-form:first-of-type,
    #settings .settings-admin-grid,
    #settings .settings-admin-grid .settings-form,
    #settings .user-create-form {
        grid-template-columns: 1fr;
    }

    #settings .settings-logo-upload,
    #settings > .settings-form:first-of-type > input,
    #settings > .settings-form:first-of-type > input[name="address"],
    #settings > .settings-form:first-of-type > input[name="city"] {
        grid-column: 1 / -1;
    }

    #settings .settings-form button {
        width: 100%;
    }
}

/* Final visual polish: about page, footer, galleries and admin modal alignment */
.internal-hero {
    background:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .66)),
        var(--internal-hero-image, url("../img/hero-desktop.webp")) center / cover !important;
}

.about-content-flow {
    display: block !important;
    max-width: 900px;
}

.about-content-flow .internal-copy {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.about-content-flow .internal-copy h2 {
    color: var(--ink) !important;
}

.about-content-flow .internal-copy p {
    color: #41516a !important;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.8;
}

.about-inline-image {
    margin: 34px 0;
}

.about-inline-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .14);
}

.settings-image-upload {
    min-height: 136px !important;
}

.settings-wide-thumb {
    display: block;
    width: 170px;
    height: 74px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

#about-editor .about-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#about-editor .about-form textarea,
#about-editor .about-form button {
    grid-column: 1 / -1;
}

.footer-identity,
.footer-logo-code,
.social-links,
.powerbar-inner {
    justify-items: center;
    text-align: center;
}

.footer-logo-code {
    display: grid;
    place-items: center;
    min-width: 0;
    transform-origin: center !important;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.social-links a {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(228, 158, 47, .28);
    border-radius: 50%;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: rgba(228, 158, 47, .1);
    border-color: rgba(228, 158, 47, .72);
}

.social-icon,
.social-links a::before {
    display: block;
    width: 18px;
    height: 18px;
    background: #e49e2f;
}

.social-facebook,
.social-links a[aria-label="Facebook"]::before {
    content: "";
    clip-path: path("M13 5V3.8c0-.6.2-.9.9-.9H15V.5c-.6-.1-1.3-.1-2-.1-2 0-3.4 1.2-3.4 3.4V5H7.3v2.7h2.3V16h3.1V7.7h2.2l.4-2.7H13Z");
}

.social-instagram,
.social-links a[aria-label="Instagram"]::before {
    content: "";
    clip-path: path("M4.6 0h6.8A4.6 4.6 0 0 1 16 4.6v6.8a4.6 4.6 0 0 1-4.6 4.6H4.6A4.6 4.6 0 0 1 0 11.4V4.6A4.6 4.6 0 0 1 4.6 0Zm0 1.8a2.8 2.8 0 0 0-2.8 2.8v6.8a2.8 2.8 0 0 0 2.8 2.8h6.8a2.8 2.8 0 0 0 2.8-2.8V4.6a2.8 2.8 0 0 0-2.8-2.8H4.6ZM8 4.1a3.9 3.9 0 1 1 0 7.8 3.9 3.9 0 0 1 0-7.8Zm0 1.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Zm4.1-2a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8Z");
}

.social-whatsapp,
.social-links a[aria-label="WhatsApp"]::before {
    content: "";
    clip-path: path("M8 0a8 8 0 0 0-6.8 12.2L.3 16l3.9-1A8 8 0 1 0 8 0Zm0 1.6a6.4 6.4 0 0 1 5.5 9.7 6.4 6.4 0 0 1-8.2 2.2l-.4-.2-2 .5.4-2-.2-.4A6.4 6.4 0 0 1 8 1.6Zm-2.6 3c-.2 0-.4.1-.6.3-.2.2-.7.7-.7 1.8s.7 2.1.9 2.3c.1.2 1.5 2.5 3.8 3.4.5.2 1 .4 1.3.4.5.2 1 .1 1.4.1.4-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1-.1-.2-.2-.2-.4-.3l-1.5-.7c-.2-.1-.4-.1-.5.1l-.8.9c-.1.2-.3.2-.5.1-.3-.1-1-.4-1.6-1a5.6 5.6 0 0 1-1.1-1.4c-.1-.2 0-.3.1-.5l.3-.4.3-.4v-.4l-.7-1.6c-.1-.4-.3-.5-.5-.5l-.4-.1Z");
}

.footer-contact-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: #e49e2f;
    vertical-align: -3px;
}

.footer-mail { clip-path: polygon(0 18%,100% 18%,100% 82%,0 82%,0 18%,50% 55%,100% 18%,100% 30%,50% 66%,0 30%); }
.footer-phone { clip-path: polygon(24% 0,46% 0,54% 26%,42% 34%,62% 62%,74% 54%,100% 64%,100% 86%,86% 100%,70% 96%,44% 76%,24% 50%,4% 20%,0 8%,10% 0); }
.footer-pin { clip-path: polygon(50% 0,68% 5%,82% 18%,88% 36%,84% 54%,50% 100%,16% 54%,12% 36%,18% 18%,32% 5%); }

.footer-grid p > span:not(.footer-contact-icon) {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: transparent;
    font-size: 0;
    background: #e49e2f;
    vertical-align: -3px;
}

.footer-grid p:nth-child(1) > span:not(.footer-contact-icon) {
    clip-path: polygon(0 18%,100% 18%,100% 82%,0 82%,0 18%,50% 55%,100% 18%,100% 30%,50% 66%,0 30%);
}

.footer-grid p:nth-child(2) > span:not(.footer-contact-icon) {
    clip-path: polygon(24% 0,46% 0,54% 26%,42% 34%,62% 62%,74% 54%,100% 64%,100% 86%,86% 100%,70% 96%,44% 76%,24% 50%,4% 20%,0 8%,10% 0);
}

.footer-grid p:nth-child(3) > span:not(.footer-contact-icon) {
    clip-path: polygon(50% 0,68% 5%,82% 18%,88% 36%,84% 54%,50% 100%,16% 54%,12% 36%,18% 18%,32% 5%);
}

.powerbar-inner {
    justify-content: center !important;
    gap: 12px 24px;
    flex-wrap: wrap;
    font-size: 13px;
}

.powerbar-inner .powered {
    color: #202020;
}

.powerbar-inner .powered strong {
    color: #202020 !important;
    font-size: 1rem;
}

.detail-gallery {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.detail-main-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.vehicle-detail-page .detail-grid-clean .detail-main-image {
    display: block;
    width: 100%;
    background: transparent !important;
    object-fit: contain;
}

.vehicle-detail-page .detail-thumbs {
    justify-content: start;
}

.image-lightbox {
    width: min(1080px, calc(100vw - 28px));
    border: 0;
    border-radius: 14px;
    padding: 14px;
    background: #111;
}

.image-lightbox::backdrop {
    background: rgba(0, 0, 0, .78);
}

.image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    margin: auto;
    object-fit: contain;
}

.image-lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 24px;
    cursor: pointer;
}

.featured-image,
.featured-image img,
.stock-row-card img,
.stock-banner-img {
    background: transparent !important;
}

.inventory-preview .info-xs p,
.inventory-preview .info-xs h2 {
    color: #1f2937 !important;
}

.vehicle-modal {
    margin: auto;
    max-height: calc(100vh - 34px);
}

.vehicle-modal form {
    max-height: calc(100vh - 34px);
    overflow: auto;
}

.vehicle-form-grid {
    align-items: start;
}

@media (max-width: 720px) {
    #about-editor .about-form {
        grid-template-columns: 1fr;
    }

    .internal-page {
        overflow-x: hidden;
    }

    .about-content-flow {
        width: min(100% - 28px, 900px);
    }

    .about-inline-image {
        margin: 24px 0;
    }

    .footer-top-grid,
    .footer-grid {
        justify-items: center;
        text-align: center;
    }

    .footer-grid p {
        justify-content: center;
    }

    .vehicle-detail-page .detail-shell {
        width: min(100% - 32px, 936px);
    }

    .vehicle-detail-page .detail-thumbs {
        grid-template-columns: repeat(4, 56px) !important;
        justify-content: center;
        padding-left: 0;
    }

    .vehicle-detail-page .detail-thumbs button {
        width: 56px;
        height: 42px;
    }

    .featured-card {
        text-align: center;
    }

    .featured-info.details {
        padding-left: 18px;
        padding-right: 18px;
    }
}
