:root {
    /* Color Palette - Premium Modern UI */
    --bg-color: #FFFFFF;
    --surface-color: #F9FAFB;
    --primary-mint: #10B981;  /* High-contrast Emerald */
    --accent-rose: #FB7185;   /* Modern Rose Pink */
    --lavender-blue: #818CF8; /* Modern Indigo-Lavender */
    --card-bg: #FFFFFF;
    --text-main: #1F2937;     /* Slate-900 */
    --text-muted: #6B7280;    /* Slate-500 */
    --success: #10B981;
    --danger: #EF4444;
    --accent: #F59E0B;

    /* Spacing & Borders */
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    
    /* Effects */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03);
    --transition-snappy: all 0.25s cubic-bezier(0, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--surface-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 110px; /* Enhanced space for Nav */
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Premium Dashboard UI */
.header {
    padding: 40px var(--spacing-md) 20px;
    text-align: center;
}

.balance-hero {
    background: var(--bg-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.02);
}

.total-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -2px;
    display: block;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Chest Cards - Modernized */
.chests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-snappy);
    position: relative;
    overflow: hidden;
}

.chest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:active { transform: scale(0.97); }

.chest-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lavender-blue);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-snappy);
}

.nav-item.active {
    color: var(--primary-mint);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Quick Actions - FAB Overhaul */
.fab-container {
    position: fixed;
    bottom: 110px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.btn-income { background: var(--primary-mint); color: white; }
.btn-expense { background: var(--accent-rose); color: white; }

/* Buttons & Forms */
.btn {
    background: var(--primary-mint);
    color: white;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input, select {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid #F3F4F6;
    background: #F9FAFB;
    font-size: 1rem;
    outline: none;
}

input:focus { border-color: var(--primary-mint); background: white; }

/* Animations - Subtle & Smooth */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease-out forwards; }
