/* =========================================================
   FINNEX — FINANCE APP
   ChatNex / templates / apps / app-03
   File: css/style.css
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {

    /* Brand */
    --primary: #635bff;
    --primary-dark: #5148e5;
    --primary-light: #817bff;
    --primary-soft: rgba(99, 91, 255, 0.12);
    --primary-glow: rgba(99, 91, 255, 0.25);

    /* Accent */
    --success: #20c997;
    --success-dark: #159d76;
    --success-soft: rgba(32, 201, 151, 0.12);

    --danger: #f05d6c;
    --danger-soft: rgba(240, 93, 108, 0.12);

    --warning: #f5ad42;
    --warning-soft: rgba(245, 173, 66, 0.12);

    --info: #4b9cff;
    --info-soft: rgba(75, 156, 255, 0.12);

    /* Dark Theme */
    --bg: #0a0d14;
    --bg-secondary: #0f131c;
    --surface: #131823;
    --surface-hover: #181e2b;
    --surface-elevated: #1a2130;

    --sidebar-bg: #0d1119;
    --header-bg: rgba(10, 13, 20, 0.82);

    /* Text */
    --text-primary: #f4f6fb;
    --text-secondary: #9ba4b5;
    --text-muted: #667085;
    --text-soft: #7e8798;

    /* Border */
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-primary: rgba(99, 91, 255, 0.35);

    /* Shadows */
    --shadow-sm:
        0 4px 16px rgba(0, 0, 0, 0.14);

    --shadow-md:
        0 12px 35px rgba(0, 0, 0, 0.2);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.3);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 82px;

    /* Transition */
    --transition-fast: 0.18s ease;
    --transition: 0.28s ease;
    --transition-slow: 0.45s ease;

    /* Font */
    --font-body: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;
}


/* =========================================================
   02. LIGHT THEME
========================================================= */

body.light-mode {

    --bg: #f5f7fb;
    --bg-secondary: #ffffff;

    --surface: #ffffff;
    --surface-hover: #f7f8fc;
    --surface-elevated: #ffffff;

    --sidebar-bg: #ffffff;
    --header-bg: rgba(245, 247, 251, 0.88);

    --text-primary: #171b26;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --text-soft: #7b8494;

    --border: rgba(15, 23, 42, 0.07);
    --border-light: rgba(15, 23, 42, 0.1);

    --shadow-sm:
        0 4px 16px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 12px 35px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 25px 70px rgba(15, 23, 42, 0.1);
}


/* =========================================================
   03. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
}


body {
    min-height: 100vh;

    background: var(--bg);
    color: var(--text-primary);

    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background-color var(--transition),
        color var(--transition);
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    list-style: none;
}


img {
    display: block;
    max-width: 100%;
}


svg {
    display: block;
}


::selection {
    background: var(--primary);
    color: #ffffff;
}


/* =========================================================
   04. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


::-webkit-scrollbar-track {
    background: transparent;
}


::-webkit-scrollbar-thumb {
    background: rgba(128, 138, 155, 0.28);
    border-radius: var(--radius-pill);
}


::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 138, 155, 0.45);
}


/* =========================================================
   05. PAGE LOADER
========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;

    background: var(--bg);

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.loader-spinner {
    width: 38px;
    height: 38px;

    border: 3px solid var(--primary-soft);
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: loaderSpin 0.8s linear infinite;
}


.page-loader span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}


@keyframes loaderSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   06. APP SHELL
========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   07. SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: var(--sidebar-width);
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);

    transition:
        background-color var(--transition),
        transform var(--transition),
        border-color var(--transition);

    overflow-y: auto;
}


.sidebar-brand {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border-bottom: 1px solid var(--border);
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}


.brand-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #8b7fff
        );

    border-radius: 11px;

    box-shadow:
        0 8px 22px var(--primary-glow);

    font-size: 17px;
}


.brand-text {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.7px;
}


.brand-text span {
    color: var(--primary-light);
}


.sidebar-close {
    display: none;

    width: 34px;
    height: 34px;

    place-items: center;

    color: var(--text-secondary);

    border-radius: 9px;

    transition: var(--transition-fast);
}


.sidebar-close:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


/* =========================================================
   08. SIDEBAR NAVIGATION
========================================================= */

