@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes slideUp { 
  from { transform: translateY(14px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}

@keyframes slideInRight { 
  from { transform: translateX(360px); opacity: 0; } 
  to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideInUp { 
  from { transform: translateY(100px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.bg-blob {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(800px 400px at 15% 15%, rgba(36,207,185,0.18), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(24,181,163,0.14), transparent 62%),
    radial-gradient(900px 600px at 50% 85%, rgba(36,207,185,0.10), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Regular toast notifications (top-right) */
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  animation: slideInRight 0.22s ease;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148,163,184,0.25);
  max-width: min(420px, calc(100vw - 36px));
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Comment notification style (bottom-right, like Facebook) */
.toast-notification {
  position: fixed;
  right: 24px;
  z-index: 9999;
  animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  max-width: min(360px, calc(100vw - 48px));
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, bottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.toast-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.toast-notification-content {
  flex: 1;
  min-width: 0;
}

.toast-notification-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.toast-notification-message {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-notification-close {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.toast-notification-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.spinner {
  border: 3px solid rgba(148,163,184,0.35);
  border-radius: 9999px;
  border-top: 3px solid rgba(15, 23, 42, 0.95);
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}