/* ================================================= */
/* ============== PRELOADER (LOADER) STYLES ============== */
/* ================================================= */
/* Import Font dari Google Fonts (Opsional, tapi direkomendasikan) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #FFC107; /* Warna Emas/Kuning untuk menarik perhatian */
    --secondary-color: #0D47A1; /* Biru Tua/Navy untuk latar belakang */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --button-hover: #FFA000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #1976D2; /* Biru yang lebih cerah */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Header */
header h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Kotak Konten */
.content-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.content-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Daftar Langkah */
.steps-list {
    list-style-type: none;
    text-align: left;
    margin: 0 0 20px 0;
    padding: 0 10px;
}

.steps-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95em;
}

/* Tombol Aksi Utama (CTA) */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

/* Timer */
.timer-section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.countdown {
    font-size: 2.5em;
    font-weight: 700;
    color: #FF5252; /* Warna Merah untuk urgensi */
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Kontak/Klaim */
.contact-info {
    margin-top: 25px;
}

.contact-links {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 15px;
}

.contact-button {
    display: block;
    width: 48%; /* Hampir setengah, untuk membuat dua kolom */
    padding: 12px 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.3s;
    font-size: 1em;
}

.livechat-btn {
    background-color: #4CAF50; /* Hijau */
}

.telegram-btn {
    background-color: #0088CC; /* Biru Telegram */
}

.contact-button:hover {
    opacity: 0.8;
}



/* Pengaturan Umum untuk Kedua GIF (Fixed Position & Posisi Vertikal Tengah)
*/
.gif-fixed {
  /* PENTING: Membuat elemen tetap pada posisinya di layar */
  position: fixed; 
  
  /* Atur ukuran GIF Anda */
  width: 300px; 
  height: auto;
  
  /* Posisikan di tengah secara vertikal */
  top: 50%;
  
  /* Menarik elemen ke atas setengah dari tingginya 
     agar benar-benar berada di tengah vertikal */
  transform: translateY(-50%); 
  
  /* Pastikan GIF berada di atas konten lain */
  z-index: 999; 
}

/* Pengaturan Khusus untuk GIF Kiri
*/
.gif-left {
  /* Menempelkan elemen di sisi kiri */
  left: 10px; 
  
  /* Memastikan GIF menghadap ke kanan (ke tengah) 
     jika GIF aslinya menghadap kanan, ini tidak perlu diubah */
  transform: translateY(-50%) scaleX(1); 
}

/* Pengaturan Khusus untuk GIF Kanan (DIBALIK)
*/
.gif-right {
  /* Menempelkan elemen di sisi kanan */
  right: 10px; 
  
  /* PENTING: Membalikkan GIF secara horizontal */
  transform: translateY(-50%) scaleX(-1); 
}




/* Teks Kecil */
.small-text {
    font-size: 0.85em;
    margin-top: 10px;
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    opacity: 0.7;
}

/* Responsif untuk Layar Sangat Kecil */
@media (max-width: 400px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .countdown {
        font-size: 2em;
    }

    .cta-button {
        font-size: 1.1em;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color); /* Biru tua seperti body */
    z-index: 9999; /* Pastikan ia berada di atas semua konten */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

.loader-content {
    text-align: center;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--primary-color); /* Warna Emas */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

.loader-content p {
    color: var(--text-light);
    font-size: 1.1em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}