/* Dashboard — balance stat card & animated deposit button */

.site-balance-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-balance-stat-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgb(148 163 184);
}

.site-balance-stat-hint-link {
    font-weight: 600;
    color: rgb(226 232 240);
    text-decoration: underline;
    text-decoration-color: rgb(100 116 139 / 0.5);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-balance-stat-hint-link:hover {
    color: rgb(110 231 183);
    text-decoration-color: rgb(52 211 153 / 0.5);
}

.site-balance-stat-deposit-btn {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(52 211 153 / 0.5);
    background: linear-gradient(135deg, rgb(6 95 70 / 0.85), rgb(16 185 129 / 0.65));
    color: rgb(236 253 245);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: site-balance-deposit-glow 2.8s ease-in-out infinite;
}

.site-balance-stat-deposit-btn-shimmer {
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgb(255 255 255 / 0.1) 38%,
        rgb(167 243 208 / 0.28) 50%,
        rgb(255 255 255 / 0.1) 62%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: site-balance-deposit-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

.site-balance-stat-deposit-btn-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
}

.site-balance-stat-deposit-btn-icon {
    display: inline-flex;
    font-size: 1rem;
    line-height: 1;
    animation: site-balance-deposit-icon-bounce 2.5s ease-in-out infinite;
}

.site-balance-stat-deposit-btn:hover {
    transform: translateY(-2px);
    border-color: rgb(110 231 183 / 0.75);
    color: rgb(255 255 255);
    box-shadow: 0 10px 28px -6px rgb(16 185 129 / 0.55);
}

@keyframes site-balance-deposit-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgb(16 185 129 / 0.3);
    }
    50% {
        box-shadow: 0 0 22px 3px rgb(16 185 129 / 0.28);
    }
}

@keyframes site-balance-deposit-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes site-balance-deposit-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

html[data-theme='light'] .site-balance-stat-hint {
    color: rgb(71 85 105);
}

html[data-theme='light'] .site-balance-stat-hint-link {
    color: rgb(15 23 42);
    text-decoration-color: rgb(203 213 225);
}

html[data-theme='light'] .site-balance-stat-hint-link:hover {
    color: rgb(5 150 105);
    text-decoration-color: rgb(16 185 129 / 0.45);
}

html[data-theme='light'] .site-balance-stat-deposit-btn {
    border-color: rgb(16 185 129 / 0.55);
    background: linear-gradient(135deg, rgb(209 250 229), rgb(167 243 208));
    color: rgb(6 78 59);
}

html[data-theme='light'] .site-balance-stat-deposit-btn:hover {
    color: rgb(4 120 87);
    border-color: rgb(5 150 105 / 0.65);
    box-shadow: 0 8px 24px -6px rgb(16 185 129 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .site-balance-stat-deposit-btn,
    .site-balance-stat-deposit-btn-shimmer,
    .site-balance-stat-deposit-btn-icon {
        animation: none !important;
    }

    .site-balance-stat-deposit-btn:hover {
        transform: none;
    }
}

