/* ============================================================
   Loja Auto Plugin CSS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --as-red:        #E60045;
    --as-red-dark:   #c4003b;
    --as-dark:       #212121;
    --as-gray:       #F5F5F5;
    --as-white:      #ffffff;
    --as-border:     #e0e0e0;
    --as-text:       #333333;
    --as-text-light: #777777;
    --as-shadow:     0 2px 12px rgba(0,0,0,.10);
    --as-radius:     8px;
    --as-font-head:  'Montserrat', sans-serif;
    --as-font-body:  'Roboto', sans-serif;
}

/* ── Layout ─────────────────────────────────────────────────── */
.as-listing-wrap {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: var(--as-font-body);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.as-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
}
.as-filters {
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.as-filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--as-border);
}
.as-filter-group:last-child { border-bottom: none; }
.as-filter-label {
    display: block;
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--as-dark);
    margin-bottom: 10px;
}
.as-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--as-font-body);
    color: var(--as-text);
    background: var(--as-white);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.as-select:focus { border-color: var(--as-red); }
.as-select--small { width: auto; min-width: 180px; }
.as-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--as-font-body);
    color: var(--as-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}
.as-input:focus { border-color: var(--as-red); }
.as-input-btn {
    display: flex;
    gap: 6px;
}
.as-input-btn .as-input { flex: 1; }
.as-btn-search {
    background: var(--as-red);
    border: none;
    border-radius: 6px;
    width: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.as-btn-search svg { width: 18px; height: 18px; }
.as-checkbox-label,
.as-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--as-text);
    margin-bottom: 6px;
    cursor: pointer;
}
.as-checkbox-label input,
.as-radio-label input {
    accent-color: var(--as-red);
    width: 16px; height: 16px;
}
.as-hidden { display: none !important; }
.as-show-more {
    background: none;
    border: none;
    color: var(--as-red);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--as-font-body);
    text-decoration: underline;
}
.as-filter-dropdown {
    position: relative;
}
.as-filter-dropdown__toggle {
    list-style: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    color: var(--as-text);
    font-size: 14px;
    font-family: var(--as-font-body);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.as-filter-dropdown__toggle::-webkit-details-marker { display: none; }
.as-filter-dropdown__toggle::marker { content: ''; }
.as-filter-dropdown__toggle:focus {
    outline: none;
    border-color: var(--as-red);
}
.as-filter-dropdown__toggle:hover,
.as-filter-dropdown[open] .as-filter-dropdown__toggle {
    border-color: #cfcfcf;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.as-filter-dropdown__label {
    color: #555;
    font-weight: 500;
}
.as-filter-dropdown__arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-right: 4px;
}
.as-filter-dropdown[open] .as-filter-dropdown__arrow {
    transform: rotate(-135deg) translateX(-1px);
}
.as-filter-dropdown__menu {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    background: var(--as-white);
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
}
.as-filter-dropdown:not([open]) .as-filter-dropdown__menu {
    display: none;
}
.as-super-oferta-group { background: #fff5f8; padding: 10px; border-radius: 6px; margin-bottom: 16px; }
.as-super-label { font-weight: 700; color: var(--as-red); font-size: 15px; }
.as-super-label input { accent-color: var(--as-red); }
.as-btn--reset {
    width: 100%;
    background: transparent;
    border: 2px solid var(--as-border);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--as-text-light);
    transition: all .2s;
    font-family: var(--as-font-body);
}
.as-btn--reset:hover { border-color: var(--as-red); color: var(--as-red); }

/* Brand Icons */
.as-brand-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.as-brand-icon-btn {
    border: 2px solid var(--as-border);
    border-radius: 8px;
    background: var(--as-white);
    padding: 6px 8px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
    min-width: 52px;
    text-align: center;
    font-size: 11px;
    font-family: var(--as-font-head);
    font-weight: 700;
    color: var(--as-dark);
}
.as-brand-icon-btn img { width: 36px; height: 24px; object-fit: contain; display: block; margin: 0 auto; }
.as-brand-icon-btn.active,
.as-brand-icon-btn:hover { border-color: var(--as-red); transform: translateY(-1px); }

/* Range Slider */
.as-range-slider { margin: 12px 4px 8px; }
.as-range-values { display: flex; justify-content: space-between; font-size: 12px; color: var(--as-text-light); margin-top: 6px; }
.noUi-connect { background: var(--as-red) !important; }
.noUi-handle { border-color: var(--as-red) !important; box-shadow: none !important; }
.noUi-handle::before, .noUi-handle::after { background: var(--as-red) !important; }

/* ── Main Content ────────────────────────────────────────────── */
.as-main { flex: 1; min-width: 0; }
.as-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.as-search-bar { display: flex; gap: 8px; flex: 1; }
.as-search-input { flex: 1; max-width: 600px; }
.as-topbar-right { display: flex; align-items: center; gap: 12px; }
.as-count-label { font-size: 14px; color: var(--as-text-light); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   Vehicle Grid, Cards, Badges, Pagination, Carousel
   ══════════════════════════════════════════════════════════════ */

/* ── Vehicle Grid ─────────────────────────────────────────────── */
.as-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.as-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--as-text-light);
    font-size: 16px;
}

/* ── Vehicle Card ─────────────────────────────────────────────── */
.as-card {
    background: var(--as-white);
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    font-family: var(--as-font-body);
}
.as-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.as-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--as-gray);
}
.as-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.as-card:hover .as-card__img-wrap img { 
    transform: scale(1.05); 
}

