:root {
    --bg: #020617; --card: #0f172a; --accent: #6366f1;
    --in: #22c55e; --out: #ef4444; --text: #f8fafc; --dim: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); padding-bottom: 90px; overflow-x: hidden; }
.container { max-width: 480px; margin: 0 auto; padding: 20px; }

.page { display: none; animation: slideIn 0.3s ease-out; }
.page.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* SweetAlert Custom Style */
.swal2-popup { background: var(--card) !important; color: var(--text) !important; border-radius: 24px !important; }
.swal2-title { color: var(--text) !important; }

/* Nav Bar */
.nav-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px); display: flex; justify-content: space-around;
    padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.05); z-index: 1000;
}
.nav-btn { color: var(--dim); border: none; background: none; font-size: 10px; cursor: pointer; flex: 1; font-weight: 600; transition: 0.3s; }
.nav-btn.active { color: var(--accent); transform: scale(1.1); }
.nav-btn i { font-size: 20px; display: block; margin-bottom: 4px; }

/* General UI */
.card { background: var(--card); border-radius: 24px; padding: 20px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.03); }
.hero { background: linear-gradient(135deg, #6366f1, #1e1b4b); padding: 30px; border-radius: 30px; }
#main-bal { font-size: 32px; margin: 5px 0; }

input { width: 100%; padding: 15px; background: rgba(2, 6, 23, 0.5); border: 1px solid #1e293b; border-radius: 14px; color: white; margin-bottom: 12px; outline: none; }
.btn { width: 100%; padding: 16px; border-radius: 14px; border: none; font-weight: 700; cursor: pointer; }
.btn-p { background: var(--accent); color: white; }

.btn-toggle { flex:1; padding:12px; border-radius:12px; border:none; color:white; font-weight:bold; cursor:pointer; }
.btn-toggle.in { background: var(--in); }
.btn-toggle.out { background: #1e293b; color: var(--dim); }

.avatar { width: 50px; height: 50px; border-radius: 15px; object-fit: cover; border: 2px solid var(--accent); }
.item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.goal-item { border-left: 4px solid var(--accent); padding-left: 15px; margin-bottom: 15px; }

.btn-export { background:var(--in); color:white; border:none; border-radius:8px; padding:5px 12px; font-size:12px; cursor:pointer; }
.dev-card { text-align:center; padding:20px; border:1px solid var(--accent); border-radius:20px; background:rgba(99,102,241,0.05); }
.dev-img { width:60px; height:60px; border-radius:50%; border:2px solid var(--accent); }
.btn-reset { width:100%; border:1px solid var(--out); color:var(--out); background:none; margin-top:20px; padding:15px; border-radius:15px; font-weight:bold; cursor:pointer; }
