body {
    font-family: 'Segoe UI', sans-serif;
    background: #111; color: #fff;
    text-align: center; margin: 0; padding-bottom: 40px;
}

/* HEADER */
header {
    background: #222; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); border-bottom: 2px solid #444;
}
#profileBtn {
    font-size: 24px; background: none; border: 2px solid #fff;
    border-radius: 50%; width: 45px; height: 45px; color: white; cursor: pointer;
}
.wallet-box {
    background: #333; padding: 8px 15px; border-radius: 20px;
    font-weight: bold; display: flex; align-items: center; gap: 8px; border: 1px solid #555;
}

/* GRID CONTAINER */
.container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px; max-width: 1100px; margin: 30px auto; padding: 0 15px;
}

/* BOX STYLING */
.box {
    padding: 15px; border-radius: 12px; cursor: pointer;
    transition: 0.3s; color: #fff; position: relative;
    min-height: 120px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 3px solid transparent;
    background-size: cover;
}
.box:hover:not(.locked) { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,215,0,0.4); }

/* Reward Text on Box */
.reward-label {
    font-size: 12px; background: rgba(0,0,0,0.6); padding: 4px 8px;
    border-radius: 10px; margin-bottom: 5px; color: #FFD700; border: 1px solid #FFD700;
}

/* LOCKED STATE */
.box.locked {
    background: #222 !important; border-color: #444 !important;
    color: #555 !important; cursor: not-allowed; transform: none;
}
.locked .link-icon, .locked .reward-label { display: none; }
.lock-overlay { display: none; font-size: 40px; margin-bottom: 5px; }
.locked .lock-overlay { display: block; }

.link-icon { margin-top: 10px; font-size: 24px; color: white; text-shadow: 0 0 5px black; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); }
.modal-content { background: #222; padding: 30px; border-radius: 12px; width: 90%; max-width: 350px; text-align: center; border: 1px solid #444; position: relative; }
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; }
input { width: 100%; padding: 12px; margin: 10px 0; background: #333; border: 1px solid #555; color: white; border-radius: 5px; box-sizing: border-box; }
.btn { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; margin-top: 10px; }

/* NOTIFICATION */
#notification { 
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); 
    background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; 
    padding: 12px 30px; border-radius: 50px; display: none; 
    font-weight: bold; z-index: 3000; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out; font-size: 1.1em;
}
@keyframes slideUp { from { bottom: -50px; opacity: 0; } to { bottom: 30px; opacity: 1; } }
