@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap'); :root {
    --navy: #071525;
    --navy2: #0c1e33;
    --navy3: #102a48;
    --gold: #c7a05a;
    --gold2: #e1c88d;
    --ink: #152237;
    --muted: #728096;
    --line: #e3e8ef;
    --soft: #f5f7fa;
    --white: #fff;
    --green: #1e8c6a;
    --red: #b44b57;
    --blue: #477eea;
    --shadow: 0 18px 55px rgba(16,34,57,.10)
}

* {
    box-sizing: border-box
}

html,body {
    margin: 0;
    min-height: 100%;
    font-family: Poppins,Arial,sans-serif;
    color: var(--ink);
    background: #f5f7fa
}

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

button,input,textarea,select {
    font: inherit
}

h1,h2,h3 {
    font-family: 'Playfair Display',Georgia,serif;
    margin: 0;
    color: #0b1b30
}

p {
    line-height: 1.7
}

label {
    font-size: 12px;
    font-weight: 600;
    color: #415065;
    display: block
}

input,textarea,select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 10px;
    padding: 12px 13px;
    outline: none;
    color: #17263b;
    transition: .2s
}

input:focus,textarea:focus,select:focus {
    border-color: #b89758;
    box-shadow: 0 0 0 4px rgba(199,160,90,.12)
}

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

.two,.three {
    display: grid;
    gap: 14px
}

.two {
    grid-template-columns: 1fr 1fr
}

.three {
    grid-template-columns: repeat(3,1fr)
}

.stack {
    display: grid;
    gap: 14px
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .22s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn-primary {
    background: linear-gradient(135deg,#b98c42,#d4b06c);
    color: #fff;
    box-shadow: 0 9px 24px rgba(185,140,66,.22)
}

.btn-light {
    background: #fff;
    border: 1px solid #dfe5ec;
    color: #20324a
}

.btn-danger {
    background: #fff0f2;
    color: #a93548
}

.btn-block {
    width: 100%
}

.small-btn {
    padding: 7px 10px;
    font-size: 11px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10px;
    font-weight: 700;
    color: #ae8441
}

.eyebrow.light {
    color: #dcc58f
}

.brand-mark {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(212,176,108,.7);
    display: grid;
    place-items: center;
    font-family: 'Playfair Display';
    font-size: 24px;
    color: var(--gold2);
    border-radius: 16px;
    background: linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.01));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03)
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-size: 12px
}

.alert-error {
    background: #fff0f2;
    border: 1px solid #f2cbd1;
    color: #9b3344
}

.alert-success {
    background: #edf9f5;
    border: 1px solid #c8eadf;
    color: #20745c
}

.fade-out {
    opacity: 0;
    transition: opacity .8s
}

.auth-page {
    background: #edf1f5
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px,1.05fr) minmax(480px,.95fr)
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 58px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: radial-gradient(circle at 80% 15%,rgba(68,111,162,.28),transparent 31%),radial-gradient(circle at 20% 80%,rgba(199,160,90,.18),transparent 29%),linear-gradient(150deg,#06111f,#0b1d31 58%,#102b47)
}

.auth-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom,black,transparent)
}

.auth-hero:after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(214,180,111,.15);
    border-radius: 50%;
    right: -180px;
    bottom: -120px;
    box-shadow: 0 0 0 65px rgba(214,180,111,.025),0 0 0 130px rgba(214,180,111,.018)
}

.brand {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    align-items: center
}

.brand b {
    font-family: 'Playfair Display';
    letter-spacing: .08em;
    font-size: 16px
}

.brand span {
    display: block;
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #a9b5c5;
    margin-top: 3px
}

.hero-copy {
    position: relative;
    z-index: 2;
    margin: auto 0;
    max-width: 670px
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(48px,5vw,78px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.025em;
    margin: 17px 0 22px
}

.hero-copy h1 em {
    color: #fff;
    font-style: normal
}

.hero-copy p {
    color: #b8c5d5;
    font-size: 15px;
    max-width: 590px
}

.trust-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 28px
}

