/* ===== تیکر قیمت لحظه‌ای طلا — هدر سایت ===== */
:root {
    --gt-gold: #b9903f;
    --gt-gold-light: #d9b866;
    --gt-dark: #1c1710;
    --gt-up: #16a34a;
    --gt-down: #dc2626;
}

.gold-ticker {
    background: linear-gradient(90deg, var(--gt-dark) 0%, #2b2114 50%, var(--gt-dark) 100%);
    border-bottom: 1px solid rgba(185, 144, 63, .35);
    direction: rtl;
    font-family: inherit;
    position: relative;
    z-index: 5;
}

.gold-ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1290px;
    margin: 0 auto;
    padding: 7px 15px;
}

.gold-ticker-badge {
    flex-shrink: 0;
    color: var(--gt-gold-light);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid rgba(185, 144, 63, .4);
    border-radius: 30px;
    background: rgba(185, 144, 63, .08);
}

.gold-ticker-badge .fal { font-size: 11px; }

/* ردیف قیمت‌ها — اسکرول افقی در موبایل */
.gold-ticker-track {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    padding: 2px 0;
}

.gold-ticker-track::-webkit-scrollbar { display: none; }

.gold-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #e8e2d5;
    font-size: 12.5px;
    text-decoration: none;
    transition: color .2s;
}

.gold-ticker-item:hover { color: var(--gt-gold-light); }

.gt-title { color: #a89f8d; }

.gt-price {
    color: #f5efdf;
    font-weight: 700;
    letter-spacing: .2px;
}

.gold-ticker-item.flash-up .gt-price { color: var(--gt-up); transition: color .1s; }
.gold-ticker-item.flash-down .gt-price { color: var(--gt-down); transition: color .1s; }

.gt-change {
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.gt-change.up { color: var(--gt-up); }
.gt-change.down { color: var(--gt-down); }

.gold-ticker-live {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gt-up);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.gt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gt-up);
    display: inline-block;
    animation: gt-pulse 1.6s ease-in-out infinite;
}

@keyframes gt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

@media (max-width: 575px) {
    .gold-ticker-inner { padding: 6px 10px; gap: 8px; }
    .gold-ticker-badge { font-size: 11px; padding: 2px 8px; }
    .gold-ticker-item { font-size: 11.5px; }
    .gold-ticker-live { display: none; }
}
