/* ==========================================================================
   1. RESET & VARIABEL CYBER-COSMIC PREMIUM
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --neon-cyan: #00f2fe;
    --neon-pink: #f355da;
    --neon-blue: #0062ff;
    --glass-bg: rgba(5, 8, 28, 0.78);
    --border-neon: rgba(0, 242, 254, 0.35);
}

/* ==========================================================================
   2. KONFIGURASI RESPONSIF BACKGROUND
   ========================================================================== */
body {
    background-color: #050714;
    background-image: url('MOBILE 1080x1920.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 110px 16px;
    overflow-x: hidden;
    position: relative;
}

@media (min-width: 768px) {
    body {
        background-image: url('DEKSTOP 1920x1080.jpg'); 
    }
}

/* ==========================================================================
   3. ANIMASI ENGINE
   ========================================================================== */
@keyframes highPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px var(--neon-pink)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
}

@keyframes titleNeonGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0,242,254,0.6)); text-shadow: 0 0 10px rgba(0,242,254,0.3); }
    50% { filter: drop-shadow(0 0 15px rgba(243,85,218,0.8)); text-shadow: 0 0 15px rgba(243,85,218,0.4); }
}

.fast-pulse {
    animation: highPulse 0.35s infinite ease-in-out !important;
}

/* ==========================================================================
   4. KONTAINER UTAMA UTAMA GLASSMORPHISM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 430px; 
    text-align: center;
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 32px; 
    border: 1px solid var(--border-neon);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.85),
        inset 0 0 25px rgba(0, 242, 254, 0.05),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.logo-area {
    margin-bottom: 20px;
}

.pulse-logo img {
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    transition: 0.3s;
}
.header-text-group {
    margin-bottom: 25px; /* Jarak aman dari judul ke jarum penunjuk */
}
.seo-title {
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleNeonGlow 4s infinite ease-in-out;
}

.subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.5;
}
.spin-container {
    position: relative;
    width: 290px;  
    height: 290px;
    margin: 0 auto 35px auto; /* Jarak bawah 35px memaksa form input turun ke bawah roda */
    display: block !important;
}
/* ==========================================================================
   5. STABILISASI PANEL RODA (CYBER SPEAR - VERSI TEBAL & PENDEK PROPORSIONAL)
   ========================================================================== */
.pointer {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    
    /* Titik tumpu perputaran tetap dikunci mutlak di pusat roda */
    transform: translate(-50%, -100%) rotate(0deg) !important;
    transform-origin: bottom center !important;
    
    /* MODIFIKASI: Dipertebal menjadi 10px dan diperpendek menjadi 85px */
    width: 10px !important;       
    height: 85px !important;    
    background: linear-gradient(to top, var(--neon-pink), #ffffff) !important; 
    border-radius: 4px !important;
    
    /* Efek lampu neon pink menyala tajam */
    filter: drop-shadow(0 0 10px var(--neon-pink)) drop-shadow(0 2px 4px rgba(0,0,0,0.6)) !important;
    z-index: 28 !important; 
}

/* MATA PANAH BERLIAN TAJAM (DIAMOND SPEAR HEAD) */
.pointer::before {
    content: '' !important;
    position: absolute !important;
    top: -14px !important;      
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* MODIFIKASI: Mata tombak diperlebar sedikit agar serasi dengan batang yang tebal */
    width: 0 !important;
    height: 0 !important;
    border-left: 11px solid transparent !important;   
    border-right: 11px solid transparent !important;  
    border-bottom: 24px solid #ffffff !important;    
    filter: drop-shadow(0 0 8px #ffffff) !important;
}

/* EKOR SAYAP SILUMAN DI ATAS INTI REAKTOR (STEALTH WINGS) */
.pointer::after {
    content: '' !important;
    position: absolute !important;
    bottom: 10px !important;    
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    width: 0 !important;
    height: 0 !important;
    border-left: 16px solid transparent !important;  
    border-right: 16px solid transparent !important; 
    border-bottom: 28px solid rgba(243, 85, 218, 0.4) !important; 
}

/* MASKER REAKTOR TENGAH (BERDIRI DI LAPISAN TERDEPAN UNTUK MENUTUPI EKOR JARUM) */
.wheel-center-mask {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 66px; /* Ukuran disesuaikan agar pas menutup ekor panah */
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, #0f172a 0%, #020617 100%) !important;
    border: 3px solid var(--neon-cyan) !important;
    box-shadow: 
        0 0 20px var(--neon-cyan), 
        inset 0 0 12px var(--neon-pink),
        0 4px 15px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* KUNCI UTAMA: Masker dinaikkan ke lapisan 35 agar menutupi potongan ekor jarum di bawahnya */
    z-index: 35 !important; 
    pointer-events: none;
}

/* Class pembantu yang akan dinyalakan otomatis oleh JavaScript saat roda berputar */
.pointer-wiggle {
    animation: needleWiggle 0.15s infinite linear !important;
}


.wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--neon-cyan);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.35);
    overflow: visible;
}

#wheelCanvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

/* KOTAK INPUT DAN TOMBOL DI BAWAH RODA */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Jarak renggang proporsional antara kolom input dan tombol spin */
    margin-top: 10px;
}

.cyber-core-icon {
    position: relative;
    width: 14px;
    height: 24px;
    background: var(--neon-cyan);
    /* Teknik memotong bentuk (clipping) menjadi simbol petir/kilat tajam */
    clip-path: polygon(100% 0%, 0% 55%, 45% 55%, 0% 100%, 100% 45%, 55% 45%);
    -webkit-clip-path: polygon(100% 0%, 0% 55%, 45% 55%, 0% 100%, 100% 45%, 55% 45%);
    
    /* Membuat efek petir memancarkan cahaya lampu */
    filter: drop-shadow(0 0 6px var(--neon-cyan));
    animation: coreEnergyPulse 2s infinite ease-in-out;
}

/* Animasi denyut lampu energi pada inti petir tengah saat diam */
@keyframes coreEnergyPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--neon-cyan)); opacity: 0.9; }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px var(--neon-pink)); background: var(--neon-pink); opacity: 1; }
}

/* ==========================================================================
   6. FORM INPUT & TOMBOL SPIN ACTION
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid var(--neon-cyan);
    background: rgba(3, 5, 18, 0.95);
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.2);
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(243, 85, 218, 0.5);
}

.btn-spin {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, #002699 100%);
    background-size: 200% auto;
    color: #ffffff; 
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 242, 254, 0.4);
    transition: all 0.4s ease;
}

.btn-spin:hover:not(:disabled) {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--neon-pink) 0%, #bd199f 100%);
    box-shadow: 0 8px 30px rgba(243, 85, 218, 0.6);
}

.btn-spin:disabled {
    background: #1e293b;
    color: #475569;
    cursor: not-allowed;
}

/* ==========================================================================
   7. KUNCI FIX POP-UP WELCOME OVERLAY (MENGOBATI KLIK MACET)
   ========================================================================== */
.welcome-overlay-transparant {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(4, 5, 15, 0.88) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 99999 !important; 
    padding: 20px;
    
    /* TAMBAHAN KUNCI: Mengizinkan klik menembus lapisan luar overlay */
    pointer-events: auto !important; 
}

.welcome-overlay-transparant.active {
    display: flex !important;
}

/* Kartu Tengah */
.welcome-card {
    background: linear-gradient(180deg, #0b0f26 0%, #050714 100%) !important;
    padding: 40px 30px !important;
    border-radius: 28px !important;
    width: 100% !important;
    max-width: 400px !important; 
    text-align: center !important;
    border: 2px solid var(--neon-cyan) !important;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.35) !important;
    
    /* TAMBAHAN KUNCI: Memastikan seluruh tombol di dalam kotak bisa merespon sentuhan jari/kursor */
    pointer-events: auto !important; 
}

.welcome-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.welcome-logo-area {
    margin: 20px 0;
}