/* ── Badges ───────────────────────────────────────────────────── */
.as-card__badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}
.as-card__badges > * {
    pointer-events: auto;
    position: absolute;
}
.as-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}
.as-badge--estado {
    font-size: 11px;
    padding: 6px 12px;
}
.as-badge--zero-km  { background: #1976D2; color: white; }
.as-badge--semi-novo { background: #388E3C; color: white; }
.as-badge--usado    { background: #757575; color: white; }
.as-card__badges .as-badge--super {
    background: var(--as-red);
    color: white;
    font-size: 10px;
    padding: 6px 10px;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    width: auto;
}
.as-card__badges .as-badge--etiqueta {
    background: #FF6B35;
    color: white;
    font-size: 10px;
    padding: 6px 10px;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto;
}

/* ── Card Body ────────────────────────────────────────────────── */
.as-card__body { 
    padding: 12px 16px 14px; 
    position: relative; 
}
.as-card__topline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 8px 0 !important;
    flex-wrap: nowrap !important;
}
.as-card__body .as-badge--estado {
    display: inline-block !important;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: capitalize;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1;
}
.as-card__topline .as-card__codigo { 
    font-size: 11px !important; 
    color: var(--as-text-light) !important; 
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500;
    white-space: nowrap;
    position: relative !important;
    z-index: 2;
    flex-shrink: 1;
}
.as-card__title {
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px;
    line-height: 1.3;
}
.as-card__title a { 
    color: var(--as-dark); 
    text-decoration: none;
    display: block;
}
.as-card__title a:hover { 
    color: var(--as-red); 
}
.as-card__modelo {
    color: var(--as-red);
    font-weight: 700;
}
.as-card__versao {
    font-size: 11px;
    color: var(--as-text-light);
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.as-card__preco {
    font-family: var(--as-font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 6px;
    line-height: 1.2;
}
.as-card__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--as-text-light);
    flex-wrap: wrap;
    padding-bottom: 30px;
}
.as-card__meta span { 
    display: inline-block;
    white-space: nowrap;
}

/* ── Favorite Button ──────────────────────────────────────────── */
.as-fav-btn {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.as-fav-btn svg { 
    width: 18px; 
    height: 18px; 
    color: #ccc; 
    transition: color .2s; 
}
.as-fav-btn:hover svg,
.as-fav-btn.active svg { 
    color: var(--as-red); 
    fill: var(--as-red); 
}
.as-fav-btn.active { 
    border-color: var(--as-red); 
}

/* ── Pagination ───────────────────────────────────────────────── */
.as-pagination-wrap { 
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
}
.as-pagination { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.as-page-btn {
    width: 40px; 
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--as-border);
    background: var(--as-white);
    font-family: var(--as-font-head);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    color: var(--as-text);
}
.as-page-btn:hover, 
.as-page-btn.active { 
    background: var(--as-red); 
    color: white; 
    border-color: var(--as-red); 
}

/* ── Featured Carousel ────────────────────────────────────────── */
.as-destaque-section { 
    margin-top: 50px; 
}
.as-section-title {
    font-family: var(--as-font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 24px;
}
.as-destaque-carousel { 
    position: relative; 
}
.as-carousel-track-wrap { 
    overflow: hidden; 
}
.as-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
}
.as-carousel-track .as-card { 
    min-width: 280px; 
    flex: 0 0 280px; 
}
.as-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--as-dark);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px; 
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s, background .2s;
}
.as-carousel-btn:hover { 
    opacity: 1; 
    background: var(--as-red); 
}
.as-carousel-btn--prev { left: -22px; }
.as-carousel-btn--next { right: -22px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.as-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
    justify-content: center;
}
.as-btn--red { background: var(--as-red); color: white; }
.as-btn--red:hover { background: var(--as-red-dark); color: white; transform: translateY(-1px); }
.as-btn--full { width: 100%; }
.as-btn--whatsapp { background: #25D366; color: white; margin-top: 10px; }
.as-btn--whatsapp:hover { background: #1ebe5d; color: white; }
.as-btn--whatsapp svg { width: 20px; height: 20px; }

/* ── Forms ───────────────────────────────────────────────────── */
.as-form-group { margin-bottom: 14px; }
.as-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--as-dark); margin-bottom: 6px; }
.as-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.as-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    font-family: var(--as-font-body);
    font-size: 14px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.as-textarea:focus { border-color: var(--as-red); }
.as-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}
.as-alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ── Lead Form (sidebar on vehicle single) ────────────────────── */
.as-lead-form-wrap {
    background: var(--as-gray);
    border-radius: var(--as-radius);
    padding: 20px;
}
.as-lead-title {
    font-family: var(--as-font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 16px;
}

/* ── Simulator ────────────────────────────────────────────────── */
.as-simulador-wrap { max-width: 800px; margin: 0 auto; padding: 30px 16px; font-family: var(--as-font-body); }
.as-simulador-form { background: var(--as-white); border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 30px; }
.as-sim-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.as-sim-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 24px; align-items: end; }
.as-input-icon { position: relative; display: flex; align-items: center; }
.as-input-prefix { position: absolute; left: 14px; font-weight: 600; color: #495057; font-size: 15px; pointer-events: none; z-index: 1; }
.as-input-suffix { position: absolute; right: 14px; font-weight: 600; color: #495057; font-size: 15px; pointer-events: none; z-index: 1; }
.as-input-with-prefix { padding-left: 42px !important; }
.as-input-with-suffix { padding-right: 42px !important; }
.as-simulador-result { background: #f8f9fa; border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 24px; }
.as-simulador-result h3 { font-family: var(--as-font-head); font-size: 20px; margin: 0 0 20px; color: var(--as-dark); }
.as-sim-detail { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--as-border); font-size: 15px; }
.as-sim-total { font-size: 18px; border-bottom: 2px solid var(--as-red); padding: 16px 0; }
.as-sim-total strong { color: var(--as-red); font-size: 24px; }
.as-sim-obs { font-size: 12px; color: #6c757d; margin-top: 16px; margin-bottom: 0; }

/* ── Test Drive ───────────────────────────────────────────────── */
.as-test-drive-wrap { max-width: 700px; margin: 0 auto; padding: 30px 16px; font-family: var(--as-font-body); }
.as-test-drive-form { background: var(--as-white); border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 30px; }
.as-search-with-button { display: flex; gap: 10px; align-items: flex-start; }
.as-search-with-button .as-autocomplete-wrap { flex: 1; }
.as-search-with-button .as-btn { white-space: nowrap; height: 48px; }
.as-autocomplete-wrap { position: relative; }
.as-autocomplete-results { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid var(--as-border); border-top: none; border-radius: 0 0 var(--as-radius) var(--as-radius); max-height: 400px; overflow-y: auto; z-index: 100; display: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.as-autocomplete-item { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.as-autocomplete-item:last-child { border-bottom: none; }
.as-autocomplete-item:hover { background: #f8f9fa; }
.as-autocomplete-item-img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; background: #e0e0e0; flex-shrink: 0; }
.as-autocomplete-item-info { flex: 1; min-width: 0; }
.as-autocomplete-item-title { font-weight: 600; font-size: 14px; color: var(--as-dark); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-autocomplete-item-meta { font-size: 13px; color: #6c757d; margin: 0; }
.as-autocomplete-empty { padding: 12px 16px; color: #999; text-align: center; font-size: 14px; }
.as-selected-vehicles { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.as-vehicle-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f9fa; border: 1px solid var(--as-border); border-radius: var(--as-radius); }
.as-vehicle-card-img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; background: #e0e0e0; flex-shrink: 0; }
.as-vehicle-card-info { flex: 1; min-width: 0; }
.as-vehicle-card-title { font-weight: 600; font-size: 14px; color: var(--as-dark); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-vehicle-card-price { font-size: 13px; color: #6c757d; margin: 0; }
.as-vehicle-card-remove { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; transition: color 0.2s; }
.as-vehicle-card-remove:hover { color: #a71d2a; }
.as-test-drive-info { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--as-radius); padding: 16px; margin-bottom: 20px; }
.as-test-drive-info p { margin: 0; font-size: 14px; color: #856404; line-height: 1.5; }
.as-test-drive-info strong { color: #664d03; }
.as-td-favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
.as-td-fav-card { background: white; border: 1px solid var(--as-border); border-radius: var(--as-radius); overflow: hidden; cursor: pointer; transition: all 0.2s; }
.as-td-fav-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--as-red); }
.as-td-fav-img { width: 100%; height: 80px; object-fit: cover; background: #e0e0e0; display: block; }
.as-td-fav-img--empty { background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%); }
.as-td-fav-info { padding: 8px; }
.as-td-fav-title { font-weight: 600; font-size: 12px; color: var(--as-dark); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.as-td-fav-price { font-size: 11px; color: var(--as-red); font-weight: 600; margin: 0; }

/* ── Contact Info ─────────────────────────────────────────────── */
.as-contact-info-wrap { max-width: 900px; margin: 0 auto; padding: 40px 16px; font-family: var(--as-font-body); }
.as-contact-subtitle { text-align: center; color: #6c757d; font-size: 16px; margin-bottom: 40px; }
.as-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.as-contact-card { background: var(--as-white); border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 30px; text-align: center; transition: box-shadow 0.3s; }
.as-contact-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.as-contact-card--full { grid-column: 1 / -1; }
.as-contact-icon { font-size: 48px; margin-bottom: 16px; }
.as-contact-card h3 { font-family: var(--as-font-head); font-size: 20px; font-weight: 700; color: var(--as-dark); margin: 0 0 12px; }
.as-contact-card p { margin: 0; font-size: 15px; color: #495057; line-height: 1.6; }
.as-contact-card a { color: var(--as-red); text-decoration: none; transition: opacity 0.2s; }
.as-contact-card a:hover { opacity: 0.8; text-decoration: underline; }
.as-contact-social { text-align: center; padding: 30px; background: #f8f9fa; border-radius: var(--as-radius); }
.as-contact-social h3 { font-family: var(--as-font-head); font-size: 22px; font-weight: 700; color: var(--as-dark); margin: 0 0 20px; }
.as-social-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.as-social-link { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--as-red); color: white; border-radius: 999px; text-decoration: none; transition: background 0.3s, transform 0.2s; }
.as-social-link:hover { background: #c41e3a; }
.as-social-link:hover { transform: translateY(-1px); }
.as-social-link i { font-size: 22px; line-height: 1; }

/* ── Favoritos ────────────────────────────────────────────────── */
.as-favoritos-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 16px; }
.as-page-title { font-family: var(--as-font-head); font-size: 28px; font-weight: 800; color: var(--as-dark); margin-bottom: 24px; }
.as-fav-empty { text-align: center; padding: 60px 20px; }
.as-fav-empty p { font-size: 16px; color: var(--as-text-light); margin-bottom: 20px; }

/* Test Drive */
.as-test-drive-section .as-contact-form { max-width: 700px; margin: 0 auto; }

/* ── Loading Spinner ──────────────────────────────────────────── */
.as-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}
.as-spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--as-border);
    border-top-color: var(--as-red);
    border-radius: 50%;
    animation: as-spin .8s linear infinite;
}
@keyframes as-spin { to { transform: rotate(360deg); } }
svg.as-spin { animation: as-spin .8s linear infinite; }

/* ── Auth (Login / Register) ──────────────────────────────────── */
.as-auth-wrap {
    max-width: 460px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: var(--as-font-body);
}
.as-auth-box {
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow);
    overflow: hidden;
}
.as-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--as-border);
}
.as-auth-tab {
    flex: 1;
    padding: 14px;
    background: var(--as-gray);
    border: none;
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--as-text-light);
    cursor: pointer;
    transition: all .2s;
}
.as-auth-tab.active {
    background: var(--as-white);
    color: var(--as-red);
    border-bottom: 2px solid var(--as-red);
    margin-bottom: -2px;
}
.as-auth-tab:hover { color: var(--as-red); }
.as-auth-panel { padding: 24px; }
.as-auth-form .as-form-group { margin-bottom: 16px; }
.as-auth-form .as-form-group small { color: var(--as-text-light); font-weight: 400; }
.as-auth-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.as-auth-msg--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.as-auth-msg--error   { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.as-auth-logged {
    text-align: center;
    padding: 40px 24px;
}
.as-auth-avatar { margin-bottom: 16px; }
.as-auth-avatar img { border-radius: 50%; }
.as-auth-logged h2 {
    font-family: var(--as-font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 6px;
}
.as-auth-email {
    color: var(--as-text-light);
    font-size: 14px;
    margin: 0 0 24px;
}
.as-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.as-logout-btn {
    background: transparent;
    border: 2px solid var(--as-border);
    color: var(--as-text-light);
}
.as-logout-btn:hover {
    border-color: var(--as-red);
    color: var(--as-red);
}

/* ── Vendedor Card (Single Vehicle Sidebar) ────────────────── */
.as-vendedor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--as-gray);
    border-radius: var(--as-radius);
    margin-top: 16px;
}
.as-vendedor-card__foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.as-vendedor-card__foto--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--as-red);
    color: #fff;
    font-family: var(--as-font-head);
    font-size: 22px;
    font-weight: 800;
}
.as-vendedor-card__info { display: flex; flex-direction: column; overflow: hidden; }
.as-vendedor-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--as-text-light); }
.as-vendedor-card__name { font-size: 16px; font-weight: 700; color: var(--as-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Admin Panel Layout ──────────────────────────────────────── */
.as-adm {
    display: flex;
    min-height: calc(100vh - 80px);
    font-family: var(--as-font-body);
    background: #f8f9fa;
}
.as-adm-denied {
    text-align: center;
    padding: 80px 20px;
    font-family: var(--as-font-body);
}
.as-adm-denied h2 {
    font-family: var(--as-font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 10px;
}
.as-adm-denied p {
    color: var(--as-text-light);
    font-size: 16px;
    margin: 0 0 20px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.as-adm-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--as-white);
    border-right: 1px solid var(--as-border);
    display: flex;
    flex-direction: column;
}
.as-adm-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--as-border);
}
.as-adm-sidebar-title {
    font-family: var(--as-font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--as-dark);
}
.as-adm-nav {
    padding: 12px 0;
    flex: 1;
}
.as-adm-nav-section {
    display: block;
    padding: 8px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--as-text-light);
}
.as-adm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--as-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.as-adm-nav-item:hover {
    background: var(--as-gray);
    color: var(--as-red);
}
.as-adm-nav-item.active {
    background: rgba(230,0,69,.06);
    color: var(--as-red);
    border-left-color: var(--as-red);
    font-weight: 700;
}
.as-adm-nav-icon { font-size: 16px; width: 20px; text-align: center; }

/* ── Main Content ───────────────────────────────────────────── */
.as-adm-main {
    flex: 1;
    padding: 24px 32px;
    overflow-x: hidden;
}
.as-adm-section { display: none; }
.as-adm-section.active { display: block; }

.as-adm-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.as-adm-title {
    font-family: var(--as-font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 4px;
}
.as-adm-subtitle {
    font-size: 13px;
    color: var(--as-text-light);
    margin: 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.as-adm-card {
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    margin-bottom: 20px;
    overflow: hidden;
}
.as-color-settings-card__intro {
    padding: 12px 20px 0;
}
.as-color-settings-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--as-dark);
}
.as-color-settings-card__description {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666;
}
.as-color-settings-card__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.as-color-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.as-adm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--as-border);
}
.as-adm-card-header h3 {
    font-family: var(--as-font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--as-dark);
    margin: 0;
}
.as-adm-count {
    font-size: 12px;
    color: var(--as-text-light);
    background: var(--as-gray);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── Forms ──────────────────────────────────────────────────── */
.as-adm-form { padding: 20px; }
.as-adm-form-grid {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.as-adm-field { flex: 1; min-width: 180px; }
.as-adm-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--as-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.as-adm-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--as-font-body);
    color: var(--as-dark);
    background: var(--as-white);
    transition: border-color .2s;
    box-sizing: border-box;
}
.as-adm-input:focus {
    outline: none;
    border-color: var(--as-red);
    box-shadow: 0 0 0 3px rgba(230,0,69,.1);
}
.as-adm-field-action {
    flex: 0 0 auto;
    min-width: auto;
}
.as-adm-file-btn {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px dashed var(--as-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    background: var(--as-gray);
}
.as-adm-file-btn:hover { border-color: var(--as-red); }
.as-adm-file-text {
    font-size: 13px;
    color: var(--as-text-light);
}
.as-adm-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.as-adm-msg--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.as-adm-msg--error   { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Tables ─────────────────────────────────────────────────── */
.as-adm-table-wrap { overflow-x: auto; }
.as-adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.as-adm-table thead { background: var(--as-gray); }
.as-adm-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--as-text-light);
    border-bottom: 1px solid var(--as-border);
}
.as-adm-th-actions { text-align: right; white-space: nowrap; }
.as-adm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--as-border);
    color: var(--as-dark);
    vertical-align: middle;
}
.as-adm-actions { white-space: nowrap; flex-wrap: nowrap; }
.as-adm-table { min-width: 700px; }
.as-adm-table tbody tr:last-child td { border-bottom: none; }
.as-adm-table tbody tr:hover { background: rgba(0,0,0,.015); }
.as-contact-actions-cell {
    min-width: 180px;
    white-space: normal;
    vertical-align: top !important;
}
.as-contact-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}
.as-contact-id-cell strong,
.as-contact-name-cell strong {
    font-size: 15px;
}
.as-contact-type-cell,
.as-contact-date-cell,
.as-contact-vehicle-cell {
    font-size: 13px;
}
.as-contact-info-cell {
    min-width: 120px;
}
.as-contact-info-mail,
.as-contact-info-phone,
.as-contact-vehicle-title {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.as-contact-info-phone {
    margin-top: 4px;
}
.as-contact-status-cell {
    white-space: nowrap;
}
.as-contact-actions-panel {
    min-width: 140px;
    max-width: 160px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-left: auto;
}
.as-contact-inline-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
}
.as-contact-message-box {
    margin-bottom: 0;
}
.as-contact-message-box summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.as-contact-message-box summary::-webkit-details-marker {
    display: none;
}
.as-contact-message-box summary::after {
    content: '+';
    color: #9ca3af;
    font-size: 14px;
    line-height: 1;
}
.as-contact-message-box[open] summary::after {
    content: '-';
}
.as-contact-message-box__body {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.as-contact-inline-select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}
.as-contact-save-btn {
    width: 100%;
    min-width: 70px;
    padding: 9px 14px;
    background: var(--as-red);
    color: #fff;
    border: 1px solid var(--as-red);
    box-shadow: none;
}
.as-contact-save-btn:hover {
    background: var(--as-red-dark);
    color: #fff;
}
.asd-am-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, .58);
}
.asd-am-modal {
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.as-contact-detail {
    padding: 4px 4px 0;
    color: var(--as-dark);
}
.as-contact-detail__title {
    margin: 0 0 10px;
    font-family: var(--as-font-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.as-contact-detail__meta {
    margin: 0 0 24px;
    color: var(--as-text-light);
    font-size: 14px;
}
.as-contact-detail__content {
    display: grid;
    gap: 18px;
}
.as-contact-detail__field {
    display: grid;
    gap: 6px;
}
.as-contact-detail__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}
.as-contact-detail__value {
    font-size: 15px;
    line-height: 1.55;
}
.as-contact-detail__value a {
    color: #2271b1;
    text-decoration: underline;
}
.as-contact-detail__message {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    color: #4b5563;
    white-space: pre-wrap;
    line-height: 1.6;
}
.as-contact-detail__select {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
.as-contact-detail__select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .12);
}
.as-adm-empty {
    text-align: center;
    padding: 40px 16px !important;
    color: var(--as-text-light);
    font-size: 14px;
}

/* ── Inline Editable Cells ──────────────────────────────────── */
.as-il-editable {
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
}
.as-il-editable:hover {
    background: #f0f4ff;
}

/* ── Inline Select (status) ─────────────────────────────────── */
.as-il-select {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    background: #f8f9ff;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 130px;
}
.as-il-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

/* ── Actions ────────────────────────────────────────────────── */
.as-adm-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}
.as-adm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    background: var(--as-white);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}
.as-adm-btn-icon:hover {
    border-color: var(--as-red);
    background: rgba(230,0,69,.05);
}
.as-adm-btn-icon--danger:hover {
    border-color: #ef5350;
    background: #fce4ec;
}
.as-adm-upload-logo { cursor: pointer; }

