:root { --site-header-height: 136px; }
.sepehr-shell #kt_wrapper { padding-top: var(--site-header-height) !important; }
.sh-public-page { padding-top: var(--site-header-height); }
#sitePageContent { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sh-header {
    --sh-paper: #fffefa; --sh-surface: #fff; --sh-ink: #203d38;
    --sh-muted: #6c8076; --sh-accent: #246855; --sh-hover: #1c5344;
    --sh-soft: #eaf2eb; --sh-line: #e2e9e2; --sh-tint: #f6f8f5;
    position: fixed; inset: 0 0 auto; z-index: 100; direction: rtl;
    background: var(--sh-paper); color: var(--sh-ink);
    font-family: Vazirmatn, sans-serif; font-size: 14px; line-height: 1.6;
    border-bottom: 1px solid var(--sh-line); box-shadow: 0 3px 20px #203d3803;
}
.sh-header *, .sh-header *::before, .sh-header *::after { box-sizing: border-box; }
.sh-header [hidden] { display: none !important; }
.sh-header a { text-decoration: none; color: inherit; }
.sh-header button { font: inherit; cursor: pointer; }
.sh-header button, .sh-header a { -webkit-tap-highlight-color: transparent; }
.sh-header button:focus-visible, .sh-header a:focus-visible {
    outline: 3px solid #65a388; outline-offset: 3px;
}
.sh-header p, .sh-header h2, .sh-header h3 { margin: 0; color: inherit; }
.sh-container { width: calc(100% - 64px); max-width: 1440px; margin-inline: auto; }
.sh-topbar { border-bottom: 1px solid var(--sh-line); }
.sh-topbar-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sh-brand-group { display: flex; align-items: center; gap: 13px; }
.sh-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sh-brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; border-radius: 10px; }
.sh-brand-mark { display: flex; align-items: center; justify-content: center; width: 50px; height: 52px; }
.sh-brand-mark img { display: block; width: 46px; height: 48px; object-fit: contain; }
.sh-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.sh-brand-copy strong { color: var(--sh-ink); font-size: 25px; font-weight: 800; line-height: 1.4; letter-spacing: -.6px; }
.sh-brand-copy > span { color: var(--sh-muted); font-size: 11px; font-weight: 400; }
.sh-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sh-icon-button {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    padding: 0; flex-shrink: 0; border: 1px solid var(--sh-line); border-radius: 12px;
    background: var(--sh-surface); color: var(--sh-muted) !important;
    transition: color .15s, background .15s, border-color .15s;
}
.sh-icon-button:hover { background: var(--sh-soft); border-color: #b4cbbd; color: var(--sh-accent) !important; }
.sh-header .sh-theme-sun { display: none; }
.sh-header .sh-theme-moon { display: inline-flex; }
.sh-account { position: relative; }
.sh-account-toggle {
    display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: 235px;
    border: 1px solid var(--sh-line); border-radius: 13px; padding: 5px 9px 5px 12px;
    background: var(--sh-surface); color: var(--sh-ink); transition: background .15s;
}
.sh-account-toggle:hover, .sh-account-toggle[aria-expanded="true"] { background: var(--sh-soft); }
.sh-avatar {
    width: 32px; height: 32px; border-radius: 10px; background: var(--sh-soft); color: var(--sh-accent);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 700;
}
.sh-account-label { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.sh-account-label strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.sh-account-label > span { display: block; font-size: 9px; color: var(--sh-muted); font-weight: 400; }
.sh-chevron { display: inline-flex; color: var(--sh-muted); transition: transform .15s; }
.sh-chevron .sh-icon { width: 14px; height: 14px; }
[aria-expanded="true"] > .sh-chevron { transform: rotate(180deg); }
.sh-auth-link, .sh-primary-link, .sh-signin {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
    padding: 9px 17px; border: 1px solid var(--sh-line); border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.sh-auth-link:hover { background: var(--sh-soft); }
.sh-header .sh-primary-link { color: #fff; background: var(--sh-accent); border-color: var(--sh-accent); }
.sh-header .sh-primary-link:hover { background: var(--sh-hover); }
.sh-header .sh-signin { background: var(--sh-soft); color: var(--sh-accent); }
.sh-header .sh-signin:hover { background: var(--sh-line); }
.sh-header .sh-signin--secondary { background: transparent; }
.sh-header .sh-signin--primary { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }
.sh-header .sh-signin--primary:hover { background: var(--sh-hover); }
.sh-navigation { position: relative; }
.sh-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 55px; gap: 18px; }
.sh-nav-links { display: flex; align-items: center; gap: 5px; min-width: 0; }
.sh-nav-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
    min-height: 39px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px;
    color: var(--sh-muted) !important; font-size: 12px; font-weight: 500; transition: color .15s, background .15s;
}
.sh-nav-link .sh-icon { width: 17px; height: 17px; opacity: .8; }
.sh-nav-link:hover { background: var(--sh-tint); color: var(--sh-accent) !important; }
.sh-nav-link.is-active, .sh-nav-link[aria-current="page"] {
    background: var(--sh-soft); color: var(--sh-accent) !important; border-color: #d8e5da; font-weight: 700;
}
.sh-nav-link.is-active .sh-icon { opacity: 1; }
.sh-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #83aa90; margin-inline-start: 2px; }
.sh-help { position: relative; flex-shrink: 0; }
.sh-help-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 10px;
    border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--sh-muted); font-size: 11px !important;
}
.sh-help-toggle .sh-icon { width: 17px; height: 17px; }
.sh-help-toggle:hover, .sh-help-toggle[aria-expanded="true"] { background: var(--sh-soft); color: var(--sh-accent); }
.sh-popover {
    position: absolute; inset-inline-end: 0; top: calc(100% + 12px); z-index: 10;
    width: 300px; max-width: calc(100vw - 32px); padding: 12px;
    border: 1px solid var(--sh-line); border-radius: 18px; background: var(--sh-surface);
    box-shadow: 0 12px 45px #183e2d18; text-align: start; color: var(--sh-ink);
}
.sh-account-summary { display: flex; align-items: center; gap: 11px; padding: 8px 6px 7px; }
.sh-avatar--large { width: 43px; height: 43px; font-size: 18px; border-radius: 13px; }
.sh-account-details { min-width: 0; }
.sh-account-summary strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.sh-account-summary > a { display: inline-block; font-size: 12px; color: var(--sh-muted); margin-top: 5px; }
.sh-account-mobile { display: block; margin-top: 3px; font-size: 11px; color: var(--sh-muted) !important; }
.sh-subscription { display: flex; align-items: center; gap: 6px; margin: 7px 6px 14px; padding: 7px 9px; border-radius: 8px; background: var(--sh-soft); color: var(--sh-accent); font-size: 10px; }
.sh-subscription .sh-icon { width: 15px; height: 15px; }
.sh-account-links { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--sh-line); padding-top: 7px; }
.sh-account-links > a { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 9px 10px; border-radius: 10px; font-size: 12px; }
.sh-account-links > a:hover { background: var(--sh-tint); color: var(--sh-accent); }
.sh-account-links > a .sh-icon { width: 18px; height: 18px; color: var(--sh-muted); }
.sh-account-links > a > span:not(.sh-count) { flex: 1; }
.sh-count { min-width: 22px; padding: 1px 6px; border-radius: 7px; background: var(--sh-soft); color: var(--sh-accent); font-size: 10px; text-align: center; }
.sh-account-links .sh-logout { color: #a94e45 !important; border-top: 1px solid var(--sh-line); margin-top: 5px; border-radius: 0 0 10px 10px; }
.sh-help-panel { padding: 20px; width: 320px; }
.sh-help-panel h2, .sh-help-panel h3, .sh-help-panel > strong { display: block; font-size: 14px; font-weight: 700; }
.sh-help-panel > p { color: var(--sh-muted); font-size: 12px; line-height: 1.9; margin-top: 7px; }
.sh-help-panel ol { margin: 14px 0 0; padding-inline-start: 21px; color: var(--sh-muted); font-size: 12px; line-height: 2; }
.sh-help-panel li { padding-inline-start: 3px; margin-top: 9px; }
.sh-help-panel li::marker { color: var(--sh-accent); font-weight: 700; }
.sh-help-panel a { color: var(--sh-accent); text-decoration: underline; text-underline-offset: 3px; }
.sh-help-heading { display: flex; align-items: center; gap: 10px; }
.sh-help-heading strong { display: block; font-size: 13px; font-weight: 700; }
.sh-help-heading > div > span { font-size: 10px; color: var(--sh-muted); }
.sh-help-mark { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 11px; background: var(--sh-soft); color: var(--sh-accent); }
.sh-help-panel .sh-help-steps { list-style: none; padding: 0; margin: 18px 0; }
.sh-help-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 0; margin-top: 13px; }
.sh-step-number { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid var(--sh-line); border-radius: 7px; color: var(--sh-accent); font-size: 11px; }
.sh-help-steps strong { display: block; font-size: 12px; font-weight: 600; color: var(--sh-ink); }
.sh-help-steps p { font-size: 10px; line-height: 1.9; }
.sh-help-links { display: flex; flex-direction: column; padding-top: 8px; border-top: 1px solid var(--sh-line); }
.sh-help-links a { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 10px; font-size: 11px; text-decoration: none; }
.sh-help-links .sh-icon { width: 15px; height: 15px; }
.sh-drawer-heading, .sh-menu-toggle, .sh-mobile-only { display: none; }
.sh-nav-backdrop { position: fixed; inset: 0; z-index: 1; border: 0; width: 100%; height: 100%; background: #17372b66; backdrop-filter: blur(4px); }

[data-bs-theme="dark"] .sh-header {
    --sh-paper: #192620; --sh-surface: #1e2e26; --sh-ink: #e6eee8;
    --sh-muted: #a1b4a7; --sh-accent: #9dcbb2; --sh-hover: #2f7258;
    --sh-soft: #2a4034; --sh-line: #344a3d; --sh-tint: #23372c;
}
[data-bs-theme="dark"] .sh-header .sh-theme-sun { display: inline-flex; }
[data-bs-theme="dark"] .sh-header .sh-theme-moon { display: none; }
[data-bs-theme="dark"] .sh-nav-link.is-active { border-color: var(--sh-line); }
[data-bs-theme="dark"] .sh-header .sh-primary-link { background: #306b52; border-color: #427d61; }
[data-bs-theme="dark"] .sh-header .sh-signin--primary { background: #306b52; border-color: #427d61; }

@media (min-width: 992px) and (max-width: 1279px) {
    .sh-container { width: calc(100% - 40px); }
    .sh-nav-links { gap: 2px; }
    .sh-nav-link { padding-inline: 8px; font-size: 11px; gap: 5px; }
    .sh-nav-inner { gap: 8px; }
    .sh-help-toggle { font-size: 10px !important; padding-inline: 6px; }
    .sh-nav-link .sh-icon { display: none; }
}
@media (max-width: 991px) {
    :root { --site-header-height: 72px; }
    .sh-container { width: calc(100% - 32px); }
    .sh-topbar { border-bottom: 0; }
    .sh-topbar-inner { min-height: 71px; gap: 14px; }
    .sh-brand { gap: 9px; }
    .sh-brand-mark { width: 39px; height: 44px; }
    .sh-brand-mark img { width: 38px; height: 43px; }
    .sh-brand-copy strong { font-size: 22px; }
    .sh-brand-copy > span { font-size: 10px; }
    .sh-actions { gap: 7px; }
    .sh-icon-button { width: 44px; height: 44px; border-radius: 12px; }
    .sh-menu-toggle, .sh-mobile-only { display: inline-flex; }
    .sh-desktop-only { display: none !important; }
    .sh-dashboard-shortcut { display: none; }
    .sh-account-toggle { max-width: 170px; min-height: 44px; }
    .sh-account-panel { position: fixed; inset-inline: auto 16px; top: 64px; max-height: calc(100dvh - 90px); overflow-y: auto; }
    .sh-header.sh-ready .sh-navigation {
        position: fixed; z-index: 2; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw);
        padding: 22px 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
        background: var(--sh-paper); border-inline-end: 1px solid var(--sh-line); box-shadow: -8px 0 40px #193d2920;
        visibility: hidden; transform: translateX(105%); transition: transform .2s ease, visibility .2s;
    }
    .sh-header.sh-ready .sh-navigation.is-open { transform: translateX(0); visibility: visible; transition: transform .2s ease; }
    .sh-nav-inner { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .sh-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
    .sh-drawer-heading strong { font-size: 17px; color: var(--sh-ink); }
    .sh-drawer-heading p, .sh-drawer-heading > span { font-size: 11px; color: var(--sh-muted); }
    .sh-drawer-heading > div > span { display: block; font-size: 11px; color: var(--sh-muted); margin-top: 4px; }
    .sh-nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
    .sh-nav-link { justify-content: flex-start; min-height: 48px; padding: 11px 15px; font-size: 14px; gap: 12px; border-radius: 12px; white-space: normal; }
    .sh-nav-link > span { min-width: 0; overflow-wrap: anywhere; }
    .sh-nav-link .sh-icon { width: 20px; height: 20px; }
    .sh-help { border-top: 1px solid var(--sh-line); margin-top: 24px; padding-top: 17px; }
    .sh-help-toggle { min-height: 44px; padding-inline: 6px; font-size: 12px !important; justify-content: flex-start; }
    .sh-help-panel { position: static; width: 100%; max-width: none; margin-top: 10px; box-shadow: none; padding: 16px; }
    .sh-account-links > a { min-height: 44px; font-size: 13px; }
    .sh-header:not(.sh-ready) { position: relative; }
    .sh-header:not(.sh-ready) .sh-navigation { padding: 16px; border-top: 1px solid var(--sh-line); }
    .sepehr-shell:has(.sh-header:not(.sh-ready)) #kt_wrapper { padding-top: 0 !important; }
    .sh-public-page:has(.sh-header:not(.sh-ready)) { padding-top: 0; }
    body.sh-nav-open { overflow: hidden; }
}
@media (max-width: 575px) {
    .sh-container { width: calc(100% - 28px); }
    .sh-topbar-inner { gap: 8px; }
    .sh-brand { gap: 6px; }
    .sh-brand-group { gap: 8px; }
    .sh-brand-copy strong { font-size: 21px; }
    .sh-brand-copy > span { display: none; }
    .sh-actions { gap: 6px; }
    .sh-account-toggle { padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 12px; }
    .sh-account-label, .sh-account-toggle > .sh-chevron { display: none; }
    .sh-account-toggle .sh-avatar { width: 30px; height: 30px; }
    .sh-auth-link, .sh-primary-link, .sh-signin { min-height: 44px; padding-inline: 12px; font-size: 12px; }
    .sh-signin--secondary { display: none; }
    .sh-account-panel { inset-inline: 14px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-header *, .sh-header *::before, .sh-header *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
