{"product_id":"915-cash-8-ball-pool","title":"915 Cash | 8 Ball Pool","description":"\u003c!-- Style section --\u003e\n\u003cstyle\u003e\n    @media screen and (max-width: 600px) {\n        .button-container {\n            flex-direction: column !important;\n        }\n        .calc-button {\n            width: 100% !important;\n            margin-top: 8px !important;\n        }\n        .input-field {\n            width: 100% !important;\n        }\n    }\n    @keyframes spin {\n        to { transform: rotate(360deg); }\n    }\n\u003c\/style\u003e\n\n\u003c!-- Title and Limited Offer Banner --\u003e\n\u003cp\u003e\u003cstrong\u003eEnhance Your 8 Ball Pool Experience with Cash\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e\n\u003cspan style=\"background-color: rgba(255, 0, 0, 0.5); border: 1px solid red; padding: 5px; border-radius: 5px; color: #ffffff;\"\u003e8BP account, email and password are required.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003c!-- VIP Calculator section --\u003e\n\u003cdiv style=\"margin: 20px 0; padding: 15px; border: 1px solid rgba(229, 229, 229, 0.3); border-radius: 8px; background-color: transparent;\" id=\"vip-calculator\"\u003e\n    \u003cdiv style=\"margin-bottom: 15px;\"\u003e\n        \u003clabel style=\"display: block; margin-bottom: 5px; font-weight: bold;\" for=\"userId\"\u003eEnter your Unique ID for VIP benefits:\u003c\/label\u003e\n        \u003cdiv class=\"button-container\" style=\"display: flex; gap: 10px; width: 100%;\"\u003e\n            \u003cinput class=\"input-field\" style=\"flex: 1; padding: 8px; border: 1px solid rgba(204, 204, 204, 0.3); border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: inherit;\" id=\"userId\" type=\"text\" placeholder=\"Enter your Unique ID\"\u003e\n            \u003cbutton class=\"calc-button\" style=\"padding: 8px 24px; background-color: #ffd101; color: #000000; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(255, 209, 1, 0.2);\" onmouseover=\"this.style.transform='translateY(-1px)'; this.style.boxShadow='0 4px 8px rgba(255, 209, 1, 0.3)';\" onmouseout=\"this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 4px rgba(255, 209, 1, 0.2)';\" onclick=\"calculateRewards()\"\u003eCalculate\u003c\/button\u003e\n            \u003cbutton class=\"calc-button\" style=\"padding: 8px 24px; background-color: transparent; color: #ffd101; border: 1px solid #ffd101; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s ease;\" onmouseover=\"this.style.backgroundColor='rgba(255, 209, 1, 0.1)'\" onmouseout=\"this.style.backgroundColor='transparent'\" onclick=\"clearCalculator()\"\u003eReset\u003c\/button\u003e\n        \u003c\/div\u003e\n    \u003c\/div\u003e\n    \u003cdiv style=\"display: none; text-align: center; color: #ffd101;\" id=\"loading\"\u003e\n        \u003cdiv style=\"display: inline-block; width: 20px; height: 20px; border: 3px solid #ffd101; border-radius: 50%; border-top-color: transparent; animation: spin 1s linear infinite;\"\u003e\u003c\/div\u003e\n        Calculating your VIP...\n    \u003c\/div\u003e\n    \u003cdiv style=\"display: none; color: #ff4444; margin-top: 10px; padding: 10px; background-color: rgba(255, 68, 68, 0.1); border-radius: 4px;\" id=\"error\"\u003e\u003c\/div\u003e\n    \u003cdiv style=\"display: none; margin-top: 15px; padding: 15px; background-color: rgba(255, 209, 1, 0.1); border-radius: 4px; border: 1px solid rgba(255, 209, 1, 0.2);\" id=\"vipInfo\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003c!-- Bundle Details --\u003e\n\u003cp\u003e\u003cstrong\u003eBundle Includes:\u003c\/strong\u003e\u003cbr\u003e\n\u003cspan id=\"cashAmount\" style=\"display: inline-block; transition: all 0.3s ease;\"\u003e- 610 Cash\u003c\/span\u003e\u003c\/p\u003e\n\n\u003c!-- Note and VIP Table --\u003e\n\u003cp\u003e\u003cspan style=\"color: #ffd101;\"\u003e\u003cstrong\u003eHow much 8 Ball Pool Cash will I receive?\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\nItem quantities, such as 8BP Cash, vary based on your VIP level. The stated amounts are for the Emerald VIP level.\u003cbr\u003e\nUse this list to find out how much Cash your 8BP account will get:\u003cbr\u003e\u003cbr\u003e\n- (x1) Bronze VIP: 610 Cash\u003cbr\u003e\n- (x1.1) Silver VIP: 671 Cash\u003cbr\u003e\n- (x1.25) Gold VIP: 762 Cash\u003cbr\u003e\n- (x1.5) Emerald VIP: 915 Cash\u003cbr\u003e\n- (x1.75) Diamond VIP: 1,067 Cash\u003cbr\u003e\n- (x2) Black Diamond VIP: 1,220 Cash\u003c\/p\u003e\n\n\u003cscript\u003e\nfunction initializeCalculator() {\n    window.originalValues = {\n        cash: document.getElementById('cashAmount').textContent,\n        \/\/ Using Bronze VIP base value\n        baseCash: 610\n    };\n}\n\ndocument.addEventListener('DOMContentLoaded', initializeCalculator);\n\nfunction formatNumber(number) {\n    return number.toLocaleString();\n}\n\nfunction extractBaseValues() {\n    return {\n        baseCash: window.originalValues.baseCash,\n        baseCoins: 1,  \/\/ Set to 1 to avoid validation error\n        baseVipPoints: 1  \/\/ Set to 1 to avoid validation error\n    };\n}\n\nfunction highlightChange(element) {\n    element.style.backgroundColor = 'rgba(255, 209, 1, 0.2)';\n    element.style.padding = '2px 6px';\n    element.style.borderRadius = '4px';\n    element.style.transform = 'scale(1.05)';\n    \n    setTimeout(() =\u003e {\n        element.style.backgroundColor = 'transparent';\n        element.style.transform = 'scale(1)';\n    }, 1500);\n}\n\nfunction clearCalculator() {\n    document.getElementById('userId').value = '';\n    \n    const cashElement = document.getElementById('cashAmount');\n    cashElement.textContent = window.originalValues.cash;\n    highlightChange(cashElement);\n    \n    document.getElementById('vipInfo').style.display = 'none';\n    document.getElementById('error').style.display = 'none';\n}\n\nasync function calculateRewards() {\n    const userId = document.getElementById('userId').value.trim();\n    const loading = document.getElementById('loading');\n    const error = document.getElementById('error');\n    const vipInfo = document.getElementById('vipInfo');\n    const { baseCash, baseCoins, baseVipPoints } = extractBaseValues();\n\n    if (!userId) {\n        error.textContent = 'Please enter your Unique ID';\n        error.style.display = 'block';\n        return;\n    }\n\n    const buttons = document.querySelectorAll('.calc-button');\n    buttons.forEach(button =\u003e button.disabled = true);\n    \n    loading.style.display = 'block';\n    error.style.display = 'none';\n    vipInfo.style.display = 'none';\n\n    try {\n        const response = await fetch('http:\/\/gentle-cliff-226d33f1cc6745e4955c446961c170e9.azurewebsites.net\/calculate-rewards', {\n            method: 'POST',\n            headers: {\n                'Content-Type': 'application\/json',\n            },\n            body: JSON.stringify({\n                user_id: userId,\n                base_cash: baseCash,\n                base_coins: baseCoins,\n                base_vip_points: baseVipPoints\n            })\n        });\n\n        const data = await response.json();\n\n        if (data.error) {\n            throw new Error(data.error);\n        }\n\n        const cashElement = document.getElementById('cashAmount');\n        const bonusCash = data.cash - baseCash;\n\n        cashElement.textContent = `- ${formatNumber(data.cash)} Cash`;\n        highlightChange(cashElement);\n\n        vipInfo.innerHTML = `\n            \u003cdiv style=\"color: #ffd101; font-weight: 600; font-size: 1.1em;\"\u003eWelcome, ${data.username}! 🎮\u003c\/div\u003e\n            \u003cdiv style=\"margin-top: 0.5rem;\"\u003eYour VIP Tier: \u003cstrong style=\"color: #ffd101\"\u003e${data.vip_tier}\u003c\/strong\u003e\u003c\/div\u003e\n            \u003cdiv style=\"margin-top: 0.5rem; font-size: 0.9em; color: rgba(255, 255, 255, 0.7);\"\u003e\n                Your VIP benefits: \n                \u003cul style=\"margin-top: 0.3rem; padding-left: 1.2rem;\"\u003e\n                    \u003cli\u003eCash Multiplier: ${data.multipliers.cash}x | +${formatNumber(bonusCash)} Cash\u003c\/li\u003e\n                \u003c\/ul\u003e\n            \u003c\/div\u003e\n        `;\n        vipInfo.style.display = 'block';\n\n    } catch (err) {\n        error.textContent = err.message || 'Failed to calculate rewards. Please try again.';\n        error.style.display = 'block';\n    } finally {\n        loading.style.display = 'none';\n        buttons.forEach(button =\u003e button.disabled = false);\n    }\n}\n\u003c\/script\u003e","brand":"TAYYAB GAMING ZONE","offers":[{"title":"Default Title","offer_id":53495363731756,"sku":null,"price":1350.0,"currency_code":"PKR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0978\/3587\/6652\/files\/IMG-0610.png?v=1785917649","url":"https:\/\/tayyabgaming.shop\/products\/915-cash-8-ball-pool","provider":"TAYYAB GAMING ZONE","version":"1.0","type":"link"}