/* ── Badges ─────────────────────────────────────────────────── */
.as-adm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.as-adm-badge--publish      { background: #e8f5e9; color: #2e7d32; }
.as-adm-badge--draft        { background: #fff3e0; color: #e65100; }
.as-adm-badge--pending      { background: #e3f2fd; color: #1565c0; }
.as-adm-badge--vendido      { background: #fce4ec; color: #c62828; }
.as-adm-badge--manutencao   { background: #fff8e1; color: #f57f17; }
.as-adm-badge--fora_da_loja { background: #efebe9; color: #4e342e; }

/* ── Vehicle Cell ───────────────────────────────────────────── */
.as-adm-vehicle-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.as-adm-vehicle-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.as-adm-vehicle-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--as-gray);
    font-size: 20px;
    flex-shrink: 0;
}

/* ── Marca Logos ─────────────────────────────────────────────── */
.as-adm-logo-cell { width: 56px; text-align: center; }
.as-adm-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--as-gray);
    padding: 4px;
}
.as-adm-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--as-border);
    color: var(--as-text-light);
    font-family: var(--as-font-head);
    font-weight: 800;
    font-size: 16px;
}

/* ── Inline Edit ────────────────────────────────────────────── */
.as-adm-edit-input {
    display: none;
    max-width: 200px;
}
.as-adm-btn-save,
.as-adm-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    background: var(--as-white);
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
}
.as-adm-btn-save:hover { border-color: #43a047; background: #e8f5e9; }
.as-adm-btn-cancel:hover { border-color: #ef5350; background: #fce4ec; }

/* ══════════════════════════════════════════════════════════════ */
/* ── Vehicle Form (Marketplace Style) ─────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.as-vf { position: relative; }

/* ── Breadcrumb Header ─────────────────────────────────────── */
.as-vf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--as-border);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.as-vf-breadcrumb { display: flex; align-items: center; gap: 8px; }
.as-vf-breadcrumb-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--as-text-light);
    text-decoration: none;
    transition: color .15s;
}
.as-vf-breadcrumb-link:hover { color: var(--as-red); }
.as-vf-breadcrumb-sep { color: var(--as-border); font-size: 16px; }
.as-vf-breadcrumb-current {
    font-family: var(--as-font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--as-dark);
}
.as-vf-header-actions { display: flex; gap: 10px; }