.sidebar-navigation {
    flex: 1;
    padding: 28px 14px 18px;
}


.nav-group {
    margin-bottom: 30px;
}


.nav-label {
    display: block;

    margin: 0 12px 10px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.sidebar-link {
    position: relative;

    min-height: 45px;

    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 4px;
    padding: 0 13px;

    color: var(--text-secondary);

    border-radius: 11px;

    font-size: 13px;
    font-weight: 600;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}


.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.sidebar-link.active {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.95),
            rgba(113, 103, 255, 0.8)
        );

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.18);
}


.sidebar-link.active::before {
    content: "";

    position: absolute;
    left: -14px;

    width: 3px;
    height: 20px;

    background: var(--primary-light);

    border-radius: 0 4px 4px 0;
}


.link-icon {
    width: 20px;

    display: grid;
    place-items: center;

    font-size: 14px;
}


.sidebar-link span:last-child {
    white-space: nowrap;
}


/* =========================================================
   09. SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    padding: 0 14px 18px;
}


.sidebar-help {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 18px 0;
    padding: 13px;

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    cursor: pointer;

    transition: var(--transition);
}


.sidebar-help:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}


.help-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    color: var(--primary-light);

    background: var(--primary-soft);

    border-radius: 9px;

    font-size: 13px;
}


.help-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.help-content strong {
    color: var(--text-primary);
    font-size: 11px;
}


.help-content span {
    color: var(--text-muted);
    font-size: 9px;
}


.sidebar-help > i {
    color: var(--text-muted);
    font-size: 9px;
}


.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 4px 4px;

    border-top: 1px solid var(--border);
}


.profile-avatar {
    width: 35px;
    height: 35px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7a70ff,
            #4c45d8
        );

    border-radius: 10px;

    font-size: 10px;
    font-weight: 800;
}


.profile-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
}


.profile-info strong {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.profile-info span {
    overflow: hidden;

    color: var(--text-muted);

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.profile-menu {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    border-radius: 7px;

    transition: var(--transition-fast);
}


.profile-menu:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


/* =========================================================
   10. MAIN AREA
========================================================= */

.main-area {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    background: var(--bg);

    transition:
        background-color var(--transition);
}


/* =========================================================
   11. TOP HEADER
========================================================= */

.top-header {
    position: sticky;
    top: 0;
    z-index: 800;

    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: var(--header-bg);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}


.mobile-menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    place-items: center;

    color: var(--text-secondary);

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 10px;
}


.page-heading {
    display: flex;
    flex-direction: column;
}


.page-eyebrow {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.page-heading h1 {
    margin-top: 2px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.header-button {
    position: relative;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: var(--text-secondary);

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}


.header-button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}


.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    background: var(--danger);

    border: 2px solid var(--surface);

    border-radius: 50%;
}


.add-money-button {
    height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-left: 5px;
    padding: 0 16px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius: 10px;

    box-shadow:
        0 7px 18px rgba(99, 91, 255, 0.2);

    font-size: 12px;
    font-weight: 700;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}


.add-money-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 11px 25px rgba(99, 91, 255, 0.3);
}


/* =========================================================
   12. CONTENT AREA
========================================================= */

.content-area {
    width: min(100%, 1550px);

    margin: 0 auto;
    padding: 34px;
}


.overview-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(430px, 1fr);

    gap: 20px;
}


/* =========================================================
   13. BALANCE CARD
========================================================= */

.balance-card {
    position: relative;
    min-height: 360px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171a38 0%,
            #24275a 48%,
            #342b6b 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-lg);
}


.balance-card::before {
    content: "";

    position: absolute;
    top: -180px;
    right: -100px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(141, 132, 255, 0.28),
            transparent 68%
        );

    pointer-events: none;
}


.balance-card::after {
    content: "";

    position: absolute;
    left: -120px;
    bottom: -190px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.2),
            transparent 68%
        );

    pointer-events: none;
}


.balance-card-content {
    position: relative;
    z-index: 2;

    padding: 31px;
}


.balance-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.balance-top > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}


.balance-label {
    color: rgba(255, 255, 255, 0.66);

    font-size: 11px;
    font-weight: 600;
}


.balance-visibility {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.6);

    font-size: 11px;
}


