/* ==========================================================================
   EasyHouse — espace membres (propriétaires & locataires)
   Bootstrap 5 + Bootstrap Icons embarqués, aucune ressource externe.
   ========================================================================== */
:root {
    --es-blue: #15589E;
    --es-blue-600: #114A86;
    --es-blue-50: #EAF2FB;
    --es-navy: #0D2541;
    --es-navy-2: #12325A;
    --es-orange: #F49B14;
    --es-orange-600: #D9850A;
    --es-orange-50: #FFF4E2;
    --es-bg: #F4F6FA;
    --es-surface: #FFFFFF;
    --es-text: #1F2A37;
    --es-muted: #5B6778;
    --es-line: #E3E8F0;
    --es-line-2: #EEF1F6;
    --es-success: #12805C;
    --es-success-50: #E3F6EE;
    --es-danger: #C2382F;
    --es-danger-50: #FDECEA;
    --es-warning: #A46200;
    --es-warning-50: #FFF4E0;
    --es-info: #15589E;
    --es-info-50: #E8F1FB;
    --es-radius: 16px;
    --es-radius-sm: 11px;
    --es-shadow: 0 1px 2px rgba(13, 37, 65, .05), 0 4px 16px -6px rgba(13, 37, 65, .10);
    --es-shadow-lg: 0 24px 48px -20px rgba(13, 37, 65, .35);
    --es-sidebar: 272px;
    --es-topbar: 64px;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--es-text);
    --bs-body-bg: var(--es-bg);
    --bs-link-color: var(--es-blue);
    --bs-link-color-rgb: 21, 88, 158;
    --bs-link-hover-color: var(--es-blue-600);
    --bs-border-color: var(--es-line);
    --bs-primary: var(--es-blue);
    --bs-primary-rgb: 21, 88, 158;
    --bs-focus-ring-color: rgba(21, 88, 158, .25);
}