.trust-row span {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    padding: 9px 11px;
    border-radius: 99px;
    color: #ced7e1;
    font-size: 10px
}

.hero-foot {
    position: relative;
    z-index: 2;
    color: #8190a4;
    font-size: 10px
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background: radial-gradient(circle at 100% 0,#fff,transparent 35%),#f6f7f9
}

.auth-card {
    width: min(520px,100%);
    background: rgba(255,255,255,.9);
    border: 1px solid #e5e9ef;
    border-radius: 24px;
    padding: 38px 40px;
    box-shadow: 0 30px 80px rgba(31,47,67,.13);
    backdrop-filter: blur(12px)
}

.auth-head {
    text-align: center
}

.auth-head h2 {
    font-size: 38px;
    margin: 7px 0 6px
}

.auth-head p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 0
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f3f6;
    padding: 4px;
    border-radius: 11px;
    margin: 24px 0
}

.auth-tab {
    border: 0;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6c788a;
    cursor: pointer
}

.auth-tab.active {
    background: #fff;
    color: #12243b;
    box-shadow: 0 4px 14px rgba(20,35,55,.08)
}

.auth-form {
    display: none;
    gap: 15px
}

.auth-form.active {
    display: grid;
    animation: fadeup .35s ease
}

.password-wrap {
    position: relative
}

.password-wrap input {
    padding-right: 62px
}

.password-wrap .reveal {
    position: absolute;
    right: 9px;
    top: 15px;
    border: 0;
    background: transparent;
    font-size: 10px;
    color: #98733a;
    cursor: pointer
}

.form-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px
}

.form-line a,.text-link {
    color: #8b682f
}

.check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    color: #657286
}

.check input {
    width: auto;
    margin: 0
}

.demo-note {
    background: #f7f3eb;
    border: 1px solid #eadfc9;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.8;
    color: #6b5a3e
}

.setup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background: linear-gradient(145deg,#071525,#102d4b)
}

.setup-card {
    width: min(560px,100%);
    background: #fff;
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow)
}

.setup-card .brand-mark {
    background: #071525;
    margin-bottom: 20px
}

.setup-card h1 {
    font-size: 36px
}

.cred,.dev-link {
    background: #f5f7fa;
    padding: 14px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.8
}

.app-body {
    background: #f4f6f9
}

.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg,#061322,#091a2c);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    color: #d6deea;
    z-index: 20
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 6px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

.side-brand b {
    font-family: 'Playfair Display';
    font-size: 14px;
    letter-spacing: .06em;
    color: #fff
}

.side-brand span {
    display: block;
    font-size: 9px;
    color: #71839a;
    margin-top: 2px
}

.side-section {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 8px;
    color: #586b82;
    padding: 22px 11px 8px
}

.sidebar nav {
    display: grid;
    gap: 3px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 11px;
    color: #8ea0b5;
    transition: .2s
}

.nav-link>span {
    width: 18px;
    color: #7b8da2
}

.nav-link:hover {
    background: rgba(255,255,255,.05);
    color: #fff
}

.nav-link.active {
    background: linear-gradient(90deg,rgba(199,160,90,.18),rgba(199,160,90,.05));
    color: #fff;
    box-shadow: inset 2px 0 #c9a35b
}

.nav-link.active>span {
    color: #d3b36f
}

.nav-link em {
    font-style: normal;
    margin-left: auto;
    background: #b58b45;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    font-size: 8px
}

.side-support {
    margin-top: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 13px;
    background: rgba(255,255,255,.025)
}

.side-support span,.side-support a {
    display: block;
    font-size: 8px;
    color: #75879c
}

.side-support b {
    display: block;
    color: #d5dfeb;
    font-size: 10px;
    margin: 4px 0
}

.logout {
    margin-top: 8px
}

.main {
    min-width: 0
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 15
}

.top-title span {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #93a0af
}

.top-title b {
    font-family: 'Playfair Display';
    font-size: 16px
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center
}

