:root {
    --od-border: #e3e6ea;
    --od-surface: #ffffff;
    --od-muted-bg: #f6f7f9;
    --od-urgent: #b42318;
    --od-urgent-bg: #fdecea;
    --od-warn: #8a5a00;
    --od-warn-bg: #fff4d6;
    --od-info: #0b5cab;
    --od-info-bg: #e7f1fb;
    --od-ok: #1a6b3a;
    --od-ok-bg: #e5f4ea;
}
body { background: #f4f5f7; color: #1f2933; }
.min-w-0 { min-width: 0; }
[hidden] { display: none !important; }

/* ===== Dashboard (follows the supplied reference design) ===== */
.brand-logo { width: 28px; height: 28px; margin-right: .5rem; vertical-align: -7px; }
.dash-head { align-items: flex-end; margin-bottom: 1.25rem; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem; background: #fff; border: 1px solid var(--od-border); border-radius: .75rem; text-decoration: none; color: inherit; min-width: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.kpi:hover { border-color: #b8c7dc; box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.kpi-tile { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.tile-blue { background: #e7f0ff; color: #1d5fd1; }
.tile-purple { background: #f0e9fb; color: #7a3fc9; }
.tile-teal { background: #e0f5f2; color: #0f7f73; }
.tile-orange { background: #fdf0e1; color: #c2680c; }
.tile-green { background: #e4f5e8; color: #1a7f3c; }
.tile-red { background: #fdecec; color: #c0392b; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kpi-label { font-size: .78rem; font-weight: 600; color: #3b4651; line-height: 1.25; }
.kpi-value { line-height: 1.25; }
.kpi-value .num { font-size: 1.6rem; font-weight: 700; }
.kpi-value .money-lines { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 700; }
.kpi-value .ml { display: block; }
.kpi-sub { font-size: .75rem; color: #6b7785; }
.kpi-go { color: #9aa5b1; font-size: .8rem; }
.container-wide { width: 100%; max-width: 1500px; margin-right: auto; margin-left: auto; padding-right: var(--bs-gutter-x, .75rem); padding-left: var(--bs-gutter-x, .75rem); }
@media (min-width: 1200px) and (max-width: 1399.98px) { .kpi-go { display: none; } }
@media (max-width: 767.98px) {
    .kpi-go { display: none; }
    .kpi { padding: .7rem .75rem; gap: .55rem; }
    .kpi-tile { flex-basis: 2.2rem; width: 2.2rem; height: 2.2rem; font-size: 1.05rem; }
    .kpi-value .num { font-size: 1.45rem; }
    .kpi-value .money-lines { font-size: .95rem; }
}

.panel { background: #fff; border: 1px solid var(--od-border); border-radius: .75rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--od-border); }
.panel-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-icon { font-size: 1.15rem; }
.icon-blue { color: #1d5fd1; } .icon-purple { color: #7a3fc9; } .icon-orange { color: #c2680c; } .icon-red { color: #c0392b; } .icon-green { color: #1a7f3c; }
.panel-pay .panel-head { background: #fdf4f3; }
.panel-foot { padding: .6rem 1.1rem; border-top: 1px solid var(--od-border); font-size: .85rem; color: #4a5560; }
.panel .empty-note { padding: 1rem 1.1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--od-border); }
.pills a { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border: 1px solid var(--od-border); border-radius: .5rem; font-size: .82rem; text-decoration: none; color: #3b4651; background: #fff; }
.pills a:hover { border-color: #9fb3c8; }
.pills a.active { background: #e7f0ff; border-color: #9ec0f5; color: #1d5fd1; font-weight: 600; }
.pills .n { background: #eef1f5; border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 600; }
.pills a.active .n { background: #1d5fd1; color: #fff; }
.col-menu { width: 2.5rem; text-align: right; }
.row-menu .btn { border: 0; background: transparent; color: #5b6773; padding: .15rem .45rem; }
.row-menu .btn:hover { background: #eef1f5; }
.empty-state { padding: 1.5rem 1rem; text-align: center; }
.empty-icon { display: inline-flex; width: 3rem; height: 3rem; border-radius: 50%; background: #eef1f5; color: #5b6773; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .5rem; }
.dash-grid .panel .table-compact > :not(caption) > * > * { padding-left: 1.1rem; padding-right: .5rem; }
.dash-grid .panel .table-compact thead th:last-child, .dash-grid .panel .table-compact tbody td:last-child { padding-right: .75rem; }

/* Navigation */

/* Focus visible for keyboard users */
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .nav-link:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .45);
    outline-offset: 2px;
}

/* Page headings and sections */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.section { background: var(--od-surface); border: 1px solid var(--od-border); border-radius: .5rem; box-shadow: 0 1px 1px rgba(16, 24, 40, .03); }
.section + .section { margin-top: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--od-border); }
.section-head h2 { font-size: .95rem; font-weight: 600; margin: 0; }
.section-head .count { font-weight: 500; color: #6b7785; margin-left: .25rem; }
.section-body { padding: .75rem 1rem; }
.empty-note { padding: .65rem 1rem; color: #6b7785; font-size: .875rem; }
.empty-note a { white-space: nowrap; }

/* Summary strip */
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .summary { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .summary { grid-template-columns: repeat(7, 1fr); } }
.stat { background: var(--od-surface); border: 1px solid var(--od-border); border-radius: .5rem; padding: .55rem .75rem; text-decoration: none; color: inherit; display: block; min-width: 0; }
a.stat:hover { border-color: #b8c2cc; }
.stat .label { font-size: .75rem; color: #5b6773; line-height: 1.2; }
.stat .value { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.stat .value.money { font-size: .95rem; }
.stat.attn { border-left: 3px solid var(--od-warn); }
.stat.urgent { border-left: 3px solid var(--od-urgent); }

/* Tables */
.table-compact { margin: 0; font-size: .875rem; }
.table-compact > :not(caption) > * > * { padding: .5rem .75rem; vertical-align: top; }
.table-compact thead th { font-size: .78rem; text-transform: none; letter-spacing: 0; color: #5b6773; background: var(--od-muted-bg); border-bottom: 1px solid var(--od-border); font-weight: 600; white-space: nowrap; }
.table-compact tbody tr.row-urgent > td:first-child { box-shadow: inset 3px 0 0 var(--od-urgent); }
.table-compact tbody tr.row-warn > td:first-child { box-shadow: inset 3px 0 0 #d99a00; }
.table-compact td .sub { font-size: .78rem; color: #6b7785; }

/* Status chips */
.chip { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.chip-urgent { color: var(--od-urgent); background: var(--od-urgent-bg); border-color: #f5c6c0; }
.chip-warn { color: var(--od-warn); background: var(--od-warn-bg); border-color: #f0d890; }
.chip-info { color: var(--od-info); background: var(--od-info-bg); border-color: #bcd7f0; }
.chip-ok { color: var(--od-ok); background: var(--od-ok-bg); border-color: #b6e0c4; }
.chip-whatsapp { color: #15803d; background: #dcfce7; border-color: #86efac; }
.chip-muted { color: #4a5560; background: var(--od-muted-bg); border-color: var(--od-border); }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filters a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--od-border); border-radius: 999px; background: var(--od-surface); color: #3b4651; font-size: .85rem; text-decoration: none; }
.filters a:hover { border-color: #9fb3c8; }
.filters a.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.filters a .n { font-size: .75rem; opacity: .8; }

/* Payables vs receivables distinction */
.badge-receivable { color: var(--od-info); background: var(--od-info-bg); border: 1px solid #bcd7f0; }
.tab-receivable.active { border-top: 3px solid #0d6efd !important; }

.col-serial { width: 3rem; white-space: nowrap; }

/* Rows hidden by a list filter must stay hidden even in the stacked (phone) layout, which sets display on rows. */
tr[hidden] { display: none !important; }
.list-filter .form-control { max-width: 340px; display: inline-block; }

.gs-head { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #6c757d; padding: .45rem .8rem .2rem; }
.gs-item { display: block; padding: .4rem .8rem; color: inherit; text-decoration: none; }
.gs-item:hover, .gs-item.active { background: #e7f1ff; }
.gs-title { display: block; font-weight: 500; }
.gs-sub { display: block; font-size: .8rem; color: #6c757d; }
.gs-empty { padding: .6rem .8rem; color: #6c757d; font-size: .9rem; }
/* The three SEO lists share the same column widths so they line up one under the other. */
@media (min-width: 992px) { .seo-list { table-layout: fixed; } .seo-list th:nth-child(2) { width: 38%; } .seo-list th:nth-child(3) { width: 18%; } .seo-list th:nth-child(4) { width: 14%; } }

/* Paid checkbox on hours entries: grey until ticked, then green and locked. */
.paid-check { width: 1.3em; height: 1.3em; margin: 0; background-color: #e9ecef; border-color: #adb5bd; cursor: pointer; vertical-align: middle; }
.paid-check:hover:not(:disabled) { border-color: #198754; }
.paid-check:focus { border-color: #198754; box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .25); }
.paid-check:checked { background-color: #198754; border-color: #198754; }
.paid-check:disabled, .paid-check:disabled:checked { opacity: 1; cursor: not-allowed; }
.paid-check:disabled:checked { background-color: #198754; border-color: #198754; }
@media (max-width: 991.98px) { .table-stack td.col-serial::before { content: "No. "; } .table-stack td.col-serial { width: 100%; } }

.card-header { background: var(--od-surface); }
dl dt { font-weight: 500; color: var(--bs-secondary-color); }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Wide data tables become stacked rows below 992px so no column is hidden off-screen on phones and tablets */
@media (max-width: 767.98px) {
    main.container-wide { padding-top: 1rem !important; }
    h1.h4 { font-size: 1.15rem; }
}
@media (max-width: 991.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { padding: .6rem .75rem; border-bottom: 1px solid var(--od-border); }
    .table-stack tr.row-urgent { box-shadow: inset 3px 0 0 var(--od-urgent); }
    .table-stack tr.row-warn { box-shadow: inset 3px 0 0 #d99a00; }
    .table-stack td { border: 0 !important; padding: .15rem 0 !important; box-shadow: none !important; }
    .table-stack td[data-label]::before { content: attr(data-label) ": "; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7785; font-weight: 600; }
    .table-stack td.text-end { text-align: left !important; }
}


/* ===== Header: "liquid glass" ===============================================================================
   One floating, frosted capsule: brand, navigation, search and account on a single row (stacked in a menu on small screens).
   Everything is scoped to .app-nav so no other page is affected. */
.app-nav {
    --gh-blue: #3b82f6; --gh-deep: #2563eb; --gh-text: #172554; --gh-muted: #64748b;
    --gh-glass: rgba(255, 255, 255, .68); --gh-glass-border: rgba(255, 255, 255, .78);
    background: linear-gradient(180deg, #f4f5f7 62%, rgba(244, 245, 247, 0)); border-bottom: 0; padding: .6rem 0 .35rem;
}
.app-nav .gh-shell {
    display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; padding: .5rem .85rem; border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(222, 236, 255, .62));
    border: 1px solid var(--gh-glass-border); box-shadow: 0 8px 28px rgba(59, 130, 246, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .app-nav .gh-shell { background: rgba(255, 255, 255, .97); } }

.app-nav .gh-brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; text-decoration: none; color: var(--gh-text); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.app-nav .gh-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(135deg, #60a5fa, var(--gh-deep)); box-shadow: 0 6px 14px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.app-nav .gh-divider { width: 1px; height: 28px; background: rgba(100, 116, 139, .24); flex: 0 0 auto; display: none; }
.app-nav .gh-toggler { margin-left: auto; border: 1px solid var(--gh-glass-border); background: rgba(255, 255, 255, .62); border-radius: 12px; padding: .4rem .6rem; }
.app-nav .gh-toggler:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }

.app-nav .gh-nav { gap: .15rem; margin: 0; }
.app-nav .gh-nav .nav-link {
    display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .75rem; border-radius: 999px; border: 0;
    font-size: .9rem; font-weight: 500; line-height: 1; color: #475569; white-space: nowrap; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.app-nav .gh-nav .nav-link > .bi { font-size: 1rem; line-height: 1; opacity: .85; }
.app-nav .gh-nav .nav-link:hover { background: rgba(59, 130, 246, .10); color: var(--gh-deep); }
.app-nav .gh-nav .nav-link:focus-visible, .app-nav .gh-search:focus-within, .app-nav .gh-user-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(59, 130, 246, .30); }
.app-nav .gh-nav .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--gh-blue), var(--gh-deep)); box-shadow: 0 6px 16px rgba(37, 99, 235, .30), inset 0 1px 0 rgba(255, 255, 255, .35); }
.app-nav .gh-nav .nav-link.active > .bi { opacity: 1; }
.app-nav .gh-nav .dropdown-toggle::after { margin-left: .15rem; border-width: .3em .3em 0; vertical-align: 0; }

.app-nav .gh-search {
    position: relative; display: flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .5rem 0 .85rem; min-width: 0;
    border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.app-nav .gh-search:focus-within { background: rgba(255, 255, 255, .92); border-color: rgba(59, 130, 246, .55); }
.app-nav .gh-search-icon { flex: 0 0 auto; color: var(--gh-muted); font-size: 1rem; line-height: 1; }
.app-nav .gh-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: 0; box-shadow: none; font-size: .85rem; color: var(--gh-text); text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.app-nav .gh-search input::placeholder { color: var(--gh-muted); opacity: .85; text-overflow: ellipsis; }
.app-nav .gh-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.app-nav .gh-kbd { flex: 0 0 auto; margin: 0; padding: .1rem .5rem; font: 600 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gh-muted); background: rgba(255, 255, 255, .75); border: 1px solid rgba(100, 116, 139, .25); border-radius: 8px; }
.app-nav .gh-search input:not(:placeholder-shown) ~ .gh-kbd { display: none; }
/* The "/" hint only shows when the field is wide enough for it (it never overlaps the placeholder). */
.app-nav .gh-search { container-type: inline-size; }
@container (max-width: 215px) { .gh-kbd { display: none; } }

.app-nav .global-search-results {
    position: absolute; z-index: 1055; top: calc(100% + .4rem); left: 0; right: auto; width: max(100%, 340px); max-height: 70vh; overflow: auto; padding: .3rem 0;
    background: rgba(255, 255, 255, .94); border: 1px solid var(--gh-glass-border); border-radius: 16px; box-shadow: 0 16px 40px rgba(37, 99, 235, .16);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.app-nav .global-search-results[hidden] { display: none; }
.app-nav .gs-item { border-radius: 10px; margin: 0 .3rem; }
.app-nav .gs-item:hover, .app-nav .gs-item.active { background: rgba(59, 130, 246, .12); }

.app-nav .gh-user-btn {
    display: inline-flex; align-items: center; gap: .55rem; height: 40px; max-width: 100%; padding: .25rem .8rem .25rem .3rem; border-radius: 999px;
    background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .88); box-shadow: 0 4px 14px rgba(59, 130, 246, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
    color: var(--gh-text); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background-color .18s ease, box-shadow .18s ease;
}
.app-nav .gh-user-btn:hover { background: rgba(255, 255, 255, .92); }
.app-nav .gh-user-btn::after { margin-left: .1rem; border-width: .3em .3em 0; vertical-align: 0; }
.app-nav .gh-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #60a5fa, var(--gh-deep)); box-shadow: 0 3px 8px rgba(37, 99, 235, .3); }
.app-nav .gh-user-name { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.app-nav .gh-user { flex: 0 0 auto; }
.app-nav .dropdown-menu { padding: .35rem; border-radius: 16px; border: 1px solid var(--gh-glass-border); background: rgba(255, 255, 255, .94); box-shadow: 0 16px 40px rgba(37, 99, 235, .16); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.app-nav .dropdown-item { border-radius: 10px; padding: .45rem .7rem; font-size: .9rem; color: #334155; }
.app-nav .dropdown-item:hover, .app-nav .dropdown-item:focus { background: rgba(59, 130, 246, .10); color: var(--gh-deep); }
.app-nav .dropdown-item.active { color: #fff; background: linear-gradient(135deg, var(--gh-blue), var(--gh-deep)); }

/* Small screens (below 1200px): brand + menu button on top; the menu lists the pages, the search and the account. */
@media (max-width: 1199.98px) {
    .app-nav .gh-collapse { flex: 0 0 100%; padding-top: .35rem; }
    .app-nav .gh-nav { flex-direction: column; align-items: stretch; gap: .15rem; }
    .app-nav .gh-nav .nav-link { height: 42px; padding: 0 .9rem; }
    .app-nav .gh-search { width: 100%; margin: .6rem 0; }
    .app-nav .gh-user { margin-bottom: .2rem; }
    .app-nav .gh-user-btn { width: 100%; }
    .app-nav .gh-nav .dropdown-menu { position: static; box-shadow: none; background: rgba(255, 255, 255, .55); margin: .2rem 0 .2rem .6rem; }
}
/* Wide screens (1200px and up): one row. The search takes the free space between the pages and the account. */
@media (min-width: 1200px) {
    .app-nav .gh-shell { flex-wrap: nowrap; gap: .75rem; }
    .app-nav .gh-divider { display: block; }
    .app-nav .gh-toggler { display: none; }
    .app-nav .gh-collapse { flex: 1 1 auto; min-width: 0; align-items: center; gap: .75rem; }
    .app-nav .gh-nav { flex: 0 0 auto; flex-wrap: nowrap; }
    .app-nav .gh-search { flex: 1 1 140px; min-width: 130px; max-width: 250px; margin-left: auto; }
}
/* Medium-wide screens: tighter pages, account shows the avatar only. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .app-nav .gh-shell { padding: .45rem .7rem; gap: .55rem; }
    .app-nav .gh-brand { font-size: 1rem; gap: .5rem; }
    .app-nav .gh-nav .nav-link { padding: 0 .55rem; gap: .3rem; font-size: .8125rem; }
    .app-nav .gh-user-name { display: none; }
    .app-nav .gh-user-btn { padding-right: .6rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .app-nav .gh-nav .nav-link > .bi { display: none; }
    .app-nav .gh-nav .nav-link { padding: 0 .6rem; }
}
@media (prefers-reduced-motion: reduce) { .app-nav * { transition: none !important; } }

/* ===== Dashboard: liquid glass (scoped to body.page-dashboard) ===== */
body, body.page-dashboard, body.page-running, body.page-seo, body.page-projects, body.page-clients, body.page-recurring, body.page-hourly, body.page-pending, body.page-payments, body.page-account, body.page-auth {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-light: #eaf3ff;
    --gl-text: #14264f; --gl-muted: #5b6f97;
    --gl-surface: rgba(255, 255, 255, .72); --gl-border: rgba(255, 255, 255, .85);
    --gl-line: rgba(40, 120, 249, .12);
    --gl-shadow: 0 6px 22px rgba(59, 130, 246, .08);
    --bs-body-color: var(--gl-text); --bs-body-color-rgb: 20, 38, 79;
    --bs-secondary-color: var(--gl-muted); --bs-link-color-rgb: 37, 99, 235; --bs-link-hover-color-rgb: 29, 78, 216;
    color: var(--gl-text);
    background: linear-gradient(160deg, #f8fbff 0%, #eaf3ff 48%, #dcebff 100%);
    min-height: 100vh;
}
/* Soft flowing highlights behind everything; purely decorative and never clickable. */
body::before, body::after, body.page-dashboard::before, body.page-dashboard::after, body.page-running::before, body.page-running::after, body.page-seo::before, body.page-seo::after, body.page-projects::before, body.page-projects::after, body.page-clients::before, body.page-clients::after, body.page-recurring::before, body.page-recurring::after, body.page-hourly::before, body.page-hourly::after, body.page-pending::before, body.page-pending::after, body.page-payments::before, body.page-payments::after, body.page-account::before, body.page-account::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before, body.page-dashboard::before, body.page-running::before, body.page-seo::before, body.page-projects::before, body.page-clients::before, body.page-recurring::before, body.page-hourly::before, body.page-pending::before, body.page-payments::before, body.page-account::before {
    background:
        radial-gradient(ellipse 55% 38% at 12% 6%, rgba(120, 170, 255, .34), transparent 70%),
        radial-gradient(ellipse 45% 32% at 92% 14%, rgba(255, 255, 255, .95), transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 78%, rgba(150, 195, 255, .26), transparent 72%),
        radial-gradient(ellipse 50% 36% at 5% 88%, rgba(190, 215, 255, .38), transparent 70%);
}
body::after, body.page-dashboard::after, body.page-running::after, body.page-seo::after, body.page-projects::after, body.page-clients::after, body.page-recurring::after, body.page-hourly::after, body.page-pending::after, body.page-payments::after, body.page-account::after {
    background:
        linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, .55) 30%, rgba(160, 200, 255, .26) 38%, transparent 48%),
        linear-gradient(112deg, transparent 52%, rgba(255, 255, 255, .5) 60%, rgba(140, 190, 255, .2) 68%, transparent 78%);
    opacity: .85;
}
.app-nav, .page-dashboard .app-nav, .page-running .app-nav, .page-seo .app-nav, .page-projects .app-nav, .page-clients .app-nav, .page-recurring .app-nav, .page-hourly .app-nav, .page-pending .app-nav, .page-payments .app-nav, .page-account .app-nav { background: transparent !important; }

/* Greeting */
.page-dashboard .dash-head { align-items: center; margin-bottom: 1.25rem; }
.page-dashboard .dash-head h1 { font-size: 1.85rem; font-weight: 500; color: var(--gl-text); }
.page-dashboard .dash-head .btn { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.25rem; border-radius: 14px; font-weight: 500; }
.page-dashboard .dash-head .btn-primary { border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb); box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.page-dashboard .dash-head .btn-primary:hover { background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.page-dashboard .dash-head .btn-outline-primary { color: var(--gl-deep); background: rgba(255, 255, 255, .7); border: 1px solid rgba(40, 120, 249, .45); box-shadow: 0 6px 18px rgba(59, 130, 246, .08); }
.page-dashboard .dash-head .btn-outline-primary:hover { background: #fff; color: var(--gl-deep); border-color: var(--gl-blue); }

/* Summary cards */
.page-dashboard .kpis { gap: .85rem; margin-bottom: 1.1rem; }
.page-dashboard .kpi { background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: 16px; box-shadow: var(--gl-shadow); padding: .95rem 1rem; gap: .8rem; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: transform .15s ease, box-shadow .15s ease; }
.page-dashboard .kpi:hover { border-color: #fff; box-shadow: 0 10px 26px rgba(59, 130, 246, .14); transform: translateY(-1px); }
.page-dashboard .kpi-tile { flex-basis: 3rem; width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.4rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.page-dashboard .tile-blue { background: linear-gradient(145deg, #eef5ff, #d3e5ff); color: #2563eb; }
.page-dashboard .tile-purple { background: linear-gradient(145deg, #f4eeff, #e4d8fb); color: #7c3aed; }
.page-dashboard .tile-teal { background: linear-gradient(145deg, #e8f9f4, #cdf0e6); color: #0f9f7f; }
.page-dashboard .tile-orange { background: linear-gradient(145deg, #fff3e6, #fde0c2); color: #e0780f; }
.page-dashboard .tile-green { background: linear-gradient(145deg, #e9f9ee, #cdefd8); color: #1a9a4a; }
.page-dashboard .tile-red { background: linear-gradient(145deg, #fff0f0, #fdd6d6); color: #e0483f; }
.page-dashboard .kpi-label { font-size: .8rem; font-weight: 600; color: var(--gl-text); }
.page-dashboard .kpi-value .num { font-size: 1.75rem; font-weight: 700; color: var(--gl-text); line-height: 1.15; }
.page-dashboard .kpi-value .money-lines { color: var(--gl-text); }
.page-dashboard .kpi-sub { font-size: .76rem; color: var(--gl-muted); }
.page-dashboard .kpi-go { color: #8fa3c7; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .page-dashboard .kpi { padding: .85rem .8rem; gap: .6rem; }
    .page-dashboard .kpi-tile { flex-basis: 2.7rem; width: 2.7rem; height: 2.7rem; font-size: 1.25rem; }
    .page-dashboard .kpi-value .num { font-size: 1.55rem; }
}

/* Panels. The blur sits on a pseudo-element so the panel itself is not a containing block for the
   row menus, which open with a fixed position and must not be clipped by the panel. */
.page-dashboard .panel { position: relative; isolation: isolate; background: transparent; border: 1px solid var(--gl-border); border-radius: 18px; box-shadow: var(--gl-shadow); }
.page-dashboard .panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--gl-surface); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.page-dashboard .panel-head { padding: 1rem 1.25rem .8rem; border-bottom: 1px solid var(--gl-line); }
.page-dashboard .panel-head h2 { font-size: 1.1rem; font-weight: 700; color: var(--gl-text); gap: .6rem; }
.page-dashboard .panel-icon { font-size: 1.35rem; }
.page-dashboard .icon-blue { color: #2878f9; } .page-dashboard .icon-purple { color: #7c3aed; } .page-dashboard .icon-orange { color: #e0780f; } .page-dashboard .icon-red { color: #e0483f; } .page-dashboard .icon-green { color: #1a9a4a; }
.page-dashboard .panel-head > a { color: var(--gl-deep); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.page-dashboard .panel-foot { padding: .65rem 1.25rem; border-top: 1px solid var(--gl-line); color: var(--gl-muted); }
.page-dashboard .panel .empty-note { padding: 1rem 1.25rem; color: var(--gl-muted); }
.page-dashboard .panel .empty-state { color: var(--gl-text); }
.page-dashboard .empty-icon { background: rgba(40, 120, 249, .1); color: var(--gl-deep); }

/* Payment Pending keeps its pale-red accent */
.page-dashboard .panel-pay::before { background: linear-gradient(180deg, rgba(255, 240, 240, .85), rgba(255, 255, 255, .72) 55%); }
.page-dashboard .panel-pay .panel-head { background: linear-gradient(90deg, rgba(254, 226, 226, .65), rgba(255, 255, 255, 0)); }
.page-dashboard .empty-pay { display: flex; align-items: center; gap: 1rem; margin: .8rem 1rem 1rem; padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 232, 232, .75), rgba(255, 255, 255, .6)); border: 1px solid rgba(255, 255, 255, .9); }
.page-dashboard .empty-pay-icon { flex: 0 0 3.2rem; width: 3.2rem; height: 3.2rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #e0483f; background: linear-gradient(145deg, #fff3f3, #fdd6d6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }

/* Deadlines: one compact row when there is nothing to list */
.page-dashboard .panel-compact { display: flex; align-items: center; flex-wrap: wrap; }
.page-dashboard .panel-compact .panel-head { display: contents; }
.page-dashboard .panel-compact .panel-head h2 { padding: .95rem .5rem .95rem 1.25rem; }
.page-dashboard .panel-compact .panel-head > a { order: 3; margin-left: auto; padding-right: 1.25rem; }
.page-dashboard .panel-compact .empty-note { order: 2; flex: 1 1 16rem; padding: .6rem .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }

/* Filter pills */
.page-dashboard .pills { padding: .8rem 1.25rem .35rem; border-bottom: 0; gap: .5rem; }
.page-dashboard .pills a { background: rgba(255, 255, 255, .7); border: 1px solid rgba(40, 120, 249, .14); border-radius: 999px; padding: .28rem .8rem; color: var(--gl-text); box-shadow: 0 2px 8px rgba(59, 130, 246, .05); }
.page-dashboard .pills a:hover { border-color: rgba(40, 120, 249, .45); background: #fff; }
.page-dashboard .pills a.active { background: linear-gradient(180deg, #e8f1ff, #d7e8ff); border-color: rgba(40, 120, 249, .55); color: var(--gl-deep); }
.page-dashboard .pills .n { background: rgba(40, 120, 249, .1); color: var(--gl-deep); }
.page-dashboard .pills a.active .n { background: var(--gl-blue); color: #fff; }

/* Tables sit in an inset, lighter card inside each panel */
.page-dashboard .panel .table-responsive { margin: .55rem .9rem .9rem; border: 1px solid rgba(40, 120, 249, .1); border-radius: 12px; background: rgba(255, 255, 255, .6); }
.page-dashboard .panel .panel-head + .table-responsive { margin-top: .8rem; }
.page-dashboard .panel .table-responsive:has(+ .panel-foot) { margin-bottom: .55rem; }
.page-dashboard .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); --bs-table-border-color: var(--gl-line); --bs-table-hover-bg: rgba(234, 243, 255, .55); }
.page-dashboard .table-compact thead th { background: rgba(226, 238, 255, .62); color: var(--gl-muted); font-weight: 600; font-size: .76rem; border-bottom: 1px solid var(--gl-line); }
.page-dashboard .table-compact > :not(caption) > * > * { padding: .65rem .65rem; }
.page-dashboard .dash-grid .panel .table-compact > :not(caption) > * > * { padding-left: .8rem; padding-right: .5rem; }
.page-dashboard .dash-grid .panel .table-compact thead th:last-child, .page-dashboard .dash-grid .panel .table-compact tbody td:last-child { padding-right: .6rem; }
.page-dashboard .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.page-dashboard .table-compact tbody > tr > td { border-bottom: 0; }
.page-dashboard .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.page-dashboard .table-compact td a:not(.btn):not(.dropdown-item) { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; overflow-wrap: break-word; }
.page-dashboard .table-compact td a.text-reset { color: var(--gl-muted); }
.page-dashboard .table-compact td .sub { color: var(--gl-muted); }
.page-dashboard .table-compact td.col-serial { color: var(--gl-muted); }
.page-dashboard .table-compact td { overflow-wrap: break-word; }
.page-dashboard .table-compact td.text-nowrap { overflow-wrap: normal; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .row-menu .btn { color: var(--gl-muted); border-radius: 10px; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .row-menu .btn:hover, :is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .row-menu .btn:focus-visible { background: rgba(40, 120, 249, .1); color: var(--gl-deep); }

/* Status labels */
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .chip { border-radius: 999px; padding: .2rem .7rem; font-weight: 600; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .chip-ok { color: #15803d; background: rgba(209, 244, 222, .85); border-color: rgba(134, 214, 163, .7); }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .chip-ok::before, :is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .badge::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .38rem; border-radius: 50%; background: currentColor; vertical-align: .08em; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .chip-info { color: var(--gl-deep); background: rgba(219, 234, 254, .9); border-color: rgba(147, 188, 250, .55); }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .chip-whatsapp { color: #15803d; background: rgba(220, 252, 231, .85); border-color: rgba(134, 239, 172, .6); }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) td[data-label="Category"] .chip { white-space: normal; border-radius: 12px; line-height: 1.3; padding: .3rem .65rem; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .badge { border-radius: 999px; padding: .32em .75em; font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) .badge.text-bg-primary { background: linear-gradient(180deg, #3d8bff, #2563eb) !important; color: #fff !important; box-shadow: 0 3px 8px rgba(37, 99, 235, .28); }

/* Footer line */
.page-dashboard main > p.small { color: var(--gl-muted) !important; }
.page-dashboard footer, .page-running footer, .page-seo footer, .page-projects footer, .page-clients footer, .page-recurring footer, .page-hourly footer { color: var(--gl-muted) !important; }

/* Focus stays clearly visible on glass */
:is(.page-dashboard, .page-running, .page-seo, .page-projects, .page-clients, .page-recurring, .page-hourly) :is(a, button, .btn, input):focus-visible { outline: 3px solid rgba(37, 99, 235, .5); outline-offset: 2px; }

/* Without backdrop-filter, use a nearly opaque surface so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .page-dashboard .kpi { background: rgba(255, 255, 255, .94); }
    .page-dashboard .panel::before { background: rgba(255, 255, 255, .94); }
    .page-dashboard .panel-pay::before { background: rgba(255, 246, 246, .96); }
}

@media (max-width: 991.98px) {
    .page-dashboard .dash-head h1 { font-size: 1.55rem; }
    .page-dashboard .panel .table-responsive { margin: .4rem .5rem .6rem; }
}
@media (max-width: 575.98px) {
    .page-dashboard .dash-head .btn { height: 42px; padding: 0 1rem; }
    .page-dashboard .panel-head { padding: .85rem 1rem .7rem; flex-wrap: wrap; }
    .page-dashboard .pills { padding: .7rem 1rem .3rem; }
}
@media (prefers-reduced-motion: reduce) { .page-dashboard .kpi { transition: none; } .page-dashboard .kpi:hover { transform: none; } }

/* Dashboard columns: side by side from 1280px, stacked below; six summary cards in one row from 1280px */
@media (min-width: 1280px) {
    .dash-grid > .col-dash-7 { flex: 0 0 auto; width: 58.33333333%; }
    .dash-grid > .col-dash-5 { flex: 0 0 auto; width: 41.66666667%; }
    .page-dashboard .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) and (max-width: 1399.98px) { .page-dashboard .kpi-value .money-lines { font-size: .92rem; } }
@media (max-width: 575.98px) {
    .page-dashboard .kpis { gap: .6rem; }
    .page-dashboard .kpi { padding: .75rem .7rem; gap: .55rem; }
    .page-dashboard .kpi-tile { flex-basis: 2.3rem; width: 2.3rem; height: 2.3rem; font-size: 1.1rem; border-radius: 11px; }
    .page-dashboard .kpi-value .num { font-size: 1.5rem; }
    .page-dashboard .kpi-body { min-width: 0; }
    .page-dashboard .kpi-value .money-lines { font-size: .86rem; }
}

/* ===== Running Projects: liquid glass (scoped to body.page-running .rp-page) ===== */
.rp-page { --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86; --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08); color: var(--gl-text); }
.rp-card { position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85); border-radius: 20px; box-shadow: var(--gl-shadow); }
.rp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.rp-top { padding: 1.25rem 1.5rem 1rem; margin-bottom: 1.1rem; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.1rem; }
.rp-title { display: flex; align-items: center; gap: .85rem; margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.rp-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; font-size: 1.6rem; color: var(--gl-deep); background: linear-gradient(145deg, #f2f8ff, #d9e9ff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 12px rgba(59, 130, 246, .1); }
.rp-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.rp-btn { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.25rem; border-radius: 14px; font-weight: 600; font-size: .95rem; }
.rp-btn-primary { color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb); box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.rp-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.rp-btn-ghost { color: var(--gl-deep); background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(59, 130, 246, .1); }
.rp-btn-ghost:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }

/* Filter rows */
.rp-top .rp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.rp-filter-label { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 8.6rem; white-space: nowrap; font-weight: 600; color: var(--gl-text); }
.rp-filter-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 1.05rem; color: var(--gl-deep); background: rgba(255, 255, 255, .8); box-shadow: 0 3px 10px rgba(59, 130, 246, .12); }
.rp-top .filters a { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .3rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--gl-text); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 3px 10px rgba(59, 130, 246, .07); transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rp-top .filters a:hover { background: #fff; box-shadow: 0 5px 14px rgba(59, 130, 246, .14); transform: translateY(-1px); }
.rp-top .filters a .n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.45rem; height: 1.45rem; padding: 0 .4rem; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--gl-muted); background: rgba(40, 120, 249, .09); opacity: 1; }
.rp-top .filters a.active { color: #fff; font-weight: 600; border-color: transparent; background: linear-gradient(180deg, #3d8bff, #2563eb); box-shadow: 0 6px 16px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.rp-top .filters a.active .n { color: #fff; background: rgba(15, 40, 120, .35); }

/* Explanation line and page filter */
.rp-info { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0 .9rem; padding: .15rem 0 .15rem .8rem; border-left: 3px solid var(--gl-blue); font-size: .92rem; color: var(--gl-text); }
.rp-info > .bi { color: var(--gl-blue); margin-top: .15rem; }
.rp-info a { color: var(--gl-deep); text-decoration: underline; text-underline-offset: 2px; }
.rp-top .list-filter { position: relative; display: flex; align-items: center; flex-wrap: wrap; max-width: 36rem; margin: 0 !important; }
.rp-top .list-filter-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-deep); font-size: 1.05rem; pointer-events: none; }
.rp-top .list-filter .form-control { flex: 1 1 14rem; height: 48px; padding: 0 1rem 0 2.75rem; font-size: .95rem; color: var(--gl-text); border-radius: 14px; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .75); box-shadow: 0 4px 14px rgba(59, 130, 246, .08); }
.rp-top .list-filter .form-control:focus { background: #fff; border-color: var(--gl-blue); box-shadow: 0 0 0 .22rem rgba(40, 120, 249, .2); }
.rp-top .list-filter .form-control::placeholder { color: var(--gl-muted); }
.rp-top .list-filter [data-filter-count] { color: var(--gl-muted) !important; }

/* Table */
.rp-table-card { margin-bottom: 1rem; padding: .5rem; }
.rp-table-card .table-responsive { border-radius: 14px; background: rgba(255, 255, 255, .55); }
.rp-table-card .empty-note { padding: 1.1rem 1.25rem; color: var(--gl-muted); }
.rp-table-card .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); --bs-table-border-color: var(--gl-line); --bs-table-hover-bg: rgba(234, 243, 255, .55); font-size: .92rem; margin: 0; }
.rp-table-card .table-compact thead th { background: rgba(226, 238, 255, .65); color: var(--gl-text); font-weight: 600; font-size: .85rem; border-bottom: 1px solid var(--gl-line); }
.rp-table-card .table-compact > :not(caption) > * > * { padding: .8rem .85rem; vertical-align: middle; }
.rp-table-card .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.rp-table-card .table-compact tbody > tr > td { border-bottom: 0; }
.rp-table-card .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.rp-table-card .table-compact td a:not(.btn):not(.dropdown-item) { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; overflow-wrap: break-word; }
.rp-table-card .table-compact td .sub { color: var(--gl-muted); font-size: .8rem; }
.rp-table-card .table-compact td.col-serial { color: var(--gl-muted); }
.rp-status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.rp-table-card .row-menu .btn { color: var(--gl-muted); }

/* Explanatory note under the table */
.rp-note { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .85rem 1.1rem; border-radius: 16px; font-size: .88rem; color: var(--gl-muted); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(59, 130, 246, .06); }
.rp-note > .bi { flex: 0 0 auto; font-size: 1.2rem; color: var(--gl-blue); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rp-card::before { background: rgba(255, 255, 255, .94); }
    .rp-note { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 991.98px) {
    .rp-top { padding: 1rem 1rem .85rem; }
    .rp-title { font-size: 1.5rem; }
    .rp-filter-label { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
    .rp-actions, .rp-actions .rp-btn { width: 100%; justify-content: center; }
    .rp-table-card { padding: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .rp-top .filters a { transition: none; } .rp-top .filters a:hover { transform: none; } }

/* ===== SEO: liquid glass (scoped to body.page-seo .seo-page) ===== */
.seo-page { --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86; --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08); color: var(--gl-text); }
.seo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.seo-title { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.seo-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.seo-btn { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1.25rem; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.seo-btn-primary { color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb); box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.seo-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }

/* Search filter */
.seo-filter-wrap { margin-bottom: 1.25rem; }
.seo-filter-wrap .list-filter { position: relative; display: flex; align-items: center; flex-wrap: wrap; max-width: 22rem; margin: 0 !important; }
.seo-filter-wrap .list-filter-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-deep); font-size: 1rem; pointer-events: none; }
.seo-filter-wrap .list-filter .form-control { flex: 1 1 14rem; height: 44px; padding: 0 1rem 0 2.6rem; font-size: .92rem; color: var(--gl-text); border-radius: 14px; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .75); box-shadow: 0 4px 14px rgba(59, 130, 246, .08); }
.seo-filter-wrap .list-filter .form-control:focus { background: #fff; border-color: var(--gl-blue); box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2); }
.seo-filter-wrap .list-filter .form-control::placeholder { color: var(--gl-muted); }
.seo-filter-wrap .list-filter [data-filter-count] { color: var(--gl-muted) !important; font-size: .82rem; }

/* Section Glass Card */
.seo-card { position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85); border-radius: 20px; box-shadow: var(--gl-shadow); padding: 1.25rem 1.35rem; }
.seo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }

/* Card Section Header */
.seo-section-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.seo-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; font-size: 1.15rem; flex: 0 0 auto; }
.seo-tile-blue { background: linear-gradient(135deg, #e8f2ff, #d0e4ff); color: #2563eb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(37, 99, 235, .12); }
.seo-tile-purple { background: linear-gradient(135deg, #f3ebff, #e4d4ff); color: #7c3aed; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(124, 58, 237, .12); }
.seo-tile-teal { background: linear-gradient(135deg, #e6fcf5, #c3fae8); color: #0ca678; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(12, 166, 120, .12); }
.seo-tile-gray { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #64748b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(100, 116, 139, .12); }

.seo-section-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--gl-text); display: flex; align-items: center; gap: .55rem; }
.seo-section-title .badge { font-size: .78rem; font-weight: 600; color: #475569; background: rgba(255, 255, 255, .85) !important; border: 1px solid rgba(255, 255, 255, .95) !important; box-shadow: 0 2px 6px rgba(59, 130, 246, .06); border-radius: 999px; padding: .18rem .55rem; }
.seo-section-title .badge::before { display: none !important; }

/* Table styling */
.seo-table-responsive { border-radius: 14px; background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1); }
.seo-card .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); --bs-table-border-color: var(--gl-line); --bs-table-hover-bg: rgba(234, 243, 255, .55); font-size: .92rem; margin: 0; }
.seo-card .table-compact thead th { background: rgba(226, 238, 255, .65); color: var(--gl-muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--gl-line); }
.seo-card .table-compact > :not(caption) > * > * { padding: .8rem .9rem; vertical-align: middle; }
.seo-card .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.seo-card .table-compact tbody > tr > td { border-bottom: 0; }
.seo-card .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.seo-card .table-compact td a:not(.btn):not(.dropdown-item) { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; }
.seo-card .table-compact td .sub { color: var(--gl-muted); font-size: .8rem; margin-top: .15rem; }
.seo-card .table-compact td.col-serial { color: var(--gl-muted); }

/* Empty state styling */
.seo-empty-wrap { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: rgba(234, 243, 255, .35); border: 1px solid rgba(40, 120, 249, .08); }
.seo-empty-icon { font-size: 1.35rem; color: #94a3b8; flex: 0 0 auto; }
.seo-empty-wrap .empty-note { color: var(--gl-muted); font-size: .92rem; margin: 0; }

/* Informational message at bottom */
.seo-note { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; padding: .85rem 1.25rem; border-radius: 16px; font-size: .88rem; color: var(--gl-muted); background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(59, 130, 246, .06); }
.seo-note > .bi { flex: 0 0 auto; font-size: 1.15rem; color: var(--gl-blue); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .seo-card::before { background: rgba(255, 255, 255, .94); }
    .seo-note { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 991.98px) {
    .seo-title { font-size: 1.55rem; }
    .seo-card { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .seo-head { flex-direction: column; align-items: flex-start; }
    .seo-btn { width: 100%; justify-content: center; }
    .seo-card { padding: .75rem; }
}

/* ===== Project Details: liquid glass (scoped to body.page-projects .pd-page) ===== */
.pd-page {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.pd-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.pd-head-info { flex: 1 1 20rem; min-width: 0; }
.pd-title {
    display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem;
    margin: 0 0 .35rem; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text);
}
.pd-waiting { font-size: .88rem; font-weight: normal; color: var(--gl-muted); }
.pd-subtitle { font-size: .95rem; color: var(--gl-muted); margin-bottom: .45rem; }
.pd-client-link { color: var(--gl-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pd-listed-under { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--gl-muted); font-size: .85rem; }
.pd-sub { font-size: .8rem; color: var(--gl-muted); }

/* Top action buttons */
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.pd-btn {
    display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1.15rem;
    border-radius: 12px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s ease;
}
.pd-btn-sm { height: 34px; padding: 0 .85rem; font-size: .82rem; border-radius: 10px; }
.pd-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.pd-btn-secondary:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }
.pd-btn-primary-ghost {
    color: var(--gl-deep); background: rgba(238, 246, 255, .75); border: 1px solid rgba(37, 99, 235, .4);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.pd-btn-primary-ghost:hover { color: #fff; background: linear-gradient(180deg, #3d8bff, #2563eb); border-color: transparent; }
.pd-btn-danger-ghost {
    color: #dc2626; background: rgba(254, 242, 242, .75); border: 1px solid rgba(239, 68, 68, .35);
    box-shadow: 0 4px 14px rgba(239, 68, 68, .08);
}
.pd-btn-danger-ghost:hover { color: #fff; background: #dc2626; border-color: transparent; }
.pd-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pd-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }

/* Glass Card */
.pd-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: 1.35rem;
}
.pd-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.pd-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.15rem; }
.pd-card-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--gl-text); }
.pd-card-sub { font-size: .84rem; font-weight: normal; color: var(--gl-muted); }

/* Tile */
.pd-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 11px; font-size: 1.15rem; flex: 0 0 auto;
}
.pd-tile-blue {
    background: linear-gradient(135deg, #e8f2ff, #d0e4ff); color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(37, 99, 235, .12);
}

/* Key-Value List */
.pd-kv-list { display: flex; flex-direction: column; gap: .75rem; margin: 0; font-size: .92rem; }
.pd-kv-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.pd-kv-row dt { flex: 0 0 9rem; font-weight: 500; color: var(--gl-muted); margin: 0; }
.pd-kv-row dd { flex: 1 1 11rem; font-weight: 500; color: var(--gl-text); margin: 0; text-align: left; }
.pd-link { color: var(--gl-deep); text-decoration: underline; text-underline-offset: 2px; }

/* KPI Row in Hours */
.pd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pd-kpi {
    display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-radius: 14px;
    background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1);
}
.pd-kpi-tile {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 12px; font-size: 1.25rem; color: #2563eb; background: rgba(255, 255, 255, .85);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .1); flex: 0 0 auto;
}
.pd-kpi-body { display: flex; flex-direction: column; min-width: 0; }
.pd-kpi-label { font-size: .8rem; font-weight: 500; color: var(--gl-muted); margin-bottom: .15rem; }
.pd-kpi-val { font-size: 1.15rem; font-weight: 700; color: var(--gl-text); line-height: 1.2; }

/* Form in Hours */
.pd-hours-form { padding-top: .5rem; }
.pd-form-grid {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-bottom: .5rem;
}
.pd-form-col { flex: 1 1 7.5rem; min-width: 0; }
.pd-form-col-note { flex: 2 1 12rem; }
.pd-form-col-btn { flex: 0 0 auto; min-width: 8rem; }
.pd-hours-form .form-label { font-size: .82rem; font-weight: 600; color: var(--gl-muted); margin-bottom: .25rem; }
.pd-hours-form .form-control, .pd-hours-form .form-select {
    height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .8); font-size: .9rem; color: var(--gl-text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .06);
}
.pd-hours-form .form-control:focus, .pd-hours-form .form-select:focus {
    background: #fff; border-color: var(--gl-blue); box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2);
}
.pd-form-hint { font-size: .82rem; color: var(--gl-muted); margin-top: .35rem; }

/* Inset Tables */
.pd-table-responsive {
    border-radius: 14px; background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1);
}
.pd-card .table {
    --bs-table-bg: transparent; --bs-table-color: var(--gl-text); --bs-table-border-color: var(--gl-line);
    --bs-table-hover-bg: rgba(234, 243, 255, .55); font-size: .9rem; margin: 0;
}
.pd-card .table-compact thead th {
    background: rgba(226, 238, 255, .65); color: var(--gl-muted); font-weight: 600; font-size: .8rem;
    border-bottom: 1px solid var(--gl-line);
}
.pd-card .table-compact > :not(caption) > * > * { padding: .75rem .85rem; vertical-align: middle; }
.pd-card .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.pd-card .table-compact tbody > tr > td { border-bottom: 0; }
.pd-card .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.pd-card .table-compact td a:not(.btn):not(.dropdown-item) {
    color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45);
    text-underline-offset: 2px;
}
.pd-card .table-compact td.col-serial { color: var(--gl-muted); }
.pd-card .paid-check { width: 1.25rem; height: 1.25rem; cursor: pointer; }
.pd-card .paid-check:checked { background-color: #16a34a; border-color: #16a34a; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pd-card::before { background: rgba(255, 255, 255, .94); }
}
@media (max-width: 991.98px) {
    .pd-title { font-size: 1.55rem; }
    .pd-card { padding: 1.1rem; }
    .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .pd-head { flex-direction: column; align-items: flex-start; }
    .pd-actions { width: 100%; }
    .pd-actions .pd-btn { flex: 1 1 auto; justify-content: center; }
    .pd-card { padding: .85rem; }
    .pd-kpis { grid-template-columns: 1fr; }
    .pd-form-col-btn { flex: 1 1 100%; }
}

/* ===== Clients: liquid glass (scoped to body.page-clients .client-page) ===== */
.client-page {
    --gl-blue: #2878f9;
    --gl-deep: #2563eb;
    --gl-text: #172554;
    --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12);
    --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.client-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    box-shadow: var(--gl-shadow);
    padding: 1.5rem 1.75rem 1.75rem;
}
.client-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.client-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.client-head-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.client-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #2563eb;
    background: linear-gradient(135deg, #e8f2ff, #d0e4ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(37, 99, 235, .12);
    flex: 0 0 auto;
}
.client-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--gl-text);
}
.client-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: all .15s ease;
}
.client-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.client-btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #4b95ff, #1f5de0);
}
.client-btn-secondary {
    color: var(--gl-deep);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(40, 120, 249, .3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .06);
}
.client-btn-secondary:hover {
    color: var(--gl-deep);
    background: #fff;
    border-color: var(--gl-blue);
}

/* Filter row */
.client-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1rem;
    margin-bottom: 1.25rem;
}
.client-search-wrap {
    position: relative;
    flex: 0 1 24rem;
    min-width: 16rem;
}
.client-search-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gl-muted);
    font-size: .92rem;
    pointer-events: none;
}
.client-search-input {
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(40, 120, 249, .18);
    background: rgba(255, 255, 255, .75);
    font-size: .9rem;
    color: var(--gl-text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
}
.client-search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--gl-blue);
    box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2);
}
.client-check-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.client-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 120, 249, .3);
    cursor: pointer;
}
.client-check-input:checked {
    background-color: var(--gl-deep);
    border-color: var(--gl-deep);
}
.client-check-label {
    font-size: .9rem;
    color: var(--gl-muted);
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

/* Table */
.client-table-responsive {
    border-radius: 14px;
    background: rgba(234, 243, 255, .45);
    border: 1px solid rgba(40, 120, 249, .1);
}
.client-card .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--gl-text);
    --bs-table-border-color: var(--gl-line);
    --bs-table-hover-bg: rgba(234, 243, 255, .55);
    font-size: .92rem;
    margin: 0;
}
.client-card .table-compact thead th {
    background: rgba(226, 238, 255, .65);
    color: var(--gl-muted);
    font-weight: 600;
    font-size: .82rem;
    border-bottom: 1px solid var(--gl-line);
    padding: .8rem .9rem;
}
.client-card .table-compact > :not(caption) > * > * {
    padding: .8rem .9rem;
    vertical-align: middle;
}
.client-card .table-compact tbody tr + tr > td {
    border-top: 1px solid var(--gl-line);
}
.client-card .table-compact tbody > tr > td {
    border-bottom: 0;
}
.client-card .table-compact tbody tr:hover > td {
    background: rgba(234, 243, 255, .5);
}
.client-card .table-compact td a.client-name-link {
    color: var(--gl-deep);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, .45);
    text-underline-offset: 2px;
    font-weight: 600;
}
.client-card .table-compact td.col-serial {
    color: var(--gl-muted);
}
.client-card .table-compact thead th:not(.col-serial):not(.th-nosort)::after {
    content: "\f127";
    font-family: "bootstrap-icons" !important;
    font-size: .72rem;
    font-weight: normal;
    opacity: .42;
    margin-left: .35rem;
    display: inline-block;
    vertical-align: middle;
}

/* WhatsApp chip & channel chips */
.page-clients .chip {
    border-radius: 999px;
    padding: .22rem .75rem;
    font-size: .8rem;
    font-weight: 500;
}
.page-clients .chip::before { display: none !important; }

/* Project count badge */
.client-projects-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 .5rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gl-deep);
    background: rgba(219, 234, 254, .7);
    border: 1px solid rgba(147, 188, 250, .4);
}

/* Empty State */
.client-empty-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(234, 243, 255, .35);
    border: 1px solid rgba(40, 120, 249, .08);
}
.client-empty-icon {
    font-size: 1.4rem;
    color: #94a3b8;
    flex: 0 0 auto;
}
.client-empty-wrap .empty-note {
    color: var(--gl-muted);
    font-size: .92rem;
    margin: 0;
}
.client-empty-wrap a {
    color: var(--gl-deep);
    font-weight: 600;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .client-card::before { background: rgba(255, 255, 255, .94); }
}
@media (max-width: 991.98px) {
    .client-title { font-size: 1.45rem; }
    .client-card { padding: 1.15rem; }
}
@media (max-width: 575.98px) {
    .client-head { flex-direction: column; align-items: flex-start; }
    .client-head-right { width: 100%; }
    .client-head-right .client-btn { width: 100%; justify-content: center; }
    .client-card { padding: .85rem; }
    .client-search-wrap { flex: 1 1 100%; min-width: 100%; }
}

/* ===== Recurring Clients: liquid glass (scoped to body.page-recurring .rec-page) ===== */
.rec-page {
    --gl-blue: #2878f9;
    --gl-deep: #2563eb;
    --gl-text: #172554;
    --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12);
    --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.rec-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    box-shadow: var(--gl-shadow);
}
.rec-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.rec-top {
    padding: 1.35rem 1.6rem 1.25rem;
    margin-bottom: 1.15rem;
}
.rec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1.15rem;
}
.rec-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--gl-text);
}
.rec-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #2563eb;
    background: linear-gradient(135deg, #e8f2ff, #d0e4ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(37, 99, 235, .12);
    flex: 0 0 auto;
}
.rec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.rec-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: all .15s ease;
}
.rec-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rec-btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #4b95ff, #1f5de0);
}

/* Status Filter Pills */
.rec-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.15rem;
}
.rec-filters a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: .3rem .9rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--gl-text);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(40, 120, 249, .15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
    text-decoration: none;
    transition: all .15s ease;
}
.rec-filters a:hover {
    background: #fff;
    border-color: rgba(40, 120, 249, .35);
    color: var(--gl-deep);
}
.rec-filters a .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .4rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gl-deep);
    background: rgba(40, 120, 249, .1);
}
.rec-filters a.active {
    color: #fff;
    font-weight: 600;
    border-color: transparent;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rec-filters a.active .n {
    color: #fff;
    background: rgba(255, 255, 255, .25);
}

/* Outstanding Payments Widget */
.rec-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0 0 1.15rem;
}
.rec-stat {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1.15rem;
    border-radius: 14px;
    background: rgba(234, 243, 255, .5);
    border: 1px solid rgba(40, 120, 249, .12);
    box-shadow: 0 3px 10px rgba(59, 130, 246, .05);
}
.rec-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 1.15rem;
    color: #2563eb;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 6px rgba(37, 99, 235, .08);
    flex: 0 0 auto;
}
.rec-stat-body {
    display: flex;
    flex-direction: column;
}
.rec-stat-label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--gl-muted);
}
.rec-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gl-text);
}

/* Search input */
.rec-top .list-filter {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 24rem;
    margin: 0 !important;
}
.rec-top .list-filter-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gl-muted);
    font-size: .92rem;
    pointer-events: none;
}
.rec-top .list-filter .form-control {
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(40, 120, 249, .18);
    background: rgba(255, 255, 255, .75);
    font-size: .9rem;
    color: var(--gl-text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
}
.rec-top .list-filter .form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--gl-blue);
    box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2);
}
.rec-top .list-filter .form-control::placeholder {
    color: var(--gl-muted);
}

/* Table Card */
.rec-table-card {
    margin-bottom: 1rem;
    padding: .5rem;
}
.rec-table-card .table-responsive {
    border-radius: 14px;
    background: rgba(234, 243, 255, .45);
    border: 1px solid rgba(40, 120, 249, .1);
}
.rec-table-card .empty-note {
    padding: 1.25rem 1.5rem;
    color: var(--gl-muted);
    font-size: .92rem;
}
.rec-table-card .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--gl-text);
    --bs-table-border-color: var(--gl-line);
    --bs-table-hover-bg: rgba(234, 243, 255, .55);
    font-size: .92rem;
    margin: 0;
}
.rec-table-card .table-compact thead th {
    background: rgba(226, 238, 255, .65);
    color: var(--gl-muted);
    font-weight: 600;
    font-size: .82rem;
    border-bottom: 1px solid var(--gl-line);
    padding: .8rem .9rem;
}
.rec-table-card .table-compact > :not(caption) > * > * {
    padding: .8rem .9rem;
    vertical-align: middle;
}
.rec-table-card .table-compact tbody tr + tr > td {
    border-top: 1px solid var(--gl-line);
}
.rec-table-card .table-compact tbody > tr > td {
    border-bottom: 0;
}
.rec-table-card .table-compact tbody tr:hover > td {
    background: rgba(234, 243, 255, .5);
}
.rec-table-card .table-compact td a:not(.btn):not(.dropdown-item) {
    color: var(--gl-deep);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, .45);
    text-underline-offset: 2px;
    font-weight: 500;
}
.rec-table-card .table-compact td .sub {
    color: var(--gl-muted);
    font-size: .8rem;
    margin-top: .15rem;
}
.rec-table-card .table-compact td.col-serial {
    color: var(--gl-muted);
}
.rec-table-card .row-menu .btn {
    color: var(--gl-muted);
    border-radius: 10px;
}
.rec-table-card .row-menu .btn:hover,
.rec-table-card .row-menu .btn:focus-visible {
    background: rgba(40, 120, 249, .1);
    color: var(--gl-deep);
}

/* Informational Note at Bottom */
.rec-note {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0 0;
    padding: .85rem 1.25rem;
    border-radius: 16px;
    font-size: .88rem;
    color: var(--gl-muted);
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .06);
}
.rec-note > .bi {
    flex: 0 0 auto;
    font-size: 1.15rem;
    color: var(--gl-blue);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rec-card::before { background: rgba(255, 255, 255, .94); }
    .rec-note { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 991.98px) {
    .rec-title { font-size: 1.5rem; }
    .rec-top { padding: 1.15rem; }
    .rec-table-card { padding: .35rem; }
}
@media (max-width: 575.98px) {
    .rec-head { flex-direction: column; align-items: flex-start; }
    .rec-actions, .rec-actions .rec-btn { width: 100%; justify-content: center; }
    .rec-top { padding: .85rem; }
}

/* ===== Hourly Project: liquid glass (scoped to body.page-hourly .hourly-page) ===== */
.hourly-page {
    --gl-blue: #2878f9;
    --gl-deep: #2563eb;
    --gl-text: #172554;
    --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12);
    --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.hourly-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    box-shadow: var(--gl-shadow);
}
.hourly-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.hourly-top {
    padding: 1.35rem 1.6rem 1.25rem;
    margin-bottom: 1.15rem;
}
.hourly-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1.15rem;
}
.hourly-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--gl-text);
}
.hourly-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #2563eb;
    background: linear-gradient(135deg, #e8f2ff, #d0e4ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(37, 99, 235, .12);
    flex: 0 0 auto;
}
.hourly-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.hourly-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: all .15s ease;
}
.hourly-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hourly-btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #4b95ff, #1f5de0);
}

/* Work-type filter pills */
.hourly-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.15rem;
}
.hourly-filter-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gl-muted);
    margin-right: .25rem;
}
.hourly-filters a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: .3rem .9rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--gl-text);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(40, 120, 249, .15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
    text-decoration: none;
    transition: all .15s ease;
}
.hourly-filters a:hover {
    background: #fff;
    border-color: rgba(40, 120, 249, .35);
    color: var(--gl-deep);
}
.hourly-filters a .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .4rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gl-deep);
    background: rgba(40, 120, 249, .1);
}
.hourly-filters a.active {
    color: #fff;
    font-weight: 600;
    border-color: transparent;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hourly-filters a.active .n {
    color: #fff;
    background: rgba(255, 255, 255, .25);
}

/* Search input */
.hourly-top .list-filter {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 24rem;
    margin: 0 !important;
}
.hourly-top .list-filter-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gl-muted);
    font-size: .92rem;
    pointer-events: none;
}
.hourly-top .list-filter .form-control {
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(40, 120, 249, .18);
    background: rgba(255, 255, 255, .75);
    font-size: .9rem;
    color: var(--gl-text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
}
.hourly-top .list-filter .form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--gl-blue);
    box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2);
}
.hourly-top .list-filter .form-control::placeholder {
    color: var(--gl-muted);
}

/* Table Card */
.hourly-table-card {
    margin-bottom: 1rem;
    padding: .5rem;
}
.hourly-table-card .table-responsive {
    border-radius: 14px;
    background: rgba(234, 243, 255, .45);
    border: 1px solid rgba(40, 120, 249, .1);
}
.hourly-table-card .empty-note {
    padding: 1.25rem 1.5rem;
    color: var(--gl-muted);
    font-size: .92rem;
}
.hourly-table-card .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--gl-text);
    --bs-table-border-color: var(--gl-line);
    --bs-table-hover-bg: rgba(234, 243, 255, .55);
    font-size: .92rem;
    margin: 0;
}
.hourly-table-card .table-compact thead th {
    background: rgba(226, 238, 255, .65);
    color: var(--gl-muted);
    font-weight: 600;
    font-size: .82rem;
    border-bottom: 1px solid var(--gl-line);
    padding: .8rem .9rem;
}
.hourly-table-card .table-compact > :not(caption) > * > * {
    padding: .8rem .9rem;
    vertical-align: middle;
}
.hourly-table-card .table-compact tbody tr + tr > td {
    border-top: 1px solid var(--gl-line);
}
.hourly-table-card .table-compact tbody > tr > td {
    border-bottom: 0;
}
.hourly-table-card .table-compact tbody tr:hover > td {
    background: rgba(234, 243, 255, .5);
}
.hourly-table-card .table-compact td a:not(.btn):not(.dropdown-item) {
    color: var(--gl-deep);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, .45);
    text-underline-offset: 2px;
    font-weight: 500;
}
.hourly-table-card .table-compact td .sub {
    color: var(--gl-muted);
    font-size: .8rem;
    margin-top: .15rem;
}
.hourly-table-card .table-compact td.col-serial {
    color: var(--gl-muted);
}
.hourly-table-card .row-menu .btn {
    color: var(--gl-muted);
    border-radius: 10px;
}
.hourly-table-card .row-menu .btn:hover,
.hourly-table-card .row-menu .btn:focus-visible {
    background: rgba(40, 120, 249, .1);
    color: var(--gl-deep);
}

/* Work type badge */
.hourly-work-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gl-deep);
    background: rgba(219, 234, 254, .7);
    border: 1px solid rgba(147, 188, 250, .4);
}

/* Informational Note at Bottom */
.hourly-note {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0 0;
    padding: .85rem 1.25rem;
    border-radius: 16px;
    font-size: .88rem;
    color: var(--gl-muted);
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .06);
}
.hourly-note > .bi {
    flex: 0 0 auto;
    font-size: 1.15rem;
    color: var(--gl-blue);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hourly-card::before { background: rgba(255, 255, 255, .94); }
    .hourly-note { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 991.98px) {
    .hourly-title { font-size: 1.5rem; }
    .hourly-top { padding: 1.15rem; }
    .hourly-table-card { padding: .35rem; }
}
@media (max-width: 575.98px) {
    .hourly-head { flex-direction: column; align-items: flex-start; }
    .hourly-actions, .hourly-actions .hourly-btn { width: 100%; justify-content: center; }
    .hourly-top { padding: .85rem; }
}
/* Global Form Controls & Inputs for Liquid Glass */
.form-control, .form-select {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 12px;
    color: var(--gl-text);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .05);
    transition: all .15s ease;
}
.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: #2878f9;
    box-shadow: 0 0 0 .2rem rgba(40, 120, 249, .2);
    color: var(--gl-text);
}
.form-check-input {
    border-color: rgba(40, 120, 249, .35);
    background-color: rgba(255, 255, 255, .8);
}
.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}
.alert {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .07);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* ===== Payment Pending: Liquid Glass ===== */
.pending-page {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.pending-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow);
}
.pending-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.pending-top { padding: 1.35rem 1.45rem; margin-bottom: 1.25rem; }
.pending-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.pending-title-wrap { display: flex; align-items: center; gap: .85rem; }
.pending-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem;
    color: #e0483f; background: linear-gradient(145deg, #fff3f3, #fdd6d6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(224, 72, 63, .14);
}
.pending-title { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.pending-subtitle { font-size: .92rem; color: var(--gl-muted); margin-top: .15rem; }

.pending-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.pending-btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1.2rem;
    border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s ease;
}
.pending-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pending-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.pending-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.pending-btn-secondary:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }

/* Pending Stats Grid */
.pending-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .85rem; margin-bottom: 1.25rem;
}
.pending-stat-card {
    background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px; padding: 1rem 1.15rem; box-shadow: 0 4px 14px rgba(59, 130, 246, .05);
}
.pending-stat-card.urgent { border-left: 4px solid #ef4444; background: rgba(254, 242, 242, .65); }
.pending-stat-label { font-size: .8rem; font-weight: 600; color: var(--gl-muted); text-transform: uppercase; letter-spacing: .03em; }
.pending-stat-value { font-size: 1.45rem; font-weight: 700; color: var(--gl-text); margin: .25rem 0; }
.pending-stat-overdue { font-size: .82rem; color: #dc2626; font-weight: 600; }
.pending-stat-ontime { font-size: .82rem; color: #16a34a; font-weight: 500; }

.pending-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .85rem 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gl-line);
}
.pending-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pending-filter-label { font-size: .85rem; font-weight: 600; color: var(--gl-muted); margin-right: .2rem; }
.pending-filter-pill {
    display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .95rem;
    border-radius: 999px; font-size: .86rem; font-weight: 500; text-decoration: none;
    color: var(--gl-muted); background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(40, 120, 249, .15); box-shadow: 0 2px 8px rgba(59, 130, 246, .04);
}
.pending-filter-pill:hover { background: #fff; color: var(--gl-deep); border-color: rgba(40, 120, 249, .4); }
.pending-filter-pill.active {
    background: linear-gradient(180deg, #e8f1ff, #d7e8ff); border-color: rgba(40, 120, 249, .55);
    color: var(--gl-deep); font-weight: 600;
}
.pending-search-wrap .list-filter { position: relative; display: flex; align-items: center; margin: 0 !important; }
.pending-search-wrap .list-filter-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-deep); font-size: 1rem; pointer-events: none; }
.pending-search-wrap .list-filter .form-control {
    width: 220px; height: 40px; padding: 0 1rem 0 2.4rem; font-size: .88rem;
    color: var(--gl-text); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .75); box-shadow: 0 4px 12px rgba(59, 130, 246, .06);
}