.balance-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    color: rgba(255, 255, 255, 0.72);

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    font-size: 9px;
    font-weight: 600;
}


.balance-period i {
    font-size: 8px;
}


.balance-amount {
    margin-top: 18px;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -2.5px;

    line-height: 1.1;
}


.balance-growth {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
}


.growth-positive {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #5de0b4;

    font-weight: 700;
}


.balance-actions {
    position: relative;
    z-index: 3;

    display: flex;
    gap: 8px;

    margin-top: 54px;
}


.balance-action {
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 14px;

    color: rgba(255, 255, 255, 0.78);

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    font-size: 10px;
    font-weight: 700;

    backdrop-filter: blur(8px);

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}


.balance-action:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}


.balance-action.primary {
    color: #322b71;

    background: #ffffff;
    border-color: #ffffff;
}


.balance-action.primary:hover {
    background: #f1efff;
}


.balance-mini-chart {
    position: absolute;
    z-index: 1;

    right: -20px;
    bottom: -4px;

    width: 74%;
    height: 48%;

    opacity: 0.9;
}


.balance-mini-chart svg {
    width: 100%;
    height: 100%;
}


.balance-mini-chart .chart-area {
    fill: url(#balanceGradient);
}


.balance-mini-chart .chart-line {
    fill: none;

    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2.5;

    vector-effect: non-scaling-stroke;
}


/* =========================================================
   14. FINANCE STAT CARDS
========================================================= */

.finance-stats {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


.stat-card {
    min-height: 172px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.stat-card:hover {
    transform: translateY(-3px);

    background: var(--surface-hover);
    border-color: var(--border-light);

    box-shadow: var(--shadow-md);
}


.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}


.stat-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 13px;
}


.income-icon {
    color: var(--success);
    background: var(--success-soft);
}


.expense-icon {
    color: var(--danger);
    background: var(--danger-soft);
}


.savings-icon {
    color: var(--primary-light);
    background: var(--primary-soft);
}


.investment-icon {
    color: var(--info);
    background: var(--info-soft);
}


.stat-change {
    padding: 4px 7px;

    border-radius: 6px;

    font-size: 9px;
    font-weight: 700;
}


.stat-change.positive {
    color: var(--success);
    background: var(--success-soft);
}


.stat-change.negative {
    color: var(--danger);
    background: var(--danger-soft);
}


.stat-label {
    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}


.stat-value {
    margin-top: 4px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.8px;
}


.stat-period {
    margin-top: auto;

    color: var(--text-muted);

    font-size: 8px;
}


/* =========================================================
   15. SECTION HEADERS
========================================================= */

.analytics-section {
    margin-top: 30px;
}


.section-header,
.panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 17px;
}


.section-label {
    display: block;

    margin-bottom: 4px;

    color: var(--primary-light);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.section-header h2,
.panel-header h2 {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
}


.chart-controls {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px;

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 9px;
}


.chart-period {
    min-width: 35px;
    height: 28px;

    color: var(--text-muted);

    border-radius: 6px;

    font-size: 9px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.chart-period:hover {
    color: var(--text-primary);
}


.chart-period.active {
    color: var(--text-primary);
    background: var(--surface-hover);
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   16. ANALYTICS GRID
========================================================= */

.analytics-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 0.8fr);

    gap: 18px;
}


.chart-card,
.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.chart-card:hover,
.panel-card:hover {
    border-color: var(--border-light);
}


.main-chart-card {
    min-height: 390px;

    padding: 23px;
}


.chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


.chart-title {
    display: block;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}


.chart-summary {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 3px;
}


.chart-summary strong {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}


.chart-summary span {
    font-size: 9px;
    font-weight: 700;
}


.positive {
    color: var(--success);
}


.negative {
    color: var(--danger);
}


.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-top: 4px;
}


.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 600;
}


.legend-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}


.income-dot {
    background: var(--primary);
}


.expense-dot {
    background: var(--danger);
}


/* =========================================================
   17. LARGE FINANCE CHART
========================================================= */

.large-chart {
    display: flex;

    height: 275px;

    margin-top: 24px;
}


.chart-y-axis {
    width: 42px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 24px;
}


.chart-y-axis span {
    color: var(--text-muted);
    font-size: 8px;
}


.chart-plot {
    position: relative;

    flex: 1;
    height: 100%;
}