.icon-btn i {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #b78b45;
    color: #fff;
    border-radius: 99px;
    font-size: 7px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    font-style: normal
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: linear-gradient(145deg,#142b46,#0c1d31);
    color: #d8bb7d;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display';
    font-weight: 700
}

.avatar.large {
    width: 46px;
    height: 46px
}

.user-chip b {
    display: block;
    font-size: 10px
}

.user-chip span {
    display: block;
    font-size: 8px;
    color: #8c98a7
}

.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px
}

.content {
    padding: 30px;
    max-width: 1720px;
    margin: auto
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 3px 0 25px
}

.page-heading h1 {
    font-size: 34px;
    margin: 4px 0
}

.page-heading p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    max-width: 720px
}

.search-input {
    width: 260px
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    margin-bottom: 18px
}

.kpi {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    padding: 18px 19px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(30,48,68,.04)
}

.kpi:after {
    content: "";
    position: absolute;
    inset: auto -20px -45px auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(197,157,83,.08)
}

.kpi span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #8c99a8;
    font-size: 8px
}

.kpi b {
    display: block;
    font-family: 'Playfair Display';
    font-size: 30px;
    margin: 7px 0 3px;
    color: #10233b
}

.kpi small {
    font-size: 8px;
    color: #9aa6b4
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1.7fr .8fr;
    gap: 16px;
    margin-bottom: 16px
}

.terminal-card,.panel,.form-card,.summary-card {
    background: #fff;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(30,48,68,.045)
}

.terminal-card {
    overflow: hidden
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 19px;
    border-bottom: 1px solid #edf0f4
}

.card-head h2 {
    font-size: 18px;
    margin-top: 3px
}

.card-head>a {
    font-size: 14px;
    color: #98733b
}

.legend {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #8895a5
}

.legend span {
    display: flex;
    gap: 5px;
    align-items: center
}

.legend i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #507fd4
}

.legend i.gold {
    background: #c69f57
}

.chart-stage {
    height: 310px;
    position: relative;
    padding: 20px 20px 33px 47px;
    background: linear-gradient(180deg,#fcfdff,#fafbfd)
}

.chart-scale {
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 7px;
    color: #a3adba
}

.progress-chart {
    width: 100%;
    height: 100%;
    overflow: visible
}

.gridline {
    fill: none;
    stroke: #e9edf2;
    stroke-width: 1
}

.area {
    fill: url(#fill)
}

.line {
    fill: none;
    stroke: #c59d55;
    stroke-width: 3
}

.area.blue {
    fill: rgba(68,122,217,.10)
}

.line.blue {
    stroke: #477ed8
}

.chart-labels {
    position: absolute;
    left: 47px;
    right: 20px;
    bottom: 11px;
    display: flex;
    justify-content: space-between;
    font-size: 7px;
    color: #9ca7b5
}

.watchlist {
    padding: 5px 0
}

.watchlist>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4;
    transition: .2s
}

.watchlist>a:hover {
    background: #f8fafc
}

.watchlist b {
    display: block;
    font-size: 9px
}

.watchlist span {
    display: block;
    font-size: 8px;
    color: #8c98a7;
    margin-top: 2px
}

.watch-progress {
    text-align: right
}

.watch-progress strong {
    font-size: 11px;
    color: #1f6f62
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 16px
}

.panel {
    overflow: hidden
}

.table-scroll {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px
}

th {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #91a0b0;
    font-size: 7px;
    font-weight: 600;
    padding: 11px 15px;
    background: #fafbfd;
    border-bottom: 1px solid #e8edf2
}

td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle
}

td b {
    font-size: 9px
}

td small {
    display: block;
    color: #93a0ae;
    font-size: 7px;
    margin-top: 3px
}

.table-link {
    font-size: 9px;
    color: #967037;
    font-weight: 600;
    white-space: nowrap
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 99px;
    padding: 5px 8px;
    font-size: 7px;
    font-weight: 600;
    background: #eef3f7;
    color: #607084;
    white-space: nowrap
}

.badge i {
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: #8191a3
}