.welcome-text {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.welcome-text strong {
    color: var(--neon-cyan);
}

.btn-welcome-start {
    width: 100% !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #0062ff 100%) !important;
    color: #040614 !important;
    font-size: 1.05rem !important;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: 0.3s;
}

.btn-welcome-start:hover {
    background: linear-gradient(135deg, var(--neon-pink) 0%, #a81c90 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(243, 85, 218, 0.5);
}

/* ==========================================================================
   8. STICKY MENU FOOTER PREMIUM (MAHAKARYA PURE CSS NEON BUTTONS)
   ========================================================================== */
.pinned-footer {
    position: fixed;
    bottom: 0; 
    left: 0; 
    width: 100%;
    height: 72px;
    background: rgba(4, 6, 18, 0.92); /* Gelap transparan menyatu background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(0, 242, 254, 0.25); /* Garis pembatas atas berpendar */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100000;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8);
    padding: 0 10px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8; /* Warna teks default abu-abu soft */
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 6px;
    flex: 1;
    max-width: 90px;
}

/* WADAH IKON BERBASIS CSS KUSTOM (PENGGANTI FOTO) */
.footer-icon-box {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* PEMBUATAN SIMBOL IKON DENGAN TEKNIK CSS BORDER & BEFORE-AFTER */
/* 1. Ikon Daftar (Simbol Plus/Tambah Akun Baru) */
.icon-daftar .footer-icon-box::before,
.icon-daftar .footer-icon-box::after {
    content: ''; position: absolute; background: #94a3b8; transition: all 0.3s ease;
}
.icon-daftar .footer-icon-box::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.icon-daftar .footer-icon-box::after { top: 2px; left: 9px; width: 2px; height: 16px; }

/* 2. Ikon Login (Simbol Anak Panah Masuk Gerbang) */
.icon-login .footer-icon-box {
    border: 2px solid #94a3b8; border-left: none; width: 16px; height: 18px; border-radius: 0 4px 4px 0;
}
.icon-login .footer-icon-box::before {
    content: '→'; position: absolute; left: -8px; top: -4px; font-size: 14px; font-weight: bold; color: #94a3b8; transition: all 0.3s ease;
}

/* 3. Ikon RTP (Simbol Grafik Petir Naik/Sinyal Gacor) */
.icon-rtp .footer-icon-box::before {
    content: '⚡'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 15px; color: #94a3b8; transition: all 0.3s ease;
}

/* 4. Ikon WhatsApp (Simbol Telepon Balon Chat) */
.icon-wa .footer-icon-box {
    border: 2px solid #94a3b8; border-radius: 50% 50% 0 50%; width: 18px; height: 18px; transform: rotate(-45deg);
}
.icon-wa .footer-icon-box::before {
    content: ''; position: absolute; width: 6px; height: 6px; border-left: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; left: 4px; top: 4px; transform: rotate(45deg); transition: all 0.3s ease;
}

/* ==========================================================================
   EFEK HOVER & AKTIF SINKRONISASI NEON CYBERPUNK
   ========================================================================== */
/* Perubahan Warna Total Saat Tombol Disentuh/Hover */
.footer-item:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
    transform: translateY(-3px);
}

/* Mengubah Semua Simbol Menjadi Warna Cyan Menyala Saat Hover */
.footer-item:hover .footer-icon-box,
.footer-item:hover .footer-icon-box::before,
.footer-item:hover .footer-icon-box::after {
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    background-color: transparent;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}
.icon-daftar .footer-item:hover .footer-icon-box::before,
.icon-daftar .footer-item:hover .footer-icon-box::after {
    background: var(--neon-cyan) !important;
}

/* Variasi Khusus Tombol WhatsApp Saat Hover Berubah Menjadi Hijau Stabilo Mewah */
.icon-wa:hover {
    color: #25d366 !important;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}
.icon-wa:hover .footer-icon-box {
    border-color: #25d366 !important;
    filter: drop-shadow(0 0 5px #25d366);
}
.icon-wa:hover .footer-icon-box::before {
    border-color: #25d366 !important;
    color: #25d366 !important;
}
/* ==========================================================================
   9. PERBAIKAN IKON SOSIAL MEDIA DI POP-UP KEMENANGAN (ANTI-MELUBER)
   ========================================================================== */
/* Mengatur wadah/pembungkus agar ikon sejajar di tengah */
#modalOverlay div[style*="display: flex"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important; /* Memberikan jarak antar ikon */
    margin: 20px 0 !important;
    width: 100% !important;
}

/* Mengatur ukuran link pembungkus gambar */
#modalOverlay div[style*="display: flex"] a {
    display: inline-block !important;
    width: 45px !important;  /* Ukuran tombol lingkaran */
    height: 45px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Mengunci ukuran gambar logo agar pas dan proporsional */
.logo-menang {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)) !important;
    transition: all 0.3s ease !important;
}

