/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target-min);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-fast) var(--ease-motion);
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--moon-silver);
  border-color: var(--border-muted);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--accent);
}

.btn-sm {
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-icon:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* FIX 3: Badge States */
.badge-verified {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(198, 255, 61, 0.3);
}

.badge-unverified {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(255, 179, 0, 0.3);
}

.badge-checking {
  background: rgba(154, 165, 174, 0.12);
  color: var(--text-muted);
  border-color: var(--border-muted);
}

.badge-checking::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.badge-unknown {
  background: rgba(154, 165, 174, 0.08);
  color: var(--text-dim);
  border-color: var(--border);
}

.badge-contract {
  background: rgba(232, 236, 239, 0.1);
  color: var(--moon-silver);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Status Indicators */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.live {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-dot.demo {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

/* Copy Trigger & Tooltips */
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--duration-fast) var(--ease-motion);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin: 4px 0;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Feedback & Empty States */
.state-box {
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
}

.state-box-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--moon-silver);
}

.state-box-desc {
  font-size: var(--text-sm);
  max-width: 400px;
  line-height: 1.5;
}

/* Safety Report Presentation */
.safety-report-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.safety-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
}

.safety-metric-label {
  color: var(--text-dim);
}

.safety-metric-val {
  font-family: var(--font-mono);
  color: var(--moon-silver);
}

.safety-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: var(--space-2);
}
