/* --- GLOBAL STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; }

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.4);
    border-bottom: 2px solid #ffcc00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.header h1 {
    font-family: sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: #ffcc00;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    letter-spacing: 2px;
    font-style: italic;
}

/* --- COUNTDOWN TIMER --- */
.event-bar {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff3333;
    color: #fff;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    animation: flash 2s infinite;
}

@keyframes flash {
    0% { box-shadow: 0 0 5px rgba(255,0,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(255,0,0,0.8); }
    100% { box-shadow: 0 0 5px rgba(255,0,0,0.2); }
}

.timer-box {
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    color: #ff3333;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 5px;
}

.status-badge {
    font-size: 12px;
    background: #00ff00;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 40px 0 15px;
    border-left: 5px solid #ffcc00;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SLOT DIAMOND --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
    border-color: #ffcc00;
}

.amount {
    font-weight: 900;
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
    font-family: sans-serif;
}

.btn-claim {
    background: linear-gradient(45deg, #ff9900, #ffcc00);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.4);
}
.btn-claim:hover { transform: scale(1.05); }

/* --- SLOT BUNDLE (4 SLOT) --- */
.grid-bundle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card-bundle {
    background: rgba(0,0,0,0.6);
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
}

.card-bundle:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #ffcc00;
}

.bundle-preview {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #555;
}

/* --- SLOT SENJATA (3 SLOT) --- */
.grid-weapon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-weapon {
    background: linear-gradient(180deg, rgba(50,0,50,0.8), rgba(0,0,0,0.9));
    border: 2px solid #9400d3;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-weapon::before {
    content: "LEGENDARY";
    position: absolute;
    top: 10px; right: -30px;
    background: #9400d3;
    color: #fff;
    font-size: 10px;
    padding: 2px 30px;
    transform: rotate(45deg);
}

.weapon-preview {
    width: 100%;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px #9400d3);
}

/* --- BIG BUNDLE --- */
.bundle-section {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffcc00;
    border-radius: 15px;
    padding: 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bundle-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
    background-image: url('gambar/bundle-carnival.jpg'); /* Gambar utama */
    background-size: cover;
    background-position: center;
    height: 250px;
}

.btn-claim-bundle {
    background: linear-gradient(45deg, #ff0000, #ff3333);
    color: white;
    padding: 15px 50px;
    font-size: 20px;
    font-weight: 900;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- NOTIFIKASI LIVE --- */
#liveNotif {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-left: 4px solid #00ff00;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(-50px);
    pointer-events: none;
    max-width: 300px;
}
#liveNotif.show { opacity: 1; transform: translateX(0); }
.notif-icon { width: 35px; height: 35px; background: #fff; border-radius: 50%; margin-right: 12px; display: flex; justify-content: center; align-items: center; font-size: 18px; color: #000; }
.notif-text { line-height: 1.4; }
.notif-name { font-weight: bold; color: #ffcc00; }
.notif-item { color: #fff; font-size: 12px; }

/* --- MODALS --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.choice-content {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #666; z-index: 10; }
.login-options { display: flex; justify-content: space-around; margin-top: 20px; }
.btn-social { width: 80px; height: 80px; border-radius: 50%; border: none; cursor: pointer; font-size: 32px; color: white; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.btn-social:hover { transform: scale(1.1); }
.btn-fb { background: #1877f2; }
.btn-google { background: #db4437; }
.btn-vk { background: #0077ff; }

/* --- LOGIN UI --- */
.fb-modal-content {
    background: #fff;
    color: #1c1e21;
    width: 396px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}
.fb-header { padding: 20px; }
.fb-logo { color: #1877f2; font-size: 40px; font-weight: bold; margin-bottom: 10px; font-family: Helvetica, Arial, sans-serif; }
.fb-form { padding: 0 20px 20px; }
.fb-input { width: 100%; padding: 14px 16px; border: 1px solid #dddfe2; border-radius: 6px; font-size: 17px; margin-bottom: 10px; }
.fb-input:focus { border-color: #1877f2; outline: none; box-shadow: 0 0 0 2px #e7f3ff; }
.fb-btn { width: 100%; background: #1877f2; color: white; border: none; padding: 12px; font-size: 20px; font-weight: bold; border-radius: 6px; cursor: pointer; }
.fb-forgot { color: #1877f2; font-size: 14px; text-decoration: none; display: block; margin: 15px 0; }
.fb-line { border-bottom: 1px solid #dadde1; margin: 15px 0; }
.fb-create { background: #42b72a; color: white; border: none; padding: 12px 16px; font-weight: bold; border-radius: 6px; cursor: pointer; }

.google-modal-content {
    background: #fff;
    color: #202124;
    width: 450px;
    padding: 48px 40px 36px;
    border-radius: 8px;
    border: 1px solid #dadce0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}
.google-logo-img { width: 75px; margin-bottom: 10px; }
.google-h1 { font-size: 24px; font-weight: 400; margin: 10px 0; }
.google-sub { font-size: 16px; margin-bottom: 30px; }
.google-input { width: 100%; padding: 13px 15px; border: 1px solid #dadce0; border-radius: 4px; font-size: 16px; margin-bottom: 15px; }
.google-input:focus { border: 2px solid #1a73e8; outline: none; padding: 12px 14px; }
.google-btn { width: 100%; background: #1a73e8; color: white; border: none; padding: 12px; height: 40px; border-radius: 4px; font-weight: 500; cursor: pointer; margin-top: 10px; }

.vk-modal-content {
    background: #fff; color: #000;
    width: 350px;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 0 0 #d3d9de;
}
.vk-logo { color: #0077ff; font-weight: bold; font-size: 32px; margin-bottom: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;}
.vk-input { width: 100%; padding: 10px; border: 1px solid #dae1e8; border-radius: 4px; font-size: 15px; margin-bottom: 10px; background: #f5f7f9; }
.vk-input:focus { border-color: #5181b8; background: #fff; outline: none; }
.vk-btn { width: 100%; background: #5181b8; color: white; padding: 10px; border: none; border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; }
.vk-forgot { color: #2a5885; font-size: 13px; text-decoration: none; display: block; margin-top: 10px; }

/* Loading */
#status-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; flex-direction: column; z-index: 20000; visibility: hidden; opacity: 0; transition: opacity 0.3s; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #ffcc00; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }