:root {
    --ios-surface: rgba(255, 255, 255, 0.86);
    --ios-surface-solid: #fff;
    --ios-border: rgba(28, 43, 66, 0.1);
    --ios-shadow: 0 16px 45px rgba(35, 55, 80, 0.08);
    --ios-radius: 17px;
    --ios-control-radius: 7px;
    --ios-navy: color-mix(in srgb, var(--bs-primary), #10233f 36%);
}

[data-bs-theme="dark"] {
    --ios-surface: rgba(28, 28, 30, 0.8);
    --ios-surface-solid: #1c1c1e;
    --ios-border: rgba(235, 235, 245, 0.14);
    --ios-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

html,
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body {
    background:
        radial-gradient(circle at 75% 0%, rgba(var(--bs-primary-rgb), 0.09), transparent 28rem),
        var(--bs-body-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[data-bs-theme="light"] body {
    background-color: color-mix(in srgb, var(--bs-body-bg), #000 5%);
}

[data-bs-theme="dark"] body {
    background:
        radial-gradient(circle at 75% 0%, rgba(var(--bs-primary-rgb), 0.12), transparent 30rem),
        color-mix(in srgb, var(--bs-body-bg), #000 30%);
}

.layout-navbar.navbar-detached,
#layout-menu,
.dropdown-menu,
.modal-content,
.offcanvas {
    background: var(--ios-surface) !important;
    border: 1px solid var(--ios-border) !important;
    box-shadow: var(--ios-shadow) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
}

.layout-navbar.navbar-detached,
.dropdown-menu,
.modal-content,
.offcanvas {
    border-radius: var(--ios-radius);
}

#layout-menu {
    border-block: 0 !important;
    border-inline-start: 0 !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.04) !important;
}

.app-brand-text,
h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
    letter-spacing: -0.025em;
}

.card {
    border: 1px solid var(--ios-border) !important;
    border-radius: var(--ios-radius) !important;
    box-shadow: var(--ios-shadow) !important;
    overflow: hidden;
}

[data-bs-theme="light"] .card {
    background-color: color-mix(in srgb, var(--bs-card-bg), #fff 50%) !important;
}

[data-bs-theme="dark"] .card {
    background-color: color-mix(in srgb, var(--bs-body-bg), #fff 3%) !important;
}

.card-header,
.card-footer {
    background: transparent;
}

.card-header {
    border-bottom-color: var(--ios-border);
}

.btn {
    border-radius: var(--ios-control-radius);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-primary {
    box-shadow: 0 5px 14px rgba(var(--bs-primary-rgb), 0.25);
}

.btn:active {
    transform: scale(0.98);
}

[data-bs-theme] .tooltip {
    --bs-tooltip-bg: #000;
    --bs-tooltip-color: #fff;
    --bs-tooltip-arrow-bg: #000;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--default .select2-selection,
.flatpickr-input {
    border-color: var(--ios-border) !important;
    border-radius: var(--ios-control-radius) !important;
    background-color: rgba(var(--bs-body-bg-rgb), 0.72);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.14) !important;
}

.select2-container--default .select2-selection {
    border: 1px solid var(--bs-body-color) !important;
    background-color: rgba(var(--bs-body-bg-rgb), 0.72) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.16) !important;
    color: var(--bs-primary) !important;
}

.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
    border-color: var(--bs-primary) !important;
}

.dropdown-menu,
.select2-dropdown,
.flatpickr-calendar {
    background: var(--bs-card-bg) !important;
}

.select2-dropdown {
    border: 1px solid var(--ios-border) !important;
    border-radius: var(--ios-control-radius) !important;
    box-shadow: var(--bs-box-shadow-lg) !important;
    overflow: hidden;
}

.select2-dropdown--below {
    margin-top: 0.375rem;
}

.select2-dropdown--above {
    transform: translateY(-0.375rem);
}

.input-group > :not(:first-child) {
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
}

.input-group > :not(:last-child) {
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.badge,
.nav-pills .nav-link,
.pagination .page-link {
    border-radius: 999px !important;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--ios-border);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(var(--bs-primary-rgb), 0.06);
}

.menu-vertical .menu-item .menu-link {
    margin-inline: 0.75rem;
    border-radius: var(--ios-control-radius);
}

.menu-vertical .menu-item.active > .menu-link {
    background-color: rgba(var(--bs-primary-rgb), 0.14) !important;
    color: var(--bs-primary) !important;
    box-shadow: none !important;
}

.menu-vertical .menu-sub .menu-link {
    border-radius: 10px;
}

.avatar img,
.rounded-circle {
    border: 1px solid var(--ios-border);
}

.alert,
.accordion-item,
.toast,
.swal2-popup {
    border: 1px solid var(--ios-border) !important;
    border-radius: var(--ios-radius) !important;
}

.swal2-popup {
    --swal2-background: var(--ios-surface-solid);
    --swal2-color: var(--bs-body-color);
    --swal2-confirm-button-background-color: var(--bs-primary);
    --swal2-deny-button-background-color: var(--bs-danger);
    --swal2-cancel-button-background-color: var(--bs-danger);
    --swal2-input-border: 1px solid var(--bs-border-color);
    --swal2-input-focus-border: 1px solid var(--bs-primary);
}

.my-swal-toast .swal2-title,
.my-swal-toast .swal2-html-container {
    color: var(--bs-body-color) !important;
}

.progress {
    border-radius: 999px;
}

.authentication-wrapper {
    background:
        radial-gradient(circle at 18% 18%, rgba(var(--bs-primary-rgb), 0.16), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(90, 200, 250, 0.14), transparent 32%),
        var(--bs-body-bg);
}

.authentication-wrapper .authentication-bg {
    background: var(--ios-surface) !important;
    border-inline-start: 1px solid var(--ios-border);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
}

@media (prefers-reduced-motion: no-preference) {
    .btn,
    .card,
    .menu-link {
        transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    }

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

@media (max-width: 767.98px) {
    :root {
        --ios-radius: 9px;
    }

    .layout-navbar.navbar-detached {
        border-radius: 7px;
    }
}

/* Bootstrap application shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    min-width: 0;
    flex: 1 1 auto;
}

.app-sidebar {
    --bs-offcanvas-width: 18rem;
    display: flex;
    width: 18rem;
    flex: 0 0 18rem;
    overflow: hidden;
    flex-direction: column;
    background: color-mix(in srgb, var(--bs-card-bg), transparent 8%) !important;
    border-inline-end: 1px solid var(--ios-border) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
}

.app-sidebar .offcanvas-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
}

.app-sidebar-search {
    flex: 0 0 auto;
}

.app-sidebar .offcanvas-body.is-scrollbar-active {
    scrollbar-color: rgba(var(--bs-body-color-rgb), 0.28) transparent;
}

.app-sidebar .offcanvas-body::-webkit-scrollbar {
    width: 0.35rem;
}

.app-sidebar .offcanvas-body::-webkit-scrollbar-track,
.app-sidebar .offcanvas-body::-webkit-scrollbar-button {
    background: transparent;
}

.app-sidebar .offcanvas-body::-webkit-scrollbar-button {
    width: 0;
    height: 0;
}

.app-sidebar .offcanvas-body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.app-sidebar .offcanvas-body.is-scrollbar-active::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-body-color-rgb), 0.28);
}

.app-sidebar-header {
    display: flex !important;
}

.app-sidebar .app-brand-logo {
    min-width: 0;
}

.app-sidebar .app-brand-logo img {
    width: auto;
    max-width: 8rem;
    height: 2.5rem;
}

.app-navbar {
    margin: 1rem 1.5rem 0;
    padding: 0.35rem 1rem;
    background: var(--ios-surface) !important;
    border: 1px solid var(--ios-border);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
}

.app-content {
    width: 100%;
    padding: 1.5rem;
}

.app-brand-logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.menu-inner,
.menu-sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item + .menu-item {
    margin-top: 0.25rem;
}

.menu-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: var(--ios-control-radius);
}

.app-sidebar .menu-link {
    width: 100%;
    padding-block: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--ios-control-radius) + 8px) !important;
    box-shadow: none !important;
}

[data-bs-theme="light"] .app-sidebar :is(.menu-link, .menu-expand-toggle) {
    color: color-mix(in srgb, var(--bs-body-color), #000 16%);
}

[data-bs-theme="dark"] .app-sidebar :is(.menu-link, .menu-expand-toggle) {
    color: color-mix(in srgb, var(--bs-body-color), #fff 14%);
}

.app-sidebar .menu-item[data-dynamic-menu="true"] {
    position: relative;
}

.app-sidebar .menu-parent-link {
    padding-inline-end: 3.5rem;
}

.app-sidebar .menu-expand-toggle {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.25rem;
    inset-inline-end: 0.5rem;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    place-items: center;
    color: var(--bs-body-color);
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.app-sidebar .menu-expand-toggle:hover,
.app-sidebar .menu-expand-toggle:focus-visible {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.app-sidebar .menu-expand-toggle::after {
    margin: 0;
}

.app-sidebar .menu-link:hover,
.app-sidebar .menu-link:focus {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.08);
    outline: 0;
}

.app-sidebar .menu-item.active > .menu-link {
    color: var(--bs-primary);
    font-weight: 600;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-color: rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.04) !important;
}

.app-sidebar .menu-item.active:not(:has(.menu-item.active)) > .menu-link {
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0.4rem 1rem rgba(var(--bs-primary-rgb), 0.24) !important;
}

[data-bs-theme="dark"] .app-sidebar .menu-item.active:not(:has(.menu-item.active)) > .menu-link {
    color: var(--bs-body-bg);
}

.app-sidebar .menu-link:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.35);
    outline-offset: 2px;
}

.app-sidebar .menu-link > span:first-child,
.app-sidebar .menu-link > .menu-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.app-sidebar .menu-link:hover > span:first-child,
.app-sidebar .menu-link:focus > span:first-child,
.app-sidebar .menu-item.active > .menu-link > span:first-child {
    background: rgba(var(--bs-primary-rgb), 0.09);
}

.app-sidebar .menu-item.active:not(:has(.menu-item.active)) > .menu-link > :is(span:first-child, .menu-icon) {
    background: rgba(255, 255, 255, 0.16);
}

[data-bs-theme="dark"] .app-sidebar .menu-item.active:not(:has(.menu-item.active)) > .menu-link > :is(span:first-child, .menu-icon) {
    background: rgba(var(--bs-body-bg-rgb), 0.16);
}

.menu-toggle::after {
    content: "\203A";
    margin-inline-start: auto;
    font-size: 1.25rem;
    transition: transform 160ms ease;
}

.menu-item.open > .menu-toggle::after {
    transform: rotate(90deg);
}

.menu-sub {
    display: none;
    margin: 0.25rem 0 0.5rem 1rem;
    padding-inline-start: 0.5rem;
}

.menu-item.open > .menu-sub {
    display: block;
}

.menu-sub .menu-link {
    min-height: 2.75rem;
    font-size: 0.925rem;
}

.avatar {
    position: relative;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.avatar img,
.avatar-initial {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 2rem; height: 2rem; }
.avatar-lg { width: 3.5rem; height: 3.5rem; }
.avatar-xl { width: 5rem; height: 5rem; }
.avatar-online::after,
.avatar-busy::after,
.avatar-offline::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.65rem;
    height: 0.65rem;
    content: "";
    background: var(--bs-success);
    border: 2px solid var(--ios-surface-solid);
    border-radius: 50%;
}

.avatar-busy::after { background: var(--bs-danger); }
.avatar-offline::after { background: var(--bs-secondary); }

.icon-base { display: inline-flex; align-items: center; justify-content: center; }
.icon-xs, .icon-12px { font-size: 0.75rem; }
.icon-14px { font-size: 0.875rem; }
.icon-sm, .icon-16px { font-size: 1rem; }
.icon-18px { font-size: 1.125rem; }
.icon-md, .icon-20px { font-size: 1.25rem; }
.icon-22px { font-size: 1.375rem; }
.icon-lg, .icon-26px { font-size: 1.625rem; }
.icon-28px { font-size: 1.75rem; }
.icon-50px { font-size: 3.125rem; }

.bg-label-primary { color: var(--bs-primary) !important; background: var(--bs-primary-bg-subtle) !important; }
.bg-label-secondary { color: var(--bs-secondary) !important; background: var(--bs-secondary-bg-subtle) !important; }
.bg-label-success { color: var(--bs-success) !important; background: var(--bs-success-bg-subtle) !important; }
.bg-label-info { color: var(--bs-info) !important; background: var(--bs-info-bg-subtle) !important; }
.bg-label-warning { color: var(--bs-warning) !important; background: var(--bs-warning-bg-subtle) !important; }
.bg-label-danger { color: var(--bs-danger) !important; background: var(--bs-danger-bg-subtle) !important; }
.bg-label-dark { color: var(--bs-dark) !important; background: var(--bs-dark-bg-subtle) !important; }

.btn-label-primary { color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.btn-label-secondary { color: var(--bs-secondary); background: var(--bs-secondary-bg-subtle); }
.btn-label-success { color: var(--bs-success); background: var(--bs-success-bg-subtle); }
.btn-label-info { color: var(--bs-info); background: var(--bs-info-bg-subtle); }
.btn-label-warning { color: var(--bs-warning); background: var(--bs-warning-bg-subtle); }
.btn-label-danger { color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.btn-label-primary:hover { color: #fff; background: var(--bs-primary); }
.btn-label-secondary:hover { color: #fff; background: var(--bs-secondary); }
.btn-label-success:hover { color: #fff; background: var(--bs-success); }
.btn-label-info:hover { color: #fff; background: var(--bs-info); }
.btn-label-warning:hover { color: #fff; background: var(--bs-warning); }
.btn-label-danger:hover { color: #fff; background: var(--bs-danger); }
.btn-text-primary { color: var(--bs-primary); background: transparent; }
.btn-text-secondary { color: var(--bs-secondary); background: transparent; }
.btn-icon { display: inline-flex; width: 2.5rem; height: 2.5rem; padding: 0; align-items: center; justify-content: center; }

.app-navbar-actions {
    gap: 0.35rem;
}

.app-navbar-actions .language-switcher .btn,
.app-navbar-actions #app-account-toggle {
    display: inline-flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.app-navbar-actions .dropdown-notifications {
    margin: 0 !important;
}

.app-navbar-actions .hide-arrow::after {
    display: none;
}

.app-navbar .dropdown-menu {
    padding: 0.45rem;
    overflow: hidden;
}

.app-navbar .dropdown-item {
    border-radius: var(--ios-control-radius);
}

.text-heading { color: var(--bs-heading-color) !important; }
.text-body { color: var(--bs-body-color) !important; }
.bg-navbar-theme,
.bg-footer-theme { background: transparent !important; }
.cursor-pointer { cursor: pointer; }
.badge-dot { width: 0.55rem; height: 0.55rem; padding: 0; border-radius: 50%; }

.dropdown-shortcuts-list,
.dropdown-notifications-list {
    max-height: 28rem;
    overflow-y: auto;
}

.dropdown-shortcuts-item {
    position: relative;
    display: flex;
    min-width: 11rem;
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.authentication-wrapper {
    min-height: 100vh;
}

.authentication-inner {
    width: 100%;
    min-height: 100vh;
}

.auth-cover-bg {
    width: 100%;
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.auth-illustration { max-width: 80%; max-height: 70vh; object-fit: contain; }
.auth-icon { width: 3rem; height: 3rem; }
.platform-bg { position: absolute; inset: auto 0 0; width: 100%; pointer-events: none; }
.auth-cover-brand { position: fixed; top: 1.5rem; left: 1.5rem; z-index: 2; display: flex; align-items: center; text-decoration: none; }

.swiper-card-advance-bg {
    height: 100%;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #5ac8fa);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    overflow: hidden;
}

/* Financial iOS dashboard */
.dashboard-page {
    width: 100%;
    max-width: 96rem;
    margin-inline: auto;
}

.dashboard-hero {
    position: relative;
    min-height: 19rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.2), transparent 18rem),
        linear-gradient(145deg, var(--ios-navy), color-mix(in srgb, var(--ios-navy), #315b91 34%));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: calc(var(--ios-radius) + 6px);
    box-shadow: 0 24px 60px rgba(18, 42, 75, 0.22);
    overflow: hidden;
}

.dashboard-hero h1 {
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.dashboard-avatar {
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
}

.dashboard-eyebrow,
.dashboard-hero-muted,
.dashboard-hero-label,
.dashboard-hero-summary small {
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-date {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.dashboard-hero-summary {
    position: absolute;
    right: clamp(1.5rem, 4vw, 2.5rem);
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    left: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.dashboard-hero-summary strong {
    display: block;
    margin-block: 0.2rem;
    color: #fff;
    font-size: clamp(2.25rem, 7vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1;
}

.dashboard-hero-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.dashboard-metric-card .card-body {
    display: flex;
    min-height: 10rem;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-metric-card strong {
    margin-top: 1rem;
    color: var(--bs-heading-color);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.dashboard-metric-card .card-body > span:last-child {
    color: var(--bs-secondary-color);
}

.dashboard-metric-icon,
.dashboard-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dashboard-metric-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
}

.dashboard-quick-actions {
    display: grid;
    grid-auto-columns: minmax(6.5rem, 1fr);
    grid-auto-flow: column;
    gap: 0.9rem;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dashboard-quick-actions::-webkit-scrollbar {
    display: none;
}

.dashboard-quick-action {
    display: flex;
    min-width: 6.5rem;
    padding: 0;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
    color: var(--bs-body-color);
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 0;
}

.dashboard-quick-action > span {
    display: inline-flex;
    width: 4.25rem;
    height: 4.25rem;
    align-items: center;
    justify-content: center;
    color: var(--ios-navy);
    font-size: 1.3rem;
    background: var(--ios-surface);
    border: 1px solid var(--ios-border);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(35, 55, 80, 0.07);
}

[data-bs-theme="dark"] .dashboard-quick-action > span {
    color: var(--bs-primary);
}

.dashboard-quick-action:hover > span,
.dashboard-quick-action:focus-visible > span {
    color: #fff;
    background: var(--ios-navy);
    transform: translateY(-2px);
}

.dashboard-activity-list {
    display: flex;
    flex-direction: column;
}

.dashboard-activity-item {
    display: flex;
    gap: 0.9rem;
    padding-block: 1rem;
    align-items: flex-start;
}

.dashboard-activity-item + .dashboard-activity-item {
    border-top: 1px solid var(--ios-border);
}

.dashboard-activity-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
}

.dashboard-empty-state {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    text-align: center;
}

.dashboard-empty-state i {
    font-size: 2rem;
}

.dashboard-period {
    display: inline-flex;
    padding: 0.25rem;
    align-self: flex-start;
    background: var(--ios-surface);
    border: 1px solid var(--ios-border);
    border-radius: 999px;
}

.dashboard-period button {
    min-width: 4.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    background: transparent;
    border: 0;
    border-radius: 999px;
}

.dashboard-period button.active {
    color: #fff;
    background: var(--ios-navy);
    box-shadow: 0 6px 16px rgba(18, 42, 75, 0.2);
}

.dashboard-period button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--bs-primary), transparent 55%);
    outline-offset: 2px;
}

.dashboard-finance-pending {
    display: flex;
    min-height: 10rem;
    padding: 1rem;
    flex-direction: column;
    gap: 0.35rem;
    background: color-mix(in srgb, var(--ios-surface), var(--bs-warning) 5%);
    border: 1px dashed color-mix(in srgb, var(--ios-border), var(--bs-warning) 35%);
    border-radius: var(--ios-control-radius);
}

.dashboard-finance-pending i {
    color: var(--bs-warning);
    font-size: 1.25rem;
}

.dashboard-finance-pending strong {
    margin-top: auto;
    font-size: 1.8rem;
}

.dashboard-finance-pending span {
    font-weight: 600;
}

.dashboard-finance-pending small {
    color: var(--bs-secondary-color);
}

.dashboard-finance-filters {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.dashboard-finance-filters label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-finance-filters .form-select {
    min-width: 11rem;
    min-height: 2.75rem;
    font-size: 1rem;
}

.dashboard-finance-chart {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--ios-surface);
    border: 1px solid var(--ios-border);
    border-radius: var(--ios-control-radius);
}

.dashboard-chart-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
}

.dashboard-chart-legend span {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.dashboard-chart-legend i {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.dashboard-chart-canvas {
    position: relative;
    min-height: 18rem;
    padding: 1rem 0.75rem 2.5rem;
    overflow-x: auto;
}

.dashboard-chart-grid {
    position: absolute;
    inset: 1rem 0.75rem 2.5rem;
    min-width: 42rem;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--ios-border) 25%);
    border-bottom: 1px solid var(--ios-border);
}

.dashboard-chart-labels {
    position: absolute;
    right: 0.75rem;
    bottom: 0;
    left: 0.75rem;
    display: grid;
    min-width: 42rem;
    grid-template-columns: repeat(12, minmax(2.75rem, 1fr));
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    text-align: center;
}

.dashboard-chart-empty {
    position: sticky;
    left: 0;
    display: flex;
    width: min(100%, 30rem);
    min-height: 14rem;
    margin-inline: auto;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    text-align: center;
}

.dashboard-chart-empty i {
    font-size: 2rem;
}

.dashboard-chart-empty strong {
    color: var(--bs-heading-color);
}

.dashboard-venue-row {
    padding-block: 1rem;
}

.dashboard-venue-row + .dashboard-venue-row {
    border-top: 1px solid var(--ios-border);
}

.dashboard-venue-row .progress {
    height: 0.5rem;
}

.website-analytics-text-bg { padding: 0.2rem 0.45rem; background: rgba(255, 255, 255, 0.18); border-radius: 0.5rem; }

.w-px-200 { width: 12.5rem; }
.w-px-250 { width: 15.625rem; }
.w-px-400 { width: 100%; max-width: 25rem; }
.w-px-420 { width: 100%; max-width: 26.25rem; }
.h-px-75 { height: 4.6875rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.rounded-lg, .rounded-md { border-radius: var(--ios-control-radius); }
.rounded-full { border-radius: 999px; }

.m-6 { margin: 1.5rem !important; }
.mt-6, .my-6 { margin-top: 1.5rem !important; }
.mb-6, .my-6 { margin-bottom: 1.5rem !important; }
.ms-6, .mx-6 { margin-left: 1.5rem !important; }
.me-6, .mx-6 { margin-right: 1.5rem !important; }
.p-6 { padding: 1.5rem !important; }
.pt-6, .py-6 { padding-top: 1.5rem !important; }
.pb-6, .py-6 { padding-bottom: 1.5rem !important; }
.ps-6, .px-6 { padding-left: 1.5rem !important; }
.pe-6, .px-6 { padding-right: 1.5rem !important; }
.gap-6 { gap: 1.5rem !important; }
.g-6, .gx-6 { --bs-gutter-x: 1.5rem; }
.g-6, .gy-6 { --bs-gutter-y: 1.5rem; }
.mt-8 { margin-top: 2rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.p-8 { padding: 2rem !important; }
.px-8 { padding-inline: 2rem !important; }
.py-8 { padding-block: 2rem !important; }
.gap-8 { gap: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mb-12, .my-12 { margin-bottom: 3rem !important; }
.mt-12, .my-12 { margin-top: 3rem !important; }
.pt-12 { padding-top: 3rem !important; }

@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: sticky;
        top: 0;
        height: 100vh;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    .app-navbar { margin: 0.5rem 0.5rem 0; }
    .app-content { padding: 1rem 0.75rem; }

    .dashboard-hero {
        min-height: 21rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --ios-radius: 13px;
    }

    .dashboard-metric-card .card-body {
        min-height: 9rem;
        padding: 1rem;
    }

    .dashboard-hero-summary {
        align-items: center;
    }

    .dashboard-hero-summary small {
        display: block;
        max-width: 12rem;
    }

    .dashboard-finance-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-finance-filters .dashboard-period,
    .dashboard-finance-filters .form-select {
        width: 100%;
    }

    .dashboard-finance-filters .dashboard-period button {
        flex: 1;
    }
}
