:root {
    --ink: #14231e;
    --muted: #64736d;
    --green-950: #063d30;
    --green-900: #0b5d47;
    --green-700: #168064;
    --mint: #c9f3df;
    --mint-light: #effbf5;
    --cream: #fbfaf6;
    --white: #ffffff;
    --line: #dfe8e3;
    --orange: #f5a524;
    --red: #db5c58;
    --shadow: 0 24px 70px rgba(17, 68, 53, .13);
    --radius: 24px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--white); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; height: 78px; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(251,250,246,.93); box-shadow: 0 1px 0 rgba(16,74,57,.08); backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green-950); font-size: 20px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.brand > span:last-child > span { color: var(--green-700); }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; color: var(--white); background: var(--green-900); border-radius: 11px 11px 11px 4px; font-size: 19px; box-shadow: 0 7px 18px rgba(11,93,71,.18); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; color: #43534d; }
.main-nav > a { transition: color .2s ease; }
.main-nav > a:hover { color: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--white); cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--green-950); border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 13px; font-weight: 750; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--green-900); box-shadow: 0 12px 28px rgba(11,93,71,.2); }
.btn-primary:hover { background: var(--green-950); box-shadow: 0 15px 34px rgba(11,93,71,.28); }
.btn-ghost { min-height: 42px; padding-inline: 14px; }
.btn-small { min-height: 43px; padding-inline: 18px; }
.btn-large { min-height: 56px; padding-inline: 25px; border-radius: 15px; font-size: 15px; }
.btn-light { color: var(--green-950); background: var(--white); box-shadow: 0 12px 35px rgba(2,34,25,.18); }

