    </main>
  </div>
  <script>
document.addEventListener('click', function(e){
  const btn = e.target.closest('.pw-eye');
  if (!btn) return;

  const id = btn.getAttribute('data-target');
  const input = document.getElementById(id);
  if (!input) return;

  const wrap = btn.closest('.pw-wrap');
  const show = input.type === 'password';
  input.type = show ? 'text' : 'password';
  wrap.classList.toggle('is-show', show);
  btn.setAttribute('aria-label', show ? 'Hide password' : 'Show password');
});

(function(){
  const svg = document.getElementById('signupChart');
  const tip = document.getElementById('signupTip');
  if (!svg || !tip) return;

  function showTip(evt) {
    const bar = evt.target.closest('.mini-bar');
    if (!bar) return hideTip();

    const label = bar.getAttribute('data-label');
    const count = bar.getAttribute('data-count');

    tip.textContent = `${label}: ${count}`;
    tip.classList.add('show');

    const svgRect = svg.getBoundingClientRect();
    const x = evt.clientX - svgRect.left;
    const y = evt.clientY - svgRect.top;

    tip.style.left = `${x}px`;
    tip.style.top  = `${y}px`;
  }
  function hideTip(){ tip.classList.remove('show'); }

  svg.addEventListener('mousemove', showTip);
  svg.addEventListener('mouseleave', hideTip);
})();
</script>


</body>
</html>
