.card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.main-card {
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.btn-header {
    padding: 11px 24px;
    font-size: 0.9rem;
    line-height: 1;
}

.btn:active {
    opacity: 0.85;
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-block {
    width: 100%;
    margin-top: 0;
}

.skeleton-text {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
    min-height: 1em;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.skeleton-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    z-index: 1;
}

.skeleton-circle {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    position: relative;
    color: transparent !important;
    overflow: hidden;
}

.skeleton-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: inherit;
    z-index: 1;
}

.skeleton-operation {
    opacity: 0.7;
}

.skeleton-operation .operation-type,
.skeleton-operation .operation-date,
.skeleton-operation .operation-amount {
    color: transparent;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -300% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

.favorite-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.favorite-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.favorite-toast:not(.show) {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.favorite-toast-content {
    background: rgba(74, 10, 10, 0.96);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(230, 200, 140, 0.35);
    border-radius: 24px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    max-width: calc(100vw - 32px);
    position: relative;
    overflow: hidden;
    outline: none !important;
    outline-offset: 0 !important;
    -webkit-focus-ring-color: transparent !important;
}

.favorite-toast-content:focus,
.favorite-toast-content:focus-visible,
.favorite-toast-content:focus-within {
    outline: none !important;
    outline-offset: 0 !important;
}

.favorite-toast *,
.favorite-toast *:focus,
.favorite-toast *:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-focus-ring-color: transparent !important;
}

.favorite-toast-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(230, 200, 140, 0.4) 20%,
        rgba(230, 200, 140, 0.4) 80%,
        transparent
    );
    opacity: 0.6;
}

.favorite-toast-icon {
    font-size: 28px;
    color: var(--accent);
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 28;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(15px) scale(0.6);
    transition: opacity 0.3s ease 0.1s,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.favorite-toast.show .favorite-toast-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.4s ease 0.1s,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.favorite-toast-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 0.3s ease 0s;
}

.favorite-toast.show .favorite-toast-text {
    opacity: 1;
    transition: opacity 0.4s ease 0.25s;
}

@media (max-width: 768px) {
    .favorite-toast {
        bottom: 20px;
        left: 16px;
        right: 16px;
        transform: translateY(120px);
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .favorite-toast.show {
        transform: translateY(0);
    }

    .favorite-toast-content {
        width: 100%;
        padding: 18px 24px;
        min-width: auto;
        border-radius: 20px;
    }

    .favorite-toast-icon {
        font-size: 24px;
        font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
    }

    .favorite-toast-text {
        font-size: 0.95rem;
        white-space: normal;
    }
}

