@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
    --app-bg: #eef6f7;
    --app-surface: #ffffff;
    --app-border: #d5e2e6;
    --app-text: #173247;
    --app-muted: #648194;
    --app-primary: #1d63e3;
    --app-primary-dark: #154da9;
    --app-shadow: 0 8px 24px rgba(20, 54, 89, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--app-text);
    background:
        radial-gradient(circle at 5% 0%, rgba(29, 99, 227, 0.12), transparent 35%),
        radial-gradient(circle at 95% 0%, rgba(21, 181, 140, 0.1), transparent 35%),
        var(--app-bg);
    min-height: 100vh;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-brand {
    letter-spacing: 0.2px;
}

.nav-link {
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.role-badge {
    font-size: 0.82rem;
    letter-spacing: 0.1px;
}

.card {
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.card.shadow-sm,
.shadow-sm {
    box-shadow: var(--app-shadow) !important;
}

.auth-card {
    border-radius: 1rem;
}

.login-pro-page {
    position: relative;
    isolation: isolate;
    max-width: 1060px;
    margin: 0 auto;
}

.login-pro-page::before,
.login-pro-page::after {
    content: "";
    position: absolute;
    z-index: -2;
    border-radius: 999px;
    pointer-events: none;
}

.login-pro-page::before {
    width: 360px;
    height: 360px;
    top: -110px;
    left: -150px;
    background: radial-gradient(circle, rgba(29, 99, 227, 0.28), rgba(29, 99, 227, 0));
}

.login-pro-page::after {
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(21, 181, 140, 0.22), rgba(21, 181, 140, 0));
}

.login-pro-shell {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(89, 135, 168, 0.24);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(242, 248, 255, 0.76)),
        radial-gradient(circle at 100% 0%, rgba(62, 165, 235, 0.18), rgba(62, 165, 235, 0) 40%);
    box-shadow: 0 24px 48px rgba(18, 48, 87, 0.16);
    padding: 0.58rem;
}

.login-pro-shell::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: -220px;
    bottom: -220px;
    border-radius: 42% 58% 66% 34% / 44% 40% 60% 56%;
    background: linear-gradient(145deg, rgba(40, 127, 225, 0.16), rgba(24, 177, 130, 0.1));
    animation: loginFloatBlob 9s ease-in-out infinite;
    pointer-events: none;
}

.login-pro-layout {
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.login-pro-showcase {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(20, 77, 144, 0.2);
    border-radius: 1.45rem 3.1rem 3.1rem 1.45rem;
    padding: 1.8rem 1.55rem 1.45rem;
    color: #f3f9ff;
    background:
        radial-gradient(circle at 98% 2%, rgba(139, 234, 222, 0.26), rgba(139, 234, 222, 0) 42%),
        linear-gradient(150deg, #0e4c9a, #0f77af 46%, #11977c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 38px rgba(14, 51, 95, 0.28);
}

.login-pro-showcase::before {
    content: "";
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    border-radius: 58% 42% 63% 37% / 43% 61% 39% 57%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    opacity: 0.72;
}

.login-pro-showcase::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -95px;
    width: 320px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 233, 255, 0.28), rgba(195, 233, 255, 0));
    animation: loginFloatBlob 11s ease-in-out infinite reverse;
}

.login-pro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.74rem;
    letter-spacing: 0.34px;
    text-transform: uppercase;
    font-weight: 700;
}

.login-pro-title {
    margin-top: 1rem;
    margin-bottom: 0.74rem;
    font-size: 1.62rem;
    line-height: 1.18;
    font-weight: 700;
}

.login-pro-text {
    margin-bottom: 1rem;
    color: rgba(241, 248, 255, 0.92);
}

.login-pro-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.login-pro-points li {
    position: relative;
    padding-left: 1.25rem;
    color: rgba(245, 250, 255, 0.98);
}

.login-pro-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.53rem;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #8beade, #d8fbf4);
    box-shadow: 0 0 0 3px rgba(139, 234, 222, 0.24);
}

