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

body {
    font-family: Arial, sans-serif;
    background: #f6f8fc;
    color: #172554;
    line-height: 1.6;
}

header {
    background: #172554;
    color: white;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 25px;
    font-weight: bold;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #60a5fa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: bold;
    padding: 9px 14px;
    border-radius: 9px;
}

nav a:hover,
nav a.active {
    background: #263a73;
    color: white;
}

.container {
    width: 86%;
    max-width: 1150px;
    margin: 55px auto;
}

.hero {
    min-height: 470px;
    padding: 70px 10%;
    background: linear-gradient(135deg, #dbeafe, #eff6ff 60%, #e0f2fe);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
}

.small-title {
    color: #2563eb;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #2563eb;
}

.hero p {
    color: #475569;
    font-size: 18px;
    max-width: 580px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 9px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-light {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-light:hover {
    background: #eff6ff;
}

.hero-box {
    background: #172554;
    color: white;
    padding: 38px;
    border-radius: 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(23, 37, 84, .18);
    position: relative;
    overflow: hidden;
}

.hero-box::after {
    content: "";
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #2563eb;
    opacity: .25;
    position: absolute;
    right: -55px;
    top: -55px;
}

.hero-box p {
    color: #bfdbfe;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.hero-box h2 {
    font-size: 42px;
    margin: 5px 0;
    position: relative;
    z-index: 1;
}

.hero-box span {
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
}

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

.card {
    background: white;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, .05);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.card p {
    color: #64748b;
}

.card h2 {
    font-size: 27px;
}

.income-box,
.form-box,
.report-box {
    background: white;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    margin-bottom: 28px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, .05);
}

.income-box h2,
.form-box h2,
.report-box h2 {
    margin-bottom: 7px;
}

.income-box p {
    color: #64748b;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 15px;
    background: white;
    color: #172554;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #2563eb;
}

.input-row input {
    max-width: 320px;
}

.about {
    margin-top: 55px;
}

.about h2 {
    text-align: center;
    margin-bottom: 25px;
}

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

.about-grid article {
    background: white;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    text-align: center;
}

.about-grid h3 {
    margin-bottom: 7px;
}

.about-grid p {
    color: #64748b;
}

.page-title {
    background: linear-gradient(135deg, #172554, #2563eb);
    color: white;
    padding: 55px 20px;
    text-align: center;
}

.page-title h1 {
    font-size: 43px;
    margin-bottom: 8px;
}

.page-title p {
    color: #dbeafe;
}

.form-box form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
}

.form-box form label {
    font-weight: bold;
    font-size: 14px;
}

.form-box form .btn {
    width: fit-content;
    margin-top: 10px;
    grid-column: 1 / -1;
}

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

.list-head input {
    max-width: 260px;
}

.expense-item {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 17px 5px;
    border-bottom: 1px solid #e2e8f0;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-item strong {
    font-size: 16px;
}

.category {
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 10px;
    border-radius: 20px;
    width: fit-content;
    font-size: 13px;
    font-weight: bold;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 7px 11px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.delete-btn:hover {
    background: #fecaca;
}

.category-row {
    margin-top: 22px;
}

.category-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.category-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.category-bar div {
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
}

.empty {
    color: #64748b;
    text-align: center;
    padding: 25px;
}

footer {
    background: #172554;
    color: #cbd5e1;
    text-align: center;
    padding: 24px;
    margin-top: 70px;
}

@media (max-width: 800px) {
    header {
        flex-direction: column;
        padding: 16px 5%;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 7%;
    }

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

    .cards,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .form-box form {
        grid-template-columns: 1fr;
    }

    .form-box form .btn {
        grid-column: auto;
    }

    .expense-item {
        grid-template-columns: 1fr 1fr;
    }

    .list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .list-head input {
        max-width: none;
    }
}
