#scrollUp {
    background-color: #41b28f;
}

.nav-link.active {
    background: #007093;
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
}

#cv-ft,
#cv-rp {
    background:
        linear-gradient(135deg, rgba(40, 124, 81, 0.82) 0%, rgba(16, 80, 77, 0.82) 100%),
        url('../assets/hero-bg.png') center center / cover no-repeat;
    height: 46vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark-mode #cv-ft,
body.dark-mode #cv-rp {
    background:
        linear-gradient(135deg, rgba(40, 124, 81, 0.82) 0%, rgba(16, 80, 77, 0.82) 100%),
        url('../assets/hero-bg-dark.png') center center / cover no-repeat;
}

/* Greeting */
.ft-greeting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
}

.ft-greeting-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(1.325rem + .9vw);
    line-height: 1.3;
    font-weight: 600;
    cursor: default;
}

#cv-ft::before,
#cv-rp::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(to bottom,
            rgba(236, 236, 234, 0) 0%,
            rgba(236, 236, 234, 0) 40%,
            rgba(236, 236, 234, 0.3) 55%,
            rgba(236, 236, 234, 0.6) 68%,
            rgba(236, 236, 234, 0.85) 80%,
            rgba(236, 236, 234, 1) 90%,
            rgba(236, 236, 234, 1) 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 53%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    z-index: -1;
}

body.dark-mode #cv-ft::before,
body.dark-mode #cv-rp::before {
    background: linear-gradient(to bottom,
            rgba(18, 21, 33, 0) 0%,
            rgba(18, 21, 33, 0) 40%,
            rgba(18, 21, 33, 0.3) 55%,
            rgba(18, 21, 33, 0.6) 68%,
            rgba(18, 21, 33, 0.85) 80%,
            rgba(18, 21, 33, 1) 90%,
            rgba(18, 21, 33, 1) 100%);
}

#cv-ft .container,
#cv-rp .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Cover inner wrapper */
.ft-cover-wrapper {
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.ft-cover-wrapper h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Month tabs – reusing Buszy category-tab pattern */
/* Month tabs — Buszy category-tab style */
.month-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 0px;
    position: relative;
    overflow: visible;
    height: 60px;
    box-sizing: border-box;
}

.month-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 0 1 auto;
    max-width: calc(100% - 16px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.month-tabs-container.has-scroll {
    mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}



.month-tabs-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.month-tabs-container::-webkit-scrollbar {
    display: none;
}

.month-scroll-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.month-scroll-indicator:hover {
    color: #107d9c;
}

.month-scroll-indicator.visible {
    display: flex;
}

body.dark-mode .month-scroll-indicator {
    color: #fff;
}

body.dark-mode .month-scroll-indicator:hover {
    color: #6fb8d4;
}

.month-btn {
    padding: 9px 24px;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-radius: 24px;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.month-btn:hover {
    color: #000;
    transform: translateY(-2px);
    background-color: #c7e3fb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.month-btn.active {
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%) !important;
    color: #fff;
}

body.dark-mode .month-btn {
    background-color: #393e53;
    color: #ffffff;
}

body.dark-mode .month-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    background-color: #52718d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .month-btn.active {
    color: #fff;
}

/* Main content card section (overlaps cover like Buszy .pinned) */
.ft-main {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}