.badge-in-progress,.badge-paid,.badge-completed,.badge-active {
    background: #e9f6f1;
    color: #23755e
}

.badge-in-progress i,.badge-paid i,.badge-completed i,.badge-active i {
    background: #2e9b78
}

.badge-under-review,.badge-pending {
    background: #fff5df;
    color: #8f6a23
}

.badge-under-review i,.badge-pending i {
    background: #c58e28
}

.badge-awaiting-client-documents,.badge-pending-action {
    background: #eef3ff;
    color: #4165a8
}

.badge-awaiting-client-documents i,.badge-pending-action i {
    background: #537bd1
}

.badge-failed,.badge-suspended,.badge-cancelled {
    background: #fff0f2;
    color: #a44050
}

.badge-failed i,.badge-suspended i,.badge-cancelled i {
    background: #bd5060
}

.mini-progress {
    width: 85px;
    height: 5px;
    border-radius: 99px;
    background: #edf1f5;
    overflow: hidden;
    display: inline-block
}

.mini-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#9b7134,#d3b16b)
}

.activity-list>a,.notification-item {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f4
}

.activity-list>a>i,.notification-item>i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c79d52;
    margin-top: 5px;
    flex: 0 0 auto
}

.activity-list b,.notification-item b {
    font-size: 9px
}

.activity-list p,.notification-item p {
    font-size: 8px;
    color: #758398;
    line-height: 1.5;
    margin: 3px 0
}

.activity-list span,.notification-item span {
    font-size: 7px;
    color: #a0aab7
}

.notification-item.unread {
    background: #fbf8f1
}

.notification-item>strong {
    margin-left: auto
}

.payment-list>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4
}

.payment-list b,.payment-list strong {
    font-size: 9px
}

.payment-list span {
    display: block;
    font-size: 7px;
    color: #8f9baa
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    padding-bottom: 100px
}

.service-card {
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: .25s;
    overflow: hidden
}

.service-card:before {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(199,160,90,.07)
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(26,42,62,.1);
    border-color: #d7c49f
}

.service-card.selectable {
    cursor: pointer
}

.service-card input[type=checkbox] {
    position: absolute;
    opacity: 0
}

.service-select {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d9e0e8;
    display: grid;
    place-items: center;
    color: transparent;
    background: #fff
}

.service-card.selected {
    border-color: #c9a35e;
    box-shadow: 0 12px 35px rgba(177,136,67,.12)
}

.service-card.selected .service-select {
    background: #b78c46;
    color: #fff;
    border-color: #b78c46
}

.service-icon {
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #0d2036;
    color: #d8b873;
    display: grid;
    place-items: center;
    font-size: 18px;
    margin-bottom: 18px
}

.service-icon.small {
    width: 38px;
    height: 38px;
    margin: 0
}

.service-kicker {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #a58046
}

.service-card h3 {
    font-size: 20px;
    margin: 5px 0 9px
}

.service-card p {
    font-size: 9px;
    color: #728095;
    min-height: 62px
}

.service-meta {
    border-top: 1px solid #edf0f3;
    margin-top: 15px;
    padding-top: 12px;
    display: grid;
    gap: 8px
}

.service-meta span {
    font-size: 8px;
    color: #79879a
}

.service-meta b {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    color: #9ba5b2;
    margin-bottom: 2px
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px
}

.service-footer strong {
    font-family: 'Playfair Display';
    font-size: 20px
}

.service-footer span {
    font-size: 8px;
    color: #9b7337
}

