/* NisfudDeen theme dialogs (alert / confirm / copy). Uses theme palette variables; safe fallbacks inside wp-admin. */
html.nd-dlg-lock { overflow: hidden; }
.nd-dlg { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .16s ease; font-family: var(--f, inherit); }
.nd-dlg.is-open { opacity: 1; }
.nd-dlg-ov { position: absolute; inset: 0; background: rgba(20, 30, 28, .55); }
.nd-dlg-box { position: relative; width: 100%; max-width: 400px; background: #fff; color: var(--ink, #14201D); border-radius: var(--r-md, 16px); padding: 26px 22px 20px; text-align: center; box-shadow: 0 18px 48px rgba(20, 32, 29, .25); transform: translateY(8px) scale(.98); transition: transform .16s ease; box-sizing: border-box; }
.nd-dlg.is-open .nd-dlg-box { transform: none; }
.nd-dlg-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tint, #FCE9F2); color: var(--accent, #E0136F); }
.nd-dlg-success .nd-dlg-ic { background: #E7F6EC; color: #1E8E4E; }
.nd-dlg-error .nd-dlg-ic, .nd-dlg-box.is-danger .nd-dlg-ic { background: #FDECEA; color: #D92D20; }
.nd-dlg-warning .nd-dlg-ic { background: var(--gold-soft, #F6EBD3); color: var(--gold, #B8892F); }
.nd-dlg-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--ink, #14201D); }
.nd-dlg-msg { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: var(--ink-soft, #56635F); white-space: pre-line; overflow-wrap: anywhere; }
.nd-dlg-input { display: block; width: 100%; margin: 0 0 16px; padding: 11px 12px; border: 1px solid var(--line, #F1D3E2); border-radius: var(--r-sm, 8px); font: inherit; font-size: .95rem; color: var(--ink, #14201D); background: #fff; box-sizing: border-box; text-align: center; }
.nd-dlg-btns { display: flex; gap: 10px; }
.nd-dlg-btn { flex: 1; min-height: 44px; padding: 10px 14px; border-radius: var(--r-pill, 999px); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; transition: filter .15s ease, background .15s ease; }
.nd-dlg-ok { background: var(--accent, #E0136F); color: var(--accent-ink, #fff); }
.nd-dlg-ok:hover { filter: brightness(.94); }
.nd-dlg-box.is-danger .nd-dlg-ok { background: #D92D20; color: #fff; }
.nd-dlg-cancel { background: #fff; color: var(--ink, #14201D); border-color: var(--line, #F1D3E2); }
.nd-dlg-cancel:hover { background: var(--tint, #FCE9F2); }
.nd-dlg-btn:focus-visible, .nd-dlg-input:focus-visible { outline: 2px solid var(--accent, #E0136F); outline-offset: 2px; }
@media (max-width: 420px) { .nd-dlg-btns { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { .nd-dlg, .nd-dlg-box { transition: none; } }
