.hs-ticker-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    background-color: #ffffff;
    padding: 10px;
    direction: rtl; 
    box-sizing: border-box;
}

.hs-ticker-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important; 
    padding-left: 20px;
    margin-left: 20px;
    border-left: 2px solid #e0e0e0; /* خط جداکننده کمی تیره‌تر شد */
    background-color: #ffffff;
    z-index: 2;
}

/* استایل جدید برای متن جایگزین لوگو */
.hs-ticker-logo-text {
    font-weight: 900;
    font-size: 15px;
    color: #2c3e50; /* یک رنگ سرمه‌ای تیره و شیک */
    white-space: nowrap;
    font-family: inherit;
    padding: 5px 0;
}

.hs-ticker-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-grow: 1;
    overflow: hidden;
    direction: ltr; 
}

.hs-ticker-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 15px;
    padding-right: 15px;
    animation: hs_scrollTicker 140s linear infinite; 
}

.hs-ticker-wrapper:hover .hs-ticker-content {
    animation-play-state: paused;
}

.hs-ticker-item {
    background-color: #3b3f4d;
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: inherit;
    min-width: 220px;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.hs-ticker-item:hover {
    background-color: #4a4f61;
}

.hs-ticker-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: right; 
    direction: rtl; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-ticker-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    direction: rtl; 
}

.hs-ticker-price {
    color: #e0e0e0;
}

.hs-ticker-change {
    font-size: 12px;
    font-weight: bold;
    direction: ltr;
}

/* رنگ‌بندی هوشمند درصدها */
.hs-ticker-change.up { color: #00ff88; }
.hs-ticker-change.down { color: #ff4d4d; }
.hs-ticker-change.same { color: #3498db; }

@keyframes hs_scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* ۱. فراخوانی فونت دوران از هاست شما */
@font-face {
    font-family: 'Doran';
    src: url('https://sniran.com/wp-content/uploads/2026/08/IRANSansX-Medium.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ۲. اعمال فونت روی تمام بخش‌های نوار قیمت با دستور اجباری */
.hs-ticker-wrapper,
.hs-ticker-logo-text,
.hs-ticker-content,
.hs-ticker-item,
.hs-ticker-title,
.hs-ticker-data,
.hs-ticker-price,
.hs-ticker-change {
    font-family: 'Doran', Tahoma, Arial, sans-serif !important;
}