.crypto-green {
    color: #16a34a
}

.crypto-red {
    color: #dc2626
}

.cgl .crypto-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    padding: 12px
}

.cgl .crypto-head {
    display: flex;
    align-items: center;
    gap: 10px
}

.cgl .logo {
    width: 28px;
    height: 28px;
    border-radius: 50%
}

.cgl .title {
    font-size: 14px
}

.cgl .price {
    margin-left: auto;
    font-weight: 600
}

.cgl .crypto-charts {
    margin-top: 8px;
    display: grid;
    gap: 8px
}

.cgl .crypto-price-chart,
.cgl .crypto-spark-24h {
    line-height: 0;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 6px;
    padding: 4px;
    background: #fff
}

.cgl .crypto-metrics {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555
}

/* Skeleton Loader Styles */
.cgl-skeleton .skeleton-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite
}

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

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

.cgl-skeleton .skeleton-text {
    display: inline-block;
    border-radius: 4px
}

.cgl-skeleton .crypto-icon.skeleton-pulse {
    width: 34px;
    height: 34px;
    border-radius: 50%
}

.cgl-skeleton .skeleton-item {
    opacity: .7;
    width: 160px;
    /* Match min-width of .crypto-item to prevent CLS */
}


/* Smooth fade-in when skeleton is replaced with real data */
.cgl--ticker .ticker-wrapper {
    animation: cgl-ticker-fadeIn 0.3s ease-in-out, cgl-ticker-moveLeft 80s linear 0.3s infinite;
}

/* Disable animation on skeleton to prevent CLS */
.cgl-skeleton.cgl--ticker .ticker-wrapper {
    animation: none !important;
}

@keyframes cgl-ticker-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}