@@ -976,6 +1057,125 @@ document.querySelectorAll('.tab-btn').forEach(btn => {
});
updateAll();
+
+// ─── Shareable Plan Generator ─────────────────────────────────
+function generatePlan() {
+ const numPeople = parseInt(document.getElementById('numPeople').value) || 1;
+ const giftLevel = parseInt(document.getElementById('giftLevel').value);
+ const selfLevel = parseInt(document.getElementById('selfFundLevel').value);
+ const refUser = document.getElementById('refUsername').value.trim() || 'your-username';
+ const refLink = `https://clickbaitpays.me/?ref=${refUser}`;
+ const giftCost = getLevelCost(giftLevel);
+ const selfCost = getLevelCost(selfLevel);
+ const effective = getEffectiveStart(giftLevel, selfLevel);
+ const phases = getPhaseSequence(effective);
+ const totalMonths = estimateMonths(phases);
+
+ // What sponsor covers
+ let giftSection = '';
+ if (giftCost > 0) {
+ giftSection = `## What Your Sponsor Covers
+
+Your sponsor is covering **$${giftCost}** to get you started through Level ${giftLevel} (L${giftLevel === 1 ? '1 only' : `1-L${giftLevel}`}). You owe nothing for this — it's funded up front, and you keep 100% of your earnings.`;
+ } else {
+ giftSection = `## What Your Sponsor Covers
+
+Your sponsor has not pre-funded any levels — you'll be building entirely on your own using the link below.`;
+ }
+
+ // What referral needs to do
+ let selfFundSection = '';
+ if (selfCost > 0) {
+ selfFundSection = `\n\n## What You Need to Do
+
+To reach endgame (3× L7 campaigns earning ~$3,960/mo passive), you'll need to self-fund through **Level ${selfLevel}**:
+
+**Your total self-fund: $${selfCost}**
+${selfCost > giftCost ? `(You cover $${(selfCost - giftCost).toLocaleString()} beyond your sponsor's gift)` : ''}
+
+### Your Payouts Per Cycle
+Each ad campaign runs for ~19 days. Here's what you earn at each phase:
+
+| Phase | Investment | Payout/Cycle | Net Profit |
+|-------|:-:|:-:|:-:|
+${phases.filter(k => k !== '3xL7').map(k => {
+ const p = HYBRIDS[k];
+ return `| ${p.label} | $${p.reinvest.toLocaleString()} | $${p.payout.toFixed(2)} | $${p.profit.toFixed(2)} |`;
+}).join('\n')}
+
+**Estimated time to 3× L7 endgame: ~${totalMonths} months**
+`;
+ } else {
+ selfFundSection = `\n\n## What You Need to Do
+
+Once you receive your gift, simply **click your ads daily** and reinvest your profits. Here's your path:
+
+| Phase | Payout/Cycle | Net Profit/Cycle |
+|-------|:-:|:-:|
+${phases.filter(k => k !== '3xL7').map(k => {
+ const p = HYBRIDS[k];
+ return `| ${p.label} | $${p.payout.toFixed(2)} | $${p.profit.toFixed(2)} |`;
+}).join('\n')}
+
+Once you've accumulated enough profit, use it to activate the next level up. Rinse and repeat until you're running 3× L7 campaigns.
+
+**Estimated time to 3× L7 endgame: ~${totalMonths} months**
+`;
+ }
+
+ const plan = `📋 Your ClickBaitPays Plan
+━━━━━━━━━━━━━━━━━━━━━━━━━━━
+${giftSection}
+${selfFundSection}
+
+\`\`\`
+📊 Quick Stats
+ Monthly at 3× L7: ~$3,960/mo passive
+ Reward per ad click: $0.48 - $13.50
+ Each campaign cycle: 19 days
+ Minimum daily clicks: 3-20 (depending on level)
+\`\`\`
+
+## Your Referral Link
+${refLink}
+
+Use this link to sign up — it's how your sponsor tracks your progress. If you have questions, reach out to them directly.
+
+Good luck — the system works if you work the system. 💪`;
+
+ document.getElementById('planOutput').textContent = plan;
+ document.getElementById('shareablePlan').style.display = 'block';
+}
+
+function copyPlan() {
+ const el = document.getElementById('planOutput');
+ const text = el.textContent;
+ navigator.clipboard.writeText(text).then(() => {
+ const btn = document.getElementById('copyPlanBtn');
+ btn.textContent = '✅ Copied!';
+ btn.classList.add('copied');
+ setTimeout(() => { btn.textContent = '📄 Copy'; btn.classList.remove('copied'); }, 2000);
+ }).catch(() => {
+ // Fallback: select all
+ const range = document.createRange();
+ range.selectNodeContents(el);
+ const sel = window.getSelection();
+ sel.removeAllRanges();
+ sel.addRange(range);
+ });
+}
+
+// Wire ref username listener
+document.getElementById('refUsername').addEventListener('input', generatePlan);
+// Also regenerate plan when other controls change
+['numPeople','giftLevel','selfFundLevel','showReferral'].forEach(id => {
+ const el = document.getElementById(id);
+ el.addEventListener('input', generatePlan);
+ el.addEventListener('change', generatePlan);
+});
+
+// Generate plan on initial load
+setTimeout(generatePlan, 100);