.hnf-typing-outer {
    max-width: 1100px;
    margin: 16px auto;
    font-family: 'Yekan Bakh', Tahoma, sans-serif;
}

.hnf-typing-wrap {
    direction: rtl;
    text-align: right;
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: var(--hnf-t-bg, #f8f8f8);
    border-right: 5px solid var(--hnf-t-accent, #df2027);
    border-radius: 12px;
    padding: 8px 16px !important;
    height: var(--hnf-t-height, auto) !important;
    overflow: hidden !important;
    white-space: nowrap;
    box-sizing: border-box !important;
}

.hnf-typing-prefix {
    flex: 0 0 auto;
    font-weight: bold;
    font-size: var(--hnf-t-font, 18px);
    color: var(--hnf-t-accent, #df2027);
}

.hnf-typing-text-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.hnf-typing-text {
    font-size: var(--hnf-t-font, 18px);
    color: var(--hnf-t-text, #1f1f1f);
    font-weight: 400;
}

.hnf-typing-cursor {
    color: var(--hnf-t-cursor, #df2027);
    font-weight: bold;
    font-size: var(--hnf-t-font, 18px);
    animation: hnf-blink 0.9s steps(1) infinite;
    margin-right: 2px;
}

/* --- استایل قابل‌تنظیم فونت متن تایپ‌شونده --- */
.hnf-typing-bold .hnf-typing-text { font-weight: 800; }
.hnf-typing-italic .hnf-typing-text { font-style: italic; }
.hnf-typing-underline .hnf-typing-text { text-decoration: underline; text-underline-offset: 3px; }

@keyframes hnf-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* --- بهینه‌سازی موبایل --- */
@media (max-width: 599px) {
    .hnf-typing-wrap {
        white-space: normal;
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 4px;
    }
    .hnf-typing-prefix {
        flex: 0 0 100%;
    }
    .hnf-typing-text-link {
        flex: 1 1 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }
}

/* --- نمایش واکنش‌گرا بر اساس نوع دستگاه (مستقل از فایل CSS اسلایدر، هماهنگ با همان بریک‌پوینت‌ها) --- */
@media (max-width: 599px) {
    .hnf-hide-mobile { display: none !important; }
}
@media (min-width: 600px) and (max-width: 991px) {
    .hnf-hide-tablet { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .hnf-hide-laptop { display: none !important; }
}
@media (min-width: 1200px) {
    .hnf-hide-desktop { display: none !important; }
}