.sticky-checkout {
    position: fixed;
    left: calc(250px + 30px);
    right: 30px;
    bottom: 20px;
    background: rgba(8,25,43,.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 12px 14px 12px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 35px;
    z-index: 12;
    box-shadow: 0 18px 55px rgba(3,13,24,.28)
}

.sticky-checkout div span {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    color: #75879c
}

.sticky-checkout div b {
    font-size: 11px
}

.sticky-checkout .btn {
    margin-left: auto
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr;
    gap: 16px
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 19px;
    border-bottom: 1px solid #edf0f4
}

.checkout-item>div:nth-child(2) {
    flex: 1
}

.checkout-item b {
    font-size: 11px
}

.checkout-item span {
    display: block;
    font-size: 8px;
    color: #8d99a8;
    margin-top: 3px
}

.checkout-item strong {
    font-family: 'Playfair Display';
    font-size: 18px
}

.summary-card {
    padding: 22px;
    height: max-content;
    position: sticky;
    top: 95px
}

.summary-card h2 {
    font-size: 27px;
    margin: 6px 0 20px
}

.summary-row,.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f3;
    font-size: 10px
}

.summary-total {
    font-size: 15px;
    padding: 16px 0
}

.summary-total b {
    font-family: 'Playfair Display';
    font-size: 25px
}

.payment-note {
    background: #f6f3ec;
    border: 1px solid #e8dec9;
    padding: 13px;
    border-radius: 10px;
    margin: 16px 0
}

.payment-note b {
    font-size: 9px
}

.payment-note p {
    font-size: 8px;
    color: #766b5a;
    margin: 4px 0
}

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

.case-card,.empty-card {
    background: #fff;
    border: 1px solid #e2e7ed;
    border-radius: 15px;
    padding: 20px;
    transition: .2s
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow)
}

.case-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: #8391a2
}

.case-card h3 {
    font-size: 22px;
    margin: 13px 0 7px
}

.case-card>p {
    font-size: 9px;
    color: #738094;
    min-height: 48px
}

.case-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    padding: 12px 0;
    margin: 13px 0
}

.case-meta span,.case-next span {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    color: #9ba5b2
}

.case-meta b,.case-next b {
    display: block;
    font-size: 9px;
    margin-top: 3px
}

.case-progress>div {
    display: flex;
    justify-content: space-between;
    font-size: 8px
}

.case-progress>i,.case-status-block>i {
    display: block;
    height: 6px;
    background: #edf1f5;
    border-radius: 99px;
    margin-top: 7px;
    overflow: hidden
}

.case-progress em,.case-status-block em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#9b7134,#d3b16b)
}

.case-next {
    margin-top: 15px;
    background: #f8fafc;
    padding: 11px;
    border-radius: 9px
}

.case-next small {
    font-size: 7px;
    color: #9aa5b2
}

.empty-card {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px
}

.case-hero {
    background: linear-gradient(135deg,#0a1a2d,#102c49);
    color: #fff;
    border-radius: 17px;
    padding: 27px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    position: relative;
    overflow: hidden
}

.case-hero:after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(208,176,111,.13);
    border-radius: 50%;
    right: -60px;
    top: -100px
}

.case-hero h1 {
    color: #fff;
    font-size: 36px;
    margin: 7px 0
}

.case-hero p {
    color: #9bacc0;
    font-size: 10px;
    max-width: 700px
}

.back-link {
    font-size: 9px;
    color: #a7874e;
    display: block;
    margin-bottom: 15px
}

.case-status-block {
    width: 240px;
    position: relative;
    z-index: 1
}

.case-status-block>div {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 9px
}

.matter-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 13px;
    margin: 15px 0;
    padding: 15px
}

.matter-strip div {
    padding: 0 15px;
    border-right: 1px solid #edf0f4
}

.matter-strip div:last-child {
    border: 0
}

.matter-strip span {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    color: #9ba6b3
}

.matter-strip b {
    font-size: 9px
}

.timeline {
    padding: 18px
}

.timeline article {
    position: relative;
    padding-left: 28px;
    padding-bottom: 22px
}

.timeline article:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: -2px;
    width: 1px;
    background: #e1e6ec
}

.timeline article>i {
    position: absolute;
    left: 2px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c19a54;
    box-shadow: 0 0 0 4px #f8f2e7
}

.timeline-date {
    font-size: 7px;
    color: #9aa5b2;
    margin-bottom: 6px
}

.timeline-card {
    border: 1px solid #e5e9ee;
    border-radius: 11px;
    padding: 13px;
    background: #fcfdff
}