/* ── Buttons ───────────────────────────────────────────────── */
.as-vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--as-font-head);
    font-size: 14px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}
.as-vf-btn--primary {
    background: var(--as-red);
    color: #fff;
    border-color: var(--as-red);
}
.as-vf-btn--primary:hover { background: #c10038; border-color: #c10038; }
.as-vf-btn--ghost {
    background: transparent;
    color: var(--as-text-light);
    border-color: var(--as-border);
}
.as-vf-btn--ghost:hover { border-color: var(--as-dark); color: var(--as-dark); }
.as-vf-btn--outline {
    background: transparent;
    color: var(--as-dark);
    border-color: var(--as-border);
}
.as-vf-btn--outline:hover { border-color: var(--as-red); color: var(--as-red); }

/* ── Body / Content ────────────────────────────────────────── */
.as-vf-body { padding-bottom: 100px; }
.as-vf-content { max-width: 820px; }

/* ── Cards ─────────────────────────────────────────────────── */
.as-vf-card {
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}
.as-vf-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.as-vf-card-title {
    font-family: var(--as-font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0;
}
.as-vf-card-hint {
    font-size: 12px;
    color: var(--as-text-light);
}
.as-vf-card-body { padding: 20px 24px 24px; }

/* ── Form Elements ─────────────────────────────────────────── */
.as-vf-field { margin-bottom: 20px; }
.as-vf-field:last-child { margin-bottom: 0; }
.as-vf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-dark);
    margin-bottom: 8px;
}
.as-vf-required { color: var(--as-red); }
.as-vf-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--as-font-body);
    color: var(--as-dark);
    background: var(--as-white);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.as-vf-input:focus {
    outline: none;
    border-color: var(--as-red);
    box-shadow: 0 0 0 3px rgba(230,0,69,.08);
}
.as-vf-input::placeholder { color: #bbb; }
.as-vf-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--as-font-body);
    color: var(--as-dark);
    background: var(--as-white);
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.as-vf-textarea:focus {
    outline: none;
    border-color: var(--as-red);
    box-shadow: 0 0 0 3px rgba(230,0,69,.08);
}
select.as-vf-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── Input with Prefix / Suffix ────────────────────────────── */
.as-vf-input-prefix {
    position: relative;
    display: flex;
    align-items: stretch;
}
.as-vf-prefix, .as-vf-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--as-gray);
    border: 1px solid var(--as-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--as-text-light);
    white-space: nowrap;
}
.as-vf-prefix { border-radius: 8px 0 0 8px; border-right: none; }
.as-vf-suffix { border-radius: 0 8px 8px 0; border-left: none; }
.as-vf-input-prefix .as-vf-input {
    border-radius: 0 8px 8px 0;
}
.as-vf-input-prefix .as-vf-input:first-child {
    border-radius: 8px 0 0 8px;
}

