:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --bg-color: #f8f9fe;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-light: #636e72;
    --success: #00d2d3;
    --danger: #ff7675;
    --warning: #feca57;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* Header & Profile */
.header {
    background: var(--gradient);
    color: white;
    padding: 30px 20px 60px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.profile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
}

.balance-card {
    margin-top: 20px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 5px 0;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    margin-top: -30px;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-title {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}

.stat-trend {
    font-size: 10px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}

.btn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

/* Transaction List */
.transaction-list {
    padding: 0 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f2f6;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.trans-details {
    flex: 1;
}

.trans-title {
    font-weight: 600;
    font-size: 15px;
}

.trans-cat {
    font-size: 12px;
    color: var(--text-light);
}

.trans-amount {
    font-weight: 700;
    font-size: 15px;
}

.amount-expense {
    color: var(--text-main);
}

.amount-income {
    color: var(--success);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 100;
}

.nav-item {
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 20px;
}

.fab {
    width: 60px;
    height: 60px;
    background: var(--text-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
}

/* Form & Auth Styles */
.auth-container {
    padding: 40px 20px;
    text-align: center;
}

.auth-card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1.5px solid #eee;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(108, 92, 231, 0.2);
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Analysis Page Styles */
.score-card {
    padding: 25px;
    border-radius: 30px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.suggestion-card {
    background: white;
    padding: 18px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.chart-container-ui {
    background: white;
    padding: 25px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-top: 15px;
}

.bar-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    border-radius: 6px 6px 4px 4px;
    transition: all 0.5s ease;
    min-height: 4px;
    position: relative;
}

/* Back Button */
.back-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.back-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow);
}