/* Library: alert (custom modal + toast). Colors/radius CSS variables se aate hain (defaults yahan
   fallback ke roop me), taaki /library/alert/ se theme badalne par poori site me reflect ho. */
.lib-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 4, .55); backdrop-filter: blur(3px); }
.lib-overlay.show { display: flex; }
.lib-modal { width: min(420px, 100%); padding: 24px; border-radius: var(--lib-radius, 18px); background: #fff; color: #2c2503; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .2s ease, transform .2s ease; }
.lib-overlay.show .lib-modal { opacity: 1; transform: none; }
.lib-modal-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--lib-accent-from, #f5c842), var(--lib-accent-to, #d4a017)); color: #2c2503; font-size: 22px; box-shadow: 0 8px 18px rgba(212, 160, 23, .35); }
.lib-modal-title { margin: 0 0 6px; text-align: center; font-size: 17px; font-weight: 700; color: #2c2503; }
.lib-modal-text { margin: 0 0 16px; text-align: center; font-size: 13px; line-height: 1.5; color: #6b5f2e; }
.lib-chips { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: var(--lib-accent-to, #d4a017); }
.lib-chips[hidden] { display: none; }
.lib-chip { min-width: 96px; padding: 8px 12px; border-radius: calc(var(--lib-radius, 18px) * 0.55); text-align: center; font-size: 14px; font-weight: 700; }
.lib-chip.from { background: #f3f1ea; color: #6b5f2e; }
.lib-chip.to { background: linear-gradient(135deg, var(--lib-accent-from, #f5c842), var(--lib-accent-to, #d4a017)); color: #2c2503; }
.lib-actions { display: flex; gap: 10px; }
.lib-modal-hint { margin: 10px 0 0; text-align: center; font-size: 11px; color: #a89240; }
.lib-btn { flex: 1; padding: 10px 14px; border: 0; border-radius: calc(var(--lib-radius, 18px) * 0.55); font-size: 13px; font-weight: 700; cursor: pointer; }
.lib-btn-ghost { background: #f3f1ea; color: #2c2503; }
.lib-btn-ghost:hover { background: #e9e4d3; }
.lib-btn-primary { background: linear-gradient(135deg, var(--lib-accent-from, #f5c842), var(--lib-accent-to, #d4a017)); color: #2c2503; box-shadow: 0 6px 14px rgba(212, 160, 23, .35); }
.lib-toasts { position: fixed; top: 16px; right: 16px; z-index: 10001; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.lib-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-left: 5px solid var(--lib-success, #16a34a); border-radius: calc(var(--lib-radius, 18px) * 0.65); background: #fff; color: #2c2503; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); font-size: 13px; animation: libToastIn .3s ease; }
.lib-toast i { margin-top: 2px; font-size: 16px; color: var(--lib-success, #16a34a); }
.lib-toast span { flex: 1; font-weight: 600; line-height: 1.4; }
.lib-toast button { border: 0; background: none; font-size: 16px; line-height: 1; color: #8a7a3a; cursor: pointer; }
.lib-toast.info { border-left-color: var(--lib-info, #2563eb); }
.lib-toast.info i { color: var(--lib-info, #2563eb); }
.lib-toast.warning { border-left-color: var(--lib-warning, #f59e0b); }
.lib-toast.warning i { color: var(--lib-warning, #f59e0b); }
.lib-toast.error { border-left-color: var(--lib-error, #dc2626); }
.lib-toast.error i { color: var(--lib-error, #dc2626); }
@keyframes libToastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
