/* AGORA ARENA — Shared Styles */
body { font-family: 'Inter', sans-serif; background: #0a0a0f; color: #fff; min-height: 100vh; }
.font-display { font-family: 'Orbitron', sans-serif; }
.glow-cyan { box-shadow: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 40px rgba(34, 211, 238, 0.3); }
.glow-pink { box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3); }
.glow-green { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
.gradient-text { background: linear-gradient(135deg, #22d3ee 0%, #ec4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-bg { background: linear-gradient(135deg, #22d3ee 0%, #ec4899 100%); }
.glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.glass-strong { background: rgba(255,255,255,0.06); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.15); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.6); }
  50% { box-shadow: 0 0 60px rgba(34, 211, 238, 0.9), 0 0 100px rgba(236, 72, 153, 0.4); }
}
.pulse-core { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 3s ease-in-out infinite; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 8s linear infinite; }

@keyframes lightning {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.lightning { animation: lightning 1s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
.pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }

@keyframes type-cursor { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.cursor { animation: type-cursor 1s infinite; }

.grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.scan-line {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.1) 50%, transparent 100%);
  animation: scan 3s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.bar-fill { transition: width 0.5s ease-out; }

/* SUBAGENT NODE STYLING */
.node {
  position: relative;
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.node.active { border-color: #22d3ee; box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); }
.node.done { border-color: #22c55e; }
.node.waiting { opacity: 0.5; }

/* LIGHTNING CONNECTOR */
.connector {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.8), rgba(236, 72, 153, 0.8));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transform-origin: left center;
  animation: lightning 0.8s infinite;
}

/* RANK COLORS */
.rank-bronze { color: #cd7f32; }
.rank-silver { color: #c0c0c0; }
.rank-gold { color: #ffd700; }
.rank-diamond { color: #b9f2ff; }
.rank-master { color: #ec4899; }
.rank-legend { background: linear-gradient(135deg, #ffd700, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.5); }