.login-pro-help {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.login-pro-help a {
    color: #e9f8ff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(233, 248, 255, 0.56);
    text-underline-offset: 2px;
}

.login-pro-help a:hover {
    text-decoration-color: #e9f8ff;
}

.login-pro-card {
    border-radius: 3.1rem 1.45rem 1.45rem 3.1rem;
    border: 1px solid rgba(89, 132, 159, 0.21);
    background:
        radial-gradient(circle at 100% 0%, rgba(24, 177, 130, 0.12), transparent 34%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(16, 42, 82, 0.1);
}

.login-pro-head {
    margin-bottom: 1.25rem;
}

.login-pro-input {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d9e3f0;
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-pro-input:focus-within {
    border-color: rgba(29, 99, 227, 0.56);
    box-shadow: 0 0 0 0.2rem rgba(29, 99, 227, 0.12);
    transform: translateY(-1px);
}

.login-pro-input .input-group-text {
    background: linear-gradient(180deg, #f8fbff, #f1f7ff);
    border: 0;
    color: #205f9f;
    min-width: 42px;
    justify-content: center;
}

.login-pro-input .form-control {
    border: 0;
    background: transparent;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.login-pro-input .form-control:focus {
    box-shadow: none;
}

.login-pro-submit {
    border: 0;
    border-radius: 999px;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24px;
    background: linear-gradient(138deg, #1d63e3, #17b48d);
    box-shadow: 0 14px 28px rgba(22, 92, 155, 0.28);
}

.login-pro-submit:hover,
.login-pro-submit:focus {
    background: linear-gradient(138deg, #154da9, #11977c);
    box-shadow: 0 16px 30px rgba(16, 79, 137, 0.34);
}

.login-pro-links {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.92rem;
}

.login-pro-links a {
    text-decoration: none;
}

.login-pro-links a:hover {
    text-decoration: underline;
}

.login-pro-note {
    margin-top: 0.95rem;
    color: #61728a;
    font-size: 0.86rem;
}

.login-help-modal .modal-content {
    border: 1px solid rgba(89, 132, 159, 0.2);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(24, 177, 130, 0.1), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    box-shadow: 0 18px 40px rgba(16, 42, 82, 0.16);
}

.login-help-modal__kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(29, 99, 227, 0.08);
    border: 1px solid rgba(29, 99, 227, 0.14);
    color: var(--app-primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-help-modal__list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
}

.login-help-modal__panel {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(29, 99, 227, 0.1);
    background: rgba(255, 255, 255, 0.78);
}

@keyframes loginFloatBlob {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(12px, -10px, 0) rotate(4deg);
    }
}

@media (max-width: 991px) {
    .login-pro-shell {
        border-radius: 1.4rem;
        padding: 0.45rem;
    }

    .login-pro-layout {
        gap: 0.75rem;
    }

    .login-pro-showcase,
    .login-pro-card {
        border-radius: 1.2rem;
    }

    .login-pro-showcase {
        padding: 1.3rem 1.15rem;
    }

    .login-pro-title {
        font-size: 1.32rem;
    }

    .login-help-modal__panel {
        padding: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-pro-shell::before,
    .login-pro-showcase::after {
        animation: none;
    }
}
.dashboard-hero {
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(12, 99, 231, 0.2), rgba(12, 99, 231, 0));
}

.stat-card .display-6 {
    font-size: 2rem;
}

.table {
    --bs-table-bg: transparent;
}

details > summary {
    list-style: none;
    cursor: pointer;
}

details > summary::-webkit-details-marker {
    display: none;
}

.btn-primary {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.app-footer {
    border-top: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}

.unpaid-floating-alert-wrap {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(360px, calc(100vw - 2rem));
}

.unpaid-floating-alert {
    margin: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.unpaid-floating-alert__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.unpaid-floating-alert__head .h6 {
    flex: 1;
}

.unpaid-floating-alert__close {
    border: 0;
    background: rgba(255, 255, 255, 0.34);
    color: currentColor;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.unpaid-floating-alert__close:hover,
.unpaid-floating-alert__close:focus-visible {
    background: rgba(255, 255, 255, 0.52);
    transform: scale(1.05);
}

.unpaid-floating-alert.is-dismissing {
    opacity: 0;
    transform: translateY(12px);
}

.unpaid-pulse {
    animation: unpaidAlertPulse 1.3s ease-in-out infinite;
    transform-origin: 100% 100%;
}

@keyframes unpaidAlertPulse {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.72;
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .unpaid-pulse {
        animation: none;
    }

    .unpaid-floating-alert,
    .unpaid-floating-alert__close {
        transition: none;
    }
}

/* Keeps modal body scroll reliable across viewport sizes/mobile browsers. */
.modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form,
.account-modal .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.account-modal .modal-content {
    max-height: calc(100dvh - 1rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-modal .account-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6rem;
}

.account-modal .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--bs-modal-bg);
    z-index: 2;
}

@media (max-width: 767px) {
    .stat-card .display-6 {
        font-size: 1.6rem;
    }

    main.container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100dvh - 1rem);
    }

    .account-modal .modal-content {
        max-height: 100dvh;
    }
}

.btn-icon {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    line-height: 1;
}

.btn-icon.btn-sm {
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.62rem;
}

.btn-icon .bi {
    font-size: 1rem;
}
.btn-iconized {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    line-height: 1.1;
}

.btn-iconized .bi {
    font-size: 0.95em;
    flex-shrink: 0;
}

/* Modal design refresh */
.modal.fade .modal-dialog {
    transform: translateY(14px) scale(0.985);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-content {
    border: 1px solid rgba(84, 104, 129, 0.18);
    border-radius: 0.95rem;
    box-shadow: 0 22px 48px rgba(16, 34, 71, 0.16);
}

.modal-header,
.modal-footer {
    border-color: rgba(84, 104, 129, 0.14);
}

.app-dialog-modal .modal-content {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.app-dialog-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Bottom-left toast notifications */
.app-toast-stack {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1100;
    width: min(360px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.app-toast {
    --toast-duration: 5000ms;
    --toast-accent: #58cfff;
    pointer-events: auto;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(140deg, rgba(20, 30, 47, 0.97), rgba(17, 25, 39, 0.94));
    color: #f7fbff;
    overflow: hidden;
    box-shadow: 0 14px 26px rgba(11, 16, 27, 0.28);
    animation: appToastIn 0.28s ease forwards;
    cursor: copy;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-toast:hover,
.app-toast:focus-visible {
    border-color: rgba(88, 207, 255, 0.46);
    box-shadow: 0 16px 32px rgba(11, 16, 27, 0.34);
    transform: translateY(-1px);
}

.app-toast:focus-visible {
    outline: 2px solid rgba(88, 207, 255, 0.45);
    outline-offset: 2px;
}

.app-toast.is-copied {
    border-color: rgba(23, 180, 141, 0.52);
}

.app-toast.is-copy-error {
    border-color: rgba(29, 99, 227, 0.52);
}

.app-toast--success {
    --toast-accent: #17b48d;
}

.app-toast--warning {
    --toast-accent: #19ba97;
}

.app-toast--danger {
    --toast-accent: #1d63e3;
}

.app-toast--info {
    --toast-accent: #58cfff;
}

.app-toast__content {
    padding: 0.72rem 0.88rem 0.58rem;
}

.app-toast__title {
    margin-bottom: 0.2rem;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--toast-accent);
    text-transform: uppercase;
}

.app-toast__message {
    font-size: 0.9rem;
    line-height: 1.3;
}

.app-toast__hint {
    margin-top: 0.48rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.74rem;
    color: rgba(239, 248, 255, 0.72);
}

.app-toast__hint i {
    color: var(--toast-accent);
}

.app-toast__progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
}

.app-toast__progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--toast-accent);
    animation: appToastProgress var(--toast-duration) linear forwards;
}

.app-toast.is-hiding {
    animation: appToastOut 0.22s ease forwards;
}

@keyframes appToastIn {
    from {
        opacity: 0;
        transform: translateX(-16px) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes appToastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(-18px) scale(0.98);
    }
}

@keyframes appToastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

@media (max-width: 767px) {
    .app-toast-stack {
        left: 0.7rem;
        right: 0.7rem;
        width: auto;
        bottom: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog,
    .app-toast,
    .app-toast.is-hiding,
    .app-toast__progress-bar {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Dashboard quick navigation drawer */
.quick-nav-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(34, 74, 143, 0.16);
    background:
        radial-gradient(circle at 2% 0%, rgba(45, 110, 221, 0.14), transparent 46%),
        linear-gradient(128deg, rgba(19, 71, 165, 0.08), rgba(20, 110, 197, 0.05));
}

.quick-nav-preview {
    padding: 1.2rem 1.25rem 1.3rem;
    background:
        radial-gradient(circle at 84% 18%, rgba(67, 143, 233, 0.12), transparent 32%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.86));
}

.quick-nav-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.quick-nav-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(30, 94, 192, 0.25);
    background: rgba(255, 255, 255, 0.84);
    color: #1d3f73;
    font-size: 0.8rem;
    padding: 0.34rem 0.62rem;
}

.quick-nav-preview-text {
    color: var(--app-muted);
    max-width: 540px;
}

.quick-nav-edge-toggle {
    position: fixed;
    left: 0;
    top: 52%;
    transform: translateY(-50%);
    z-index: 1090;
    width: 56px;
    height: 150px;
    border: 0;
    border-radius: 0 26px 26px 0;
    background: linear-gradient(185deg, #1353b8, #0a73c8);
    color: #fff;
    box-shadow: 0 14px 30px rgba(8, 35, 86, 0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.quick-nav-edge-toggle:hover,
.quick-nav-edge-toggle:focus-visible {
    transform: translateY(-50%) translateX(2px);
    box-shadow: 0 18px 34px rgba(8, 35, 86, 0.4);
}

.quick-nav-edge-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-top: 0.1rem;
}

.quick-nav-edge-icon span {
    display: block;
    width: 20px;
    height: 8px;
    border-top: 2.4px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
}

.quick-nav-edge-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    letter-spacing: 0.7px;
    font-weight: 600;
    text-transform: uppercase;
}

.quick-nav-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 42, 0.46);
    z-index: 1088;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.quick-nav-panel-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.quick-nav-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1089;
    width: min(430px, 90vw);
    border-right: 1px solid rgba(71, 120, 195, 0.24);
    background:
        radial-gradient(circle at 92% 6%, rgba(98, 165, 255, 0.17), transparent 28%),
        linear-gradient(175deg, rgba(251, 253, 255, 0.98), rgba(233, 244, 255, 0.95));
    box-shadow: 20px 0 44px rgba(11, 33, 79, 0.25);
    transform: translateX(-104%);
    transition: transform 0.34s cubic-bezier(0.17, 0.88, 0.26, 1);
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    gap: 0.9rem;
}

.quick-nav-panel.is-open {
    transform: translateX(0);
}

.quick-nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(59, 102, 175, 0.18);
    padding-bottom: 0.72rem;
}

.quick-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
    overflow: auto;
    padding-right: 0.1rem;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    border: 1px solid rgba(34, 98, 190, 0.18);
    border-radius: 0.8rem;
    padding: 0.62rem 0.75rem;
    color: var(--app-text);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 16px rgba(14, 41, 89, 0.07);
    transform: translateX(-10px);
    opacity: 0;
}

.quick-nav-panel.is-open .quick-nav-link {
    animation: quickNavEntry 0.28s ease forwards;
}

.quick-nav-panel.is-open .quick-nav-link:nth-child(1) { animation-delay: 0.03s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(2) { animation-delay: 0.06s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(3) { animation-delay: 0.09s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(4) { animation-delay: 0.12s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(5) { animation-delay: 0.15s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(6) { animation-delay: 0.18s; }
.quick-nav-panel.is-open .quick-nav-link:nth-child(n+7) { animation-delay: 0.21s; }

.quick-nav-link:hover,
.quick-nav-link:focus-visible {
    transform: translateX(3px);
    border-color: rgba(16, 87, 191, 0.5);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 9px 20px rgba(20, 57, 117, 0.16);
}

.quick-nav-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f4da9;
    background: linear-gradient(145deg, rgba(20, 111, 231, 0.16), rgba(83, 169, 255, 0.12));
    flex-shrink: 0;
}

.quick-nav-link-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-nav-link-content strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

.quick-nav-link-content small {
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.quick-nav-link-arrow {
    margin-left: auto;
    font-size: 1.15rem;
    color: #2d6bc6;
}

.quick-nav-mailbox {
    margin-top: auto;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(39, 87, 170, 0.24);
}

body.quick-nav-open {
    overflow: hidden;
}

@keyframes quickNavEntry {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .quick-nav-head {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-nav-head .d-flex {
        width: 100%;
    }

    .quick-nav-head .btn {
        flex: 1;
    }

    .quick-nav-edge-toggle {
        width: 48px;
        height: 126px;
        top: 55%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-nav-edge-toggle,
    .quick-nav-panel-backdrop,
    .quick-nav-panel,
    .quick-nav-link,
    .quick-nav-panel.is-open .quick-nav-link {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dashboard redesign */
:root {
    --app-bg: #ecf6f7;
    --app-surface: rgba(255, 255, 255, 0.86);
    --app-surface-strong: #ffffff;
    --app-border: rgba(91, 125, 150, 0.18);
    --app-text: #16314a;
    --app-muted: #658095;
    --app-primary: #1d63e3;
    --app-primary-dark: #154da9;
    --app-secondary: #17b48d;
    --app-accent: #58cfff;
    --app-success: #159a66;
    --app-warning: #12a99b;
    --app-shadow: 0 24px 50px rgba(32, 67, 109, 0.14);
    --app-shell-shadow: 0 38px 90px rgba(30, 64, 105, 0.24);
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--app-text);
    background:
        linear-gradient(135deg, rgba(25, 93, 187, 0.94), rgba(20, 142, 181, 0.86) 50%, rgba(36, 179, 126, 0.82)),
        #ecf6f7;
}

body.app-shell-page {
    padding: 24px;
}

body.app-guest-page {
    background:
        radial-gradient(circle at top left, rgba(29, 99, 227, 0.2), transparent 32%),
        radial-gradient(circle at bottom right, rgba(23, 180, 141, 0.22), transparent 32%),
        #ecf6f7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.app-sidebar__brand strong,
.app-topbar__title,
.dashboard-pill,
.dashboard-panel__eyebrow {
    font-family: "Outfit", sans-serif;
}

a {
    color: inherit;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 1.55rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.92));
    box-shadow: var(--app-shadow);
}

.card.shadow-sm,
.shadow-sm {
    box-shadow: var(--app-shadow) !important;
}

.form-control,
.form-select {
    border-radius: 1rem;
    border-color: rgba(110, 124, 176, 0.22);
    min-height: 3rem;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(29, 99, 227, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(29, 99, 227, 0.12);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    border: 0;
    box-shadow: 0 14px 28px rgba(29, 99, 227, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--app-primary-dark), #11977c);
    border: 0;
}

.btn-outline-primary {
    border-color: rgba(29, 99, 227, 0.28);
    color: var(--app-primary-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(29, 99, 227, 0.08);
    border-color: rgba(29, 99, 227, 0.42);
    color: var(--app-primary-dark);
}

.app-guest-main {
    max-width: 1160px;
}

.app-shell-wrap {
    position: relative;
    max-width: 1540px;
    margin: 0 auto;
}

.app-shell-backdrop {
    position: absolute;
    inset: -26px;
    pointer-events: none;
    overflow: hidden;
}

.app-shell-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.7;
}

.app-shell-orb--violet {
    width: 300px;
    height: 300px;
    top: -90px;
    left: -60px;
    background: radial-gradient(circle, rgba(29, 99, 227, 0.5), rgba(29, 99, 227, 0));
}

.app-shell-orb--rose {
    width: 360px;
    height: 360px;
    top: 8%;
    right: -110px;
    background: radial-gradient(circle, rgba(23, 180, 141, 0.34), rgba(23, 180, 141, 0));
}

.app-shell-orb--cyan {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 25%;
    background: radial-gradient(circle, rgba(88, 207, 255, 0.26), rgba(88, 207, 255, 0));
}

.app-shell {
    position: relative;
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    min-height: calc(100vh - 48px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2.1rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--app-shell-shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.app-sidebar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.1rem 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.94)),
        rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(108, 121, 174, 0.16);
}

.app-sidebar__header,
.app-sidebar__profile,
.app-sidebar__status,
.app-topbar__headline,
.app-topbar__intro,
.dashboard-panel__head,
.dashboard-spotlight__chips,
.dashboard-donut,
.dashboard-message,
.dashboard-link-list__item {
    display: flex;
    align-items: center;
}

.app-sidebar__header {
    justify-content: space-between;
    gap: 0.75rem;
}

.app-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.app-sidebar__brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    box-shadow: 0 12px 26px rgba(29, 99, 227, 0.22);
}

.app-sidebar__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.app-sidebar__brand-copy strong {
    font-size: 1rem;
    color: #192043;
}

.app-sidebar__brand-copy small,
.app-sidebar__profile-copy span,
.app-sidebar__group-label,
.app-sidebar__link-copy small,
.app-sidebar__status span,
.app-topbar__eyebrow,
.app-topbar__subtitle,
.app-topbar__date span,
.dashboard-metric-card__copy span,
.dashboard-metric-card__copy small,
.dashboard-panel__meta,
.dashboard-donut__legend-item small,
.dashboard-link-list__copy small,
.app-footer__meta {
    color: var(--app-muted);
}

.app-page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.app-page-stack > :last-child {
    margin-bottom: 0;
}

.app-content > .app-page-stack > .card,
.app-content > .app-page-stack > section.card {
    margin-bottom: 0 !important;
}

.app-page-stack .card.border-0.shadow-sm,
.app-page-stack section.card.border-0.shadow-sm {
    border-radius: 1.7rem;
}

.app-page-stack .card-body {
    padding: 1.25rem 1.3rem;
}

.app-page-stack .card-header {
    padding: 1rem 1.3rem;
    border-bottom: 1px solid rgba(110, 124, 176, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 255, 0.92));
}

.app-page-stack .card-header.bg-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 255, 0.92)) !important;
}

.app-page-stack .card-footer {
    border-top: 1px solid rgba(110, 124, 176, 0.12);
    background: rgba(249, 251, 255, 0.9);
}

.app-page-stack .card h1:last-child,
.app-page-stack .card h2:last-child,
.app-page-stack .card h3:last-child,
.app-page-stack .card p:last-child {
    margin-bottom: 0;
}

.app-page-stack .table-responsive {
    border: 1px solid rgba(110, 124, 176, 0.14);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.76);
    overflow: auto;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(29, 99, 227, 0.04);
    --bs-table-hover-bg: rgba(23, 180, 141, 0.08);
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.95rem 1rem;
    border-bottom-color: rgba(110, 124, 176, 0.12);
}

.table thead th {
    background: rgba(242, 246, 255, 0.94);
    color: #556383;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom-width: 1px;
}

.table tbody td {
    color: #24314f;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table.table-sm > :not(caption) > * > * {
    padding: 0.72rem 0.82rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.text-bg-light,
.badge.text-bg-light {
    color: #4d6174 !important;
    background: rgba(77, 114, 145, 0.12) !important;
}

.text-bg-secondary,
.badge.text-bg-secondary {
    color: #587183 !important;
    background: rgba(108, 139, 162, 0.14) !important;
}

.text-bg-success,
.badge.text-bg-success {
    color: #117451 !important;
    background: rgba(36, 199, 143, 0.16) !important;
}

.text-bg-warning,
.badge.text-bg-warning {
    color: #0d6e76 !important;
    background: rgba(18, 169, 155, 0.16) !important;
}

.text-bg-danger,
.badge.text-bg-danger {
    color: #16509d !important;
    background: rgba(29, 99, 227, 0.16) !important;
}

.text-bg-info,
.badge.text-bg-info {
    color: #0c6d86 !important;
    background: rgba(38, 199, 255, 0.16) !important;
}

.alert {
    border: 1px solid rgba(110, 124, 176, 0.16);
    border-radius: 1.3rem;
    box-shadow: 0 16px 34px rgba(52, 67, 128, 0.08);
}

.alert-warning {
    color: #0d6e76;
    background: linear-gradient(180deg, rgba(221, 250, 246, 0.94), rgba(238, 255, 252, 0.92));
}

.alert-info {
    color: #0d5d75;
    background: linear-gradient(180deg, rgba(222, 247, 255, 0.94), rgba(241, 252, 255, 0.94));
}

.alert-success {
    color: #0e6d4a;
    background: linear-gradient(180deg, rgba(224, 251, 240, 0.94), rgba(241, 255, 248, 0.94));
}

.alert-danger {
    color: #16509d;
    background: linear-gradient(180deg, rgba(231, 241, 255, 0.94), rgba(244, 249, 255, 0.94));
}

.btn-group {
    gap: 0.35rem;
    flex-wrap: wrap;
}

.btn-group > .btn {
    border-radius: 999px !important;
}

.pagination {
    gap: 0.45rem;
    flex-wrap: wrap;
}

.page-link {
    min-width: 2.65rem;
    min-height: 2.65rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #33415f;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 22px rgba(56, 72, 132, 0.08);
}

.page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
}

.page-item.disabled .page-link {
    color: #98a2bd;
    background: rgba(240, 243, 252, 0.9);
}

.list-group-item {
    border-color: rgba(110, 124, 176, 0.12);
    padding: 0.95rem 1rem;
}

.accordion-item {
    border: 1px solid rgba(110, 124, 176, 0.14);
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
}

.accordion-button {
    font-weight: 700;
    background: rgba(248, 250, 255, 0.96);
}

.accordion-button:not(.collapsed) {
    color: var(--app-primary-dark);
    background: rgba(236, 245, 255, 0.98);
    box-shadow: inset 0 -1px 0 rgba(110, 124, 176, 0.12);
}

.app-page-stack .btn-light.border,
.app-page-stack .card.h-100.border,
.app-page-stack .card.border {
    border-color: rgba(110, 124, 176, 0.14) !important;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 30px rgba(52, 67, 128, 0.08);
}

.app-page-stack .btn-light.border:hover,
.app-page-stack .card.h-100.border:hover,
.app-page-stack .card.border:hover {
    transform: translateY(-1px);
}

.app-page-stack .small.text-muted,
.app-page-stack .text-muted,
.app-page-stack small.text-muted {
    color: var(--app-muted) !important;
}

.app-surface-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 8%, rgba(23, 180, 141, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.94));
}

.app-surface-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 99, 227, 0.16), rgba(29, 99, 227, 0));
    pointer-events: none;
}

