:root {
    --app-primary: #0b5f73;
    --app-primary-dark: #083e56;
    --app-primary-soft: rgba(11, 95, 115, .13);
    --app-bg: #e8f3f5;
    --app-bg-secondary: #cfe4e8;
    --app-surface: rgba(255,255,255,.96);
    --app-surface-strong: #fff;
    --app-text: #102638;
    --app-muted: #6b7280;
    --app-border: #e8edf5;
    --app-success: #198754;
    --app-warning: #f59e0b;
    --app-danger: #dc3545;
    --app-shadow: 0 20px 45px rgba(15, 23, 42, .08);
    --app-shadow-sm: 0 10px 25px rgba(15, 23, 42, .05);
    --app-ring: 0 0 0 .25rem rgba(11, 95, 115, .16);
}

/* Local Bootstrap subset used by the Kazafin screens. Keeps layout intact even when CDN CSS is unavailable. */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-.5 * var(--bs-gutter-x));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-top: calc(-1 * var(--bs-gutter-y));
}

.row > * {
    flex-shrink: 0;
    margin-top: var(--bs-gutter-y);
    max-width: 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    width: 100%;
}

.g-0 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.flex-column { flex-direction: column !important; }
.align-items-stretch { align-items: stretch !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.g-2 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.gap-2 { gap: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: .5rem !important; }
.pt-2 { padding-top: .5rem !important; }
.p-4 { padding: 1.5rem !important; }
.h2 { font-size: calc(1.325rem + .9vw) !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }
.h4 { font-size: 1.5rem !important; }
.display-6 { font-size: calc(1.375rem + 1.5vw) !important; }
.fw-bold { font-weight: 800 !important; }
.fw-semibold { font-weight: 700 !important; }
.small { font-size: .875em !important; }
.text-muted { color: var(--app-muted) !important; }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.border { border: 1px solid var(--app-border) !important; }
.border-0 { border: 0 !important; }
.shadow-sm { box-shadow: var(--app-shadow-sm) !important; }
.rounded-4 { border-radius: 1rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.btn-sm { min-height: 2.25rem !important; padding: .45rem .75rem !important; font-size: .875rem !important; }

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

.input-group {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    width: 1%;
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 0 !important;
}

.input-group > .btn {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 1rem !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 1rem !important;
    flex: 0 0 auto !important;
    position: relative;
    z-index: 2;
}

.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .btn {
    min-height: 3.2rem !important;
}

.form-check {
    display: block;
    margin-bottom: .125rem;
    min-height: 1.5rem;
    padding-left: 1.5em;
}

.form-check-input {
    appearance: none;
    background-color: var(--app-surface-strong);
    border: 1px solid color-mix(in srgb, var(--app-primary) 24%, var(--app-border));
    height: 1em;
    margin-left: -1.5em;
    margin-top: .25em;
    vertical-align: top;
    width: 1em;
}

.form-switch {
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    border-radius: 2em;
    height: 1.25rem;
    margin-left: -2.5em;
    width: 2.25rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow: inset 1.05rem 0 0 rgba(255,255,255,.92);
}

.form-text {
    color: var(--app-muted);
    font-size: .875em;
    margin-top: .25rem;
}

.text-bg-light {
    background: color-mix(in srgb, var(--app-primary) 8%, var(--app-surface-strong)) !important;
    color: var(--app-text) !important;
}

.text-bg-success {
    background: rgba(25, 135, 84, .14) !important;
    color: #0f5132 !important;
}

.text-bg-warning {
    background: rgba(245, 158, 11, .18) !important;
    color: #7c4a03 !important;
}

.text-bg-danger {
    background: rgba(220, 53, 69, .16) !important;
    color: #842029 !important;
}

.btn-outline-success {
    background: rgba(25, 135, 84, .08) !important;
    border: 1px solid rgba(25, 135, 84, .24) !important;
    color: #0f5132 !important;
}

.btn-outline-danger,
.btn-danger {
    background: rgba(220, 53, 69, .12) !important;
    border: 1px solid rgba(220, 53, 69, .28) !important;
    color: #842029 !important;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .px-md-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }

    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
    .p-lg-5 { padding: 3rem !important; }
}

@media (min-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

.form-label {
    display: inline-block !important;
    margin-bottom: .5rem !important;
}

.form-control,
.form-select {
    display: block !important;
    width: 100% !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 70%, white 30%)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-outline-primary,
.btn-outline-secondary {
    background: rgba(255,255,255,.75) !important;
    border: 1px solid color-mix(in srgb, var(--app-primary) 28%, white 72%) !important;
    color: var(--app-primary) !important;
}

body.theme-default {
    --app-primary: #0b2f4a;
    --app-primary-dark: #062238;
    --app-primary-soft: rgba(11, 47, 74, .13);
    --app-surface: #d9e9ee;
    --app-surface-strong: #eef7f9;
    --app-text: #102638;
    --app-muted: #526678;
}

body.theme-emerald {
    --app-primary: #109d74;
    --app-primary-dark: #0b7d5c;
    --app-primary-soft: #e7f8f2;
    --app-surface: #bdebdc;
    --app-surface-strong: #e7f8f2;
    --app-text: #063b2d;
    --app-muted: #2f6f5d;
}

body.theme-violet {
    --app-primary: #7a5af8;
    --app-primary-dark: #6445e8;
    --app-primary-soft: #f1ecff;
    --app-surface: #ddd2ff;
    --app-surface-strong: #f1ecff;
    --app-text: #2f1d75;
    --app-muted: #6853a8;
}

body.theme-graphite {
    --app-primary: #516175;
    --app-primary-dark: #3e4c5d;
    --app-primary-soft: #edf1f5;
    --app-surface: #d9e0e8;
    --app-surface-strong: #f0f3f7;
    --app-text: #1f2937;
    --app-muted: #5d6b7c;
}

body.theme-rose {
    --app-primary: #ff2fa3;
    --app-primary-dark: #d6007f;
    --app-primary-soft: rgba(255, 47, 163, .16);
    --app-bg: #fff0f8;
    --app-bg-secondary: #ffd3ea;
    --app-surface: rgba(255, 232, 246, .96);
    --app-surface-strong: #fff5fb;
    --app-text: #3b1029;
    --app-muted: #7b3a5d;
    --app-border: rgba(255, 47, 163, .22);
}

body.theme-coral {
    --app-primary: #ea580c;
    --app-primary-dark: #c2410c;
    --app-primary-soft: #fff1e8;
    --app-surface: #fed7aa;
    --app-surface-strong: #fff7ed;
    --app-text: #431407;
    --app-muted: #8a3a12;
}

body.theme-ruby {
    --app-primary: #9f1239;
    --app-primary-dark: #881337;
    --app-primary-soft: #ffe4ec;
    --app-surface: #f7b3c2;
    --app-surface-strong: #fff1f4;
    --app-text: #4c0519;
    --app-muted: #84243f;
}

body.theme-sky {
    --app-primary: #0ea5e9;
    --app-primary-dark: #0284c7;
    --app-primary-soft: #e0f7ff;
    --app-surface: #bae6fd;
    --app-surface-strong: #effbff;
    --app-text: #082f49;
    --app-muted: #2d6f91;
}

body.theme-indigo {
    --app-primary: #4f46e5;
    --app-primary-dark: #3730a3;
    --app-primary-soft: #eef0ff;
    --app-surface: #d8dcff;
    --app-surface-strong: #f0f2ff;
    --app-text: #1f2161;
    --app-muted: #555aa0;
}

body.theme-bronze {
    --app-primary: #92400e;
    --app-primary-dark: #78350f;
    --app-primary-soft: #fff2df;
    --app-surface: #e7b778;
    --app-surface-strong: #fff7ed;
    --app-text: #451a03;
    --app-muted: #765032;
}

body.theme-lime {
    --app-primary: #84cc16;
    --app-primary-dark: #4d7c0f;
    --app-primary-soft: #f1ffd7;
    --app-surface: #daf59a;
    --app-surface-strong: #f7ffe8;
    --app-text: #243b08;
    --app-muted: #56761d;
}

body.theme-amber {
    --app-primary: #d97706;
    --app-primary-dark: #b45309;
    --app-primary-soft: #fef3c7;
    --app-surface: #fde68a;
    --app-surface-strong: #fffbeb;
    --app-text: #451a03;
    --app-muted: #7c4a03;
}

body.theme-turquoise {
    --app-primary: #0f766e;
    --app-primary-dark: #115e59;
    --app-primary-soft: #ccfbf1;
    --app-surface: #99f6e4;
    --app-surface-strong: #f0fdfa;
    --app-text: #134e4a;
    --app-muted: #2b6f6a;
}

body.theme-lavender {
    --app-primary: #9333ea;
    --app-primary-dark: #7e22ce;
    --app-primary-soft: #f3e8ff;
    --app-surface: #e9d5ff;
    --app-surface-strong: #faf5ff;
    --app-text: #3b0764;
    --app-muted: #6b3a92;
}

html,
body {
    min-height: 100%;
}

/* Final Kazafin parity layer for this Laravel markup. */
body.app-shell,
body.auth-shell {
    font-size: 1rem !important;
}

body.app-shell .app-topbar {
    backdrop-filter: blur(18px) !important;
    background: rgba(255,255,255,.78) !important;
    border-bottom: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: var(--app-shadow-sm) !important;
    color: var(--app-text) !important;
    padding-block: .7rem !important;
}

body.app-shell.dark-mode .app-topbar {
    background: rgba(8, 16, 30, .78) !important;
    border-color: rgba(148, 163, 184, .08) !important;
}

body.app-shell .topbar-greeting {
    align-items: center !important;
    display: flex !important;
    gap: .65rem !important;
}

body.app-shell .brand-mark {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
}

body.app-shell .header-icon-btn {
    min-width: 42px !important;
    padding-inline: .75rem !important;
}

body.app-shell .content {
    max-width: 1160px !important;
    width: 100% !important;
}

body.app-shell .page-hero {
    align-items: flex-end !important;
    margin-bottom: 1.35rem !important;
}

body.app-shell .page-kicker i {
    font-size: .95rem !important;
}

body.app-shell .panel {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9)) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 1.35rem !important;
    box-shadow: var(--app-shadow) !important;
    padding: 1.25rem !important;
}

body.app-shell.dark-mode .panel {
    background: linear-gradient(180deg, rgba(16,26,47,.96), rgba(16,26,47,.88)) !important;
}

body.app-shell .dashboard-stat-card,
body.app-shell .dashboard-stats-grid > .panel,
body.app-shell .grid.cards > .panel {
    min-height: 150px !important;
}

body.app-shell .metric {
    display: block !important;
    font-size: .875rem !important;
    margin-bottom: .25rem !important;
}

body.app-shell .value {
    font-size: clamp(1.9rem, 4vw, 2.5rem) !important;
    line-height: 1.05 !important;
}

body.app-shell .priority-panel {
    background: rgba(255,255,255,.45) !important;
}

body.app-shell.dark-mode .priority-panel {
    background: rgba(7,16,30,.42) !important;
}

body.app-shell .table-wrap {
    margin-inline: -.25rem !important;
}

body.app-shell .table {
    margin-bottom: 0 !important;
}

body.app-shell .table td,
body.app-shell .table th {
    background: transparent !important;
}

body.app-shell .bottom-nav {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.app-shell .bottom-nav__item i {
    font-size: 1rem !important;
    line-height: 1 !important;
    margin-bottom: .18rem !important;
}

body.app-shell .bottom-nav__item span:last-child {
    display: block !important;
    line-height: 1.05 !important;
}

body.app-shell .bottom-nav__icon {
    display: none !important;
}

body.app-shell .kz-card-grid {
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.app-shell .kz-list-card .card-body,
body.app-shell .kz-form-card .card-body {
    padding: 1.5rem !important;
}

body.app-shell .filter-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .6rem !important;
}

body.app-shell .filter-pill {
    align-items: center !important;
    background: rgba(255,255,255,.75) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 999px !important;
    color: var(--app-text) !important;
    display: inline-flex !important;
    font-weight: 700 !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: .6rem 1rem !important;
}

body.app-shell .filter-pill.is-active {
    background: linear-gradient(135deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 70%, white 30%)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.app-shell .account-card__amount {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

@media (max-width: 991.98px) {
    body.app-shell .kz-card-grid {
        grid-template-columns: 1fr !important;
    }
}

body.auth-shell .auth-panel {
    color: var(--app-text) !important;
    display: block !important;
    padding: 0 !important;
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;
    min-height: min(82dvh, 720px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 2rem !important;
    background: rgba(255,255,255,.76) !important;
    border: 1px solid rgba(255,255,255,.66) !important;
    box-shadow: 0 30px 80px rgba(11,47,74,.16) !important;
    backdrop-filter: blur(20px) !important;
}

body.auth-shell.dark-mode .auth-panel {
    background: rgba(15,23,42,.78) !important;
    border-color: rgba(148,163,184,.14) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.34) !important;
}

body.auth-shell .auth-panel .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-height: inherit !important;
    width: 100% !important;
}

body.auth-shell .auth-showcase--app {
    min-height: 100% !important;
    padding: clamp(1.6rem, 3vw, 2.6rem) !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(232,180,79,.26), transparent 30%),
        linear-gradient(145deg, #052b3c 0%, #0b5f73 58%, #3b8ca0 100%) !important;
}

body.auth-shell .auth-form-wrap {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 100% !important;
    padding: clamp(1rem, 2.5vw, 2rem) !important;
}

body.auth-shell .auth-form-card {
    color: var(--app-text) !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(11,47,74,.08) !important;
    border-radius: 1.65rem !important;
    box-shadow: 0 24px 64px rgba(11,47,74,.10) !important;
}

body.auth-shell.dark-mode .auth-form-card {
    background: rgba(15,23,42,.92) !important;
    border-color: rgba(148,163,184,.14) !important;
}

body.auth-shell .auth-card-inner {
    color: var(--app-text) !important;
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

body.auth-shell .kazafin-auth-header {
    color: var(--app-text) !important;
    margin-bottom: 1.35rem !important;
    text-align: center !important;
}

body.auth-shell .auth-form-card h1,
body.auth-shell .auth-form-card h2,
body.auth-shell .auth-form-card h3,
body.auth-shell .auth-form-card label,
body.auth-shell .auth-form-card .form-label {
    color: var(--app-text) !important;
}

body.auth-shell .auth-form-card p,
body.auth-shell .auth-form-card .text-muted,
body.auth-shell .auth-form-card .form-hint {
    color: var(--app-muted) !important;
}

.kazafin-brand-lockup {
    align-items: center !important;
    display: flex !important;
    gap: .75rem !important;
}

body.auth-shell .auth-brand-logo,
body.app-shell .brand-mark {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
    padding: 0 !important;
}

body.auth-shell .auth-brand-logo {
    height: 3rem !important;
    min-width: 3rem !important;
    width: 3rem !important;
}

body.auth-shell .kazafin-brand-name {
    color: #fff !important;
    font-size: 1.35rem !important;
    font-weight: 950 !important;
}

body.auth-shell .kazafin-brand-tag {
    color: rgba(255,255,255,.76) !important;
    font-size: .9rem !important;
}

body.auth-shell .auth-app-preview {
    display: grid !important;
    gap: .75rem !important;
}

body.auth-shell .auth-app-preview div {
    align-items: center !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 1rem !important;
    display: flex !important;
    gap: .8rem !important;
    justify-content: space-between !important;
    padding: .85rem .95rem !important;
}

body.auth-shell .auth-app-preview span {
    color: rgba(255,255,255,.76) !important;
    font-weight: 800 !important;
}

body.auth-shell .auth-app-preview strong {
    color: #fff !important;
}

body.auth-shell form {
    gap: 1rem !important;
}

body.auth-shell label {
    font-size: .9rem !important;
}

body.auth-shell .row {
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    body.auth-shell {
        align-items: flex-start !important;
    }

    body.auth-shell .auth-panel .row {
        flex-wrap: wrap !important;
    }

    body.auth-shell .auth-panel {
        min-height: auto !important;
        border-radius: 1.35rem !important;
    }

    body.auth-shell .auth-panel .row {
        min-height: auto !important;
    }

    body.auth-shell .auth-form-wrap {
        padding: .8rem !important;
    }

    body.auth-shell .auth-form-card {
        max-width: 100% !important;
        border-radius: 1.25rem !important;
    }
}

body {
    background:
        radial-gradient(circle at top left, rgba(232, 180, 79, .18) 0, transparent 28%),
        radial-gradient(circle at top right, rgba(59, 140, 160, .16) 0, transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, var(--app-bg) 40%, var(--app-bg-secondary) 100%) !important;
    color: var(--app-text) !important;
    font-family: Figtree, Arial, Helvetica, sans-serif !important;
}

body.dark-mode {
    --app-bg: #09111f;
    --app-bg-secondary: #0b1323;
    --app-surface: rgba(11, 18, 32, .92);
    --app-surface-strong: #101a2f;
    --app-text: #eef4ff;
    --app-muted: #9aa7bd;
    --app-border: rgba(148, 163, 184, .16);
    --app-shadow: 0 20px 45px rgba(0, 0, 0, .28);
    --app-shadow-sm: 0 10px 25px rgba(0, 0, 0, .18);
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, .18) 0, transparent 24%),
        radial-gradient(circle at top right, rgba(32, 201, 151, .10) 0, transparent 18%),
        linear-gradient(180deg, #07101e 0%, #08111f 38%, #0b1323 100%) !important;
}

body.theme-rose.dark-mode {
    --app-primary: #ff4fb2;
    --app-primary-dark: #ff1493;
    --app-primary-soft: rgba(255, 79, 178, .22);
    --app-bg: #341124;
    --app-bg-secondary: #5b173c;
    --app-surface: rgba(96, 22, 62, .94);
    --app-surface-strong: #74184b;
    --app-text: #fff5fb;
    --app-muted: #ffc1df;
    --app-border: rgba(255, 120, 196, .28);
    --app-shadow: 0 20px 45px rgba(70, 0, 42, .36);
    --app-shadow-sm: 0 10px 25px rgba(70, 0, 42, .24);
    background:
        radial-gradient(circle at top left, rgba(255, 79, 178, .26) 0, transparent 24%),
        radial-gradient(circle at top right, rgba(255, 195, 226, .14) 0, transparent 18%),
        linear-gradient(180deg, #2a0c1d 0%, #3a1028 38%, #5b173c 100%) !important;
}

.app-shell {
    padding-bottom: 6.75rem !important;
}

.app-shell::before {
    display: none !important;
}

.content {
    max-width: 1160px !important;
    padding: 1rem 18px 6rem !important;
}

.app-topbar {
    backdrop-filter: blur(18px) !important;
    background: rgba(255,255,255,.78) !important;
    border-bottom: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: var(--app-shadow-sm) !important;
    min-height: 64px !important;
}

body.dark-mode .app-topbar {
    background: rgba(8, 16, 30, .78) !important;
    border-color: rgba(148, 163, 184, .08) !important;
}

body.theme-rose.dark-mode .app-topbar,
body.theme-rose .app-topbar {
    background: color-mix(in srgb, var(--app-surface-strong) 82%, transparent) !important;
    border-color: var(--app-border) !important;
}

.brand-mark {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 34px !important;
    object-fit: contain !important;
    padding: 0 !important;
    width: 34px !important;
}

.brand-copy {
    line-height: 1.05 !important;
}

.brand-copy strong {
    color: var(--app-text) !important;
    font-size: 15px !important;
}

.brand-copy small {
    color: var(--app-muted) !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
}

.header-icon-btn,
.theme-toggle,
.header-chip {
    align-items: center !important;
    background: rgba(255,255,255,.82) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 999px !important;
    box-shadow: var(--app-shadow-sm) !important;
    color: var(--app-text) !important;
    display: inline-flex !important;
    gap: .45rem !important;
    min-height: 42px !important;
}

body.dark-mode .header-icon-btn,
body.dark-mode .theme-toggle,
body.dark-mode .header-chip {
    background: rgba(16, 26, 47, .92) !important;
}

.header-icon-btn.danger {
    color: var(--app-danger) !important;
}

.page-hero {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: space-between !important;
    margin-bottom: 1.35rem !important;
}

.page-kicker {
    align-items: center !important;
    background: var(--app-primary-soft) !important;
    border-radius: 999px !important;
    color: var(--app-primary) !important;
    display: inline-flex !important;
    font-size: .83rem !important;
    font-weight: 700 !important;
    gap: .45rem !important;
    letter-spacing: .02em !important;
    padding: .4rem .8rem !important;
}

.section-title {
    color: var(--app-text) !important;
    font-size: clamp(1.3rem, 2vw, 1.8rem) !important;
    margin: .75rem 0 .3rem !important;
}

.muted,
.metric,
.section-subtitle,
small {
    color: var(--app-muted) !important;
}

.panel,
.card,
.priority-panel,
.timeline-item__content,
.priority-item,
.empty-inline-state,
.quick-actions__menu {
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    box-shadow: var(--app-shadow) !important;
    color: var(--app-text) !important;
}

.panel,
.card {
    border-radius: 1.35rem !important;
    overflow: hidden !important;
    padding: 1.25rem !important;
}

body.theme-rose .panel,
body.theme-rose .card,
body.theme-rose .priority-panel,
body.theme-rose .timeline-item__content,
body.theme-rose .priority-item,
body.theme-rose .empty-inline-state,
body.theme-rose .quick-actions__menu {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--app-surface-strong) 82%, transparent), color-mix(in srgb, var(--app-primary) 13%, var(--app-surface))) !important;
    border-color: var(--app-border) !important;
}

.dashboard-stat-primary,
.panel.dashboard-stat-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary) 16%, white 84%), rgba(255,255,255,.95)) !important;
    color: var(--app-text) !important;
}

