/* OrixAitrade - crypto market ticker (home banner) */
.crypto-ticker {
    --ct-bg: #060c1f;
    --ct-border: #1fb3ff;
    --ct-glow: rgba(31, 179, 255, .45);
    --ct-divider: rgba(31, 179, 255, .18);
    --ct-text: #ffffff;
    --ct-muted: #9fb3d1;
    --ct-up: #22c55e;
    --ct-down: #ef4444;

    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1300px, calc(100vw - 32px));
    margin: 32px 0 36px;
    display: flex;
    align-items: center;
    min-height: 82px;
    background: linear-gradient(180deg, rgba(10, 22, 52, .92), rgba(5, 10, 28, .95));
    background-color: var(--ct-bg);
    border: 1px solid var(--ct-border);
    border-radius: 18px;
    box-shadow: 0 0 18px var(--ct-glow), inset 0 0 14px rgba(31, 179, 255, .12);
    text-align: left;
}

.crypto-ticker__viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.crypto-ticker__viewport::-webkit-scrollbar { display: none; }
.crypto-ticker__viewport:focus-visible { outline: 2px solid var(--ct-border); outline-offset: -2px; border-radius: 12px; }

.crypto-ticker__track {
    display: flex;
    width: max-content;
}

.crypto-ticker__group {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crypto-ticker__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    border-right: 1px solid var(--ct-divider);
    white-space: nowrap;
}

.crypto-ticker__logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
}

.crypto-ticker__info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.crypto-ticker__symbol {
    color: var(--ct-text);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
}

.crypto-ticker__quote {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.crypto-ticker__price {
    color: var(--ct-text);
    font-size: 15px;
    font-weight: 500;
}

.crypto-ticker__change {
    font-size: 13px;
    font-weight: 600;
}
.crypto-ticker__change.is-up { color: var(--ct-up); }
.crypto-ticker__change.is-down { color: var(--ct-down); }
.crypto-ticker__change.is-up::after { content: " \25B2"; font-size: 10px; }
.crypto-ticker__change.is-down::after { content: " \25BC"; font-size: 10px; }

.crypto-ticker__nav {
    flex-shrink: 0;
    width: 40px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ct-border);
    font-size: 26px;
    cursor: pointer;
    transition: color .2s;
}
.crypto-ticker__nav:hover { color: #ffffff; }
.crypto-ticker__nav:focus-visible { outline: 2px solid var(--ct-border); border-radius: 10px; }

.crypto-ticker__status {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 6px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--ct-muted);
}
.crypto-ticker__status:empty { display: none; }

@media (max-width: 991px) {
    .crypto-ticker { min-height: 74px; }
    .crypto-ticker__item { padding: 10px 20px; gap: 10px; }
    .crypto-ticker__logo { width: 34px; height: 34px; }
}

@media (max-width: 575px) {
    .crypto-ticker { min-height: 64px; margin: 24px 0 30px; border-radius: 15px; }
    .crypto-ticker__nav { display: none; }
    .crypto-ticker__item { padding: 9px 16px; gap: 9px; }
    .crypto-ticker__logo { width: 28px; height: 28px; }
    .crypto-ticker__symbol, .crypto-ticker__price { font-size: 13px; }
    .crypto-ticker__change { font-size: 12px; }
}
