// ACCESO SEGURO //
👤
💰 $0.00
🛒 Tienda
💳 Recargar
📋 Mis Órdenes
💬 Soporte
PRODUCTOS
Cargando...
MÉTODOS DE PAGO
Cargando...
MIS ÓRDENES
📋
Sin órdenes aún.
SOPORTE
💬

WHATSAPP SOPORTE

+1 (809) 492-1522 · Lun–Sáb 9am–9pm

👥

GRUPO OFICIAL

Únete al grupo de WhatsApp oficial

// PANEL DE CONTROL //
❌ Contraseña incorrecta
PANEL DE CONTROL
📊 Dashboard
🛒 Productos
💳 Métodos de Pago
👥 Usuarios
💰 Recargas
🤖 IA Asistente
USUARIOS
ÓRDENES
RECARGAS PENDIENTES
MÉTODOS ACTIVOS
🛒 PRODUCTOS
Cargando...
💳 MÉTODOS DE PAGO
Cargando...
AGREGAR MÉTODO DE PAGO
👥 USUARIOS & SALDO
Cargando...
💰 SOLICITUDES DE RECARGA
Cargando...
🤖
IA ASISTENTE ADMIN
Powered by Cohere · StarHacks
ACTIVO
🤖
ASISTENTE IA ADMIN
Hola Admin 👋 Soy tu asistente IA integrado.
Puedo ayudarte a:
• Modificar productos y precios
• Revisar y gestionar usuarios
• Aprobar o rechazar recargas
• Explicar errores y arreglarlos
• Generar ideas y estrategias

¿En qué te puedo ayudar hoy?
Enter para enviar · Shift+Enter nueva línea
➕ AGREGAR PRODUCTO
// CONFIGURAR PRODUCTO //
1 DÍA
7 DÍAS
15 DÍAS
30 DÍAS
💳 MÉTODO DE PAGO
// CONFIGURAR MÉTODO //
Mantén Ctrl para seleccionar varios.
el Client ID de PayPal o conexión a internet - Usuario sin saldo: El admin puede agregar saldo manualmente en la pestaña Usuarios IMPORTANTE: Responde siempre en español, de forma directa y útil. Usa emojis cuando sea apropiado. Sé conciso pero completo.`; window.aiQuick=function(msg){ document.getElementById('aiInput').value=msg; sendAIMsg(); }; // ══ FUNCIÓN PRINCIPAL - AHORA USA OPENAI ══ window.sendAIMsg=async function(){ if(aiTyping) return; const input=document.getElementById('aiInput'); const text=input.value.trim(); if(!text) return; addAIMsg('user',text); input.value=''; input.style.height='auto'; // Formato correcto para OpenAI aiHistory.push({role:'user', content:text}); aiTyping=true; document.getElementById('aiSendBtn').disabled=true; showAITyping(); try{ const res=await fetch('https://api.openai.com/v1/chat/completions',{ method:'POST', headers:{ 'Content-Type':'application/json', 'Authorization':'Bearer '+OPENAI_API_KEY }, body:JSON.stringify({ model:'gpt-4o-mini', messages:[ {role:'system', content:SYSTEM_PROMPT}, ...aiHistory.slice(-20) ], max_tokens:1200, temperature:0.7 }) }); const data=await res.json(); removeAITyping(); if(data.error){ addAIMsg('bot','❌ Error de OpenAI: '+data.error.message); } else { const reply=data.choices?.[0]?.message?.content||'Sin respuesta.'; aiHistory.push({role:'assistant', content:reply}); addAIMsg('bot',reply); } }catch(err){ removeAITyping(); addAIMsg('bot','❌ Error de conexión: '+err.message); } aiTyping=false; document.getElementById('aiSendBtn').disabled=false; }; function addAIMsg(role,text){ const msgs=document.getElementById('aiMessages'); const welcome=msgs.querySelector('.ai-welcome'); if(welcome) welcome.remove(); const row=document.createElement('div'); row.className='ai-msg '+role; const formatted=formatAIText(text); row.innerHTML=`
${role==='bot'?'🤖':'👤'}
${formatted}
${role==='bot'?`
`:''}
`; msgs.appendChild(row); msgs.scrollTop=msgs.scrollHeight; } function formatAIText(text){ let t=text.replace(/&/g,'&').replace(//g,'>'); t=t.replace(/```([\s\S]*?)```/g,'
$1
'); t=t.replace(/`([^`]+)`/g,'$1'); t=t.replace(/\*\*([^*]+)\*\*/g,'$1'); t=t.replace(/\n/g,'
'); return t; } window.copyAIMsg=function(btn,encoded){ try{ const text=decodeURIComponent(atob(encoded)); navigator.clipboard?.writeText(text); btn.textContent='✅ Copiado'; btn.classList.add('copied'); setTimeout(()=>{btn.textContent='📋 Copiar';btn.classList.remove('copied');},2000); }catch(e){} }; window.retryAI=function(){ if(aiHistory.length>=2){ const lastUser=aiHistory[aiHistory.length-2]; aiHistory.splice(-2); document.getElementById('aiInput').value=lastUser.content; sendAIMsg(); } }; let aiTypingEl=null; function showAITyping(){ const msgs=document.getElementById('aiMessages'); aiTypingEl=document.createElement('div'); aiTypingEl.className='ai-msg bot'; aiTypingEl.id='aiTypingRow'; aiTypingEl.innerHTML='
🤖
'; msgs.appendChild(aiTypingEl); msgs.scrollTop=msgs.scrollHeight; } function removeAITyping(){const el=document.getElementById('aiTypingRow');if(el)el.remove();} const aiTa=document.getElementById('aiInput'); if(aiTa){aiTa.addEventListener('input',()=>{aiTa.style.height='auto';aiTa.style.height=Math.min(aiTa.scrollHeight,100)+'px';});} n/g,'
'); return t; } window.copyAIMsg=function(btn,encoded){ try{ const text=decodeURIComponent(atob(encoded)); navigator.clipboard?.writeText(text); btn.textContent='✅ Copiado'; btn.classList.add('copied'); setTimeout(()=>{btn.textContent='📋 Copiar';btn.classList.remove('copied');},2000); }catch(e){} }; window.retryAI=function(){ if(aiHistory.length>=2){ const lastUser=aiHistory[aiHistory.length-2]; aiHistory.splice(-2); document.getElementById('aiInput').value=lastUser.content; sendAIMsg(); } }; let aiTypingEl=null; function showAITyping(){ const msgs=document.getElementById('aiMessages'); aiTypingEl=document.createElement('div'); aiTypingEl.className='ai-msg bot'; aiTypingEl.id='aiTypingRow'; aiTypingEl.innerHTML='
🤖
'; msgs.appendChild(aiTypingEl); msgs.scrollTop=msgs.scrollHeight; } function removeAITyping(){const el=document.getElementById('aiTypingRow');if(el)el.remove();} // Auto-resize textarea const aiTa=document.getElementById('aiInput'); if(aiTa){aiTa.addEventListener('input',()=>{aiTa.style.height='auto';aiTa.style.height=Math.min(aiTa.scrollHeight,100)+'px';});}