.app-surface-hero .card-body,
.app-form-card .card-body,
.app-table-card .card-body {
    position: relative;
    z-index: 1;
}

.app-kpi-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 99, 227, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.94));
}

.app-form-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(23, 180, 141, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.94));
}

.app-table-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(88, 207, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.96));
}

.app-sidebar__close,
.app-sidebar-toggle {
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(29, 99, 227, 0.08);
    color: var(--app-primary-dark);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.app-sidebar__profile {
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1.45rem;
    background: linear-gradient(135deg, rgba(29, 99, 227, 0.08), rgba(23, 180, 141, 0.07));
    border: 1px solid rgba(96, 111, 172, 0.12);
}

.app-sidebar__avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1d63e3, #19ba97);
}

.app-sidebar__profile-copy {
    display: flex;
    flex-direction: column;
}

.app-sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.app-sidebar__group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.app-sidebar__group-label {
    margin: 0;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0.82rem;
    border-radius: 1.15rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible {
    transform: translateX(2px);
    background: rgba(29, 99, 227, 0.08);
    box-shadow: 0 8px 18px rgba(61, 75, 141, 0.08);
}

.app-sidebar__link.is-active {
    background: linear-gradient(135deg, rgba(29, 99, 227, 0.14), rgba(23, 180, 141, 0.12));
    box-shadow: 0 12px 24px rgba(32, 85, 155, 0.12);
}

.app-sidebar__link-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 99, 227, 0.08);
    color: var(--app-primary-dark);
    flex-shrink: 0;
}