.pending-table-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: .65rem; margin-bottom: 1rem;
}
.pending-table-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.pending-table-responsive { border-radius: 14px; background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1); }
.pending-table-card .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); margin: 0; font-size: .92rem; }
.pending-table-card .table-compact thead th { background: rgba(226, 238, 255, .65); color: var(--gl-muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--gl-line); }
.pending-table-card .table-compact > :not(caption) > * > * { padding: .8rem .9rem; vertical-align: middle; }
.pending-table-card .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.pending-table-card .table-compact tbody > tr > td { border-bottom: 0; }
.pending-table-card .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.pending-client-link { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; }
.pending-project-link { color: var(--gl-text); font-weight: 500; text-decoration: none; }
.pending-project-link:hover { color: var(--gl-deep); }
.pending-currency-badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #475569; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .95); }
.pending-record-btn {
    display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .8rem;
    border-radius: 10px; font-size: .82rem; font-weight: 600; text-decoration: none;
    color: var(--gl-deep); background: rgba(238, 246, 255, .8); border: 1px solid rgba(40, 120, 249, .35);
}
.pending-record-btn:hover { background: linear-gradient(180deg, #3d8bff, #2563eb); color: #fff; border-color: transparent; }
.pending-note {
    display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; padding: .85rem 1.25rem;
    border-radius: 16px; font-size: .88rem; color: var(--gl-muted); background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(59, 130, 246, .06);
}
.pending-note > .bi { flex: 0 0 auto; font-size: 1.15rem; color: var(--gl-blue); }
.pending-empty-state { text-align: center; padding: 3rem 1.5rem; }
.pending-empty-icon { font-size: 2.2rem; color: #94a3b8; margin-bottom: .5rem; }

/* ===== Payments Module: Liquid Glass ===== */
.payments-page, .payments-show-page {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.payments-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: 1.35rem 1.45rem;
}
.payments-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.payments-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.payments-title-wrap { display: flex; align-items: center; gap: .85rem; }
.payments-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem;
    color: #2563eb; background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(37, 99, 235, .14);
}
.payments-title { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.payments-subtitle { font-size: .92rem; color: var(--gl-muted); margin-top: .15rem; }
.payments-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.payments-btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1.2rem;
    border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s ease;
}
.payments-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.payments-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.payments-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.payments-btn-secondary:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }
.payments-input-icon-wrap { position: relative; }
.payments-input-icon-wrap > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-muted); pointer-events: none; }
.payments-input-icon-wrap .form-control { padding-left: 2.4rem; }