body.dark-mode .dashboard-stat-primary,
body.dark-mode .panel.dashboard-stat-primary {
    background: linear-gradient(135deg, rgba(47,111,237,.14), rgba(16,26,47,.95)) !important;
}

body.theme-rose.dark-mode .dashboard-stat-primary,
body.theme-rose.dark-mode .panel.dashboard-stat-primary,
body.theme-rose .dashboard-stat-primary,
body.theme-rose .panel.dashboard-stat-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary) 32%, var(--app-surface-strong)), color-mix(in srgb, var(--app-primary) 12%, var(--app-surface))) !important;
}

.dashboard-stats-grid,
.grid.cards {
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-bottom: 1rem !important;
}

.dashboard-main-grid {
    display: grid !important;
    gap: 1.5rem !important;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr) !important;
}

.value {
    color: var(--app-text) !important;
    font-size: 1.95rem !important;
    font-weight: 800 !important;
}

.dashboard-stat-icon,
.icon-chip {
    align-items: center !important;
    background: var(--app-primary-soft) !important;
    border-radius: 1rem !important;
    color: var(--app-primary) !important;
    display: inline-flex !important;
    font-size: 1.25rem !important;
    height: 2.75rem !important;
    justify-content: center !important;
    width: 2.75rem !important;
}