.chart-grid-lines {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 24px;
}


.chart-grid-lines span {
    display: block;

    width: 100%;

    border-top: 1px dashed var(--border);
}


.finance-chart {
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: calc(100% - 24px);
}


.income-area {
    fill: url(#incomeFill);
}


.income-line {
    fill: none;

    stroke: var(--primary);
    stroke-width: 3;

    vector-effect: non-scaling-stroke;
}


.expense-line {
    fill: none;

    stroke: var(--danger);
    stroke-width: 2;

    vector-effect: non-scaling-stroke;
}


.chart-x-axis {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
}


.chart-x-axis span {
    color: var(--text-muted);
    font-size: 8px;
}


/* =========================================================
   18. SPENDING CARD
========================================================= */

.spending-card {
    min-height: 390px;

    padding: 23px;
}


.more-button {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    border-radius: 7px;

    transition: var(--transition-fast);
}


.more-button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.chart-total {
    display: block;

    margin-top: 3px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.8px;
}


.donut-wrapper {
    display: flex;
    justify-content: center;

    margin: 14px 0 12px;
}


.donut-chart {
    position: relative;

    width: 150px;
    height: 150px;

    display: grid;
    place-items: center;

    background:
        conic-gradient(
            var(--primary) 0 33.3%,
            var(--success) 33.3% 52.2%,
            var(--warning) 52.2% 66.2%,
            var(--danger) 66.2% 77.3%,
            rgba(128, 138, 155, 0.16) 77.3% 100%
        );

    border-radius: 50%;
}


.donut-chart::before {
    content: "";

    position: absolute;
    inset: 18px;

    background: var(--surface);

    border-radius: 50%;
}


.donut-center {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.donut-center strong {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}


.donut-center span {
    color: var(--text-muted);
    font-size: 8px;
}


.spending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.spending-item {
    display: grid;

    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
}


.spending-name {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 600;
}


.spending-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}


.spending-dot.housing {
    background: var(--primary);
}


.spending-dot.food {
    background: var(--success);
}


.spending-dot.transport {
    background: var(--warning);
}


.spending-dot.shopping {
    background: var(--danger);
}


.spending-item strong {
    color: var(--text-primary);

    font-size: 9px;
}


.spending-item > span {
    min-width: 34px;

    color: var(--text-muted);

    font-size: 8px;
    text-align: right;
}


/* =========================================================
   19. DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(310px, 0.9fr);

    gap: 18px;

    margin-top: 18px;
}


/* =========================================================
   20. PANEL CARD
========================================================= */

.panel-card {
    padding: 23px;
}


.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--primary-light);

    font-size: 9px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.view-all:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}


/* =========================================================
   21. TRANSACTIONS
========================================================= */

.transactions-list {
    display: flex;
    flex-direction: column;
}


.transaction-item {
    min-height: 65px;

    display: grid;

    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid var(--border);

    transition: background var(--transition-fast);
}


.transaction-item:last-child {
    border-bottom: 0;
}


.transaction-item:hover {
    background: var(--surface-hover);
}


.transaction-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 12px;
}


.transaction-icon.netflix {
    color: #e50914;
    background: rgba(229, 9, 20, 0.1);
}


.transaction-icon.salary {
    color: var(--success);
    background: var(--success-soft);
}


.transaction-icon.shopping {
    color: var(--primary-light);
    background: var(--primary-soft);
}


.transaction-icon.transfer {
    color: var(--info);
    background: var(--info-soft);
}


.transaction-icon.coffee {
    color: var(--warning);
    background: var(--warning-soft);
}


.transaction-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.transaction-info strong {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.transaction-info span {
    color: var(--text-muted);

    font-size: 8px;
}


.transaction-amount {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}


.transaction-amount.expense {
    color: var(--text-primary);
}


.transaction-amount.income {
    color: var(--success);
}


.transaction-status {
    min-width: 63px;

    padding: 5px 7px;

    border-radius: 6px;

    font-size: 7px;
    font-weight: 700;
    text-align: center;
}


.transaction-status.completed {
    color: var(--success);
    background: var(--success-soft);
}


.transaction-status.pending {
    color: var(--warning);
    background: var(--warning-soft);
}


/* =========================================================
   22. BUDGET
========================================================= */

.budget-summary {
    display: flex;
    justify-content: space-between;

    margin: 6px 0 13px;
}


.budget-summary > div {
    display: flex;
    flex-direction: column;
}


.budget-summary span {
    color: var(--text-muted);
    font-size: 8px;
}


.budget-summary strong {
    margin-top: 2px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
}


.budget-limit {
    text-align: right;
}


.budget-progress {
    width: 100%;
    height: 7px;

    overflow: hidden;

    background: rgba(128, 138, 155, 0.12);

    border-radius: var(--radius-pill);
}


.budget-progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius: inherit;
}


