/* FluxWP ortak modal ve bildirim (flx-brand dialog). Tarayıcının confirm/alert/prompt'u yerine. */
.flx-dlg{--d-bg:var(--flxa-card,var(--flxa-surface,#fff));--d-tx:var(--flxa-text,#1d2327);--d-mut:var(--flxa-muted,#646970);--d-bd:var(--flxa-border,#e2e4e7);--d-ac:var(--flxa-accent,#2271b1);--d-bad:var(--flxa-error,#b42318);--d-r:var(--flxa-radius,14px);
	position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--d-bd);border-radius:var(--d-r);background:var(--d-bg);color:var(--d-tx);box-shadow:0 24px 64px rgba(15,23,42,.24);overflow:auto;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.flx-dlg::backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}
.flx-dlg[open]{animation:flx-dlg-in .16s ease-out}
.flx-dlg[open]::backdrop{animation:flx-dlg-fade .16s ease-out}
.flx-dlg__head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 20px;border-bottom:1px solid var(--d-bd)}
.flx-dlg__body{padding:18px 20px 4px}
.flx-dlg__icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--d-ac) 12%,transparent);color:var(--d-ac)}
.flx-dlg--danger .flx-dlg__icon{background:color-mix(in srgb,var(--d-bad) 12%,transparent);color:var(--d-bad)}
.flx-dlg__icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.flx-dlg__main{min-width:0;flex:1}
.flx-dlg__title{flex:1;min-width:0;margin:0;font-size:17px;font-weight:650;line-height:1.35;color:var(--d-tx)}
.flx-dlg__msg{margin:0;font-size:16px;line-height:1.55;color:var(--d-mut);overflow-wrap:anywhere;white-space:pre-line}
.flx-dlg__msg+.flx-dlg__field{margin:16px 0 0}
.flx-dlg__x{flex:none;appearance:none;width:32px;height:32px;border:0;border-radius:8px;background:none;color:var(--d-mut);font-size:22px;line-height:1;cursor:pointer}
.flx-dlg__x:hover{background:color-mix(in srgb,var(--d-tx) 7%,transparent);color:var(--d-tx)}
.flx-dlg__x:focus-visible{outline:2px solid var(--d-ac);outline-offset:1px}
.flx-dlg__field label{display:block;font-size:14px;margin:0 0 6px;color:var(--d-tx)}
.flx-dlg__field b{font-weight:650}
.flx-dlg__field input{box-sizing:border-box;width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--d-bd);border-radius:10px;background:transparent;color:var(--d-tx);font:inherit;font-size:15px}
.flx-dlg__field input:focus{outline:2px solid color-mix(in srgb,var(--d-ac) 45%,transparent);outline-offset:1px;border-color:var(--d-ac)}
.flx-dlg__foot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding:14px 20px;border-top:1px solid var(--d-bd);background:color-mix(in srgb,var(--d-tx) 3%,transparent)}
.flx-dlg__head+.flx-dlg__foot{margin-top:0}
.flx-dlg__btn{appearance:none;min-height:38px;padding:0 16px;border-radius:10px;border:1px solid var(--d-bd);background:transparent;color:var(--d-tx);font:inherit;font-weight:550;cursor:pointer}
.flx-dlg__btn:hover{background:color-mix(in srgb,var(--d-tx) 6%,transparent)}
.flx-dlg__btn:focus-visible{outline:2px solid var(--d-ac);outline-offset:2px}
.flx-dlg__btn--ok{background:var(--d-ac);border-color:var(--d-ac);color:#fff}
.flx-dlg__btn--ok:hover{background:color-mix(in srgb,var(--d-ac) 88%,#000)}
.flx-dlg--danger .flx-dlg__btn--ok{background:var(--d-bad);border-color:var(--d-bad)}
.flx-dlg--danger .flx-dlg__btn--ok:hover{background:color-mix(in srgb,var(--d-bad) 88%,#000)}
.flx-dlg__btn:disabled{opacity:.45;cursor:not-allowed}
html.flxa-dark .flx-dlg{--d-bg:var(--flxa-card,#1e2128);--d-tx:var(--flxa-text,#e8eaed);--d-mut:var(--flxa-muted,#a0a6ad);--d-bd:var(--flxa-border,#363a43)}
@media (prefers-color-scheme:dark){html.flxa-auto .flx-dlg{--d-bg:var(--flxa-card,#1e2128);--d-tx:var(--flxa-text,#e8eaed);--d-mut:var(--flxa-muted,#a0a6ad);--d-bd:var(--flxa-border,#363a43)}}
/* Telefonda alttan açılan sayfa; düğmeler tam genişlik, birincil üstte */
@media (max-width:600px){
	.flx-dlg{inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:var(--d-r) var(--d-r) 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
	.flx-dlg[open]{animation:flx-dlg-up .2s ease-out}
	.flx-dlg__head{padding:14px 12px 12px 18px}
	.flx-dlg__body{padding:16px 18px 4px}
	.flx-dlg__foot{flex-direction:column-reverse;padding:14px 18px 18px}
	.flx-dlg__btn{width:100%;min-height:46px;font-size:15px}
	.flx-dlg__field input{min-height:46px;font-size:16px}
}
/* Bildirimler (toast) */
.flx-toasts{position:fixed;z-index:100100;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px;max-width:min(380px,calc(100vw - 32px));pointer-events:none}
.flx-toast{--t-c:var(--flxa-accent,#2271b1);display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;background:var(--flxa-card,#fff);color:var(--flxa-text,#1d2327);border:1px solid var(--flxa-border,#e2e4e7);border-left:4px solid var(--t-c);box-shadow:0 10px 30px rgba(15,23,42,.16);font:14.5px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;pointer-events:auto;animation:flx-dlg-in .18s ease-out}
.flx-toast--ok{--t-c:#0f7a4f}.flx-toast--bad{--t-c:var(--flxa-error,#b42318)}.flx-toast--warn{--t-c:#b45309}
.flx-toast__msg{flex:1;min-width:0;overflow-wrap:anywhere}
.flx-toast__x{appearance:none;border:0;background:none;color:inherit;opacity:.55;cursor:pointer;font-size:18px;line-height:1;padding:0 2px}
.flx-toast__x:hover{opacity:1}
.flx-toast.is-out{opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s}
html.flxa-dark .flx-toast{background:var(--flxa-card,#1e2128);color:var(--flxa-text,#e8eaed);border-color:var(--flxa-border,#363a43)}
@media (max-width:600px){.flx-toasts{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:none}}
@keyframes flx-dlg-in{from{opacity:0;transform:translateY(6px) scale(.98)}}
@keyframes flx-dlg-up{from{transform:translateY(100%)}}
@keyframes flx-dlg-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.flx-dlg[open],.flx-dlg[open]::backdrop,.flx-toast{animation:none}}