.dashboard-stat-icon {
    height: 3rem !important;
    width: 3rem !important;
}

.dashboard-stat-icon.soft-warning {
    background: rgba(245, 158, 11, .14) !important;
    color: #d98a00 !important;
}

.dashboard-stat-icon.soft-info {
    background: rgba(13, 202, 240, .14) !important;
    color: #087990 !important;
}

.dashboard-stat-icon.soft-danger {
    background: rgba(220, 53, 69, .12) !important;
    color: var(--app-danger) !important;
}

.dashboard-radar-header,
.priority-panel__header {
    align-items: flex-start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .8rem !important;
    justify-content: space-between !important;
}

.dashboard-inline-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .8rem !important;
}

.dashboard-inline-stats span {
    background: rgba(255,255,255,.6) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 1rem !important;
    min-width: 110px !important;
    padding: .75rem .85rem !important;
}

body.dark-mode .dashboard-inline-stats span {
    background: rgba(7,16,30,.52) !important;
}

.dashboard-inline-stats strong,
.dashboard-inline-stats small {
    display: block !important;
}

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

.priority-panel {
    background: rgba(255,255,255,.45) !important;
    border-radius: 1.25rem !important;
    box-shadow: none !important;
    padding: 1rem !important;
}

body.dark-mode .priority-panel {
    background: rgba(7,16,30,.42) !important;
}

body.theme-rose.dark-mode .priority-panel,
body.theme-rose .priority-panel {
    background: color-mix(in srgb, var(--app-primary) 14%, var(--app-surface)) !important;
}

.stack-list {
    display: grid !important;
    gap: .75rem !important;
}

.priority-item {
    align-items: center !important;
    background: rgba(255,255,255,.74) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    display: flex !important;
    gap: .85rem !important;
    justify-content: space-between !important;
    padding: .9rem !important;
}

body.dark-mode .priority-item {
    background: rgba(16,26,47,.76) !important;
}

body.theme-rose.dark-mode .priority-item,
body.theme-rose .priority-item {
    background: color-mix(in srgb, var(--app-primary) 11%, var(--app-surface-strong)) !important;
}

.priority-item__left,
.priority-item__right {
    align-items: center !important;
    display: flex !important;
    gap: .75rem !important;
}

.priority-item__right {
    align-items: flex-end !important;
    flex-direction: column !important;
}

.empty-inline-state,
.empty-module {
    background: rgba(255,255,255,.45) !important;
    border: 1px dashed var(--app-border) !important;
    border-radius: 1.2rem !important;
    box-shadow: none !important;
    padding: 1.35rem 1rem !important;
    text-align: center !important;
}

body.dark-mode .empty-inline-state,
body.dark-mode .empty-module {
    background: rgba(7,16,30,.42) !important;
}

body.theme-rose.dark-mode .empty-inline-state,
body.theme-rose.dark-mode .empty-module,
body.theme-rose .empty-inline-state,
body.theme-rose .empty-module {
    background: color-mix(in srgb, var(--app-primary) 10%, var(--app-surface)) !important;
}

