<!DOCTYPE html>
<html lang="hi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>FREE FIRE ACCESS TOKEN</title>
<style>
*{box-sizing:border-box}
body{margin:0;padding:18px 12px;background:#090511;color:white;font-family:Arial;background-image:radial-gradient(ellipse at top,#35104d,transparent 55%)}
.main{max-width:480px;margin:auto;padding:20px 16px;background:#0b0815;border:1px solid #552477;border-radius:25px;box-shadow:0 0 30px #a000ff22}
header{text-align:center;padding:10px 0 25px}
.logo{width:85px;height:85px;margin:auto auto 15px;border-radius:22px;background:linear-gradient(140deg,#ff315d,#a000ff);display:grid;place-items:center;font-size:25px;font-weight:1000;box-shadow:0 0 25px #c000ff88}
h1{font-size:25px}h1 span{color:#ff36c2}
.sub{font-size:10px;letter-spacing:2px;color:#bda9cf}
.title{color:#b9a5cd;font-size:13px;font-weight:bold;letter-spacing:1px;margin:22px 0 13px}
.panel{padding:16px;border:1px solid #512b70;border-radius:17px;background:#120c20}
.step{font-size:13px;line-height:1.6;margin:10px 0}
.step b{color:#ff54cf}
.safe{font-size:11px;color:#45d9ae}
.providers{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.provider{padding:13px 2px;background:#1c1230;border:1px solid #543273;border-bottom:4px solid #321b4b;border-radius:15px;color:white;font-size:22px}
.provider small{display:block;font-size:9px;color:#cbbbd9;margin-top:7px}
.provider.active{border-color:#f33ab9;box-shadow:0 0 15px #f33ab955}
.note{font-size:11px;color:#c5b5d4;line-height:1.6;margin-top:12px}
textarea,input{width:100%;padding:14px;background:#080611;color:white;border:1px solid #563578;border-radius:12px;font-size:14px;margin:6px 0;outline:none}
textarea{height:105px;resize:vertical}
textarea:focus,input:focus{border-color:#ed35c2}
button{cursor:pointer}
.paste{padding:10px 17px;border-radius:25px;background:#24102c;border:1px solid #a72c83;color:#ff9bdf;font-weight:bold}
.tools{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:#a99bbd;font-size:12px}
.generate{width:100%;padding:19px;margin-top:18px;border:0;border-radius:16px;background:linear-gradient(100deg,#a20cff,#f02ca8);color:white;font-size:16px;font-weight:1000;box-shadow:0 8px 22px #d10b9b44}
.secondary{padding:13px;background:#211431;border:1px solid #60377c;border-radius:10px;color:white;font-weight:bold}
.status{text-align:center;color:#ff8bd5;font-size:12px;margin-top:10px;min-height:17px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.result{display:none;margin-top:15px}
.result.show{display:block}
.detail{padding:12px 3px;border-bottom:1px solid #392347;display:flex;justify-content:space-between;font-size:13px}
.detail span:last-child{color:#ff61d2;font-weight:bold}
footer{text-align:center;color:#8c7d9c;font-size:10px;margin:22px 0 5px}
</style>
</head>
<body>
<main class="main">
<header>
<div class="logo">FREE<br>FIRE</div>
<h1>FREE FIRE <span>ACCESS</span></h1>
<div class="sub">PRIVATE TOKEN VIEWER</div>
</header>
<div class="title">HOW TO USE</div>
<div class="panel">
<div class="step">🟣 <b>STEP 1:</b> Select your linked provider.</div>
<div class="safe">✓ Never share your password or OTP.</div>
<div class="step">🟣 <b>STEP 2:</b> Use your own authorized URL or token.</div>
<div class="step">🟣 <b>STEP 3:</b> Paste it below and click Generate.</div>
</div>
<div class="title">SELECT PROVIDER</div>
<div class="providers">
<button class="provider" data-p="Google">🌐<small>Google</small></button>
<button class="provider" data-p="Facebook">🔵<small>Facebook</small></button>
<button class="provider" data-p="Apple"><small>Apple</small></button>
<button class="provider" data-p="X">𝕏<small>X</small></button>
<button class="provider" data-p="VK">ⓥ<small>VK</small></button>
</div>
<div class="note" id="providerNote">Provider चुनें। यह केवल चयन है, यहाँ लॉगिन नहीं होता।</div>
<div class="title">PASTE YOUR TOKEN</div>
<div class="panel">
<textarea id="token" placeholder="Paste your own token or authorized URL here..."></textarea>
<div class="tools">
<span>Enter your token</span>
<button class="paste" id="paste">▣ Paste</button>
</div>
<button class="generate" id="generate">GENERATE ACCESS ➜</button>
<div class="status" id="status"></div>
</div>
<div class="title">PLAYER PROFILE</div>
<div class="panel">
<div class="grid">
<input id="name" placeholder="Player Name">
<input id="uid" placeholder="Player UID">
<input id="level" type="number" placeholder="Level">
<input id="rank" placeholder="Rank">
</div>
<button class="secondary" style="width:100%" id="profile">SHOW PROFILE</button>
<div class="result" id="result">
<div class="title">PLAYER DETAILS</div>
<div class="detail"><span>Access Token</span><span>Extracted locally</span></div>
<input id="output" type="password" readonly>
<div class="grid">
<button class="secondary" id="show">SHOW / HIDE</button>
<button class="secondary" id="copy">COPY TOKEN</button>
</div>
<div class="detail"><span>Player Name</span><span id="rname"></span></div>
<div class="detail"><span>UID</span><span id="ruid"></span></div>
<div class="detail"><span>Level</span><span id="rlevel"></span></div>
<div class="detail"><span>Rank</span><span id="rrank"></span></div>
<div class="note">Profile details are entered by the user, not verified by Garena.</div>
<button class="secondary" style="width:100%;margin-top:10px" id="copyProfile">COPY PROFILE</button>
</div>
<div class="note">असली Player Level और Rank पाने के लिए अधिकृत Garena API की जरूरत होगी।</div>
</div>
<div class="grid" style="margin-top:12px">
<button class="secondary" id="clear">CLEAR ALL</button>
<button class="secondary" id="terms">TERMS & SAFETY</button>
</div>
<footer>Fan-made tool • Not affiliated with Garena or Free Fire.<br>Your pasted text is processed locally in this page.</footer>
</main>
<script>
const $=id=>document.getElementById(id);
let extracted="";
document.querySelectorAll(".provider").forEach(b=>{
b.onclick=()=>{
document.querySelectorAll(".provider").forEach(x=>x.classList.remove("active"));
b.classList.add("active");
$("providerNote").textContent=b.dataset.p+" selected. Login only through its official app/site. This page does not collect passwords.";
};
});
$("paste").onclick=async()=>{
try{
const t=await navigator.clipboard.readText();
if(!t){$("status").textContent="Clipboard खाली है।";return;}
$("token").value=t;
$("status").textContent="Paste हो गया!";
}catch(e){$("status").textContent="बॉक्स को दबाकर रखें और Paste चुनें।";}
};
$("generate").onclick=()=>{
const raw=$("token").value.trim();
if(!raw){$("status").textContent="पहले अपना Token या URL paste करें।";return;}
let value=raw;
try{
const u=new URL(raw);
value=u.searchParams.get("eAt")||u.searchParams.get("eat")||raw;
}catch(e){
const m=raw.match(/[?&]eAt=([^&#\s]+)/i)||raw.match(/[?&]eat=([^&#\s]+)/i);
if(m)value=decodeURIComponent(m[1]);
}
extracted=value;
$("output").value=extracted;
$("result").classList.add("show");
$("status").textContent="Token locally read हुआ। नया token generate नहीं हुआ।";
};
$("profile").onclick=()=>{
$("rname").textContent=$("name").value||"Not provided";
$("ruid").textContent=$("uid").value||"Not provided";
$("rlevel").textContent=$("level").value||"Not provided";
$("rrank").textContent=$("rank").value||"Not provided";
$("result").classList.add("show");
};
$("show").onclick=()=>{
$("output").type=$("output").type==="password"?"text":"password";
};
$("copy").onclick=async()=>{
if(!extracted)return;
try{await navigator.clipboard.writeText(extracted);$("status").textContent="Token copied!";}
catch(e){$("status").textContent="Copy permission unavailable.";}
};
$("copyProfile").onclick=async()=>{
const text=`Name: ${$("rname").textContent}\nUID: ${$("ruid").textContent}\nLevel: ${$("rlevel").textContent}\nRank: ${$("rrank").textContent}`;
try{await navigator.clipboard.writeText(text);$("status").textContent="Profile copied!";}
catch(e){$("status").textContent="Copy permission unavailable.";}
};
$("clear").onclick=()=>{
["token","name","uid","level","rank","output"].forEach(id=>$(id).value="");
["rname","ruid","rlevel","rrank"].forEach(id=>$(id).textContent="");
extracted="";
$("result").classList.remove("show");
$("status").textContent="सभी fields साफ कर दिए गए।";
};
$("terms").onclick=()=>alert("किसी से password, OTP या दूसरे व्यक्ति का session token न लें। यह पेज किसी provider में login नहीं करता और Garena profile data fetch नहीं करता।");
</script>
</body>
</html>