:root {
    --primary: #00d4ff;
    --bg: #05070a;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--bg);
    color: white;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;
}

#user-photo { width: 40px; border-radius: 50%; border: 2px solid var(--primary); }

.main-display { text-align: center; margin-top: 20px; }
.balance-value { font-size: 3.5rem; font-weight: 900; color: var(--primary); }

.coin-container img {
    width: 220px;
    filter: drop-shadow(0 0 20px var(--primary));
    transition: transform 0.05s;
}
.coin-container:active img { transform: scale(0.9); }

/* الإعلان الديناميكي */
.ad-banner {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    width: 90%;
    margin: 20px auto;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed var(--primary);
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}

.energy-bar-bg {
    width: 80%;
    height: 10px;
    background: #1e293b;
    border-radius: 5px;
    margin: 10px auto;
}
.energy-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.3s;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal-content {
    background: #111827;
    width: 85%;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--primary);
}
.shop-item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: #0f172a;
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}
.nav-btn { color: #64748b; display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.nav-btn.active { color: var(--primary); }

.tap-anim {
    position: fixed;
    color: var(--primary);
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    animation: moveUp 0.6s ease-out forwards;
}
@keyframes moveUp { to { transform: translateY(-100px); opacity: 0; } }
