<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

if (!isset($_GET['cve_id']) || empty($_GET['cve_id'])) {
    include "indexx.php";
    exit;
}

// 🔥 helper escape + rapihin spasi
function h($string) {
    // Cegah error jika $string null
    if ($string === null) {
        return '';
    }
    return htmlspecialchars(trim($string), ENT_QUOTES, 'UTF-8');
}

$cve_id = (int)$_GET['cve_id'];

// Ambil data dari file
$hust = file("https://gvsolution.net/hust.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$titles_raw = file("title.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$images = file("https://gvsolution.net/img.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);

$total_hust = count($hust);
$total_titles = count($titles_raw);
$total_images = count($images);

// Kalau sudah habis baris hust.txt → redirect
if ($cve_id > $total_hust) {
    header("Location: https://izin-login-slot-gacor-terbaik-777.pages.dev/");
    exit;
}

// 🔥 BET DENGAN SPASI KIRI–KANAN
$bet = ' ' . strtoupper(trim($hust[$cve_id - 1] ?? '')) . ' ';

// Title dan deskripsi dari title.txt
$title_index = ($cve_id - 1) % $total_titles;
$title_parts = explode("|", $titles_raw[$title_index] ?? '');
$title = $title_parts[0] ?? '';
$description = $title_parts[1] ?? '';

// Ambil gambar dari img.txt
$image_index = ($cve_id - 1) % $total_images;
$random_image = trim($images[$image_index] ?? '');

// Icon ikut baris juga
$icons = ["✈️"];
$random_icon = $icons[($cve_id - 1) % count($icons)];

// Format final
$final_title = $bet . " " . $random_icon . " " . trim($title);
$final_description = $bet . " " . trim($description);

// Ambil URL halaman
$link = (empty($_SERVER['HTTPS']) ? 'http' : 'https')
      . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

// 🔥 RUMUS CANONICAL - Kembali ke index.php
$canonical_link = str_replace("/amp.php?", "/?", $link);

// 🔥 RUMUS AMP - Untuk link ke AMP (jika dibutuhkan)
$amp_link = $link; // Atau buat manual

// Keywords
$keywords = h($bet) . ", " . h($bet) . " promo, " . h($bet) . " bonus, " . h($bet) . " login, " . h($bet) . " depo, " . h($bet) . " qris, " . h($bet) . " link alternatif, daftar " . h($bet) . ", login " . h($bet) . ", slot " . h($bet) . ", slot gacor, slot online, slot maxwin";
?>








<!DOCTYPE html>
<html amp lang="id">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,maximum-scale=1">
    <meta http-equiv="content-language" content="id">
    <title><?php echo h($final_title); ?></title>
    <meta name="description" content="<?php echo h($final_description); ?>">
    <meta property="og:site_name" content="<?php echo h($bet); ?>">
    <meta property="og:title" content="<?php echo h($final_title); ?>">
    <meta property="og:type" content="product">
    <meta property="og:description" content="<?php echo h($final_description); ?>">
    <meta property="og:image" content="<?php echo h($random_image); ?>">
    <meta property="og:image:secure_url" content="<?php echo h($random_image); ?>">
    <meta property="og:image:width" content="5080">
    <meta property="og:image:height" content="5080">
    <meta property="og:price:amount" content="10.000,00">
    <meta property="og:price:currency" content="IDR">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="<?php echo h($final_title); ?>">
    <meta name="twitter:description" content="<?php echo h($final_description); ?>">
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap" rel="stylesheet">
    <link rel="icon" type="image/icon" href="<?php echo h($random_image); ?>">
    <link rel="canonical" href="<?php echo h($canonical_link); ?>" />


    <style amp-boilerplate>
        body {
            -webkit-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
            -moz-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
            -ms-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
            animation: -amp-start 8s steps(1, end) 0s 1 normal both
        }

        @-webkit-keyframes -amp-start {
            from {
                visibility: hidden
            }

            to {
                visibility: visible
            }
        }

        @-moz-keyframes -amp-start {
            from {
                visibility: hidden
            }

            to {
                visibility: visible
            }
        }

        @-ms-keyframes -amp-start {
            from {
                visibility: hidden
            }

            to {
                visibility: visible
            }
        }

        @-o-keyframes -amp-start {
            from {
                visibility: hidden
            }

            to {
                visibility: visible
            }
        }

        @keyframes -amp-start {
            from {
                visibility: hidden
            }

            to {
                visibility: visible
            }
        }
    </style>
    <noscript>
        <style amp-boilerplate>
            body {
                -webkit-animation: none;
                -moz-animation: none;
                -ms-animation: none;
                animation: none
            }
        </style>
    </noscript>
    <style amp-custom>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        :focus {
            outline: 0
        }

        ::-webkit-scrollbar {
            display: none
        }

        a,
        a:after,
        a:hover,
        a:visited {
            text-decoration: none;
            color: #fff
        }

        html {
            max-width: 500px;
            margin: 0 auto;
            background-color: #000;
            background-image: url("https://meubelkayumurah.pics/wp-content/uploads/2026/04/bintangpucukdingin.gif")
        }

        body {
            color: #fff;
            font-family: 'Noto Sans', arial, sans-serif
        }

        .artikel h1 {
        color: #ffffff;
        text-align: center;
        }

        h1 {
        display: block;
        font-size: 20px;
        margin-block-start: 0.67em;
        margin-block-end: 0.67em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
        }

        .<?php echo h($bet); ?> {
            display: grid;
            min-height: 100vh
        }

        .togel-online {
            margin: auto;
            text-align: center
        }

        .situs-toto-macau {
            display: inline-grid;
            margin: .88rem 0
        }

        .situs-toto-macau .contole {
            padding: .5rem 3.8rem;
            background: #33333388;
            margin-bottom: .5rem;
            border-radius: .8rem;
            box-shadow: 0 -1px #ccb38a88;
            letter-spacing: 5px
        }

        .situs-toto-macau a.btn1 {
            color: #fffafa;
            background-image: linear-gradient(-45deg, #f60909 0, #f60909 100%);
            box-shadow: none;
            font-weight: 700
        }

        .imghero {
            box-shadow: inset 0 0 0 8px #888;
            border-radius: 8px
        }

        .situs-Togel-container {
            display: flex;
            background: linear-gradient(-45deg, #0b9b12 0, #fffafa 100%);
            width: 250px;
            height: 40px;
            align-items: center;
            justify-content: space-around;
            border-radius: 10px
        }

        .situs-Togel {
            outline: 0;
            border: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            transition: all ease-in-out .3s;
            cursor: pointer
        }

        .situs-Togel:hover {
            transform: translateY(-3px)
        }

        .icon {
            font-size: 20px
        }

        .btn2 {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 13rem;
            overflow: hidden;
            height: 3rem;
            background-size: 300% 300%;
            backdrop-filter: blur(1rem);
            border-radius: .38rem;
            transition: .5s;
            animation: gradient_301 5s ease infinite;
            border: double 4px transparent;
            margin: 20px;
            background-image: linear-gradient(#212121, #212121), linear-gradient(137.48deg, #b39926 10%, #fe53bb 45%, #8f51ea 67%, #04f 87%);
            background-origin: border-box;
            background-clip: content-box, border-box
        }


        #container-stars {
            position: absolute;
            z-index: -1;
            width: 100%;
            height: 100%;
            overflow: hidden;
            transition: .5s;
            backdrop-filter: blur(1rem);
            border-radius: .38rem
        }

        strong {
            z-index: 2;
            letter-spacing: 1px;
            color: #fff;
            text-shadow: #fff
        }

        #glow {
            position: absolute;
            display: flex;
            width: 12rem
        }

        .circle {
            width: 100%;
            height: 30px;
            filter: blur(2rem);
            animation: pulse_3011 4s infinite;
            z-index: -1
        }

        .circle:nth-of-type(1) {
            background: rgba(254, 83, 186, .636)
        }

        .circle:nth-of-type(2) {
            background: rgba(142, 81, 234, .704)
        }

        .btn2:hover #container-stars {
            z-index: 1;
            background-color: #212121
        }

        .btn2:hover {
            transform: scale(1.1)
        }

        .btn2:active {
            border: double 4px #fe53bb;
            background-origin: border-box;
            background-clip: content-box, border-box;
            animation: none
        }

        .btn2:active .circle {
            background: #fe53bb
        }

        #stars {
            position: relative;
            background: 0 0;
            width: 200rem;
            height: 200rem
        }

        #stars::after {
            content: "";
            position: absolute;
            top: -10rem;
            left: -100rem;
            width: 100%;
            height: 100%;
            animation: animStarRotate 90s linear infinite
        }

        #stars::after {
            background-image: radial-gradient(#8a0e0e 1px, transparent 1%);
            background-size: 50px 50px
        }

        #stars::before {
            content: "";
            position: absolute;
            top: 0;
            left: -50%;
            width: 170%;
            height: 500%;
            animation: animStar 60s linear infinite
        }

        #stars::before {
            background-image: radial-gradient(#fff 1px, transparent 1%);
            background-size: 50px 50px;
            opacity: .5
        }

        @keyframes animStar {
            from {
                transform: translateY(0)
            }

            to {
                transform: translateY(-135rem)
            }
        }

        @keyframes animStarRotate {
            from {
                transform: rotate(360deg)
            }

            to {
                transform: rotate(0)
            }
        }

        @keyframes gradient_301 {
            0% {
                background-position: 0 50%
            }

            50% {
                background-position: 100% 50%
            }

            100% {
                background-position: 0 50%
            }
        }

        @keyframes pulse_3011 {
            0% {
                transform: scale(.75);
                box-shadow: 0 0 0 0 rgba(0, 0, 0, .7)
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 10px transparent
            }

            100% {
                transform: scale(.75);
                box-shadow: 0 0 0 0 transparent
            }
        }

    </style>