.app-sidebar__link.is-active .app-sidebar__link-icon {
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    color: #fff;
}

.app-sidebar__link-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.app-sidebar__link-copy strong {
    font-size: 0.94rem;
}

.app-sidebar__link-copy small {
    font-size: 0.75rem;
    line-height: 1.3;
}

.app-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.3rem;
}

.app-sidebar__status {
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: 1.25rem;
    background: rgba(29, 99, 227, 0.06);
}

.app-sidebar__status strong,
.app-topbar__date strong {
    color: #1a2342;
    font-family: "Outfit", sans-serif;
}

.app-sidebar__logout,
.app-topbar__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: rgba(23, 31, 61, 0.04);
    color: #1f2748;
}

.app-shell__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-shell__overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    border: 0;
    background: rgba(17, 27, 57, 0.44);
    transition: opacity 0.24s ease;
}

.app-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.45rem 1.65rem 1.05rem;
}

.app-topbar__intro {
    gap: 0.9rem;
    min-width: 0;
}

.app-topbar__title-group {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
}

.app-topbar__eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-topbar__headline {
    gap: 0.95rem;
    min-width: 0;
}

.app-topbar__icon {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1d63e3, #19ba97);
    box-shadow: 0 16px 32px rgba(29, 99, 227, 0.24);
    flex-shrink: 0;
}

