/* FariidCoin - Main Stylesheet */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a35;
    --bg-card2: #141428;
    --accent: #6c63ff;
    --accent2: #8b5cf6;
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --green: #4CAF50;
    --red: #FF6B6B;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    --border: #2a2a4a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(108,99,255,0.15);
}

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

html, body {
    height: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    touch-action: manipulation;
}

/* SPLASH SCREEN */
#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a3a 100%);
    display: flex; align-items: center; justify-content: center;
}
.splash-content { text-align: center; }
.splash-logo { margin-bottom: 24px; }
.coin-icon-large {
    width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE87C, #FFD700, #B8860B);
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(255,215,0,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 900; color: #8B4513;
}
.spin { animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.splash-title { font-size: 36px; font-weight: 900; color: #FFD700; letter-spacing: 2px; }
.splash-subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }
.splash-loader { margin-top: 40px; height: 4px; width: 200px; background: var(--border); border-radius: 2px; margin-left: auto; margin-right: auto; overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 2px; animation: load 2.5s ease forwards; }
@keyframes load { to { width: 100%; } }

/* APP */
#app {
    height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* TOP BAR */
.top-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
}
.top-bar-left { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.user-name-top { font-weight: 600; font-size: 14px; display: block; }
.user-level { font-size: 11px; color: var(--gold); background: rgba(255,215,0,0.1); padding: 1px 6px; border-radius: 20px; }
.notif-btn {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; color: var(--text-secondary);
}
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--red); color: white; font-size: 9px; font-weight: 700;
    border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
}

/* PAGES */
#pages {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.page { display: none; padding: 16px; padding-bottom: 80px; }
.page.active { display: block; }
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 24px; font-weight: 800; }
.page-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* BALANCE CARD */
.balance-card {
    background: linear-gradient(135deg, #1a1a35, #22224a);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.balance-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.balance-coins {
    font-size: 32px; font-weight: 900; color: var(--gold);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.coin-icon-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE87C, #FFD700, #B8860B);
    display: inline-block; flex-shrink: 0;
}
.balance-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* LEVEL BAR */
.level-progress { margin-top: 16px; }
.level-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.level-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.level-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; transition: width 0.5s ease; }

/* TAP SECTION */
.tap-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.tap-coin-wrap { position: relative; margin-bottom: 16px; }
.tap-coin {
    cursor: pointer; user-select: none;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.4));
    transition: transform 0.05s ease;
    -webkit-user-select: none;
}
.tap-coin:active { transform: scale(0.94); filter: drop-shadow(0 0 30px rgba(255,215,0,0.7)); }
.coin-inner { position: relative; }
.tap-particles { position: absolute; inset: 0; pointer-events: none; }

