/* --- 1. Global CSS Variables --- */
:root {
    --bg-dark: #0f1319;
    --card-bg: #1a1e24;
    --card-bg-light: #242930;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --color-green: #22c55e;
    --color-green-light: rgba(34, 197, 94, 0.15);
    
    --color-blue: #3b82f6;
    --color-blue-light: rgba(59, 130, 246, 0.15);
    
    --color-red: #ef4444;
    --color-red-light: rgba(239, 68, 68, 0.15);
    
    --color-orange: #f97316;
    --border-color: #2e3640;
}

/* --- 2. Base Reset & Layout --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #000; display: flex; justify-content: center; color: var(--text-primary); }
a { text-decoration: none; }

.app-container {
    width: 100%; max-width: 414px; height: 100vh;
    background-color: var(--bg-dark); position: relative;
    overflow: hidden; display: flex; flex-direction: column;
}

.main-content { flex: 1; overflow-y: auto; padding: 0 16px; padding-bottom: 20px; }
.main-content::-webkit-scrollbar { display: none; }

/* --- 3. Utilities --- */
.text-green { color: var(--color-green); }
.text-blue { color: var(--color-blue); }
.text-red { color: var(--color-red); }
.text-orange { color: var(--color-orange); }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-primary); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-5 { margin-top: 5px; }
.d-none { display: none !important; }

/* --- 4. Header & Nav --- */
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: var(--bg-dark); z-index: 10; }
.header-left { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 40px; height: 40px; background-color: #ffffff; color: var(--color-blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; }
.brand-info h1 { font-size: 16px; font-weight: 600; }
.brand-info p { font-size: 12px; color: var(--text-secondary); }
.header-right { font-size: 20px; color: var(--text-secondary); cursor: pointer; }

.bottom-nav { position: absolute; bottom: 0; width: 100%; height: 65px; background-color: var(--card-bg); border-top: 1px solid var(--border-color); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 10px; }
.nav-item i { font-size: 18px; }
.nav-item.active { color: var(--color-blue); }

/* --- 5. Grid Layouts & Cards (Dashboard Standard) --- */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.card { background-color: var(--card-bg); border-radius: 12px; padding: 12px 8px; border: 1px solid var(--border-color); transition: 0.2s; }
.card:active { transform: scale(0.98); }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-card-horizontal { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; }

/* --- 6. Icons Base (Dashboard Standard) --- */
.icon-box { width: 32px; height: 32px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 14px; }
.icon-green { color: var(--color-green); border: 1px solid var(--color-green); }
.icon-blue { color: var(--color-blue); border: 1px solid var(--color-blue); }
.icon-red { color: var(--color-red); border: 1px solid var(--color-red); }

.icon-green-outline { color: var(--color-green); background-color: var(--color-green-light); }
.icon-red-outline { color: var(--color-red); background-color: var(--color-red-light); }

.icon-green-bg { background-color: var(--color-green-light); color: var(--color-green); border-radius: 50%; }
.icon-red-bg { background-color: var(--color-red-light); color: var(--color-red); border-radius: 50%; }
.icon-dark-bg { background-color: var(--card-bg-light); color: var(--text-primary); border-radius: 50%; }

/* --- 7. Transaction Section (Dashboard Standard) --- */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 10px 0; }
.section-header h2 { font-size: 14px; font-weight: 600; }
.section-header a { text-decoration: none; }

.transaction-list { background-color: var(--card-bg); border-radius: 12px; padding: 10px 15px; }
.transaction-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.transaction-item:last-child { border-bottom: none; }
.trans-left { display: flex; align-items: center; gap: 12px; }
.trans-left h4 { font-size: 14px; font-weight: 500; }