.budget-remaining {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 8px;
}


.budget-categories {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin-top: 20px;
}


.budget-category {
    display: grid;

    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}


.category-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 11px;
}


.category-icon.housing {
    color: var(--primary-light);
    background: var(--primary-soft);
}


.category-icon.food {
    color: var(--success);
    background: var(--success-soft);
}


.category-icon.transport {
    color: var(--warning);
    background: var(--warning-soft);
}


.category-icon.shopping {
    color: var(--danger);
    background: var(--danger-soft);
}


.category-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.category-info strong {
    color: var(--text-primary);

    font-size: 9px;
    font-weight: 700;
}


.category-info span {
    color: var(--text-muted);

    font-size: 7px;
}


.category-percent {
    color: var(--text-secondary);

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   23. LOWER GRID
========================================================= */

.lower-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(310px, 0.9fr);

    gap: 18px;

    margin-top: 18px;
}


/* =========================================================
   24. SAVINGS GOALS
========================================================= */

.add-small-button {
    height: 30px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0 10px;

    color: var(--primary-light);

    background: var(--primary-soft);

    border-radius: 7px;

    font-size: 8px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.add-small-button:hover {
    color: #ffffff;
    background: var(--primary);
}


.goals-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.goal-card {
    padding: 14px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);

    border-radius: 13px;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast);
}


.goal-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}


.goal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}


.goal-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 11px;
}


.goal-icon.travel {
    color: var(--info);
    background: var(--info-soft);
}


.goal-icon.emergency {
    color: var(--success);
    background: var(--success-soft);
}


.goal-icon.laptop {
    color: var(--primary-light);
    background: var(--primary-soft);
}


.goal-card > strong {
    display: block;

    color: var(--text-primary);

    font-size: 10px;
    font-weight: 700;
}


.goal-description {
    display: block;

    margin-top: 1px;

    color: var(--text-muted);

    font-size: 8px;
}


.goal-amount {
    display: flex;
    align-items: baseline;
    gap: 3px;

    margin-top: 17px;
}


.goal-amount strong {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}


.goal-amount span {
    color: var(--text-muted);

    font-size: 7px;
}


.goal-progress {
    width: 100%;
    height: 5px;

    margin-top: 9px;

    overflow: hidden;

    background: rgba(128, 138, 155, 0.12);

    border-radius: var(--radius-pill);
}


.goal-progress span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius: inherit;
}


.goal-percent {
    display: block;

    margin-top: 6px;

    color: var(--text-muted);

    font-size: 7px;
}


/* =========================================================
   25. ACCOUNTS
========================================================= */

.account-list {
    display: flex;
    flex-direction: column;

    margin-top: 3px;
}


.account-item {
    display: grid;

    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    padding: 11px 0;

    border-bottom: 1px solid var(--border);
}


.account-item:last-child {
    border-bottom: 0;
}


.account-brand {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 11px;
}


.account-brand.checking {
    color: var(--primary-light);
    background: var(--primary-soft);
}


.account-brand.savings {
    color: var(--success);
    background: var(--success-soft);
}


.account-brand.credit {
    color: var(--danger);
    background: var(--danger-soft);
}


.account-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.account-info strong {
    color: var(--text-primary);

    font-size: 9px;
    font-weight: 700;
}


.account-info span {
    color: var(--text-muted);

    font-size: 7px;
}


.account-balance {
    color: var(--text-primary);

    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}


.account-balance.negative {
    color: var(--danger);
}


