﻿@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #163B65;
    --green: #16865D;
    --green-dark: #106A49;
    --yellow: #F5BF42;
    --background: #F4F7FB;
    --white: #FFFFFF;
    --text: #243247;
    --muted: #718096;
    --border: #E4EAF0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}

/* ==================================
   HEADER UNIWALLET
================================== */

.header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .header .navbar {
        max-width: 1440px;
        width: 100%;
        min-height: 80px;
        margin: auto;
        padding: 12px 28px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 24px;
    }

    /* LOGO */

    .header .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        text-decoration: none;
    }

        .header .brand img {
            width: 55px;
            height: 55px;
            object-fit: contain;
        }

        .header .brand strong {
            display: block;
            font-size: 28px;
            font-weight: 800;
            color: var(--navy);
            letter-spacing: -1px;
            line-height: 1.2;
        }

            .header .brand strong span {
                color: var(--green);
            }

        .header .brand small {
            display: block;
            font-size: 10px;
            color: var(--muted);
            margin-top: 5px;
            white-space: nowrap;
        }

/* MENU CHINH */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 28px;
}

    .main-navigation a {
        position: relative;
        color: var(--navy);
        font-size: 14px;
        font-weight: 600;
        padding: 10px 0;
        text-decoration: none;
        white-space: nowrap;
        transition: 0.2s;
    }

        .main-navigation a:hover {
            color: var(--green);
        }

        .main-navigation a::after {
            content: "";
            position: absolute;
            bottom: 3px;
            left: 0;
            width: 0;
            height: 2px;
            border-radius: 3px;
            background: var(--green);
            transition: width 0.25s;
        }

        .main-navigation a:hover::after {
            width: 100%;
        }

/* DANG NHAP - DANG KY */

.nav-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.nav-login,
.nav-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: 0.2s;
}

.nav-login {
    background: white;
    color: var(--green);
    border: 1px solid var(--green);
}

    .nav-login:hover {
        background: #eaf7ef;
        color: var(--green-dark);
    }

.nav-register {
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
}

    .nav-register:hover {
        background: var(--green-dark);
        border-color: var(--green-dark);
        color: white;
    }

/* BO MENU BA GACH */

.header .menu-toggle {
    display: none !important;
}

/* MAN HINH MAY TINH NHO */

