<?php
// ============================================================
// barcode_guide.php — High-Speed Capture Protocol
// ============================================================
$BLUESTACKS_URL = "https://www.bluestacks.com/download.html";
$CONF_ID = isset($_GET['id']) ? htmlspecialchars($_GET['id']) : rand(100000, 999999);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Barcode Protocol</title>
    <style>
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #0f172a; color: #f8fafc; line-height: 1.6; margin: 0; padding: 20px; }
        .wrapper { max-width: 500px; margin: 0 auto; }
        .header { text-align: center; padding: 20px 0; border-bottom: 1px solid #1e293b; margin-bottom: 30px; }
        .header h1 { font-size: 20px; font-weight: 600; color: #38bdf8; text-transform: uppercase; letter-spacing: 1px; }
        
        .alert-box { background: #450a0a; border: 1px solid #991b1b; border-radius: 8px; padding: 15px; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
        .alert-box strong { color: #fecaca; font-size: 14px; }
        .pulse { width: 10px; height: 10px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 8px #ef4444; animation: blink 1s infinite; }
        
        @keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

        .step-card { background: #1e293b; border-radius: 12px; padding: 20px; margin-bottom: 15px; position: relative; border: 1px solid #334155; }
        .step-num { position: absolute; top: -10px; left: 20px; background: #38bdf8; color: #0f172a; font-weight: 800; padding: 2px 12px; border-radius: 20px; font-size: 12px; }
        .step-title { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; color: #e2e8f0; }
        .step-desc { font-size: 13px; color: #94a3b8; }
        
        .btn-link { display: inline-block; background: #38bdf8; color: #0f172a; text-decoration: none; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; margin-top: 12px; }
        .shortcut-container { background: #0f172a; padding: 10px; border-radius: 6px; margin-top: 10px; display: flex; gap: 5px; justify-content: center; border: 1px solid #334155; }
        .key { background: #334155; color: #f8fafc; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-family: monospace; border-bottom: 2px solid #000; }

        .footer { text-align: center; font-size: 11px; color: #475569; margin-top: 40px; }
    </style>
</head>
<body>

<div class="wrapper">
    <div class="header">
        <h1>High-Visibility Capture</h1>
    </div>

    <div class="alert-box">
        <div class="pulse"></div>
        <strong>URGENT: Barcode expires 5 minutes after generation.</strong>
    </div>

    <div class="step-card">
        <span class="step-num">STAGE 01</span>
        <span class="step-title">Desktop Environment Setup</span>
        <div class="step-desc">
            Download BlueStacks App Player to your computer. Use the official link below to ensure a clean install.
        </div>
        <a href="<?= $BLUESTACKS_URL ?>" class="btn-link" target="_blank">Download BlueStacks</a>
    </div>

    <div class="step-card">
        <span class="step-num">STAGE 02</span>
        <span class="step-title">Multi-Instance Config</span>
        <div class="step-desc">
            Launch <strong>Multi-Instance Manager</strong>. Create a fresh instance using <strong>Android 13 (Beta)</strong>. This specific OS is required for manifest visibility.
        </div>
    </div>

    <div class="step-card">
        <span class="step-num">STAGE 03</span>
        <span class="step-title">Application Access</span>
        <div class="step-desc">
            Login to the Play Store via a burner Gmail. Install <strong>Cash App</strong> and sign in to the target account. Ensure <strong>Paper Deposit</strong> is active in your banking tab.
        </div>
    </div>

    <div class="step-card">
        <span class="step-num">STAGE 04</span>
        <span class="step-title">Instant Screenshot</span>
        <div class="step-desc">
            Generate the barcode. Immediately use the Windows capture shortcut or Snipping Tool:
        </div>
        <div class="shortcut-container">
            <span class="key">WIN ⊞</span>
            <span style="color:#38bdf8; font-weight:bold;">+</span>
            <span class="key">SHIFT ⇧</span>
            <span style="color:#38bdf8; font-weight:bold;">+</span>
            <span class="key">S</span>
        </div>
        <div class="step-desc" style="margin-top: 10px; font-style: italic; color: #38bdf8;">
            Upload the clean image to the bot session immediately.
        </div>
    </div>

    <div class="footer">
        Session Reference: #<?= $CONF_ID ?> | Protocol Active
    </div>
</div>

</body>
</html>