.timeline-list {
    display: grid !important;
    gap: .95rem !important;
    position: relative !important;
}

.timeline-list::before {
    background: linear-gradient(180deg, var(--app-primary-soft), transparent) !important;
    bottom: .55rem !important;
    content: "" !important;
    left: .7rem !important;
    position: absolute !important;
    top: .55rem !important;
    width: 2px !important;
}

.timeline-item {
    display: flex !important;
    gap: 1rem !important;
    padding-left: 1.8rem !important;
    position: relative !important;
}

.timeline-item__marker {
    border: 4px solid var(--app-surface-strong) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px var(--app-border) !important;
    height: 1.2rem !important;
    left: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: .3rem !important;
    width: 1.2rem !important;
}

.timeline-item__content {
    background: rgba(255,255,255,.76) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    padding: .95rem 1rem !important;
    width: 100% !important;
}

body.dark-mode .timeline-item__content {
    background: rgba(16,26,47,.78) !important;
}

body.theme-rose.dark-mode .timeline-item__content,
body.theme-rose .timeline-item__content {
    background: color-mix(in srgb, var(--app-primary) 12%, var(--app-surface-strong)) !important;
}

.actions,
.topbar-actions {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
}

.btn,
button.btn,
a.btn,
body .btn,
body .btn.success {
    align-items: center !important;
    background: linear-gradient(135deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 70%, white 30%)) !important;
    border: 1px solid transparent !important;
    border-radius: 1rem !important;
    box-shadow: 0 14px 25px color-mix(in srgb, var(--app-primary) 30%, transparent) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-weight: 800 !important;
    gap: .45rem !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    min-height: 46px !important;
    padding: .65rem 1rem !important;
    text-align: center !important;
}

.btn.secondary,
body .btn.secondary {
    background: rgba(255,255,255,.75) !important;
    border-color: color-mix(in srgb, var(--app-primary) 28%, white 72%) !important;
    box-shadow: var(--app-shadow-sm) !important;
    color: var(--app-primary) !important;
}

body.dark-mode .btn.secondary {
    background: rgba(16,26,47,.88) !important;
}

.btn.danger,
body .btn.danger {
    background: linear-gradient(135deg, #b42318, #dc3545) !important;
    color: #fff !important;
}

.quick-actions {
    bottom: 6.4rem !important;
}

.quick-actions__menu {
    border-radius: 1.35rem !important;
    padding: 1rem !important;
}

.quick-actions__menu .btn {
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
}

.fab,
body .fab {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    background-color: var(--app-primary) !important;
    background-image: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border-radius: 50% !important;
    border: 0 !important;
    box-shadow: 0 18px 32px color-mix(in srgb, var(--app-primary) 30%, transparent) !important;
    color: #fff !important;
    overflow: hidden !important;
}

.fab i,
body .fab i {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

.bottom-nav {
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    bottom: 1rem !important;
    box-shadow: none !important;
    contain: layout paint !important;
    gap: .55rem !important;
    isolation: isolate !important;
    left: 50% !important;
    max-width: 520px !important;
    padding: 0 !important;
    position: fixed !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 1.5rem), 520px) !important;
    will-change: transform !important;
}

.bottom-nav__item,
body .bottom-nav__item,
body .bottom-nav__item.active {
    -webkit-tap-highlight-color: transparent !important;
    backface-visibility: hidden !important;
    background: var(--app-surface-strong) !important;
    border: 0 !important;
    border-radius: .95rem !important;
    box-shadow: var(--app-shadow-sm) !important;
    color: var(--app-muted) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-height: 50px !important;
    outline: 0 !important;
    padding: .35rem .25rem !important;
    transform: translateZ(0) !important;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, color .14s ease !important;
    will-change: transform !important;
}

.bottom-nav__item:hover {
    transform: translate3d(0, -2px, 0) !important;
}

.bottom-nav__item:active,
.bottom-nav__item:focus,
.bottom-nav__item:focus-visible {
    outline: 0 !important;
}

.bottom-nav__item.active,
body .bottom-nav__item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary) 34%, var(--app-surface-strong)), color-mix(in srgb, var(--app-primary) 18%, var(--app-surface))) !important;
    border-color: color-mix(in srgb, var(--app-primary) 38%, var(--app-border)) !important;
    color: var(--app-primary) !important;
}

.bottom-nav__icon,
body .bottom-nav__icon {
    background: transparent !important;
    color: inherit !important;
    height: auto !important;
    width: auto !important;
}

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

.form-grid .wide {
    grid-column: 1 / -1 !important;
}

label {
    color: var(--app-text) !important;
    font-weight: 800 !important;
}

input,
select,
textarea {
    background: rgba(255,255,255,.9) !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 1rem !important;
    color: var(--app-text) !important;
    min-height: 48px !important;
    padding: .65rem .85rem !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: rgba(7, 16, 30, .72) !important;
    border-color: var(--app-border) !important;
}

body.theme-rose.dark-mode input,
body.theme-rose.dark-mode select,
body.theme-rose.dark-mode textarea,
body.theme-rose input,
body.theme-rose select,
body.theme-rose textarea {
    background: color-mix(in srgb, var(--app-surface-strong) 74%, #fff) !important;
    border-color: var(--app-border) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(47,111,237,.55) !important;
    box-shadow: var(--app-ring) !important;
    outline: none !important;
}

.table-wrap {
    overflow-x: auto !important;
}

.table {
    border-collapse: collapse !important;
    color: var(--app-text) !important;
    width: 100% !important;
}

.table th,
.table td {
    border-bottom: 1px solid var(--app-border) !important;
    padding: .9rem .75rem !important;
    text-align: left !important;
    vertical-align: top !important;
}

.table th {
    color: var(--app-muted) !important;
    font-size: .76rem !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.table tbody tr {
    background: transparent !important;
}

.badge {
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: .5em .75em !important;
}

.alert,
.error {
    border-radius: 1rem !important;
    box-shadow: var(--app-shadow-sm) !important;
}

body.auth-shell {
    align-items: center !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(232,180,79,.18), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(59,140,160,.18), transparent 24rem),
        linear-gradient(180deg, #eef7f8 0%, #d9eaed 52%, #c7dde2 100%) !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    padding: clamp(1rem, 3vw, 2rem) !important;
    width: 100% !important;
}

body.auth-shell input {
    min-height: 52px !important;
}

body.auth-shell .btn {
    min-height: 50px !important;
    width: 100% !important;
}

@media (max-width: 1199.98px) {
    .dashboard-stats-grid,
    .grid.cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991.98px) {
    .dashboard-main-grid,
    .dashboard-priority-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767.98px) {
    .content {
        padding: .85rem .85rem 6rem !important;
    }

    .dashboard-stats-grid,
    .grid.cards,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .priority-item,
    .priority-item__left,
    .priority-item__right {
        align-items: flex-start !important;
    }

    .priority-item {
        flex-direction: column !important;
    }

    .priority-item__right {
        flex-direction: row !important;
    }

    .bottom-nav {
        bottom: .6rem !important;
        width: calc(100% - 1rem) !important;
    }

    .bottom-nav__item {
        font-size: .68rem !important;
        min-height: 54px !important;
    }
}

body.app-shell.theme-rose .panel,
body.app-shell.theme-rose .card,
body.app-shell.theme-rose .priority-panel,
body.app-shell.theme-rose .timeline-item__content,
body.app-shell.theme-rose .priority-item,
body.app-shell.theme-rose .empty-inline-state,
body.app-shell.theme-rose .quick-actions__menu,
body.app-shell.theme-rose.dark-mode .panel,
body.app-shell.theme-rose.dark-mode .card,
body.app-shell.theme-rose.dark-mode .priority-panel,
body.app-shell.theme-rose.dark-mode .timeline-item__content,
body.app-shell.theme-rose.dark-mode .priority-item,
body.app-shell.theme-rose.dark-mode .empty-inline-state,
body.app-shell.theme-rose.dark-mode .quick-actions__menu {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 129, 202, .18), transparent 38%),
        linear-gradient(180deg, color-mix(in srgb, var(--app-primary) 24%, var(--app-surface-strong)), color-mix(in srgb, var(--app-primary-dark) 16%, var(--app-surface))) !important;
    border-color: var(--app-border) !important;
}

body.app-shell.theme-rose .kz-form-card,
body.app-shell.theme-rose.dark-mode .kz-form-card {
    background:
        radial-gradient(circle at 0 0, rgba(255, 213, 236, .22), transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--app-primary) 18%, var(--app-surface-strong)), color-mix(in srgb, var(--app-primary-dark) 18%, var(--app-surface))) !important;
}

body.app-shell.theme-rose .bottom-nav,
body.app-shell.theme-rose.dark-mode .bottom-nav {
    background: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.app-shell.theme-rose .bottom-nav__item,
body.app-shell.theme-rose.dark-mode .bottom-nav__item {
    background: color-mix(in srgb, var(--app-primary-dark) 24%, var(--app-surface-strong)) !important;
    border-color: var(--app-border) !important;
}

body.app-shell.theme-rose .bottom-nav__item.active,
body.app-shell.theme-rose.dark-mode .bottom-nav__item.active {
    background: linear-gradient(135deg, #ff7fa1, #ff5bbb) !important;
    color: #250014 !important;
}

body.app-shell .card.card-soft {
    padding: 0 !important;
}

body.app-shell .card.card-soft > .card-body {
    padding: 1.5rem !important;
}

body.app-shell #accounts-list.card.card-soft > .card-body {
    padding: 1rem 1.25rem !important;
}

body.app-shell #account-form.form-panel {
    scroll-margin-top: 6rem !important;
}

body.app-shell #account-form.form-panel > .card-body {
    padding: 1.5rem !important;
}

@media (min-width: 992px) {
    body.app-shell #account-form.form-panel > .card-body {
        padding: 3rem !important;
    }
}

body.app-shell #account-form .row {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1rem !important;
}

body.app-shell #account-form .form-label {
    color: var(--app-text) !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
}

body.app-shell #account-form .form-control,
body.app-shell #account-form .form-select {
    min-height: 46px !important;
}

body.app-shell .accounts-card-row .account-card {
    min-height: 100% !important;
}

body.app-shell .accounts-card-row .account-card > .card-body {
    min-height: 228px !important;
}

body.app-shell .account-card h2 {
    color: var(--app-text) !important;
    font-weight: 850 !important;
}

body.app-shell .account-card__meta i {
    color: var(--app-primary) !important;
}

body.app-shell .agenda-card-row .agenda-card {
    min-height: 100% !important;
}

body.app-shell .agenda-card-row .agenda-card > .card-body {
    min-height: 228px !important;
}

body.app-shell .agenda-card h2 {
    color: var(--app-text) !important;
    font-weight: 850 !important;
}

body.app-shell .agenda-card__meta i {
    color: var(--app-primary) !important;
}

body.app-shell .calendar-nav {
    align-items: center !important;
    display: flex !important;
    gap: .75rem !important;
    justify-content: center !important;
}

body.app-shell .quick-details {
    background: color-mix(in srgb, var(--app-primary) 8%, var(--app-surface-strong)) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
}

body.app-shell .quick-details summary {
    color: var(--app-primary) !important;
    cursor: pointer !important;
    font-weight: 850 !important;
}

body.app-shell .form-check {
    align-items: center !important;
    display: flex !important;
    gap: .6rem !important;
    min-height: 46px !important;
}

body.app-shell .form-check-input {
    flex: 0 0 auto !important;
    min-height: 1.25rem !important;
    padding: 0 !important;
    width: 2.35rem !important;
}

body.app-shell .form-check-label {
    color: var(--app-text) !important;
    font-weight: 800 !important;
}

body.app-shell .report-chart-wrap {
    position: relative !important;
    width: 100% !important;
}

body.app-shell .report-chart-wrap--flow,
body.app-shell .report-chart-wrap--category {
    max-height: 220px !important;
    min-height: 220px !important;
}

body.app-shell .report-chart-wrap--compact {
    height: 220px !important;
}

body.app-shell .reports-chart-card canvas {
    height: 100% !important;
    width: 100% !important;
}

body.app-shell .report-breakdown-item,
body.app-shell .report-expense-row {
    background: color-mix(in srgb, var(--app-primary) 7%, var(--app-surface-strong)) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
}

body.app-shell .progress {
    background: color-mix(in srgb, var(--app-primary) 10%, var(--app-surface)) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

body.app-shell .progress-bar {
    background: linear-gradient(90deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 60%, white 40%)) !important;
    height: 100% !important;
}

body.app-shell .vstack {
    display: grid !important;
}

body.app-shell .family-create-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
    justify-content: center !important;
}

/* Theme color system: every selected theme paints the full app surface. */
body.app-shell[class*="theme-"]:not(.theme-rose) {
    --theme-card-bg:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.24), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 22%, white 78%) 0%, color-mix(in srgb, var(--app-primary) 16%, white 84%) 52%, color-mix(in srgb, var(--app-primary) 24%, white 76%) 100%);
    --theme-card-bg-strong:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.22), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 34%, white 66%) 0%, color-mix(in srgb, var(--app-primary) 26%, white 74%) 52%, color-mix(in srgb, var(--app-primary-dark) 32%, white 68%) 100%);
    --theme-field-bg: color-mix(in srgb, var(--app-primary) 10%, white 90%);
    --theme-tint-bg:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--app-primary) 20%, white 80%), transparent 28rem),
        radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--app-primary) 16%, transparent), transparent 24rem),
        linear-gradient(180deg, color-mix(in srgb, var(--app-primary) 12%, white 88%) 0%, color-mix(in srgb, var(--app-primary) 18%, white 82%) 44%, color-mix(in srgb, var(--app-primary) 26%, white 74%) 100%);
    background: var(--theme-tint-bg) !important;
}

