.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: #1e293b; }
.tab-active { color: #2563eb; border-bottom-color: #2563eb; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-success    { background: #d1fae5; color: #065f46; }
.badge-failed     { background: #ffe4e6; color: #9f1239; }
.badge-neutral    { background: #e2e8f0; color: #475569; }

pre.json {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.875rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  max-height: 20rem;
}

.toast {
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  animation: slide-in 0.2s ease-out;
  border-left: 4px solid;
}
@keyframes slide-in {
  from { transform: translateX(1rem); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast-success { background: #fff; border-color: #10b981; }
.toast-error   { background: #fff; border-color: #f43f5e; }
.toast-info    { background: #fff; border-color: #3b82f6; }
