/* pop-up de novidades: cabeçalho, corpo e rodapé separados por linhas finas */
.nv-fundo { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1.1rem; background: rgba(15, 23, 42, 0.5); }
.nv-caixa { display: flex; flex-direction: column; width: min(58rem, 100%); max-height: 92vh; background: #fff; border-radius: 18px; box-shadow: 0 16px 48px rgba(15, 23, 42, 0.25); --nv-cor: #2563eb; --nv-fundo: #eff6ff; overflow: hidden; }
.nv-caixa.nv-alerta { --nv-cor: #d97706; --nv-fundo: #fffbeb; }
.nv-caixa.nv-critico { --nv-cor: #dc2626; --nv-fundo: #fef2f2; }
.nv-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.75rem 1.2rem; border-bottom: 2px solid var(--nv-cor); background: #fff; }
.nv-cab-texto { min-width: 0; }
.nv-tipo { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--nv-cor); }
.nv-tipo i { font-size: 1.15rem; line-height: 1; }
.nv-titulo { margin: 0; font-size: 1.55rem; font-weight: 600; line-height: 1.3; color: #2d3748; }
.nv-x { flex: 0 0 auto; border: 0; background: transparent; padding: 0 0.2rem; font-size: 1.7rem; line-height: 1; color: #334155; cursor: pointer; }
.nv-x:hover { color: #0f172a; }
.nv-texto { flex: 1 1 auto; min-height: 9rem; overflow: auto; padding: 1.2rem 1.75rem; font-size: 0.98rem; line-height: 1.65; color: #334155; }
.nv-img { display: block; max-width: 100%; max-height: 22rem; margin-top: 1rem; border: 1px solid #e2e8f0; border-radius: 10px; object-fit: contain; cursor: zoom-in; }
.nv-zoom { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, 0.82); cursor: zoom-out; }
.nv-zoom img { max-width: 96vw; max-height: 94vh; border-radius: 6px; background: #fff; }
.nv-link { margin: 0.9rem 0 0; word-break: break-all; }
.nv-rodape { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.75rem 1.2rem; border-top: 1px solid #dbe4ee; }
.nv-contador { font-size: 0.85rem; color: #64748b; }
.nv-erro { font-size: 0.85rem; color: #dc2626; }
.nv-ok { margin-left: auto; padding: 0.7rem 1.6rem; border: 0; border-radius: 12px; font-size: 1rem; font-weight: 600; color: #fff; background: #4c1d95; cursor: pointer; transition: background 0.15s; }
.nv-ok:hover { background: #5b21b6; animation: none; transform: translateY(-1px); }
.nv-ok:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.nv-ok:disabled { opacity: 0.6; cursor: wait; }
.nv-selo { margin-left: auto; min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
@media (max-width: 560px) {
  .nv-cab { padding: 1.1rem 1.1rem 0.9rem; }
  .nv-titulo { font-size: 1.25rem; }
  .nv-texto { padding: 1rem 1.1rem; }
  .nv-rodape { flex-wrap: wrap; padding: 0.9rem 1.1rem 1rem; }
  .nv-ok { width: 100%; margin-left: 0; order: 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .nv-caixa { animation: nv-entra 0.15s ease-out; }
  .nv-ok { animation: nv-pulso 2.2s ease-out 0.8s infinite; }
  @keyframes nv-pulso { 0% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.55); } 70% { box-shadow: 0 0 0 14px rgba(109, 40, 217, 0); } 100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0); } }
  @keyframes nv-entra { from { transform: translateY(6px); } }
}

/* etiqueta de tipo nas telas (o tema deixa as etiquetas padrão todas roxas) */
.nv-tag { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #dbeafe; color: #1d4ed8; }
.nv-tag-alerta { background: #fef3c7; color: #b45309; }
.nv-tag-critico { background: #fee2e2; color: #b91c1c; }
