
:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172b3d;
    background: #f4f7fa;
    font-synthesis: none;
    --navy: #172b3d;
    --green: #16794a;
    --green-light: #e8f7ee;
    --red: #d94a43;
    --border: #e8edf2;
    --muted: #83909d;
    --surface: #ffffff;
    --radius: 18px;
    --shadow: 0 8px 28px rgba(23,43,61,.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-bottom: 88px;
    background: #f4f7fa;
}

a {
    color: inherit;
}

.topbar {
    min-height: 76px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar > div {
    display: grid;
    gap: 4px;
}

.topbar strong {
    font-size: 17px;
    font-weight: 750;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #7b8a99;
    font-weight: 800;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: auto;
    padding: 22px 16px 35px;
}

.hero {
    background: linear-gradient(135deg, #172b3d, #25445b);
    color: white;
    border-radius: 23px;
    padding: 26px 23px;
    box-shadow: 0 12px 28px rgba(23,43,61,.14);
}

.hero span,
.hero small {
    color: #c4d0da;
}

.hero h1 {
    font-size: clamp(29px, 7vw, 36px);
    letter-spacing: -1.2px;
    margin: 12px 0;
}

.hero small {
    font-size: 12px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 2px 14px;
}

.section-heading h2 {
    font-size: 17px;
    margin: 0;
    font-weight: 750;
}

.account-list {
    display: grid;
    gap: 11px;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: var(--shadow);
}

.account-dot {
    width: 11px;
    height: 40px;
    border-radius: 8px;
}

.account-info {
    display: grid;
    gap: 5px;
    flex: 1;
}

.account-info strong {
    font-size: 14px;
}

.account-info span,
.muted {
    font-size: 12px;
    color: var(--muted);
}

.account-card > b {
    font-size: 14px;
    white-space: nowrap;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.action-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 16px 8px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    font-size: 12px;
    transition: transform .2s, box-shadow .2s;
}

.action-tile:active {
    transform: scale(.97);
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.income {
    background: var(--green-light);
    color: #15934c;
}

.expense {
    background: #fff0ef;
    color: var(--red);
}

.transfer {
    background: #f0edff;
    color: #7455c7;
}

.notice {
    margin-top: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 17px;
    font-size: 13px;
    box-shadow: var(--shadow);
}

.notice p {
    color: #738191;
    line-height: 1.6;
    margin-bottom: 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 8px env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    z-index: 20;
}

.bottom-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: #8a97a4;
    text-decoration: none;
    font-size: 21px;
    min-width: 60px;
}

.bottom-nav a span {
    font-size: 10px;
}

.bottom-nav a.active {
    color: var(--green);
    font-weight: 750;
}

.icon-button {
    border: 0;
    background: #eef2f5;
    border-radius: 13px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
}

/* Formulários */

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth-card form {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.auth-card label,
.container > form label {
    display: block;
    font-size: 12px;
    font-weight: 750;
    color: #405365;
    margin: 12px 0 5px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 49px;
    border: 1px solid #dce4eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fbfcfd;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #16794a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22,121,74,.10);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #a2adb7;
}

.primary {
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #16794a, #19945c);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    margin-top: 15px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform .2s, filter .2s;
}

.primary:hover {
    filter: brightness(1.05);
}

.primary:active {
    transform: scale(.98);
}

.full {
    width: 100%;
}

.alert {
    background: #fff0ef;
    color: #b8322b;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    margin: 15px 0;
    border: 1px solid #f8d5d2;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-page .auth-card {
    max-width: 390px;
}

.auth-page .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--navy);
    color: white;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 800;
}

.auth-page .auth-card h1 {
    margin: 18px 0 4px;
}

.auth-page .auth-card form {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.auth-page .auth-card label {
    margin-top: 8px;
}

@media (min-width: 700px) {
    body {
        padding-bottom: 0;
    }

    .container {
        padding-top: 32px;
    }

    .bottom-nav {
        position: static;
        min-height: 68px;
        max-width: 680px;
        margin: 20px auto;
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .account-card,
    .action-tile {
        transition: transform .2s, box-shadow .2s;
    }

    .account-card:hover,
    .action-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(23,43,61,.08);
    }
}

@media (max-width: 380px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-card {
        padding: 19px;
    }

    .account-card {
        padding: 13px;
    }

    .account-card > b {
        font-size: 12px;
    }
}