.payments-table-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: .65rem; margin-top: 1rem;
}
.payments-table-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.payments-table-responsive { border-radius: 14px; background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1); }
.payments-table-card .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); margin: 0; font-size: .92rem; }
.payments-table-card .table-compact thead th { background: rgba(226, 238, 255, .65); color: var(--gl-muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--gl-line); }
.payments-table-card .table-compact > :not(caption) > * > * { padding: .8rem .9rem; vertical-align: middle; }
.payments-table-card .table-compact tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.payments-table-card .table-compact tbody > tr > td { border-bottom: 0; }
.payments-table-card .table-compact tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.payments-client-link { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; }
.payments-desc-link { color: var(--gl-text); text-decoration: none; }
.payments-desc-link:hover { color: var(--gl-deep); text-decoration: underline; }
.payments-project-link { color: var(--gl-muted); text-decoration: none; }
.payments-project-link:hover { color: var(--gl-deep); }
.payments-stat-tile { background: rgba(255, 255, 255, .75); padding: 1.1rem 1.25rem; }
.payments-stat-tile.urgent { border-left: 4px solid #ef4444; background: rgba(254, 242, 242, .65); }
.payments-meta { font-size: .9rem; color: var(--gl-muted); }
.payments-meta .meta-dot { margin: 0 .4rem; }
.payments-subtable th { background: rgba(226, 238, 255, .55); font-size: .8rem; color: var(--gl-muted); }
.payments-subtable td { padding: .65rem .75rem; }
.payments-note { font-size: .85rem; color: var(--gl-muted); }

/* ===== Clients Module: Liquid Glass ===== */
.client-show-page {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.clients-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: 1.35rem 1.45rem;
}
.clients-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.clients-avatar-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 16px; font-size: 1.5rem;
    color: #2563eb; background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(37, 99, 235, .14);
}
.clients-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem;
    color: #2563eb; background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(37, 99, 235, .14);
}
.clients-title { font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.clients-subtitle { font-size: .92rem; color: var(--gl-muted); }
.clients-btn {
    display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 1.15rem;
    border-radius: 12px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: all .15s ease;
}
.clients-btn-sm { height: 34px; padding: 0 .85rem; font-size: .82rem; border-radius: 10px; }
.clients-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.clients-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.clients-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.clients-btn-secondary:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }
.clients-btn-danger-ghost {
    color: #dc2626; background: rgba(254, 242, 242, .75); border: 1px solid rgba(239, 68, 68, .35);
    box-shadow: 0 4px 14px rgba(239, 68, 68, .08);
}
.clients-btn-danger-ghost:hover { color: #fff; background: #dc2626; border-color: transparent; }
.clients-profile-list dt { font-weight: 600; margin-top: .6rem; }
.clients-profile-list dd { margin-bottom: .2rem; }
.clients-subtable th { background: rgba(226, 238, 255, .55); font-size: .8rem; color: var(--gl-muted); }
.clients-subtable td { padding: .65rem .75rem; }
.clients-project-list .list-group-item { border-bottom: 1px solid var(--gl-line); }

/* ===== Projects Module: Liquid Glass ===== */
.projects-page {
    --gl-blue: #2878f9; --gl-deep: #2563eb; --gl-text: #172554; --gl-muted: #5b6b86;
    --gl-line: rgba(40, 120, 249, .12); --gl-shadow: 0 8px 24px rgba(59, 130, 246, .08);
    color: var(--gl-text);
}
.projects-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: 1.35rem 1.45rem;
}
.projects-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.projects-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem;
    color: #2563eb; background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(37, 99, 235, .14);
}
.projects-title { margin: 0; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; color: var(--gl-text); }
.projects-subtitle { font-size: .92rem; color: var(--gl-muted); margin-top: .15rem; }
.projects-btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1.2rem;
    border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s ease;
}
.projects-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.projects-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.projects-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .08);
}
.projects-btn-secondary:hover { color: var(--gl-deep); background: #fff; border-color: rgba(40, 120, 249, .35); }
.projects-input-icon-wrap { position: relative; }
.projects-input-icon-wrap > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-muted); pointer-events: none; }
.projects-input-icon-wrap .form-control { padding-left: 2.4rem; }

