/* Enhanced Bridge Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes progress-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.bridge-card {
  animation: fade-in-up 0.5s ease-out;
}

.bridge-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bridge-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.bridge-btn:disabled {
  opacity: 0.7;
}

.bridge-btn.processing {
  animation: pulse-glow 1.5s infinite;
}

.bridge-btn.processing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin-slow 1s linear infinite;
}

/* Status Steps */
.bridge-status-steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.bridge-status-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.1);
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.status-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.status-step.active .step-icon {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  animation: pulse-glow 1.5s infinite;
}

.status-step.completed .step-icon {
  background: #00ff88;
}

.status-step.completed .step-icon::after {
  content: "✓";
  color: #000;
  font-weight: bold;
}

.status-step .step-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
}

.status-step.active .step-label {
  opacity: 1;
  color: #00ff88;
}

/* Progress Bar */
.bridge-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 1rem 0;
}

.bridge-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88);
  background-size: 200% 100%;
  animation: progress-flow 2s linear infinite;
  transition: width 0.5s ease;
}

/* Transaction Cards */
.tx-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  animation: fade-in-up 0.3s ease-out;
}

.tx-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(5px);
}

.tx-card.pending {
  border-left: 3px solid #ffaa00;
}

.tx-card.processing {
  border-left: 3px solid #00aaff;
  animation: status-pulse 2s infinite;
}

.tx-card.completed {
  border-left: 3px solid #00ff88;
}

.tx-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tx-status-badge.pending {
  background: rgba(255, 170, 0, 0.2);
  color: #ffaa00;
}

.tx-status-badge.confirming {
  background: rgba(0, 170, 255, 0.2);
  color: #00aaff;
}

.tx-status-badge.processing {
  background: rgba(136, 0, 255, 0.2);
  color: #aa88ff;
}

.tx-status-badge.completed {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.tx-status-badge .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin-slow 1s linear infinite;
}

/* Live indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #00ff88;
}

.live-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: status-pulse 1s infinite;
}

/* Toast notifications */
.bridge-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  animation: fade-in-up 0.3s ease-out;
  z-index: 9999;
  max-width: 400px;
}

.bridge-toast.success {
  border-color: #00ff88;
}

.bridge-toast.error {
  border-color: #ff4444;
}

.bridge-toast.info {
  border-color: #00aaff;
}