.manage-accounts {
    width: 100%;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 10px;

    color: var(--primary-light);

    background: var(--primary-soft);

    border-radius: 8px;

    font-size: 8px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.manage-accounts:hover {
    color: #ffffff;
    background: var(--primary);
}


/* =========================================================
   26. INSIGHT CARD
========================================================= */

.insight-section {
    margin-top: 18px;
}


.insight-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 17px;

    padding: 19px 21px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(99, 91, 255, 0.11),
            rgba(99, 91, 255, 0.03)
        );

    border: 1px solid var(--border-primary);

    border-radius: var(--radius-lg);
}


.insight-card::after {
    content: "";

    position: absolute;
    right: -100px;
    top: -120px;

    width: 280px;
    height: 280px;

    background:
        radial-gradient(
            circle,
            var(--primary-glow),
            transparent 68%
        );

    pointer-events: none;
}


.insight-icon {
    position: relative;
    z-index: 1;

    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    color: var(--primary-light);

    background: var(--primary-soft);

    border: 1px solid var(--border-primary);

    border-radius: 12px;

    font-size: 16px;
}


.insight-content {
    position: relative;
    z-index: 1;

    min-width: 0;

    flex: 1;
}


.insight-content > span {
    color: var(--primary-light);

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.4px;
}


.insight-content h3 {
    margin-top: 2px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
}


.insight-content p {
    max-width: 780px;

    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 8px;
    line-height: 1.65;
}


.insight-button {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--primary-light);

    font-size: 9px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.insight-button:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}


/* =========================================================
   27. FOOTER
========================================================= */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 34px;
    padding: 20px 3px 5px;

    border-top: 1px solid var(--border);
}


.app-footer > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}


.app-footer strong {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 11px;
}


.app-footer > div:first-child span {
    color: var(--text-muted);
    font-size: 8px;
}


.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;

    color: var(--text-muted);

    font-size: 8px;
}


.footer-right span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


.footer-right i {
    color: var(--success);
}


/* =========================================================
   28. MOBILE OVERLAY
========================================================= */

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    backdrop-filter: blur(3px);

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   29. SEARCH OVERLAY
========================================================= */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 120px;

    background: rgba(5, 7, 12, 0.7);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    backdrop-filter: blur(8px);

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.search-modal {
    width: min(620px, calc(100% - 30px));

    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border-light);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    transform: translateY(-15px);

    transition: transform var(--transition);
}


.search-overlay.active .search-modal {
    transform: translateY(0);
}


.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 19px;

    border-bottom: 1px solid var(--border);
}


.search-modal-header h3 {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 13px;
}


.search-modal-header button {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    border-radius: 7px;
}


.search-modal-header button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 15px 17px;
    padding: 0 12px;

    height: 46px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);

    border-radius: 10px;
}


.search-input-wrapper > i {
    color: var(--text-muted);
    font-size: 12px;
}


.search-input-wrapper input {
    flex: 1;

    min-width: 0;

    color: var(--text-primary);

    background: transparent;
    border: 0;
    outline: 0;

    font-size: 11px;
}


.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}


.search-input-wrapper kbd {
    padding: 3px 6px;

    color: var(--text-muted);

    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 5px;

    font-size: 7px;
}


.search-results {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   30. NOTIFICATION PANEL
========================================================= */

.notification-panel {
    position: fixed;
    top: 92px;
    right: 28px;
    z-index: 2500;

    width: min(360px, calc(100% - 30px));

    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border-light);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px) scale(0.98);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}


.notification-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}


.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 18px;

    border-bottom: 1px solid var(--border);
}


.notification-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}


.notification-header span {
    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
}


.notification-header strong {
    padding: 3px 6px;

    color: var(--primary-light);

    background: var(--primary-soft);

    border-radius: 5px;

    font-size: 7px;
}


.notification-header button {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    border-radius: 7px;
}


.notification-header button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.notification-list {
    display: flex;
    flex-direction: column;
}


.notification-item {
    position: relative;

    display: flex;
    gap: 11px;

    padding: 15px 18px;

    border-bottom: 1px solid var(--border);
}


.notification-item.unread::before {
    content: "";

    position: absolute;
    top: 20px;
    left: 7px;

    width: 4px;
    height: 4px;

    background: var(--primary);

    border-radius: 50%;
}


.notification-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 10px;
}


.notification-icon.success {
    color: var(--success);
    background: var(--success-soft);
}


