.modal-novidades[hidden] { display: none !important; }

.modal-novidades {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 15, 11, .72);
    backdrop-filter: blur(8px);
    animation: novidades-fundo .2s ease-out;
}

.cartao-novidades {
    position: relative;
    width: min(100%, 540px);
    max-height: min(90vh, 700px);
    overflow: auto;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #f3f8f5 100%);
    color: #18251e;
    box-shadow: 0 28px 80px rgba(0,0,0,.35);
    animation: novidades-cartao .28s cubic-bezier(.2,.8,.2,1);
}

.selo-novidades {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dff6e9;
    color: #08783f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cartao-novidades h2 { margin: 16px 44px 8px 0; font-size: clamp(25px, 5vw, 34px); line-height: 1.08; }
.resumo-novidades { margin: 0; color: #58645d; line-height: 1.55; }
.lista-novidades { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.lista-novidades li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px; border: 1px solid #dfe9e3; border-radius: 14px; background: rgba(255,255,255,.75); }
.lista-novidades li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #0d8b4b; color: #fff; font-size: 13px; }
.lista-novidades strong, .lista-novidades small { display: block; }
.lista-novidades strong { margin-bottom: 3px; font-size: 15px; }
.lista-novidades small { color: #647169; font-size: 13px; line-height: 1.4; }

.fechar-novidades { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e7eee9; color: #36433b; font-size: 25px; line-height: 1; cursor: pointer; }
.confirmar-novidades { width: 100%; min-height: 50px; border: 0; border-radius: 13px; background: #08783f; color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 9px 24px rgba(8,120,63,.24); }
.fechar-novidades:hover { background: #d8e3dc; }
.confirmar-novidades:hover { background: #066635; transform: translateY(-1px); }
.fechar-novidades:focus-visible, .confirmar-novidades:focus-visible { outline: 3px solid #f4b400; outline-offset: 3px; }

@keyframes novidades-fundo { from { opacity: 0; } }
@keyframes novidades-cartao { from { opacity: 0; transform: translateY(18px) scale(.97); } }

@media (max-width: 560px) {
    .modal-novidades { padding: 12px; }
    .cartao-novidades { padding: 26px 20px 20px; border-radius: 19px; }
    .cartao-novidades h2 { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .modal-novidades, .cartao-novidades { animation: none; }
    .confirmar-novidades:hover { transform: none; }
}
