:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #172033;
    --muted: #667085;
    --line: #dde6f2;
    --primary: #3157d5;
    --primary-dark: #203b98;
    --primary-soft: #e8eeff;
    --green: #159947;
    --yellow: #c98405;
    --red: #d92d20;
    --radius: 8px;
    --shadow: 0 20px 55px rgba(23, 32, 51, 0.10);
}

[data-theme="escuro"] {
    --bg: #111827;
    --surface: #172033;
    --surface-soft: #22314d;
    --text: #eef4ff;
    --muted: #aab7cf;
    --line: #2b3a58;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 18%, rgba(21, 153, 71, 0.30), transparent 28%),
        linear-gradient(135deg, rgba(8, 36, 96, 0.96), rgba(16, 24, 40, 0.98)),
        url("../img/auth-pattern.svg");
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 560px);
    gap: 56px;
    min-height: 100vh;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 36px;
}

.auth-brand {
    color: #fff;
    max-width: 640px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    box-shadow: var(--shadow);
}

.auth-logo {
    display: block;
    width: min(330px, 100%);
    height: auto;
    margin-bottom: 34px;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.18));
}

.auth-brand h1 {
    max-width: 580px;
    margin: 0 0 14px;
    font-size: clamp(2.25rem, 4vw, 4.35rem);
    line-height: 1;
    letter-spacing: 0;
}

.auth-brand p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    width: min(100%, 470px);
    margin-top: 32px;
}

.auth-benefits div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.auth-benefits span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 950;
}

.auth-benefits strong {
    color: #fff;
}

.auth-benefits small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.auth-install-button {
    margin-top: 18px;
}

.auth-card {
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(221, 230, 242, 0.86);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(6, 18, 44, 0.24);
}

.auth-card-logo {
    display: none;
    margin-bottom: 22px;
}

.auth-card-logo img {
    width: min(250px, 80%);
    height: auto;
}

.mobile-install-callout {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    background: #f4f8ff;
}

.mobile-install-callout strong,
.mobile-install-callout small {
    display: block;
}

.mobile-install-callout small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.4;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.form-header h2,
.navbar h2,
.panel h3 {
    margin: 0;
}

.form-header p {
    max-width: 420px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.form {
    display: grid;
    gap: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-form-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #f7faff;
}

.auth-form-section span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 950;
}

.auth-form-section strong {
    display: block;
    color: var(--text);
    font-size: 0.94rem;
}

.auth-form-section small {
    color: var(--muted);
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.auth-card input,
.auth-card select {
    min-height: 52px;
    background: #fbfdff;
}

input:disabled {
    opacity: 0.72;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.12);
    outline: none;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(49, 87, 213, 0.22);
}

.button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.button-ghost {
    background: var(--surface-soft);
    color: var(--primary);
}

.button-light {
    background: #fff;
    color: var(--primary-dark);
}

.button-glass {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.auth-switch {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 800;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
}

.auth-legal-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}

.auth-legal-note a {
    color: var(--primary);
    font-weight: 850;
}

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 87, 213, 0.16), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(21, 153, 71, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #ffffff 100%);
}

.landing-page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 22px 0 44px;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
}

.landing-logo img {
    width: min(260px, 48vw);
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.landing-nav-actions,
.landing-actions,
.landing-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-nav-actions > a:first-child {
    color: #315174;
    font-weight: 800;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(380px, 520px);
    align-items: center;
    gap: 58px;
    min-height: calc(100vh - 140px);
    padding: 38px 0 28px;
}

.landing-copy h1 {
    max-width: 780px;
    margin: 14px 0 18px;
    color: #082460;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.landing-copy > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 0 28px;
    color: #49627f;
    font-size: 1.16rem;
    line-height: 1.75;
}

.landing-actions {
    margin-bottom: 24px;
}

.landing-price-pill {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 12px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(21, 153, 71, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.08);
}

.landing-price-pill span {
    color: #315174;
    font-size: 0.82rem;
    font-weight: 850;
}

.landing-price-pill strong {
    grid-row: span 2;
    color: var(--green);
    font-size: 2.15rem;
    line-height: 1;
}

.landing-price-pill small {
    color: #5b6f89;
}

.app-install-button {
    background: #e9f8ef;
    color: #087333;
}

.install-hint {
    max-width: 560px;
    margin: -8px 0 22px;
    color: #49627f;
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-install-app].is-hidden {
    display: none;
}

[data-install-app].is-ready {
    box-shadow: 0 12px 30px rgba(21, 153, 71, 0.20);
}

.landing-start {
    position: relative;
    overflow: hidden;
}

.landing-start::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -70%;
    width: 54%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    animation: ctaSweep 3.4s ease-in-out infinite;
}

