:root {
    --surface: #f7f9fb;
    --surface-container-lowest: #ffffff;
    --on-surface: #191c1e;
    --on-surface-variant: #45474c;
    --outline: #75777d;
    --primary: #091426;
    --on-primary: #ffffff;
    --secondary: #032FF1;
    --tertiary: #0D9488;
    --tertiary-light: #e0f2f1;
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error-container: #93000a;
    --success: #10b981;
    
    --font-display: 'Hanken Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 41, 219, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(3, 47, 241, 0.08);
}

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

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 600;
}

.metric {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.label-sm {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--surface);
    position: relative;
    padding-bottom: 80px;
}

.view {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background-color: #e0fbf5;
    color: var(--tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card {
    background-color: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    border: 1px solid #f0f2f5;
}

.card-dark {
    background-color: var(--primary);
    color: white;
}
.card-dark h3, .card-dark .label-sm {
    color: #bcc7de;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(3, 47, 241, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.progress-track {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    background-color: var(--secondary);
    height: 100%;
    border-radius: var(--radius-full);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    border-top: 1px solid #eceef0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--outline);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 20px;
}

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

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #e0fbf5;
    color: var(--tertiary);
}