.notification-icon.warning {
    color: var(--warning);
    background: var(--warning-soft);
}


.notification-icon.info {
    color: var(--info);
    background: var(--info-soft);
}


.notification-item > div:last-child {
    min-width: 0;
}


.notification-item strong {
    display: block;

    color: var(--text-primary);

    font-size: 9px;
    font-weight: 700;
}


.notification-item p {
    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 8px;
    line-height: 1.5;
}


.notification-item span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 7px;
}


.notification-footer {
    width: 100%;

    height: 42px;

    color: var(--primary-light);

    font-size: 8px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.notification-footer:hover {
    background: var(--surface-hover);
}


/* =========================================================
   31. ACTION MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 7, 12, 0.72);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    backdrop-filter: blur(7px);

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.action-modal {
    position: relative;

    width: min(410px, 100%);

    padding: 28px;

    background: var(--surface);
    border: 1px solid var(--border-light);

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-lg);

    transform: translateY(20px) scale(0.97);

    transition: transform var(--transition);
}


.modal-overlay.active .action-modal {
    transform: translateY(0) scale(1);
}


.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    border-radius: 8px;
}


.modal-close:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.modal-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    color: var(--primary-light);

    background: var(--primary-soft);

    border-radius: 13px;

    font-size: 17px;
}


.modal-label {
    display: block;

    margin-top: 19px;

    color: var(--primary-light);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}


.action-modal h3 {
    margin-top: 4px;

    color: var(--text-primary);

    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.7px;
}


.action-modal > p {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 9px;
}


.modal-form {
    margin-top: 22px;
}


.modal-form label {
    display: block;

    margin-bottom: 6px;

    color: var(--text-secondary);

    font-size: 8px;
    font-weight: 700;
}


.amount-input {
    display: flex;
    align-items: center;
    gap: 8px;

    height: 48px;

    padding: 0 13px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);

    border-radius: 10px;
}


.amount-input > span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}


.amount-input input {
    width: 100%;

    color: var(--text-primary);

    background: transparent;
    border: 0;
    outline: 0;

    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}


.amount-input input::-webkit-inner-spin-button,
.amount-input input::-webkit-outer-spin-button {
    appearance: none;
}


.modal-submit {
    width: 100%;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius: 9px;

    font-size: 10px;
    font-weight: 700;

    transition: var(--transition-fast);
}


.modal-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px var(--primary-glow);
}


/* =========================================================
   32. HOVER / INTERACTION UTILITIES
========================================================= */

button,
a {
    -webkit-tap-highlight-color: transparent;
}


button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}


.stat-card,
.chart-card,
.panel-card,
.goal-card,
.balance-card,
.insight-card {
    will-change: transform;
}


/* =========================================================
   33. RESPONSIVE — 1250PX
========================================================= */

@media (max-width: 1250px) {

    :root {
        --sidebar-width: 235px;
    }

    .content-area {
        padding: 28px;
    }

    .overview-section {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(350px, 1fr);
    }

    .transaction-item {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            auto;
    }

    .transaction-status {
        display: none;
    }

}


/* =========================================================
   34. RESPONSIVE — 1100PX
========================================================= */

@media (max-width: 1100px) {

    .overview-section {
        grid-template-columns: 1fr;
    }

    .finance-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stat-card {
        min-height: 155px;
    }

    .analytics-grid,
    .dashboard-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }

    .spending-card {
        min-height: auto;
    }

    .goals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   35. RESPONSIVE — 900PX
========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform: translateX(-100%);

        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
    }

    .main-area {
        width: 100%;
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .content-area {
        padding: 24px;
    }

    .top-header {
        padding: 0 24px;
    }

}


/* =========================================================
   36. RESPONSIVE — 720PX
========================================================= */

