/* Davetly UI helpers — popup modal & toast */
#uiModalRoot { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.ui-modal-wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s ease; pointer-events: auto; }
.ui-modal-wrap.on { opacity: 1; }
.ui-modal-bd { position: absolute; inset: 0; background: rgba(20,12,16,.42); backdrop-filter: blur(2px); }
.ui-modal-card { position: relative; background: #fff; border-radius: 18px; padding: 28px 26px 22px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.22); transform: translateY(8px) scale(.98); transition: transform .18s ease; text-align: center; }
.ui-modal-wrap.on .ui-modal-card { transform: translateY(0) scale(1); }
.ui-modal-icon { font-size: 2.4rem; margin-bottom: 10px; }
.ui-modal-title { font-family: var(--font-display, Georgia, serif); font-size: 1.2rem; margin-bottom: 8px; color: #2b1f24; }
.ui-modal-msg { color: #5b4750; font-size: .96rem; line-height: 1.5; margin-bottom: 22px; white-space: pre-line; }
.ui-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ui-btn { border: 0; border-radius: 30px; padding: 11px 22px; font-size: .92rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; min-width: 110px; }
.ui-btn-primary { background: linear-gradient(135deg,#f5a3b7,#e88aa3); color: #fff; box-shadow: 0 8px 22px rgba(245,163,183,.35); }
.ui-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(245,163,183,.45); }
.ui-btn-ghost { background: #f4ecec; color: #5b4750; }
.ui-btn-ghost:hover { background: #ece1e1; }
.ui-warning .ui-btn-primary, .ui-error .ui-btn-primary { background: linear-gradient(135deg,#e88aa3,#d05a73); }

#uiToastBar { position: fixed; right: 20px; top: 84px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: 92vw; pointer-events: none; }
.ui-toast { background: #2b1f24; color: #fff; padding: 13px 20px; border-radius: 14px; font-size: .9rem; font-weight: 500; box-shadow: 0 14px 36px rgba(0,0,0,.22); transform: translateX(20px); opacity: 0; transition: all .28s cubic-bezier(.2,.8,.2,1); pointer-events: auto; max-width: 360px; line-height: 1.45; }
.ui-toast.on { transform: translateX(0); opacity: 1; }
.ui-toast-success { background: linear-gradient(135deg,#27ae60,#2ecc71); }
.ui-toast-error   { background: linear-gradient(135deg,#c0392b,#e74c3c); }
.ui-toast-warning { background: linear-gradient(135deg,#e67e22,#f39c12); color:#fff; }
.ui-toast-info    { background: linear-gradient(135deg,#2980b9,#3498db); }
@media (max-width: 540px) { #uiToastBar { right: 12px; left: 12px; top: 70px; max-width: none; } .ui-toast { max-width: none; } }