.app-topbar__title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.app-topbar__subtitle {
    margin: 0.22rem 0 0;
    font-size: 0.94rem;
}

.app-nav-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(111, 125, 176, 0.18);
    box-shadow: 0 18px 32px rgba(77, 88, 154, 0.08);
}

.app-nav-search i {
    color: var(--app-muted);
}

.app-nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-text);
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-topbar__date {
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.app-content {
    padding: 0 1.65rem 1.65rem;
}

.app-footer {
    margin-top: auto;
    padding: 0.95rem 1.65rem 1.35rem;
    border-top: 1px solid rgba(108, 121, 174, 0.12);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--app-muted);
}

.app-footer__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.app-footer__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.app-footer__link {
    color: var(--app-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.app-footer__link:hover,
.app-footer__link:focus-visible {
    color: var(--app-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(21, 77, 169, 0.34);
    text-underline-offset: 0.2rem;
}

.app-footer__link.is-active {
    color: var(--app-text);
}

.app-footer--guest {
    border-top: 0;
    padding-top: 0;
}

.app-footer__guest-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.app-guest-page .app-footer {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-guest-page .app-footer__meta {
    justify-content: center;
}

.legal-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 99, 227, 0.16);
    background: rgba(29, 99, 227, 0.08);
    color: var(--app-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.legal-quicklinks a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 99, 227, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: var(--app-text);
    font-weight: 600;
    text-decoration: none;
}

.legal-quicklinks a:hover,
.legal-quicklinks a:focus-visible,
.legal-quicklinks a.is-active {
    color: var(--app-primary-dark);
    border-color: rgba(29, 99, 227, 0.24);
    box-shadow: 0 10px 22px rgba(17, 65, 118, 0.1);
}

.legal-card {
    height: 100%;
}

.legal-data-list {
    display: grid;
    gap: 0.95rem;
}

.legal-data-list div {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(108, 121, 174, 0.12);
}

.legal-data-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-data-list dt {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.legal-data-list dd {
    margin: 0.28rem 0 0;
    color: var(--app-text);
}

.legal-list {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.legal-list li + li {
    margin-top: 0.55rem;
}

.legal-callout {
    border-radius: 1.15rem;
    border: 1px solid rgba(21, 181, 140, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 247, 243, 0.88));
    padding: 1rem 1.1rem;
    color: var(--app-text);
}

.legal-callout strong {
    display: block;
    margin-bottom: 0.3rem;
}

.legal-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.legal-table td,
.legal-table th {
    vertical-align: top;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.dashboard-shell__top {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.dashboard-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 1.6rem;
    border-radius: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) 250px;
    gap: 1rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, #1d63e3, #1696b9 55%, #19ba97);
    box-shadow: 0 30px 60px rgba(28, 86, 157, 0.26);
}

.dashboard-spotlight::before,
.dashboard-spotlight::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.dashboard-spotlight::before {
    width: 220px;
    height: 220px;
    top: -110px;
    right: -50px;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-spotlight::after {
    width: 340px;
    height: 340px;
    bottom: -210px;
    left: -140px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-spotlight__content,
.dashboard-spotlight__visual {
    position: relative;
    z-index: 1;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-spotlight h2 {
    margin: 1rem 0 0.65rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.02;
}

.dashboard-spotlight p {
    max-width: 600px;
    margin-bottom: 0;
    color: rgba(250, 252, 255, 0.9);
}

.dashboard-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.dashboard-spotlight .btn-primary {
    background: #fff;
    color: #154da9;
    box-shadow: 0 14px 28px rgba(20, 54, 89, 0.18);
}

.dashboard-spotlight .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-spotlight__chips {
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.dashboard-spotlight__chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
}

.dashboard-spotlight__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-spotlight__portrait {
    position: relative;
    width: 175px;
    height: 215px;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 255, 0.88));
    color: #1d63e3;
    font-size: 4rem;
    box-shadow: 0 22px 40px rgba(32, 67, 109, 0.18);
}

.dashboard-spotlight__float {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 110px;
    padding: 0.75rem 0.85rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.dashboard-spotlight__float strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
}

.dashboard-spotlight__float span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-spotlight__float--one {
    top: 0.9rem;
    right: -0.4rem;
}

.dashboard-spotlight__float--two {
    bottom: 1rem;
    left: -0.5rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-metric-card,
.dashboard-panel {
    border: 1px solid rgba(111, 125, 176, 0.16);
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 255, 0.92));
    box-shadow: 0 24px 46px rgba(50, 65, 128, 0.12);
}

.dashboard-metric-card {
    padding: 1.05rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-metric-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.dashboard-metric-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-metric-card__copy strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-metric-card--violet .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #1d63e3, #4d8fff);
}

.dashboard-metric-card--cyan .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #1696d6, #7be1ff);
}

.dashboard-metric-card--rose .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #18b792, #67e0bd);
}

.dashboard-metric-card--amber .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #1b7fd5, #3bc0c8);
}

.dashboard-metric-card--emerald .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #159a66, #53d3a2);
}