html { -webkit-text-size-adjust: 100%; }
body.es-body { background: var(--es-bg); color: var(--es-text); font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--es-navy); letter-spacing: -.015em; }
a { text-underline-offset: 3px; }
.min-w-0 { min-width: 0; }
.es-skip { position: absolute; z-index: 2000; left: 1rem; top: .75rem; background: var(--es-navy); color: #fff; padding: .5rem .9rem; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(244, 155, 20, .8); outline-offset: 2px; }
.bi { line-height: 1; vertical-align: -.125em; }

/* ---------- boutons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 11px; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.3rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 13px; }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .82rem; --bs-btn-border-radius: 9px; gap: .3rem; }
.btn-es-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--es-blue); --bs-btn-border-color: var(--es-blue); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--es-blue-600); --bs-btn-hover-border-color: var(--es-blue-600); --bs-btn-active-bg: #0E3F73; --bs-btn-active-border-color: #0E3F73; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--es-blue); --bs-btn-disabled-border-color: var(--es-blue); --bs-btn-disabled-color: #fff; box-shadow: 0 6px 16px -8px rgba(21, 88, 158, .7); }
.btn-es-accent { --bs-btn-color: var(--es-navy); --bs-btn-bg: var(--es-orange); --bs-btn-border-color: var(--es-orange); --bs-btn-hover-color: var(--es-navy); --bs-btn-hover-bg: #FFAD2E; --bs-btn-hover-border-color: #FFAD2E; --bs-btn-active-bg: var(--es-orange-600); --bs-btn-active-border-color: var(--es-orange-600); --bs-btn-active-color: var(--es-navy); --bs-btn-disabled-bg: var(--es-orange); --bs-btn-disabled-color: var(--es-navy); --bs-btn-disabled-border-color: var(--es-orange); box-shadow: 0 8px 18px -10px rgba(244, 155, 20, .9); }
.btn-es-outline { --bs-btn-color: var(--es-blue); --bs-btn-bg: #fff; --bs-btn-border-color: #C9D7EA; --bs-btn-hover-color: var(--es-blue-600); --bs-btn-hover-bg: var(--es-blue-50); --bs-btn-hover-border-color: #A9C1E0; --bs-btn-active-bg: #DCE8F7; --bs-btn-active-color: var(--es-blue-600); --bs-btn-active-border-color: #A9C1E0; --bs-btn-disabled-color: #7C8FA8; --bs-btn-disabled-bg: #F4F7FB; --bs-btn-disabled-border-color: #DCE3EE; }
.btn-es-soft { --bs-btn-color: var(--es-blue); --bs-btn-bg: var(--es-blue-50); --bs-btn-border-color: transparent; --bs-btn-hover-color: var(--es-blue-600); --bs-btn-hover-bg: #DCE8F7; --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: #CFE0F4; --bs-btn-active-color: var(--es-blue-600); }
.btn-es-ghost-light { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .08); --bs-btn-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-border-color: #fff; --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .2); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .bi { display: none; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: es-spin .7s linear infinite; }
@keyframes es-spin { to { transform: rotate(360deg); } }

/* ---------- formulaires ---------- */
.form-label { font-weight: 600; font-size: .86rem; color: var(--es-navy); margin-bottom: .35rem; }
.form-control, .form-select, .input-group-text { border-color: #D6DEE9; border-radius: 11px; }
.form-control { padding: .6rem .85rem; }
.form-control-lg, .input-group-lg > .form-control, .input-group-lg > .input-group-text { font-size: 1rem; padding: .72rem .95rem; border-radius: 12px; }
.input-group-text { background: #F6F8FB; color: var(--es-muted); font-weight: 600; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #7FA6D6; box-shadow: 0 0 0 .22rem rgba(21, 88, 158, .15); }
.form-check-input { width: 1.15em; height: 1.15em; margin-top: .2em; border-color: #B9C6D8; }
.form-check-input:checked { background-color: var(--es-blue); border-color: var(--es-blue); }
.form-text { color: var(--es-muted); font-size: .8rem; }
.invalid-feedback { font-size: .82rem; }
.invalid-feedback:not(:empty) { display: block; }
.es-input-icon { position: relative; }
.es-input-icon > .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #8A97A8; pointer-events: none; font-size: 1.05rem; z-index: 2; }
.es-input-icon > .form-control { padding-left: 2.7rem; }
.es-password > .form-control { padding-right: 3rem; }
.es-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--es-muted); width: 2.4rem; height: 2.4rem; border-radius: 9px; z-index: 3; }
.es-eye:hover { background: var(--es-line-2); color: var(--es-navy); }
.es-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .45em; font-size: 1.3rem !important; font-weight: 700; text-align: center; }

/* ---------- alertes ---------- */
.es-alert { display: flex; align-items: flex-start; gap: .7rem; border-radius: 13px; border: 0; padding: .85rem 1rem; font-size: .9rem; }
.es-alert > .bi { font-size: 1.1rem; margin-top: .05rem; flex: none; }
.es-alert.alert-dismissible { padding-right: 3rem; }
.alert-success { --bs-alert-bg: var(--es-success-50); --bs-alert-color: #0B5E43; }
.alert-danger { --bs-alert-bg: var(--es-danger-50); --bs-alert-color: #8E2620; }
.alert-warning { --bs-alert-bg: var(--es-warning-50); --bs-alert-color: #7A4A00; }
.alert-info { --bs-alert-bg: var(--es-info-50); --bs-alert-color: #0E3F73; }

/* ---------- badges ---------- */
.es-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 650; padding: .26rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.2; vertical-align: middle; }
.es-badge .bi { font-size: .85em; }
.es-badge-success { background: var(--es-success-50); color: var(--es-success); }
.es-badge-danger { background: var(--es-danger-50); color: var(--es-danger); }
.es-badge-danger-solid { background: var(--es-danger); color: #fff; }
.es-badge-warning { background: var(--es-warning-50); color: var(--es-warning); }
.es-badge-info { background: var(--es-info-50); color: var(--es-info); }
.es-badge-muted { background: #EEF1F5; color: #586375; }
.es-badge-light { background: rgba(255, 255, 255, .14); color: #fff; }
.es-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.35rem; padding: 0 .4rem; font-size: .72rem; font-weight: 700; color: var(--es-muted); background: #EEF1F5; border-radius: 999px; margin-left: .35rem; vertical-align: middle; }
.es-you { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--es-blue); background: var(--es-blue-50); padding: .1rem .4rem; border-radius: 6px; margin-left: .25rem; vertical-align: middle; }

/* ---------- marque ---------- */
.es-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--es-navy); text-decoration: none; letter-spacing: -.02em; }
.es-brand:hover { color: var(--es-navy); }
.es-brand b { color: var(--es-blue); font-weight: 800; }
.es-brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 3px; box-shadow: 0 1px 4px rgba(13, 37, 65, .15); }
.es-brand-sm { font-size: 1.05rem; }
.es-brand-sm img { width: 30px; height: 30px; border-radius: 9px; }
.es-brand-light, .es-brand-light:hover { color: #fff; }
.es-brand-light b { color: var(--es-orange); }

/* ---------- coquille ---------- */
.es-shell { min-height: 100vh; }
.es-sidebar { background: linear-gradient(185deg, var(--es-navy) 0%, #0F2C4E 60%, #0D2541 100%); color: #C9D5E6; display: flex; flex-direction: column; }
.es-sidebar.offcanvas-lg { --bs-offcanvas-width: 290px; --bs-offcanvas-bg: var(--es-navy); }
.es-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.25rem .75rem; }
.es-sidebar .es-brand { color: #fff; }
.es-sidebar .es-brand b { color: var(--es-orange); }
.es-sidebar-member { display: flex; align-items: center; gap: .75rem; margin: .5rem 1rem 1rem; padding: .8rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); }
.es-sidebar-name { color: #fff; font-weight: 650; font-size: .92rem; }
.es-sidebar-type { font-size: .76rem; color: #9FB1C9; }
.es-nav { flex: 1; overflow-y: auto; padding: 0 .75rem 1rem; }
.es-nav ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.es-nav-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #7E93B0; padding: .9rem .75rem .4rem; }
.es-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; margin-bottom: 2px; border-radius: 11px; color: #C9D5E6; text-decoration: none; font-weight: 550; font-size: .92rem; position: relative; transition: background-color .15s, color .15s; }
.es-nav a .bi { font-size: 1.1rem; width: 1.2rem; text-align: center; color: #8EA3BF; transition: color .15s; }
.es-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.es-nav a:hover .bi { color: #fff; }
.es-nav a.active { background: rgba(255, 255, 255, .11); color: #fff; }
.es-nav a.active .bi { color: var(--es-orange); }
.es-nav a.active::before { content: ""; position: absolute; left: -.75rem; top: .55rem; bottom: .55rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--es-orange); }
.es-nav-count { margin-left: auto; background: var(--es-orange); color: var(--es-navy); font-size: .7rem; font-weight: 800; min-width: 1.35rem; height: 1.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 .35rem; }
.es-sidebar-foot { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.es-help { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; color: #9FB1C9; margin-bottom: .75rem; }
.es-help > .bi { font-size: 1.2rem; color: var(--es-orange); }
.es-help strong { display: block; color: #fff; font-weight: 600; }
.es-help a { color: #C9D5E6; word-break: break-all; }
.es-back-site { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: #9FB1C9; text-decoration: none; }
.es-back-site:hover { color: #fff; }

.es-main-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.es-topbar { position: sticky; top: 0; z-index: 1020; height: var(--es-topbar); display: flex; align-items: center; gap: .75rem; padding: 0 1rem; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--es-line); }
.es-topbar-title { font-size: .88rem; font-weight: 600; color: var(--es-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--es-line); background: #fff; color: var(--es-navy); font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center; }
.es-user-btn { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--es-line); background: #fff; border-radius: 999px; padding: .22rem .7rem .22rem .22rem; color: var(--es-navy); font-weight: 600; font-size: .88rem; max-width: 220px; }
.es-user-btn:hover { border-color: #C9D7EA; }
.es-user-menu { min-width: 250px; border-radius: 14px; border-color: var(--es-line); padding: .4rem; }
.es-user-menu .dropdown-item { border-radius: 9px; padding: .5rem .75rem; display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.es-pill-alert { align-items: center; gap: .4rem; background: var(--es-orange-50); color: #8A5300; font-weight: 650; font-size: .82rem; padding: .42rem .8rem; border-radius: 999px; text-decoration: none; border: 1px solid #FBD9A3; }
.es-pill-alert:hover { background: #FFE9C4; color: #6E4200; }

.es-main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.25rem 1rem 6.5rem; }
.es-footer { display: none; }

@media (min-width: 992px) {
    .es-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--es-sidebar); z-index: 1030; }
    .es-main-wrap { margin-left: var(--es-sidebar); }
    .es-topbar { padding: 0 2rem; }
    .es-main { padding: 1.75rem 2rem 2.5rem; }
    .es-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 2rem 1.5rem; color: #8592A3; font-size: .78rem; max-width: 1280px; width: 100%; margin: 0 auto; }
}

/* barre de navigation basse (mobile) */
.es-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; display: flex; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--es-line); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px rgba(13, 37, 65, .4); }
.es-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .2rem; font-size: .68rem; font-weight: 600; color: #6B7788; text-decoration: none; border-radius: 10px; min-width: 0; }
.es-bottom-nav a .bi { font-size: 1.25rem; }
.es-bottom-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.es-bottom-nav a.active { color: var(--es-blue); }

/* ---------- en-tête de page ---------- */
.es-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.es-page-title { font-size: 1.45rem; font-weight: 800; margin: 0; }
.es-page-sub { margin: .35rem 0 0; color: var(--es-muted); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.es-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.es-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .35rem; padding: 0; font-size: .8rem; color: var(--es-muted); }
.es-crumbs li + li::before { content: "/"; margin-right: .3rem; color: #B3BDCB; }
.es-crumbs a { color: var(--es-muted); text-decoration: none; }
.es-crumbs a:hover { color: var(--es-blue); }
@media (min-width: 992px) { .es-page-title { font-size: 1.7rem; } }
@media (max-width: 575.98px) { .es-page-actions { width: 100%; } .es-page-actions .btn { flex: 1; } }

/* ---------- cartes ---------- */
.es-card { background: var(--es-surface); border: 1px solid var(--es-line); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: 1.1rem; }
@media (min-width: 768px) { .es-card { padding: 1.4rem; } }
.es-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.es-card-head h3 { font-size: 1.02rem; font-weight: 750; margin: 0; display: flex; align-items: center; gap: .5rem; }
.es-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.es-link .bi { transition: transform .15s; }
.es-link:hover .bi { transform: translateX(2px); }
.es-section { margin-bottom: 1.75rem; }
.es-section-title { font-size: 1.05rem; font-weight: 750; display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; color: var(--es-navy); }
.es-section-title .bi { color: var(--es-blue); }
.es-subhead { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--es-muted); margin: 1.4rem 0 .75rem; }
.es-hint { color: var(--es-muted); font-size: .85rem; }
.lead-sm { font-size: 1rem; color: var(--es-muted); max-width: 560px; margin: 0 auto; }

/* échéance mise en avant */
.es-due { position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 1.35rem; background: radial-gradient(120% 140% at 100% 0%, #1E6DBE 0%, var(--es-blue) 35%, var(--es-navy) 100%); box-shadow: var(--es-shadow-lg); display: flex; flex-direction: column; }
.es-due::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(244, 155, 20, .16); }
@media (min-width: 768px) { .es-due { padding: 1.75rem; } }
.es-due-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.es-due-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: #BFD3EA; }
.es-due-amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .5rem; line-height: 1.1; position: relative; z-index: 1; }
.es-due-ok { font-size: 1.6rem; display: flex; gap: .6rem; align-items: center; }
@media (min-width: 768px) { .es-due-amount { font-size: 2.6rem; } }
.es-due-meta { display: flex; flex-direction: column; gap: .3rem; color: #D5E2F2; font-size: .9rem; position: relative; z-index: 1; }
.es-due-meta strong { color: #fff; }
.es-due-meta .bi { opacity: .8; margin-right: .2rem; }
.es-due-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.25rem; position: relative; z-index: 1; }
@media (max-width: 575.98px) { .es-due-actions .btn { flex: 1 1 100%; } }

/* indicateurs */
.es-kpi { height: 100%; background: #fff; border: 1px solid var(--es-line); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: 1rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
@media (min-width: 768px) { .es-kpi { padding: 1.2rem; } }
.es-kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--es-success-50); color: var(--es-success); margin-bottom: .45rem; }
.es-kpi-icon.is-blue { background: var(--es-blue-50); color: var(--es-blue); }
.es-kpi-icon.is-navy { background: #E6EAF1; color: var(--es-navy); }
.es-kpi-icon.is-success { background: var(--es-success-50); color: var(--es-success); }
.es-kpi.is-danger .es-kpi-icon { background: var(--es-danger-50); color: var(--es-danger); }
.es-kpi.is-danger .es-kpi-value { color: var(--es-danger); }
.es-kpi-label { font-size: .78rem; font-weight: 600; color: var(--es-muted); }
.es-kpi-value { font-size: 1.25rem; font-weight: 800; color: var(--es-navy); letter-spacing: -.02em; line-height: 1.2; word-break: break-word; }
.es-kpi-value small { font-size: .78rem; font-weight: 600; color: var(--es-muted); letter-spacing: 0; }
@media (min-width: 768px) { .es-kpi-value { font-size: 1.45rem; } }
.es-kpi-foot { font-size: .78rem; color: var(--es-muted); margin-top: auto; padding-top: .25rem; }
.es-kpi-foot a { font-weight: 600; text-decoration: none; }
.es-progress { display: block; height: 6px; border-radius: 6px; background: #EAEFF5; overflow: hidden; margin-top: .45rem; }
.es-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--es-blue); }
.es-progress.is-success > span { background: var(--es-success); }

/* baux à signer */
.es-sign-callout { display: flex; gap: 1rem; padding: 1.15rem; margin-bottom: 1.5rem; border-radius: 18px; background: linear-gradient(120deg, #FFF6E6 0%, #FFFBF3 100%); border: 1px solid #FAD9A1; box-shadow: 0 10px 30px -22px rgba(184, 110, 0, .7); }
@media (min-width: 768px) { .es-sign-callout { padding: 1.4rem 1.5rem; } }
.es-sign-callout-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--es-orange); color: var(--es-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.es-sign-callout-body { flex: 1; min-width: 0; }
.es-sign-callout h2 { font-size: 1.08rem; font-weight: 800; margin: .1rem 0 .25rem; }
.es-sign-callout p { color: #6D5530; font-size: .88rem; margin: 0 0 .75rem; }
.es-sign-callout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.es-sign-callout-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .8rem; background: #fff; border: 1px solid #F6E2BE; border-radius: 13px; }
.es-sign-callout-list strong { display: block; color: var(--es-navy); }
.es-sign-callout-list span { font-size: .82rem; color: var(--es-muted); }
@media (max-width: 575.98px) { .es-sign-callout { flex-direction: column; } .es-sign-callout-list .btn { width: 100%; } }
.es-inline-callout { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .85rem 1rem; margin-bottom: 1.25rem; border-radius: 14px; background: var(--es-orange-50); border: 1px solid #FAD9A1; color: #6D4A10; font-size: .9rem; }
.es-inline-callout > .bi { color: var(--es-orange-600); font-size: 1.2rem; }
.es-inline-callout > div { flex: 1; min-width: 200px; }

/* contrats */
.es-lease-list { display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr); }
.es-lease { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--es-line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; background: #fff; }
.es-lease:hover { border-color: #BFD1E8; box-shadow: 0 8px 22px -16px rgba(13, 37, 65, .45); color: inherit; }
.es-lease-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--es-blue-50); color: var(--es-blue); }
.es-lease-icon.is-owner { background: #E6EAF1; color: var(--es-navy); }
.es-lease-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.es-lease-title { font-weight: 700; color: var(--es-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-lease-meta { font-size: .8rem; color: var(--es-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-lease-meta strong { color: var(--es-text); font-weight: 600; }
.es-lease-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.es-lease-amount { font-weight: 800; color: var(--es-navy); white-space: nowrap; }
.es-lease-amount small { font-weight: 500; color: var(--es-muted); font-size: .75rem; margin-left: .1rem; }
.es-lease-chev { color: #A8B4C4; flex: none; }
/* ligne de contrat compacte quand la colonne est étroite (requête de conteneur) */
.es-lease-list { container-type: inline-size; }
@container (max-width: 620px) {
    .es-lease { flex-wrap: wrap; row-gap: .5rem; }
    .es-lease-body { flex-basis: calc(100% - 60px); }
    .es-lease-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; padding-left: 59px; }
    .es-lease-chev { display: none; }
}

/* listes */
.es-list { list-style: none; margin: 0; padding: 0; }
.es-list li { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--es-line-2); }
.es-list li:first-child { padding-top: 0; }
.es-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.es-list-icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--es-blue-50); color: var(--es-blue); }
.es-list-icon.is-success { background: var(--es-success-50); color: var(--es-success); }
.es-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.es-list-body strong { color: var(--es-navy); font-weight: 700; }
.es-list-body span { font-size: .8rem; color: var(--es-muted); }

/* avatars */
.es-avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--es-blue) 0%, #2B7CD0 100%); color: #fff; font-weight: 750; letter-spacing: .02em; }
.es-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.es-avatar-md { width: 42px; height: 42px; font-size: .9rem; }
.es-avatar-lg { width: 44px; height: 44px; font-size: .95rem; background: linear-gradient(135deg, var(--es-orange) 0%, #F7B648 100%); color: var(--es-navy); }
.es-avatar-xl { width: 88px; height: 88px; font-size: 1.8rem; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--es-line); }

/* vide */
.es-empty { text-align: center; padding: 1.75rem 1rem; color: var(--es-muted); }
.es-empty-icon { width: 56px; height: 56px; border-radius: 16px; background: #F0F3F8; color: #8494AA; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .75rem; }
.es-empty strong { display: block; color: var(--es-navy); margin-bottom: .2rem; }
.es-empty p { font-size: .86rem; max-width: 380px; margin: 0 auto; }

/* détail du contrat */
.es-property { display: flex; gap: .9rem; align-items: flex-start; }
.es-property-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--es-blue-50); color: var(--es-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.es-property > div { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; min-width: 0; }
.es-property strong { font-size: 1.02rem; color: var(--es-navy); }
.es-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
@media (min-width: 768px) { .es-terms { grid-template-columns: repeat(4, minmax(0, 1fr)); } .col-lg-7 .es-terms:not(.es-terms-compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .col-lg-7 .es-terms:not(.es-terms-compact) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.es-terms > div { background: #F7F9FC; border: 1px solid var(--es-line-2); border-radius: 12px; padding: .7rem .8rem; min-width: 0; }
.es-terms dt { font-size: .74rem; font-weight: 600; color: var(--es-muted); margin-bottom: .15rem; }
.es-terms dt .bi { color: #8A9AB0; }
.es-terms dd { margin: 0; font-weight: 700; color: var(--es-navy); font-size: .92rem; }
.es-terms-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
@media (max-width: 575.98px) { .es-terms-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.es-terms-list { display: block; }
.es-terms-list > div { display: flex; justify-content: space-between; gap: 1rem; background: none; border: 0; border-bottom: 1px dashed var(--es-line); border-radius: 0; padding: .55rem 0; }
.es-terms-list > div:last-child { border-bottom: 0; }
.es-terms-list dt { margin: 0; font-size: .85rem; font-weight: 500; }
.es-terms-list dd { text-align: right; font-size: .88rem; }
.es-terms-list > .is-strong dt, .es-terms-list > .is-strong dd { color: var(--es-navy); font-weight: 800; font-size: 1rem; }

/* onglets */
.es-tabs { gap: .25rem; border-bottom: 1px solid var(--es-line); }
.es-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--es-muted); font-weight: 650; padding: .55rem .85rem; margin-bottom: -1px; background: none; }
.es-tabs .nav-link:hover { color: var(--es-navy); }
.es-tabs .nav-link.active { color: var(--es-blue); border-bottom-color: var(--es-blue); }
.es-segmented { display: inline-flex; padding: 3px; background: #EEF1F6; border-radius: 12px; gap: 2px; }
.es-segmented a { padding: .4rem .85rem; border-radius: 9px; font-size: .84rem; font-weight: 650; color: var(--es-muted); text-decoration: none; }
.es-segmented a.active { background: #fff; color: var(--es-navy); box-shadow: 0 1px 3px rgba(13, 37, 65, .12); }

/* tableaux (cartes empilées sur mobile) */
.es-table-wrap { margin: 0 -.25rem; }
.es-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.es-table th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--es-muted); padding: .6rem .7rem; border-bottom: 1px solid var(--es-line); white-space: nowrap; background: #FAFBFD; }
.es-table th:first-child { border-top-left-radius: 10px; }
.es-table th:last-child { border-top-right-radius: 10px; }
.es-table td { padding: .8rem .7rem; border-bottom: 1px solid var(--es-line-2); vertical-align: middle; }
.es-table tbody tr:last-child td { border-bottom: 0; }
.es-table tbody tr:hover td { background: #FAFCFF; }
.es-table td strong { color: var(--es-navy); }
.es-td-actions { white-space: nowrap; }
.es-td-actions .btn + .btn { margin-left: .3rem; }
@media (max-width: 767.98px) {
    .es-table thead { display: none; }
    .es-table, .es-table tbody, .es-table tr, .es-table td { display: block; width: 100%; }
    .es-table tr { border: 1px solid var(--es-line); border-radius: 14px; padding: .55rem .85rem; margin-bottom: .65rem; background: #fff; }
    .es-table td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border: 0; text-align: right !important; }
    .es-table td[data-label]::before { content: attr(data-label); font-size: .76rem; font-weight: 600; color: var(--es-muted); text-align: left; flex: none; }
    .es-table td:first-child { text-align: left !important; display: block; padding-bottom: .5rem; margin-bottom: .2rem; border-bottom: 1px solid var(--es-line-2); }
    .es-table td:first-child::before { display: none; }
    .es-table td[data-label] small.d-block { display: none !important; }
    .es-table td:first-child small.d-block { display: block !important; margin-left: 0; }
    .es-table td.es-td-actions { justify-content: flex-end; padding-top: .55rem; margin-top: .2rem; border-top: 1px solid var(--es-line-2); }
    .es-table tbody tr:hover td { background: none; }
}

/* signataires */
.es-signers { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.es-signers li { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--es-line); border-radius: 13px; }
.es-signers li.is-signed { border-color: #BFE6D5; background: #F5FCF9; }
.es-signer-state { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EEF1F5; color: #7A8698; }
.is-signed .es-signer-state { background: var(--es-success); color: #fff; }
.is-pending .es-signer-state { background: var(--es-warning-50); color: var(--es-warning); }
.es-signer-img { height: 38px; max-width: 110px; object-fit: contain; flex: none; }

/* page de signature */
.es-step { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--es-navy); color: #fff; font-size: .78rem; font-weight: 800; flex: none; }
.es-form-step { font-size: .98rem; font-weight: 750; display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; }
.es-parties-mini { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; background: var(--es-blue-50); border-radius: 13px; margin-bottom: .75rem; }
.es-parties-mini > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.es-parties-mini > div:last-child { text-align: right; }
.es-parties-mini span { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--es-muted); font-weight: 700; }
.es-parties-mini strong { color: var(--es-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-parties-mini > .bi { color: var(--es-blue); font-size: 1.1rem; }
.es-pdf-frame { border: 1px solid var(--es-line); border-radius: 14px; overflow: hidden; background: #525659; height: 640px; }
.es-pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.es-pdf-mobile { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1px solid var(--es-line); border-radius: 14px; text-decoration: none; color: inherit; background: #FBFCFE; }
.es-pdf-mobile > .bi:first-child { font-size: 1.8rem; color: var(--es-danger); }
.es-pdf-mobile span { flex: 1; display: flex; flex-direction: column; }
.es-pdf-mobile strong { color: var(--es-navy); }
.es-pdf-mobile small { color: var(--es-muted); }
@media (min-width: 992px) { .es-sticky { position: sticky; top: calc(var(--es-topbar) + 1.25rem); } }
.es-accept { padding: .8rem .9rem .8rem 2.5rem; background: #F7F9FC; border: 1px solid var(--es-line); border-radius: 12px; }
.es-accept .form-check-label { font-size: .88rem; }
.es-accept.is-invalid { border-color: var(--bs-form-invalid-border-color); background: var(--es-danger-50); }

.es-pad { position: relative; height: 210px; border: 2px dashed #C3D1E4; border-radius: 16px; background: #fff; background-image: radial-gradient(#E8EEF6 1px, transparent 1px); background-size: 16px 16px; touch-action: none; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.es-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; z-index: 2; }
.es-pad:hover { border-color: #9DB6D6; }
.es-pad.is-active { border-color: var(--es-blue); border-style: solid; box-shadow: 0 0 0 4px rgba(21, 88, 158, .1); }
.es-pad.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.es-pad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; color: #98A6B8; font-size: .92rem; pointer-events: none; z-index: 1; transition: opacity .15s; }
.es-pad.has-ink .es-pad-hint { opacity: 0; }
.es-pad-line { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 46px; border-bottom: 1.5px solid #CBD6E4; pointer-events: none; z-index: 1; }
.es-pad-line::before { content: "×"; position: absolute; left: 0; bottom: 2px; color: #A9B6C7; font-size: 1.1rem; line-height: 1; }
.es-pad-clear { position: absolute; top: .5rem; right: .5rem; z-index: 3; border: 1px solid var(--es-line); background: rgba(255, 255, 255, .95); border-radius: 9px; padding: .28rem .6rem; font-size: .78rem; font-weight: 600; color: var(--es-muted); display: inline-flex; gap: .3rem; align-items: center; }
.es-pad-clear:hover { color: var(--es-danger); border-color: #F1C2BE; }
.es-pad:not(.has-ink) .es-pad-clear { visibility: hidden; }
.es-code-row { display: flex; gap: .6rem; }
.es-code-row .es-code-input { flex: 1; min-width: 0; }
.es-code-btn { flex: none; white-space: nowrap; min-width: 11.5rem; }
@media (max-width: 420px) { .es-code-row { flex-direction: column; } .es-code-btn { min-width: 0; } }
.es-code-status { color: var(--es-success); }
.es-code-status.is-error { color: var(--es-danger); }
.es-legal { display: flex; gap: .5rem; font-size: .76rem; color: var(--es-muted); margin: 1rem 0 0; line-height: 1.5; }
.es-legal > .bi { flex: none; margin-top: .1rem; color: #8A9AB0; }
.es-legal code { font-size: .74rem; color: var(--es-navy); background: #F0F3F8; padding: .05rem .3rem; border-radius: 5px; }

/* résultat (signature, paiement, erreur) */
.es-result { text-align: center; padding: 2rem 1.25rem; max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .es-result { padding: 2.75rem 2.5rem; } }
.es-result h2 { font-size: 1.45rem; font-weight: 800; margin: .5rem 0 .6rem; }
.es-result-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.3rem; margin-bottom: .4rem; }
.es-result-icon.is-success { background: var(--es-success-50); color: var(--es-success); box-shadow: 0 0 0 10px #F2FBF7; }
.es-result-icon.is-danger { background: var(--es-danger-50); color: var(--es-danger); box-shadow: 0 0 0 10px #FEF5F4; }
.es-result-icon.is-warning { background: var(--es-warning-50); color: var(--es-warning); box-shadow: 0 0 0 10px #FFFAF1; }
.es-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
@media (max-width: 575.98px) { .es-result-actions .btn { width: 100%; } }
.es-result-signers { text-align: left; margin-top: 2rem; }

/* paiement */
.es-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.es-method { position: relative; display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 2px solid var(--es-line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; background: #fff; }
.es-method:hover { border-color: #BFD1E8; }
.es-method input { position: absolute; opacity: 0; pointer-events: none; }
.es-method-logo { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; color: #fff; }
.es-method-tmoney .es-method-logo { background: linear-gradient(135deg, #FFD200 0%, #F5A800 100%); color: #003E7E; }
.es-method-flooz .es-method-logo { background: linear-gradient(135deg, #0A6CC2 0%, #034A8C 100%); }
.es-method-text { display: flex; flex-direction: column; min-width: 0; }
.es-method-text strong { color: var(--es-navy); }
.es-method-text small { color: var(--es-muted); font-size: .76rem; }
.es-method-check { position: absolute; top: .5rem; right: .55rem; color: var(--es-blue); opacity: 0; transition: opacity .15s; }
.es-method:has(input:checked) { border-color: var(--es-blue); background: #F5F9FE; box-shadow: 0 0 0 3px rgba(21, 88, 158, .1); }
.es-method:has(input:checked) .es-method-check { opacity: 1; }
.es-method:has(input:focus-visible) { outline: 3px solid rgba(244, 155, 20, .8); outline-offset: 2px; }
.es-total { margin-top: 1.25rem; background: #F7F9FC; border: 1px solid var(--es-line); border-radius: 14px; padding: .4rem 1rem; }
.es-total > div { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; color: var(--es-muted); }
.es-total > div + div { border-top: 1px dashed var(--es-line); }
.es-total strong { color: var(--es-navy); }
.es-total .es-total-sum span { color: var(--es-navy); font-weight: 700; }
.es-total .es-total-sum strong { font-size: 1.15rem; }
.es-steps-help { margin-top: 1rem; display: grid; gap: .5rem; }
.es-steps-help > div { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--es-muted); padding: .2rem .25rem; }
.es-steps-help span { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--es-blue-50); color: var(--es-blue); font-weight: 800; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.es-phone-anim { width: 84px; height: 84px; margin: 0 auto .5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: var(--es-blue-50); color: var(--es-blue); position: relative; }
.es-phone-anim::before, .es-phone-anim::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(21, 88, 158, .35); animation: es-ring 2s ease-out infinite; }
.es-phone-anim::after { animation-delay: 1s; }
.es-phone-anim .bi { animation: es-buzz 2s ease-in-out infinite; }
@keyframes es-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes es-buzz { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-10deg); } 70% { transform: rotate(10deg); } 75% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.es-wait { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .55rem 1rem; border-radius: 999px; background: #F2F5FA; color: var(--es-navy); font-weight: 600; font-size: .88rem; }
.es-pay-summary { max-width: 460px; margin: 2rem auto 0; text-align: left; border-top: 1px solid var(--es-line); padding-top: 1rem; }

/* biens */
.es-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.es-bien { border: 1px solid var(--es-line); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .4rem; position: relative; overflow: hidden; }
.es-bien::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--es-success); }
.es-bien.is-busy::before { background: var(--es-blue); }
.es-bien-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.es-bien-head strong { color: var(--es-navy); }
.es-bien-meta { font-size: .82rem; color: var(--es-muted); }
.es-bien-tenant { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; padding: .55rem .65rem; border-radius: 11px; background: #F5F8FC; text-decoration: none; color: inherit; font-size: .84rem; }
.es-bien-tenant:hover { background: var(--es-blue-50); color: inherit; }
.es-bien-tenant > span.min-w-0 { flex: 1; }
.es-bien-tenant strong { color: var(--es-navy); }
.es-bien-tenant small { color: var(--es-muted); }
.es-bien-tenant > .bi:last-child { color: #A8B4C4; }
.es-bien-tenant.is-empty { color: var(--es-muted); background: #FAFBFC; border: 1px dashed var(--es-line); font-size: .8rem; }

/* profil */
.es-profile-card { text-align: center; }
.es-profile-card h2 { font-size: 1.2rem; font-weight: 800; margin: 1rem 0 .15rem; }
.es-profile-card > p { color: var(--es-muted); font-size: .88rem; margin-bottom: 1rem; }

/* ==========================================================================
   Pages de connexion
   ========================================================================== */
.es-auth { min-height: 100vh; display: flex; }
.es-auth-aside { display: none; }
.es-auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1rem 1rem 2rem; min-width: 0; }
.es-auth-top { width: 100%; max-width: 460px; display: flex; align-items: center; margin-bottom: 1.5rem; }
.es-link-muted { color: var(--es-muted); text-decoration: none; font-size: .86rem; font-weight: 550; display: inline-flex; align-items: center; gap: .35rem; }
.es-link-muted:hover { color: var(--es-blue); }
.es-auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--es-line); border-radius: 22px; padding: 1.5rem 1.25rem; box-shadow: 0 20px 50px -30px rgba(13, 37, 65, .45); }
@media (min-width: 576px) { .es-auth-card { padding: 2.25rem 2.25rem; } .es-auth-main { justify-content: center; } }
.es-auth-title { font-size: 1.55rem; font-weight: 800; margin: 0 0 .4rem; }
.es-auth-lead { color: var(--es-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.es-auth-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--es-blue-50); color: var(--es-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; margin-bottom: 1rem; }
.es-auth-sep { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; color: var(--es-muted); font-size: .82rem; }
.es-auth-sep::before, .es-auth-sep::after { content: ""; flex: 1; border-top: 1px solid var(--es-line); }
.es-auth-note { font-size: .8rem; color: var(--es-muted); margin: .9rem 0 0; }
.es-auth-foot { font-size: .82rem; color: var(--es-muted); margin-top: 1.5rem; text-align: center; }
@media (min-width: 992px) {
    .es-auth-aside { display: flex; flex-direction: column; width: 46%; max-width: 640px; padding: 2.5rem 3rem; color: #fff; position: relative; overflow: hidden;
        background: radial-gradient(90% 70% at 100% 0%, rgba(30, 109, 190, .65) 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(244, 155, 20, .22) 0%, transparent 60%), linear-gradient(160deg, #0F2E52 0%, var(--es-navy) 70%); }
    .es-auth-aside::after { content: ""; position: absolute; right: -120px; top: 38%; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .04); }
    .es-auth-pitch { margin-top: auto; position: relative; z-index: 1; }
    .es-auth-pitch h2 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
    .es-auth-pitch h2 span { color: var(--es-orange); }
    .es-auth-pitch p { color: #C3D2E6; font-size: 1.02rem; max-width: 440px; margin-bottom: 1.5rem; }
    .es-auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
    .es-auth-pitch li { display: flex; align-items: center; gap: .7rem; color: #E1E9F4; font-weight: 550; }
    .es-auth-pitch li .bi { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--es-orange); }
    .es-auth-mock { position: relative; z-index: 1; margin: 2.25rem 0 auto; height: 185px; }
    .es-mock-card { position: absolute; left: 0; top: 0; width: 300px; background: #fff; color: var(--es-text); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); transform: rotate(-2deg); }
    .es-mock-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--es-muted); font-weight: 700; }
    .es-mock-amount { font-size: 1.6rem; font-weight: 800; color: var(--es-navy); margin: .2rem 0 .6rem; }
    .es-mock-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--es-muted); }
    .es-mock-btn { background: var(--es-orange); color: var(--es-navy); font-weight: 750; padding: .3rem .8rem; border-radius: 8px; }
    .es-mock-card-2 { left: 170px; top: 128px; width: auto; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; font-size: .84rem; font-weight: 650; color: var(--es-navy); transform: rotate(1.5deg); }
    .es-mock-card-2 .bi { color: var(--es-success); font-size: 1.1rem; }
    .es-auth-copy { position: relative; z-index: 1; color: #7F94B2; font-size: .8rem; margin: 0; }
    .es-auth-main { padding: 2rem; }
    .es-auth-top { position: absolute; top: 1.5rem; right: 2rem; width: auto; max-width: none; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html, body { overflow-x: clip; }
@media (max-width: 575.98px) {
    .es-parties-mini { flex-direction: column; align-items: stretch; gap: .35rem; }
    .es-parties-mini > div:last-child { text-align: left; }
    .es-parties-mini strong { white-space: normal; }
    .es-parties-mini > .bi { transform: rotate(90deg); align-self: flex-start; margin-left: .25rem; }
}