.projects-table-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); padding: .65rem; margin-top: 1rem;
}
.projects-table-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
.projects-table-responsive { border-radius: 14px; background: rgba(234, 243, 255, .45); border: 1px solid rgba(40, 120, 249, .1); }
.projects-table-card .table { --bs-table-bg: transparent; --bs-table-color: var(--gl-text); margin: 0; font-size: .92rem; }
.projects-table-card thead th { background: rgba(226, 238, 255, .65); color: var(--gl-muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--gl-line); }
.projects-table-card > :not(caption) > * > * { padding: .8rem .9rem; vertical-align: middle; }
.projects-table-card tbody tr + tr > td { border-top: 1px solid var(--gl-line); }
.projects-table-card tbody > tr > td { border-bottom: 0; }
.projects-table-card tbody tr:hover > td { background: rgba(234, 243, 255, .5); }
.projects-item-link { color: var(--gl-deep); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .45); text-underline-offset: 2px; }

/* ===== Account & Auth & Error: Liquid Glass ===== */
.account-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px; box-shadow: var(--gl-shadow); background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.account-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem;
    color: #2563eb; background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(37, 99, 235, .14);
}
.account-title { font-size: 1.6rem; font-weight: 700; color: var(--gl-text); }
.account-subtitle { font-size: .9rem; color: var(--gl-muted); }
.account-btn {
    display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 1.15rem;
    border-radius: 12px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: all .15s ease;
}
.account-btn-primary {
    color: #fff; border: 0; background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.account-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
.account-btn-secondary {
    color: #334155; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95);
}
.account-btn-secondary:hover { color: var(--gl-deep); background: #fff; }

.login-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 24px; box-shadow: 0 16px 40px rgba(59, 130, 246, .12);
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}
.login-brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 18px;
    background: linear-gradient(145deg, #eef5ff, #d3e5ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px rgba(37, 99, 235, .16);
}
.login-brand-title { font-size: 1.65rem; font-weight: 700; color: var(--gl-text); }
.login-input-wrap { position: relative; }
.login-input-wrap > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gl-muted); pointer-events: none; }
.login-input-wrap .form-control { height: 46px; padding-left: 2.5rem; border-radius: 12px; }
.login-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.25rem;
    border-radius: 12px; font-weight: 600; font-size: .95rem; color: #fff; border: 0;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.login-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }

.error-glass-card {
    position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 24px; box-shadow: 0 16px 40px rgba(59, 130, 246, .12);
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}
.error-code-badge {
    display: inline-block; font-size: 3rem; font-weight: 800; color: #2563eb;
    letter-spacing: -.02em; line-height: 1;
}
.error-title { font-weight: 700; color: var(--gl-text); }
.error-message { font-size: 1.05rem; }
.error-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1.35rem;
    border-radius: 999px; font-weight: 600; font-size: .92rem; color: #fff; border: 0; text-decoration: none;
    background: linear-gradient(180deg, #3d8bff, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.error-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #4b95ff, #1f5de0); }
