:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary: #3b82f6;
    --accent: #fbbf24;
    --text: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

body { background-color: var(--bg-color); color: var(--text); overflow: hidden; height: 100vh; }

.app-container { padding: 20px; display: flex; flex-direction: column; height: 100%; overflow-y: auto; padding-bottom: 80px; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.user-info { display: flex; align-items: center; gap: 10px; }
#user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg); }
.wallet { background: var(--card-bg); padding: 8px 15px; border-radius: 20px; color: var(--accent); font-weight: bold; }

.coin-container { display: flex; justify-content: center; margin: 20px 0; }
.coin { width: 180px; height: 180px; cursor: pointer; transition: transform 0.1s; border-radius: 50%; box-shadow: 0 0 30px rgba(251, 191, 36, 0.2); }
.coin:active { transform: scale(0.95); }
.coin img { width: 100%; height: 100%; object-fit: cover; }

.timer-display { text-align: center; margin-bottom: 30px; color: var(--text-muted); }

.task-list h3, .referral-section h3 { margin-bottom: 15px; font-size: 1.1rem; }
.task-card { background: var(--card-bg); padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; margin-bottom: 15px; cursor: pointer; }
.task-icon { color: var(--primary); font-size: 1.5rem; }
.task-info { flex: 1; }
.task-info h4 { font-size: 0.95rem; }
.task-info p { color: var(--accent); font-size: 0.8rem; }

.referral-section { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); padding: 20px; border-radius: 15px; text-align: center; margin-top: 10px; }
.btn-primary { background: white; color: var(--primary); border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; margin-top: 10px; cursor: pointer; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); display: flex; justify-content: space-around; padding: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.bottom-nav a { color: var(--text-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; gap: 5px; }
.bottom-nav a.active { color: var(--primary); }

/* Add these to your existing CSS */
.page-section { padding-bottom: 80px; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.task-item { background: var(--card-bg); padding: 15px; margin-bottom: 10px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
.btn-claim { background: var(--accent); color: #000; border: none; padding: 5px 15px; border-radius: 15px; font-weight: bold; }

.airdrop-card { text-align: center; background: linear-gradient(45deg, #1e293b, #0f172a); padding: 30px; border-radius: 20px; border: 1px solid var(--primary); }
.progress-bar { background: #333; height: 10px; border-radius: 5px; margin: 20px 0; overflow: hidden; }
.progress-bar .fill { background: var(--primary); height: 100%; }

.stats-card { display: flex; gap: 10px; margin-bottom: 20px; }
.stats-card div { flex: 1; background: var(--card-bg); padding: 15px; border-radius: 10px; text-align: center; }

input, textarea { width: 100%; padding: 12px; margin-bottom: 10px; background: #0f172a; border: 1px solid #333; color: white; border-radius: 8px; }

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-stats-grid {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 50%;
}

.stat-box small { color: var(--text-muted); font-size: 0.8rem; }
.stat-box strong { color: var(--accent); font-size: 1rem; }

/* Referral Box */
.referral-box {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ref-input-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.ref-input-group input {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-icon {
    background: #334155;
    border: none;
    color: white;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-share { background: var(--primary); }

/* Lists */
.list-section { margin-bottom: 20px; }
.downline-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.downline-item:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.downline-item:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-bottom: none; }

.mining-dashboard { text-align: center; margin-top: 20px; }
.session-stats h2 { font-size: 2.5rem; margin-bottom: 0; color: var(--accent); text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.session-stats p { color: var(--text-muted); font-size: 0.9rem; }
.timer-display h3 { font-size: 1.2rem; font-weight: normal; }

.mine-action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.1s;
}
.mine-action-btn:active { transform: scale(0.95); }
.mine-action-btn.restart { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4); }