/* Efek interaktif (Hover) saat ikon disentuh */
#modalOverlay div[style*="display: flex"] a:hover {
    transform: translateY(-4px) scale(1.1) !important;
}

/* Memberikan pendaran cahaya neon kustom saat masing-masing sosmed di-hover */
#modalOverlay div[style*="display: flex"] a:nth-child(1):hover .logo-menang {
    filter: drop-shadow(0 0 12px #f355da) !important; /* Neon Pink untuk Instagram */
}

#modalOverlay div[style*="display: flex"] a:nth-child(2):hover .logo-menang {
    filter: drop-shadow(0 0 12px #0062ff) !important; /* Neon Blue untuk Facebook */
}

#modalOverlay div[style*="display: flex"] a:nth-child(3):hover .logo-menang {
    filter: drop-shadow(0 0 12px #25d366) !important; /* Neon Green untuk WhatsApp */
}
/* ==========================================================================
   10. PERBAIKAN MUTLAK POP-UP MODAL KEMENANGAN (ANTI-BOCOR DI AWAL)
   ========================================================================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 5, 15, 0.88) !important; /* Efek background gelap transparan melayang */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* KUNCI UTAMA: Menyembunyikan modal secara total saat halaman pertama kali dimuat */
    display: none !important; 
    
    align-items: center;
    justify-content: center;
    z-index: 999999 !important; /* Berdiri di atas elemen apa pun termasuk footer */
    padding: 20px;
}

/* JavaScript akan memicu class .active ini untuk memunculkan modal saat roda berhenti putar */
.modal-overlay.active {
    display: flex !important;
}

/* Desain Kartu Box Kemenangan Premium Glassmorphism 3D */
.modal-overlay .modal-card {
    background: linear-gradient(180deg, #0b0f26 0%, #050714 100%) !important;
    padding: 35px 25px !important;
    border-radius: 28px !important;
    width: 100% !important;
    max-width: 420px !important; /* Menjaga box tetap ramping proporsional */
    text-align: center !important;
    border: 2px solid var(--neon-cyan) !important;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.35), inset 0 0 20px rgba(243, 85, 218, 0.1) !important;
}

/* Menata Teks Pengumuman Hadiah Utama */
.prize-announcement {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 12px var(--neon-cyan) !important;
}

/* ==========================================================================
   11. MERAPIKAN KOLOM KODE SALIN & TOMBOL KLAIM WHATSAPP
   ========================================================================== */
/* Desain Baris Kode Kemenangan & Tombol Salin */
.copy-box-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(3, 5, 15, 0.9) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.verification-code {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
    word-break: break-all !important; /* Anti-meluber jika kode panjang */
}

.btn-copy-action {
    background: var(--neon-cyan) !important;
    color: #040614 !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.btn-copy-action:hover {
    background: var(--neon-pink) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px var(--neon-pink) !important;
}

/* Desain Premium Tombol Klaim Utama Via WhatsApp */
.btn-claim {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #25d366 0%, #1cbd55 100%) !important; /* Hijau WA Premium */
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    margin: 10px 0 20px 0 !important;
    transition: all 0.3s ease !important;
}

.btn-claim:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
    filter: brightness(1.1) !important;
}

/* Tombol OK Konfirmasi Keluar Modal */
.btn-ok-modal {
    width: 100% !important;
    padding: 14px !important;
    margin-top: 10px !important;
}
