/* Fundo radial: Imita luz de estúdio (branco no centro, gelo nas pontas) */
body {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%) !important;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Faixa vermelha premium com degradê vibrante */
.brand-strip { 
    background: linear-gradient(90deg, #ff2a5f 0%, #e11d48 100%);
    transition: all 0.4s ease;
}

/* =========================================
   COMPORTAMENTO E SHADOWBACKGROUND PREMIUM
   ========================================= */
.hover-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff;
    
    /* SHADOWBACKGROUND: Sombra ultra-suave que dá muita profundidade sem pesar */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.03) !important;
                
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transform: translateY(0);
}

/* No Hover: O card levanta e a sombra expande dramaticamente */
.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 
                0 2px 6px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(13, 110, 253, 0.15) !important; /* Borda ganha tom azulado sutil */
}

/* Faixa vermelha engrossa e ganha leve brilho no hover */
.hover-card:hover .brand-strip {
    height: 8px !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Balão “Atualizado 2026” (Simplo / Dicatec) — mesmo layout dos demais cards */
@keyframes balao-atualizado-pular {
    0%,
    100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-11px);
    }
    35% {
        transform: translateY(0);
    }
    48% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(0);
    }
}

.balao-atualizado-2026 {
    position: absolute;
    top: 0.95rem;
    right: 0.6rem;
    z-index: 4;
    width: 4.85rem;
    padding: 0.48rem 0.4rem 0.52rem;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #e11d48 0%, #ff2a5f 100%);
    border-radius: 50% 50% 50% 50% / 45% 45% 52% 52%;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 6px 18px rgba(225, 29, 72, 0.38);
    pointer-events: none;
    animation: balao-atualizado-pular 1.45s ease-in-out infinite;
}

.balao-atualizado-2026--fase-b {
    animation-delay: 0.48s;
}

.balao-atualizado-2026__txt {
    display: block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    font-size: 9px;
}

.balao-atualizado-2026::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5px;
    background: linear-gradient(145deg, #e11d48 0%, #be123c 100%);
    border-radius: 0 0 3px 0;
    transform: rotate(45deg);
    box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .balao-atualizado-2026,
    .balao-atualizado-2026--fase-b {
        animation: none;
    }
}

/* Container da logo com fundo super discreto para emoldurar a imagem */
.img-container {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}

