/* --- Expense Date Divider --- */
        .expense-date-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin: 12px 0 6px 0;
            text-align: center;
        }

        .expense-date-divider:first-child {
            margin-top: 2px;
        }

        .expense-date-divider::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            height: 1px;
            background: var(--glass-border);
            z-index: 1;
        }

        .expense-date-divider span {
            position: relative;
            z-index: 2;
            background: var(--bg-color);
            padding: 3px 12px;
            border-radius: var(--radius-full);
            font-size: 11.5px;
            font-weight: 700;
            color: var(--hint-color);
            border: 1px solid var(--glass-border);
            letter-spacing: 0.2px;
        }

        /* ================================================
           Fix #3: Skeleton Loading State
           ================================================ */
        .skeleton {
            background: linear-gradient(90deg,
                    var(--bg-sec) 25%,
                    rgba(255, 255, 255, 0.06) 50%,
                    var(--bg-sec) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite linear;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-card {
            height: 96px;
            margin-bottom: 12px;
            border-radius: var(--radius-lg);
        }

        /* ================================================
           Fix #2: Toast / Snackbar (замена alert)
           ================================================ */
        #toast-container {
            position: fixed;
            bottom: calc(90px + var(--safe-bottom));
            left: 50%;
            transform: translateX(-50%);
            z-index: 99999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            pointer-events: none;
            width: calc(100% - 32px);
            max-width: 440px;
        }

        .toast {
            background: #1e3a52;
            color: var(--text-color);
            padding: 12px 16px;
            border-radius: 12px;
            font-size: var(--text-sm);
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
            border: 1px solid var(--glass-border);
            animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
            text-align: center;
            width: 100%;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .toast.error {
            border-left: 3px solid var(--danger);
            background: rgba(244, 63, 94, 0.15);
        }

        .toast.success {
            border-left: 3px solid var(--success);
            background: rgba(16, 185, 129, 0.12);
        }

        .toast.info {
            border-left: 3px solid var(--primary);
        }

        @keyframes toastIn {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.95);
            }

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

        /* ================================================
           Fix #4: Кнопка загрузки — spinner
           ================================================ */
        .btn-spin {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: btnSpin 0.7s linear infinite;
            vertical-align: middle;
            flex-shrink: 0;
        }

        @keyframes btnSpin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ================================================
           Fix #8: Hover-состояния (только мышь/трекпад)
           ================================================ */
        @media (hover: hover) {
            .group-card:hover {
                transform: translateY(-2px);
                border-color: rgba(56, 189, 248, 0.2);
                background-color: rgba(255, 255, 255, 0.02);
            }

            .icon-btn:hover {
                background: rgba(56, 189, 248, 0.12);
                border-color: rgba(56, 189, 248, 0.3);
                color: var(--primary);
            }

            .tab-btn:hover:not(.active) {
                color: var(--text-color);
                background: rgba(255, 255, 255, 0.04);
            }

            .floating-menu-item:hover {
                background: var(--glass-bg);
            }

            .main-button:hover {
                filter: brightness(1.08);
                transform: translateY(-1px);
                box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.5);
            }

            .btn-primary:hover {
                filter: brightness(1.1);
            }

            .participant-item:hover {
                border-color: rgba(56, 189, 248, 0.15);
            }
        }

        /* Fix #9: iOS scroll в скроллируемых областях шторки */
        #category-list,
        #claim-participants-list {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