/* ── Grid Layouts ──────────────────────────────────────────── */
.as-vf-grid { display: grid; gap: 20px; }
.as-vf-grid--2 { grid-template-columns: 1fr 1fr; }
.as-vf-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.as-vf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.as-vf-grid .as-vf-field { margin-bottom: 0; }

/* ── Pill Toggle Group (Condição) ──────────────────────────── */
.as-vf-pill-group {
    display: inline-flex;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    overflow: hidden;
}
.as-vf-pill {
    padding: 10px 22px;
    border: none;
    background: var(--as-white);
    font-family: var(--as-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--as-text-light);
    cursor: pointer;
    transition: all .15s;
    border-right: 1px solid var(--as-border);
}
.as-vf-pill:last-child { border-right: none; }
.as-vf-pill:hover { background: var(--as-gray); color: var(--as-dark); }
.as-vf-pill.active {
    background: var(--as-dark);
    color: #fff;
}

/* ── Toggle Switches ───────────────────────────────────────── */
.as-vf-row-toggles {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.as-vf-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.as-vf-switch-input { display: none; }
.as-vf-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--as-border);
    border-radius: 12px;
    transition: background .2s;
    flex-shrink: 0;
}
.as-vf-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.as-vf-switch-input:checked + .as-vf-switch {
    background: var(--as-red);
}
.as-vf-switch-input:checked + .as-vf-switch::after {
    transform: translateX(20px);
}
.as-vf-switch-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--as-dark);
}

/* ── Small Select (header toggle) ──────────────────────────── */
.as-vf-toggle-group { display: flex; align-items: center; gap: 8px; }
.as-vf-toggle-label { font-size: 12px; font-weight: 600; color: var(--as-text-light); }
.as-vf-select-sm {
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--as-font-body);
    font-weight: 600;
    color: var(--as-dark);
    background: var(--as-white);
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* ── Upload Zone ───────────────────────────────────────────── */
.as-vf-upload-zone {
    border: 2px dashed var(--as-border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: all .2s;
    background: #fafbfc;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.as-vf-upload-zone.dragover {
    border-color: var(--as-red);
    background: rgba(230,0,69,.03);
}
.as-vf-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.as-vf-upload-icon { color: var(--as-border); margin-bottom: 4px; }
.as-vf-upload-text {
    font-family: var(--as-font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--as-dark);
    margin: 0;
}
.as-vf-upload-hint {
    font-size: 13px;
    color: var(--as-text-light);
    margin-bottom: 8px;
}
.as-vf-upload-btn { margin-top: 4px; }
.as-vf-upload-preview { display: none; }
.as-vf-upload-preview.has-image {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.as-vf-upload-preview img {
    max-width: 220px;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--as-border);
}

/* ── Checkbox Grid (Opcionais) ─────────────────────────────── */
.as-vf-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 16px;
}
.as-vf-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--as-dark);
    cursor: pointer;
    user-select: none;
}
.as-vf-check-item input[type="checkbox"] { display: none; }
.as-vf-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--as-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}
.as-vf-check-item input:checked + .as-vf-check-box {
    background: var(--as-red);
    border-color: var(--as-red);
}
.as-vf-check-item input:checked + .as-vf-check-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ── Sticky Footer ─────────────────────────────────────────── */
.as-vf-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--as-white);
    border-top: 1px solid var(--as-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.as-vf-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.as-vf-footer-actions { display: flex; gap: 10px; }
.as-vf-msg {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}
.as-vf-msg.as-adm-msg--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.as-vf-msg.as-adm-msg--error   { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Vehicle Form Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .as-vf-grid--2, .as-vf-grid--3, .as-vf-grid--4 { grid-template-columns: 1fr; }
    .as-vf-header { flex-direction: column; align-items: flex-start; }
    .as-vf-card-body { padding: 16px; }
    .as-vf-card-head { padding: 16px 16px 0; }
    .as-vf-checks-grid { grid-template-columns: 1fr 1fr; }
    .as-vf-upload-zone { padding: 24px 16px; min-height: 160px; }
    .as-vf-pill { padding: 8px 14px; font-size: 12px; }
    .as-vf-footer-inner { padding: 12px 16px; }
}
@media (max-width: 480px) {
    .as-vf-checks-grid { grid-template-columns: 1fr; }
    .as-vf-grid--2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════ */
/* ── Identity Upload (Logo / Favicon) ─────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.as-adm-card-sub {
    padding: 0 24px 0;
    font-size: 13px;
    color: var(--as-text-light);
    margin-top: -4px;
}
.as-identity-upload {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.as-identity-preview {
    width: 140px;
    height: 100px;
    border: 2px dashed var(--as-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafbfc;
    flex-shrink: 0;
}
.as-identity-preview--sm { width: 80px; height: 80px; }
.as-identity-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-identity-placeholder {
    font-size: 13px;
    color: var(--as-border);
    font-weight: 600;
}
.as-adm-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--as-border);
    border-radius: 8px;
    font-family: var(--as-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--as-dark);
    cursor: pointer;
    transition: all .15s;
    background: var(--as-white);
}
.as-adm-file-btn:hover { border-color: var(--as-red); color: var(--as-red); }
.as-adm-hint {
    font-size: 12px;
    color: var(--as-text-light);
    margin-top: 6px;
}

/* ── Logo Size Slider ──────────────────────────────────────── */
.as-logo-size-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.as-logo-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--as-border);
    border-radius: 3px;
    outline: none;
}
.as-logo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--as-red);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.as-logo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--as-red);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.as-logo-size-val {
    font-family: var(--as-font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--as-dark);
    min-width: 48px;
    text-align: right;
}
.as-logo-size-demo {
    margin-top: 12px;
    padding: 10px;
    background: var(--as-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height .15s;
}
.as-logo-size-demo img { height: 100%; width: auto; }

/* ══════════════════════════════════════════════════════════════ */
/* ── Crop Zone & Crop Modal ───────────────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.as-crop-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.as-crop-preview {
    width: 100%;
    min-height: 100px;
    border: 2px dashed var(--as-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafbfc;
}
.as-crop-preview img { max-width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; }
.as-crop-btn { margin-top: 4px; }
.as-crop-hint { font-size: 12px; color: #c0392b; font-weight: 600; margin-top: 2px; }

/* ── Crop Modal ────────────────────────────────────────────── */
.as-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.as-crop-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}
.as-crop-modal-content {
    position: relative;
    background: var(--as-white);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}
