:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-glow: rgba(245, 158, 11, 0.35);
    --dark: #1e293b;
    --dark-blue: #0f172a;
    --dark-blue-soft: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #fff;
    --success: #22c55e;
    --font: 'Inter', sans-serif;
    --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: linear-gradient(180deg, var(--dark-blue) 0%, #0c1222 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Plus Jakarta Sans', var(--font);
}
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.95; }
.logo img { height: 56px; width: auto; object-fit: contain; }
.logo .highlight { color: var(--primary); }

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.nav-main > a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}
.nav-main > a:not(.btn):hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}
.nav-main .nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.25rem;
    align-self: center;
}
.nav-main .btn-group { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.user-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 0.5rem;
}
/* Mobile: hamburger + small buttons + sidebar */
.header-mobile-actions { display: none; align-items: center; gap: 0.5rem; }
.header-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: transparent; border: none; color: var(--white); cursor: pointer; border-radius: 8px; transition: background 0.2s; }
.header-hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger-line { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.25s, opacity 0.25s; }
.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-mobile { padding: 0.4rem 0.7rem; font-size: 0.8rem; font-weight: 600; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.btn-mobile--sm { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
.btn-mobile--outline { background: transparent; color: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.3); }
.btn-mobile--primary { background: var(--primary); color: var(--white); border: none; }
.header-mobile-user { font-size: 0.85rem; color: rgba(255,255,255,0.9); max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.header-sidebar { display: none; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.header-sidebar.is-open { display: block; pointer-events: auto; }
.header-sidebar__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.25s; }
.header-sidebar.is-open .header-sidebar__overlay { opacity: 1; }
.header-sidebar__panel { position: absolute; top: 0; right: 0; width: 280px; max-width: 85vw; height: 100%; background: var(--dark-blue); color: var(--white); box-shadow: -4px 0 24px rgba(0,0,0,0.3); transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
.header-sidebar.is-open .header-sidebar__panel { transform: translateX(0); }
.header-sidebar__nav { display: flex; flex-direction: column; padding: 1.5rem; padding-top: calc(64px + 1rem); gap: 0.25rem; }
.header-sidebar__nav > a { color: rgba(255,255,255,0.9); padding: 0.75rem 1rem; border-radius: 10px; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.header-sidebar__nav > a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.header-sidebar__divider { height: 1px; background: rgba(255,255,255,0.15); margin: 0.75rem 0; }
.header-sidebar__user { padding: 0.5rem 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.header-sidebar__btn { display: block; text-align: center; padding: 0.65rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-top: 0.25rem; transition: background 0.2s, color 0.2s; }
.header-sidebar__btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.header-sidebar__btn--outline { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.header-sidebar__btn--primary { background: var(--primary); color: var(--dark); border: none; }
.header-sidebar__btn--primary:hover { background: #fbbf24; }

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 0.75rem; height: 64px; }
    .logo img { height: 46px; }
    .nav-main--desktop { display: none !important; }
    .header-mobile-actions { display: flex; }
}
@media (min-width: 769px) {
    .header-mobile-actions { display: none !important; }
    .header-sidebar { display: none !important; }
}
@media (max-width: 768px) {
    .nav-main > a:not(.btn) { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
    .nav-main .nav-divider { height: 16px; }
    .site-header .btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: var(--white);
    box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-1px);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
.btn-success { background: var(--success); color: var(--white); }
.site-header .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.site-header .btn.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
.site-header .btn-primary { padding: 0.55rem 1.25rem; }

/* Page banner */
.page-banner {
    background: var(--dark-blue);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 3rem 20px;
    text-align: center;
}
.banner-overlay { background: rgba(0,0,0,0.5); padding: 2rem; border-radius: 8px; max-width: 600px; margin: 0 auto; }
.page-banner h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-banner p { opacity: 0.9; }

/* CTA section */
.cta-section {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 3rem 20px;
}
.cta-section h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cta-section p { margin-bottom: 1.5rem; opacity: 0.9; }
.cta-section .btn-primary { background: var(--primary); }

/* Footer */
.site-footer { background: #334155; color: var(--white); padding: 3rem 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--primary); }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; }
.footer-logo-img { max-height: 56px; width: auto; }
.logo-icon { font-size: 1.5rem; }
.footer-brand { font-weight: 700; }
.footer-about { font-size: 0.9rem; color: rgba(255,255,255,0.8); max-width: 280px; }
.partner-logos { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.partner-logo { max-height: 44px; width: auto; object-fit: contain; opacity: 0.9; }
.partner-logo:hover { opacity: 1; }
.partner-box { background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 6px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Forms */
.form-card {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.form-card h1 { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; }
.form-card .subtitle { text-align: center; color: var(--gray); margin-bottom: 1.5rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.form-group .password-wrap { position: relative; }
.form-group .password-wrap input { padding-right: 2.5rem; }
.btn-block { width: 100%; padding: 0.75rem; margin-top: 0.5rem; }
.form-footer { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--gray); }
.form-footer a { color: var(--primary); font-weight: 500; }

/* Auth pages (login / cadastro) - minimalista, neutro */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 20px 4rem;
    background: #f1f5f9;
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 2.25rem 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: var(--font);
}
.auth-card--wide {
    max-width: 460px;
}
.auth-card__icon {
    display: none;
}
.auth-card h1 {
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.01em;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.auth-card .form-group {
    margin-bottom: 1rem;
}
.auth-card .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
}
.auth-card .form-group input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    background: var(--white);
    transition: border-color 0.15s;
}
.auth-card .form-group input::placeholder {
    color: #94a3b8;
}
.auth-card .form-group input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.12);
}
.auth-card .btn-block {
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    background: #334155;
    color: var(--white);
    border: none;
    box-shadow: none;
}
.auth-card .btn-block:hover {
    background: #475569;
    transform: none;
}
.auth-card .form-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: #64748b;
}
.auth-card .form-footer a {
    color: #334155;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-card .form-footer a:hover {
    color: #1e293b;
}
.auth-card .alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
/* Cadastro: grid em 2 colunas no desktop */
.auth-card .form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 520px) {
    .auth-card .form-row--2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .auth-page { padding: 1.5rem 16px 3rem; }
    .auth-card { padding: 1.75rem 1.5rem; }
    .auth-card h1 { font-size: 1.25rem; }
}

/* Categories */
.section-title { text-align: center; margin: 3rem 0 1.5rem; }
.section-title h2 { font-size: 1.75rem; color: var(--dark); }
.section-title p { color: var(--gray); margin-top: 0.5rem; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto 3rem;
}
@media (max-width: 768px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.category-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(245,158,11,0.2); }
.category-card .icon { font-size: 1.25rem; margin-bottom: 0.35rem; }
.category-card .icon-svg { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 0.5rem; color: var(--primary); flex-shrink: 0; }
.category-card .icon-svg svg { width: 100%; height: 100%; }
.category-card .icon-svg svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.category-card .icon-svg svg[fill="none"], .category-card .icon-svg svg[stroke="currentColor"] { stroke: currentColor; fill: none; }
.category-card .icon-svg img { width: 100%; height: 100%; object-fit: contain; }
.category-card .icon-svg img.icon-category-custom { transform: scale(1.45); }
.category-card .icon-svg img.icon-category-smaller { transform: scale(1.2); }
.category-card .name { font-weight: 600; font-size: 0.8rem; display: block; margin-top: 0; }
.icon-svg { display: inline-flex; align-items: center; justify-content: center; }
.icon-svg svg { width: 24px; height: 24px; flex-shrink: 0; }
.icon-svg img { width: 100%; height: 100%; object-fit: contain; }
.icon-inline { display: inline-flex; vertical-align: middle; margin-right: 0.25rem; }
.icon-inline svg { width: 1em; height: 1em; }
.icon-inline img { width: 1em; height: 1em; object-fit: contain; }
.icon-check svg { width: 20px; height: 20px; stroke: var(--primary); }
.badge-star { display: inline-flex; vertical-align: middle; margin-right: 0.2rem; }
.badge-star svg { width: 14px; height: 14px; stroke: currentColor; }
.filter-icon { display: inline-flex; vertical-align: middle; margin-right: 0.35rem; }
.filter-icon svg { width: 18px; height: 18px; }
.icon-cadastro { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #e2e8f0; border-radius: 50%; }
.icon-cadastro svg { width: 32px; height: 32px; stroke: var(--gray); }
.logo-icon.icon-svg { display: inline-flex; }
.logo-icon.icon-svg svg { width: 28px; height: 28px; stroke: var(--primary); }
.spec-item { display: inline-flex; align-items: center; margin-right: 0.5rem; }
.spec-item .icon-inline svg { width: 14px; height: 14px; }
.bid-history-empty .icon.icon-svg svg { width: 48px; height: 48px; stroke: var(--gray); }

/* Vehicle cards (leilões) */
.leiloes-page { padding: 2rem 20px 3rem; }
.leiloes-filters { margin-bottom: 1.5rem; }
.leiloes-search-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; max-width: 100%; }
.leiloes-search-input { flex: 1; min-width: 180px; padding: 0.65rem 1rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; font-family: var(--font); }
.leiloes-search-select { padding: 0.65rem 1rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; font-family: var(--font); min-width: 160px; }
.leiloes-search-ano { width: 90px; padding: 0.65rem 1rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; font-family: var(--font); }
.leiloes-search-btn { padding: 0.65rem 1.25rem; white-space: nowrap; }
.filter-chips-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.filter-chips-label { font-size: 0.9rem; font-weight: 600; color: var(--gray); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.75rem; border-radius: 10px; background: #e2e8f0; color: var(--dark); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; }
.filter-chip:hover { background: var(--primary); color: var(--white); }
.filter-chip.active { background: var(--primary); color: var(--white); }
.filter-chip__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
.filter-chip__icon svg { width: 100%; height: 100%; }
.filter-chip__icon img { width: 100%; height: 100%; object-fit: contain; }
.filter-chip.active .filter-chip__icon img { filter: brightness(0) invert(1); }
.filter-chip__name { white-space: nowrap; }
.vehicles-count { margin: 1rem 0; color: var(--gray); font-size: 0.9rem; }
.leiloes-empty { text-align: center; color: var(--gray); padding: 3rem 1rem; }
.leiloes-empty a { color: var(--primary); font-weight: 500; }
@media (max-width: 640px) {
    .leiloes-search-form { flex-direction: column; align-items: stretch; }
    .leiloes-search-input { min-width: 0; }
    .leiloes-search-select { min-width: 0; }
    .leiloes-search-ano { width: 100%; }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}
.filter-bar a, .filter-bar span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.filter-bar a { background: #e2e8f0; color: var(--dark); }
.filter-bar a:hover, .filter-bar a.active { background: var(--primary); color: var(--white); }
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.vehicle-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.vehicle-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.vehicle-card .image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    overflow: hidden;
}
.vehicle-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card .badge { position: absolute; top: 8px; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.vehicle-card .badge-cat { left: 8px; background: rgba(0,0,0,0.6); color: var(--white); }
.vehicle-card .badge-time { right: 8px; background: rgba(0,0,0,0.6); color: var(--white); }
.vehicle-card .badge-destaque {
    bottom: 8px;
    left: 8px;
    top: auto;
    background: var(--primary);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
}
.vehicle-card .badge-destaque .badge-star svg { width: 12px; height: 12px; }
.vehicle-card .card-body { padding: 1rem; }
.vehicle-card .card-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.3; min-height: 2.6em; }
.vehicle-card .specs { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.75rem; }
.vehicle-card .specs span { margin-right: 0.5rem; }
.vehicle-card .price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.vehicle-card .lance-atual { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.vehicle-card .entrada-btn { background: var(--success); color: var(--white); padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.vehicle-card .actions { display: flex; gap: 0.5rem; }
.vehicle-card .actions .btn { flex: 1; font-size: 0.85rem; padding: 0.5rem; }

/* Vehicle detail page */
.vehicle-detail { max-width: 1100px; margin: 0 auto; padding: 2rem 20px; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--gray); }
.back-link:hover { color: var(--primary); }
.vehicle-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .vehicle-detail-grid { grid-template-columns: 1fr; } }
.gallery-wrap { position: relative; background: #f1f5f9; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.gallery-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.5); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; }
.thumbnails { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbnails img { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.thumbnails img.active { border-color: var(--primary); }
.info-box { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.info-box h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.info-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 0.5rem; }
.info-row span:first-child { color: var(--gray); min-width: 140px; }
.info-row .valor { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 1rem; }
.tabs a, .tabs span { padding: 0.75rem 1rem; font-weight: 500; color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs .active { color: var(--dark); border-bottom-color: var(--primary); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem 1rem; }
.spec-list div { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid #f1f5f9; }
.bid-history-empty { text-align: center; padding: 2rem; color: var(--gray); }
.bid-history-empty .icon { font-size: 3rem; opacity: 0.5; margin-bottom: 0.5rem; }
.bid-history table { width: 100%; border-collapse: collapse; }
.bid-history th, .bid-history td { padding: 0.5rem; text-align: left; border-bottom: 1px solid #e2e8f0; }

/* Vehicle detail - gallery fullscreen & arremate */
.gallery-wrap.gallery-clickable { cursor: pointer; }
.gallery-wrap.gallery-clickable:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.gallery-fullscreen-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0.9;
}
.vehicle-detail .badge-destaque {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.08) 100%);
    color: var(--primary-dark);
    border: 1px solid rgba(245,158,11,0.35);
}
.vehicle-detail .badge-destaque .badge-star svg { width: 14px; height: 14px; stroke: currentColor; }

.arremate-section {
    background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
}
.arremate-price-row {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.arremate-price-row .lance-atual { font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.arremate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.arremate-actions .btn { flex: 1; min-width: 160px; justify-content: center; }
.btn-arremate-whatsapp { background: #25d366; color: var(--white); border: none; }
.btn-arremate-whatsapp:hover { background: #20bd5a; color: var(--white); }
.btn-lance-final { background: var(--primary); color: var(--dark); border: none; }
.btn-lance-final:hover { background: var(--primary-dark); color: var(--dark); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-lance-final {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}
.modal-lance-final h3 {
    margin-bottom: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}
.modal-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray);
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #f1f5f9; color: var(--dark); }
.form-lance-final label { display: block; margin-bottom: 1.1rem; }
.form-lance-final label span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
}
.form-lance-final input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-lance-final input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-lance-final .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.form-lance-final .form-actions .btn-ghost {
    flex: 0 0 auto;
    min-width: 100px;
    background: transparent;
    color: var(--gray);
    border: none;
}
.form-lance-final .form-actions .btn-ghost:hover { background: #f1f5f9; color: var(--dark); }
.form-lance-final .form-actions .btn-lance-final-submit {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.form-lance-final .form-actions .btn-lance-final-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.form-lance-final .form-actions .btn-lance-final-submit:disabled {
    transform: none;
    opacity: 0.85;
}
.form-erro { color: #dc2626; font-size: 0.9rem; margin-top: 0.75rem; }

.fullscreen-gallery {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.fullscreen-gallery.active { opacity: 1; visibility: visible; }
.fullscreen-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.fullscreen-close:hover { background: rgba(255,255,255,0.25); }
.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.fullscreen-nav:hover { background: rgba(255,255,255,0.35); }
.fullscreen-prev { left: 16px; }
.fullscreen-next { right: 16px; }
.fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Home sections - Hero banner */
.hero {
    position: relative;
    min-height: 420px;
    background-color: #161B2D;
    background-position: center 45%;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 4rem 20px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 27, 45, 0.5) 0%, rgba(22, 27, 45, 0.78) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 20px 3rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.hero-badge .icon-inline svg { width: 16px; height: 16px; stroke: currentColor; }
.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', var(--font);
}
.hero-highlight { color: var(--primary); }
.hero p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}
.hero-buttons .btn { margin: 0; }
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}
.hero-cta .icon-inline { margin-right: 0; }
.hero-cta .icon-inline svg { width: 1.1em; height: 1.1em; stroke: currentColor; }
.btn-hero-green {
    background: #15803d;
    color: var(--white);
}
.btn-hero-green:hover {
    background: #166534;
    color: var(--white);
}
.btn-hero-outline {
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-hero-outline:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--white);
    color: var(--white);
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-stat .icon-inline svg { width: 18px; height: 18px; stroke: var(--primary); opacity: 0.95; }
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* Hero leilões – mesmo banner do index, minimalista */
.hero--leiloes {
    min-height: 320px;
    padding: 3rem 20px 56px;
}
.hero-banner-box {
    background: rgba(0, 0, 0, 0.45);
    padding: 1.75rem 2.5rem;
    border-radius: 12px;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.hero-banner-box h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--white);
}
.hero-banner-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 380px;
        padding: 2.5rem 16px 64px;
    }
    .hero-inner {
        padding-bottom: 1.5rem;
    }
    .hero-stats {
        gap: 1rem;
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.6rem; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .hero-wave {
        height: 48px;
    }
    .hero--leiloes { min-height: 280px; padding: 2.5rem 16px 56px; }
    .hero-banner-box { padding: 1.25rem 1.5rem; }
}
.featured-section h2 { font-size: 1.5rem; margin: 2rem 0 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.featured-section .ver-todos { font-size: 0.9rem; color: var(--primary); font-weight: 500; }
.how-section { padding: 3rem 20px; background: var(--gray-light); }
.how-section .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 2rem auto 0; }
.how-step { background: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.how-step .num { display: inline-block; background: var(--primary); color: var(--dark); width: 36px; height: 36px; border-radius: 8px; text-align: center; line-height: 36px; font-weight: 700; margin-bottom: 0.75rem; }

/* Como Funciona - layout moderno */
.how-modern { padding: 3rem 20px 4rem; }
.how-steps-list { display: flex; flex-direction: column; gap: 2.5rem; max-width: 960px; margin: 0 auto; }
.how-step-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); align-items: stretch; }
.how-step-card--image-right .how-step-card__content { order: 1; }
.how-step-card--image-right .how-step-card__media { order: 2; }
.how-step-card--image-left .how-step-card__content { order: 2; }
.how-step-card--image-left .how-step-card__media { order: 1; }
.how-step-card__content { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.how-step-card__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary); color: var(--dark); font-weight: 800; font-size: 1.1rem; border-radius: 12px; margin-bottom: 1rem; }
.how-step-card__title { font-size: 1.5rem; color: var(--dark); margin: 0 0 0.75rem; font-weight: 700; line-height: 1.3; }
.how-step-card__text { font-size: 1rem; color: var(--gray); line-height: 1.6; margin: 0; }
.how-step-card__media { min-height: 220px; background: #f1f5f9; }
.how-step-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-step-card__icon-wrap { width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: var(--primary); padding: 2rem; }
.how-step-card__icon-wrap svg { opacity: 0.9; }
@media (max-width: 768px) {
    .how-step-card { grid-template-columns: 1fr; }
    .how-step-card--image-right .how-step-card__media { order: 1; }
    .how-step-card--image-right .how-step-card__content { order: 2; }
    .how-step-card--image-left .how-step-card__media { order: 1; }
    .how-step-card--image-left .how-step-card__content { order: 2; }
    .how-step-card__media { min-height: 200px; }
    .how-step-card__icon-wrap { min-height: 200px; }
}
.why-section { padding: 3rem 20px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 900px; margin: 2rem auto 0; }
.why-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.why-card .check { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.contact-card { background: var(--gray-light); padding: 1.5rem; border-radius: 12px; text-align: center; }
.contact-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-card .icon.icon-svg svg { width: 32px; height: 32px; stroke: var(--primary); }
.contact-card a { color: var(--primary); font-weight: 500; }
.whatsapp-section { text-align: center; margin: 2rem 0; padding: 2rem; background: #e8f5e9; border-radius: 12px; }
.whatsapp-section .btn { background: #25d366; color: var(--white); padding: 0.75rem 1.5rem; border-radius: 8px; }

/* Contato - layout moderno */
.contact-page { padding: 3rem 20px 4rem; background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%); min-height: 60vh; }
.contact-page__container { max-width: 720px; margin: 0 auto; }
.contact-page__header { text-align: center; margin-bottom: 2.5rem; }
.contact-page__title { font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.contact-page__subtitle { font-size: 1.05rem; color: var(--gray); font-weight: 400; }
.contact-whatsapp-card { display: flex; align-items: flex-start; gap: 1.5rem; background: var(--white); border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.contact-whatsapp-card__icon { flex-shrink: 0; width: 56px; height: 56px; background: rgba(37, 211, 102, 0.12); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #25d366; }
.contact-whatsapp-card__content { flex: 1; min-width: 0; }
.contact-whatsapp-card__title { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.contact-whatsapp-card__text { font-size: 0.95rem; color: var(--gray); line-height: 1.6; margin-bottom: 1.25rem; }
.contact-whatsapp-card__btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #25d366; color: var(--white); font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 10px; font-size: 0.95rem; transition: background 0.2s, transform 0.15s; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35); }
.contact-whatsapp-card__btn:hover { background: #20bd5a; transform: translateY(-1px); }
.contact-cards--modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.contact-card--modern { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--white); border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.75rem 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-card--modern:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); }
.contact-card--static { cursor: default; pointer-events: none; }
.contact-card--static:hover { border-color: #e2e8f0; box-shadow: none; }
.contact-card__icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(245, 158, 11, 0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); }
.contact-card__icon-wrap svg { width: 24px; height: 24px; }
.contact-card__icon-wrap img { width: 24px; height: 24px; object-fit: contain; }
.contact-card__label { font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.contact-card__value { font-size: 1rem; font-weight: 600; color: var(--dark); }
a.contact-card--modern .contact-card__value { color: var(--primary); }
a.contact-card--modern:hover .contact-card__value { color: var(--primary-dark); }
.contact-location-note { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.contact-location-note__title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.contact-location-note__text { font-size: 0.9rem; color: var(--gray); }
@media (max-width: 768px) {
    .contact-whatsapp-card { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
    .contact-cards--modern { grid-template-columns: 1fr; }
}
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Admin - Tema escuro, header no topo */
.admin-layout { display: flex; flex-direction: column; min-height: 100vh; background: #0f172a; color: #e2e8f0; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1.5rem;
    min-height: 76px;
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.1rem;
}
.admin-header-logo {
    max-height: 72px;
    height: 72px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: brightness(1.05);
}
.admin-header-brand-text { color: #f8fafc; }
.admin-header-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--primary);
    color: #0f172a;
    border-radius: 4px;
    margin-left: 0.25rem;
}
.admin-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.admin-nav-link:hover {
    background: #334155;
    color: #f8fafc;
}
.admin-nav-link--outline {
    color: var(--primary);
}
.admin-nav-link--outline:hover {
    background: rgba(255, 193, 7, 0.15);
    color: #fcd34d;
}
.admin-nav-link--danger {
    color: #f87171;
}
.admin-nav-link--danger:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}
.admin-header-user {
    font-size: 0.85rem;
    color: #94a3b8;
}
.admin-header-user-name {
    padding: 0.35rem 0.6rem;
    background: #334155;
    color: #e2e8f0;
    border-radius: 6px;
    font-weight: 500;
}
.admin-header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}
.admin-header-hamburger:hover {
    background: #475569;
}
.admin-header-hamburger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.admin-header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-main {
    flex: 1;
    padding: 1.5rem 1.5rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.admin-main h1 { margin-bottom: 0.5rem; font-size: 1.5rem; color: #f8fafc; }
.admin-main > p:first-of-type { color: #94a3b8; font-size: 0.95rem; margin-bottom: 1.5rem; }
/* Dashboard centralizado */
.admin-main--center { text-align: center; }
.admin-dashboard-wrap { max-width: 900px; margin: 0 auto; }
.admin-dashboard-wrap h1 { margin-bottom: 0.25rem; }
.admin-dashboard-sub { color: #94a3b8; font-size: 0.95rem; margin-bottom: 1.5rem; }
.admin-main--center .admin-stats { justify-content: center; }
.admin-quick-actions {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #334155;
    text-align: center;
}
.admin-quick-actions-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}
.admin-quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.admin-quick-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    min-width: 130px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s;
}
.admin-quick-card:hover {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.06);
    color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.admin-quick-card:hover .admin-quick-icon {
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
}
.admin-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #334155;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}
.admin-quick-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.admin-quick-label { line-height: 1.2; }
.admin-dashboard-users {
    margin-top: 2.5rem;
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}
.admin-dashboard-users h2 { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 1rem; }
.admin-dashboard-users .admin-table { margin: 0 auto 1rem; }
.admin-dashboard-users > p { text-align: center; }
.admin-dashboard-users .btn { margin-top: 0.5rem; }
.admin-table--compact { max-width: 700px; margin-left: auto !important; margin-right: auto !important; }
/* Configurações – centralizado e em grid */
.admin-config-wrap { max-width: 800px; margin: 0 auto; text-align: left; }
.admin-config-wrap h1 { margin-bottom: 0.25rem; }
.admin-config-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.admin-config-grid--2 { grid-template-columns: 1fr 1fr; }
.admin-config-block {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.25rem;
}
.admin-config-title {
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 0 0.75rem 0;
}
.admin-config-title--section { margin-top: 1rem; margin-bottom: 0.75rem; }
.admin-config-preview { margin: 0 0 0.75rem 0; }
.admin-config-preview img { max-height: 60px; width: auto; display: block; }
.admin-config-preview--banner img { max-width: 100%; max-height: 120px; object-fit: contain; border-radius: 8px; }
.admin-form--config .form-group { margin-bottom: 0; }
.admin-form--config input, .admin-form--config select, .admin-form--config textarea { max-width: 100%; }
.admin-form-group--full { grid-column: 1 / -1; }
.admin-config-actions { margin-top: 1rem; }
@media (max-width: 640px) {
    .admin-config-grid--2 { grid-template-columns: 1fr; }
    .admin-form-group--full { grid-column: 1; }
}
/* Páginas admin centralizadas e cards modernos */
.admin-page-wrap { max-width: 900px; margin: 0 auto; text-align: left; }
.admin-page-wrap h1 { margin-bottom: 0.25rem; }
.admin-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.admin-cards--categorias { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.admin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-card:hover {
    border-color: #475569;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.admin-card-order {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
}
.admin-card-order--icon {
    padding: 10px;
}
.admin-card-order--icon svg {
    width: 100%;
    height: 100%;
    max-width: 24px;
    max-height: 24px;
    display: block;
}
.admin-card-body { flex: 1; min-width: 0; }
.admin-card-title { margin: 0 0 0.2rem 0; font-size: 1.05rem; color: #f8fafc; }
.admin-card-meta { margin: 0 0 0.5rem 0; font-size: 0.85rem; color: #64748b; }
.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
}
.admin-badge--success { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.admin-badge--muted { background: #334155; color: #94a3b8; }
.admin-card-actions { flex-shrink: 0; }
/* Página Usuários – cards com avatar */
.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.admin-page-head .btn { flex-shrink: 0; }
.admin-cards--usuarios { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.admin-card--user { flex-direction: row; align-items: flex-start; }
.admin-card-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.2);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
}
.admin-card-meta a { color: #94a3b8; text-decoration: none; }
.admin-card-meta a:hover { color: var(--primary); }
.admin-card-meta--small { font-size: 0.8rem; margin-top: 0.15rem; }
.admin-card-date { margin: 0.5rem 0 0 0; font-size: 0.8rem; color: #64748b; }
.admin-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #1e293b;
    border: 1px dashed #475569;
    border-radius: 12px;
    margin-top: 1.5rem;
}
.admin-empty-state p { color: #94a3b8; margin-bottom: 1rem; }
.admin-form-grid--2 { grid-template-columns: 1fr 1fr; }
.admin-form-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .admin-form-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .admin-form-grid--2 { grid-template-columns: 1fr; }
    .admin-form-grid--3 { grid-template-columns: 1fr; }
}
/* Formulário editar – layout em card */
.admin-form-wrap { max-width: 520px; }
.admin-form-wrap--wide { max-width: 640px; }
.admin-form--card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.admin-form--card .form-group { margin-bottom: 0; }
.admin-form--card input, .admin-form--card select, .admin-form--card textarea { max-width: 100%; }
.admin-form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-group--checkbox { grid-column: 1 / -1; }
.admin-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e2e8f0;
}
.admin-check-wrap input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
/* Tabelas no tema escuro */
.admin-table { width: 100%; border-collapse: collapse; background: #1e293b; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.2); border: 1px solid #334155; }
.admin-table th, .admin-table td { padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid #334155; color: #e2e8f0; }
.admin-table th { background: #0f172a; font-weight: 600; font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: #334155; }
.admin-table tbody tr:last-child td { border-bottom: none; }
/* Formulários no tema escuro */
.admin-form .form-group { margin-bottom: 1rem; }
.admin-form label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: #e2e8f0; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; max-width: 400px; padding: 0.5rem 0.75rem;
    border: 1px solid #475569; border-radius: 6px;
    background: #1e293b; color: #f8fafc;
}
.admin-form input::placeholder, .admin-form textarea::placeholder { color: #64748b; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}
.admin-form select option { background: #1e293b; color: #f8fafc; }
.admin-form textarea { min-height: 100px; }
.admin-form .help { font-size: 0.8rem; color: #94a3b8; margin-top: 0.25rem; }
.admin-actions .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }
.photo-preview { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #475569; }
.upload-area { border: 2px dashed #475569; border-radius: 8px; padding: 1rem; text-align: center; margin-top: 0.5rem; color: #94a3b8; }

/* Página formulário veículo – centralizado e moderno */
.admin-main--form { display: flex; flex-direction: column; align-items: center; }
.admin-form-page-wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.admin-form-page-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; color: #f8fafc; }
.admin-form--veiculo { padding: 2rem; }
.admin-form-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #334155; }
.admin-form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.admin-form-section__title { font-size: 1rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.admin-form-section__help { font-size: 0.85rem; color: #64748b; margin: -0.5rem 0 1rem 0; }
.admin-form--veiculo .admin-form-grid { gap: 1rem 1.5rem; }
.admin-form--veiculo .form-group { margin-bottom: 0; }
.form-group--full { grid-column: 1 / -1; }
.form-group--checkbox { grid-column: 1 / -1; }
.admin-form--veiculo input[type="text"],
.admin-form--veiculo input[type="number"],
.admin-form--veiculo input[type="datetime-local"],
.admin-form--veiculo select,
.admin-form--veiculo textarea { max-width: 100%; }
.admin-form-photos-count { font-size: 0.9rem; color: #94a3b8; margin-bottom: 0.75rem; }
.admin-form-photos-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.admin-form-photos-preview .photo-preview { width: 100px; height: 75px; object-fit: cover; border-radius: 8px; }
.admin-form-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #334155; display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 640px) {
    .form-group--full { grid-column: 1; }
    .admin-form--veiculo { padding: 1.25rem; }
}
.upload-area input { max-width: 100%; }
/* Alertas no admin escuro */
.admin-main .alert-success { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.admin-main .alert-error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
/* Botões no admin escuro */
.admin-main .btn-primary { background: var(--primary); color: #0f172a; border-color: var(--primary); }
.admin-main .btn-primary:hover { background: #fcd34d; color: #0f172a; }
.admin-main .btn-outline { background: transparent; color: #94a3b8; border-color: #475569; }
.admin-main .btn-outline:hover { background: #334155; color: #f8fafc; border-color: #64748b; }
.admin-btn-sm { padding: 0.35rem 0.75rem !important; }
.admin-stats { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.admin-stat-card {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid #334155;
}
.admin-stat-card strong { color: #94a3b8; font-size: 0.9rem; }
.admin-stat-num { font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; color: #f8fafc; }
.admin-empty { color: #94a3b8; }

/* Admin Veículos – layout moderno em cards */
.admin-page-head--veiculos { margin-bottom: 1.5rem; }
.admin-page-sub { color: #94a3b8; font-size: 0.95rem; margin: 0.25rem 0 0 0; }
.admin-btn-new { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; }
.admin-btn-new__icon { font-size: 1.2rem; line-height: 1; }
.admin-veiculos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.admin-veiculo-card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.admin-veiculo-card:hover { border-color: #475569; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.admin-veiculo-card__thumb { position: relative; aspect-ratio: 16/10; background: #0f172a; }
.admin-veiculo-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-veiculo-card__badges { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-veiculo-badge { font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-veiculo-badge--destaque { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.admin-veiculo-badge--inativo { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.admin-veiculo-card__body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.admin-veiculo-card__title { margin: 0; font-size: 1rem; font-weight: 600; color: #f8fafc; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-veiculo-card__meta { margin: 0; font-size: 0.85rem; color: #94a3b8; }
.admin-veiculo-card__price { margin: 0.25rem 0 0 0; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.admin-veiculo-card__actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #334155; }
.admin-veiculo-card__btn { flex: 1; text-align: center; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.admin-veiculo-card__btn--outline { background: transparent; color: #94a3b8; border: 1px solid #475569; }
.admin-veiculo-card__btn--outline:hover { background: #334155; color: #f8fafc; }
.admin-veiculo-card__btn--primary { background: var(--primary); color: #0f172a; border: none; }
.admin-veiculo-card__btn--primary:hover { background: #fcd34d; }

@media (max-width: 768px) {
    .admin-header {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        min-height: 60px;
    }
    .admin-header-brand {
        flex: 1;
        min-width: 0;
    }
    .admin-header-logo {
        max-height: 48px;
        height: 48px;
    }
    .admin-header-badge {
        display: none;
    }
    .admin-header-hamburger {
        display: flex;
        flex-shrink: 0;
    }
    .admin-header-nav-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e293b;
        border-bottom: 1px solid #334155;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .admin-header.is-open .admin-header-nav-wrap {
        max-height: 80vh;
        opacity: 1;
        overflow-y: auto;
    }
    .admin-header-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0;
    }
    .admin-nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid #334155;
    }
    .admin-header-user {
        padding: 0.75rem 1rem;
        border-top: 1px solid #334155;
    }
}