.hover-card:hover .img-container {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

/* Ajuste e animação "Bounce" das Logos */
.logo-img {
    max-height: 85px;
    object-fit: contain;
    /* Curva de transição elástica (dá um pulinho) */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.hover-card:hover .logo-img {
    transform: scale(1.12) translateY(-4px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

/* =========================================
   BOTÃO "ACESSAR" (Moderno, Limpo e com Glow)
   ========================================= */
.btn-entrar {
    /* Degradê azul vibrante e contínuo */
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: white;
    
    /* Sombra colorida (Glow) projetada - mais elegante que o bloco 3D */
    box-shadow: 0 6px 15px -3px rgba(13, 110, 253, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
                
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Efeito de hover no botão acionado pelo card */
.hover-card:hover .btn-entrar {
    background: linear-gradient(135deg, #2b7dfa 0%, #0d6efd 100%);
    /* O botão levanta e o glow azul expande */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(13, 110, 253, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Efeito Active (Clique natural) */
.btn-entrar:active {
    transform: translateY(2px) !important;
    box-shadow: 0 3px 8px -2px rgba(13, 110, 253, 0.5),
                inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Animação elástica da seta no hover */
.btn-entrar i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-card:hover .btn-entrar i {
    transform: translateX(6px);
}

/* ========== Card buscador (buscaplaca.png + animação) ========== */
.card-busca-placa {
    overflow: visible !important;
}

.card-busca-placa .card-body {
    overflow: hidden;
    border-radius: 1rem;
}

.busca-placa-art-col {
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #fff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

@media (min-width: 992px) {
    .busca-placa-art-col {
        border-bottom: none;
        border-left: 1px solid rgba(226, 232, 240, 0.9);
    }
}

.busca-placa-titulo {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    letter-spacing: -0.02em;
}

.busca-placa-sub {
    font-size: 0.95rem;
    line-height: 1.35;
}

.busca-placa-form {
    max-width: 32rem;
}

.busca-placa-art-wrap {
    position: relative;
    min-height: 10rem;
}

@media (min-width: 992px) {
    .busca-placa-art-wrap {
        min-height: 11rem;
        padding-bottom: 0.35rem;
    }
}

.busca-placa-art-glow {
    position: absolute;
    width: min(85%, 220px);
    height: min(85%, 180px);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(13, 110, 253, 0.22) 0%, transparent 70%);
    filter: blur(12px);
    transform: translate(-5%, 15%) rotate(-12deg);
    pointer-events: none;
    z-index: 0;
}

.busca-placa-art-inner {
    position: relative;
    z-index: 1;
    animation: busca-placa-flutuar 3.8s ease-in-out 1.2s infinite;
}

.busca-placa-art-img {
    display: block;
    max-width: min(92%, 230px);
    margin-top: 20px;
    margin-left: 38px;
    width: auto;
    height: auto;
    transform: rotate(-14deg);
    filter: drop-shadow(12px 18px 28px rgba(15, 23, 42, 0.18)) drop-shadow(0 4px 8px rgba(225, 29, 72, 0.12));
    transform-origin: 50% 40%;
    animation: busca-placa-queda 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Sem legenda sob a arte: só imagem + campo ao lado */
@media (min-width: 992px) {
    .busca-placa-art-inner {
        margin-bottom: 0.25rem;
    }
}

.card-busca-placa.hover-card:hover .busca-placa-art-img {
    filter: drop-shadow(14px 22px 32px rgba(15, 23, 42, 0.22)) drop-shadow(0 4px 10px rgba(225, 29, 72, 0.15));
}

.card-busca-placa.hover-card:hover .busca-placa-art-inner {
    animation-play-state: paused;
}

@keyframes busca-placa-queda {
    0% {
        opacity: 0;
        transform: translate3d(35%, -55%, 0) rotate(-32deg) scale(0.78);
    }
    58% {
        opacity: 1;
        transform: translate3d(-6%, 12%, 0) rotate(-6deg) scale(1.04);
    }
    78% {
        transform: translate3d(4%, -6%, 0) rotate(-16deg) scale(0.98);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(-14deg) scale(1);
    }
}

@keyframes busca-placa-flutuar {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-14deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(-11deg);
    }
}

/* Mobile: placa na horizontal (evita cortar nas bordas do card) */
@keyframes busca-placa-queda-mob {
    0% {
        opacity: 0;
        transform: translate3d(0, -42%, 0) scale(0.82) rotate(0deg);
    }
    55% {
        opacity: 1;
        transform: translate3d(0, 10%, 0) scale(1.04) rotate(0deg);
    }
    78% {
        transform: translate3d(0, -5%, 0) scale(0.99) rotate(0deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
}

@keyframes busca-placa-flutuar-mob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .busca-placa-art-img {
        animation: none;
        transform: rotate(-14deg);
    }

    .busca-placa-art-inner {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 991.98px) {
    .busca-placa-art-img {
        transform: none;
    }
}
@media (max-width: 991.98px) {
    .busca-placa-art-img {
        max-width: min(88vw, 320px);
        transform: rotate(0deg) !important; /* <-- Garante a placa reta na horizontal */
        transform-origin: center center;
        animation: busca-placa-queda-mob 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
        margin-left: auto;
        margin-right: auto;
    }

  .busca-placa-art-img {
        max-width: min(88vw, 320px);
        transform: none;
        transform-origin: center center;
        animation: busca-placa-queda-mob 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
        
        /* 👇 AJUSTE DE CENTRALIZAÇÃO AQUI 👇 */
        margin-left: auto;
        margin-right: auto;
    }

    .busca-placa-art-inner {
        animation: busca-placa-flutuar-mob 4.2s ease-in-out 1s infinite;
    }

    .busca-placa-art-wrap {
        min-height: auto;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Buscador de placa — lista e modal de materiais */
.material-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.material-thumb-placeholder {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.material-item-inner {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.material-item-inner:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.material-item-btn:focus .material-item-inner {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.material-modal-iframe {
    min-height: min(78vh, 720px);
    border: 1px solid #dee2e6 !important;
}

#modalMaterialViewer .modal-content {
    background: #f8fafc;
}

#modalMaterialViewer .modal-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef !important;
}

/* Painel resultado da placa (oficina) */
.resultado-veiculo-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

/* Cabeçalho resultado: faixa vermelha + branco + azul (padrão dos cards) */
.resultado-veiculo-card .rv-header {
    background: #ffffff;
    color: #0f172a;
}

.resultado-veiculo-card .rv-header-strip {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #ff2a5f 0%, #e11d48 50%, #f43f5e 100%);
    box-shadow: 0 2px 12px rgba(225, 29, 72, 0.35);
}

.resultado-veiculo-card .rv-header-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

@media (min-width: 768px) {
    .resultado-veiculo-card .rv-header-body {
        padding: 1.35rem 1.5rem 1.5rem;
    }
}

.resultado-veiculo-card .rv-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.resultado-veiculo-card .rv-identidade-panel {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 55%);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border-left: 4px solid #0d6efd;
}

@media (min-width: 992px) {
    .resultado-veiculo-card .rv-identidade-panel {
        padding: 1.15rem 1.35rem;
    }
}

.resultado-veiculo-card .rv-identidade-marca {
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.resultado-veiculo-card .rv-identidade-fipe {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d4ed8;
    line-height: 1.4;
}

.resultado-veiculo-card .rv-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    line-height: 1.2;
}

.resultado-veiculo-card .rv-pill--azul {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.resultado-veiculo-card .rv-pill--vermelho {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.resultado-veiculo-card .rv-header-chips {
    border-top: 1px solid #e2e8f0;
}

.resultado-veiculo-card .rv-chip.rv-chip--outline {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 2rem;
}

.resultado-veiculo-card .rv-logo-box {
    border-color: rgba(13, 110, 253, 0.2) !important;
    background: #f8fafc;
}

.resultado-veiculo-card .rv-logo-box--header {
    min-width: 5.25rem;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.06);
}

.resultado-veiculo-card .rv-identidade-logo-img {
    display: block;
    max-height: 5.5rem;
    max-width: 6.5rem;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.resultado-veiculo-card .rv-identidade-logo-placeholder {
    min-width: 4.5rem;
    min-height: 4.25rem;
}

/* Placa: arte em placa.png (sem numeração) + texto por cima */
.placa-mercosul-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 10.5rem;
    min-height: 3.35rem;
    padding: 0.5rem 1.35rem 0.45rem;
    background-color: #e8ecf1;
    background-image: url('placa.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    filter: drop-shadow(0 2px 4px rgba(13, 110, 253, 0.08));
}

.placa-mercosul-text {
    display: block;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI", monospace;
    font-weight: 1200;
    font-size: clamp(2.00rem, 3.2vw, 1.2rem);
    letter-spacing: 0.14em;
    line-height: 1;
    color: #0f172a;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 1px rgba(255, 255, 255, 0.8);
    user-select: none;
    margin-top: 0.8rem;
}

.rv-spec-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-spec-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.rv-spec-tile .rv-spec-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.rv-spec-tile .rv-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.rv-spec-tile .rv-spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.rv-fipe-card {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 35%, #fff 100%);
    border: 1px solid #fde68a;
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
}

.rv-fipe-valor {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #b45309;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.rv-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
}
@media (max-width: 575.98px) {
    /* Diminui o espaço ao redor do ícone do carro */
    .busca-placa-form .input-group-text {
        padding-left: 1rem !important;
        padding-right: 0.5rem !important;
    }
    
    .busca-placa-form .input-group-text i {
        font-size: 1.1rem; /* Ícone levemente menor */
    }

    /* Reduz a fonte do input para o texto caber sem cortar */
    .busca-placa-form .form-control {
        font-size: 0.95rem !important;
        padding-left: 0.5rem !important;
    }

    /* Ajusta o botão de buscar (tamanho e espaçamento) */
    .busca-placa-form .btn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.85rem !important;
        gap: 0.3rem !important; /* Aproxima o texto da lupa */
    }

/* Acordeão: dados / FIPE minimizados */
.accordion-rv .accordion-item {
    background: #fff;
}

.accordion-rv .accordion-button {
    font-size: 1rem;
    box-shadow: none !important;
}

.accordion-rv .accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.06);
    color: #0f172a;
}

.accordion-rv .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

/* Rodapé: manuais sempre em destaque (foco do sistema) */
.rv-footer-manuais {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 45%, #fff 100%) !important;
    border-top: 3px solid #0d6efd !important;
    box-shadow: 0 -6px 24px rgba(13, 110, 253, 0.08);
}