/* ========================================
   TICKER GRID WITH LOGOS AND COLORS
   ======================================== */

.ticker-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

@media (max-width: 640px) {
    .ticker-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

.ticker-item {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 0.65rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    transition: all 0.3s ease !important;
    min-height: 70px !important;
    gap: 0.5rem !important;
}

@media (hover: hover) {
    .ticker-item:hover {
        background: rgba(139, 92, 246, 0.1) !important;
        border-color: rgba(139, 92, 246, 0.3) !important;
        transform: translateY(-2px) !important;
    }
}

.ticker-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.ticker-logo {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

.ticker-symbol {
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.ticker-price-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.ticker-price {
    font-weight: 600 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.ticker-direction {
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* COLOR OVERRIDES FOR GREEN/RED ARROWS */
.ticker-item.ticker-up .ticker-price,
.ticker-item.ticker-up .ticker-direction {
    color: #10b981 !important; /* GREEN */
}

.ticker-item.ticker-down .ticker-price,
.ticker-item.ticker-down .ticker-direction {
    color: #ef4444 !important; /* RED */
}