.as-crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--as-border);
}
.as-crop-modal-title {
    font-family: var(--as-font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0;
}
.as-crop-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--as-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.as-crop-modal-close:hover { color: var(--as-red); }
.as-crop-modal-body {
    padding: 20px 24px;
    overflow: auto;
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.as-crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--as-border);
}

/* ── Mobile Sidebar Toggle ──────────────────────────────────── */
.as-adm-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--as-red);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230,0,69,.35);
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.as-adm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0,0,0,.45);
}
.as-adm-sidebar-overlay.open { display: block; }
.as-adm-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--as-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.as-adm-sidebar-close:hover { color: var(--as-red); }

/* ══════════════════════════════════════════════════════════════ */
/* ── Admin Panel Responsive (Tablet ≤ 1024px) ────────────── */
/* ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .as-adm-main { padding: 20px; }
    .as-adm-sidebar { width: 200px; min-width: 200px; }
    .as-adm-table th,
    .as-adm-table td { padding: 10px 12px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════ */
/* ── Admin Panel Responsive (Mobile ≤ 768px) ─────────────── */
/* ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Layout */
    .as-adm { flex-direction: column; }

    /* Sidebar → slide-out drawer */
    .as-adm-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        min-width: 270px;
        height: 100vh;
        z-index: 1003;
        border-right: 1px solid var(--as-border);
        border-bottom: none;
        transition: left .25s ease;
        overflow-y: auto;
    }
    .as-adm-sidebar.open { left: 0; }
    .as-adm-sidebar-close { display: block; }
    .as-adm-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .as-adm-mobile-toggle { display: flex; }
    .as-adm-nav {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
    }
    .as-adm-nav-section { display: block; }
    .as-adm-nav-item {
        padding: 10px 20px;
        font-size: 13px;
        border-left: 3px solid transparent;
        border-radius: 0;
    }
    .as-adm-nav-item.active {
        background: rgba(230,0,69,.06);
        color: var(--as-red);
        border-left-color: var(--as-red);
    }

    /* Main content */
    .as-adm-main { padding: 16px 12px; }
    .as-adm-title { font-size: 18px; }
    .as-adm-subtitle { font-size: 12px; }
    .as-adm-topbar { flex-direction: column; align-items: stretch; gap: 10px; }

    /* Cards */
    .as-adm-card { margin-bottom: 14px; }
    .as-adm-card-header { padding: 12px 14px; flex-wrap: wrap; gap: 6px; }
    .as-adm-card-header h3 { font-size: 14px; }
    .as-color-settings-card__intro { padding: 12px 16px 0; }
    .as-color-settings-card__title { font-size: 16px; }
    .as-color-settings-card__description { font-size: 13px; }
    .as-color-settings-card__grid { gap: 16px !important; }
    .as-adm-section#as-sec-personalizacao .as-color-input-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-input-row > * {
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-input-row input[type="color"] {
        width: 100% !important;
        max-width: none !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-input-row input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-input-row .as-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-settings-card__actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .as-adm-section#as-sec-personalizacao .as-color-settings-card__actions .as-btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Forms */
    .as-adm-form { padding: 14px; }
    .as-adm-form-grid { flex-direction: column; gap: 12px; }
    .as-adm-field { min-width: 100%; }
    .as-adm-field-action { width: 100%; }
    .as-adm-field-action .as-btn { width: 100%; }
    .as-adm-input { padding: 10px 12px; font-size: 14px; }

    /* Tables */
    .as-adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .as-adm-table { min-width: 480px; }
    .as-adm-table th,
    .as-adm-table td { padding: 10px 10px; font-size: 12px; white-space: nowrap; }
    .as-contacts-stats { grid-template-columns: 1fr 1fr !important; }
    .as-adm-section#as-sec-contatos .as-adm-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .as-adm-section#as-sec-contatos .as-adm-table {
        min-width: 760px;
    }
    .as-adm-section#as-sec-contatos .as-adm-table th,
    .as-adm-section#as-sec-contatos .as-adm-table td {
        white-space: normal;
    }
    .as-adm-section#as-sec-contatos .as-contact-row td {
        padding: 10px 12px;
    }
    .as-contact-actions-cell { min-width: 170px; }
    .as-contact-actions-panel {
        min-width: 150px;
        max-width: 150px;
        padding: 8px;
    }
    .as-contact-inline-form { flex-direction: column; align-items: stretch; }
    .as-contact-inline-select { min-width: 100%; }
    .as-contact-save-btn { min-width: 100%; padding: 8px 12px; }
    .as-contact-detail__title { font-size: 16px; }
    .as-contact-detail__meta { margin-bottom: 18px; font-size: 13px; }
    .as-adm-vehicle-cell { gap: 6px; }
    .as-adm-vehicle-thumb { width: 32px; height: 32px; }
    .as-adm-vehicle-thumb-placeholder { width: 32px; height: 32px; font-size: 16px; }
    .as-adm-logo-cell { width: 40px; }
    .as-adm-logo-img { width: 30px; height: 30px; }
    .as-adm-logo-placeholder { width: 30px; height: 30px; font-size: 13px; }

    /* Buttons */
    .as-btn { font-size: 13px; padding: 10px 16px; }
    .as-adm-btn-icon { width: 30px; height: 30px; font-size: 13px; }

    /* Badges */
    .as-adm-badge { font-size: 9px; padding: 2px 7px; }

    /* Settings / Identity */
    .as-identity-upload { flex-direction: column; align-items: flex-start; gap: 10px; }
    .as-identity-preview { width: 100px; height: 70px; }
    .as-identity-preview--sm { width: 60px; height: 60px; }
    .as-logo-size-wrap { flex-direction: column; align-items: stretch; gap: 8px; }
    .as-logo-size-val { text-align: left; }

    /* Banner form */
    .as-crop-zone { width: 100%; }
    .as-crop-preview img { max-height: 140px; }

    /* Crop modal */
    .as-crop-modal-content { width: 95%; max-height: 90vh; }
    .as-crop-modal-header { padding: 14px 16px; }
    .as-crop-modal-title { font-size: 16px; }
    .as-crop-modal-body { padding: 12px; min-height: 200px; }
    .as-crop-modal-footer { padding: 12px 16px; }
}

