/* ==========================================================================
   STYLE.CSS - COIN MASTER DAILY REWARDS PORTAL (FULL UPGRADED VERSION)
   ========================================================================== */

/* --- Base Styles --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #333;
}

/* --- Header Hitam Atas --- */
.top-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-weight: bold; font-size: 20px; color: #f39c12; }
.lang-flag { font-size: 14px; }

/* --- Container Utama --- */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 10px;
}

/* --- Kotak Informasi Atas (Kuning Khas Promo) --- */
.info-box {
    background-color: #fffacd; 
    border: 1px solid #f1c40f;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}
.info-header {
    background-color: #ffeaa7;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #f1c40f;
}
.info-body {
    display: flex;
    padding: 15px;
    gap: 20px;
}
.promo-img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}
.promo-text p {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 0;
}
.btn-group .badge {
    background: #ffeaa7;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
    border: 1px solid #f1c40f;
    display: inline-block;
    cursor: pointer;
}
.social-icons { margin-top: 15px; display: flex; gap: 5px; }
.icon {
    width: 30px; height: 30px; color: white; display: flex;
    justify-content: center; align-items: center; border-radius: 3px; font-weight: bold;
}
.fb { background: #3b5998; } .tw { background: #1da1f2; }
.tg { background: #0088cc; } .wa { background: #25d366; }

/* --- Desain Baris Daftar Hadiah (Mode Desktop Row Layout) --- */
.rewards-list { display: flex; flex-direction: column; gap: 10px; }

.reward-row {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.reward-left { width: 60px; }
.spin-icon { width: 50px; height: auto; }

.reward-center {
    flex-grow: 1;
    text-align: center;
}
.reward-title { font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.time-badge {
    display: inline-block;
    border: 1px solid #e0e0e0;
    padding: 3px 15px;
    border-radius: 15px;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}
.exact-time { font-size: 10px; color: #bdc3c7; }

.reward-right { width: 120px; text-align: right; }

/* --- Tombol Collect Bawaan (Warna Biru) --- */
.collect-btn {
    background-color: #5d9cec;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}
.collect-btn:hover { background-color: #4a89dc; }

/* --- Tombol Berubah Menjadi Ungu Setelah Di-klik --- */
.collect-btn.purple { background-color: #ac92ec; }
.collect-btn.purple:hover { background-color: #967adc; }


/* ==========================================================================
   MODAL STYLES (COIN MASTER LIGHT WOOD THEME - POP UP INTERFACE)
   ========================================================================== */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
}

.modal-box {
    /* Latar belakang warna kayu terang/krem halus sesuai screenshot game asli */
    background: linear-gradient(180deg, #fce0bc 0%, #e8bc85 100%);
    border: 1px solid #d4a373; 
    border-radius: 20px; 
    padding: 30px 25px; 
    text-align: center;
    width: 90%; 
    max-width: 360px;
    /* Efek bayangan luar & highlight cahaya dalam agar tampak 3D alami */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 2px 2px 5px rgba(255,255,255,0.6), inset -2px -2px 5px rgba(0,0,0,0.1); 
    color: #5e351f; /* Warna teks cokelat tua gelap agar kontras */
}

.modal-box h2 { 
    margin-top: 0; 
    color: #a85c4a; /* Merah-cokelat persis seperti judul 'Pengaturan' */
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6); 
    letter-spacing: 0.5px;
}

.modal-box p { 
    font-size: 15px; 
    color: #6d422a; 
    margin-bottom: 25px; 
    line-height: 1.4;
    font-weight: bold;
}

/* Kotak Lapisan Input Akun/ID */
input[type="text"] {
    width: 90%; 
    padding: 12px; 
    margin-bottom: 22px; 
    border: 2px solid #c89562; 
    border-radius: 10px; 
    font-size: 16px; 
    text-align: center;
    background-color: #ffffff;
    color: #5e351f;
    font-weight: bold;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.1);
}

input[type="text"]:focus {
    outline: none;
    border-color: #a85c4a;
}

/* --- Tombol Aksi Utama 3D Di Dalam Modal --- */
.action-btn {
    background: linear-gradient(to bottom, #5fe420 0%, #3ca00d 100%); /* Gradasi hijau segar game */
    color: white; 
    border: 2px solid #245b0a; 
    padding: 14px 25px; 
    border-radius: 12px; 
    font-size: 18px; 
    font-weight: 900; 
    cursor: pointer; 
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 0 #1b4d04, 0 6px 10px rgba(0,0,0,0.3); 
    transition: all 0.1s ease;
    
    /* Properti wajib ditambahkan agar efek kibasan cahaya tidak bocor keluar dari sudut tombol */
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: linear-gradient(to bottom, #6ff030 0%, #46b412 100%);
}

.action-btn:active {
    transform: translateY(4px); 
    box-shadow: 0 0px 0 #1b4d04, 0 2px 4px rgba(0,0,0,0.3);
}

/* --- Tombol Khusus Verifikasi Manusia (Gradasi Emas Oranye Kemerahan) --- */
.verify-btn { 
    background: linear-gradient(to bottom, #f1c40f 0%, #d35400 100%); 
    border: 2px solid #9c4505;
    box-shadow: 0 4px 0 #873600, 0 6px 10px rgba(0,0,0,0.3);
}

.verify-btn:hover {
    background: linear-gradient(to bottom, #f5d342 0%, #e67e22 100%);
}

.verify-btn:active {
    box-shadow: 0 0px 0 #873600, 0 2px 4px rgba(0,0,0,0.3);
}


/* ==========================================================================
   EFFECTS & ANIMATIONS (SHINE SWEEP & LOADING SPINNER)
   ========================================================================== */

/* --- Efek Animasi Kibasan Cahaya Bergerak (Shine Effect) --- */
.action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 40%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); 
    animation: kibasanCahaya 3s infinite; 
}

@keyframes kibasanCahaya {
    0% { left: -100%; }
    20% { left: 200%; }  /* Menyapu tombol dengan cepat */
    100% { left: 200%; } /* Jeda diam sebelum animasi berulang */
}

/* --- Loading Spinner Bulat --- */
.loader {
    border: 6px solid #f3f3f3; 
    border-top: 6px solid #3498db; 
    border-radius: 50%;
    width: 50px; 
    height: 50px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Pengaturan Responsif Tampilan HP/Mobile --- */
@media (max-width: 768px) {
    .info-body { flex-direction: column; align-items: center; text-align: center; }
    .reward-row { padding: 10px; }
    .collect-btn { padding: 8px 15px; }
}