html:not([data-theme="dark"]) #swal2-container .swal2-popup.swal2-toast,
  html:not([data-theme="dark"]) #swal2-container .swal2-popup.update-post-toast,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup.swal2-toast,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup.update-post-toast {
    background: #fff !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.2) !important;
    color: #1a1a1a !important;
  }
  html:not([data-theme="dark"]) #swal2-container .swal2-popup .swal2-title,
  html:not([data-theme="dark"]) #swal2-container .swal2-popup .swal2-html-container,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup .swal2-title,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup .swal2-html-container {
    color: #1a1a1a !important;
  }
  html:not([data-theme="dark"]) #swal2-container .swal2-popup *,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup.swal2-toast *,
  html:not([data-theme="dark"]) body .swal2-container .swal2-popup.update-post-toast * {
    color: inherit !important;
  }

  /* SweetAlert2 dark mode (modals + toasts) */
  html[data-theme="dark"] .swal2-container.swal2-backdrop-show,
  html[data-theme="dark"] .swal2-container.swal2-shown {
    background: rgba(8, 10, 14, 0.72) !important;
  }
  html[data-theme="dark"] .swal2-popup,
  html[data-theme="dark"] #swal2-container .swal2-popup,
  html[data-theme="dark"] body .swal2-container .swal2-popup {
    background: #1a1d26 !important;
    color: #e8eaed !important;
    border: 1px solid #2e3440 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
  }
  html[data-theme="dark"] .swal2-popup.swal2-toast,
  html[data-theme="dark"] .swal2-popup.update-post-toast,
  html[data-theme="dark"] #swal2-container .swal2-popup.swal2-toast,
  html[data-theme="dark"] #swal2-container .swal2-popup.update-post-toast,
  html[data-theme="dark"] body .swal2-container .swal2-popup.swal2-toast,
  html[data-theme="dark"] body .swal2-container .swal2-popup.update-post-toast {
    background: #22262f !important;
    color: #e8eaed !important;
    border: 1px solid #2e3440 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  }
  html[data-theme="dark"] .swal2-title,
  html[data-theme="dark"] .swal2-html-container,
  html[data-theme="dark"] .swal2-content,
  html[data-theme="dark"] #swal2-container .swal2-popup .swal2-title,
  html[data-theme="dark"] #swal2-container .swal2-popup .swal2-html-container,
  html[data-theme="dark"] body .swal2-container .swal2-popup .swal2-title,
  html[data-theme="dark"] body .swal2-container .swal2-popup .swal2-html-container {
    color: #e8eaed !important;
  }
  html[data-theme="dark"] .swal2-popup.swal2-toast *,
  html[data-theme="dark"] .swal2-popup.update-post-toast *,
  html[data-theme="dark"] #swal2-container .swal2-popup.swal2-toast *,
  html[data-theme="dark"] #swal2-container .swal2-popup.update-post-toast *,
  html[data-theme="dark"] body .swal2-container .swal2-popup.swal2-toast *,
  html[data-theme="dark"] body .swal2-container .swal2-popup.update-post-toast * {
    color: inherit !important;
  }
  html[data-theme="dark"] .swal2-close {
    color: #9aa3b2 !important;
  }
  html[data-theme="dark"] .swal2-close:hover {
    color: #fff !important;
  }
  html[data-theme="dark"] .swal2-input,
  html[data-theme="dark"] .swal2-textarea,
  html[data-theme="dark"] .swal2-select {
    background: #12141a !important;
    color: #e8eaed !important;
    border: 1px solid #2e3440 !important;
  }
  html[data-theme="dark"] .swal2-validation-message {
    background: #3a1c20 !important;
    color: #f5b5bc !important;
  }
  html[data-theme="dark"] .swal2-footer {
    border-top-color: #2e3440 !important;
    color: #9aa3b2 !important;
  }
  html[data-theme="dark"] .swal2-timer-progress-bar {
    background: rgba(102, 126, 234, 0.75) !important;
  }
  html[data-theme="dark"] .swal2-styled.swal2-confirm {
    background: #667eea !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] .swal2-styled.swal2-confirm:hover {
    background: #7b8ff0 !important;
  }
  html[data-theme="dark"] .swal2-styled.swal2-deny {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
  }
  html[data-theme="dark"] .swal2-styled.swal2-cancel {
    background: #2e3440 !important;
    color: #e8eaed !important;
    border: 1px solid #3a4150 !important;
  }
  html[data-theme="dark"] .swal2-styled.swal2-cancel:hover {
    background: #3a4150 !important;
    color: #fff !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-success [class^='swal2-success-line'],
  html[data-theme="dark"] .swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
    background-color: transparent !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(40, 167, 69, 0.35) !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #28a745 !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-error {
    border-color: #f87171 !important;
    color: #f87171 !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #f87171 !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-warning {
    border-color: #f0ad4e !important;
    color: #f0ad4e !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-info {
    border-color: #5bc0de !important;
    color: #5bc0de !important;
  }
  html[data-theme="dark"] .swal2-icon.swal2-question {
    border-color: #9db4ff !important;
    color: #9db4ff !important;
  }

  /* App toast (splash notes) - no SweetAlert dependency */
  .app-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
    pointer-events: none;
  }
  .app-toast {
    pointer-events: auto;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: app-toast-in 0.3s ease;
  }
  .app-toast-icon { font-size: 1.25rem; flex-shrink: 0; }
  .app-toast-message { flex: 1; }
  .app-toast-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
  .app-toast-success .app-toast-icon { color: #28a745; }
  .app-toast-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
  .app-toast-error .app-toast-icon { color: #dc3545; }
  .app-toast-info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }
  .app-toast-info .app-toast-icon { color: #17a2b8; }
  .app-toast-warning { background: #fff3cd; border: 1px solid #ffeaa7; color: #856404; }
  .app-toast-warning .app-toast-icon { color: #ffc107; }
  @keyframes app-toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
  }