.timeline-card h3 {
    font-size: 16px;
    margin: 9px 0 4px
}

.timeline-card p {
    font-size: 9px;
    color: #66768a
}

.timeline-card small {
    font-size: 7px;
    color: #a1aab6
}

.visibility {
    font-size: 7px;
    color: #287d64;
    margin-left: 6px
}

.visibility.private {
    color: #8f6d36
}

.document-list>a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4
}

.document-list.large>a {
    padding: 15px 18px
}

.document-list>a>div:nth-child(2) {
    flex: 1
}

.doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f2f5f8;
    color: #937039;
    display: grid;
    place-items: center
}

.document-list b {
    font-size: 9px
}

.document-list span {
    display: block;
    font-size: 7px;
    color: #8f9baa;
    margin-top: 3px
}

.document-list strong {
    font-size: 8px;
    color: #916b33
}

.upload-box {
    margin: 16px;
    border: 1px dashed #ccd5df;
    border-radius: 11px;
    padding: 15px;
    background: #fbfcfd
}

.upload-box h3 {
    font-size: 16px
}

.upload-box p {
    font-size: 8px;
    color: #8996a6
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.settings-grid.wide-left {
    grid-template-columns: 1.55fr .75fr
}

.form-card {
    padding: 20px;
    height: max-content;
    display: grid;
    gap: 13px
}

.form-card h2 {
    font-size: 22px;
    margin-bottom: 4px
}

.form-card small {
    font-size: 7px;
    color: #9aa5b2
}

.security-note,.permission-box {
    background: #f7f4ee;
    border: 1px solid #e9dfce;
    border-radius: 10px;
    padding: 12px
}

.security-note b,.permission-box>b {
    font-size: 9px
}

.security-note p {
    font-size: 8px;
    margin: 3px 0;
    color: #766d5f
}

.client-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 13px;
    margin-bottom: 16px
}

.client-summary>div {
    background: #fff;
    border: 1px solid #e5e9ef;
    padding: 15px;
    border-radius: 11px
}

.client-summary span {
    font-size: 7px;
    text-transform: uppercase;
    color: #9aa5b3
}

.client-summary b {
    display: block;
    font-family: 'Playfair Display';
    font-size: 17px;
    margin-top: 4px
}

.compact-list>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #edf0f4
}

.compact-list b {
    display: block;
    font-size: 9px
}

.compact-list span {
    display: block;
    font-size: 7px;
    color: #94a0ae
}

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

.text-button {
    border: 0;
    background: none;
    color: #a13f4c;
    font-size: 8px;
    cursor: pointer
}

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

.inline-form select {
    margin: 0;
    padding: 7px;
    width: auto
}

.staff-list {
    padding: 5px 0
}

.staff-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #edf0f4
}

.staff-main {
    flex: 1
}

.staff-main>b {
    font-size: 10px
}

.staff-main>span {
    display: block;
    font-size: 8px;
    color: #8a97a7
}

.permission-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.permission-form label {
    font-size: 8px;
    font-weight: 400
}

.permission-form input {
    width: auto;
    margin: 0
}

.top-gap {
    margin-top: 16px
}

.empty {
    padding: 28px;
    text-align: center;
    color: #97a3b0;
    font-size: 9px
}

.admin-case {
    margin-bottom: 16px
}

@keyframes fadeup {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width: 1180px) {
    .service-grid {
        grid-template-columns:repeat(3,1fr)
    }

    .terminal-grid,.dashboard-grid {
        grid-template-columns: 1fr
    }

    .case-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width: 900px) {
    .auth-shell {
        grid-template-columns:1fr
    }

    .auth-hero {
        min-height: 440px
    }

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

    .sidebar {
        position: fixed;
        left: -270px;
        width: 250px;
        transition: .25s
    }

    .sidebar.open {
        left: 0
    }

    .mobile-menu {
        display: block
    }

    .sticky-checkout {
        left: 20px;
        right: 20px
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr
    }

    .service-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .settings-grid,.settings-grid.wide-left,.checkout-grid {
        grid-template-columns: 1fr
    }

    .matter-strip {
        grid-template-columns: 1fr 1fr
    }

    .content {
        padding: 20px
    }
}

