:root {
    --bg-main: #F8FAFC; --card-bg: #FFFFFF; --text-dark: #0F172A; --text-light: #64748B;
    --primary: #10B981; --primary-dark: #059669; --danger: #EF4444; --border-light: #E2E8F0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-main); color: var(--text-dark); padding-bottom: 80px; }

/* Header */
.app-header { background: var(--card-bg); padding: 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.brand-area { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; }
.brand-text { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }

/* Container & Cards */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card { background: var(--card-bg); padding: 20px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

/* Premium Balance Card */
.balance-card { background: linear-gradient(135deg, var(--text-dark) 0%, #334155 100%); color: white; padding: 30px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 30px; position: relative; overflow: hidden; }
.balance-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: rgba(16, 185, 129, 0.2); border-radius: 50%; }
.balance-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-top: 10px; }
.balance-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* Buttons & Forms */
.btn-submit { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 15px; }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 12px; font-size: 1rem; outline: none; box-sizing: border-box; font-family: inherit; margin-bottom: 10px; }
input:focus { border-color: var(--primary); }

/* Fix Modals for Mobile Scrolling */
.modal-overlay { overflow-y: auto; }
.modal-box { max-height: 95vh; overflow-y: auto; margin: 20px auto; }
@media (max-width: 480px) {
    .modal-box { width: 95%; padding: 20px; margin: 10px auto; }
} 

/* Modal (Pop-up) Styles */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; border-radius: 20px; width: 100%; max-width: 450px; padding: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; position: relative; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #94A3B8; cursor: pointer; background: none; border: none; }
.modal-close:hover { color: #EF4444; }

/* Bottom Nav & FAB */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--border-light); display: flex; justify-content: space-around; padding: 10px 0 20px 0; z-index: 1000; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-light); text-decoration: none; font-size: 0.65rem; font-weight: 600; }
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--primary); }
.fab { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4); border: 4px solid var(--card-bg); z-index: 1001; text-decoration: none; }