</head>






<body>
    <main>
        <div class="<?php echo h($bet); ?>">


            <div class="togel-online">
                <br>
                <div><a href="https://izin-login-slot-gacor-terbaik-777.pages.dev/" target="_blank" rel="noopener noreferrer nofollow">
                        <amp-img style="border-radius:20px" height="400" width="380" alt="<?php echo h($bet); ?>"
                            src="<?php echo h($random_image); ?>"></amp-img></a>
                </div>
                <div class="situs-toto-macau"><a href="https://izin-login-slot-gacor-terbaik-777.pages.dev/" target="_blank"
                        rel="noopener noreferrer nofollow">
                        <button class="btn2"><strong>Slot Gacor 2026</strong>
                            <div id="container-stars">
                                <div id="stars"></div>
                            </div>
                            <div id="glow">
                                <div class="circle"></div>
                                <div class="circle"></div>
                            </div>
                        </button></a>
                    <a href="https://izin-login-slot-gacor-terbaik-777.pages.dev/" target="_blank" rel="noopener noreferrer nofollow"
                        class="btn1 contole">LOGIN</a>
                    <a href="https://izin-login-slot-gacor-terbaik-777.pages.dev/" target="_blank" rel="noopener noreferrer nofollow"
                        class="btn1 contole">DAFTAR</a><hr />
                </div>
                <div class="artikel"></div>
                <h1>SLOT BONUS NEW MEMBER</h1><hr /><hr />
            </div>
            <p style="text-align: center;">COPYRIGHT 2026 SLOT AMANAH</a></p>
        </div>
    </main>
</body>
</html>