.dashboard-metric-card--indigo .dashboard-metric-card__icon {
    background: linear-gradient(135deg, #154da9, #4c87e8);
}

.dashboard-shell__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 1.2rem;
    align-items: start;
}

.dashboard-panel {
    padding: 1.3rem;
}

.dashboard-panel__head {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel__head > div {
    min-width: 0;
}

.dashboard-panel__head h3 {
    margin: 0.2rem 0 0;
    font-size: 1.28rem;
}

.dashboard-panel__eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-panel__meta {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 99, 227, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-trend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.dashboard-trend__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-trend__value,
.dashboard-trend__label {
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-trend__bar-wrap {
    width: 100%;
    height: 156px;
    padding: 0 0.6rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(29, 99, 227, 0.04), rgba(29, 99, 227, 0.12));
}

.dashboard-trend__bar {
    width: 100%;
    border-radius: 999px;
    display: block;
}

.dashboard-trend__bar--violet {
    background: linear-gradient(180deg, #6ba1ff, #1d63e3);
}

.dashboard-trend__bar--cyan {
    background: linear-gradient(180deg, #98ebff, #1fa7dc);
}

.dashboard-trend__bar--rose {
    background: linear-gradient(180deg, #8deacf, #18b792);
}

.dashboard-trend__bar--amber {
    background: linear-gradient(180deg, #8cdcf1, #1b7fd5);
}

.dashboard-trend__bar--emerald {
    background: linear-gradient(180deg, #87e4bf, #159a66);
}

.dashboard-trend__bar--indigo {
    background: linear-gradient(180deg, #8bb6ff, #154da9);
}

.dashboard-donut {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.dashboard-donut__chart {
    width: min(230px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-donut__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(109, 123, 178, 0.12);
}

.dashboard-donut__inner strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
}

.dashboard-donut__legend {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-donut__legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-donut__legend-dot {
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-shortcut {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 20px 34px rgba(55, 62, 118, 0.16);
}

.dashboard-shortcut__icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
}

.dashboard-shortcut strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.08rem;
}

.dashboard-shortcut small {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.35;
}

.dashboard-shortcut--violet {
    background: linear-gradient(135deg, #1d63e3, #4d8fff);
}

.dashboard-shortcut--cyan {
    background: linear-gradient(135deg, #1696d6, #7be1ff);
}

.dashboard-shortcut--rose {
    background: linear-gradient(135deg, #18b792, #67e0bd);
}

.dashboard-shortcut--amber {
    background: linear-gradient(135deg, #1b7fd5, #3bc0c8);
}

.dashboard-shortcut--emerald {
    background: linear-gradient(135deg, #159a66, #53d3a2);
}

.dashboard-shortcut--indigo {
    background: linear-gradient(135deg, #154da9, #4c87e8);
}

.dashboard-message {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}

.dashboard-message p {
    margin: 0;
    color: #445174;
}

.dashboard-message__empty {
    color: var(--app-muted);
}

.dashboard-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-link-list__item {
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    text-decoration: none;
    background: rgba(245, 247, 255, 0.88);
    border: 1px solid rgba(108, 121, 174, 0.12);
}

.dashboard-link-list__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary-dark);
    background: rgba(29, 99, 227, 0.08);
    flex-shrink: 0;
}

.dashboard-link-list__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dashboard-link-list__copy strong {
    font-size: 0.95rem;
}

@media (max-width: 1199px) {
    .dashboard-shell__top,
    .dashboard-shell__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    body.app-shell-page {
        padding: 12px;
    }

    .app-shell {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 24px);
    }

    .app-sidebar {
        position: fixed;
        inset: 12px auto 12px 12px;
        width: min(320px, calc(100vw - 56px));
        border-radius: 1.8rem;
        transform: translateX(-108%);
        transition: transform 0.24s ease;
        box-shadow: 0 28px 56px rgba(26, 34, 78, 0.32);
    }

    .app-sidebar__close,
    .app-sidebar-toggle {
        display: inline-flex;
    }

    .app-shell__overlay {
        display: block;
    }

    body.app-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.app-sidebar-open .app-shell__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .app-topbar {
        grid-template-columns: 1fr;
    }

    .app-topbar__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .app-content,
    .app-topbar,
    .app-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer__meta,
    .app-footer__links,
    .legal-quicklinks {
        width: 100%;
        justify-content: flex-start;
    }

    .app-guest-page .app-footer,
    .app-guest-page .app-footer__meta,
    .app-footer__guest-content {
        align-items: flex-start;
    }

    .dashboard-spotlight {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.2rem;
    }

    .dashboard-spotlight__visual {
        min-height: 220px;
    }

    .dashboard-spotlight__float--one {
        right: 0.2rem;
    }

    .dashboard-spotlight__float--two {
        left: 0.2rem;
    }

    .dashboard-metric-grid,
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }

    .dashboard-trend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell__overlay,
    .app-sidebar,
    .app-sidebar__link {
        transition: none !important;
    }
}
