@font-face {
    font-family: 'iranyekan';
    src: url('../../../../fonts/iranyekan/iranyekanwebregular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../../../../fonts/iranyekan/iranyekanwebbold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../../../../fonts/iranyekan/iranyekanwebextrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../../../../fonts/iranyekan/iranyekanwebextrablack.woff') format('woff');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

:root {
    --jk-bg: #07070a;
    --jk-bg-2: #0f1117;
    --jk-card: rgba(16, 18, 24, .72);
    --jk-text: #f5f7fb;
    --jk-muted: #a7afbd;
    --jk-accent: #7a0019;
    --jk-accent-2: #a10022;
    --jk-stroke: rgba(255, 255, 255, .08);
    --jk-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

html,
body {
    font-family: 'iranyekan', Tahoma, sans-serif !important;
}

body.has-mobile-menu-open {
    overflow: hidden;
}

.jk-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    direction: rtl;
    font-family: 'iranyekan', Tahoma, sans-serif;
    transition: transform .45s ease, padding .45s ease;
}

.jk-header__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(122, 0, 25, .18), transparent 34%),
    linear-gradient(180deg, rgba(7, 7, 10, .78), rgba(7, 7, 10, .48));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all .45s ease;
}

.jk-header.is-scrolled .jk-header__backdrop {
    background: radial-gradient(circle at 20% 0%, rgba(161, 0, 34, .20), transparent 32%),
    linear-gradient(180deg, rgba(10, 10, 14, .94), rgba(10, 10, 14, .82));
    border-bottom-color: rgba(255, 255, 255, .10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.jk-header__container {
    position: relative;
    width: min(1400px, calc(100% - 32px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    transition: min-height .45s ease;
}

.jk-header.is-scrolled .jk-header__container {
    min-height: 72px;
}

.jk-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--jk-text);
    text-decoration: none;
    flex-shrink: 0;
}

.jk-header__brand-logo {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)),
    linear-gradient(145deg, var(--jk-accent-2), #4f0010);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 12px 34px rgba(122, 0, 25, .30);
    overflow: hidden;
    transition: .35s ease;
}

.jk-header__brand:hover .jk-header__brand-logo {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 44px rgba(122, 0, 25, .44);
}

.jk-header__brand-logo img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    display: block;
}

.jk-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.1;
}

.jk-header__brand-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.jk-header__brand-tagline {
    color: var(--jk-muted);
    font-size: .72rem;
    font-weight: 300;
    letter-spacing: .08em;
    direction: ltr;
    text-align: right;
}

.jk-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.jk-header__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.jk-header__menu-link {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--jk-muted);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .3s ease, background .3s ease, transform .3s ease;
}

.jk-header__menu-link:hover,
.jk-header__menu-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.jk-header__menu-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.jk-header__menu-link.is-active::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 7px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    transform: translateX(50%);
    background: linear-gradient(90deg, var(--jk-accent), var(--jk-accent-2), #d94b63);
    box-shadow: 0 0 18px rgba(161, 0, 34, .55);
}

.jk-header__soon-wrap {
    position: relative;
}

.jk-header__soon-link {
    opacity: .78;
    cursor: not-allowed;
}

.jk-header__soon-link:hover {
    color: #fff;
    background: rgba(122, 0, 25, .14);
}

.jk-header__soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    color: #ffb1be;
    background: rgba(122, 0, 25, .24);
    border: 1px solid rgba(161, 0, 34, .40);
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
}

.jk-header__tooltip {
    position: absolute;
    top: calc(100% + 14px);
    right: 50%;
    width: 238px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--jk-muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)),
    rgba(16, 18, 24, .96);
    border: 1px solid var(--jk-stroke);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: .78rem;
    line-height: 1.9;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transform: translate(50%, 8px);
    pointer-events: none;
    transition: .3s ease;
}

.jk-header__tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 50%;
    width: 12px;
    height: 12px;
    transform: translateX(50%) rotate(45deg);
    background: rgba(16, 18, 24, .96);
    border-top: 1px solid var(--jk-stroke);
    border-left: 1px solid var(--jk-stroke);
}

.jk-header__soon-wrap:hover .jk-header__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0);
}

.jk-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.jk-header__mobile-toggle {
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
    transition: .3s ease;
}

.jk-header__mobile-toggle:hover {
    background: rgba(122, 0, 25, .18);
    border-color: rgba(161, 0, 34, .35);
}

.jk-header__mobile-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: .3s ease;
}

.jk-header__mobile-toggle span:nth-child(2) {
    width: 15px;
    background: #ffb1be;
}

.jk-header__mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.jk-header__mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.jk-header__mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.jk-header__mobile-panel {
    position: relative;
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s ease, opacity .35s ease, transform .35s ease;
    transform: translateY(-8px);
}

.jk-header__mobile-panel.is-open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

.jk-header__mobile-nav {
    margin-top: 8px;
    padding: 14px;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 0%, rgba(122, 0, 25, .22), transparent 35%),
    linear-gradient(180deg, rgba(16, 18, 24, .96), rgba(12, 14, 18, .92));
    border: 1px solid var(--jk-stroke);
    box-shadow: var(--jk-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jk-header__mobile-nav a,
.jk-header__mobile-soon {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-radius: 16px;
    color: var(--jk-muted);
    text-decoration: none;
    font-size: .96rem;
    font-weight: 700;
    transition: .3s ease;
}

.jk-header__mobile-nav a:hover,
.jk-header__mobile-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.jk-header__mobile-nav a.is-active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.jk-header__mobile-soon {
    opacity: .72;
    background: rgba(122, 0, 25, .10);
    cursor: not-allowed;
}

.jk-header__mobile-soon small {
    color: #ffb1be;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(122, 0, 25, .22);
    border: 1px solid rgba(161, 0, 34, .36);
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .jk-header__nav {
        display: none;
    }

    .jk-header__mobile-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .jk-header__container {
        width: min(100% - 24px, 1400px);
        min-height: 78px;
    }

    .jk-header.is-scrolled .jk-header__container {
        min-height: 66px;
    }

    .jk-header__brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .jk-header__brand-name {
        font-size: .9rem;
        letter-spacing: .11em;
    }

    .jk-header__brand-tagline {
        display: none;
    }

    .jk-header__mobile-panel {
        width: min(100% - 24px, 1400px);
    }
}

@media (max-width: 390px) {
    .jk-header__brand-name {
        font-size: .82rem;
        letter-spacing: .08em;
    }

    .jk-header__brand {
        gap: 10px;
    }
}

/* انیمیشن زنده بودن لوگو */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

.logo-pulse-effect {
    animation: logoPulse 4s infinite ease-in-out;
}

/* افکت هاور حرفه‌ای */
.jk-header__brand:hover img {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 15px rgba(161, 0, 34, 0.8)) drop-shadow(0 0 35px rgba(161, 0, 34, 0.4)) !important;
}

.jk-header__brand:hover .logo-pulse-effect {
    animation-duration: 1s; /* سریع‌تر شدن پالس هنگام هاور */
    opacity: 0.6;
}
.jk-logo-main:hover {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 15px rgba(217, 75, 99, 0.8)) drop-shadow(0 0 35px rgba(161, 0, 34, 0.4)) !important;
}

/* یک درخشش بسیار محو و هوشمند در پشت لوگو بدون استفاده از div اضافی */
.jk-header__brand-logo::after {
    content: "";
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle, rgba(161, 0, 34, 0.4) 0%, transparent 70%);
    filter: blur(15px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}