/* Balance card */
.balance-card {
    background: #fff;
    border-radius: 25px;
    padding: 20px 22px 18px;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

body.dark-mode .balance-card {
    background: #1c1f2b;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.balance-item:last-child {
    text-align: right;
}

@media (max-width: 383px) {
    .balance-row {
        flex-direction: column;
        justify-content: flex-start;
    }

    .balance-item {
        text-align: left !important;
    }
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #6b7280;
    font-weight: 600;
    cursor: default;
}

body.dark-mode .balance-label {
    color: #a0a0b0;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1e2e;
    cursor: default;
}

body.dark-mode .balance-amount {
    color: #e0e0f0;
}

.balance-amount.positive {
    color: #16a34a;
}

.balance-amount.negative {
    color: #dc2626;
}

/* Progress bar */
.progress-wrap {
    background: #f3f4f6;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}

body.dark-mode .progress-wrap {
    background: #2e3244;
}

.ft-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ft-progress-bar.warn {
    background: linear-gradient(84deg, #f59e0b, #a83e00);
}

.ft-progress-bar.danger {
    background: linear-gradient(84deg, #ef4444, #b91c1c);
}

.progress-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    cursor: default;
}

.reset-month-btn {
    background: none;
    border: 1px solid #6b7280;
    color: #6b7280;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, color 0.2s;
}

.reset-month-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

body.dark-mode .reset-month-btn {
    border-color: #4b5563;
    color: #9ca3af;
}

body.dark-mode .reset-month-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

body.dark-mode .progress-legend {
    color: #a0a0b0;
}

/* Add button – styled like Buszy category tab */
.ft-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-select: none;
}

.ft-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ft-add-btn:active {
    transform: scale(0.95);
    opacity: 0.85;
}

/* Section heading */
.ft-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1e2e;
    margin-bottom: 12px;
    cursor: default;
}

/* Section heading row with inline action button */
.rp-list-header {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .ft-section-heading {
    color: #e0e0f0;
}

/* Transaction groups */
.txn-date-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
    cursor: default;
}

body.dark-mode .txn-date-label {
    color: #a0a0b0;
}

.txn-group-card {
    background: #fff;
    border-radius: 25px;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 18px;
}

body.dark-mode .txn-group-card {
    background: #1c1f2b;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.txn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.txn-item:last-child {
    border-bottom: none;
}

.txn-item:hover {
    background: #f0f7fd;
}

body.dark-mode .txn-item:hover {
    background: #22263a;
}

.txn-item:active {
    transform: scale(0.985);
    opacity: 0.85;
}

.txn-item-reset {
    background: linear-gradient(90deg, rgba(66, 192, 126, 0.07) 0%, rgba(35, 150, 144, 0.07) 100%);
    cursor: default;
    pointer-events: none;
}

.txn-item-reset .txn-name {
    color: #166534 !important;
    font-style: italic;
}

.txn-item-reset .txn-cat {
    color: #16a34a !important;
    opacity: 0.75;
}

body.dark-mode .txn-item-reset {
    background: linear-gradient(90deg, rgba(66, 192, 126, 0.1) 0%, rgba(35, 150, 144, 0.1) 100%);
}

body.dark-mode .txn-item-reset .txn-name {
    color: #4ade80 !important;
}

body.dark-mode .txn-item-reset .txn-cat {
    color: #4ade80 !important;
}

.txn-reset-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.txn-reset-day {
    font-size: 0.7rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.txn-reset-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
}

body.dark-mode .txn-reset-day {
    color: #86efac;
}

body.dark-mode .txn-reset-date {
    color: #4ade80;
}

.txn-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.txn-icon.pos {
    background: #eef2ff;
}

.txn-icon.atm {
    background: #fff7ed;
}

.txn-icon.income {
    background: #f0fdf4;
}

.txn-icon.bills {
    background: #f0f9ff;
}

.txn-icon.other {
    background: #f3f4f6;
}

body.dark-mode .txn-icon.pos {
    background: #717aac;
}

body.dark-mode .txn-icon.atm {
    background: #9e876a;
}

body.dark-mode .txn-icon.income {
    background: #4e8b67;
}

body.dark-mode .txn-icon.bills {
    background: #588bd6;
}

body.dark-mode .txn-icon.other {
    background: #6371bd;
}

.txn-info {
    flex: 1;
    min-width: 0;
}

.txn-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e1e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-cat {
    font-size: 0.73rem;
    color: #6b7280;
    margin-top: 2px;
}

body.dark-mode .txn-name {
    color: #e0e0f0;
}

body.dark-mode .txn-cat {
    color: #a0a0b0;
}

.txn-amount {
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.txn-amount.debit {
    color: #dc2626;
}

.txn-amount.credit {
    color: #16a34a;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

body.dark-mode .empty-state {
    color: #a0a0b0;
}

/* Bottom sheet overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}

.popup-overlay {
    align-items: center;
    justify-content: center;
}

.popup-overlay .popup {
    border-radius: 20px;
    transform: scale(0.95) translateY(8px);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s;
    opacity: 0;
    max-width: 480px;
    width: calc(100% - 32px);
    margin: 0;
}

.popup-overlay.open .popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Bootstrap modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 1 !important;
}

/* Add/Edit Transaction Modal (Bootstrap) */
.ft-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.ft-modal-content .modal-body {
    padding: 24px 20px 20px;
}

body.dark-mode .ft-modal-content {
    background: #1c1f2b;
}

.overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sheet {
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 20px 20px 36px;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 92vh;
    overflow-y: auto;
    margin-left: 8em;
    margin-right: 8em;
}

body.dark-mode .sheet {
    background: #1c1f2b;
}

.overlay.open .sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    margin: 0 auto 18px;
}

body.dark-mode .sheet-handle {
    background: #3a3f58;
}

.sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1e1e2e;
}

body.dark-mode .sheet-title {
    color: #e0e0f0;
}

/* Form elements */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .form-group label {
    color: #a0a0b0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #1e1e2e;
    outline: none;
    transition: border-color 0.15s;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #252840;
    border-color: #3a3f58;
    color: #e0e0f0;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #107d9c;
    background: #fff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    background: #2e3250;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

/* Type toggle */
.type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.type-btn {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    color: #6b7280;
}

body.dark-mode .type-btn {
    background: #252840;
    border-color: #3a3f58;
    color: #a0a0b0;
}

.type-btn.active-debit {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

body.dark-mode .type-btn.active-debit {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #ff6b6b;
}

.type-btn.active-credit {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #16a34a;
}

body.dark-mode .type-btn.active-credit {
    background: rgba(22, 163, 74, 0.2);
    border-color: #16a34a;
    color: #4ade80;
}

/* Sheet action buttons */
.sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.sht-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sht-btn:hover {
    transform: translateY(-2px);
}

.sht-btn:active {
    transform: scale(0.95);
    opacity: 0.85;
}

.sht-btn-primary {
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sht-btn-ghost {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

body.dark-mode .sht-btn-ghost {
    background: #252840;
    color: #e0e0f0;
    border-color: #3a3f58;
}

.sht-btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}

/* Settings info box */
.settings-info {
    background: #eff6ff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.83rem;
    color: #1d4ed8;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

body.dark-mode .settings-info {
    background: #1e2a4a;
    color: #93c5fd;
    border-color: #2d4a7a;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 0.83rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 32px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-undo-btn {
    background: none;
    border: none;
    color: #42c07e;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toast-undo-btn:hover {
    color: #5dd68f;
}

/* Footer hide (matches Buszy) */
.footer {
    display: none;
}

/* ===== Commitments List ===== */
.cmt-trigger-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cmt-trigger-btn:hover {
    border-color: #42c07e;
    color: #239690;
    background: #f0fdf4;
}

body.dark-mode .cmt-trigger-btn {
    background: #252840;
    border-color: #3a3f58;
    color: #e0e0f0;
}

body.dark-mode .cmt-trigger-btn:hover {
    border-color: #42c07e;
    color: #42c07e;
    background: rgba(66, 192, 126, 0.1);
}

.cmt-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #2b2b2b33;
    overflow: hidden;
}

body.dark-mode .cmt-list {
    background: #252840;
    border-color: #3a3f58;
}

.cmt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.cmt-item:last-child {
    border-bottom: none;
}

.cmt-item:hover {
    background: #f0f9ff;
}

body.dark-mode .cmt-item:hover {
    background: #2e3250;
}

.cmt-item:active {
    transform: scale(0.99);
    opacity: 0.9;
}

.cmt-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid #d1d5db;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: all 0.15s;
}

.cmt-item.paid .cmt-checkbox {
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    border-color: transparent;
    color: #fff;
}

body.dark-mode .cmt-checkbox {
    background: #1c1f2b;
    border-color: #4a5068;
}

body.dark-mode .cmt-item.paid .cmt-checkbox {
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    border-color: transparent;
}

.cmt-info {
    flex: 1;
    min-width: 0;
}

.cmt-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e1e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.cmt-item.paid .cmt-name {
    text-decoration: line-through;
    color: #9ca3af;
}

.cmt-cat {
    font-size: 0.73rem;
    color: #6b7280;
    margin-top: 2px;
}

body.dark-mode .cmt-name {
    color: #e0e0f0;
}

body.dark-mode .cmt-item.paid .cmt-name {
    color: #6b7280;
}

body.dark-mode .cmt-cat {
    color: #a0a0b0;
}

.cmt-next-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 20px;
}

.cmt-next-date.due {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.cmt-next-date.next {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

body.dark-mode .cmt-next-date.due {
    background: rgba(194, 65, 12, 0.15);
    color: #fb923c;
    border-color: rgba(194, 65, 12, 0.35);
}

body.dark-mode .cmt-next-date.next {
    background: rgba(21, 128, 61, 0.15);
    color: #4ade80;
    border-color: rgba(21, 128, 61, 0.35);
}

.cmt-amount {
    font-size: 0.92rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #dc2626;
}

body.dark-mode .cmt-amount {
    color: #ff6b6b;
}

.cmt-edit-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.cmt-edit-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

body.dark-mode .cmt-edit-btn {
    color: #6b7280;
}

body.dark-mode .cmt-edit-btn:hover {
    color: #e0e0f0;
    background: #2e3250;
}

.cmt-empty {
    text-align: center;
    padding: 28px 20px 24px;
    color: #6b7280;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cmt-empty i {
    font-size: 1.8rem;
    opacity: 0.4;
}

body.dark-mode .cmt-empty {
    color: #a0a0b0;
}

.cmt-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 2px;
    margin-bottom: 6px;
    margin-top: 14px;
}

.cmt-section-label:first-child {
    margin-top: 0;
}

body.dark-mode .cmt-section-label {
    color: #a0a0b0;
}

.cmt-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.83rem;
    color: #166534;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .cmt-summary {
    background: rgba(22, 163, 74, 0.15);
    border-color: #166534;
    color: #4ade80;
}

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav,
body.dark-mode .mobile-bottom-nav {
    display: none;
}

.mobile-bottom-nav li:active {
    transform: scale(0.88);
    transition: transform 0.1s ease;
    opacity: 0.8;
}

/* Mobile responsive */




/* ===== Account Switcher ===== */
.acct-switcher-wrap {
    position: relative;
    display: inline-block;
}

.acct-dropdown {
    position: fixed;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    padding: 10px;
    min-width: 260px;
    max-width: 340px;
    width: 90vw;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.acct-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Account dropdown overlay backdrop */
.acct-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s;
    cursor: pointer;
}

.acct-dropdown-overlay.open {
    opacity: 1;
    visibility: visible;
}

body.dark-mode .acct-dropdown-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.acct-dropdown-footer {
    padding-top: 8px;
    display: flex;
    justify-content: center;
}

body.dark-mode .acct-dropdown {
    background: #1e2236;
    border-color: #2e3455;
}

.acct-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffffb4;
    border: 1px solid #2b2b2b33;
    color: #111111;
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.15s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acct-switcher-btn:hover {
    background: #c7e3fb;
}

.acct-switcher-btn:active {
    transform: scale(0.95);
}

.acct-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 8px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
}

.acct-item:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.acct-item.active {
    border-color: #51a7be;
    background: #f0f9ff;
}

body.dark-mode .acct-switcher-btn {
    background-color: #393e53de;
    border: 1px solid #2b2b2b33;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .acct-item {
    background: #1e2236;
    border-color: #2e3455;
}

body.dark-mode .acct-item:hover {
    background: #52718d;
    border-color: #4a7fa0;
}

body.dark-mode .acct-item.active {
    border-color: #51a7be;
    background: #1a2440;
}

.acct-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(84deg, rgba(81, 167, 190, 1) 0%, rgba(53, 64, 117, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.acct-item-info {
    flex: 1;
    min-width: 0;
}

.acct-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .acct-item-name {
    color: #e8e8f8;
}

.acct-item-balance {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
}

body.dark-mode .acct-item-balance {
    color: #a0a0b0;
}

.acct-item-check {
    color: #16a34a;
    font-size: 1rem;
}

.acct-delete-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
}

.acct-delete-btn:hover {
    opacity: 1;
    background: #fef2f2;
}

body.dark-mode .acct-delete-btn:hover {
    background: #3b1010;
}

/* Page Header Section (matches Buszy) */
.page-header-section {
    padding-top: 7em;
    background: #ececea;
}

body.dark-mode .page-header-section {
    background: #121521 !important;
}

body.dark-mode .page-title {
    color: #e8e8f8;
}

.page-header-section hr {
    margin: 0;
    border-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode .page-header-section hr {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Breadcrumb – copied from Buszy */
li.breadcrumb-item a:hover,
body.dark-mode li.breadcrumb-item a:hover {
    padding: 10px;
    border-radius: 52px;
    margin-right: 0.3em;
    margin-left: 0.3em;
}

li.breadcrumb-item a,
body.dark-mode li.breadcrumb-item a {
    padding: 10px;
    border-radius: 52px;
    margin-right: 0.3em;
    margin-left: 0.3em;
}

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(40, 124, 81, 0.60) 0%, rgba(16, 80, 77, 0.60) 100%) !important;
    color: white;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    border-radius: 24px;
    margin: 1em;
    backdrop-filter: blur(25px);
    transition: bottom 0.3s ease;
}



/* Settings page specific styles */
.settings-page-section {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .settings-page-section {
    background-color: #1c1f2b;
    color: #fff !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.settings-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .settings-section-title {
    color: #e0e0f0;
}

.settings-form-group {
    margin-bottom: 16px;
}

.settings-form-group:last-child {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

body.dark-mode .settings-form-group label {
    color: #c0c0d0;
}

.settings-form-group input,
.settings-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
}

.settings-form-group input:focus,
.settings-form-group select:focus {
    outline: none;
    border-color: #51a7be;
    background: #fff;
}

body.dark-mode .settings-form-group input,
body.dark-mode .settings-form-group select {
    background: #252840;
    color: #e8e8f8;
    border-color: #3a3f58;
}

body.dark-mode .settings-form-group input:focus,
body.dark-mode .settings-form-group select:focus {
    border-color: #51a7be;
    background: #2a2f45;
}

.settings-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}



.settings-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 3em;
}

.settings-action-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.settings-action-buttons button:hover {
    transform: translateY(-2px);
}

.settings-action-buttons button:active {
    transform: scale(0.95);
    opacity: 0.85;
}

.settings-btn-primary {
    background: linear-gradient(90deg, #42c07e 0%, #239690 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

body.dark-mode .settings-btn-secondary {
    background: #252840;
    color: #e0e0f0;
    border-color: #3a3f58;
}

.settings-btn-danger {
    background: #ffc7c7;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}

.settings-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.83rem;
    color: #1d4ed8;
    font-weight: 500;
    margin-bottom: 12px;
}

body.dark-mode .settings-info-box {
    background: #1e2a4a;
    color: #93c5fd;
    border-color: #2d4a7a;
}

.import-export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}



.import-export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.import-export-btn:hover {
    background: #f3f4f6;
    border-color: #51a7be;
}

.import-export-btn:active {
    transform: scale(0.95);
}

body.dark-mode .import-export-btn {
    background: #252840;
    color: #e0e0f0;
    border-color: #3a3f58;
}

body.dark-mode .import-export-btn:hover {
    background: #2a2f45;
    border-color: #51a7be;
}

#fileInput {
    display: none;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 0.83rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 32px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.dark-mode .list-group-item {
    background-color: #1c1f2b;
    color: #fff !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    border-radius: 20px;
}

.list-group-item {
    transition-duration: 800ms;
    border-radius: 20px;
    margin-top: 1em;
    font-size: 20px;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.list-group-item:last-child {
    transition-duration: 800ms;
    border-radius: 20px;
    margin-bottom: 1em;
    font-size: 20px;
}

.lg-menu {
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: bolder;
}

.fa-chevron-down {
    color: #000;
}

body.dark-mode .fa-chevron-down {
    color: #fff;
}

/* ===== FIRST-TIME GUIDE ===== */
.guide-sheet {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 92dvh;
    overflow-y: auto;
}

body.dark-mode .guide-sheet {
    background: #1c1f2b;
}

.guide-steps-wrap {
    position: relative;
    min-height: 320px;
}

.guide-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    animation: guideFadeIn 0.28s ease;
}

.guide-step.active {
    display: flex;
}

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

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

.guide-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.guide-icon-green {
    background: #d1fae5;
    color: #059669;
}

.guide-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.guide-icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}

body.dark-mode .guide-icon-green {
    background: #064e3b;
    color: #34d399;
}

body.dark-mode .guide-icon-blue {
    background: #1e3a5f;
    color: #60a5fa;
}

body.dark-mode .guide-icon-teal {
    background: #134e4a;
    color: #2dd4bf;
}

.guide-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.guide-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

body.dark-mode .guide-step-title {
    color: #f3f4f6;
}

.guide-step-body {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    max-width: 380px;
}

body.dark-mode .guide-step-body {
    color: #9ca3af;
}

.guide-tip {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #166534;
    text-align: left;
    line-height: 1.5;
}

body.dark-mode .guide-tip {
    background: #052e16;
    border-color: #14532d;
    color: #86efac;
}

.guide-tip i {
    margin-right: 5px;
}

.guide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.25s, width 0.25s;
    display: inline-block;
}

.guide-dot.active {
    background: #42c07e;
    width: 22px;
    border-radius: 4px;
}

body.dark-mode .guide-dot {
    background: #374151;
}

body.dark-mode .guide-dot.active {
    background: #34d399;
}

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

.guide-skip-btn {
    margin-right: auto;
    color: #000 !important;
    border-color: transparent !important;
}

body.dark-mode .guide-skip-btn {
    color: #fff !important;
    border-color: #3a3f58 !important;
}

body.dark-mode .about-me-summ {
    background-color: transparent !important;
    transition: all 0.5s ease;
}

/* ===== MEDIA QUERIES ===== */

@media (min-width: 1200px) {
    .ft-greeting-text {
        font-size: 2rem;
    }
}

@media (max-width: 994px) {
    .ft-cover-wrapper {
        padding: 12px 16px;
    }

    .breadcrumb.breadcrumb-fixed {
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        width: auto;
        max-width: 90vw;
        z-index: 2000;
        background: rgba(253, 253, 253, 0.635);
        backdrop-filter: blur(25px);
        margin: 0;
        border-radius: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.08);
        padding: 0.75em 0em;
        display: flex;
        align-items: center;
        opacity: 0.97;
        transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    }

}

@media (max-width: 768px) {
    .month-tabs-container {
        flex: 0 1 auto;
        max-width: calc(100% - 16px);
    }
}

/* ===== Icon Rounding ===== */
/* Apply rounded corners to favicons and icons - respects device icon shape */
link[rel="icon"],
link[rel="apple-touch-icon"],
link[rel="shortcut icon"],
.favicon,
.app-icon {
    border-radius: 50%;
}

img[src*="icon"],
img[src*="favicon"] {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .ft-add-btn-top-right {
        position: static;
        align-self: flex-end;
        margin-bottom: 12px;
        margin-top: 0;
    }
}

@media (max-width: 994px) {
    #cv-ft {
        height: 40vh;
    }

    .ft-cover-wrapper {
        padding-top: 0px;
    }

    .ft-main {
        margin-top: -4rem;
    }

    .navbar,
    body.dark-mode .navbar {
        display: none !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        background: transparent;
        display: flex !important;
        justify-content: center;
        pointer-events: none;
        padding-bottom: env(safe-area-inset-bottom);
        will-change: transform;
        transform: translateZ(0);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .mobile-bottom-nav::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(120px + env(safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        pointer-events: none;
        -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
        mask-image: linear-gradient(to top, black 0%, transparent 100%);
    }

    body.dark-mode .mobile-bottom-nav::before {
        background: linear-gradient(to top, rgba(20, 24, 41, 1.7) 35%, rgba(31, 36, 59, 0) 100%);
    }

    .mobile-bottom-nav ul {
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        backdrop-filter: blur(40px) saturate(180%);
        border-radius: 50px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        display: flex;
        margin: 20px 20px;
        padding: 0 4px;
        width: 100%;
        max-width: 340px;
        justify-content: space-between;
        pointer-events: auto;
    }

    body.dark-mode .mobile-bottom-nav ul {
        background: rgba(31, 36, 59, 0.65);
        backdrop-filter: blur(40px) saturate(180%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-nav li {
        list-style: none;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 4px 2px;
        border-radius: 50px;
        transition: background 0.2s;
        cursor: pointer;
        position: relative;
    }

    .mobile-bottom-nav li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 0;
        width: 100%;
        text-decoration: none;
    }

    .mobile-bottom-nav li.active {
        background: linear-gradient(90deg, #42c07e 0%, #239690 100%)
    }

    .mobile-bottom-nav .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        color: #000;
    }

    .mobile-bottom-nav li.active .label {
        color: #fff;
        font-weight: 600;
    }

    .mobile-bottom-nav li.active .icon i,
    .mobile-bottom-nav li.active a .icon i {
        color: #fff;
    }

    .mobile-bottom-nav .label {
        font-size: 11px;
        color: #000;
        letter-spacing: 0.01em;
        transition: color 0.2s, font-weight 0.2s;
    }

    body.dark-mode .mobile-bottom-nav .label,
    body.dark-mode .mobile-bottom-nav .icon {
        color: #fff;
    }

    .sheet {
        margin-left: 2em;
        margin-right: 2em;
    }

    .acct-dropdown {
        top: 32% !important;
    }
}

@media (max-width: 545px) {

    #cv-ft,
    #cv-rp {
        height: 32vh;
    }

    .ft-main {
        margin-top: -2rem;
    }

    .balance-amount {
        font-size: 15px;
    }

    .acct-dropdown {
        top: 28% !important;
    }
}

@media (min-width: 995px) and (max-width: 1200px) {
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        background: transparent;
        display: flex !important;
        justify-content: center;
        pointer-events: none;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav ul {
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        backdrop-filter: blur(40px) saturate(180%);
        border-radius: 50px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        display: flex;
        margin: 20px 20px;
        padding: 0 4px;
        width: 100%;
        max-width: 340px;
        justify-content: space-between;
        pointer-events: auto;
    }

    body.dark-mode .mobile-bottom-nav ul {
        background: rgba(31, 36, 59, 0.65);
        backdrop-filter: blur(40px) saturate(180%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-nav li {
        list-style: none;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 4px 2px;
        border-radius: 50px;
        transition: background 0.2s;
        cursor: pointer;
        position: relative;
    }

    .mobile-bottom-nav li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 0;
        width: 100%;
        text-decoration: none;
    }

    .mobile-bottom-nav li.active {
        background: linear-gradient(90deg, #42c07e 0%, #239690 100%)
    }

    .mobile-bottom-nav .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        color: #000;
    }

    .mobile-bottom-nav li.active .label {
        color: #fff;
        font-weight: 600;
    }

    .mobile-bottom-nav li.active .icon i,
    .mobile-bottom-nav li.active a .icon i {
        color: #fff;
    }

    .mobile-bottom-nav .label {
        font-size: 11px;
        color: #000;
        letter-spacing: 0.01em;
        transition: color 0.2s, font-weight 0.2s;
    }

    body.dark-mode .mobile-bottom-nav .label,
    body.dark-mode .mobile-bottom-nav .icon {
        color: #fff;
    }

    .navbar {
        display: none !important;
    }

    .breadcrumb-fixed-placeholder,
    .breadcrumb.breadcrumb-fixed {
        display: none !important;
    }
}

@media (min-width: 1201px) {

    .breadcrumb-fixed-placeholder,
    .breadcrumb.breadcrumb-fixed {
        display: none !important;
    }

    .breadcrumb-wrapper .breadcrumb-desktop {
        display: block !important;
    }

    .page-header-section {
        padding-top: 7em;
    }

    .toast {
        bottom: 32px;
    }
}

@media (max-width: 994px) {
    .breadcrumb-wrapper .breadcrumb-desktop {
        display: none !important;
    }

    .page-header-section {
        padding-top: max(0em, calc(4.5em + env(safe-area-inset-top, 0)));
    }

    /* Floating breadcrumb only on mobile/tablet */
    .breadcrumb-fixed-placeholder {
        padding-top: 4em;
    }

    .breadcrumb.breadcrumb-fixed {
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        width: auto;
        max-width: 90vw;
        z-index: 2000;
        background: rgba(253, 253, 253, 0.635);
        backdrop-filter: blur(25px);
        margin: 0;
        border-radius: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.08);
        padding: 0.75em 0em;
        display: flex;
        align-items: center;
        opacity: 0.97;
        transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    }

    body.dark-mode .breadcrumb.breadcrumb-fixed {
        background: #1f243bc9;
        backdrop-filter: blur(25px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: max(20px, env(safe-area-inset-top, 20px));
        left: 20px;
        transform: none;
        width: auto;
        max-width: 90vw;
        z-index: 2000;
        margin: 0;
        border-radius: 50px;
        padding: 0.75em 0em;
        display: flex;
        align-items: center;
        opacity: 0.97;
        transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    }

    .breadcrumb.breadcrumb-fixed.at-top {
        top: env(safe-area-inset-top, 0);
        background: none;
        box-shadow: none;
        padding-top: 1.5em;
        padding-left: 0em;
    }

    body.dark-mode .breadcrumb.breadcrumb-fixed.at-top {
        top: env(safe-area-inset-top, 0);
        background: none;
        box-shadow: none;
        padding-top: 1.5em;
        padding-left: 0em;
    }
}

@media (max-width: 545px) {
    .settings-form-row {
        grid-template-columns: 1fr;
    }

    .acct-switcher-btn {
        font-size: 15px;
    }

    .settings-action-buttons {
        flex-direction: column-reverse;
    }
}

@media (max-width: 545px) {
    .import-export-buttons {
        grid-template-columns: 1fr;
    }
}