/* ENERGY BAR */
.energy-bar-section { width: 100%; max-width: 300px; }
.energy-info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.energy-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.energy-bar { height: 100%; background: linear-gradient(90deg, #FF6B6B, #FFD700); border-radius: 4px; transition: width 0.3s ease; }

/* TAP STATS */
.tap-stats { display: flex; gap: 30px; margin-top: 12px; }
.tap-stat { text-align: center; }
.stat-val { display: block; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.stat-lbl { font-size: 11px; color: var(--text-muted); }

/* QUICK ACTIONS */
.quick-actions {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin-bottom: 16px;
}
.quick-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; color: var(--text-primary);
    font-size: 11px; font-weight: 500;
    transition: all 0.2s ease;
}
.quick-btn:active { transform: scale(0.95); background: var(--bg-secondary); }
.quick-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tasks-icon { background: rgba(108,99,255,0.2); color: var(--accent); }
.invite-icon { background: rgba(76,175,80,0.2); color: var(--green); }
.withdraw-icon { background: rgba(255,215,0,0.2); color: var(--gold); }
.leader-icon { background: rgba(255,107,107,0.2); color: var(--red); }

/* TASKS */
.tasks-tabs {
    display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tasks-tabs::-webkit-scrollbar { display: none; }
.task-tab {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 16px; color: var(--text-secondary);
    font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: all 0.2s;
}
.task-tab.active {
    background: var(--accent); border-color: var(--accent); color: white; font-weight: 600;
}
.tasks-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
    display: flex; align-items: center; gap: 12px;
}
.task-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-icon-yt { background: rgba(255,0,0,0.2); color: #FF0000; }
.task-icon-fb { background: rgba(24,119,242,0.2); color: #1877F2; }
.task-icon-tg { background: rgba(0,136,204,0.2); color: #0088CC; }
.task-icon-video { background: rgba(255,107,107,0.2); color: #FF6B6B; }
.task-icon-star { background: rgba(255,215,0,0.2); color: var(--gold); }
.task-icon-cal { background: rgba(76,175,80,0.2); color: var(--green); }
.task-icon-tap { background: rgba(108,99,255,0.2); color: var(--accent); }
.task-icon-users { background: rgba(139,92,246,0.2); color: var(--accent2); }
.task-info { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.task-reward { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--gold); font-size: 13px; font-weight: 700; }
.task-action-wrap { flex-shrink: 0; }
.task-btn {
    background: var(--accent); border: none; border-radius: 8px;
    color: white; padding: 8px 14px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.task-btn:active { transform: scale(0.95); }
.task-btn.completed { background: var(--bg-secondary); color: var(--text-muted); cursor: default; }
.task-btn.claimed { background: var(--green); cursor: default; }

/* INVITE */
.invite-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.invite-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.invite-stat { flex: 1; text-align: center; background: var(--bg-card2); border-radius: var(--radius-sm); padding: 12px; }
.inv-num { display: block; font-size: 24px; font-weight: 800; color: var(--gold); }
.inv-lbl { font-size: 12px; color: var(--text-secondary); }
.invite-code-box { background: var(--bg-primary); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 14px; text-align: center; margin-bottom: 16px; }
.code-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.code-value { font-size: 22px; font-weight: 800; letter-spacing: 4px; color: var(--accent); font-family: monospace; }
.invite-reward-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.reward-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.reward-row strong { color: var(--text-primary); }
.friends-list-section h3 { font-size: 16px; margin-bottom: 12px; }
.friends-list { display: flex; flex-direction: column; gap: 8px; }
.friend-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; align-items: center; gap: 10px; }
.friend-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.friend-name { font-weight: 600; font-size: 14px; }
.friend-coins { font-size: 12px; color: var(--gold); }
.friend-joined { font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* WALLET */
.wallet-balance-card { background: linear-gradient(135deg, #1a1a35, #22224a); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; text-align: center; }
.wbal-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.wbal-coins { font-size: 28px; font-weight: 900; color: var(--gold); }
.wbal-calc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.withdraw-progress { margin-top: 16px; }
.wp-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.wp-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wp-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width 0.5s; }
.wp-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.withdraw-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.withdraw-form-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
    width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px; color: var(--text-primary);
    font-size: 14px; font-family: 'Inter', sans-serif; outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.locked-msg { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); border-radius: var(--radius-sm); padding: 12px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--red); }
.withdraw-history h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.withdraw-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
.wi-top { display: flex; justify-content: space-between; align-items: center; }
.wi-bank { font-weight: 600; font-size: 14px; }
.wi-status { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.wi-status.pending { background: rgba(255,215,0,0.2); color: var(--gold); }
.wi-status.approved { background: rgba(76,175,80,0.2); color: var(--green); }
.wi-status.rejected { background: rgba(255,107,107,0.2); color: var(--red); }
.wi-bottom { margin-top: 6px; font-size: 12px; color: var(--text-secondary); }

/* LEADERBOARD */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; align-items: center; gap: 12px; }
.lb-rank { width: 32px; text-align: center; font-weight: 800; font-size: 16px; }
.lb-rank.gold { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }
.lb-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.lb-info { flex: 1; }
.lb-name { font-weight: 600; font-size: 14px; }
.lb-coins { font-size: 12px; color: var(--gold); }
.lb-crown { color: var(--gold); }

/* PROFILE */
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: white; }
.profile-name { font-size: 20px; font-weight: 800; }
.profile-username { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.profile-joined { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.sc-val { display: block; font-size: 20px; font-weight: 800; margin: 6px 0; }
.sc-lbl { font-size: 11px; color: var(--text-secondary); }
.transaction-history h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.txn-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.txn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.txn-info { flex: 1; }
.txn-desc { font-size: 13px; font-weight: 500; }
.txn-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-weight: 700; font-size: 14px; }
.txn-amount.positive { color: var(--green); }
.txn-amount.negative { color: var(--red); }

/* BOTTOM NAV */
.bottom-nav {
    display: flex; justify-content: space-around; align-items: center;
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    flex-shrink: 0; z-index: 100;
}
.nav-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; color: var(--text-muted);
    font-size: 10px; cursor: pointer; padding: 6px 12px; flex: 1;
    transition: color 0.2s;
}
.nav-btn.active { color: var(--accent); }
.nav-btn svg { transition: transform 0.2s; }
.nav-btn.active svg { transform: scale(1.1); }

/* MODALS */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; width: 100%; max-width: 340px;
    text-align: center;
}
.welcome-box .welcome-icon { margin-bottom: 16px; }
.welcome-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.welcome-box p { color: var(--text-secondary); margin-bottom: 8px; }
.highlight-coins { color: var(--gold); font-weight: 800; font-size: 18px; }
.sub-text { font-size: 13px; }

/* SCRATCH CARD */
.scratch-box { padding: 20px; }
.scratch-box h2 { margin-bottom: 8px; }
.scratch-box > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.scratch-area { position: relative; width: 280px; height: 160px; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; }
#scratch-canvas { position: absolute; top: 0; left: 0; z-index: 2; cursor: crosshair; border-radius: 12px; }
.scratch-reveal { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a35, #22224a); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.scratch-hint { font-size: 12px; color: var(--text-muted); }

/* VIDEO MODAL */
.video-box { padding: 16px; text-align: left; }
.video-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.video-container { background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/9; }
.video-container iframe { width: 100%; height: 100%; border: none; }
.video-progress { margin-bottom: 12px; }
.progress-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; width: 0; transition: width 1s linear; }
.video-timer { font-size: 13px; color: var(--text-secondary); }
.video-reward-info { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.close-btn { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 4px; }
.close-btn-sm { background: none; border: none; cursor: pointer; color: var(--text-secondary); }

/* NOTIF PANEL */
.notif-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 340px;
    background: var(--bg-card); border-left: 1px solid var(--border);
    z-index: 500; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.notif-panel.open { transform: translateX(0); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.notif-list { flex: 1; overflow-y: auto; padding: 12px; }
.notif-item { background: var(--bg-card2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; border-left: 3px solid var(--accent); }
.notif-item.reward { border-left-color: var(--gold); }
.notif-item.update { border-left-color: var(--green); }
.notif-item.warning { border-left-color: var(--red); }
.notif-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.notif-msg { font-size: 13px; color: var(--text-secondary); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white; border: none; border-radius: var(--radius-sm);
    padding: 14px 24px; font-size: 15px; font-weight: 700;
    cursor: pointer; width: 100%; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
    background: var(--bg-secondary); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 24px; font-size: 14px; font-weight: 600;
    cursor: pointer; width: 100%; transition: all 0.2s;
    font-family: 'Inter', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:active { transform: scale(0.97); }
.full-width { width: 100%; }
.mt-8 { margin-top: 8px; }

/* AD BANNER */
.ad-banner { flex-shrink: 0; overflow: hidden; }

/* TOAST */
#toast-container { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 10px 20px; color: var(--text-primary);
    font-size: 14px; font-weight: 500; white-space: nowrap;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }
.toast.coin { border-color: var(--gold); color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* FLOAT COIN ANIMATION */
.float-coin {
    position: absolute; pointer-events: none; z-index: 100;
    font-size: 16px; font-weight: 800; color: var(--gold);
    animation: floatUp 0.8s ease forwards;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

/* EMPTY STATE */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* SAFE AREA */
@supports (padding: max(0px)) {
    .bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    #app { padding-top: env(safe-area-inset-top); }
}

/* Pulse animation for tap coin */
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 20px rgba(255,215,0,0.4)); } 50% { filter: drop-shadow(0 0 35px rgba(255,215,0,0.8)); } }
.tap-coin { animation: pulse 2s ease-in-out infinite; }
.tap-coin:active { animation: none; }