@media(max-width: 600px) {
    .auth-hero {
        padding:30px 24px;
        min-height: 390px
    }

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

    .auth-panel {
        padding: 20px
    }

    .auth-card {
        padding: 28px 22px
    }

    .two,.three {
        grid-template-columns: 1fr
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .kpi-grid,.service-grid,.case-grid {
        grid-template-columns: 1fr
    }

    .sticky-checkout {
        flex-wrap: wrap;
        gap: 8px
    }

    .sticky-checkout .btn {
        width: 100%;
        margin: 0
    }

    .matter-strip {
        grid-template-columns: 1fr
    }

    .matter-strip div {
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
        padding: 10px
    }

    .case-hero {
        flex-direction: column;
        align-items: flex-start
    }

    .case-status-block {
        width: 100%
    }

    .topbar {
        padding: 0 14px
    }

    .user-chip>div:last-child {
        display: none
    }

    .content {
        padding: 15px
    }

    .search-input {
        width: 100%
    }
}

/* =========================================================
   Readability update — portal typography only
   Keeps the existing design/layout intact and only increases
   text sizing slightly across both Client and Admin portals.
   ========================================================= */
.app-shell {
    font-size: 15px
}

.app-shell .side-brand b {
    font-size: 16px
}

.app-shell .side-brand span {
    font-size: 10px
}

.app-shell .side-section {
    font-size: 10px
}

.app-shell .nav-link {
    font-size: 13px
}

.app-shell .nav-link em {
    font-size: 9px
}

.app-shell .side-support span, .app-shell .side-support a {
    font-size: 10px
}

.app-shell .side-support b {
    font-size: 12px
}

.app-shell .top-title span {
    font-size: 10px
}

.app-shell .top-title b {
    font-size: 18px
}

.app-shell .user-chip b {
    font-size: 12px
}

.app-shell .user-chip span {
    font-size: 10px
}

.app-shell .page-heading h1 {
    font-size: 36px
}

.app-shell .page-heading p {
    font-size: 13px
}

.app-shell .eyebrow {
    font-size: 11px
}

.app-shell label {
    font-size: 13px
}

.app-shell input, .app-shell textarea, .app-shell select, .app-shell button {
    font-size: 14px
}

.app-shell .btn {
    font-size: 14px
}

.app-shell .small-btn {
    font-size: 12px
}

.app-shell .alert {
    font-size: 13px
}

.app-shell .kpi span {
    font-size: 10px
}

.app-shell .kpi small {
    font-size: 13px;
}

.app-shell .kpi b {
    font-size: 32px
}

.app-shell .service-kicker {
    font-size: 9px
}

.app-shell .service-card h3 {
    font-size: 21px
}

.app-shell .service-card p {
    font-size: 12px;
}

.app-shell .service-meta span {
    font-size: 10px
}

.app-shell .service-meta b {
    font-size: 13px;
}

.app-shell .service-footer span {
    font-size: 10px
}

.app-shell .sticky-checkout div span {
    font-size: 9px
}

.app-shell .sticky-checkout div b {
    font-size: 13px
}

.app-shell .checkout-item b {
    font-size: 13px
}

.app-shell .checkout-item span {
    font-size: 10px
}

.app-shell .summary-row, .app-shell .summary-total {
    font-size: 12px
}

.app-shell .payment-note b {
    font-size: 11px
}

.app-shell .payment-note p {
    font-size: 10px
}

.app-shell .case-card-top {
    font-size: 10px
}

.app-shell .case-card>p {
    font-size: 11px
}

.app-shell .case-meta span, .app-shell .case-next span {
    font-size: 9px
}

.app-shell .case-meta b, .app-shell .case-next b {
    font-size: 11px
}

.app-shell .case-progress>div {
    font-size: 10px
}

.app-shell .case-next small {
    font-size: 9px
}

.app-shell .case-hero p {
    font-size: 12px
}

.app-shell .back-link {
    font-size: 11px
}

.app-shell .case-status-block>div {
    font-size: 11px
}

.app-shell .matter-strip span {
    font-size: 9px
}

.app-shell .matter-strip b {
    font-size: 11px
}

.app-shell .timeline-date {
    font-size: 9px
}

.app-shell .timeline-card p {
    font-size: 11px
}

.app-shell .timeline-card small {
    font-size: 9px
}

.app-shell .visibility {
    font-size: 9px
}

.app-shell .document-list b {
    font-size: 11px
}

.app-shell .document-list span {
    font-size: 9px
}

.app-shell .document-list strong {
    font-size: 10px
}

.app-shell .upload-box p {
    font-size: 10px
}

.app-shell .form-card small {
    font-size: 9px
}

.app-shell .security-note b, .app-shell .permission-box>b {
    font-size: 11px
}

.app-shell .security-note p {
    font-size: 10px
}

.app-shell .client-summary span {
    font-size: 9px
}

.app-shell .compact-list b {
    font-size: 11px
}

.app-shell .compact-list span {
    font-size: 9px
}

.app-shell .text-button {
    font-size: 10px
}

.app-shell .staff-main>b {
    font-size: 12px
}

.app-shell .staff-main>span {
    font-size: 10px
}

.app-shell .permission-form label {
    font-size: 10px
}

.app-shell .empty {
    font-size: 13px;
}

.app-shell table {
    font-size: 12px
}

.app-shell th {
    font-size: 10px
}

.app-shell td {
    font-size: 12px
}

/* Readability upgrade — Admin + Client (20 Oct 2026)
   Table body: 16px | Secondary: 14px | Table headers: 14px.
   Shared portal styles only; no application logic or layout changed. */
.app-shell table {
    font-size: 16px
}

.app-shell table th {
    font-size: 14px;
    line-height: 1.5
}

.app-shell table td {
    font-size: 16px;
    line-height: 1.55
}

.app-shell table td b, .app-shell table td strong, .app-shell table .table-link {
    font-size: 16px
}

.app-shell table td small, .app-shell table td .muted, .app-shell table td .subtext {
    font-size: 14px;
    line-height: 1.5
}

.app-shell .badge {
    font-size: 13px;
    line-height: 1.4
}

.app-shell .table-link {
    font-size: 15px
}

.app-shell .page-heading p {
    font-size: 16px
}

.app-shell .eyebrow {
    font-size: 13px
}

.app-shell .activity-list b, .app-shell .notification-item b, .app-shell .payment-list b, .app-shell .payment-list strong {
    font-size: 16px
}

.app-shell .activity-list p, .app-shell .notification-item p {
    font-size: 14px
}

.app-shell .activity-list span, .app-shell .notification-item span, .app-shell .payment-list span {
    font-size: 14px
}

.app-shell .compact-list b, .app-shell .document-list b {
    font-size: 16px
}

.app-shell .compact-list span, .app-shell .document-list span, .app-shell .document-list strong {
    font-size: 14px
}

.app-shell .text-button {
    font-size: 14px
}

/* Targeted readability: Client Notifications and Orders & Payments */
.app-shell .notification-list .notification-item b {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.app-shell .notification-list .notification-item p {
    font-size: 13px;
    line-height: 1.5;
}

.app-shell .notification-list .notification-item span {
    font-size: 12px;
    line-height: 1.5;
}

.app-shell .notification-list .notification-item>strong {
    font-size: 18px
}

.app-shell .table-scroll table th {
    font-size: 14px;
    line-height: 1.5
}

.app-shell .table-scroll table td {
    font-size: 15px;
    line-height: 1.55
}

.app-shell .table-scroll table td>b, .app-shell .table-scroll table td>strong {
    font-size: 14px;
    line-height: 1.55
}

.app-shell .table-scroll table td>small {
    font-size: 13px;
    line-height: 1.5
}

.app-shell .table-scroll table td .badge {
    font-size: 13px;
    line-height: 1.4
}