@media (max-width: 1150px) {

    .header .navbar {
        padding: 12px 18px;
        gap: 16px;
    }

    .header .brand img {
        width: 45px;
        height: 45px;
    }

    .header .brand strong {
        font-size: 25px;
    }

    .main-navigation {
        gap: 18px;
    }

        .main-navigation a {
            font-size: 13px;
        }

    .nav-login,
    .nav-register {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* MAY TINH BANG */

@media (max-width: 900px) {

    .header .navbar {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 12px 20px;
        gap: 10px;
    }

    .header .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-account {
        grid-column: 2;
        grid-row: 1;
    }

    .main-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 12px;
        border-top: 1px solid #edf0f2;
        padding-top: 5px;
    }
}

/* DIEN THOAI */

@media (max-width: 480px) {

    .header .navbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .header .brand {
        gap: 6px;
    }

        .header .brand img {
            width: 35px;
            height: 35px;
        }

        .header .brand strong {
            font-size: 21px;
        }

        .header .brand small {
            display: none;
        }

    .nav-account {
        gap: 5px;
    }

    .nav-login,
    .nav-register {
        padding: 8px 9px;
        font-size: 11px;
        border-radius: 7px;
    }

        .nav-login i {
            display: none;
        }

    .main-navigation {
        gap: 8px;
    }

        .main-navigation a {
            font-size: 12px;
            padding: 8px 0;
        }
}

@media (max-width: 340px) {

    .header .navbar {
        grid-template-columns: 1fr;
    }

    .nav-account {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }

    .main-navigation {
        grid-row: 3;
        flex-wrap: wrap;
    }
}

/* NOI DUNG */

.main-content {
    min-height: 70vh;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(22, 59, 101, 0.05);
}

.btn-primary {
    display: inline-block;
    padding: 13px 25px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-primary:hover {
        background: var(--green-dark);
    }

/* FOOTER */

.footer {
    background: #112D4C;
    color: white;
    padding: 50px 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h2 {
    font-size: 27px;
    margin-bottom: 10px;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer p,
.footer a {
    color: #C2D0E0;
    font-size: 13px;
}

.footer a {
    display: block;
    margin-bottom: 10px;
}

    .footer a:hover {
        color: var(--yellow);
    }

.footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 12px;
    color: #AABDD2;
}

/* GIAO DIEN DIEN THOAI */

@media (max-width: 900px) {

    .container {
        padding: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
/* =========================
   TRANG CHU UNIWALLET
========================= */

section[id] {
    scroll-margin-top: 100px;
}

/* BANNER */

.hero {
    background: linear-gradient(120deg, #EDF8F1, #F4F8FF);
    padding: 80px 30px;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-tag {
    display: inline-block;
    background: #DDF2E5;
    color: var(--green);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 49px;
    line-height: 1.3;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -1.5px;
}

    .hero h1 span {
        color: var(--green);
        display: block;
    }

.hero-text > p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 24px 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--green);
    color: var(--green);
    background: white;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

    .btn-outline:hover {
        background: #EAF7EF;
    }

.hero-note {
    margin-top: 25px;
    color: var(--muted);
    font-size: 11px;
}

    .hero-note i {
        color: var(--green);
        margin: 0 5px 0 10px;
    }

.hero-image {
    text-align: center;
}

    .hero-image img {
        width: 420px;
        border-radius: 30px;
        object-fit: contain;
        box-shadow: 0 20px 60px rgba(22,59,101,0.08);
    }

/* CAC PHAN TRANG CHU */

.home-section {
    max-width: 1200px;
    margin: auto;
    padding: 75px 30px;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

    .section-heading > span {
        color: var(--green);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .section-heading h2 {
        color: var(--navy);
        font-size: 32px;
        margin: 10px 0;
    }

    .section-heading p {
        color: var(--muted);
    }

/* TINH NANG */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: 0.25s;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(22,59,101,0.09);
        border-color: #A8D9BC;
    }

.feature-icon {
    width: 58px;
    height: 58px;
    background: #E7F5EC;
    color: var(--green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card:nth-child(even) .feature-icon {
    background: #E9F0FC;
    color: var(--navy);
}

.feature-card h3 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 13px;
}

/* BANG GIA */

.pricing-section {
    background: #EDF3F8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.price-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
}

    .price-card.featured {
        border: 2px solid var(--green);
        box-shadow: 0 10px 35px rgba(22,134,93,0.1);
    }

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 24px;
    color: var(--navy);
}

.price-card > p {
    color: var(--muted);
    font-size: 12px;
}

.price {
    color: var(--green);
    font-size: 30px;
    font-weight: 800;
    margin: 25px 0;
}

    .price small {
        font-size: 11px;
        color: var(--muted);
        font-weight: 400;
    }

.price-card ul {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.price-card li {
    padding: 10px 0;
    border-bottom: 1px solid #F0F2F5;
    font-size: 13px;
}

    .price-card li::before {
        content: "✓";
        color: var(--green);
        font-weight: bold;
        margin-right: 10px;
    }

.price-card a {
    text-align: center;
}

/* GIOI THIEU */

.about-box {
    background: linear-gradient(120deg, #163B65, #16865D);
    border-radius: 24px;
    padding: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

    .about-box h2 {
        font-size: 29px;
        margin-bottom: 15px;
    }

    .about-box p {
        max-width: 650px;
        color: #E0F0EA;
        margin-bottom: 25px;
    }

    .about-box .btn-primary {
        background: white;
        color: var(--green);
    }

.about-icon {
    font-size: 110px;
    color: rgba(255,255,255,0.25);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .hero {
        padding: 50px 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-image img {
        width: 300px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-section {
        padding: 50px 20px;
    }

    .about-box {
        padding: 30px;
    }

    .about-icon {
        display: none;
    }
}

@media (max-width: 550px) {

    .hero h1 {
        font-size: 30px;
    }

    .hero-text > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

        .hero-buttons a {
            text-align: center;
        }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .about-box h2 {
        font-size: 23px;
    }
}
/* ==================================
   ĐĂNG NHẬP VÀ ĐĂNG KÝ
================================== */

.auth-section {
    min-height: calc(100vh - 90px);
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 135deg, #edf7f0, #eef3fa );
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 22px 28px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(24, 59, 86, 0.08);
}

.auth-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.auth-card h1 {
    color: #173b57;
    font-size: 24px;
    text-align: center;
    margin: 0 0 6px;
}

.auth-subtitle {
    text-align: center;
    color: #75808d;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 16px;
}

.auth-field {
    margin-bottom: 10px;
}

    .auth-field label {
        display: block;
        color: #24374a;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }

.auth-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #dce4e8;
    border-radius: 8px;
    background: #f8fafb;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

    .auth-input:focus {
        border-color: #198754;
        background: #ffffff;
        box-shadow: 0 0 0 3px #19875415;
    }

.auth-button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .auth-button:hover {
        background: #126b42;
    }

.auth-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-bottom: 6px;
}

    .auth-message:empty {
        display: none;
    }

.auth-bottom {
    text-align: center;
    font-size: 12px;
    color: #75808d;
    margin: 12px 0 0;
}

    .auth-bottom a {
        color: #198754;
        font-weight: 600;
        text-decoration: none;
    }

@media (max-width: 600px) {
    .auth-section {
        padding: 15px 12px;
    }

    .auth-card {
        padding: 18px 20px;
        border-radius: 16px;
    }
}
/* ==============================
   DASHBOARD
============================== */

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px;
    box-sizing: border-box;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

    .dashboard-welcome h1 {
        font-size: 25px;
        color: #173b57;
        margin: 0 0 5px;
    }

    .dashboard-welcome p {
        color: #75808d;
        font-size: 14px;
        margin: 0;
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e3ebe7;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

    .dashboard-card h3 {
        font-size: 14px;
        color: #75808d;
        margin: 0 0 10px;
    }

    .dashboard-card h2 {
        font-size: 25px;
        color: #198754;
        margin: 0;
    }

.logout-button {
    background: #173b57;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

    .logout-button:hover {
        background: #198754;
    }

@media (max-width: 768px) {
    .dashboard-container {
        padding: 12px;
    }

    .dashboard-grid {
        gap: 8px;
    }

    .dashboard-card {
        padding: 10px;
    }

        .dashboard-card h3 {
            font-size: 12px;
        }

        .dashboard-card h2 {
            font-size: 16px;
        }

    .dashboard-welcome h1 {
        font-size: 19px;
    }
}
/* Thu gọn Dashboard */
.dashboard-container {
    min-height: 0 !important;
    padding: 20px;
}

.dashboard-welcome {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dashboard-card {
    padding: 16px;
}

    .dashboard-card h2 {
        font-size: 24px;
    }

/* Ẩn chân trang khi vào Dashboard */
body:has(.dashboard-container) footer {
    display: none;
}

/* Tận dụng chiều cao màn hình */
body:has(.dashboard-container) main {
    min-height: 0 !important;
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   QUAN LY THU CHI
========================= */

.tc-page {
    max-width: 1200px;
    margin: auto;
    padding: 18px 24px;
    color: #153952;
}

.tc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .tc-heading h1 {
        font-size: 26px;
        margin: 0 0 4px;
    }

    .tc-heading p {
        color: #748397;
        margin: 0;
        font-size: 14px;
    }

.tc-back {
    background: #153952;
    color: white;
    padding: 10px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
}

.tc-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 18px;
}

.tc-panel {
    background: white;
    padding: 20px;
    border: 1px solid #e1e9e7;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
    min-width: 0;
}

    .tc-panel h2 {
        font-size: 20px;
        color: #16845b;
        margin: 0 0 14px;
    }

    .tc-panel label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }

.tc-input {
    display: block;
    width: 100%;
    height: 35px;
    box-sizing: border-box;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: #f5f8f9;
    border: 1px solid #dce5e9;
    border-radius: 7px;
    font-size: 14px;
    color: #153952;
}

    .tc-input:focus {
        border-color: #16845b;
        outline: none;
    }

.tc-button {
    width: 100%;
    background: #16845b;
    color: white;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .tc-button:hover {
        background: #106c49;
    }

.tc-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.tc-list {
    max-height: 410px;
    overflow-y: auto;
}

.tc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f5f8f9;
}

    .tc-item p {
        font-size: 12px;
        color: #748397;
        margin: 4px 0;
    }

    .tc-item small {
        color: #748397;
        overflow-wrap: anywhere;
    }

.tc-right {
    text-align: right;
    flex-shrink: 0;
}

.tc-income {
    color: #16845b;
}

.tc-expense {
    color: #dc3545;
}

.tc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 7px;
}

    .tc-actions a {
        color: #153952;
        font-size: 13px;
        text-decoration: none;
    }

        .tc-actions a:last-child {
            color: #dc3545;
        }

@media (max-width: 700px) {
    .tc-layout {
        grid-template-columns: 1fr;
    }

    .tc-page {
        padding: 12px;
    }

    .tc-panel {
        padding: 14px;
    }
}
/* DASHBOARD */

.dashboard-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    min-height: auto;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

    .dashboard-welcome h1 {
        font-size: 25px;
        margin: 0 0 5px;
    }

    .dashboard-welcome p {
        margin: 0;
        font-size: 14px;
    }

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 18px 0;
}

.dashboard-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #153B56;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

    .dashboard-action:hover {
        background: #14865D;
        color: white;
    }

    .dashboard-action i {
        font-size: 20px;
    }

.dashboard-card {
    padding: 18px;
}

.income-text {
    color: #16865D !important;
}

.expense-text {
    color: #DC4545 !important;
}

.recent-transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #E8EDF0;
}

    .recent-transaction:last-child {
        border-bottom: none;
    }

    .recent-transaction p {
        margin: 4px 0 0;
        color: #718096;
        font-size: 13px;
    }

@media (max-width: 600px) {

    .dashboard-container {
        padding: 12px;
    }

    .dashboard-welcome h1 {
        font-size: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-action {
        font-size: 13px;
        padding: 12px;
    }
}
/* QUAN LY NGAN SACH */

.budget-page {
    max-width: 1150px;
    margin: auto;
    padding: 20px;
}

.budget-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .budget-heading h1 {
        color: #153B56;
        font-size: 26px;
        margin: 0 0 5px;
    }

    .budget-heading p {
        color: #718096;
        font-size: 14px;
        margin: 0;
    }

.budget-back {
    background: #153B56;
    color: white;
    padding: 10px 16px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.budget-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.budget-panel {
    background: white;
    border: 1px solid #E1E9E5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

    .budget-panel h2 {
        color: #153B56;
        font-size: 20px;
        margin: 0 0 15px;
    }

    .budget-panel label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #153B56;
        margin-bottom: 6px;
    }

.budget-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #DCE5E8;
    border-radius: 9px;
    background: #F5F8F9;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

    .budget-input:focus {
        border-color: #16865D;
    }

.budget-button {
    width: 100%;
    border: none;
    background: #16865D;
    color: white;
    padding: 12px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .budget-button:hover {
        background: #106C4B;
    }

.budget-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.budget-item {
    background: #F8FAFB;
    border: 1px solid #E4EAE7;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.budget-item-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px;
    color: #153B56;
}

.budget-actions {
    display: flex;
    gap: 8px;
}

.budget-edit,
.budget-delete {
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.budget-edit {
    background: #E1EDF9;
    color: #2463A5;
}

.budget-delete {
    background: #FCE6E6;
    color: #C63C3C;
}

.budget-item small {
    color: #718096;
}

.budget-money {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 7px;
    font-size: 13px;
}

.budget-progress {
    height: 9px;
    background: #E2E9EC;
    border-radius: 20px;
    overflow: hidden;
}

.budget-progress-bar {
    height: 100%;
    border-radius: 20px;
}

.budget-remaining {
    font-size: 14px;
    font-weight: 600;
    margin: 9px 0 4px;
}

.budget-success {
    color: #16865D;
    font-size: 13px;
}

.budget-warning {
    color: #C48A16;
    font-size: 13px;
}

.budget-danger {
    color: #DC4545;
    font-size: 13px;
}

@media (max-width: 700px) {
    .budget-layout {
        grid-template-columns: 1fr;
    }

    .budget-page {
        padding: 12px;
    }

    .budget-heading h1 {
        font-size: 20px;
    }

    .budget-panel {
        padding: 15px;
    }
}
.dashboard-actions {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================
   MUC TIEU TIET KIEM
========================= */

.saving-page {
    max-width: 1200px;
    margin: auto;
    padding: 22px;
    color: #153950;
}

.saving-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

    .saving-heading h1 {
        font-size: 28px;
        margin: 0 0 6px;
    }

    .saving-heading p {
        color: #74869b;
        margin: 0;
        font-size: 14px;
    }

.saving-back {
    background: #153950;
    color: white;
    padding: 10px 16px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.saving-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: start;
}

.saving-panel {
    background: white;
    border: 1px solid #dfe8e4;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

    .saving-panel h2 {
        font-size: 21px;
        margin: 0 0 18px;
    }

    .saving-panel label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
    }

.saving-input {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d6e1e7;
    border-radius: 9px;
    background: #f4f7f8;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
}

    .saving-input:focus {
        border-color: #16845c;
    }

.saving-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    background: #16845c;
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

    .saving-button:hover {
        background: #106c4b;
    }

.saving-message {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.saving-item {
    background: #f5f8f7;
    border: 1px solid #dfe8e4;
    border-radius: 13px;
    padding: 15px;
    margin-bottom: 12px;
}

.saving-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

    .saving-item-top strong {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

.saving-actions {
    display: flex;
    gap: 8px;
}

.saving-edit,
.saving-delete {
    padding: 6px 12px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
}

.saving-edit {
    color: #2169a8;
    background: #deebf8;
}

.saving-delete {
    color: #dc4040;
    background: #fce4e4;
}

.saving-date {
    font-size: 13px;
    color: #74869b;
    margin: 10px 0;
}

.saving-money {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.saving-progress {
    height: 9px;
    background: #dce5e7;
    border-radius: 20px;
    overflow: hidden;
}

    .saving-progress > div {
        height: 100%;
        background: #16845c;
        border-radius: 20px;
    }

.saving-item p {
    margin: 8px 0;
    font-size: 14px;
}

.saving-status {
    color: #16845c;
    font-weight: 600;
}

.saving-deposit {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

    .saving-deposit .saving-input {
        margin: 0;
        min-width: 0;
        flex: 1;
    }

    .saving-deposit .saving-button {
        width: auto;
        white-space: nowrap;
    }

@media (max-width: 768px) {
    .saving-layout {
        grid-template-columns: 1fr;
    }

    .saving-page {
        padding: 15px;
    }

    .saving-panel {
        padding: 16px;
    }

    .saving-heading h1 {
        font-size: 22px;
    }
}
/* =========================
   THONG KE THU CHI
========================= */

.report-page {
    max-width: 1200px;
    margin: auto;
    padding: 22px;
    color: #153950;
}

.report-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .report-heading h1 {
        font-size: 28px;
        margin: 0 0 6px;
    }

    .report-heading p {
        color: #74869b;
        font-size: 14px;
        margin: 0;
    }

.report-back {
    background: #153950;
    color: white;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.report-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.report-input {
    padding: 10px 15px;
    border: 1px solid #d6e1e7;
    border-radius: 9px;
    background: white;
    color: #153950;
    font-size: 14px;
    min-width: 110px;
}

.report-button {
    background: #16845c;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.report-card {
    min-width: 0;
    background: white;
    border: 1px solid #dfe8e4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

    .report-card p {
        font-size: 14px;
        margin: 0 0 10px;
    }

    .report-card h2 {
        font-size: 20px;
        margin: 0 0 18px;
    }

.report-income,
.report-expense,
.report-balance {
    font-size: 25px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-income {
    color: #16845c;
}

.report-expense {
    color: #dc4040;
}

.report-balance {
    color: #153950;
}

.report-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.report-chart {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 8px 0;
}

.report-column {
    width: 42%;
    text-align: center;
    font-size: 14px;
}

.report-bar-area {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #dce5e7;
    margin: 12px 0;
    background: repeating-linear-gradient( to top, transparent 0, transparent 44px, #edf1f3 44px, #edf1f3 45px );
}

.report-bar {
    width: 65%;
    max-width: 85px;
    border-radius: 7px 7px 0 0;
    transition: height .3s;
}

.income-bar {
    background: #16845c;
}

.expense-bar {
    background: #e87575;
}

.report-category-list {
    max-height: 260px;
    overflow-y: auto;
}

.report-category {
    margin-bottom: 15px;
}

.report-category-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 7px;
}

.report-progress {
    height: 9px;
    background: #e0e7e9;
    border-radius: 20px;
    overflow: hidden;
}

    .report-progress > div {
        height: 100%;
        border-radius: 20px;
    }

.report-category small {
    color: #74869b;
    display: block;
    margin-top: 4px;
}

@media (max-width: 768px) {

    .report-page {
        padding: 15px;
    }

    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .report-heading h1 {
        font-size: 22px;
    }

    .report-filter {
        flex-wrap: wrap;
    }

    .report-card {
        padding: 15px;
    }
}
/* CHIA SE CHI PHI NHOM */

.group-page {
    max-width: 1200px;
    margin: auto;
    padding: 24px;
}

.group-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .group-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin: 0 0 6px;
    }

    .group-heading p {
        color: #718096;
        margin: 0;
    }

.group-back {
    background: #153b55;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
}

.group-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.group-panel {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 5px 20px #00000005;
}

    .group-panel h2 {
        font-size: 21px;
        color: #153b55;
        margin: 0 0 16px;
    }

        .group-panel h2:not(:first-child) {
            margin-top: 22px;
        }

    .group-panel label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
        color: #153b55;
    }

.group-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d5dfe5;
    border-radius: 10px;
    background: #f5f7f8;
    margin-bottom: 12px;
    font-size: 15px;
}

.group-button {
    width: 100%;
    padding: 12px;
    background: #16845e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .group-button:hover {
        background: #116c4d;
    }

.group-item {
    padding: 14px;
    background: #f5f7f8;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    margin-bottom: 10px;
}

.group-message {
    display: block;
    margin-top: 10px;
    color: #16845e;
}

@media (max-width: 700px) {
    .group-layout {
        grid-template-columns: 1fr;
    }

    .group-page {
        padding: 15px;
    }
}
/* LICH SU CHIA TIEN */

.group-history {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 5px;
}

    .group-history .group-item p {
        margin: 6px 0;
        font-size: 14px;
    }

.group-paid,
.group-unpaid {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.group-paid {
    background: #e3f5eb;
    color: #16845e;
}

.group-unpaid {
    background: #fee8e8;
    color: #dc2626;
}
/* XAC NHAN THANH TOAN NHOM */

.group-confirm {
    display: block;
    background: #16845e;
    color: white;
    padding: 8px 12px;
    border-radius: 7px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

    .group-confirm:hover {
        background: #116c4d;
        color: white;
    }
/* =================================
   TAO MA QR THANH TOAN
================================= */

.qr-page {
    max-width: 1100px;
    margin: auto;
    padding: 20px 24px;
}

.qr-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .qr-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin: 0 0 6px;
    }

    .qr-heading p {
        color: #718096;
        margin: 0;
        font-size: 14px;
    }

.qr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.qr-panel {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 18px;
    padding: 22px;
    min-width: 0;
    box-shadow: 0 5px 20px #00000005;
}

    .qr-panel h2 {
        color: #153b55;
        font-size: 20px;
        margin: 0 0 16px;
    }

        .qr-panel h2 i {
            color: #16845e;
        }

    .qr-panel label {
        display: block;
        color: #153b55;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 5px;
    }

.qr-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #f5f7f8;
    border: 1px solid #d5dfe5;
    border-radius: 9px;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
}

    .qr-input:focus {
        border-color: #16845e;
    }

.qr-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #16845e;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

    .qr-button:hover {
        background: #116c4d;
        color: white;
    }

.qr-panel .qr-subtitle {
    margin-top: 20px;
}

.qr-result {
    text-align: center;
}

.qr-empty {
    padding: 95px 10px;
    color: #94a3b8;
}

    .qr-empty i {
        font-size: 100px;
        color: #cbd5e1;
    }

    .qr-empty p {
        font-size: 17px;
        font-weight: 600;
    }

    .qr-empty span {
        font-size: 13px;
    }

.qr-image {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 10px auto;
}

.qr-result .qr-amount {
    font-size: 27px;
    color: #16845e;
    margin: 12px 0;
}

.qr-result p {
    color: #153b55;
    font-size: 14px;
    margin: 8px 0;
}

.qr-result .qr-button {
    margin-top: 15px;
}

.qr-result .qr-note {
    color: #718096;
    font-size: 12px;
    margin-top: 12px;
}

.qr-message {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .qr-layout {
        grid-template-columns: 1fr;
    }

    .qr-page {
        padding: 15px;
    }

    .qr-heading h1 {
        font-size: 22px;
    }
}
/* =================================
   QUET MA QR
================================= */

.scan-page {
    max-width: 1100px;
    margin: auto;
    padding: 20px 24px;
}

.scan-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .scan-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin-bottom: 5px;
    }

    .scan-heading p {
        color: #718096;
        font-size: 14px;
    }

.scan-back {
    background: #153b55;
    color: white;
    padding: 10px 16px;
    border-radius: 9px;
    white-space: nowrap;
    text-decoration: none;
}

.scan-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.scan-panel {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 18px;
    padding: 22px;
    min-width: 0;
    box-shadow: 0 5px 20px #00000005;
}

    .scan-panel h2 {
        color: #153b55;
        font-size: 20px;
        margin-bottom: 18px;
    }

        .scan-panel h2 i {
            color: #16845e;
            margin-right: 5px;
        }

/* KHUNG CAMERA */

#reader {
    width: 100%;
    border: 1px solid #dce5e2 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafb;
}

    #reader video {
        max-width: 100%;
        border-radius: 8px;
    }

    #reader button {
        background: #16845e;
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 8px;
        cursor: pointer;
        margin: 5px;
        font-weight: 600;
    }

        #reader button:hover {
            background: #116c4d;
        }

    #reader a {
        color: #16845e;
        font-size: 13px;
    }

    #reader select {
        padding: 8px;
        border: 1px solid #dce5e2;
        border-radius: 7px;
        max-width: 100%;
    }

.scan-note {
    color: #718096;
    font-size: 13px;
    text-align: center;
    margin-top: 14px;
}

/* KET QUA */

.scan-empty {
    text-align: center;
    padding: 65px 10px;
    color: #94a3b8;
}

    .scan-empty i {
        font-size: 100px;
        color: #cbd5e1;
        margin-bottom: 15px;
    }

    .scan-empty p {
        font-size: 18px;
        font-weight: 600;
    }

.scan-success {
    background: #e3f5eb;
    color: #16845e;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 14px;
}

.scan-panel label {
    display: block;
    color: #153b55;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.scan-value {
    padding: 9px 12px;
    background: #f5f7f8;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.scan-text {
    width: 100%;
    height: 75px;
    resize: vertical;
    background: #f5f7f8;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    box-sizing: border-box;
}

.scan-button {
    width: 100%;
    background: #16845e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px;
    margin-top: 10px;
    font-weight: 600;
    cursor: pointer;
}

    .scan-button:hover {
        background: #116c4d;
    }

.scan-reset {
    background: #153b55;
}

    .scan-reset:hover {
        background: #102d43;
    }

@media (max-width: 700px) {

    .scan-layout {
        grid-template-columns: 1fr;
    }

    .scan-page {
        padding: 15px;
    }

    .scan-panel {
        padding: 16px;
    }

    .scan-heading h1 {
        font-size: 22px;
    }
}
/* =================================
   QUAN LY TAI KHOAN CA NHAN
================================= */

.profile-page {
    max-width: 1050px;
    margin: auto;
    padding: 24px;
}

.profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .profile-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin-bottom: 5px;
    }

    .profile-heading p {
        color: #718096;
        font-size: 14px;
    }

.profile-back {
    background: #153b55;
    color: white;
    padding: 10px 16px;
    border-radius: 9px;
    white-space: nowrap;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-card {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 5px 20px #00000005;
}

    .profile-card h2 {
        font-size: 20px;
        color: #153b55;
        margin-bottom: 18px;
    }

        .profile-card h2 i {
            color: #16845e;
        }

.profile-summary {
    text-align: center;
    overflow-wrap: anywhere;
}

.profile-avatar {
    width: 95px;
    height: 95px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e3f5eb;
    color: #16845e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.profile-summary h2 {
    margin-bottom: 5px;
}

.profile-summary p {
    color: #718096;
    font-size: 13px;
}

.profile-role {
    display: inline-block;
    background: #e3f5eb;
    color: #16845e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.profile-summary hr {
    border: none;
    border-top: 1px solid #e4eae7;
    margin: 20px 0;
}

.profile-summary strong {
    color: #153b55;
}

.profile-card label {
    display: block;
    font-size: 14px;
    color: #153b55;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-input {
    display: block;
    width: 100%;
    background: #f5f7f8;
    border: 1px solid #dce5e2;
    border-radius: 9px;
    padding: 11px 13px;
    margin-bottom: 15px;
    font-size: 14px;
    outline: none;
}

    .profile-input:focus {
        border-color: #16845e;
        background: white;
    }

.profile-button {
    width: 100%;
    background: #16845e;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .profile-button:hover {
        background: #116c4d;
    }

.profile-message {
    display: block;
    font-size: 13px;
    margin-top: 10px;
}

.profile-bank {
    display: block;
    background: #153b55;
    color: white;
    padding: 11px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 20px;
}

    .profile-bank:hover {
        background: #16845e;
        color: white;
    }

@media (max-width: 700px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding: 15px;
    }

    .profile-heading h1 {
        font-size: 22px;
    }

    .profile-card {
        padding: 18px;
    }
}
/* =================================
   THONG BAO NGAN SACH
================================= */

.notification-page {
    max-width: 1100px;
    margin: auto;
    padding: 24px;
}

.notification-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .notification-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin-bottom: 5px;
    }

    .notification-heading p {
        color: #718096;
        font-size: 14px;
    }

.notification-back {
    background: #153b55;
    color: white;
    padding: 10px 16px;
    border-radius: 9px;
    white-space: nowrap;
}

.notification-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.notification-stat {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .notification-stat i {
        color: #16845e;
        font-size: 24px;
    }

    .notification-stat span {
        color: #718096;
        font-size: 13px;
    }

    .notification-stat strong {
        color: #153b55;
        font-size: 30px;
    }

.notification-panel {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 18px;
    padding: 22px;
}

    .notification-panel h2 {
        font-size: 20px;
        color: #153b55;
        margin-bottom: 18px;
    }

        .notification-panel h2 i {
            color: #16845e;
        }

.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid;
}

.notification-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.notification-danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.notification-icon {
    font-size: 26px;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.notification-warning .notification-icon {
    color: #d97706;
}

.notification-danger .notification-icon {
    color: #dc2626;
}

.notification-info {
    flex: 1;
    min-width: 0;
}

    .notification-info h3 {
        font-size: 16px;
        color: #153b55;
        margin-bottom: 6px;
    }

    .notification-info p {
        color: #64748b;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .notification-info small {
        font-size: 12px;
        color: #64748b;
    }

.notification-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0 5px;
}

.notification-progress-fill {
    height: 100%;
    border-radius: 20px;
}

.notification-warning .notification-progress-fill {
    background: #f59e0b;
}

.notification-danger .notification-progress-fill {
    background: #dc2626;
}

.notification-detail {
    background: #153b55;
    color: white;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

    .notification-detail:hover {
        background: #16845e;
        color: white;
    }

.notification-empty {
    padding: 45px 15px;
    text-align: center;
    color: #718096;
}

    .notification-empty i {
        font-size: 65px;
        color: #16845e;
        margin-bottom: 15px;
    }

    .notification-empty h3 {
        color: #153b55;
        margin-bottom: 8px;
    }

@media (max-width: 700px) {

    .notification-page {
        padding: 15px;
    }

    .notification-summary {
        gap: 8px;
    }

    .notification-stat {
        padding: 12px;
    }

        .notification-stat strong {
            font-size: 24px;
        }

        .notification-stat span {
            font-size: 11px;
        }

    .notification-item {
        flex-wrap: wrap;
    }

    .notification-detail {
        margin-left: auto;
    }

    .notification-heading h1 {
        font-size: 22px;
    }
}
/* =================================
   QUAN LY SO DU HANG THANG
================================= */

.balance-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

    .balance-filter label {
        color: #153b55;
        font-weight: 600;
        font-size: 14px;
    }

    .balance-filter .wallet-input {
        width: 200px;
        margin: 0;
        background: white;
    }

.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.balance-card {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 15px;
    padding: 20px;
    min-width: 0;
}

    .balance-card i {
        color: #153b55;
        font-size: 25px;
        margin-bottom: 12px;
    }

    .balance-card p {
        color: #718096;
        font-size: 13px;
        margin-bottom: 8px;
    }

.balance-number {
    display: block;
    color: #153b55;
    font-size: 23px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.balance-income {
    color: #16845e !important;
}

.balance-expense {
    color: #dc2626 !important;
}

.balance-current {
    background: #16845e;
    border-color: #16845e;
}

    .balance-current i,
    .balance-current p,
    .balance-current .balance-number {
        color: white;
    }

.balance-divider {
    border: none;
    border-top: 1px solid #e4eae7;
    margin: 20px 0;
}

.balance-wallet-info {
    flex: 1;
    min-width: 0;
}

    .balance-wallet-info strong {
        color: #153b55;
        font-size: 15px;
    }

        .balance-wallet-info strong i {
            color: #16845e;
            margin-right: 5px;
        }

    .balance-wallet-info p {
        font-size: 13px;
        margin: 6px 0;
    }

.balance-wallet-total {
    display: block;
    color: #16845e !important;
    margin-top: 8px;
}

.wallet-page .wallet-list {
    max-height: 460px;
    overflow-y: auto;
}

.wallet-page .wallet-item {
    align-items: center;
    padding: 15px;
}

.wallet-page .wallet-panel {
    min-width: 0;
}

@media (max-width: 900px) {

    .balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .balance-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .balance-grid {
        gap: 10px;
    }

    .balance-card {
        padding: 13px;
    }

        .balance-card p {
            font-size: 12px;
        }

    .balance-number {
        font-size: 17px;
    }

    .balance-filter {
        flex-wrap: wrap;
    }
}
/* =================================
   TIM KIEM VA LICH SU GIAO DICH
================================= */

.tc-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tc-summary-card {
    background: white;
    border: 1px solid #dce5e2;
    border-radius: 15px;
    padding: 18px;
    min-width: 0;
}

    .tc-summary-card i {
        font-size: 23px;
        color: #153b55;
        margin-bottom: 10px;
    }

    .tc-summary-card p {
        color: #718096;
        font-size: 13px;
        margin-bottom: 7px;
    }

.tc-summary-number {
    display: block;
    color: #153b55;
    font-size: 24px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tc-filter {
    background: #f5f7f8;
    border: 1px solid #e4eae7;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 15px;
}

    .tc-filter .tc-input {
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
        background: white;
        box-sizing: border-box;
    }

.tc-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

    .tc-filter-grid label {
        font-size: 12px;
        font-weight: 600;
        color: #153b55;
    }

.tc-filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .tc-filter-buttons .tc-button {
        margin: 0;
        width: 100%;
    }

.tc-filter-reset {
    background: #e7edf2;
    color: #153b55;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

    .tc-filter-reset:hover {
        background: #d8e1e8;
    }

.tc-panel > .tc-filter-reset {
    margin-top: 10px;
}

.tc-page .tc-panel {
    min-width: 0;
}

.tc-page .tc-list {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
}

.tc-page .tc-item {
    padding: 12px;
    margin-bottom: 8px;
}

    .tc-page .tc-item small {
        overflow-wrap: anywhere;
    }

.tc-empty {
    display: block;
    text-align: center;
    color: #718096;
    padding: 25px 10px;
    font-size: 14px;
}

.tc-income {
    color: #16845e !important;
}

.tc-expense {
    color: #dc2626 !important;
}

@media (max-width: 700px) {

    .tc-summary-grid {
        gap: 8px;
    }

    .tc-summary-card {
        padding: 12px;
    }

        .tc-summary-card p {
            font-size: 11px;
        }

    .tc-summary-number {
        font-size: 17px;
    }
}

@media (max-width: 380px) {

    .tc-filter-grid {
        grid-template-columns: 1fr;
    }

    .tc-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* =================================
   DASHBOARD HOAN CHINH
================================= */

.dashboard-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.dashboard-welcome {
    margin-bottom: 18px;
}

    .dashboard-welcome h1 {
        font-size: 26px;
        color: #153b55;
    }

    .dashboard-welcome p {
        font-size: 13px;
    }

/* SO DU */

.db-balance-banner {
    background: linear-gradient( 120deg, #153b55, #205c70 );
    color: white;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

    .db-balance-banner p {
        font-size: 14px;
        color: #dce7ee;
        margin-bottom: 8px;
    }

    .db-balance-banner h2 {
        color: white;
        font-size: 34px;
        margin: 5px 0;
        overflow-wrap: anywhere;
    }

.db-month {
    color: #dce7ee;
    font-size: 12px;
}

.db-wallet-link {
    background: rgba(255, 255, 255, .15);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

    .db-wallet-link:hover {
        background: rgba(255, 255, 255, .25);
        color: white;
    }

/* THONG KE */

.db-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.db-stat-card {
    background: white;
    border: 1px solid #e4eae7;
    border-radius: 14px;
    padding: 18px;
    min-width: 0;
}

    .db-stat-card i {
        font-size: 24px;
        color: #16845e;
        margin-bottom: 10px;
    }

    .db-stat-card p {
        font-size: 13px;
        color: #718096;
        margin-bottom: 6px;
    }

    .db-stat-card h2 {
        color: #153b55;
        font-size: 23px;
        margin: 0;
        overflow-wrap: anywhere;
    }

.income-text {
    color: #16845e !important;
}

.expense-text {
    color: #dc2626 !important;
}

/* CHUC NANG */

.db-section-title {
    color: #153b55;
    font-size: 19px;
    margin: 15px 0 12px;
}

.db-action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.db-action {
    position: relative;
    background: white;
    border: 1px solid #e4eae7;
    border-radius: 14px;
    padding: 15px 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    color: #153b55;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

    .db-action > i {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e5f5ed;
        color: #16845e;
        font-size: 21px;
        border-radius: 12px;
    }

    .db-action:hover {
        transform: translateY(-3px);
        border-color: #16845e;
        box-shadow: 0 5px 15px #153b5510;
        color: #16845e;
    }

.db-notification-count {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #dc2626;
    color: white;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CANH BAO */

.db-warning {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 12px;
    margin-bottom: 18px;
}

    .db-warning > i {
        color: #d97706;
        font-size: 25px;
    }

.db-warning-content {
    flex: 1;
}

    .db-warning-content strong {
        color: #92400e;
        font-size: 14px;
    }

    .db-warning-content p {
        color: #92400e;
        font-size: 12px;
        margin: 5px 0 0;
    }

.db-warning a {
    color: #92400e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

/* GIAO DICH GAN DAY */

.db-recent-card {
    padding: 18px;
    margin-bottom: 15px;
}

.db-recent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .db-recent-heading h2 {
        color: #153b55;
        font-size: 18px;
        margin: 0;
    }

    .db-recent-heading a {
        color: #16845e;
        font-size: 12px;
        text-decoration: none;
        font-weight: 600;
    }

.db-recent-card .recent-transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f2;
}

    .db-recent-card .recent-transaction:last-child {
        border-bottom: none;
    }

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

    .db-transaction-left strong {
        font-size: 13px;
        color: #153b55;
    }

    .db-transaction-left p {
        font-size: 11px;
        color: #718096;
        margin: 4px 0 0;
    }

.db-transaction-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-icon-income {
    background: #e5f5ed;
    color: #16845e;
}

.db-icon-expense {
    background: #fef2f2;
    color: #dc2626;
}

.db-empty {
    display: block;
    text-align: center;
    color: #718096;
    padding: 20px;
    font-size: 13px;
}

/* DIEN THOAI */

@media (max-width: 900px) {

    .db-action-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .db-stat-card h2 {
        font-size: 19px;
    }
}

@media (max-width: 600px) {

    .dashboard-container {
        padding: 12px;
    }

    .dashboard-welcome h1 {
        font-size: 20px;
    }

    .db-balance-banner {
        padding: 18px;
        flex-wrap: wrap;
    }

        .db-balance-banner h2 {
            font-size: 28px;
        }

    .db-stat-grid {
        gap: 8px;
    }

    .db-stat-card {
        padding: 12px;
    }

        .db-stat-card p {
            font-size: 11px;
        }

        .db-stat-card h2 {
            font-size: 16px;
        }

    .db-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .db-action {
        font-size: 11px;
        min-height: 90px;
    }

    .db-warning {
        gap: 8px;
        padding: 12px;
    }
}
/* ==================================
   QUAN LY VI VA SO DU HANG THANG
================================== */

.wallet-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 24px;
    color: #153b55;
}

/* TIEU DE */

.wallet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

    .wallet-heading h1 {
        font-size: 28px;
        color: #153b55;
        margin: 0 0 5px;
    }

    .wallet-heading p {
        color: #718096;
        font-size: 14px;
        margin: 0;
    }

/* NUT QUAY LAI */

.wallet-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #153b55;
    color: white;
    padding: 10px 18px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    transition: 0.2s;
}

    .wallet-back:hover {
        background: #16845e;
        color: white;
    }

/* CHON THANG */

.wallet-page .balance-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .wallet-page .balance-filter .wallet-input {
        width: 210px;
        margin: 0;
        background: white;
    }

/* THONG KE SO DU */

.wallet-page .balance-grid {
    gap: 15px;
    margin-bottom: 18px;
}

.wallet-page .balance-card {
    padding: 18px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,.03);
}

.wallet-page .balance-number {
    font-size: 23px;
}

/* BO CUC HAI COT */

.wallet-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: stretch;
}

.wallet-page .wallet-panel {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #dfe8e4;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

.wallet-panel h2 {
    font-size: 19px;
    color: #153b55;
    margin: 0 0 14px;
}

.wallet-panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #153b55;
    margin-bottom: 5px;
}

/* O NHAP DU LIEU */

.wallet-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 9px 12px;
    margin-bottom: 12px;
    border: 1px solid #d6e1e7;
    border-radius: 9px;
    background: #f5f8f9;
    color: #153b55;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: 0.2s;
}

    .wallet-input:focus {
        background: white;
        border-color: #16845e;
        box-shadow: 0 0 0 3px rgba(22,132,94,.08);
    }

/* NUT LUU */

.wallet-button {
    display: block;
    width: 100%;
    padding: 11px 15px;
    border: none;
    border-radius: 9px;
    background: #16845e;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .wallet-button:hover {
        background: #106a49;
    }

    .wallet-button:disabled {
        background: #b5c7c0;
        cursor: not-allowed;
    }

/* THONG BAO */

.wallet-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #16845e;
}

    .wallet-message:empty {
        display: none;
    }

.wallet-page .balance-divider {
    border: none;
    border-top: 1px solid #e4eae7;
    margin: 18px 0;
}

/* DANH SACH VI */

.wallet-page .wallet-list {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.wallet-page .wallet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f5f8f7;
    border: 1px solid #dfe8e4;
    border-radius: 12px;
    transition: 0.2s;
}

.wallet-item:hover {
    border-color: #9acdb8;
}

.balance-wallet-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .balance-wallet-info strong {
        color: #153b55;
        font-size: 16px;
    }

        .balance-wallet-info strong i {
            color: #16845e;
            margin-right: 6px;
        }

    .balance-wallet-info p {
        font-size: 13px;
        margin: 5px 0;
    }

.balance-wallet-total {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    color: #16845e !important;
}

/* NUT SUA VA XOA */

.wallet-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wallet-edit,
.wallet-delete {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.wallet-edit {
    background: #e1edf9;
    color: #2463a5;
}

    .wallet-edit:hover {
        background: #2463a5;
        color: white;
    }

.wallet-delete {
    background: #fce6e6;
    color: #dc2626;
}

    .wallet-delete:hover {
        background: #dc2626;
        color: white;
    }

/* KHI CHUA CO VI */

.wallet-list > span[id$="lblEmpty"] {
    display: block;
    text-align: center;
    padding: 65px 15px;
    color: #718096;
    font-size: 14px;
    background: #f8fafb;
    border: 1px dashed #d6e1e7;
    border-radius: 12px;
}

    .wallet-list > span[id$="lblEmpty"]::before {
        content: "\f555";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: block;
        width: 65px;
        height: 65px;
        line-height: 65px;
        margin: 0 auto 15px;
        border-radius: 50%;
        background: #e4f3eb;
        color: #16845e;
        font-size: 28px;
    }

/* AN FOOTER TRONG TRANG QUAN LY VI */

body:has(.wallet-page) footer {
    display: none;
}

/* GIAO DIEN MAY TINH BANG */

@media (max-width: 900px) {

    .wallet-page .balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-page .balance-number {
        font-size: 20px;
    }

    .wallet-page {
        padding: 18px;
    }
}

/* GIAO DIEN DIEN THOAI */

@media (max-width: 700px) {

    .wallet-layout {
        grid-template-columns: 1fr;
    }

    .wallet-page {
        padding: 15px;
    }

        .wallet-page .wallet-panel {
            padding: 16px;
        }

    .wallet-heading h1 {
        font-size: 23px;
    }

    .wallet-heading p {
        font-size: 12px;
    }

    .wallet-back {
        padding: 9px 12px;
        font-size: 12px;
    }

    .wallet-page .balance-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {

    .wallet-page .balance-grid {
        gap: 10px;
    }

    .wallet-page .balance-number {
        font-size: 17px;
    }

    .wallet-page .balance-filter {
        flex-wrap: wrap;
    }

    .wallet-page .wallet-item {
        flex-wrap: wrap;
    }

    .wallet-actions {
        width: 100%;
        justify-content: flex-end;
    }
}