/* تیترستان — هدر، منو و فوتر مشترک (همه صفحات عمومی) */

/* ── هدر v5 — سه‌ردیفه (الهام از سایت‌های خبری) ── */
.tr-header-v5 {
    background: #fff;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}

/* ── چیپ تاریخ/ساعت (هدر + محتوا) ── */
.site-datetime,
.tr-top-date {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    line-height: 1.2;
    user-select: none;
}
.dt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.62rem;
    border-radius: 0.45rem;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}
.dt-chip-icon {
    font-size: 0.68rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.dt-cal-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}
.dt-weekday {
    font-weight: 600;
    color: #475569;
}
.dt-date {
    font-weight: 500;
    color: #64748b;
}
.dt-chip--greg {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border-color: transparent;
    padding-inline: 0.35rem;
    letter-spacing: 0.01em;
}
.dt-chip--clock {
    background: #fff;
    border-color: #e2e8f0;
    padding-inline: 0.7rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dt-time-value {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #334155;
}

/* ردیف ۱: تاریخ + لینک‌های سریع */
.tr-header-topbar {
    background: linear-gradient(180deg, #fcfcfd 0%, #f8f9fb 100%);
    border-bottom: 1px solid #eceff3;
}
.tr-header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 38px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.tr-top-date {
    min-width: 0;
}
.tr-top-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    flex-shrink: 0;
    padding: 0.12rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e8ecf1;
}
.tr-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5c6b7a;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.tr-top-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.3rem;
    font-size: 0.62rem;
    color: #7889a0;
    background: #eef2f6;
    transition: background 0.18s ease, color 0.18s ease;
}
.tr-top-link:hover {
    color: #3d5166;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.tr-top-link:hover i {
    color: #5b7088;
    background: #e4eaf0;
}
.tr-top-link.is-active {
    color: #3d5166;
    background: #fff;
    box-shadow: inset 0 0 0 1px #d5dde6;
}
.tr-top-link.is-active i {
    color: #fff;
    background: #6b8299;
}

