  return "Error recording your vote. Please try again.";
                  }
              }
          };
      }

      document.addEventListener('DOMContentLoaded', function() {
          // Cache DOM elements
          const thumbsButtons = document.querySelectorAll('.thumbs-up, .thumbs-down');
          const csrfToken = document.querySelector('[name=csrfmiddlewaretoken]').value;
          const featureCards = document.querySelectorAll('.feature-card');

          // Animation for feature cards
        