/* ══════════════════════════════════════════════════════════════ */
/* ── Admin Panel Responsive (Small Mobile ≤ 480px) ───────── */
/* ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .as-adm-main { padding: 12px 8px; }
    .as-adm-title { font-size: 16px; }
    .as-adm-table { min-width: 400px; }
    .as-adm-table th,
    .as-adm-table td { padding: 8px 8px; font-size: 11px; }
    .as-adm-form { padding: 10px; }
    .as-adm-card-header { padding: 10px 12px; }
    .as-color-settings-card__intro { padding: 10px 14px 0; }
    .as-contacts-stats { grid-template-columns: 1fr !important; }
    .as-btn { font-size: 12px; padding: 8px 12px; }
}

/* ── Login-required Modal ────────────────────────────────────── */
.as-login-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.as-login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.as-login-modal-content {
    position: relative;
    background: var(--as-white);
    border-radius: var(--as-radius);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    font-family: var(--as-font-body);
}
.as-login-modal-content h3 {
    font-family: var(--as-font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0 0 10px;
}
.as-login-modal-content p {
    color: var(--as-text-light);
    font-size: 14px;
    margin: 0 0 20px;
}
.as-login-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--as-text-light);
    cursor: pointer;
    line-height: 1;
}
.as-login-modal-close:hover { color: var(--as-dark); }
.as-login-modal-actions { margin-top: 10px; }

