/* revelação na rolagem: entra por baixo com fade in, sai por cima com fade out */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv.is-out { opacity: 0; transform: translateY(-22px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* notificações de demonstração */
.toasts { position: fixed; z-index: 40; left: 24px; bottom: 24px; display: grid; gap: 10px; width: min(340px, calc(100% - 32px)); pointer-events: none; }
.toast {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; overflow: hidden;
  padding: 12px 14px; border-radius: 14px; background: rgba(11, 14, 17, .86); border: 1px solid rgba(var(--accent-rgb), .22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 20px 40px -20px rgba(0, 0, 0, .9), 0 0 30px -18px rgba(var(--accent-rgb), .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateX(-16px); }
.toast__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.toast__ic svg { width: 19px; height: 19px; }
.toast__txt { display: grid; min-width: 0; }
.toast__txt b { font-size: .9rem; line-height: 1.25; }
.toast__txt small { color: var(--text-dim); font-size: .76rem; line-height: 1.3; }
.toast__tag { align-self: start; font-size: .62rem; font-weight: 700; color: var(--steel); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 1px 7px; }
.toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.toast__bar > i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.toast.is-in .toast__bar > i { transform: scaleX(1); transition: transform 1.7s cubic-bezier(.3, .6, .2, 1) .15s; }
.toast__dot { position: absolute; left: 40px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #0b0e11; transition: background-color .3s; }
.toast.is-done .toast__dot, .toast:not(.has-progress) .toast__dot { background: var(--accent); }
@media (max-width: 640px) {
  .toasts { left: 50%; transform: translateX(-50%); top: 78px; bottom: auto; width: min(360px, calc(100% - 24px)); }
  .toast { padding: 9px 11px; grid-template-columns: auto 1fr; }
  .toast__tag { position: absolute; right: 10px; top: 8px; }
  .toast__txt small { display: none; }
  .toast.is-out { transform: translateY(-12px); }
}
