/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: white;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  max-width: 400px;
  min-width: 280px;
  padding: 14px 20px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: toastIn 350ms var(--ease-out) both;
}

.toast.toast-out {
  animation: toastOut 300ms var(--ease-in) both;
}

.toast.toast-success {
  background: #2a7a35;
}

.toast.toast-error {
  background: var(--red);
}

.toast-msg {
  flex: 1;
  min-width: 0;
}
.toast-icon {
  flex-shrink: 0;
  font-size: 18px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  align-items: center;
  background: rgba(31, 26, 22, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  position: fixed;
  transition: opacity 250ms ease;
  z-index: 100;
}
.modal-overlay.open {
  opacity: 1;
}

.modal-box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(31, 26, 22, 0.25);
  max-width: 420px;
  padding: 32px;
  transform: scale(0.92) translateY(8px);
  transition: transform 300ms var(--ease-out);
  width: 100%;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  align-items: center;
  background: var(--red-soft);
  border-radius: 50%;
  color: var(--red);
  display: flex;
  font-size: 24px;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.modal-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}

.modal-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-actions .ghost-button,
.modal-actions .danger-button {
  min-height: 42px;
  font-size: 13px;
}