/* ── Frontend Admin: Gallery Grid ─────────────────────────────── */
.as-vf-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    min-height: 0;
    padding: 0;
}
.as-vf-gallery-grid:empty { margin-bottom: 0; }
.as-vf-gallery-grid:not(:empty) + .as-vf-upload-zone--gallery {
    padding: 16px;
    min-height: auto;
}
.as-vf-gallery-grid:not(:empty) + .as-vf-upload-zone--gallery .as-vf-upload-icon,
.as-vf-gallery-grid:not(:empty) + .as-vf-upload-zone--gallery .as-vf-upload-text { display: none; }
.as-vf-gallery-item {
    position: relative;
    width: 120px;
    height: 90px;
    border: 2px solid var(--as-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    flex-shrink: 0;
}
.as-vf-gallery-item:first-child { border-color: var(--as-red); }
.as-vf-gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.as-vf-gallery-item .as-vf-gal-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--as-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.as-vf-gallery-item .as-vf-gal-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.as-vf-gallery-item .as-vf-gal-remove:hover { background: var(--as-red); }
.as-vf-gallery-item.ui-sortable-helper { box-shadow: 0 4px 16px rgba(0,0,0,.2); transform: scale(1.05); }
.as-vf-gallery-item.ui-sortable-placeholder {
    visibility: visible !important;
    background: var(--as-bg);
    border: 2px dashed var(--as-border);
}
.as-vf-upload-zone--gallery { min-height: 100px; }
.as-vf-card-hint {
    font-size: 12px;
    color: var(--as-text-light);
    font-weight: 400;
}

/* ── Frontend Admin: 360° Slots ──────────────────────────────── */
.as-vf-360-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.as-vf-360-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--as-bg);
    border: 1px solid var(--as-border);
    border-radius: 10px;
    transition: border-color .2s;
}
.as-vf-360-slot:hover { border-color: #bbb; }
.as-vf-360-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--as-dark);
    text-align: center;
    letter-spacing: .3px;
}
.as-vf-360-preview {
    width: 100%;
    aspect-ratio: 4/3;
    border: 2px dashed var(--as-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color .2s;
}
.as-vf-360-preview.has-img { border-style: solid; border-color: var(--as-green, #38a169); }
.as-vf-360-preview img { width: 100%; height: 100%; object-fit: cover; }
.as-vf-360-empty { color: #ccc; }
.as-vf-360-actions { display: flex; gap: 4px; }
.as-vf-btn--sm { font-size: 11px; padding: 4px 10px; }
.as-vf-btn--danger { color: var(--as-red) !important; border-color: var(--as-red) !important; }
.as-vf-btn--danger:hover { background: var(--as-red) !important; color: #fff !important; }
@media (max-width: 768px) {
    .as-vf-360-grid { grid-template-columns: repeat(3, 1fr); }
    .as-vf-gallery-item { width: 90px; height: 68px; }
}
@media (max-width: 480px) {
    .as-vf-360-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Filter Off-Canvas (base – hidden on desktop) ────────────── */
.as-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--as-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--as-font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background .15s;
    width: 100%;
    justify-content: center;
}
.as-filter-toggle:hover { background: var(--as-red); }
.as-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,.5);
}
.as-filter-overlay.open { display: block; }
.as-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--as-border);
    background: var(--as-white);
}
.as-sidebar-header-title {
    font-family: var(--as-font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--as-dark);
}
.as-sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--as-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.as-sidebar-close:hover { color: var(--as-red); }
.as-filter-apply {
    display: none;
    width: 100%;
    margin-top: 8px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .as-simulador-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .as-grid { grid-template-columns: 1fr 1fr; }
    .as-form-row { grid-template-columns: 1fr; }
    .as-sim-row-2, .as-sim-row-3 { grid-template-columns: 1fr; gap: 16px; }
    .as-topbar { flex-direction: column; align-items: stretch; }
    
    /* Test Drive Mobile */
    .as-test-drive-wrap { padding: 20px 12px; }
    .as-test-drive-form { padding: 20px 16px; }
    .as-search-with-button { flex-direction: column; gap: 12px; }
    .as-search-with-button .as-autocomplete-wrap { width: 100%; }
    .as-search-with-button .as-btn { width: 100%; height: auto; padding: 12px 20px; }
    .as-td-favorites-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .as-td-fav-img { height: 70px; }
    .as-td-fav-title { font-size: 11px; }
    .as-td-fav-price { font-size: 10px; }
    .as-autocomplete-item { padding: 10px; gap: 10px; }
    .as-autocomplete-item-img { width: 50px; height: 38px; }
    .as-autocomplete-item-title { font-size: 13px; }
    .as-autocomplete-item-meta { font-size: 12px; }
    .as-vehicle-card { padding: 10px; gap: 10px; }
    .as-vehicle-card-img { width: 50px; height: 38px; }
    .as-vehicle-card-title { font-size: 13px; }
    .as-vehicle-card-price { font-size: 12px; }
    .as-test-drive-info { padding: 12px; }
    .as-test-drive-info p { font-size: 13px; }
    
    /* Contact Info Mobile */
    .as-contact-info-wrap { padding: 30px 12px; }
    .as-contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .as-contact-card { padding: 24px 16px; }
    .as-contact-icon { font-size: 40px; }
    .as-contact-card h3 { font-size: 18px; }
    .as-contact-social { padding: 24px 16px; }
    .as-social-links { flex-direction: column; }
    .as-social-link { width: 100%; }
    
    .as-carousel-btn--prev { left: -10px; }
    .as-carousel-btn--next { right: -10px; }

    /* Off-canvas sidebar – mobile only */
    .as-listing-wrap { flex-direction: column; }
    .as-filter-toggle { display: flex; }
    .as-filter-apply { display: block; }
    .as-sidebar-header { display: flex; }
    .as-sidebar {
        position: fixed;
        top: 0;
        left: -85vw;
        width: 80vw;
        max-width: 320px;
        min-width: unset;
        height: 100vh;
        height: 100dvh;
        z-index: 1200;
        background: var(--as-white);
        display: flex;
        flex-direction: column;
        transition: left .3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
    }
    .as-sidebar.open { left: 0; }
    .as-filters {
        position: static;
        max-height: none;
        overflow-y: auto;
        flex: 1;
        border: none;
        border-radius: 0;
        padding: 16px;
    }
    .as-btn--reset {
        margin-bottom: 0;
    }
}
@media (max-width: 480px) {
    .as-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Ticket / Suporte
   ============================================================ */

/* Stat cards row */
.as-ticket-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.as-ticket-stat-card {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.as-ticket-stat-card:hover,
.as-ticket-stat-card.active {
    border-color: var(--as-red);
    box-shadow: 0 0 0 2px rgba(230,0,69,.12);
}
.as-ticket-stat-num {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--as-font-head);
    color: var(--as-dark);
}
.as-ticket-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--as-text-light);
    letter-spacing: .5px;
}
.as-ticket-stat--aberto .as-ticket-stat-num { color: #e67e22; }
.as-ticket-stat--aguardando .as-ticket-stat-num { color: #c2410c; }
.as-ticket-stat--respondido .as-ticket-stat-num { color: #2980b9; }
.as-ticket-stat--finalizado .as-ticket-stat-num { color: #27ae60; }

/* Status badges */
.as-ticket-badge--aberto {
    background: #fef3e2 !important;
    color: #e67e22 !important;
    border: 1px solid #f5c88a;
}
.as-ticket-badge--aguardando_cliente {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74;
}
.as-ticket-badge--respondido {
    background: #e8f4fd !important;
    color: #2980b9 !important;
    border: 1px solid #8cc5e8;
}
.as-ticket-badge--finalizado {
    background: #e8f8ef !important;
    color: #27ae60 !important;
    border: 1px solid #8dd8aa;
}

/* Category pills */
.as-ticket-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.as-ticket-cat--mal_funcionamento { background: #fde8e8; color: #c0392b; }
.as-ticket-cat--sugestao { background: #e8f0fe; color: #2b6cb0; }
.as-ticket-cat--duvida { background: #fef9e7; color: #b7950b; }
.as-ticket-cat--geral { background: #f0f0f0; color: #555; }

/* Meta bar */
.as-ticket-meta-bar {
    margin-bottom: 16px;
}
.as-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    font-size: 13px;
    color: var(--as-text);
}
.as-ticket-meta strong {
    color: var(--as-text-light);
    font-weight: 600;
}

/* Conversation thread */
.as-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 4px 2px;
    margin-bottom: 20px;
}
.as-ticket-msg {
    border-radius: 12px;
    padding: 14px 18px;
    max-width: 85%;
    position: relative;
}
.as-ticket-msg--user {
    background: #f0f2f5;
    border: 1px solid #e0e3e8;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.as-ticket-msg--support {
    background: #e8f4fd;
    border: 1px solid #c5dff0;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.as-ticket-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}
.as-ticket-msg-author {
    font-weight: 700;
    font-size: 13px;
    color: var(--as-dark);
}
.as-ticket-msg--support .as-ticket-msg-author { color: #2980b9; }
.as-ticket-msg-date {
    font-size: 11px;
    color: var(--as-text-light);
    white-space: nowrap;
}
.as-ticket-msg-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--as-text);
    word-wrap: break-word;
}
.as-ticket-msg-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.as-ticket-msg-images a {
    display: block;
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--as-border);
}
.as-ticket-msg-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.as-ticket-msg-images a:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .as-ticket-stats { gap: 8px; }
    .as-ticket-stat-card { min-width: 70px; padding: 10px; }
    .as-ticket-stat-num { font-size: 22px; }
    .as-ticket-msg { max-width: 95%; }
    .as-ticket-meta { flex-direction: column; gap: 6px; }
}

/* ============================================================
   Dashboard
   ============================================================ */

/* ── Dashboard container ──────────────────────────────────── */
#as-sec-dashboard .as-dash-cards,
#as-sec-dashboard .as-dash-charts-row,
#as-sec-dashboard .as-dash-filters-card,
#as-sec-dashboard .as-dash-filter-summary,
#as-sec-dashboard .as-dash-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
#as-dash-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* ── Summary Cards ────────────────────────────────────────── */
.as-dash-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}
.as-dash-card {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 16px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    transition: box-shadow .2s;
}
.as-dash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10) !important; }
.as-dash-card-icon { font-size: 28px; flex-shrink: 0; }
.as-dash-card-body { display: flex !important; flex-direction: column !important; min-width: 0; }
.as-dash-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.as-dash-card-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Charts Row ───────────────────────────────────────────── */
.as-dash-charts-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}
.as-dash-chart-card {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.as-dash-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

/* ── Filters ──────────────────────────────────────────────── */
.as-dash-filters-card {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.as-dash-hint {
    font-size: 12px;
    color: #999;
    margin: 0 0 12px;
}
.as-dash-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    flex-direction: row !important;
}
.as-dash-filter-select {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #fafafa;
    color: #333;
    min-width: 110px;
    cursor: pointer;
}
.as-dash-filter-select:focus { border-color: var(--as-red); outline: none; }
.as-dash-filter-clear {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.as-dash-filter-clear:hover { background: #e0e0e0; }

/* ── Filter Summary ───────────────────────────────────────── */
.as-dash-filter-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 10px 16px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px !important;
}
.as-dash-filter-summary strong { color: #212121; }

/* ── Table ────────────────────────────────────────────────── */
.as-dash-table-wrap {
    overflow-x: auto !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.as-dash-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12.5px;
    table-layout: auto !important;
}
.as-dash-table thead th {
    background: #f7f8fa;
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.as-dash-table thead th:hover { color: #333; }
.as-dash-table thead th.as-dash-sort-asc::after { content: ' ▲'; font-size: 9px; color: var(--as-red); }
.as-dash-table thead th.as-dash-sort-desc::after { content: ' ▼'; font-size: 9px; color: var(--as-red); }
.as-dash-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.as-dash-table tbody tr:hover { background: #fafbfc; }
.as-dash-table tbody td {
    padding: 9px 12px;
    color: #444;
    white-space: nowrap;
}
.as-dash-table .as-dash-num { text-align: right; font-variant-numeric: tabular-nums; }
.as-dash-cell-title { font-weight: 600; color: #212121; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* Status badges */
.as-dash-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.as-dash-status-publish { background: #d4edda; color: #155724; }
.as-dash-status-draft { background: #fff3cd; color: #856404; }
.as-dash-status-vendido { background: #cce5ff; color: #004085; }
.as-dash-status-manutencao { background: #f8d7da; color: #721c24; }
.as-dash-status-fora_da_loja { background: #e2e3e5; color: #383d41; }

/* ── Dashboard Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
    .as-dash-charts-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .as-dash-cards { grid-template-columns: repeat(2, 1fr) !important; }
    .as-dash-filter-select { min-width: 90px; }
}