.landing-trust span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(49, 87, 213, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #315174;
    font-size: 0.88rem;
    font-weight: 800;
}

.landing-stage {
    position: relative;
    min-height: 620px;
    display: grid;
    place-items: center;
    perspective: 1000px;
}

.landing-phone {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(100%, 410px);
    padding: 18px;
    border: 1px solid rgba(8, 36, 96, 0.10);
    border-radius: 34px;
    background: #0b1f4d;
    box-shadow: 0 32px 80px rgba(8, 36, 96, 0.24);
    overflow: hidden;
    animation: phoneFloat 5.8s ease-in-out infinite;
    transform-style: preserve-3d;
}

.landing-phone::before {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.18);
}

.phone-top,
.phone-grid,
.phone-list div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.phone-top {
    color: #dbe8ff;
    font-weight: 850;
}

.phone-top span {
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.phone-top small {
    color: #86efac;
    font-weight: 900;
}

.phone-card,
.phone-alert,
.phone-grid article,
.phone-list {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.phone-card {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.phone-card.primary {
    background: linear-gradient(135deg, rgba(49, 87, 213, 0.96), rgba(21, 153, 71, 0.90));
}

.phone-card span,
.phone-grid span,
.phone-list span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
    font-weight: 750;
}

.phone-card strong {
    font-size: 2.55rem;
    line-height: 1;
}

.phone-card small {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.phone-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    color: #ffe8a3;
    font-size: 0.92rem;
    font-weight: 800;
}

.alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f6c343;
    box-shadow: 0 0 0 5px rgba(246, 195, 67, 0.18);
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.phone-grid article {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.phone-grid strong {
    color: #fff;
    font-size: 1.18rem;
}

.phone-list {
    display: grid;
    gap: 4px;
    padding: 10px 14px;
}

.phone-list div {
    min-height: 38px;
}

.phone-list strong {
    color: #d9ffe6;
}

.form-orbit-card {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 5px;
    width: 245px;
    padding: 16px;
    border: 1px solid rgba(49, 87, 213, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 55px rgba(23, 32, 51, 0.16);
    backdrop-filter: blur(14px);
    animation: pullCard 6.8s ease-in-out infinite;
}

.form-orbit-card span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 950;
}

.form-orbit-card strong {
    color: #10254f;
    line-height: 1.2;
}

.form-orbit-card small {
    color: #5b6f89;
    line-height: 1.45;
}

.form-orbit-card.card-one {
    top: 18px;
    left: 0;
}

.form-orbit-card.card-two {
    top: 208px;
    right: -8px;
    animation-delay: 0.9s;
}

.form-orbit-card.card-three {
    left: 18px;
    bottom: 32px;
    animation-delay: 1.8s;
}

.landing-person {
    position: absolute;
    right: 14px;
    bottom: 78px;
    z-index: 5;
    width: 126px;
    height: 190px;
    animation: personBreathe 4s ease-in-out infinite;
}

.person-head {
    position: absolute;
    left: 37px;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f4bf91;
    box-shadow: inset -8px -8px 0 rgba(147, 76, 35, 0.12);
}

.person-body {
    position: absolute;
    left: 22px;
    top: 62px;
    width: 84px;
    height: 112px;
    border-radius: 32px 32px 18px 18px;
    background: linear-gradient(180deg, #3157d5, #12377c);
    box-shadow: 0 18px 34px rgba(8, 36, 96, 0.24);
}

.person-arm {
    position: absolute;
    top: 82px;
    width: 22px;
    height: 84px;
    border-radius: 999px;
    background: #f4bf91;
    transform-origin: top center;
}

.person-arm.left {
    left: 8px;
    transform: rotate(24deg);
    animation: leftArm 3.6s ease-in-out infinite;
}

.person-arm.right {
    right: 4px;
    transform: rotate(-36deg);
    animation: rightArm 3.6s ease-in-out infinite;
}

.landing-transition {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(8, 36, 96, 0.88);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.landing-transition.active {
    opacity: 1;
    pointer-events: auto;
}

.landing-transition > div {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 28px;
    text-align: center;
}

.loader-ring {
    width: 58px;
    height: 58px;
    border: 5px solid rgba(255, 255, 255, 0.22);
    border-top-color: #86efac;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes ctaSweep {
    0%, 55% {
        left: -70%;
    }
    100% {
        left: 120%;
    }
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(-12px) rotateX(2deg) rotateY(3deg);
    }
}

@keyframes pullCard {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    45% {
        transform: translate3d(18px, -8px, 40px) scale(1.03);
    }
    72% {
        transform: translate3d(-8px, 8px, 20px) scale(0.99);
    }
}

@keyframes personBreathe {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes leftArm {
    0%, 100% {
        transform: rotate(24deg);
    }
    50% {
        transform: rotate(6deg);
    }
}

@keyframes rightArm {
    0%, 100% {
        transform: rotate(-36deg);
    }
    50% {
        transform: rotate(-18deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-start::after,
    .landing-phone,
    .form-orbit-card,
    .landing-person,
    .person-arm,
    .loader-ring {
        animation: none;
    }
}

.landing-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.landing-problems article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(23, 32, 51, 0.08);
}

.landing-problems span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 950;
}

.landing-problems h2 {
    margin: 18px 0 10px;
    color: #10254f;
    font-size: 1.2rem;
}

.landing-problems p {
    margin: 0;
    color: #5b6f89;
    line-height: 1.65;
}

.landing-explore,
.landing-offer {
    margin-top: 24px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.section-heading h2,
.landing-offer h2 {
    margin: 0;
    color: #082460;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.landing-offer p {
    color: #5b6f89;
    line-height: 1.65;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.explore-grid article {
    min-height: 240px;
    padding: 22px;
    border: 1px solid rgba(221, 230, 242, 0.92);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(23, 32, 51, 0.07);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #e9f8ef;
    color: #087333;
    font-size: 0.78rem;
    font-weight: 950;
}

.explore-grid h3 {
    margin: 18px 0 10px;
    color: #10254f;
    font-size: 1.1rem;
}

.explore-grid p {
    margin: 0;
    color: #5b6f89;
    line-height: 1.62;
}

.landing-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: center;
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    background: #082460;
    color: #fff;
    overflow: hidden;
}

.landing-offer h2 {
    color: #fff;
}

.landing-offer p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
}

.landing-offer .eyebrow {
    color: #86efac;
}

.offer-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.offer-card span {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 850;
}

.offer-card strong {
    color: #86efac;
    font-size: 3rem;
    line-height: 1;
}

.offer-card small {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(8, 36, 96, 0.12);
    color: #5b6f89;
    font-size: 0.92rem;
    line-height: 1.5;
}

.landing-footer div {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.landing-footer a {
    color: #082460;
    font-weight: 850;
}

.legal-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 54px;
}

.legal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.legal-card {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(221, 230, 242, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(23, 32, 51, 0.10);
}

.legal-card h1 {
    margin: 0 0 12px;
    color: #082460;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
}

.legal-intro {
    max-width: 760px;
    margin: 0 0 28px;
    color: #49627f;
    font-size: 1.08rem;
    line-height: 1.7;
}

.legal-card section {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.legal-card h2 {
    margin: 0 0 10px;
    color: #10254f;
    font-size: 1.18rem;
}

.legal-card p {
    margin: 0;
    color: #5b6f89;
    line-height: 1.72;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.alert {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.alert-success {
    background: #e9f8ef;
    color: #087333;
}

.alert-error {
    background: #fff0ed;
    color: #b42318;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 16px;
    background: #101828;
    color: #fff;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sidebar-logo img {
    width: min(210px, 100%);
    height: auto;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
}

.side-nav {
    display: grid;
    gap: 5px;
}

.side-nav p {
    margin: 16px 10px 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 750;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav a span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.68rem;
    font-weight: 900;
}

.side-nav a.active,
.side-nav a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    transform: translateX(2px);
}

.side-nav a.active span,
.side-nav a:hover span {
    background: var(--primary);
    color: #fff;
}

.main-shell {
    min-width: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 18px 34px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 900;
}

.icon-button.active {
    border-color: #86efac;
    background: #e9f8ef;
    color: #087333;
}

.notify-enable {
    font-size: 1rem;
}

.navbar-quick {
    min-height: 42px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.privacy-export {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.onboarding-banner h3 {
    margin: 0 0 8px;
}

.onboarding-flow {
    gap: 18px;
}

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

.onboarding-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.onboarding-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.onboarding-slides {
    max-width: 960px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.slide-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.slide-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--green));
    transition: width 0.25s ease;
}

.onboarding-slide {
    display: none;
    min-height: 430px;
    padding: 18px 2px 8px;
}

.onboarding-slide.active {
    display: grid;
    align-content: start;
    gap: 18px;
}

.onboarding-slide h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1.1;
}

.slide-step {
    width: max-content;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

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

.choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: block;
    min-height: 82px;
    padding: 16px 16px 16px 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.35;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.choice-card:hover {
    transform: translateY(-2px);
}

.choice-card input {
    position: absolute;
    top: 18px;
    left: 16px;
    width: 18px;
    min-height: 18px;
}

.choice-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.big-input {
    max-width: 520px;
}

.big-input input {
    min-height: 58px;
    font-size: 1.2rem;
    font-weight: 850;
}

.big-input small {
    color: var(--muted);
}

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

.wallet-balance-grid label {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.wallet-balance-grid span {
    color: var(--muted);
    font-weight: 900;
}

.onboarding-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

.onboarding-nav [data-slide-submit] {
    display: none;
}

.budget-starter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
}

.advice-hero .hero-pill {
    min-width: 220px;
}

.advice-hero .hero-pill span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.advice-list {
    display: grid;
    gap: 12px;
}

.advice-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.advice-item strong {
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.advice-item span {
    color: var(--muted);
    line-height: 1.5;
}

.advice-item.avoid strong {
    background: #fff0ed;
    color: #b42318;
}

.advice-item.action strong {
    background: #e9f8ef;
    color: #087333;
}

.advice-item.habit strong {
    background: #eff6ff;
    color: #1d4ed8;
}

.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--primary-dark);
    font-weight: 900;
}

.content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 34px 96px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 30px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(49, 87, 213, 0.96), rgba(8, 115, 51, 0.86)),
        #3157d5;
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.65rem);
    letter-spacing: 0;
}

.dashboard-hero strong {
    display: block;
    margin: 10px 0;
    font-size: clamp(2.6rem, 8vw, 5.4rem);
    line-height: 1;
}

.dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-pill {
    align-self: flex-start;
    min-width: 150px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-pill strong {
    margin: 0;
    font-size: 2rem;
}

.hero-pill small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.daily-focus-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.focus-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.focus-card:hover,
.stat-card:hover,
.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}

.focus-card span,
.focus-card small {
    color: var(--muted);
    font-weight: 800;
}

.focus-card strong {
    font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.focus-card.positive strong {
    color: var(--green);
}

.focus-card.danger strong {
    color: var(--red);
}

.stat-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    font-size: 1.7rem;
}

.stat-card small {
    color: var(--muted);
}

.stat-card.positive strong {
    color: var(--green);
}

.stat-card.warning strong {
    color: var(--yellow);
}

.stat-card.danger strong {
    color: var(--red);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-bottom: 18px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.wallet-list {
    display: grid;
    gap: 10px;
}

.wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg);
}

.wallet-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wallet-row span b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
}

.tip-text {
    color: var(--muted);
    line-height: 1.6;
}

.soft-alert {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 750;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shortcut-grid a {
    padding: 16px;
    border: 1px dashed #b8c7de;
    border-radius: 14px;
    background: var(--bg);
    color: var(--primary);
    font-weight: 850;
    text-align: center;
}

.shortcut-grid a:hover {
    border-style: solid;
    background: var(--surface-soft);
}

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

.page-header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-panel {
    max-width: 860px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.money-positive {
    color: var(--green);
    font-weight: 900;
}

.money-danger {
    color: var(--red);
    font-weight: 900;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-actions a,
.row-actions button,
.category-row button,
.wallet-edit-row button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form select {
    min-width: 140px;
    min-height: 40px;
}

.empty-state {
    padding: 22px;
    color: var(--muted);
    text-align: center;
}

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

.quick-mobile-shell {
    margin-bottom: 18px;
}

.quick-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.quick-topline span,
.quick-topline a {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

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

.quick-favorite-card button {
    display: grid;
    gap: 7px;
    width: 100%;
    min-height: 138px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-favorite-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(23, 32, 51, 0.10);
}

.quick-favorite-card button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.quick-favorite-card .quick-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.quick-favorite-card strong {
    font-size: 1.35rem;
}

.quick-favorite-card small {
    color: var(--muted);
    font-weight: 800;
}

.favorite-manage-list {
    display: grid;
    gap: 10px;
}

.favorite-manage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
}

.favorite-manage-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.favorite-manage-row button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: #fff0ed;
    color: #b42318;
    cursor: pointer;
    font-weight: 850;
}

.quick-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
}

.quick-card button {
    display: grid;
    gap: 6px;
    width: 100%;
    min-height: 96px;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #087333);
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.quick-card button span {
    font-weight: 850;
}

.quick-card button strong {
    font-size: 1.55rem;
}

.category-list {
    display: grid;
    gap: 10px;
}

.category-row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
}

.category-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.category-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.total-pill {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
}

.total-pill strong {
    color: var(--green);
}

.wallet-edit-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
}

.wallet-edit-row input,
.wallet-edit-row select {
    min-height: 40px;
}

.budget-input-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.envelope-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.envelope-card {
    display: grid;
    gap: 10px;
    min-height: 176px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.envelope-card b {
    font-size: 1.55rem;
}

.envelope-card small,
.envelope-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.45;
}

.envelope-card.atencao {
    border-color: #f7c76b;
    background: #fff9ed;
}

.envelope-card.ultrapassado {
    border-color: #ffb4aa;
    background: #fff4f2;
}

.envelope-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.envelope-top span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.spend-impact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.form-impact {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.spend-impact-panel h3 {
    margin: 0 0 6px;
}

.impact-preview {
    display: grid;
    gap: 5px;
    min-width: 240px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.impact-preview span,
.impact-preview small {
    color: var(--muted);
    font-weight: 800;
}

.impact-preview strong {
    color: var(--primary);
    font-size: 1.6rem;
}

.tight-mode-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border-color: #f7c76b;
    background: #fff9ed;
}

.tight-mode-panel.active,
.tight-mode-panel:has(.impact-preview) {
    border-color: #ffb4aa;
    background: #fff4f2;
}

.tight-mode-panel h3 {
    margin: 0 0 6px;
}

.tight-mode-panel > strong {
    color: var(--red);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary);
    font-weight: 850;
}

.pill-list.danger span {
    background: #fff0ed;
    color: #b42318;
}

.chart-panel {
    min-height: 320px;
}

.report-chart {
    display: block;
    width: 100%;
    height: 240px;
}

.report-chart.wide {
    height: 260px;
}

.pin-form input {
    font-size: 2rem;
    letter-spacing: 0.35rem;
    text-align: center;
}

.progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4eaf5;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
    transition: width 0.35s ease;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-badge.dentro {
    background: #e9f8ef;
    color: #087333;
}

.status-badge.atencao {
    background: #fff7e6;
    color: #a15c00;
}

.status-badge.ultrapassado {
    background: #fff0ed;
    color: #b42318;
}

.stat-mini-list,
.budget-preview {
    display: grid;
    gap: 12px;
}

.stat-mini-list div,
.budget-preview div {
    display: grid;
    gap: 7px;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.stat-mini-list span,
.budget-preview span {
    color: var(--muted);
    font-weight: 800;
}

.recurring-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.recurring-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.recurring-row button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
}

.list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.list-card.vertical {
    grid-template-columns: 1fr;
}

.list-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.inline-form {
    margin-top: 12px;
}

.notification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.notification-row.read {
    opacity: 0.68;
}

.notification-row small,
.notification-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.notification-row button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.report-bars {
    display: grid;
    gap: 14px;
}

.report-bars > div {
    display: grid;
    gap: 7px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
}

.report-bars span {
    color: var(--muted);
    font-weight: 850;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.comparison-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    background: var(--bg);
}

.comparison-card span,
.comparison-card small,
.monthly-change-row small {
    color: var(--muted);
}

.comparison-card strong {
    font-size: 1.35rem;
}

.comparison-change {
    font-weight: 900;
}

.comparison-change.good {
    color: var(--green);
}

.comparison-change.bad {
    color: var(--red);
}

.monthly-change-list {
    display: grid;
    gap: 10px;
}

.monthly-change-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg);
}

