body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-shell--auth .money-sidebar {
    display: none;
}

.app-shell--auth .main-content {
    padding: 0;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: var(--space-xl);
}

.logo-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    user-select: none;
    display: inline-flex;
    align-items: baseline;
}

.logo-text--lg {
    font-size: 2rem;
}

.logo-text__ai {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* ---- Money Sidebar ---- */
.money-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #0F1B2D;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.sidebar__header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__app-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.sidebar__brand-sub {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.sidebar__brand-ai {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.sidebar__nav {
    flex: 1;
    padding: 8px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar__nav-section {
    margin-top: 12px;
    margin-bottom: 4px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
}

.sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.sidebar__nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar__nav-item--active {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-weight: 600;
}

.sidebar__nav-item--active svg {
    stroke: #10B981;
}

.sidebar__nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
}

.sidebar__quick-actions {
    padding: 8px 12px;
    display: flex;
    gap: 8px;
}

.sidebar__quick-btn {
    flex: 1;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar__quick-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: white;
}

.sidebar__footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar__footer-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
}

.sidebar__footer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar__footer-btn svg {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .money-sidebar {
    background: #1B2A3D;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.page-header h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .money-sidebar {
        position: fixed;
        left: -240px;
        z-index: 50;
        transition: left 250ms ease;
    }

    .money-sidebar.sidebar--open {
        left: 0;
    }
}
