/* Aviso de novidades (novidades.js). Usa os tokens do app (--sh-*): segue o tema claro/escuro. */
.nv-fundo{
  --nv-c1:#6c4dff; --nv-c2:#b45309; --nv-c3:#0f766e;
  position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(15,15,25,.48);
  opacity:0;transition:opacity .2s ease;
}
html[data-tema="escuro"] .nv-fundo{--nv-c1:#a594ff;--nv-c2:#fbbf24;--nv-c3:#2dd4bf;background:rgba(4,7,12,.66)}
.nv-fundo.nv-aberto{opacity:1}
.nv-modal{
  position:relative;box-sizing:border-box;width:100%;max-width:440px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;
  background:var(--sh-surface,#fff);color:var(--sh-text,#16161d);
  border:1px solid var(--sh-border,#ececf1);border-radius:20px;
  box-shadow:0 24px 64px rgba(10,10,30,.28),0 2px 8px rgba(10,10,30,.12);
  padding:28px 28px 24px;
  transform:translateY(10px) scale(.98);transition:transform .26s var(--sh-ease,cubic-bezier(.2,.8,.2,1));
}
.nv-fundo.nv-aberto .nv-modal{transform:none}
.nv-fechar{
  position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:10px;
  display:grid;place-items:center;background:transparent;color:var(--sh-text-3,#6b6b78);border:0;cursor:pointer;
}
.nv-fechar:hover{background:var(--sh-hover,#f4f4f7);color:var(--sh-text,#16161d)}
.nv-titulo{margin:0 44px 6px 0;font-family:'Sora',sans-serif;font-size:1.375rem;line-height:1.25;font-weight:700;letter-spacing:-.02em;color:var(--sh-text,#16161d)}
.nv-sub{margin:0 0 20px;font-size:.95rem;line-height:1.5;color:var(--sh-text-2,#3f3f4b)}
.nv-lista{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:4px}
.nv-item{
  display:flex;align-items:flex-start;gap:14px;text-align:left;
  padding:12px;margin:0 -12px;width:calc(100% + 24px);border:0;border-radius:14px;background:transparent;color:inherit;cursor:pointer;
  font:inherit;transition:background .15s ease;
}
.nv-item:hover{background:var(--sh-hover,#f4f4f7)}
.nv-ico{
  flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  color:var(--nv-cor);background:color-mix(in srgb,var(--nv-cor) 13%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nv-cor) 22%,transparent);
}
.nv-i1{--nv-cor:var(--nv-c1)} .nv-i2{--nv-cor:var(--nv-c2)} .nv-i3{--nv-cor:var(--nv-c3)}
.nv-txt{display:block;min-width:0}
.nv-txt strong{display:block;font-family:'Sora',sans-serif;font-size:.98rem;font-weight:650;line-height:1.3;color:var(--sh-text,#16161d)}
.nv-txt span{display:block;margin-top:2px;font-size:.89rem;line-height:1.45;color:var(--sh-text-2,#3f3f4b)}
.nv-nota{margin:0 0 20px;font-size:.82rem;line-height:1.45;color:var(--sh-text-3,#6b6b78)}
.nv-acoes{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.nv-btn{min-height:44px;padding:0 18px;border-radius:12px;font:inherit;font-weight:600;font-size:.94rem;cursor:pointer;border:1px solid transparent}
.nv-sec{background:transparent;color:var(--sh-text-2,#3f3f4b);border-color:var(--sh-border-strong,#dcdce4)}
.nv-sec:hover{background:var(--sh-hover,#f4f4f7);color:var(--sh-text,#16161d)}
.nv-pri{background:var(--sh-accent,#6c4dff);color:#fff}
.nv-pri:hover{filter:brightness(1.08)}
.nv-modal :is(button):focus-visible{outline:2px solid var(--sh-accent,#6c4dff);outline-offset:2px}

/* entrada única: os três ícones aparecem em sequência quando o aviso abre */
.nv-fundo.nv-aberto .nv-ico{animation:nv-surge .42s var(--sh-ease,cubic-bezier(.2,.8,.2,1)) both}
.nv-lista li:nth-child(2) .nv-ico{animation-delay:.07s}
.nv-lista li:nth-child(3) .nv-ico{animation-delay:.14s}
@keyframes nv-surge{from{opacity:0;transform:translateY(6px) scale(.9)}to{opacity:1;transform:none}}

@media (max-width:480px){
  .nv-fundo{align-items:flex-end;padding:0}
  .nv-modal{max-width:none;border-radius:20px 20px 0 0;max-height:92dvh;padding:24px 18px calc(18px + env(safe-area-inset-bottom))}
  .nv-titulo{font-size:1.22rem}
  .nv-sub{margin-bottom:12px}
  .nv-lista{gap:0;margin-bottom:8px}
  .nv-item{padding:9px 12px;gap:12px}
  .nv-ico{width:36px;height:36px;border-radius:10px}
  .nv-nota{margin-bottom:14px}
  .nv-acoes{flex-direction:column-reverse;gap:8px}
  .nv-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .nv-fundo,.nv-modal,.nv-item{transition:none}
  .nv-modal{transform:none}
  .nv-fundo.nv-aberto .nv-ico{animation:none}
}