.hero { position: relative; overflow: hidden; padding: 150px 0 95px; background: radial-gradient(circle at 78% 36%, rgba(178,237,209,.42), transparent 30%), var(--cream); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; top: -260px; left: -170px; border: 1px solid rgba(11,93,71,.12); border-radius: 50%; box-shadow: 0 0 0 52px rgba(11,93,71,.025), 0 0 0 104px rgba(11,93,71,.018); }
.hero-grid { position: relative; display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 66px; }
.eyebrow, .section-kicker { color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 8px 12px; border: 1px solid #cce6d9; border-radius: 999px; background: rgba(255,255,255,.7); text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #35b785; box-shadow: 0 0 0 4px rgba(53,183,133,.14); }
.hero h1 { max-width: 620px; margin: 0; color: var(--green-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(51px, 5.8vw, 80px); font-weight: 500; letter-spacing: -3.5px; line-height: .99; }
.hero h1 em { color: var(--green-700); font-style: italic; }
.hero-lead { max-width: 570px; margin: 27px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.text-link { color: var(--green-900); font-size: 14px; font-weight: 750; }
.text-link span { margin-left: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 35px; color: #56665f; font-size: 12px; font-weight: 650; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { display: grid; place-items: center; width: 17px; height: 17px; color: var(--green-900); background: var(--mint); border-radius: 50%; font-style: normal; font-size: 10px; }

.hero-visual { position: relative; min-height: 580px; display: grid; place-items: center; }
.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow-one { width: 410px; height: 410px; background: rgba(180,239,211,.43); }
.glow-two { width: 515px; height: 515px; border: 1px solid rgba(11,93,71,.09); box-shadow: 0 0 0 40px rgba(255,255,255,.25); }
.dashboard-card { position: relative; width: min(100%, 510px); padding: 26px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.85); border-radius: 27px; box-shadow: var(--shadow); transform: rotate(1.3deg); }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.dashboard-top h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.5px; }
.demo-label { color: #8a9993; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; color: var(--green-950); background: var(--mint); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 3px 12px rgba(13,79,60,.13); font-size: 11px; font-weight: 800; }
.balance-heading { display: flex; align-items: center; gap: 7px; color: #76857f; font-size: 11px; font-weight: 650; }
.privacy-icon { color: #91a099; font-size: 10px; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.balance-box { padding: 18px; border-radius: 17px; }
.balance-box > span, .balance-box > small { display: block; font-size: 9px; }
.balance-box strong { display: block; margin: 8px 0 5px; font-size: 22px; letter-spacing: -.7px; }
.balance-box strong small { font-size: 12px; }
.balance-dark { color: var(--white); background: linear-gradient(145deg, var(--green-950), #107056); }
.balance-dark > span, .balance-dark > small { color: rgba(255,255,255,.68); }
.balance-light { color: var(--green-950); background: #eaf9f1; }
.balance-light > span, .balance-light > small { color: #688078; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-stats > div { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #e8eeeb; border-radius: 14px; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.stat-icon.income { color: var(--green-700); background: #e6f8ef; }
.stat-icon.expense { color: var(--red); background: #fff0ee; }
.mini-stats p { margin: 0; color: #788680; font-size: 8px; }
.mini-stats small { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 800; }
.budget-card { margin-top: 12px; padding: 15px; background: #fafbf9; border-radius: 14px; }
.budget-title, .budget-values, .list-title { display: flex; align-items: center; justify-content: space-between; }
.budget-title { font-size: 10px; }
.budget-title strong { color: var(--green-700); font-size: 9px; }
.progress { height: 7px; margin: 10px 0 7px; overflow: hidden; background: #dfe9e4; border-radius: 20px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #25a779, #8bd6b3); border-radius: inherit; }
.budget-values { color: #84918c; font-size: 8px; }
.transaction-list { margin-top: 17px; }
.list-title { margin-bottom: 9px; font-size: 10px; }
.list-title span { color: var(--green-700); font-size: 8px; font-weight: 700; }
.transaction-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #eef2ef; }
.transaction-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; font-size: 8px; }
.transaction-icon.food { color: var(--orange); background: #fff3de; }
.transaction-icon.salary { color: var(--green-700); background: #e6f8ef; }
.transaction-row p { margin: 0; font-size: 9px; font-weight: 750; }
.transaction-row p small { display: block; margin-top: 2px; color: #8d9a95; font-size: 7px; font-weight: 500; }
.transaction-row > strong { font-size: 9px; }
.negative { color: var(--red); }
.positive { color: var(--green-700); }
.floating-note { position: absolute; right: -7px; bottom: 48px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--white); border-radius: 15px; box-shadow: 0 14px 35px rgba(9,58,44,.18); transform: rotate(-3deg); }
.floating-note > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--green-950); background: var(--mint); border-radius: 50%; font-size: 11px; font-weight: 800; }
.floating-note p { margin: 0; font-size: 10px; font-weight: 800; }
.floating-note small { display: block; margin-top: 2px; color: var(--green-700); font-size: 8px; }

.section { padding: 100px 0; }
.section-heading { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-heading h2, .method h2, .security h2, .cta-card h2 { margin: 12px 0 15px; color: var(--green-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.05; }
.section-heading p, .feature-card p, .steps p, .security-card > p, .cta-card p { color: var(--muted); line-height: 1.7; }
.features { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 245px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfdfc; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(17,68,53,.09); }
.feature-card h3 { margin: 20px 0 10px; font-size: 20px; letter-spacing: -.45px; }
.feature-card p { margin: 0; font-size: 14px; }
.feature-icon { display: grid; place-items: center; width: 45px; height: 45px; color: var(--green-900); background: var(--mint); border-radius: 14px; font-size: 22px; font-weight: 700; }
.feature-main { grid-row: span 2; background: var(--green-950); color: var(--white); }
.feature-main h3 { margin-top: 22px; }
.feature-main p { color: rgba(255,255,255,.68); }
.feature-main .feature-icon { color: var(--green-950); }
.mini-chart { position: absolute; inset: auto 28px 28px; height: 140px; display: flex; align-items: end; gap: 11px; padding-top: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
.mini-chart i { flex: 1; display: block; background: linear-gradient(180deg, #8fe1bb, #238b69); border-radius: 7px 7px 2px 2px; }
.feature-offline { grid-column: span 2; min-height: 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: var(--mint-light); }
.feature-offline h3 { margin-top: 0; }
.offline-pill { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; color: var(--green-900); background: var(--white); border: 1px solid #d3e9dd; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.offline-pill i { width: 8px; height: 8px; background: #39b985; border-radius: 50%; box-shadow: 0 0 0 4px rgba(57,185,133,.13); }

.method { background: var(--cream); }
.method-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; align-items: start; }
.method h2 { max-width: 440px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid #dbe4df; }
.steps li:last-child { margin: 0; border: 0; }
.steps > li > span { color: var(--green-700); font-family: Georgia, serif; font-size: 25px; font-style: italic; }
.steps h3 { margin: 0 0 8px; font-size: 20px; }
.steps p { margin: 0; font-size: 14px; }

.security { padding-top: 20px; }
.security-card { display: grid; grid-template-columns: auto 1.3fr 1fr; align-items: center; gap: 32px; padding: 38px 42px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; }
.security-badge { display: grid; place-items: center; width: 76px; height: 76px; color: var(--green-900); background: var(--mint); border-radius: 22px; font-size: 34px; }
.security-card h2 { margin-bottom: 0; font-size: 34px; }
.security-card > p { margin: 0; font-size: 14px; }
.cta-section { padding: 45px 0 100px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 55px 60px; color: var(--white); background: linear-gradient(120deg, var(--green-950), #0e7357); border-radius: 30px; box-shadow: 0 25px 70px rgba(5,61,46,.18); }
.cta-card .section-kicker { color: #8ce0b7; }
.cta-card h2 { color: var(--white); font-size: 43px; }
.cta-card p { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,.68); }
.cta-card .btn { flex: none; }

.site-footer { padding: 28px 0 35px; background: #052f25; color: rgba(255,255,255,.62); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand-footer { color: var(--white); }
.brand-footer > span:last-child > span { color: #7ed8ae; }
.brand-footer .brand-mark { color: var(--green-950); background: var(--mint); box-shadow: none; }
.site-footer p { font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.site-footer small { font-size: 11px; }

@media (max-width: 980px) {
    .main-nav { gap: 18px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy { max-width: 720px; text-align: center; margin: 0 auto; }
    .hero h1, .hero-lead { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { min-height: 540px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-main { grid-row: span 2; }
    .feature-offline { grid-column: span 2; }
    .method-grid { gap: 45px; }
    .security-card { grid-template-columns: auto 1fr; }
    .security-card > p { grid-column: 2; }
}

@media (max-width: 780px) {
    .site-header { height: 68px; background: rgba(251,250,246,.94); backdrop-filter: blur(15px); }
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: 68px 16px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav > a { padding: 14px 12px; border-bottom: 1px solid #edf2ef; }
    .nav-actions { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 115px; }
    .hero h1 { font-size: clamp(47px, 13vw, 68px); letter-spacing: -2.5px; }
    .hero-lead { font-size: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-main { min-height: 430px; grid-row: auto; }
    .feature-offline { grid-column: auto; grid-template-columns: auto 1fr; }
    .offline-pill { grid-column: 1 / -1; justify-self: start; }
    .method-grid { grid-template-columns: 1fr; gap: 40px; }
    .security-card { grid-template-columns: 1fr; text-align: center; }
    .security-badge { margin-inline: auto; }
    .security-card > p { grid-column: auto; }
    .cta-card { align-items: flex-start; flex-direction: column; padding: 42px 34px; }
    .footer-row { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .brand { font-size: 18px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero { padding-bottom: 55px; }
    .hero-actions { flex-direction: column; gap: 18px; }
    .hero-actions .btn { width: 100%; }
    .trust-row { gap: 12px; }
    .hero-visual { min-height: 465px; margin-inline: -5px; }
    .dashboard-card { padding: 17px; border-radius: 21px; transform: none; }
    .balance-box { padding: 14px 11px; }
    .balance-box strong { font-size: 17px; }
    .floating-note { right: -4px; bottom: 10px; }
    .section { padding: 75px 0; }
    .section-heading { margin-bottom: 35px; }
    .section-heading h2, .method h2 { font-size: 39px; }
    .feature-card { min-height: 220px; padding: 23px; }
    .feature-main { min-height: 410px; }
    .feature-offline { display: block; }
    .feature-offline > div:nth-child(2) { margin-top: 18px; }
    .offline-pill { margin-top: 18px; }
    .security-card { padding: 31px 24px; }
    .security-card h2 { font-size: 31px; }
    .cta-section { padding-bottom: 70px; }
    .cta-card { padding: 38px 25px; }
    .cta-card h2 { font-size: 37px; }
    .cta-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ================================================================
   Authentification — inscription et connexion
   ================================================================ */
.auth-page { min-height: 100vh; background: var(--white); }
.auth-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(30px, calc((100vw - 1380px) / 2)); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(15,80,61,.08); backdrop-filter: blur(18px); }
.auth-header p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-header p a, .auth-login-link a { color: var(--green-700); font-weight: 800; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .85fr) minmax(600px, 1.15fr); padding-top: 78px; }
.auth-story { position: relative; min-height: calc(100vh - 78px); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(55px, 6vw, 95px); color: var(--white); background: linear-gradient(145deg, #063d30 0%, #0b5d47 56%, #087253 100%); }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-story::before { width: 520px; height: 520px; right: -320px; top: -130px; border: 1px solid rgba(255,255,255,.11); box-shadow: 0 0 0 62px rgba(255,255,255,.025), 0 0 0 124px rgba(255,255,255,.018); }
.auth-story::after { width: 270px; height: 270px; left: -150px; bottom: -90px; background: rgba(157,229,193,.08); }
.auth-story-inner, .auth-quote { position: relative; z-index: 1; }
.auth-kicker { color: #91dfba; font-size: 11px; font-weight: 850; letter-spacing: 2px; }
.auth-story h1 { max-width: 630px; margin: 18px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4vw, 65px); font-weight: 500; line-height: 1.02; letter-spacing: -2.4px; }
.auth-story-inner > p { max-width: 570px; margin: 0; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.75; }
.auth-benefits { display: grid; gap: 20px; margin: 45px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 14px; }
.auth-benefits li > span { flex: none; display: grid; place-items: center; width: 33px; height: 33px; color: var(--green-950); background: var(--mint); border-radius: 50%; font-size: 13px; font-weight: 900; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { font-size: 14px; }
.auth-benefits small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 12px; }
.auth-quote { max-width: 530px; display: flex; align-items: flex-start; gap: 13px; padding-top: 38px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.15); }
.auth-quote > span { color: #91dfba; font-family: Georgia, serif; font-size: 44px; line-height: .7; }
.auth-quote p { margin: 0; color: rgba(255,255,255,.7); font-family: Georgia, serif; font-size: 15px; font-style: italic; line-height: 1.55; }
.auth-form-section { display: grid; place-items: center; padding: 55px clamp(30px, 6vw, 100px); background: var(--cream); }
.auth-form-wrap { width: min(100%, 680px); }
.auth-title { margin-bottom: 28px; }
.step-label { color: var(--green-700); font-size: 10px; font-weight: 850; letter-spacing: 1.7px; }
.auth-title h2, .success-state h2 { margin: 9px 0 8px; color: var(--green-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 4vw, 48px); font-weight: 500; letter-spacing: -1.6px; }
.auth-title p, .success-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.form-full { grid-column: 1 / -1; }
.form-group > label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; color: #33463f; font-size: 12px; font-weight: 800; }
.form-group > label > span { color: var(--red); }
.form-group > label small { color: #909e98; font-size: 9px; font-weight: 650; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input, .input-wrap select { width: 100%; height: 52px; padding: 0 48px 0 43px; color: var(--ink); background: var(--white); border: 1px solid #d7e2dc; border-radius: 13px; outline: none; font: inherit; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-wrap select { padding-right: 34px; appearance: none; cursor: pointer; }
.input-wrap input::placeholder { color: #a5b0ac; }
.input-wrap input:hover, .input-wrap select:hover { border-color: #b7cbc1; }
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(22,128,100,.11); }
.input-icon { position: absolute; left: 15px; z-index: 1; display: grid; place-items: center; width: 18px; color: #7b8e86; font-size: 11px; font-weight: 900; pointer-events: none; }
.select-wrap::after { content: "⌄"; position: absolute; right: 15px; color: #71837c; font-size: 15px; pointer-events: none; }
.password-toggle { position: absolute; right: 9px; min-width: 42px; height: 34px; padding: 0 7px; color: var(--green-700); background: transparent; border: 0; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.password-toggle:hover { background: var(--mint-light); }
.password-strength { height: 4px; margin: 8px 2px 0; overflow: hidden; background: #e4ebe7; border-radius: 999px; }
.password-strength span { display: block; width: 0; height: 100%; background: var(--red); border-radius: inherit; transition: width .25s ease, background .25s ease; }
.password-strength.is-medium span { width: 60%; background: var(--orange); }
.password-strength.is-strong span { width: 100%; background: #2fad7a; }
.field-help { display: block; margin-top: 6px; color: #84928c; font-size: 9px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: #61706a; font-size: 11px; line-height: 1.55; cursor: pointer; }
.checkbox-row input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--green-700); }
.checkbox-row a { color: var(--green-700); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.submit-button { width: 100%; border: 0; cursor: pointer; }
.submit-button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-login-link { display: none; margin: -3px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.form-alert { margin: 0 0 22px; padding: 15px 17px; color: #8e3936; background: #fff1ef; border: 1px solid #f2cac6; border-radius: 13px; font-size: 11px; line-height: 1.5; }
.form-alert strong { display: block; margin-bottom: 5px; font-size: 12px; }
.form-alert ul { margin: 0; padding-left: 18px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.success-state { max-width: 510px; text-align: center; margin-inline: auto; }
.success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 25px; color: var(--green-950); background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 13px rgba(201,243,223,.35); font-size: 29px; font-weight: 900; }
.success-state p { max-width: 440px; margin: 0 auto 28px; }
.success-state .btn { width: min(100%, 350px); margin-inline: auto; }
.success-state > .text-link { display: block; margin-top: 22px; }

@media (max-width: 1050px) {
    .auth-shell { grid-template-columns: .82fr 1.18fr; }
    .auth-story { padding: 55px 40px; }
    .auth-story h1 { font-size: 47px; }
    .auth-form-section { padding: 50px 35px; }
}

@media (max-width: 820px) {
    .auth-header { height: 68px; padding-inline: 20px; }
    .auth-header > p { display: none; }
    .auth-shell { display: block; padding-top: 68px; }
    .auth-story { min-height: auto; padding: 48px 25px; }
    .auth-story h1 { max-width: 600px; font-size: 43px; }
    .auth-story-inner > p { font-size: 14px; }
    .auth-benefits { grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 32px; }
    .auth-benefits li { align-items: flex-start; }
    .auth-benefits small { line-height: 1.45; }
    .auth-quote { display: none; }
    .auth-form-section { padding: 50px 24px 70px; }
    .auth-login-link { display: block; }
}

@media (max-width: 620px) {
    .auth-story { padding: 38px 20px; }
    .auth-story h1 { font-size: 38px; letter-spacing: -1.6px; }
    .auth-benefits { grid-template-columns: 1fr; }
    .auth-benefits li:nth-child(3) { display: none; }
    .auth-form-section { padding: 40px 16px 60px; }
    .auth-form { grid-template-columns: 1fr; gap: 17px; }
    .form-full { grid-column: auto; }
    .auth-title h2, .success-state h2 { font-size: 38px; }
}

/* Connexion */
.login-shell { grid-template-columns: minmax(430px, .92fr) minmax(520px, 1.08fr); }
.login-story { background: radial-gradient(circle at 78% 20%, rgba(132,218,176,.18), transparent 29%), linear-gradient(145deg, #052f25, #0b5d47 62%, #087253); }
.login-insight { position: relative; width: min(100%, 470px); margin-top: 48px; padding: 24px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 25px 60px rgba(3,38,29,.22); transform: rotate(-1deg); }
.login-insight-top { display: flex; align-items: center; justify-content: space-between; color: #74847d; font-size: 10px; font-weight: 750; }
.login-insight-top strong { color: var(--green-700); }
.login-insight-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.login-insight-values > div { padding: 15px; background: #f5f8f6; border-radius: 14px; }
.login-insight-values small, .login-insight-values strong { display: block; }
.login-insight-values small { color: #7a8983; font-size: 9px; }
.login-insight-values strong { margin-top: 5px; color: var(--green-950); font-size: 17px; }
.login-insight-values > div:last-child strong { color: var(--red); }
.login-insight-progress { height: 8px; margin-top: 18px; overflow: hidden; background: #e1eae5; border-radius: 999px; }
.login-insight-progress span { display: block; width: 59%; height: 100%; background: linear-gradient(90deg, #30af7d, #87d7b2); border-radius: inherit; }
.login-insight > p { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: #5f7069; font-size: 10px; }
.login-insight > p i { display: grid; place-items: center; width: 17px; height: 17px; color: var(--green-950); background: var(--mint); border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 900; }
.login-form-wrap { max-width: 540px; }
.login-form { grid-template-columns: 1fr; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.label-row > label { margin: 0; color: #33463f; font-size: 12px; font-weight: 800; }
.label-row > label span { color: var(--red); }
.future-link { color: #85938d; font-size: 10px; font-weight: 700; cursor: help; }
.session-note { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--mint-light); border: 1px solid #d9eee3; border-radius: 12px; }
.session-note > span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green-700); background: var(--white); border-radius: 9px; font-size: 15px; }
.session-note p { margin: 0; }
.session-note strong, .session-note small { display: block; }
.session-note strong { color: var(--green-950); font-size: 10px; }
.session-note small { margin-top: 2px; color: #71827a; font-size: 9px; }
.form-notice { margin: 0 0 20px; padding: 13px 15px; color: #176d51; background: #eaf9f1; border: 1px solid #cce9da; border-radius: 12px; font-size: 11px; font-weight: 700; }
.logout-form { margin-top: 20px; }
.logout-button { padding: 8px 12px; background: transparent; border: 0; cursor: pointer; }

@media (max-width: 820px) {
    .login-insight { display: none; }
    .login-story { padding-block: 44px; }
}

/* ================================================================
   Tableau de bord
   ================================================================ */
.dashboard-page { min-height: 100vh; background: #f4f7f5; }
.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 254px; display: flex; flex-direction: column; padding: 28px 18px 20px; color: rgba(255,255,255,.7); background: #063d30; }
.dashboard-brand { margin: 0 10px 38px; color: var(--white); }
.dashboard-brand > span:last-child > span { color: #88dbb3; }
.dashboard-brand .brand-mark { color: var(--green-950); background: var(--mint); box-shadow: none; }
.dashboard-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-section-label { margin: 0 13px 9px; color: rgba(255,255,255,.36); font-size: 9px; font-weight: 850; letter-spacing: 1.6px; }
.nav-section-second { margin-top: 25px; }
.dashboard-nav-link { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 0 13px; border-radius: 12px; font-size: 12px; font-weight: 680; }
.dashboard-nav-link i { display: grid; place-items: center; width: 22px; height: 22px; font-style: normal; font-size: 16px; }
.dashboard-nav-link.is-active { color: var(--white); background: rgba(255,255,255,.12); box-shadow: inset 3px 0 #8ce0b7; }
.dashboard-nav-link.is-disabled { color: rgba(255,255,255,.48); cursor: not-allowed; }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: var(--green-950); background: var(--mint); border-radius: 12px; font-size: 13px; font-weight: 900; }
.sidebar-user strong, .sidebar-user small { display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: var(--white); font-size: 10px; }
.sidebar-user small { margin-top: 3px; color: rgba(255,255,255,.43); font-size: 8px; }
.sidebar-user form, .sidebar-user button { margin: 0; }
.sidebar-user button { width: 31px; height: 31px; color: rgba(255,255,255,.62); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.sidebar-user button:hover { color: var(--white); background: rgba(255,255,255,.1); }
.dashboard-main { min-height: 100vh; margin-left: 254px; padding: 33px clamp(24px, 3.4vw, 55px) 55px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.dashboard-heading-wrap { display: flex; align-items: center; gap: 14px; }
.dashboard-heading-wrap p { margin: 0 0 4px; color: #82918b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; }
.dashboard-heading-wrap h1 { margin: 0; color: var(--green-950); font-family: Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -1px; }
.dashboard-header-actions { display: flex; align-items: center; gap: 10px; }
.notification-button, .sidebar-toggle { display: grid; place-items: center; width: 43px; height: 43px; color: var(--green-950); background: var(--white); border: 1px solid #dfe8e3; border-radius: 12px; cursor: pointer; }
.sidebar-toggle { display: none; font-size: 18px; }
.dashboard-new-button { min-height: 43px; border: 0; }
.dashboard-new-button:disabled { opacity: .72; cursor: not-allowed; transform: none; }
.dashboard-alert { margin-bottom: 20px; padding: 14px 17px; color: #8a403b; background: #fff1ef; border: 1px solid #f2cac6; border-radius: 13px; font-size: 11px; }
.onboarding-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 22px; padding: 22px 24px; color: var(--white); background: linear-gradient(120deg, #0b5d47, #10805f); border-radius: 19px; box-shadow: 0 14px 32px rgba(11,93,71,.14); }
.onboarding-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green-950); background: var(--mint); border-radius: 13px; font-family: Georgia, serif; font-size: 20px; }
.onboarding-banner span { color: #8ce0b7; font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.onboarding-banner h2 { margin: 3px 0 3px; font-size: 16px; }
.onboarding-banner p { margin: 0; color: rgba(255,255,255,.62); font-size: 10px; }
.onboarding-banner button, .onboarding-banner > a { padding: 11px 16px; color: var(--green-950); background: var(--white); border: 0; border-radius: 11px; font-size: 10px; font-weight: 800; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 150px; padding: 20px; overflow: hidden; background: var(--white); border: 1px solid #e1e9e5; border-radius: 18px; }
.metric-card > span, .metric-top > span { display: block; color: #75857e; font-size: 10px; font-weight: 680; }
.metric-card > strong { display: block; margin: 14px 0 8px; color: var(--green-950); font-size: clamp(20px, 2vw, 25px); letter-spacing: -.8px; }
.metric-card > small { color: #91a099; font-size: 8px; }
.metric-balance { color: var(--white); background: linear-gradient(145deg, #063d30, #0b6c50); border-color: transparent; box-shadow: 0 15px 35px rgba(6,61,48,.13); }
.metric-balance::after { content: ""; position: absolute; width: 130px; height: 130px; right: -62px; bottom: -63px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.025); }
.metric-balance .metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-balance .metric-top > span, .metric-balance > small { color: rgba(255,255,255,.6); }
.metric-balance > strong { color: var(--white); }
.metric-top button { position: relative; z-index: 2; width: 27px; height: 27px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); border: 0; border-radius: 8px; cursor: pointer; }
.currency-separation { margin-top: 8px; color: #8ce0b7 !important; font-size: 7px !important; }
.metric-icon { position: absolute; right: 17px; top: 17px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; font-size: 14px; font-weight: 900; }
.metric-income { color: #168064; background: #e6f8ef; }
.metric-expense { color: #d85550; background: #fff0ee; }
.metric-saving { color: #7a57b2; background: #f1ecfa; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.dashboard-panel { background: var(--white); border: 1px solid #e1e9e5; border-radius: 19px; }
.spending-panel, .accounts-panel, .budgets-panel, .goals-panel { min-height: 310px; padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.panel-heading span { color: var(--green-700); font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.panel-heading h2 { margin: 4px 0 0; color: var(--green-950); font-size: 17px; letter-spacing: -.4px; }
.panel-heading > small { padding: 6px 9px; color: #7c8b85; background: #f3f7f5; border-radius: 8px; font-size: 8px; }
.empty-panel { min-height: 205px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-panel.compact { min-height: 190px; }
.empty-panel > span { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 12px; color: var(--green-700); background: var(--mint-light); border-radius: 14px; font-size: 20px; }
.empty-panel strong { color: #40524b; font-size: 12px; }
.empty-panel p { max-width: 280px; margin: 5px auto 0; color: #8b9993; font-size: 9px; line-height: 1.5; }
.category-bars { display: grid; gap: 17px; }
.category-label { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; margin-bottom: 7px; }
.category-label > span { width: 7px; height: 7px; background: var(--category-color); border-radius: 50%; }
.category-label strong { color: #40524b; font-size: 10px; }
.category-label small { color: #687871; font-size: 9px; font-weight: 700; }
.category-track { height: 7px; overflow: hidden; background: #edf2ef; border-radius: 999px; }
.category-track span { display: block; width: var(--bar-width); height: 100%; background: var(--category-color); border-radius: inherit; opacity: .78; }
.account-list { display: grid; }
.account-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 13px 0; border-top: 1px solid #edf2ef; }
.account-row:first-child { padding-top: 0; border-top: 0; }
.account-dot { display: grid; place-items: center; width: 32px; height: 32px; color: var(--account-color); background: color-mix(in srgb, var(--account-color) 12%, white); border-radius: 10px; font-size: 9px; }
.account-row strong, .account-row small { display: block; }
.account-row strong { color: #354740; font-size: 10px; }
.account-row small { margin-top: 3px; color: #8b9993; font-size: 8px; }
.account-row b { color: var(--green-950); font-size: 10px; }
.budget-dashboard-list { display: grid; gap: 18px; }
.budget-dashboard-row > div:first-child, .budget-dashboard-row p { display: flex; align-items: center; justify-content: space-between; }
.budget-dashboard-row strong { color: #3b4c45; font-size: 10px; }
.budget-dashboard-row small { color: var(--green-700); font-size: 8px; font-weight: 750; }
.dashboard-progress { height: 7px; margin: 8px 0 6px; overflow: hidden; background: #e9efec; border-radius: 999px; }
.dashboard-progress span { display: block; width: var(--progress); height: 100%; background: #3ab184; border-radius: inherit; }
.budget-dashboard-row.is-warning .dashboard-progress span { background: var(--orange); }
.budget-dashboard-row p { margin: 0; color: #8a9892; font-size: 8px; }
.budget-dashboard-row p b { color: #50615a; }
.goal-dashboard-list { display: grid; gap: 16px; }
.goal-dashboard-row { display: grid; grid-template-columns: 47px 1fr; align-items: center; gap: 12px; }
.goal-ring { display: grid; place-items: center; width: 47px; height: 47px; background: conic-gradient(var(--goal-color) var(--goal-progress), #e9efec 0); border-radius: 50%; }
.goal-ring::before { content: ""; grid-area: 1 / 1; width: 37px; height: 37px; background: var(--white); border-radius: 50%; }
.goal-ring span { z-index: 1; grid-area: 1 / 1; color: #465851; font-size: 8px; font-weight: 850; }
.goal-dashboard-row strong, .goal-dashboard-row small { display: block; }
.goal-dashboard-row strong { color: #3c4d47; font-size: 10px; }
.goal-dashboard-row small { margin-top: 4px; color: #8a9892; font-size: 8px; }
.transactions-panel { margin-top: 18px; padding: 22px; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.dashboard-table th { padding: 0 12px 10px; color: #93a09b; border-bottom: 1px solid #e8eeeb; font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .8px; }
.dashboard-table th:last-child, .dashboard-table td:last-child { text-align: right; }
.dashboard-table td { padding: 13px 12px; color: #687871; border-bottom: 1px solid #f0f3f1; font-size: 9px; }
.dashboard-table tr:last-child td { border-bottom: 0; }
.transaction-name { display: flex; align-items: center; gap: 10px; }
.transaction-name > span { display: grid; place-items: center; width: 31px; height: 31px; color: var(--transaction-color); background: color-mix(in srgb, var(--transaction-color) 10%, white); border-radius: 9px; font-size: 8px; }
.transaction-name strong, .transaction-name small { display: block; }
.transaction-name strong { color: #354740; font-size: 10px; }
.transaction-name small { margin-top: 3px; color: #95a19c; font-size: 8px; }
.dashboard-table .table-income { color: var(--green-700); font-weight: 850; }
.dashboard-table .table-expense { color: var(--red); font-weight: 850; }
.amounts-hidden .sensitive-amount { filter: blur(7px); user-select: none; }
.dashboard-overlay { display: none; }

@media (max-width: 1180px) {
    .dashboard-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .dashboard-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .dashboard-sidebar.is-open { transform: translateX(0); }
    .dashboard-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(3,30,23,.48); backdrop-filter: blur(2px); }
    .dashboard-overlay.is-visible { display: block; }
    .dashboard-main { margin-left: 0; padding: 25px 22px 45px; }
    .sidebar-toggle { display: grid; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .dashboard-main { padding: 20px 14px 40px; }
    .dashboard-header { align-items: flex-start; }
    .dashboard-heading-wrap h1 { font-size: 25px; }
    .notification-button { display: none; }
    .dashboard-new-button { width: 43px; overflow: hidden; padding: 0; color: transparent; font-size: 0; }
    .dashboard-new-button::first-letter { color: var(--white); font-size: 18px; }
    .onboarding-banner { grid-template-columns: auto 1fr; padding: 18px; }
    .onboarding-banner button, .onboarding-banner > a { grid-column: 1 / -1; width: 100%; text-align: center; }
    .dashboard-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { min-height: 137px; padding: 16px; }
    .metric-card > strong { font-size: 18px; }
    .metric-icon { width: 31px; height: 31px; right: 13px; top: 13px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .spending-panel, .accounts-panel, .budgets-panel, .goals-panel { min-height: auto; }
}

@media (max-width: 430px) {
    .dashboard-metrics { grid-template-columns: 1fr; }
    .metric-card { min-height: 128px; }
}

/* ================================================================
   Comptes financiers
   ================================================================ */
.accounts-main { max-width: 1500px; }
.accounts-header { margin-bottom: 24px; }
.accounts-back-button { min-height: 43px; }
.accounts-notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: 14px; }
.accounts-notice > span { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 9px; font-weight: 900; }
.accounts-notice strong, .accounts-notice p { display: block; margin: 0; }
.accounts-notice strong { font-size: 11px; }
.accounts-notice p { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.accounts-notice-success { color: #176d51; background: #eaf9f1; border-color: #cce9da; }
.accounts-notice-success > span { background: #d3f2e2; }
.accounts-notice-error { color: #8a403b; background: #fff1ef; border-color: #f2cac6; }
.accounts-notice-error > span { background: #f9dad7; }
.accounts-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); align-items: start; gap: 20px; }
.accounts-catalog, .account-form-panel { background: var(--white); border: 1px solid #e1e9e5; border-radius: 20px; }
.accounts-catalog { min-height: 560px; padding: 24px; }
.account-form-panel { position: sticky; top: 24px; padding: 24px; }
.accounts-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.accounts-section-heading span { color: var(--green-700); font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.accounts-section-heading h2 { margin: 5px 0 0; color: var(--green-950); font-size: 19px; letter-spacing: -.4px; }
.accounts-section-heading > small { padding: 6px 9px; color: #7c8b85; background: #f3f7f5; border-radius: 8px; font-size: 8px; }
.accounts-empty { min-height: 420px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; border: 1px dashed #d7e5de; border-radius: 17px; background: #fbfdfc; }
.accounts-empty > span { display: grid; place-items: center; width: 58px; height: 58px; color: var(--green-700); background: var(--mint-light); border-radius: 18px; font-size: 24px; }
.accounts-empty h3 { margin: 17px 0 7px; color: var(--green-950); font-size: 16px; }
.accounts-empty p { max-width: 330px; margin: 0; color: #7c8b85; font-size: 11px; line-height: 1.6; }
.accounts-empty a { margin-top: 17px; color: var(--green-700); font-size: 10px; font-weight: 800; }
.financial-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.financial-account-card { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 19px; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--account-color) 7%, white), white 66%); border: 1px solid color-mix(in srgb, var(--account-color) 18%, #e1e9e5); border-radius: 17px; }
.financial-account-card::after { content: ""; position: absolute; width: 115px; height: 115px; right: -57px; bottom: -58px; border: 1px solid color-mix(in srgb, var(--account-color) 18%, transparent); border-radius: 50%; box-shadow: 0 0 0 23px color-mix(in srgb, var(--account-color) 3%, transparent); }
.financial-account-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.financial-account-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--account-color); background: color-mix(in srgb, var(--account-color) 12%, white); border-radius: 12px; font-size: 14px; font-weight: 900; }
.financial-account-top small { padding: 5px 8px; color: var(--green-700); background: #eaf8f1; border-radius: 8px; font-size: 7px; font-weight: 800; }
.financial-account-top small.is-muted { color: #788780; background: #eef2f0; }
.financial-account-name { position: relative; z-index: 1; margin-top: 18px; }
.financial-account-name > span { color: #83918b; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.financial-account-name h3 { margin: 4px 0 3px; color: #2f433b; font-size: 14px; }
.financial-account-name p { margin: 0; color: #8a9892; font-size: 9px; }
.financial-account-balance { position: relative; z-index: 1; margin-top: auto; }
.financial-account-balance small, .financial-account-balance strong { display: block; }
.financial-account-balance small { color: #85948d; font-size: 8px; }
.financial-account-balance strong { margin-top: 5px; color: var(--green-950); font-size: 19px; letter-spacing: -.6px; }
.financial-account-edit { position: absolute; z-index: 3; right: 17px; bottom: 17px; padding: 6px 9px; color: var(--account-color); background: var(--white); border: 1px solid color-mix(in srgb, var(--account-color) 20%, #dce6e1); border-radius: 8px; font-size: 8px; font-weight: 850; }
.account-form-intro { margin: -8px 0 21px; color: #7d8c86; font-size: 10px; line-height: 1.55; }
.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.account-field { min-width: 0; }
.account-field-full { grid-column: 1 / -1; }
.account-field label { display: block; margin-bottom: 7px; color: #40524b; font-size: 9px; font-weight: 800; }
.account-field label span { color: var(--red); }
.account-field label em { float: right; color: #96a29d; font-size: 8px; font-style: normal; font-weight: 600; }
.account-field input[type="text"], .account-field select { width: 100%; height: 43px; padding: 0 12px; color: #2f433b; background: #fbfdfc; border: 1px solid #dce6e1; border-radius: 11px; outline: none; font: inherit; font-size: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.account-field input[type="text"]:focus, .account-field select:focus { border-color: #65ba98; box-shadow: 0 0 0 3px rgba(22,128,100,.1); }
.account-field.has-error input, .account-field.has-error select { border-color: #df7772; }
.account-field > small:not(.field-help) { display: block; margin-top: 5px; color: #b24843; font-size: 8px; line-height: 1.4; }
.field-help { display: block; margin-top: 5px; color: #98a49f; font-size: 8px; }
.account-color-control { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 10px; background: #fbfdfc; border: 1px solid #dce6e1; border-radius: 11px; }
.account-color-control input { width: 27px; height: 27px; padding: 0; overflow: hidden; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.account-color-control span { color: #7d8c86; font-size: 8px; }
.account-total-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--mint-light); border: 1px solid #d9eee3; border-radius: 12px; cursor: pointer; }
.account-total-option input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-700); }
.account-total-option span, .account-total-option strong, .account-total-option small { display: block; }
.account-total-option strong { color: #315047; font-size: 9px; }
.account-total-option small { margin-top: 3px; color: #7b8d85; font-size: 8px; }
.account-submit { width: 100%; min-height: 48px; border: 0; cursor: pointer; }
.account-cancel { color: #6f8179; font-size: 9px; font-weight: 750; text-align: center; }
.account-deactivate-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6ece9; text-align: center; }
.account-deactivate-form button { padding: 0; color: #b24b46; background: transparent; border: 0; font-size: 9px; font-weight: 800; cursor: pointer; }
.account-deactivate-form small { display: block; margin-top: 4px; color: #98a49f; font-size: 8px; }

@media (max-width: 1120px) {
    .accounts-layout { grid-template-columns: 1fr; }
    .account-form-panel { position: static; }
}

@media (max-width: 680px) {
    .accounts-back-button { width: 43px; overflow: hidden; padding: 0; color: transparent; font-size: 0; }
    .accounts-back-button::first-letter { color: var(--white); font-size: 16px; }
    .accounts-catalog, .account-form-panel { padding: 18px; border-radius: 17px; }
    .financial-account-grid { grid-template-columns: 1fr; }
    .accounts-empty { min-height: 320px; }
}

@media (max-width: 430px) {
    .account-form { grid-template-columns: 1fr; }
    .account-field-full { grid-column: auto; }
}

/* Modules financiers */
.finance-main { max-width: 1540px; }
.online-status { padding: 7px 10px; color: #176d51; background: #eaf9f1; border-radius: 999px; font-size: 9px; font-weight: 800; }
.online-status.is-offline { color: #8a403b; background: #fff1ef; }
.finance-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr); gap: 20px; align-items: start; }
.finance-panel { padding: 23px; background: var(--white); border: 1px solid #e1e9e5; border-radius: 20px; }
.finance-form-panel { position: sticky; top: 22px; }
.filter-bar { display: flex; gap: 8px; margin: -5px 0 18px; }
.filter-bar select, .filter-bar button { min-height: 36px; padding: 0 10px; border: 1px solid #dce6e1; border-radius: 9px; background: #fbfdfc; font-size: 9px; }
.filter-bar button { color: #fff; background: var(--green-900); cursor: pointer; }
.responsive-table { overflow-x: auto; }
.finance-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.finance-table th, .finance-table td { padding: 11px 9px; border-bottom: 1px solid #edf2ef; text-align: left; font-size: 9px; }
.finance-table th { color: #8b9993; font-size: 8px; text-transform: uppercase; }
.finance-table td strong, .finance-table td small { display: block; }
.finance-table td small { margin-top: 3px; color: #96a29d; font-size: 8px; }
.amount-income { color: var(--green-700); font-weight: 850; }.amount-expense { color: var(--red); font-weight: 850; }
.status-pill { padding: 5px 7px; border-radius: 7px; font-size: 8px; font-weight: 800; }.status-completed { color: #176d51; background: #eaf9f1; }.status-planned { color: #8a6422; background: #fff7e8; }.status-cancelled { color: #777; background: #eee; }
.compact-empty { min-height: 330px; }
.finance-form { display: grid; gap: 12px; }
.finance-form > label { display: grid; gap: 6px; color: #40524b; font-size: 9px; font-weight: 800; }
.finance-form input:not([type="checkbox"]):not([type="radio"]), .finance-form select, .finance-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: #2f433b; background: #fbfdfc; border: 1px solid #dce6e1; border-radius: 10px; font: inherit; font-size: 10px; }
.finance-form textarea { resize: vertical; }.finance-form .btn { border: 0; cursor: pointer; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.segmented input { position: absolute; opacity: 0; }.segmented span { display: block; padding: 10px; border: 1px solid #dce6e1; border-radius: 9px; text-align: center; font-size: 9px; font-weight: 800; cursor: pointer; }.segmented input:checked + span { color: #fff; background: var(--green-900); border-color: var(--green-900); }
.check-row { grid-template-columns: auto 1fr; align-items: center; }.check-row input { accent-color: var(--green-700); }.inline-error, .field-error { color: #a4433f; }.inline-error { margin-bottom: 12px; padding: 10px; background: #fff1ef; border-radius: 9px; font-size: 9px; }
@media (max-width: 1100px) { .finance-grid { grid-template-columns: 1fr; }.finance-form-panel { position: static; } }
@media (max-width: 600px) { .finance-panel { padding: 17px; }.filter-bar { flex-wrap: wrap; }.filter-bar select { flex: 1; } }
.budget-cards,.goal-cards{display:grid;gap:12px}.budget-card,.goal-card{padding:16px;border:1px solid #e2eae6;border-radius:14px;background:#fbfdfc}.budget-card>div:first-child{display:flex;justify-content:space-between}.budget-card small,.goal-card small{display:block;margin-top:4px;color:#8b9993;font-size:8px}.budget-card>b{float:right;margin-top:-24px;color:var(--green-700);font-size:11px}.budget-card p,.goal-card p{display:flex;justify-content:space-between;margin:7px 0 0;color:#71817a;font-size:9px}.budget-card.is-warning .dashboard-progress span{background:var(--orange)}.goal-card{border-left:4px solid var(--goal-color)}.goal-card-head{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px}.goal-card-head>span{display:grid;place-items:center;width:34px;height:34px;color:var(--goal-color);background:#f1ecfa;border-radius:10px}.goal-card-head b{color:var(--goal-color);font-size:11px}.contribution-form{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;margin-top:12px}.contribution-form input,.contribution-form select,.contribution-form button{min-width:0;height:34px;padding:0 8px;border:1px solid #dce6e1;border-radius:8px;background:#fff;font-size:8px}.contribution-form button{color:#fff;background:var(--green-900);cursor:pointer}@media(max-width:560px){.contribution-form{grid-template-columns:1fr}.contribution-form button{height:38px}}

.report-filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-bottom:20px}.report-filters label{display:grid;gap:5px;color:#66776f;font-size:8px;font-weight:800}.report-filters input,.report-filters button,.report-filters a{min-height:36px;padding:0 11px;border:1px solid #dce6e1;border-radius:9px;background:#fff;font-size:9px}.report-filters button,.report-filters a{display:inline-flex;align-items:center;color:#fff;background:var(--green-900);cursor:pointer}.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}.report-summary article{padding:16px;background:#f7faf8;border:1px solid #e2eae6;border-radius:13px}.report-summary small,.report-summary strong,.report-summary b,.report-summary span{display:block}.report-summary small{color:#82918b;font-size:8px}.report-summary strong{margin-top:8px;color:var(--green-700);font-size:15px}.report-summary b{margin-top:10px;color:var(--red);font-size:13px}.report-summary span{margin-top:3px;color:#8a9892;font-size:8px}@media(max-width:650px){.report-summary{grid-template-columns:1fr}.report-filters>*{flex:1}}
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 50% 15%, rgba(201,243,223,.7), transparent 34%), var(--cream); }
.error-card { width: min(100%, 600px); padding: 55px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.error-card .brand { justify-content: center; }
.error-code { display: block; margin: 35px 0 5px; color: var(--green-700); font-family: Georgia, serif; font-size: 82px; font-style: italic; line-height: 1; }
.error-card h1 { margin: 0; color: var(--green-950); font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.error-card p { max-width: 430px; margin: 15px auto 27px; color: var(--muted); font-size: 14px; line-height: 1.7; }