/* ردیف ۲: برند + جستجو */
.tr-header-brandbar {
    background: linear-gradient(135deg, #2f3d4c 0%, #3a4a5c 45%, #445566 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tr-header-brandbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 68px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.tr-brandbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}
.tr-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}
.tr-brand--inverse .tr-brand-name {
    color: #f8fafc;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}
.tr-brand--inverse .tr-brand-tag {
    color: rgba(226, 232, 240, 0.72);
    font-weight: 500;
}
.tr-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tr-brand-logo--inverse {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.tr-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.tr-brand-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.tr-brand-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

/* جستجو — پایه */
.tr-search-field {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.tr-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94a3b8;
    pointer-events: none;
}
.tr-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: #0f172a;
    outline: none;
}
.tr-search-input::placeholder {
    color: #94a3b8;
}
.tr-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    cursor: pointer;
    color: #fff;
    font: inherit;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.tr-search-submit-label {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.tr-search-submit-icon {
    font-size: 0.65rem;
    opacity: 0.9;
}

/* جستجو — نوار برند (دسکتاپ) */
.tr-search--header {
    flex: 1;
    max-width: 26rem;
    min-width: 0;
}
.tr-search--header .tr-search-field {
    gap: 0;
    padding: 0.22rem 0.22rem 0.22rem 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.tr-search--header .tr-search-field:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 6px 24px rgba(15, 23, 42, 0.18),
        0 0 0 3px rgba(255, 255, 255, 0.12);
}
.tr-search--header .tr-search-icon {
    width: 2.35rem;
    font-size: 0.82rem;
    color: #8b9aab;
}
.tr-search--header .tr-search-input {
    padding: 0.62rem 0.35rem 0.62rem 0;
    font-size: 0.86rem;
}
.tr-search--header .tr-search-submit {
    min-height: 2.35rem;
    padding: 0 1rem;
    margin-inline-start: 0.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b7088 0%, #4a6178 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.tr-search--header .tr-search-submit:hover {
    background: linear-gradient(135deg, #4a6178 0%, #3d5166 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* سازگاری با کلاس قدیمی */
.tr-search--brand {
    flex: 1;
    max-width: 26rem;
    min-width: 0;
}

/* ردیف ۳: منوی اصلی */
.tr-header-navbar {
    background: linear-gradient(180deg, #fff 0%, #f6f8fa 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.tr-header-navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(107, 130, 153, 0.35) 25%,
        rgba(68, 85, 102, 0.55) 50%,
        rgba(107, 130, 153, 0.35) 75%,
        transparent 100%
    );
    pointer-events: none;
}
.tr-header-navbar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
}
.tr-header-navbar-inner::-webkit-scrollbar {
    display: none;
}
.tr-nav--main {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 50px;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
}
.tr-header-v5 .tr-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.48rem 0.9rem 0.52rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5568;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.18s ease;
}
.tr-header-v5 .tr-nav-item::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6b8299, #445566);
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.tr-header-v5 .tr-nav-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    font-size: 0.68rem;
    color: #7889a0;
    background: #eef2f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}
.tr-header-v5 .tr-nav-item:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    border-color: #e8ecf1;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}
.tr-header-v5 .tr-nav-item:hover::after {
    transform: scaleX(0.65);
    opacity: 0.55;
}
.tr-header-v5 .tr-nav-item:hover i {
    color: #5b7088;
    background: #e4eaf0;
}
.tr-header-v5 .tr-nav-item.is-active {
    color: #2f3d4c;
    background: #fff;
    border-color: #d5dde6;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}
.tr-header-v5 .tr-nav-item.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}
.tr-header-v5 .tr-nav-item.is-active i {
    color: #fff;
    background: linear-gradient(145deg, #5b7088 0%, #445566 100%);
    box-shadow: 0 2px 6px rgba(68, 85, 102, 0.35);
}
.tr-nav-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e07a7a;
    box-shadow: 0 0 0 0 rgba(224, 122, 122, 0.45);
    animation: trLivePulse 2.2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes trLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 122, 122, 0.45); }
    70% { box-shadow: 0 0 0 5px rgba(224, 122, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 122, 122, 0); }
}
.tr-header-v5 .tr-nav-item--live {
    color: #9a5c5c;
}
.tr-header-v5 .tr-nav-item--live i {
    background: #fdf2f2;
    color: #c07070;
}
.tr-header-v5 .tr-nav-item--live:hover {
    color: #b06868;
    background: rgba(255, 252, 252, 0.95);
    border-color: #f0dede;
}
.tr-header-v5 .tr-nav-item--live:hover i {
    background: #fce8e8;
    color: #b06868;
}
.tr-header-v5 .tr-nav-item--live.is-active {
    color: #a05858;
    background: #fff;
    border-color: #ecd4d4;
}
.tr-header-v5 .tr-nav-item--live.is-active::after {
    background: linear-gradient(90deg, #d4a0a0, #b06868);
}
.tr-header-v5 .tr-nav-item--live.is-active i {
    background: linear-gradient(145deg, #d4a0a0, #b06868);
    color: #fff;
    box-shadow: 0 2px 6px rgba(176, 104, 104, 0.35);
}

/* دکمه منوی موبایل */
.tr-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    border-radius: 0.65rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.tr-menu-btn--inverse {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.tr-menu-btn--inverse:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}
.tr-menu-btn-lines {
    width: 18px;
    height: 14px;
    position: relative;
    display: block;
}
.tr-menu-btn-lines span {
    position: absolute;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.tr-menu-btn-lines span:nth-child(1) { top: 0; }
.tr-menu-btn-lines span:nth-child(2) { top: 6px; }
.tr-menu-btn-lines span:nth-child(3) { top: 12px; }
.tr-menu-btn.is-open .tr-menu-btn-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.tr-menu-btn.is-open .tr-menu-btn-lines span:nth-child(2) { opacity: 0; }
.tr-menu-btn.is-open .tr-menu-btn-lines span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ── منوی موبایل ── */
.tr-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.28s ease, opacity 0.28s ease;
}
.tr-mobile-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.tr-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.tr-mobile-sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(22rem, 92vw);
    display: flex;
    flex-direction: column;
    padding: 0 0 max(1rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f8fafc 0%, #fff 18%);
    box-shadow: -12px 0 48px rgba(15, 23, 42, 0.16);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
    .tr-mobile-sheet {
        width: min(20rem, 28vw);
    }
}
.tr-mobile-overlay.is-open .tr-mobile-sheet {
    transform: translateX(0);
}
.tr-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: max(0.85rem, env(safe-area-inset-top)) 1rem 1rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, #2f3d4c 0%, #3a4a5c 50%, #445566 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.tr-mobile-head::after {
    content: "";
    position: absolute;
    left: -2rem;
    bottom: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.tr-mobile-head-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.tr-mobile-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 0.04em;
}
.tr-mobile-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}
.tr-mobile-close {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    position: relative;
    z-index: 1;
}
.tr-mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

/* جستجو داخل منوی موبایل */
.tr-mobile-search {
    padding: 0.65rem 1rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.tr-search--mobile .tr-search-field {
    gap: 0;
    padding: 0.18rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tr-search--mobile .tr-search-field:focus-within {
    background: #fff;
    border-color: #c5d0db;
    box-shadow: 0 0 0 3px rgba(91, 112, 136, 0.12);
}
.tr-search--mobile .tr-search-icon {
    width: 2.25rem;
    font-size: 0.8rem;
}
.tr-search--mobile .tr-search-input {
    padding: 0.6rem 0.35rem;
    font-size: 0.88rem;
}
.tr-search--mobile .tr-search-submit {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #5b7088, #4a6178);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.tr-search--mobile .tr-search-submit-label {
    display: none;
}

.tr-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    overflow-y: auto;
    padding: 0.65rem 0.75rem 0.35rem;
    flex: 1;
}
.tr-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.82rem 0.9rem;
    margin: 0;
    border-radius: 0.85rem;
    text-decoration: none;
    color: #334155;
    border: 1px solid transparent;
    border-right: 3px solid transparent;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}
.tr-mobile-link:hover {
    background: #fff;
    color: #1e293b;
    border-color: #e8ecf1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    transform: translateX(-2px);
}
.tr-mobile-link.is-active {
    background: linear-gradient(90deg, #eef2f6 0%, #fff 100%);
    color: #2f3d4c;
    border-color: #d5dde6;
    border-right-color: #6b8299;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.tr-mobile-link-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: #eef2f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: #7889a0;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tr-mobile-link.is-active .tr-mobile-link-icon {
    background: linear-gradient(145deg, #5b7088, #445566);
    color: #fff;
    box-shadow: 0 3px 8px rgba(68, 85, 102, 0.3);
}
.tr-mobile-link-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}
.tr-mobile-link-arrow {
    font-size: 0.68rem;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.18s ease;
}
.tr-mobile-link:hover .tr-mobile-link-arrow {
    color: #94a3b8;
    transform: translateX(-2px);
}
.tr-mobile-link--live .tr-mobile-link-icon {
    background: #fdf2f2;
    color: #c07070;
}
.tr-mobile-link--live.is-active {
    background: linear-gradient(90deg, #fdf2f2 0%, #fff 100%);
    color: #a05858;
    border-right-color: #d4a0a0;
}
.tr-mobile-link--live.is-active .tr-mobile-link-icon {
    background: linear-gradient(145deg, #d4a0a0, #b06868);
    color: #fff;
    box-shadow: 0 3px 8px rgba(176, 104, 104, 0.3);
}

body.tr-menu-open {
    overflow: hidden;
}

body:has(.tr-header-v5) main .top-meta-bar .site-datetime {
    display: none;
}

/* ── موبایل: چیدمان هدر ── */
@media (max-width: 767px) {
    .tr-header-topbar-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        text-align: center;
    }
    .tr-top-date {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .tr-top-date .dt-chip--greg {
        display: none;
    }
    .dt-cal-text {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
    }
    .tr-top-links {
        justify-content: center;
        margin-inline: auto;
    }
    .tr-header-navbar {
        display: none;
    }
    .tr-header-brandbar-inner {
        flex-wrap: nowrap;
        min-height: 56px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
    .tr-brandbar-actions {
        flex: 0 0 auto;
        order: unset;
    }
    .tr-search--header,
    .tr-search--brand {
        display: none !important;
    }
    .tr-menu-btn {
        display: inline-flex !important;
    }
    .tr-brand-tag {
        display: none;
    }
}

@media (min-width: 768px) {
    .tr-menu-btn {
        display: none !important;
    }
    .tr-mobile-search {
        display: none;
    }
}

/* سازگاری با کلاس‌های قدیمی */
.tr-header:not(.tr-header-v2) {
    background: linear-gradient(135deg, #0b1220 0%, #111827 55%, #1e293b 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}
.tr-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.menu-link,
.mobile-menu-link { text-decoration: none; }

.site-footer { background: #0f172a; color: #94a3b8; margin-top: 2rem; }
.site-footer-inner { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem; }
.footer-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}
.footer-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}
.footer-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}
.footer-menu-link-live {
    color: #fca5a5;
}
.footer-menu-link-live:hover {
    color: #fecaca;
}
.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
}

/* legacy tiles — fallback */
.tr-mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.tr-tile { text-decoration: none; }
