:root {
    --gossip-maroon: #c2185b;
    --gossip-pink: #f48fb1;
    --gossip-gold: #FFD700;
    --gossip-bg: #ffebee;
    --dark-text: #37474f;
    --white: #ffffff;
    --btn-green: #28a745;
    --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 gaya kafe: gradasi peach ke pink hangat */
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 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(--gossip-maroon); color: #fff; 
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.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: #fce4ec; 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(--gossip-maroon);
    border-radius: var(--border-radius); padding: 20px 15px; text-align: center;
    box-shadow: 0 10px 20px rgba(194, 24, 91, 0.15), inset 0 0 0 4px #fff0f3;
    width: 100%; margin-bottom: 20px;
}

.logo-container { margin-bottom: 15px; }
.main-logo { width: 100px; height: 100px; object-fit: cover; border-radius: 24px; box-shadow: 0 6px 12px rgba(0,0,0,0.15); border: 2px solid #fff; }

.title-text { font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: var(--gossip-maroon); text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.5px; }
.subtitle { font-weight: 800; color: #607d8b; font-size: 0.85rem; margin-bottom: 15px; }

.input-group { background: #f8bbd0; border-radius: 12px; padding: 10px 15px; display: flex; align-items: center; border: 3px solid #f48fb1; margin-bottom: 15px; }
.input-icon { color: var(--gossip-maroon); 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); }
.input-group input::placeholder { color: #ad1457; opacity: 0.7; }

.device-selector { display: flex; gap: 8px; margin-bottom: 20px; }
.device-btn { flex: 1; padding: 10px; background: #f8bbd0; border-radius: 10px; cursor: pointer; font-weight: 900; color: #ad1457; font-size: 0.9rem; transition: 0.2s;}
.device-btn.selected { background: #f06292; color: #fff; border: 2px solid var(--gossip-maroon); box-shadow: 0 3px 0 var(--gossip-maroon); }

.cta-btn {
    background: var(--gossip-maroon); 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 #880e4f; text-decoration: none; display: block;
}
.cta-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #880e4f; }

.progress-bar-bg { background: #fce4ec; height: 16px; border-radius: 10px; overflow: hidden; margin: 15px 0; border: 2px solid #f48fb1;}
.progress-bar-fill { background: var(--gossip-maroon); 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(--gossip-gold); }
.reward-tabs { display: flex; gap: 8px; margin-bottom: 15px; }
.tab { flex: 1; padding: 10px; font-family: 'Fredoka One', cursive; font-size: 1rem; background: #f8bbd0; color: #880e4f; border-radius: 10px; cursor: pointer; border: 3px solid #f48fb1; }
.tab.active { background: var(--gossip-maroon); color: white; border-color: #880e4f; }

.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.reward-card { background: #fffafb; border: 3px solid #fce4ec; border-radius: 15px; padding: 12px 8px; text-align: center; box-shadow: 0 4px 0 #f8bbd0; position: relative; }
.reward-card.popular { border-color: var(--gossip-gold); background: #fffdf0; box-shadow: 0 4px 0 #f1c40f; }
.badge-best { background: var(--gossip-maroon); 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.2rem; /* Ukuran dioptimalkan untuk angka 5 digit */
    line-height: 1.2; 
    color: var(--gossip-maroon); 
}
.reward-name { font-size: 0.65rem; font-weight: 900; color: #607d8b; margin-bottom: 5px; }
.reward-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.1)); }
.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 #1e7e34; cursor: pointer; font-size: 0.9rem; }

.comments-section { margin-top: 20px; background: #fffafb; border-radius: 12px; padding: 12px; border: 3px solid #f8bbd0; text-align: left; }
.comments-header { font-family: 'Fredoka One', cursive; color: var(--gossip-maroon); font-size: 0.9rem; margin-bottom: 8px; border-bottom: 2px solid #f8bbd0; padding-bottom: 5px; }
.comment-item { display: flex; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #f48fb1; }
.comment-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gossip-gold); }
.comment-name { font-weight: 900; color: #880e4f; font-size: 0.8rem; }
.comment-time { font-weight: 700; color: #b0bec5; font-size: 0.6rem; margin-left: 5px; }
.comment-text { color: #546e7a; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }

.pro-footer { margin-top: 10px; padding: 15px 5px; text-align: center; }
.footer-links { font-size: 0.75rem; font-weight: 800; color: var(--gossip-maroon); margin-bottom: 10px; }
.footer-links a { color: var(--gossip-maroon); text-decoration: none; margin: 0 3px; }
.footer-disclaimer { font-size: 0.65rem; color: #880e4f; line-height: 1.4; font-weight: 700; margin-bottom: 10px; opacity: 0.8; }
.footer-copyright { font-size: 0.7rem; font-weight: 900; color: var(--gossip-maroon); }

.live-noti-container { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--gossip-maroon); 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); border: 2px solid #f48fb1; }
.live-noti-container.show { bottom: 20px; }
.noti-img { width: 30px; height: 30px; background: var(--gossip-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--gossip-maroon); }
.noti-text { font-size: 0.75rem; font-weight: 700; }
.noti-name { color: var(--gossip-gold); font-weight: 900; }
.noti-item { color: #a5d6a7; font-weight: 900; }

.alert-icon { font-size: 3.5rem; color: var(--gossip-maroon); margin-bottom: 10px; }
.console-text { font-family: monospace; font-size: 0.85rem; font-weight: bold; color: #880e4f; margin: 10px 0; }
.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); } }