/* Avisos, confirmações e perguntas do site (front e painel) — padrão único.
   Usado por js/dn-dialog.js, que também substitui alert/confirm/prompt do navegador. */
.dnd-overlay {
    position: fixed; inset: 0; z-index: 2147483000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(6, 6, 14, .72);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .18s ease;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.dnd-overlay.dnd-in { opacity: 1; }
.dnd-box {
    width: 100%; max-width: 420px; box-sizing: border-box;
    background: #161625; color: #e8e8f2;
    border: 1px solid #2a2a45; border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 108, 240, .12);
    padding: 26px 24px 20px; text-align: center;
    transform: translateY(14px) scale(.96); transition: transform .2s cubic-bezier(.2, .9, .3, 1.2);
    max-height: calc(100vh - 32px); overflow-y: auto;
}
.dnd-overlay.dnd-in .dnd-box { transform: none; }
.dnd-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 108, 240, .15); color: #a99eff;
}
.dnd-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dnd-tone-success .dnd-icon { background: rgba(52, 211, 153, .15); color: #34d399; }
.dnd-tone-error .dnd-icon, .dnd-tone-danger .dnd-icon { background: rgba(244, 63, 94, .15); color: #f43f5e; }
.dnd-tone-warning .dnd-icon { background: rgba(240, 192, 64, .15); color: #f0c040; }
.dnd-title { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; color: #fff; line-height: 1.3; }
.dnd-msg { margin: 0 0 20px; font-size: .93rem; line-height: 1.55; color: #b9b9d0; white-space: pre-line; word-break: break-word; }
.dnd-input {
    width: 100%; box-sizing: border-box; margin: -6px 0 18px;
    background: #0f0f1a; color: #fff; border: 1px solid #2a2a45; border-radius: 10px;
    padding: 11px 13px; font-size: .95rem; font-family: inherit; text-align: left; outline: none;
}
.dnd-input:focus { border-color: #7c6cf0; box-shadow: 0 0 0 3px rgba(124, 108, 240, .25); }
.dnd-actions { display: flex; gap: 10px; justify-content: center; }
.dnd-actions-col { flex-direction: column; }
.dnd-actions-col .dnd-btn { flex: none; width: 100%; }
.dnd-btn {
    flex: 1 1 0; min-width: 0; border: 0; border-radius: 10px; cursor: pointer;
    padding: 12px 16px; font-size: .92rem; font-weight: 700; font-family: inherit;
    transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.dnd-btn:active { transform: scale(.97); }
.dnd-btn:focus-visible { outline: 2px solid #a99eff; outline-offset: 2px; }
.dnd-btn-primary { background: linear-gradient(135deg, #7c6cf0, #5b4cc4); color: #fff; box-shadow: 0 6px 18px rgba(124, 108, 240, .35); }
.dnd-btn-primary:hover { filter: brightness(1.1); }
.dnd-btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; box-shadow: 0 6px 18px rgba(244, 63, 94, .3); }
.dnd-btn-danger:hover { filter: brightness(1.1); }
.dnd-btn-ghost { background: #1e1e32; color: #c9c9de; border: 1px solid #2a2a45; }
.dnd-btn-ghost:hover { background: #26263f; }
html.dnd-lock { overflow: hidden; }

@media (max-width: 480px) {
    .dnd-overlay { align-items: flex-end; padding: 12px; }
    .dnd-box { padding: 22px 18px 16px; border-radius: 18px; }
    .dnd-actions { flex-direction: column-reverse; }
    .dnd-actions.dnd-actions-col { flex-direction: column; }
    .dnd-btn { flex: none; width: 100%; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .dnd-overlay, .dnd-box, .dnd-btn { transition: none; }
}