.monthly-change-row small {
    display: block;
    margin-top: 4px;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.weekly-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    background: var(--bg);
}

.weekly-card span,
.weekly-card small {
    color: var(--muted);
    font-weight: 800;
}

.weekly-card strong {
    font-size: 1.35rem;
}

.weekly-days {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.weekly-days > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.weekly-days span {
    color: var(--muted);
    font-weight: 850;
}

.weekly-days strong {
    text-align: right;
}

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

.tip-card h3 {
    margin: 0 0 10px;
}

.tip-card p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.mobile-menu {
    display: none;
}

.floating-add {
    position: fixed;
    right: 22px;
    bottom: 88px;
    z-index: 22;
    display: none;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 35px rgba(49, 87, 213, 0.35);
}

.floating-add span {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.recent-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
}

.recent-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.recent-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
}

.recent-icon.income {
    background: #e9f8ef;
    color: #087333;
}

.recent-icon.expense {
    background: #fff0ed;
    color: #b42318;
}

.error-page {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    text-align: center;
}

.error-page .brand-mark {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 34px;
        padding-top: 24px;
    }

    .landing-phone {
        width: min(100%, 430px);
        margin: 0 auto;
    }

    .landing-stage {
        min-height: 710px;
    }

    .form-orbit-card.card-one {
        left: 24px;
    }

    .form-orbit-card.card-two {
        right: 24px;
    }

    .form-orbit-card.card-three {
        left: 36px;
    }

    .landing-problems {
        grid-template-columns: 1fr;
    }

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

    .landing-offer {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        max-width: 620px;
        max-height: none;
        margin: 0 auto;
    }

    .auth-card-logo {
        display: block;
    }

    .mobile-install-callout {
        display: flex;
    }

    .auth-brand h1 {
        font-size: 2.7rem;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .stat-grid,
    .daily-focus-grid,
    .compact-grid,
    .dashboard-grid,
    .shortcut-grid,
    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-grid-app {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .recurring-row {
        grid-template-columns: 1fr 1fr;
    }

    .list-card,
    .notification-row,
    .tip-grid,
    .comparison-grid,
    .weekly-grid,
    .envelope-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-menu {
        position: fixed;
        right: 14px;
        bottom: 14px;
        left: 14px;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .mobile-menu a {
        min-height: 44px;
        display: grid;
        place-items: center;
        gap: 2px;
        border-radius: 8px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 850;
    }

    .mobile-menu .nav-icon {
        display: grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--bg);
        font-size: 0.72rem;
        font-weight: 900;
    }

    .mobile-menu a.active,
    .mobile-menu .mobile-add {
        background: var(--primary);
        color: #fff;
    }

    .mobile-menu a.active .nav-icon,
    .mobile-menu .mobile-add .nav-icon {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

    .floating-add {
        display: grid;
    }
}

@media (max-width: 640px) {
    .landing-page {
        width: min(100% - 28px, 1180px);
        padding-top: 14px;
    }

    .landing-nav {
        align-items: flex-start;
    }

    .landing-nav-actions {
        justify-content: flex-end;
        gap: 8px;
    }

    .landing-nav-actions .app-install-button {
        display: none;
    }

    .landing-nav-actions .button {
        min-height: 42px;
        padding: 0 12px;
    }

    .landing-copy h1 {
        font-size: 2.7rem;
        line-height: 1;
    }

    .landing-copy > p:not(.eyebrow) {
        font-size: 1rem;
    }

    .landing-actions .button {
        width: 100%;
    }

    .landing-price-pill {
        width: 100%;
        grid-template-columns: 1fr auto;
    }

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

    .landing-offer {
        padding: 24px;
        border-radius: 22px;
    }

    .landing-footer div,
    .legal-nav,
    .legal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-install-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-phone {
        border-radius: 24px;
        padding: 14px;
    }

    .landing-stage {
        min-height: 640px;
        overflow: hidden;
    }

    .form-orbit-card {
        width: min(86%, 260px);
        padding: 13px;
    }

    .form-orbit-card.card-one {
        top: 0;
        left: 0;
    }

    .form-orbit-card.card-two {
        top: 154px;
        right: 0;
    }

    .form-orbit-card.card-three {
        left: 0;
        bottom: 18px;
    }

    .landing-person {
        right: 0;
        bottom: 52px;
        transform: scale(0.82);
        transform-origin: right bottom;
    }

    .phone-card strong {
        font-size: 2.05rem;
    }

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

    .auth-shell {
        min-height: 100vh;
        padding: 14px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    .form-grid,
    .stat-grid,
    .daily-focus-grid,
    .compact-grid,
    .dashboard-grid,
    .shortcut-grid,
    .quick-grid,
    .quick-grid-app {
        grid-template-columns: 1fr;
    }

    .auth-form-section {
        align-items: flex-start;
    }

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

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

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

    .privacy-export {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .budget-starter-grid {
        grid-template-columns: 1fr;
    }

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

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

    .budget-input-list,
    .choice-grid,
    .choice-grid.compact,
    .wallet-balance-grid,
    .envelope-grid,
    .recurring-row,
    .list-card,
    .notification-row,
    .tip-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .spend-impact-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .tight-mode-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .impact-preview {
        min-width: 0;
    }

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

    .monthly-change-row {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-days > div {
        grid-template-columns: 1fr;
    }

    .weekly-days strong {
        text-align: left;
    }

    .navbar {
        align-items: flex-start;
        padding: 16px;
    }

    .navbar-quick {
        display: none;
    }

    .navbar-actions {
        gap: 8px;
    }

    .button-ghost {
        padding: 0 12px;
    }

    .content {
        padding: 20px 16px 100px;
    }

    .dashboard-hero {
        display: grid;
        padding: 22px;
    }

    .recent-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .recent-row b {
        grid-column: 2;
    }
}
