
<!DOCTYPE html>
<html lang="pt-BR">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>InvestPro - Central de Ajuda</title>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet" />
  <link rel="stylesheet" href="./assets/css/build/tailwind.css" />
  <style>
     .spinner-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
    border: 6px solid transparent;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  </style>
</head>

<body class="bg-gray-100 dark:bg-[#09090A] text-gray-900 dark:text-white font-poppins relative max-w-[600px] mx-auto min-h-screen flex flex-col">

  <div id="loading" class="fixed inset-0 flex items-center justify-center bg-white dark:bg-[#121214] z-50">
    <div class="spinner-ring"></div>
  </div>

  <div id="toast-container" class="fixed bottom-4 right-4 z-50 flex flex-col gap-3 w-[90%] max-w-sm"></div>

  <header class="p-4 flex justify-between items-center shadow bg-white dark:bg-[#121214]">
    <h1 class="text-2xl font-bold">Invest<span class="text-blue-500">Pro</span></h1>
    <a href="payment.php" class="text-sm border px-3 py-1 rounded dark:border-white border-gray-800 font-bold">
      R$ <?= htmlspecialchars(number_format($user['balance'], 2, ',', '.')) ?>
    </a>
  </header>

  <main class="flex-grow p-6 bg-white dark:bg-[#09090A]">

    <section class="text-center mb-10 max-w-full">
      <h2 class="text-4xl font-extrabold mb-2">Central de Ajuda & Suporte</h2>
      <p class="text-gray-600 dark:text-gray-300 text-lg leading-relaxed px-4">
        Estamos aqui para ajudar você a aproveitar ao máximo sua experiência com a InvestPro.
        Encontre respostas para dúvidas frequentes, entre em contato com nosso suporte ou consulte nossos canais oficiais.
      </p>
    </section>

    <section class="space-y-8 px-4">

      <article class="bg-white dark:bg-[#121214] rounded-lg shadow p-5 space-y-3 border border-gray-200 dark:border-gray-700">
        <h3 class="text-xl font-semibold border-b border-gray-300 dark:border-gray-700 pb-2 mb-3">📋 Perguntas Frequentes (FAQ)</h3>
        <ul class="list-disc list-inside space-y-2 text-gray-700 dark:text-gray-300 text-sm leading-relaxed">
          <li><strong>Como faço um depósito?</strong> Você pode depositar via Pix, cartão ou transferência bancária. Na área de pagamentos, escolha o método preferido.</li>
          <li><strong>Quanto tempo demora para confirmar?</strong> Depósitos via Pix geralmente são instantâneos; outros métodos podem levar até 24 horas.</li>
          <li><strong>Posso cancelar um investimento?</strong> Cada produto tem regras específicas, verifique no contrato do investimento.</li>
          <li><strong>Como receber meus lucros?</strong> Os lucros são creditados automaticamente na sua conta conforme cronograma do investimento.</li>
          <li><strong>O que fazer em caso de problemas?</strong> Contate nosso suporte via Telegram, e-mail ou telefone listados abaixo.</li>
        </ul>
      </article>

      <article class="bg-white dark:bg-[#121214] rounded-lg shadow p-5 space-y-3 border border-gray-200 dark:border-gray-700">
        <h3 class="text-xl font-semibold border-b border-gray-300 dark:border-gray-700 pb-2 mb-3">📞 Contato Direto</h3>
        <div class="space-y-2 text-gray-700 dark:text-gray-300 text-sm">
          <p><strong>Telegram Suporte:</strong> <a href="https://t.me/InvestProSuporte" target="_blank" class="text-[#005E60] hover:underline">t.me/InvestProSuporte</a></p>
          <p><strong>E-mail:</strong> <a href="mailto:suporte@investpro.com" class="text-[#005E60] hover:underline">suporte@investpro.com</a></p>
          <p><strong>Telefone:</strong> <a href="tel:+5511999999999" class="text-[#005E60] hover:underline">+55 11 99999-9999</a></p>
          <p><strong>Horário de Atendimento:</strong> Seg a Sex, 09:00 - 18:00 (GMT-3)</p>
          <p><strong>Chat Online:</strong> Em breve teremos chat em tempo real para atendimento instantâneo.</p>
        </div>
      </article>

      <article class="bg-white dark:bg-[#121214] rounded-lg shadow p-5 space-y-3 border border-gray-200 dark:border-gray-700">
        <h3 class="text-xl font-semibold border-b border-gray-300 dark:border-gray-700 pb-2 mb-3">🔗 Links Úteis</h3>
        <ul class="list-disc list-inside space-y-2 text-gray-700 dark:text-gray-300 text-sm">
          <li><a href="/faq.html" class="text-[#005E60] hover:underline">Página Completa de FAQ</a></li>
          <li><a href="/termos.html" class="text-[#005E60] hover:underline">Termos e Condições</a></li>
          <li><a href="/privacidade.html" class="text-[#005E60] hover:underline">Política de Privacidade</a></li>
          <li><a href="/investimentos.html" class="text-[#005E60] hover:underline">Produtos de Investimento</a></li>
          <li><a href="/contato.html" class="text-[#005E60] hover:underline">Formulário de Contato</a></li>
        </ul>
      </article>

    </section>

    <section class="bg-blue-50 dark:bg-[#0e1a3a] rounded-lg shadow p-6 max-w-full mx-auto mt-12 text-center text-gray-900 dark:text-white">
      <h3 class="text-2xl font-bold mb-3">Ainda precisa de ajuda?</h3>
      <p class="mb-4 text-sm px-6">
        Envie um e-mail para <a href="mailto:suporte@investpro.com" class="underline font-semibold">suporte@investpro.com</a> ou fale conosco no Telegram:
      </p>
      <a href="https://t.me/InvestProSuporte" target="_blank" class="inline-block px-6 py-3 bg-blue-600 hover:bg-blue-700 rounded text-white font-semibold transition">
        Abrir Telegram
      </a>
    </section>

  </main>

  <footer class="p-4 text-center text-xs text-gray-400 dark:text-gray-600 bg-white dark:bg-[#09090A]">
    © 2025 InvestPro. Todos os direitos reservados.
  </footer>

  <script>
    if (localStorage.getItem('theme') === 'dark') {
      document.documentElement.classList.add('dark');
    }

    function toggleDark() {
      const html = document.documentElement;
      html.classList.toggle('dark');
      localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light');
    }

    window.addEventListener('load', () => {
      document.getElementById('loading').style.display = 'none';
      document.getElementById('main-content').classList.remove('hidden');
    });
  </script>

</body>

</html>