.currency-list {
    max-width: 100%;
    box-sizing: border-box;
}

.currency-list li {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    max-width: 95%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.currency-list li img {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.currency-list li.active {
    background-color: rgba(255, 165, 0, 0.2); /* Полупрозрачный оранжевый */
    transform: translateX(4px);
}

.currency-list li:hover {
    background-color: rgba(255, 165, 0, 0.1); /* Ещё мягче при наведении */
    transform: translateX(2px);
}

.input-icon, .calculator-title {
    transition: opacity 0.3s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .currency-list li {
        font-size: 14px;
        padding: 10px;
        max-width: 100%;
    }

    .calculator-title {
        font-size: 16px;
    }

    .input-wrapper input {
        font-size: 14px;
        padding: 10px;
    }

    .currency-list li.active {
        transform: translateX(2px);
    }

    .currency-list li:hover {
        transform: translateX(1px);
    }
}

/* Бегущая строка */
.ticker-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #121215;
    padding: 10px 0;
    z-index: 999;
     /*   border-top: 2px solid #4caf50;  */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
}

.ticker {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    animation: ticker 35s linear infinite;
}

.ticker-item .date {
    background-color: #4caf50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

.ticker-item a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
}

.ticker-item p {
    color: white;
    margin: 0;
    font-size: 14px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Скрываем на мобильных */
@media (max-width: 768px) {
    .ticker-container {
        display: none;
    }
}

.ticker-space {
    height: 45px; /* высота бегущей строки + отступ */
}

/* Стрелка */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
    z-index: 9995;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    background-color: #45a049;
}

/* Полностью скрываем кнопку на мобильных */
@media (max-width: 768px) {
    .scroll-top-btn {
        display: none !important;
    }
}
