:root {
    --bg-tropical: #51b5ff;
    --town-purple: #673ab7;
    --town-yellow: #ffeb3b;
    --dark-text: #2d3436;
    --white: #ffffff;
    --btn-green: #32CD32;
    --border-radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }

html { min-height: 100%; }

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #51b5ff 0%, #a29bfe 100%) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 10px 15px;
    background: var(--town-purple); color: #fff; 
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

.server-status { font-size: 0.75rem; line-height: 1.2; font-weight: 800; }
.status-dot {
    height: 8px; width: 8px; background-color: var(--btn-green);
    border-radius: 50%; display: inline-block; margin-right: 5px;
    box-shadow: 0 0 5px var(--btn-green);
}
.online-text { color: var(--btn-green); font-weight: 900; }
.user-count { color: #f0f0f0; font-size: 0.7rem; }

.container {
    width: 100%; max-width: 400px; padding: 70px 15px 30px 15px;
    display: flex; flex-direction: column; justify-content: center; flex: 1;
}

.step-content {
    background: var(--white); border: 4px solid var(--town-purple);
    border-radius: var(--border-radius); padding: 20px 15px; text-align: center;
    box-shadow: 0 8px 0 rgba(0,0,0,0.15), inset 0 0 0 3px #f0f0f0;
    width: 100%; margin-bottom: 20px;
}

.logo-container { margin-bottom: 15px; }
.main-logo { width: 100px; height: 100px; object-fit: cover; border-radius: 22px; box-shadow: 0 6px 12px rgba(0,0,0,0.2); }

.title-text { font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: var(--town-purple); text-transform: uppercase; margin-bottom: 5px; }
.subtitle { font-weight: 800; color: #636e72; font-size: 0.85rem; margin-bottom: 15px; }

.input-group {
    background: #f1f2f6; border-radius: 12px; padding: 10px 15px; 
    display: flex; align-items: center; border: 3px solid #dfe6e9; margin-bottom: 15px;
}
.input-icon { color: #888; margin-right: 10px; font-size: 1.1rem; }
.input-group input { border: none; background: transparent; width: 100%; font-weight: 900; outline: none; font-size: 0.95rem; color: var(--dark-text); }

.device-selector { display: flex; gap: 8px; margin-bottom: 20px; }
.device-btn { flex: 1; padding: 10px; background: #dfe6e9; border-radius: 10px; cursor: pointer; font-weight: 900; color: #636e72; font-size: 0.9rem; transition: 0.2s;}
.device-btn.selected { background: #d1d8e0; color: var(--town-purple); border: 2px solid var(--town-purple); }

.cta-btn {
    background: #ff7675; color: white; font-family: 'Fredoka One', cursive;
    padding: 14px; border-radius: 12px; border: none; width: 100%;
    font-size: 1.2rem; cursor: pointer; box-shadow: 0 5px 0 #d63031; text-decoration: none; display: block;
}

.progress-bar-bg { background: #eee; height: 16px; border-radius: 10px; overflow: hidden; margin: 15px 0; border: 2px solid #ddd;}
.progress-bar-fill { background: var(--btn-green); height: 100%; width: 0%; transition: 0.3s; }

.user-badge { background: var(--dark-text); color: white; display: inline-block; padding: 4px 12px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; margin-bottom: 15px; border: 2px solid var(--town-yellow); }
.reward-tabs { display: flex; gap: 8px; margin-bottom: 15px; }
.tab { flex: 1; padding: 10px; font-family: 'Fredoka One', cursive; font-size: 1rem; background: #dfe6e9; color: #636e72; border-radius: 10px; cursor: pointer; border: 3px solid #b2bec3; }
.tab.active { background: var(--town-purple); color: white; border-color: #5e35b1; }

.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.reward-card { background: #f9f9f9; border: 3px solid #eee; border-radius: 15px; padding: 12px 8px; text-align: center; box-shadow: 0 4px 0 #ddd; position: relative; }
.reward-card.popular { border-color: var(--town-yellow); background: #fffdf0; box-shadow: 0 4px 0 #f1c40f; }
.badge-best { background: var(--town-purple); color: white; font-size: 0.55rem; padding: 3px 6px; border-radius: 8px; font-weight: 900; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; border: 2px solid #fff; }
.reward-amount { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--dark-text); }
.reward-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.claim-btn { background: var(--btn-green); color: white; font-family: 'Fredoka One', cursive; border: none; border-radius: 8px; padding: 8px 5px; width: 100%; box-shadow: 0 4px 0 #228B22; cursor: pointer; font-size: 0.9rem; }

.comments-section { margin-top: 20px; background: #f8f9fa; border-radius: 12px; padding: 12px; border: 3px solid #dfe6e9; text-align: left; }
.comments-header { font-family: 'Fredoka One', cursive; color: var(--town-purple); font-size: 0.9rem; margin-bottom: 8px; border-bottom: 2px solid #dfe6e9; padding-bottom: 5px; }
.comment-item { display: flex; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #ccc; }
.comment-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--town-yellow); }
.comment-name { font-weight: 900; color: #2d3436; font-size: 0.8rem; }
.comment-text { color: #636e72; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }

/* STYLE FOOTER (BARU) */
.pro-footer { margin-top: 10px; padding: 15px 5px; text-align: center; }
.footer-links { font-size: 0.75rem; font-weight: 800; color: var(--town-purple); margin-bottom: 10px; }
.footer-links a { color: var(--town-purple); text-decoration: none; margin: 0 3px; }
.footer-disclaimer { font-size: 0.65rem; color: #444; line-height: 1.4; font-weight: 700; margin-bottom: 10px; }
.footer-copyright { font-size: 0.7rem; font-weight: 900; color: var(--town-purple); }

.live-noti-container { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--town-purple); color: white; padding: 8px 15px; border-radius: 25px; display: flex; align-items: center; gap: 10px; z-index: 1000; transition: 0.5s; width: 90%; max-width: 320px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.live-noti-container.show { bottom: 20px; }
.noti-img { width: 30px; height: 30px; background: #ff7675; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.noti-text { font-size: 0.75rem; font-weight: 700; }
.noti-name { color: var(--town-yellow); font-weight: 900; }
.noti-item { color: var(--btn-green); font-weight: 900; }

.fa-spin { animation: fa-spin 2s infinite linear; }
.pulse-anim { animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }