/* ── Плавная смена темы ── */
*, *::before, *::after {
    transition:
        background-color 0.3s ease,
        border-color     0.3s ease,
        color            0.2s ease,
        box-shadow       0.3s ease;
}

.navbar-collapse,
.collapse,
.collapsing,
canvas {
    transition: none !important;
}

/* ── Плавный вход страницы ── */
@keyframes page-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-wrapper {
    animation: page-in 0.22s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .page-wrapper { animation: none; }
}

/* ── View Transitions ── */
@keyframes vt-slide-in  { from { opacity: 0; transform: translateY(8px); } }
@keyframes vt-slide-out { to   { opacity: 0; transform: translateY(-8px); } }

::view-transition-old(root) { animation: 0.18s ease vt-slide-out both; }
::view-transition-new(root) { animation: 0.22s ease vt-slide-in  both; }

/* ── Базовые стили ── */
body {
    font-size: 0.92rem;
    background-color: var(--page-bg, #fdf4ef);
}

/* Убираем 300ms задержку на тап на всех кликабельных элементах */
a, button, [role="button"], [role="link"], label, select, input[type="submit"], input[type="button"] {
    touch-action: manipulation;
}

.navbar-brand {
    letter-spacing: .5px;
}

.card {
    border-radius: 12px;
    border-color: var(--border-clr, #f0d9cc);
}

.list-group-item:first-child {
    border-top: none;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--bs-secondary-color);
}

.progress {
    border-radius: 4px;
}

/* ══════════════════════════════════════════════
   SHARED ACCOUNT BANNER
══════════════════════════════════════════════ */
.shared-banner {
    background: linear-gradient(90deg, #f5e8e8, #faeaea);
    border-bottom: 1.5px solid rgba(153, 27, 27, 0.2);
    color: #7f1d1d;
    font-size: .86rem;
    min-height: 46px;   /* same height with and without the close button */
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    overflow-x: auto;
}

.shared-banner .banner-switcher {
    display: flex;
    align-items: center;
    border: 1px solid rgba(153, 27, 27, 0.3);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.shared-banner .banner-switcher-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(127, 29, 29, 0.75);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.shared-banner .banner-switcher-active:hover { background: rgba(127, 29, 29, 0.9); color: #fff; }

.shared-banner .banner-switcher-inactive {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    font-size: .8rem;
    color: #7f1d1d;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
    border-left: 1px solid rgba(153, 27, 27, 0.2);
}
.shared-banner .banner-switcher-inactive:hover { background: rgba(153, 27, 27, 0.08); }
.shared-banner .banner-switcher > :first-child { border-left: 0; }

.shared-banner .banner-close {
    background: none;
    border: none;
    color: rgba(127, 29, 29, 0.4);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 6px 8px;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.shared-banner .banner-close:hover { background: rgba(153, 27, 27, 0.08); color: #7f1d1d; }
.shared-banner .banner-close .bi { font-size: .95rem; }

/* Свернутое состояние: полоска плавно уезжает под шапку, остаётся ярлычок */
.shared-banner-tab[hidden] { display: none; }

.shared-banner { max-height: 64px; }
.shared-banner.is-animated,
.shared-banner-tab.is-animated {
    transition: max-height .28s ease, min-height .28s ease, padding .28s ease,
                opacity .2s ease, border-color .28s ease;
}
.shared-banner.is-collapsed {
    max-height: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom-color: transparent;
    border-bottom-width: 0;
}
.shared-banner-tab.is-collapsed {
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-width: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .shared-banner.is-animated,
    .shared-banner-tab.is-animated { transition: none; }
}

.shared-banner-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 1.25rem 0 auto;
    padding: 3px 12px 4px;
    min-height: 28px;
    max-height: 40px;
    overflow: hidden;
    font-size: .78rem;
    color: #7f1d1d;
    background: linear-gradient(90deg, #f5e8e8, #faeaea);
    border: 1.5px solid rgba(153, 27, 27, 0.2);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    transition: background .15s;
}
.shared-banner-tab:hover { background: #f0dcdc; }
.shared-banner-tab span { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

[data-bs-theme="dark"] .shared-banner {
    background: linear-gradient(90deg, #120a1e, #160d24);
    border-bottom: 1.5px solid rgba(192, 38, 211, 0.35);
    color: #e879f9;
    box-shadow: 0 1px 12px rgba(192, 38, 211, 0.15);
}
[data-bs-theme="dark"] .shared-banner .banner-switcher { border-color: rgba(192,38,211,.4); }
[data-bs-theme="dark"] .shared-banner .banner-switcher-active { background: rgba(192,38,211,.5); color: #fff; }
[data-bs-theme="dark"] .shared-banner .banner-switcher-active:hover { background: rgba(192,38,211,.7); color: #fff; }
[data-bs-theme="dark"] .shared-banner .banner-switcher-inactive { color: #e879f9; border-left-color: rgba(192,38,211,.25); }
[data-bs-theme="dark"] .shared-banner .banner-switcher-inactive:hover { background: rgba(192,38,211,.12); }
[data-bs-theme="dark"] .shared-banner .banner-close { color: rgba(232,121,249,.4); }
[data-bs-theme="dark"] .shared-banner .banner-close:hover { background: rgba(192,38,211,.15); color: #e879f9; }
[data-bs-theme="dark"] .shared-banner-tab { background: #160d24; color: #e879f9; border-color: rgba(192,38,211,.35); }
[data-bs-theme="dark"] .shared-banner-tab:hover { background: #20123a; }

/* ══════════════════════════════════════════════
   МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ
══════════════════════════════════════════════ */
.bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    /* Отступ снизу под нижнюю панель */
    body {
        padding-bottom: 72px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: var(--bs-body-bg);
        border-top: 1px solid var(--bs-border-color);
        box-shadow: 0 -2px 12px rgba(0,0,0,.08);
        height: 60px;
        align-items: stretch;
    }

    .bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: .75rem;
        color: var(--bs-secondary-color);
        text-decoration: none;
        padding: 6px 4px;
        border-radius: 0;
        transition: color 0.15s, background 0.15s, transform 0.1s;
    }

    .bottom-nav a:active,
    .bottom-more-btn:active {
        transform: scale(0.92);
        opacity: 0.75;
    }

    .bottom-nav a i {
        font-size: 1.3rem;
        transition: none;
    }

    .bottom-nav a.active,
    .bottom-nav a:hover {
        color: var(--bs-primary);
        background: var(--bs-primary-bg-subtle);
    }

    /* Центральная кнопка «+» в нижней навигации */
    .bottom-nav .dropup {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .bottom-nav .dropup .add-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, var(--bs-primary), #00b4d8);
        color: #fff;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(67,97,238,.35);
        transition: transform 0.15s, box-shadow 0.15s;
        padding: 0;
        cursor: pointer;
    }

    .bottom-nav .dropup .add-btn:active {
        transform: scale(0.92);
        box-shadow: 0 2px 8px rgba(67,97,238,.25);
    }

    /* Кнопка «Ещё» в нижней навигации */
    .bottom-more-dropup {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .bottom-more-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: .75rem;
        color: var(--bs-secondary-color);
        background: none;
        border: none;
        padding: 6px 4px;
        cursor: pointer;
        transition: color 0.15s;
        width: 100%;
        height: 60px;
    }
    .bottom-more-btn i { font-size: 1.3rem; }
    .bottom-more-btn.active,
    .bottom-more-btn:hover { color: var(--bs-primary); }
    .bottom-more-menu {
        min-width: 180px;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        z-index: 1060 !important;
        margin-bottom: 8px;
    }

    /* Скрываем десктопный navbar на мобильном */
    .navbar .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: none !important;
    }

    /* Компактный navbar на мобильном: только лого + переключатель темы */
    .navbar .navbar-brand {
        font-size: 1rem;
    }

    .navbar-mobile-right {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    /* Контент не обрезается */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Карточки плотнее */
    .card-body {
        padding: 1rem;
    }

}

@media (min-width: 992px) {
    .navbar-mobile-right { display: none !important; }
}

/* (мобильное/десктопное переключение через Bootstrap d-none d-lg-block / d-lg-none) */

/* ══════════════════════════════════════════
   DARK MODE — BOTTOM NAV NEON
══════════════════════════════════════════ */
[data-bs-theme="dark"] .bottom-nav {
    background: #080818;
    border-top: 1px solid rgba(67, 97, 238, 0.3);
    box-shadow: 0 -2px 20px rgba(67, 97, 238, 0.15);
}

[data-bs-theme="dark"] .bottom-nav a.active,
[data-bs-theme="dark"] .bottom-nav a:hover {
    color: #00ccee !important;
    background: rgba(67, 97, 238, 0.12);
}

[data-bs-theme="dark"] .bottom-nav .dropup .add-btn {
    background: linear-gradient(135deg, #4361ee, #00b4d8);
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.5);
}

/* ── Карточки записей (мобильный список) ── */
.record-card {
    border-radius: 10px;
    border: 1px solid var(--bs-border-color);
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bs-body-bg);
}

.record-card:last-child {
    margin-bottom: 0;
}

/* ── Фильтры на мобильном ── */
@media (max-width: 575.98px) {
    .filter-form select,
    .filter-form input {
        width: 100% !important;
    }

    .filter-form {
        flex-direction: column;
    }

    /* Три карточки обзора — вертикально */
    .summary-cards .col-md-4 {
        margin-bottom: 0;
    }
}

/* ── Чуть больше touch-targets ── */
@media (max-width: 991.98px) {
    .btn {
        min-height: 40px;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* предотвращает zoom на iOS */
        min-height: 44px;
    }

    .list-group-item {
        padding: 12px 16px;
    }
}

/* ══════════════════════════════════════════
   БЛОК СТАТИСТИКИ — МИНИМАЛИСТИЧНЫЙ
══════════════════════════════════════════ */

/* Акцентный цвет: кораловый в светлой, синий в тёмной */
:root {
    --stat-accent:        #e8736b;
    --stat-accent-bg:     rgba(232,115,107,.08);
    --stat-accent-shadow: rgba(232,115,107,.28);
}
[data-bs-theme="dark"] {
    --stat-accent:        #4361ee;
    --stat-accent-bg:     rgba(67,97,238,.1);
    --stat-accent-shadow: rgba(67,97,238,.38);
}

/* Переключатель режима — liquid pill */
.stat-mode-switch {
    display: flex;
    gap: 0;
    background: var(--bs-border-color);
    border-radius: 20px;
    padding: 2px;
    position: relative;
}

/* Скользящая пилюля */
.stat-mode-switch .switch-pill {
    position: absolute;
    top: 2px;
    height: calc(100% - 4px);
    background: var(--stat-accent);
    border-radius: 18px;
    pointer-events: none;
    /* left + width анимируются с разным easing → эффект жидкости */
    transition: left   0.35s cubic-bezier(0.34, 1.5, 0.64, 1),
                width  0.35s cubic-bezier(0.25, 1.2, 0.5,  1);
}

.stat-mode-switch button {
    border: none;
    background: transparent;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 18px;
    color: var(--bs-secondary-color);
    cursor: pointer;
    white-space: nowrap;
    position: relative; /* поверх пилюли */
    z-index: 1;
    transition: color 0.2s ease;
}
.stat-mode-switch button.on {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .stat-mode-switch .switch-pill { transition: none; }
}

/* Заголовок секции */
.stat-sec-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Строка категории */
.cat-stat-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bs-border-color);
    gap: 10px;
}
.cat-stat-row:last-child { border-bottom: none; }
.cat-stat-dot    { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cat-stat-name   { flex: 1; font-size: 0.88rem; }
.cat-stat-amount { font-size: 0.88rem; font-weight: 600; margin-right: 8px; }

/* % бейдж */
.delta-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 52px;
    text-align: center;
    display: inline-block;
}
.delta-up   { background: rgba(220,53,69,.1);  color: #dc3545; }
.delta-down { background: rgba(25,135,84,.1);  color: #198754; }
.delta-zero { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.delta-new  { background: rgba(255,193,7,.1);  color: #ffc107; }

[data-bs-theme="dark"] .delta-up   { background: rgba(255,107,129,.12); color: #ff6b81; }
[data-bs-theme="dark"] .delta-down { background: rgba(0,255,184,.1);    color: #00ffb8; }

/* Итоговая строка */
.stat-total-row {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bs-border-color);
    gap: 10px;
}
.stat-total-label { flex: 1; font-size: 0.8rem; color: var(--bs-secondary-color); }
.stat-total-amt   { font-size: 0.92rem; font-weight: 700; }

/* ── Карточки месяцев ── */
.month-pills-row { display: flex; gap: 8px; margin-top: 4px; }

@keyframes pillIn {
    from { opacity: 0; transform: translateY(22px) scale(0.93); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.month-pill {
    flex: 1;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    opacity: 0;
    cursor: default;
}

/* Hover включается только после окончания анимации появления */
.month-pill.ready {
    transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1),
                box-shadow  0.22s ease,
                border-color 0.2s ease;
}
.month-pill[data-year].ready:hover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 12px 28px var(--stat-accent-shadow);
    border-color: var(--stat-accent);
}

/* Иконка перехода при наведении на кликабельную карточку */
.month-pill[data-year] .mp-name::after {
    content: ' ↗';
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.month-pill[data-year].ready:hover .mp-name::after {
    opacity: 0.6;
}

.month-pill.is-current {
    border-color: var(--stat-accent);
    background: var(--stat-accent-bg);
}
[data-bs-theme="dark"] .month-pill.is-current {
    box-shadow: 0 0 14px rgba(67,97,238,.2);
}

.month-pill .mp-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    margin-bottom: 5px;
}
.month-pill.is-current .mp-name { color: var(--stat-accent); }
.month-pill .mp-inc   { font-size: 0.82rem; font-weight: 600; color: #198754; }
.month-pill .mp-exp   { font-size: 0.82rem; font-weight: 600; color: #dc3545; }
.month-pill .mp-delta { font-size: 0.75rem; color: var(--bs-secondary-color); margin-top: 4px; }

[data-bs-theme="dark"] .month-pill .mp-inc { color: #00ffb8; }
[data-bs-theme="dark"] .month-pill .mp-exp { color: #ff6b81; }

/* Класс анимации появления */
.month-pill.animating {
    animation: pillIn 0.45s cubic-bezier(0.34,1.2,0.64,1) both;
}
.month-pill.animating:nth-child(1) { animation-delay: 0.05s; }
.month-pill.animating:nth-child(2) { animation-delay: 0.17s; }
.month-pill.animating:nth-child(3) { animation-delay: 0.29s; }

/* Мобильная адаптация */
@media (max-width: 575.98px) {
    .month-pills-row { gap: 6px; }
    .month-pill      { padding: 8px 8px; }
    .month-pill .mp-inc,
    .month-pill .mp-exp { font-size: 0.74rem; }
    .cat-stat-amount    { min-width: 70px; }
}

/* Шеврон коллапса */
.stat-chevron {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    transition: transform 0.25s ease;
}
.stat-chevron.is-collapsed {
    transform: rotate(-90deg);
}

/* Коллапс — CSS grid trick (плавная высота без JS-измерений) */
.stat-collapsible {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.28s ease-out;
}
.stat-collapsible.is-collapsed {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s ease-in;
}
.stat-collapsible-inner {
    /* overflow: visible — чтобы hover-эффект на пилюлях не обрезался.
       Переключаем на hidden только во время схлопывания через delay-трюк. */
    overflow: visible;
    min-height: 0;
    transition: overflow 0s 0.28s; /* восстанавливаем visible после окончания анимации раскрытия */
}
.stat-collapsible.is-collapsed .stat-collapsible-inner {
    overflow: hidden;             /* скрываем контент при схлопывании */
    transition: overflow 0s 0s;  /* переключаем немедленно */
}

/* ── Desktop navbar: icon above text, both centered ─────────── */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-item:not(.dropdown) .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        font-size: 0.7rem;
        padding: 4px 8px;
        line-height: 1;
        min-width: 52px;
    }
    .navbar-expand-lg .navbar-nav .nav-item:not(.dropdown) .nav-link .bi {
        font-size: 1.15rem;
        line-height: 1;
    }
}

/* ── Navbar «Добавить» — стиль кнопки ──────────────────────── */
.navbar .pulse-btn {
    animation: none;
    transition: background 0.18s;
}
.navbar .pulse-btn:hover {
    background: rgba(255,255,255,.32) !important;
}
.navbar .pulse-btn:focus,
.navbar .pulse-btn:focus-visible,
.navbar .pulse-btn.show {
    box-shadow: none !important;
    outline: none;
    background: rgba(255,255,255,.2) !important;
}

/* ── Dropdown items: отключить hover-ghost на touch-устройствах */
@media (hover: none) and (pointer: coarse) {
    .dropdown-menu .dropdown-item:hover {
        color: var(--bs-body-color);
        background-color: transparent;
    }
}

/* ── Dropdown animation ─────────────────────────────────────── */
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dropdown-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.dropdown-menu.show {
    animation: dropdown-in 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.dropdown-menu.hiding {
    animation: dropdown-out 0.18s ease-in forwards;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .month-pill.animating          { animation: none; opacity: 1; }
    .month-pill.ready:hover        { transform: none; }
    .stat-collapsible,
    .stat-collapsible.is-collapsed { transition: none; }
    .stat-chevron                  { transition: none; }
    .dropdown-menu.show            { animation: none; }
}

/* Budget alert row highlights */
.alert-warning-row  { background: rgba(255, 193, 7, 0.08) !important; }
.alert-exceeded-row { background: rgba(220, 53, 69, 0.08) !important; }
[data-bs-theme="dark"] .alert-warning-row  { background: rgba(255, 193, 7, 0.10) !important; }
[data-bs-theme="dark"] .alert-exceeded-row { background: rgba(220, 53, 69, 0.10) !important; }

/* ── Month filter pill ─────────────────────────────────────────────── */
.month-filter-pill {
    background: var(--bs-body-bg);
    border: 1.5px solid var(--bs-border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
    display: inline-flex;
    align-items: center;
}
.month-filter-pill:hover {
    border-color: #0d6efd66;
    box-shadow: 0 2px 12px rgba(67,97,238,.12);
}
.month-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.month-nav-btn:hover {
    color: #0d6efd;
    background: rgba(13,110,253,.07);
}
.month-select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: .875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    padding: 6px 4px 6px 8px;
    cursor: pointer;
    appearance: auto;
    min-width: 110px;
}
.year-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: .875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    width: 58px;
    padding: 6px 4px;
    text-align: center;
    -moz-appearance: textfield;
}
.year-input::-webkit-outer-spin-button,
.year-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Debt inner cards hover (same pattern as savings-dash-card) ─ */
.debt-dash-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.debt-dash-card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 6px 20px rgba(0,0,0,.13) !important;
}
[data-bs-theme="dark"] .debt-dash-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.4) !important;
}

/* ── Flash-уведомления: slide-down при появлении ─────────────── */
@keyframes alert-slide-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.js-auto-dismiss {
    animation: alert-slide-down 0.25s ease both;
}

/* ── Чат: пузырьки исходящих сообщений в тёмной теме ─────────── */
[data-bs-theme="dark"] .chat-bubble-out {
    background: linear-gradient(135deg, #4361ee, #7209b7) !important;
    box-shadow: 0 2px 12px rgba(67, 97, 238, 0.35);
}