body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) {
    --theme-card-bg:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--app-primary) 15%, transparent), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 22%, #07101e 78%) 0%, color-mix(in srgb, var(--app-primary-dark) 26%, #07101e 74%) 54%, color-mix(in srgb, var(--app-primary-dark) 18%, #020617 82%) 100%);
    --theme-card-bg-strong:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--app-primary) 18%, transparent), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 32%, #07101e 68%) 0%, color-mix(in srgb, var(--app-primary-dark) 34%, #07101e 66%) 52%, color-mix(in srgb, var(--app-primary-dark) 26%, #020617 74%) 100%);
    --theme-field-bg: color-mix(in srgb, var(--app-primary) 14%, #07101e 86%);
    --theme-tint-bg:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--app-primary) 18%, transparent), transparent 28rem),
        radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--app-primary) 10%, transparent), transparent 24rem),
        linear-gradient(180deg, color-mix(in srgb, var(--app-primary-dark) 16%, #020617 84%) 0%, color-mix(in srgb, var(--app-primary-dark) 22%, #020617 78%) 44%, color-mix(in srgb, var(--app-primary-dark) 30%, #020617 70%) 100%);
    background: var(--theme-tint-bg) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .app-topbar {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border-color: color-mix(in srgb, var(--app-primary) 34%, transparent) !important;
    box-shadow: var(--app-shadow-sm) !important;
}

body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .app-topbar {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary-dark) 72%, #020617 28%), color-mix(in srgb, var(--app-primary) 58%, #020617 42%)) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .brand-copy strong,
body.app-shell[class*="theme-"]:not(.theme-rose) .brand-copy small {
    color: #fff !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .header-icon-btn {
    background: color-mix(in srgb, var(--app-primary-dark) 54%, var(--app-primary) 46%) !important;
    border-color: color-mix(in srgb, #fff 22%, transparent) !important;
    color: #fff !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .page-hero,
body.app-shell[class*="theme-"]:not(.theme-rose) .panel,
body.app-shell[class*="theme-"]:not(.theme-rose) .card,
body.app-shell[class*="theme-"]:not(.theme-rose) .priority-panel,
body.app-shell[class*="theme-"]:not(.theme-rose) .priority-item,
body.app-shell[class*="theme-"]:not(.theme-rose) .timeline-item__content,
body.app-shell[class*="theme-"]:not(.theme-rose) .empty-inline-state,
body.app-shell[class*="theme-"]:not(.theme-rose) .quick-actions__menu {
    background: var(--theme-card-bg) !important;
    border-color: color-mix(in srgb, var(--app-primary) 26%, var(--app-border)) !important;
    box-shadow: var(--app-shadow) !important;
    color: var(--app-text) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .dashboard-stat-primary,
body.app-shell[class*="theme-"]:not(.theme-rose) .dashboard-stat-card,
body.app-shell[class*="theme-"]:not(.theme-rose) .dashboard-stats-grid > .panel,
body.app-shell[class*="theme-"]:not(.theme-rose) .grid.cards > .panel {
    background: var(--theme-card-bg-strong) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .page-kicker,
body.app-shell[class*="theme-"]:not(.theme-rose) .icon-chip,
body.app-shell[class*="theme-"]:not(.theme-rose) .dashboard-stat-icon {
    background: color-mix(in srgb, var(--app-primary) 18%, var(--app-surface-strong)) !important;
    border: 1px solid color-mix(in srgb, var(--app-primary) 24%, var(--app-border)) !important;
    color: color-mix(in srgb, var(--app-primary-dark) 88%, var(--app-text)) !important;
}

body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .page-kicker,
body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .icon-chip,
body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .dashboard-stat-icon {
    background: color-mix(in srgb, var(--app-primary) 18%, #020617 82%) !important;
    color: color-mix(in srgb, var(--app-primary) 36%, white 64%) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .btn,
body.app-shell[class*="theme-"]:not(.theme-rose) button.btn,
body.app-shell[class*="theme-"]:not(.theme-rose) a.btn,
body.app-shell[class*="theme-"]:not(.theme-rose) .fab {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border-color: color-mix(in srgb, #fff 16%, var(--app-border)) !important;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--app-primary-dark) 24%, transparent) !important;
    color: #fff !important;
}

body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .btn,
body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) button.btn,
body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) a.btn,
body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .fab {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary-dark) 72%, #020617 28%), color-mix(in srgb, var(--app-primary) 58%, #020617 42%)) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .btn.secondary,
body.app-shell[class*="theme-"]:not(.theme-rose) .btn-outline-secondary,
body.app-shell[class*="theme-"]:not(.theme-rose) .btn-outline-primary {
    background: color-mix(in srgb, var(--app-primary) 12%, var(--app-surface-strong)) !important;
    border-color: color-mix(in srgb, var(--app-primary) 24%, var(--app-border)) !important;
    color: var(--app-text) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) input,
body.app-shell[class*="theme-"]:not(.theme-rose) select,
body.app-shell[class*="theme-"]:not(.theme-rose) textarea {
    background: var(--theme-field-bg) !important;
    border-color: color-mix(in srgb, var(--app-primary) 22%, var(--app-border)) !important;
    color: var(--app-text) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .bottom-nav__item {
    background: var(--theme-card-bg) !important;
    border: 0 !important;
    color: var(--app-text) !important;
}

body.app-shell[class*="theme-"]:not(.theme-rose) .bottom-nav__item.active {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border: 0 !important;
    color: #fff !important;
}

body.app-shell[class*="theme-"].dark-mode:not(.theme-rose) .bottom-nav__item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary-dark) 72%, #020617 28%), color-mix(in srgb, var(--app-primary) 58%, #020617 42%)) !important;
}

/* Theme color trial: rose should tint the entire app, and dark mode only deepens it. */
body.app-shell.theme-rose {
    --app-primary: #ff2fa3;
    --app-primary-dark: #bd006f;
    --app-primary-soft: rgba(255, 47, 163, .22);
    --app-bg: #ffd7ec;
    --app-bg-secondary: #ff9fd0;
    --app-surface: #ffb8dc;
    --app-surface-strong: #ffd3ea;
    --app-text: #3a0926;
    --app-muted: #7a3158;
    --app-border: rgba(173, 0, 101, .22);
    --app-shadow: 0 22px 58px rgba(145, 0, 86, .18);
    --app-shadow-sm: 0 12px 28px rgba(145, 0, 86, .13);
    --theme-card-bg:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.28), transparent 34%),
        linear-gradient(145deg, #ffc0df 0%, #ff92c9 48%, #f36ab5 100%);
    --theme-card-bg-strong:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.24), transparent 36%),
        linear-gradient(145deg, #ff9ccc 0%, #f14aa3 54%, #c60076 100%);
    --theme-field-bg: rgba(255, 236, 247, .62);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .38), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(255, 47, 163, .28), transparent 24rem),
        linear-gradient(180deg, #ffe3f2 0%, #ffc0df 42%, #ff8fc7 100%) !important;
}

body.app-shell.theme-rose.dark-mode {
    --app-primary: #ff4fb2;
    --app-primary-dark: #8f0058;
    --app-primary-soft: rgba(255, 79, 178, .24);
    --app-bg: #2a071b;
    --app-bg-secondary: #590f3b;
    --app-surface: #681344;
    --app-surface-strong: #8b185b;
    --app-text: #fff4fb;
    --app-muted: #ffc3e1;
    --app-border: rgba(255, 132, 202, .24);
    --app-shadow: 0 24px 64px rgba(24, 0, 15, .42);
    --app-shadow-sm: 0 12px 30px rgba(24, 0, 15, .32);
    --theme-card-bg:
        radial-gradient(circle at 100% 0, rgba(255, 115, 193, .16), transparent 34%),
        linear-gradient(145deg, #701044 0%, #4a0b31 54%, #2a071b 100%);
    --theme-card-bg-strong:
        radial-gradient(circle at 100% 0, rgba(255, 115, 193, .18), transparent 36%),
        linear-gradient(145deg, #8b185b 0%, #5d0d3d 52%, #340820 100%);
    --theme-field-bg: rgba(255, 128, 201, .18);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 79, 178, .22), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(255, 164, 214, .13), transparent 24rem),
        linear-gradient(180deg, #2a071b 0%, #3b0a28 42%, #590f3b 100%) !important;
}

body.app-shell.theme-rose .app-topbar,
body.app-shell.theme-rose .app-topbar {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border-color: var(--app-border) !important;
    box-shadow: var(--app-shadow-sm) !important;
}

body.app-shell.theme-rose.dark-mode .app-topbar {
    background: linear-gradient(135deg, #3a0828, #6d1048 62%, #a31469) !important;
    border-color: rgba(255, 132, 202, .2) !important;
    box-shadow: var(--app-shadow-sm) !important;
}

body.app-shell.theme-rose .brand-copy strong,
body.app-shell.theme-rose .brand-copy small,
body.app-shell.theme-rose.dark-mode .brand-copy strong,
body.app-shell.theme-rose.dark-mode .brand-copy small {
    color: #fff !important;
}

body.app-shell.theme-rose .header-icon-btn,
body.app-shell.theme-rose.dark-mode .header-icon-btn {
    background: color-mix(in srgb, var(--app-primary-dark) 56%, var(--app-surface-strong)) !important;
    border-color: color-mix(in srgb, #fff 24%, var(--app-border)) !important;
    color: #fff !important;
}

body.app-shell.theme-rose.dark-mode .header-icon-btn {
    background: color-mix(in srgb, #2a071b 64%, var(--app-primary) 36%) !important;
}

body.app-shell.theme-rose .page-hero,
body.app-shell.theme-rose .panel,
body.app-shell.theme-rose .card,
body.app-shell.theme-rose .priority-panel,
body.app-shell.theme-rose .priority-item,
body.app-shell.theme-rose .timeline-item__content,
body.app-shell.theme-rose .empty-inline-state,
body.app-shell.theme-rose .quick-actions__menu,
body.app-shell.theme-rose.dark-mode .page-hero,
body.app-shell.theme-rose.dark-mode .panel,
body.app-shell.theme-rose.dark-mode .card,
body.app-shell.theme-rose.dark-mode .priority-panel,
body.app-shell.theme-rose.dark-mode .priority-item,
body.app-shell.theme-rose.dark-mode .timeline-item__content,
body.app-shell.theme-rose.dark-mode .empty-inline-state,
body.app-shell.theme-rose.dark-mode .quick-actions__menu {
    background: var(--theme-card-bg) !important;
    border-color: var(--app-border) !important;
    box-shadow: var(--app-shadow) !important;
    color: var(--app-text) !important;
}

body.app-shell.theme-rose .dashboard-stat-primary,
body.app-shell.theme-rose .dashboard-stat-card,
body.app-shell.theme-rose .dashboard-stats-grid > .panel,
body.app-shell.theme-rose .grid.cards > .panel,
body.app-shell.theme-rose.dark-mode .dashboard-stat-primary,
body.app-shell.theme-rose.dark-mode .dashboard-stat-card,
body.app-shell.theme-rose.dark-mode .dashboard-stats-grid > .panel,
body.app-shell.theme-rose.dark-mode .grid.cards > .panel {
    background: var(--theme-card-bg-strong) !important;
}

body.app-shell.theme-rose .page-kicker,
body.app-shell.theme-rose.dark-mode .page-kicker,
body.app-shell.theme-rose .icon-chip,
body.app-shell.theme-rose.dark-mode .icon-chip,
body.app-shell.theme-rose .dashboard-stat-icon,
body.app-shell.theme-rose.dark-mode .dashboard-stat-icon {
    background: color-mix(in srgb, var(--app-primary) 24%, var(--app-surface-strong)) !important;
    color: color-mix(in srgb, var(--app-primary-dark) 82%, var(--app-text)) !important;
    border: 1px solid var(--app-border) !important;
}

body.app-shell.theme-rose.dark-mode .page-kicker,
body.app-shell.theme-rose.dark-mode .icon-chip,
body.app-shell.theme-rose.dark-mode .dashboard-stat-icon {
    background: color-mix(in srgb, var(--app-primary) 18%, #2a071b) !important;
    color: #ffd7ec !important;
}

body.app-shell.theme-rose .btn,
body.app-shell.theme-rose button.btn,
body.app-shell.theme-rose a.btn,
body.app-shell.theme-rose .fab,
body.app-shell.theme-rose .fab {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border-color: color-mix(in srgb, #fff 18%, var(--app-border)) !important;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--app-primary-dark) 32%, transparent) !important;
    color: #fff !important;
}

body.app-shell.theme-rose.dark-mode .btn,
body.app-shell.theme-rose.dark-mode button.btn,
body.app-shell.theme-rose.dark-mode a.btn,
body.app-shell.theme-rose.dark-mode .fab {
    background: linear-gradient(135deg, #6d1048, #b81778) !important;
    border-color: rgba(255, 132, 202, .22) !important;
    box-shadow: 0 14px 28px rgba(24, 0, 15, .36) !important;
    color: #fff !important;
}

body.app-shell.theme-rose .btn.secondary,
body.app-shell.theme-rose .btn-outline-secondary,
body.app-shell.theme-rose .btn-outline-primary,
body.app-shell.theme-rose.dark-mode .btn.secondary,
body.app-shell.theme-rose.dark-mode .btn-outline-secondary,
body.app-shell.theme-rose.dark-mode .btn-outline-primary {
    background: color-mix(in srgb, var(--app-primary) 14%, var(--app-surface-strong)) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

body.app-shell.theme-rose input,
body.app-shell.theme-rose select,
body.app-shell.theme-rose textarea,
body.app-shell.theme-rose.dark-mode input,
body.app-shell.theme-rose.dark-mode select,
body.app-shell.theme-rose.dark-mode textarea {
    background: var(--theme-field-bg) !important;
    border-color: color-mix(in srgb, var(--app-primary-dark) 28%, var(--app-border)) !important;
    color: var(--app-text) !important;
}

body.app-shell.theme-rose .bottom-nav__item,
body.app-shell.theme-rose.dark-mode .bottom-nav__item {
    background: var(--theme-card-bg) !important;
    border: 0 !important;
    color: var(--app-text) !important;
}

body.app-shell.theme-rose .bottom-nav__item.active,
body.app-shell.theme-rose .bottom-nav__item.active {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary)) !important;
    border: 0 !important;
    color: #fff !important;
}

body.app-shell.theme-rose.dark-mode .bottom-nav__item.active {
    background: linear-gradient(135deg, #6d1048, #b81778) !important;
    border: 0 !important;
    color: #fff !important;
}

body.app-shell .empty-state {
    align-items: center !important;
    display: grid !important;
    justify-items: center !important;
    min-height: 260px !important;
    text-align: center !important;
}

.profile-card-main {
    min-height: 100%;
}

.surface-muted {
    background: color-mix(in srgb, var(--app-primary) 8%, var(--app-surface-strong)) !important;
    border: 1px solid color-mix(in srgb, var(--app-primary) 16%, var(--app-border)) !important;
}

.profile-dailies-toggle {
    border-top: 1px solid var(--app-border);
    padding-top: 1rem;
}

.profile-linked-list {
    display: grid;
    gap: .75rem;
}

.profile-linked-member {
    background: color-mix(in srgb, var(--app-primary) 7%, var(--app-surface-strong));
    border: 1px solid color-mix(in srgb, var(--app-primary) 16%, var(--app-border));
    border-radius: 18px;
    padding: 1rem;
}

body.dark-mode .profile-linked-member {
    background: color-mix(in srgb, var(--app-primary) 10%, #020617 90%);
}

.profile-linked-member__main {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.profile-linked-member__info {
    min-width: 0;
}

.profile-linked-member__info .small {
    overflow-wrap: anywhere;
}

.profile-linked-member__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.profile-logout-wrap {
    display: flex;
    justify-content: center;
}

.profile-logout-btn {
    border-radius: 999px !important;
    padding-inline: 1.25rem !important;
}

button.is-copied {
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .input-group {
        flex-wrap: wrap;
        gap: .55rem;
    }

    .input-group > .form-control,
    .input-group > .form-select,
    .input-group > .btn {
        border-radius: 1rem !important;
        width: 100% !important;
    }

    .profile-linked-member__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-linked-member__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .profile-logout-wrap {
        justify-content: center;
    }

    .profile-logout-btn {
        width: 100%;
    }
}

body.app-shell .bottom-nav,
body.app-shell[class*="theme-"] .bottom-nav,
body.app-shell[class*="theme-"].dark-mode .bottom-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: .42rem !important;
    max-width: 520px !important;
    padding: 0 !important;
    outline: 0 !important;
    width: min(calc(100% - 1.5rem), 520px) !important;
}

@media (min-width: 768px) {
    body.app-shell .bottom-nav,
    body.app-shell[class*="theme-"] .bottom-nav,
    body.app-shell[class*="theme-"].dark-mode .bottom-nav {
        max-width: 460px !important;
        width: 460px !important;
    }
}

body.app-shell .bottom-nav::before,
body.app-shell .bottom-nav::after,
body.app-shell[class*="theme-"] .bottom-nav::before,
body.app-shell[class*="theme-"] .bottom-nav::after {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
    display: none !important;
}

body.app-shell .bottom-nav__item,
body.app-shell[class*="theme-"] .bottom-nav__item,
body.app-shell[class*="theme-"] .bottom-nav__item.active {
    border: 0 !important;
    outline: 0 !important;
}

body.app-shell .fab,
body.app-shell[class*="theme-"] .fab,
body.app-shell[class*="theme-"] .fab i {
    border: 0 !important;
    outline: 0 !important;
}

.admin-user-list,
.admin-price-grid {
    display: grid;
    gap: 1rem;
}

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

.admin-price-grid > .btn {
    grid-column: 1 / -1;
    justify-self: end;
}

.admin-price-card,
.admin-user-card {
    background: color-mix(in srgb, var(--app-primary) 7%, var(--app-surface-strong));
    border-radius: 1.2rem;
    box-shadow: var(--app-shadow-sm);
    padding: 1rem;
}

.admin-user-card {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr .8fr 1fr;
}

.admin-user-card__identity,
.admin-user-card__actions,
.admin-plan-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.admin-user-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary));
    border-radius: 1rem;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.admin-user-card__text,
.admin-user-card__meta {
    display: grid;
    gap: .25rem;
}

.admin-user-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.admin-user-card__meta {
    color: var(--app-muted);
    font-size: .85rem;
}

.marketing-shell {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 227, 170, .75), transparent 24rem),
        radial-gradient(circle at 82% 0%, rgba(32, 180, 134, .14), transparent 26rem),
        linear-gradient(135deg, #fff8ea 0%, #edf7f4 48%, #dff1f2 100%);
    color: #12313f;
    font-family: Figtree, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.marketing-shell *,
.marketing-shell *::before,
.marketing-shell *::after {
    box-sizing: border-box;
}

.marketing-shell a {
    color: inherit;
    text-decoration: none;
}

.sales-nav,
.sales-hero,
.sales-section {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.25rem;
}

.sales-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sales-nav nav,
.sales-actions,
.sales-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.05rem;
}

.sales-nav nav a:not(.sales-btn) {
    align-items: center;
    border-radius: 999px;
    color: #12313f;
    display: inline-flex;
    font-size: .95rem;
    font-weight: 800;
    min-height: 2.65rem;
    padding: .65rem .9rem;
}

.sales-nav nav a:not(.sales-btn):hover {
    background: rgba(255, 255, 255, .58);
}

.sales-brand strong,
.sales-brand small {
    display: block;
}

.sales-brand {
    align-items: center;
    display: inline-flex;
    gap: .7rem;
}

.sales-brand img {
    border-radius: .9rem;
    display: block;
    height: 2.9rem;
    object-fit: contain;
    width: 2.9rem;
}

.sales-brand strong {
    color: #0b5f73;
    font-size: 1.05rem;
    font-weight: 900;
}

.sales-brand small {
    color: rgba(18, 49, 63, .7);
    font-size: .82rem;
    margin-top: .1rem;
}

.sales-hero {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    min-height: 78vh;
}

.sales-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: .95;
    margin: 1rem 0;
    max-width: 9ch;
}

.sales-hero p {
    color: rgba(18, 49, 63, .78);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 44rem;
}

.sales-pill,
.sales-plan-badge {
    background: #dff7ef;
    border-radius: 999px;
    color: #0b5f73;
    display: inline-flex;
    font-weight: 900;
    padding: .45rem .8rem;
}

.sales-btn {
    align-items: center;
    background: #fff;
    border-radius: .95rem;
    border: 0;
    box-shadow: 0 16px 34px rgba(18, 61, 97, .08);
    color: #12313f;
    display: inline-flex;
    font-weight: 900;
    gap: .45rem;
    min-height: 3rem;
    padding: .75rem 1rem;
    text-decoration: none;
}

.sales-btn--solid {
    background: linear-gradient(135deg, #052b3c, #0b5f73, #20b486);
    color: #fff;
}

.sales-grid article,
.sales-steps article {
    background: rgba(255,255,255,.88);
    border-radius: 1.4rem;
    box-shadow: 0 22px 56px rgba(18,61,97,.11);
    padding: 1.25rem;
}

.sales-preview {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 1.8rem;
    box-shadow: 0 28px 70px rgba(18, 61, 97, .14);
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
}

.sales-preview__top,
.sales-preview__header,
.sales-metrics,
.sales-list div {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.sales-preview__top {
    justify-content: flex-start;
}

.sales-preview__top span {
    background: #d5e5e8;
    border-radius: 999px;
    height: .7rem;
    width: .7rem;
}

.sales-preview__header {
    align-items: center;
}

.sales-preview__header small,
.sales-metrics small {
    color: rgba(18, 49, 63, .62);
    display: block;
    font-weight: 700;
}

.sales-preview__header strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
}

.sales-preview__header i {
    align-items: center;
    background: #dff7ef;
    border-radius: 1rem;
    color: #0b5f73;
    display: inline-flex;
    font-size: 1.3rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.sales-metrics,
.sales-grid--features,
.sales-grid--plans,
.sales-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-metrics article {
    background: #f7fbfb;
    border-radius: 1rem;
    box-shadow: none;
    padding: 1rem;
}

.sales-metrics strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    margin-top: .25rem;
}

.sales-list {
    display: grid;
    gap: .7rem;
}

.sales-list div {
    align-items: center;
    background: rgba(223, 247, 239, .72);
    border-radius: 1rem;
    padding: .85rem 1rem;
}

.sales-list span {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.sales-section__head {
    margin-bottom: 1.25rem;
    max-width: 46rem;
}

.sales-section__head h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 900;
    line-height: 1;
    margin: .9rem 0;
}

.sales-section__head p,
.sales-grid article p,
.sales-grid article li {
    color: rgba(18, 49, 63, .72);
    line-height: 1.5;
}

.sales-grid article i {
    align-items: center;
    background: #dff7ef;
    border-radius: 1rem;
    color: #0b5f73;
    display: inline-flex;
    font-size: 1.35rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.sales-grid article h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 1rem 0 .45rem;
}

.sales-grid--plans article strong {
    display: block;
    font-size: 2.2rem;
    margin: .65rem 0;
}

.sales-grid--plans .is-featured {
    border: 2px solid #20b486;
    transform: translateY(-.35rem);
}

.sales-grid--plans article ul {
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.sales-grid--plans article li::before {
    color: #0b5f73;
    content: "✓";
    font-weight: 900;
    margin-right: .45rem;
}

@media (max-width: 900px) {
    .sales-nav,
    .sales-hero {
        grid-template-columns: 1fr;
    }

    .sales-grid--features,
    .sales-grid--plans,
    .sales-metrics,
    .sales-steps,
    .admin-price-grid,
    .admin-user-card {
        grid-template-columns: 1fr;
    }
}

/* OrgDrive-like bottom navigation: independent floating buttons. */
body.app-shell .bottom-nav,
body.app-shell[class*="theme-"] .bottom-nav,
body.app-shell[class*="theme-"].dark-mode .bottom-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    bottom: calc(.55rem + env(safe-area-inset-bottom)) !important;
    box-shadow: none !important;
    display: grid !important;
    gap: .28rem !important;
    left: 50% !important;
    margin: 0 !important;
    max-width: 430px !important;
    overflow: visible !important;
    padding: 0 !important;
    position: fixed !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 1.1rem), 430px) !important;
    z-index: 30 !important;
}

body.app-shell.dark-mode .bottom-nav,
body.app-shell[class*="theme-"].dark-mode .bottom-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.app-shell .bottom-nav__item,
body.app-shell[class*="theme-"] .bottom-nav__item,
body.app-shell[class*="theme-"] .bottom-nav__item.active {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: .86rem !important;
    box-shadow: none !important;
    color: var(--app-text) !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    gap: .16rem !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    min-height: 3.05rem !important;
    min-width: 0 !important;
    padding: .3rem .16rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

body.app-shell .bottom-nav__item:hover,
body.app-shell .bottom-nav__item:focus-visible {
    background: color-mix(in srgb, var(--app-primary) 8%, transparent) !important;
    box-shadow: none !important;
    color: var(--app-primary-dark) !important;
    transform: translateY(-1px) !important;
}

body.app-shell .bottom-nav__item.active,
body.app-shell[class*="theme-"] .bottom-nav__item.active,
body.app-shell[class*="theme-"].dark-mode .bottom-nav__item.active {
    background: color-mix(in srgb, var(--app-primary) 12%, transparent) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--app-primary-dark) !important;
    transform: translateY(-1px) !important;
}

body.app-shell.dark-mode .bottom-nav__item.active,
body.app-shell[class*="theme-"].dark-mode .bottom-nav__item.active {
    color: #fff !important;
}

body.app-shell .bottom-nav__item i,
body.app-shell[class*="theme-"] .bottom-nav__item i {
    align-items: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: currentColor !important;
    display: inline-flex !important;
    font-size: .98rem !important;
    height: 1.05rem !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: transform .15s ease !important;
    width: 1.05rem !important;
}

body.app-shell .bottom-nav__item.active i,
body.app-shell[class*="theme-"] .bottom-nav__item.active i {
    background: transparent !important;
    color: currentColor !important;
    transform: scale(1.08) !important;
}

body.app-shell .bottom-nav__item span,
body.app-shell[class*="theme-"] .bottom-nav__item span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    body.app-shell .bottom-nav,
    body.app-shell[class*="theme-"] .bottom-nav {
        bottom: calc(.45rem + env(safe-area-inset-bottom)) !important;
        gap: .2rem !important;
        width: min(calc(100% - .8rem), 430px) !important;
    }

    body.app-shell .bottom-nav__item,
    body.app-shell[class*="theme-"] .bottom-nav__item {
        font-size: .52rem !important;
        border-radius: .74rem !important;
        min-height: 2.85rem !important;
        padding-inline: .08rem !important;
    }

    body.app-shell .bottom-nav__item i,
    body.app-shell[class*="theme-"] .bottom-nav__item i {
        height: .98rem !important;
        width: .98rem !important;
    }
}

/* Bottom nav final state across every theme: consistent button backgrounds. */
body.app-shell .bottom-nav__item:not(.active),
body.app-shell[class*="theme-"] .bottom-nav__item:not(.active),
body.app-shell[class*="theme-"].dark-mode .bottom-nav__item:not(.active),
body.app-shell.theme-rose .bottom-nav__item:not(.active),
body.app-shell.theme-rose.dark-mode .bottom-nav__item:not(.active) {
    background: color-mix(in srgb, var(--app-surface-strong) 72%, var(--app-primary) 28%) !important;
    border: 1px solid color-mix(in srgb, var(--app-border) 78%, var(--app-primary) 22%) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--app-primary) 14%, transparent) !important;
    color: var(--app-text) !important;
}

body.app-shell .bottom-nav__item:not(.active):hover,
body.app-shell .bottom-nav__item:not(.active):focus-visible,
body.app-shell[class*="theme-"] .bottom-nav__item:not(.active):hover,
body.app-shell[class*="theme-"] .bottom-nav__item:not(.active):focus-visible,
body.app-shell.theme-rose .bottom-nav__item:not(.active):hover,
body.app-shell.theme-rose .bottom-nav__item:not(.active):focus-visible {
    background: color-mix(in srgb, var(--app-surface-strong) 58%, var(--app-primary) 42%) !important;
    border-color: color-mix(in srgb, var(--app-border) 58%, var(--app-primary) 42%) !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--app-primary) 20%, transparent) !important;
    color: var(--app-primary-dark) !important;
}

body.app-shell .bottom-nav__item.active,
body.app-shell[class*="theme-"] .bottom-nav__item.active,
body.app-shell[class*="theme-"].dark-mode .bottom-nav__item.active,
body.app-shell.theme-rose .bottom-nav__item.active,
body.app-shell.theme-rose.dark-mode .bottom-nav__item.active {
    background: color-mix(in srgb, var(--app-surface-strong) 54%, var(--app-primary) 46%) !important;
    border: 1px solid color-mix(in srgb, var(--app-border) 58%, var(--app-primary) 42%) !important;
    box-shadow: 0 9px 20px color-mix(in srgb, var(--app-primary) 20%, transparent) !important;
    color: var(--app-primary-dark) !important;
}

body.app-shell.dark-mode .bottom-nav__item.active,
body.app-shell[class*="theme-"].dark-mode .bottom-nav__item.active,
body.app-shell.theme-rose.dark-mode .bottom-nav__item.active {
    color: #fff !important;
}
