/* === MARKET TICKER === */
.market-ticker {
    background: linear-gradient(135deg, var(--preto) 0%, #1a1c28 100%);
    color: white;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--dourado);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.ticker-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: background 0.3s;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ticker-label {
    font-weight: 700;
    color: var(--dourado);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ticker-value {
    font-weight: 600;
    color: white;
    font-family: 'Courier New', monospace;
}

.ticker-change {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.ticker-change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
}

.ticker-change.negative {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}

.ticker-change.neutral {
    color: #888;
}

.ticker-update {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.6;
    font-style: italic;
}

/* Pulse animation for updating */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.ticker-update.updating {
    animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .market-ticker {
        font-size: 11px;
    }

    .ticker-items {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .ticker-item {
        padding: 4px 10px;
        gap: 5px;
        flex-shrink: 0;
    }

    .ticker-update {
        margin-left: 0;
        min-width: 100px;
    }
}