@media (max-width: 720px) {

    .finance-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .balance-card {
        min-height: 345px;
    }

    .balance-mini-chart {
        width: 90%;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .goal-card {
        padding: 16px;
    }

    .insight-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .insight-button {
        margin-left: 59px;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

}


/* =========================================================
   37. RESPONSIVE — 600PX
========================================================= */

@media (max-width: 600px) {

    :root {
        --header-height: 72px;
    }

    .top-header {
        padding: 0 16px;
    }

    .content-area {
        padding: 18px 16px;
    }

    .page-heading h1 {
        font-size: 17px;
    }

    .page-eyebrow {
        font-size: 8px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-button {
        width: 36px;
        height: 36px;
    }

    .add-money-button {
        width: 36px;
        height: 36px;

        justify-content: center;

        padding: 0;
    }

    .add-money-button span {
        display: none;
    }

    .balance-card-content {
        padding: 23px;
    }

    .balance-amount {
        font-size: 38px;
    }

    .balance-actions {
        margin-top: 38px;
    }

    .balance-action {
        flex: 1;

        padding: 0 9px;
    }

    .balance-mini-chart {
        width: 100%;
        right: -20px;
        opacity: 0.6;
    }

    .main-chart-card,
    .spending-card,
    .panel-card {
        padding: 18px;
    }

    .section-header,
    .panel-header {
        align-items: flex-start;
        gap: 12px;
    }

    .section-header h2,
    .panel-header h2 {
        font-size: 18px;
    }

    .chart-controls {
        flex-shrink: 0;
    }

    .chart-period {
        min-width: 29px;
    }

    .chart-legend {
        display: none;
    }

    .large-chart {
        height: 230px;
    }

    .transaction-item {
        grid-template-columns:
            34px
            minmax(0, 1fr)
            auto;

        gap: 9px;
    }

    .transaction-icon {
        width: 32px;
        height: 32px;
    }

    .transaction-amount {
        font-size: 9px;
    }

    .transaction-info strong {
        font-size: 9px;
    }

    .transaction-info span {
        font-size: 7px;
    }

    .budget-category {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .insight-button {
        margin-left: 0;
    }

    .notification-panel {
        top: 78px;
        right: 15px;
    }

}


/* =========================================================
   38. RESPONSIVE — 460PX
========================================================= */

@media (max-width: 460px) {

    .finance-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 145px;
    }

    .balance-card {
        min-height: 355px;
    }

    .balance-top {
        align-items: flex-start;
    }

    .balance-period {
        font-size: 8px;
    }

    .balance-amount {
        font-size: 34px;
        letter-spacing: -1.7px;
    }

    .balance-growth {
        font-size: 8px;
    }

    .balance-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .balance-action:first-child {
        grid-column: 1 / -1;
    }

    .balance-action {
        height: 36px;
    }

    .chart-card-header {
        gap: 10px;
    }

    .chart-summary strong {
        font-size: 20px;
    }

    .large-chart {
        height: 210px;
    }

    .chart-y-axis {
        width: 32px;
    }

    .spending-item {
        grid-template-columns: 1fr auto auto;
        gap: 7px;
    }

    .transaction-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .transaction-amount {
        grid-column: 2;
        justify-self: start;
    }

    .panel-header {
        flex-wrap: wrap;
    }

    .view-all,
    .add-small-button {
        margin-left: auto;
    }

    .insight-card {
        padding: 16px;
    }

    .insight-icon {
        width: 38px;
        height: 38px;
    }

    .insight-content h3 {
        font-size: 12px;
    }

    .footer-right {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}


/* =========================================================
   39. RESPONSIVE — 380PX
========================================================= */

@media (max-width: 380px) {

    .content-area {
        padding: 15px 12px;
    }

    .top-header {
        padding: 0 12px;
    }

    .header-button.search-button {
        display: none;
    }

    .page-heading h1 {
        font-size: 15px;
    }

    .balance-card-content {
        padding: 19px;
    }

    .balance-amount {
        font-size: 30px;
    }

    .chart-controls {
        width: 100%;

        justify-content: space-between;
    }

    .chart-period {
        flex: 1;
    }

    .section-header {
        flex-direction: column;
    }

    .transaction-item {
        gap: 7px;
    }

    .account-item {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 7px;
    }

}


/* =========================================================
   40. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   41. PRINT
========================================================= */

@media print {

    .sidebar,
    .top-header,
    .header-actions,
    .mobile-overlay,
    .search-overlay,
    .notification-panel,
    .modal-overlay,
    .page-loader {
        display: none !important;
    }

    .main-area {
        width: 100%;
        margin: 0;
    }

    .content-area {
        padding: 0;
    }

    .balance-card,
    .chart-card,
    .panel-card,
    .stat-card {
        box-shadow: none;
        break-inside: avoid;
    }

}