html, body {
    font-family: IRANSans, tahoma !important;
    font-weight: normal;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* FAQ answers stay in HTML for Google FAQPage; collapsed visually only */
.faq-answer.is-collapsed {
    display: none;
}
.faq-answer.is-visible {
    display: block;
}

/* MudAppBar uses full innerWidth and overflows ~8px when a vertical scrollbar exists */
.mud-appbar,
.mud-appbar-fixed-top,
.mud-appbar-fixed-bottom {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* MudBlazor user menu popover â single border, no inner scroll */
.user-menu-popover.mud-popover {
    min-width: 13.5rem !important;
    max-height: none !important;
    padding: 0 !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
}

.user-menu-popover .mud-paper,
.user-menu-popover .mud-list,
.user-menu-popover .mud-popover-content {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    background: transparent !important;
    padding: 0.25rem !important;
}

.user-menu-popover .mud-menu-item.user-menu-item,
.user-menu-popover .user-menu-item.mud-list-item {
    min-height: 2.15rem !important;
    padding: 0.35rem 0.55rem !important;
    margin: 0.05rem 0 !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    color: #3f3f46 !important;
    gap: 0.5rem;
}

.user-menu-popover .mud-menu-item.user-menu-item:hover,
.user-menu-popover .user-menu-item.mud-list-item:hover {
    background: #f4f4f5 !important;
    color: #18181b !important;
}

.user-menu-popover .user-menu-item--danger,
.user-menu-popover .user-menu-item--danger .mud-list-item-icon,
.user-menu-popover .user-menu-item--danger .mud-icon-root {
    color: #dc2626 !important;
}

.user-menu-popover .user-menu-item--danger:hover {
    background: #fef2f2 !important;
}

.user-menu-divider.mud-divider {
    margin: 0.3rem 0.35rem !important;
    border-color: #f4f4f5 !important;
}

.user-menu-popover .mud-list-item-icon {
    min-width: 1.5rem !important;
    color: #71717a !important;
    margin-inline-end: 0.15rem !important;
}

/* Closed temporary drawers sit off-screen and can cause iOS/Android horizontal rubber-band */
.mud-drawer--closed.mud-drawer-temporary {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent mobile horizontal scroll from wide flex/grid children, tables, charts */
.mud-layout,
.mud-main-content,
.mud-container,
.mud-grid,
.mud-grid-item,
.mud-paper,
.mud-card {
    max-width: 100%;
}

.mud-layout,
.mud-main-content {
    overflow-x: clip;
}

/* Desktop custom header is position:fixed â reserve space (MudAppBar Fixed used to do this) */
@media (min-width: 960px) {
    .mud-main-content {
        padding-top: 64px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.mud-grid-item,
.mud-stack-row > *,
.mud-stack > * {
    min-width: 0;
}

img, video, iframe, canvas {
    max-width: 100%;
}

.mud-table-container,
.mud-simple-table {
    max-width: 100%;
    overflow-x: auto;
}

.bannerBg,
.swiperBanner,
.swiper,
.hero-banner {
    max-width: 100%;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    border-radius: 0 !important;
    /* Reserve space before image arrives — cuts CLS when banner swaps in */
    aspect-ratio: 1920 / 635;
    background: #0f1b3d;
}

.hero-banner .swiperBanner,
.hero-banner .swiper,
.hero-banner .swiper-wrapper,
.hero-banner .swiper-slide,
.hero-banner-placeholder {
    width: 100%;
    height: 100%;
}

.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hero-banner-img,
.hero-banner .swiper-slide img,
.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-projects-panel {
    min-height: 28rem;
}

.home-about-media {
    aspect-ratio: 16 / 10;
    width: 100%;
}

.home-about-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-media {
    aspect-ratio: 16 / 10;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-cashflow-chart {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.portfolio-cashflow-chart .apexcharts-canvas,
.portfolio-cashflow-chart .apexcharts-svg {
    max-width: 100% !important;
}

@media (max-width: 600px) {
    .mud-appbar .mud-chip {
        max-width: 42vw;
    }

    .mud-appbar .mud-chip .mud-chip-content {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

    .mud-main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mud-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Mobile bottom nav (FooterComponent md:hidden) — keep last content above it */
@media (max-width: 767.98px) {
    .mud-main-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

a, .btn-link {
    color: #3853a4;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.mud-card-header .mud-card-header-actions {
    margin-top: 0px !important;
    margin-right: 0px !important;
    margin-inline-end: 0px !important;
}

.mud-drawer-mini .mud-nav-link {
    text-decoration: none;
}


.mudLinkFooter .mud-nav-link-text {
    margin: 0px !important;
}

.mudLinkFooter.mud-appbar,
.mud-appbar-fixed-bottom.mudLinkFooter {
    --mud-appbar-height: 64px;
    max-width: 100% !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 64px !important;
    overflow: visible !important;
    padding-top: 2px !important;
    padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    z-index: 1200 !important;
}

.mudLinkFooter .mud-navmenu {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    justify-content: space-around;
    height: auto !important;
    min-height: 56px;
}

.mudLinkFooter-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    justify-content: space-around;
    height: auto !important;
    min-height: 56px;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.mudLinkFooter-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #3853A4;
    text-decoration: none !important;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.65rem;
    line-height: 1.2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mudLinkFooter-link:hover,
.mudLinkFooter-link:focus {
    color: #2a3f7a;
    text-decoration: none !important;
}

.mudLinkFooter .mud-nav-link {
    flex: 1 1 0;
    min-width: 0;
    height: auto !important;
    min-height: 56px;
    padding: 4px 2px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.mudLinkFooter .mud-nav-link .mud-typography {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2 !important;
    font-size: 0.65rem !important;
}


    .mudLinkFooter .mud-navmenu .mud-nav-link {
        align-items: center;
    }

        .mudLinkFooter .mud-navmenu .mud-nav-link .mud-nav-link-text {
            margin-left: 0;
            margin-inline-start: 0;
            margin-inline-end: 0;
        }


    .mudLinkFooter .mud-navmenu.mud-navmenu-bordered .mud-nav-link.active:not(.mud-nav-link-disabled) {
        border-inline-end-style: none;
        border-inline-end-width: 0;
        border-top-style: solid;
        border-top-width: 2px;
    }

    .mudLinkFooter .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
        color: var(--mud-palette-primary);
        background-color: #fff !important
    }

.mudLinkFooter .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: #fff !important
}

.boxPic .mud-badge.mud-badge-bottom.center {
    top: calc(100% - 9px) !important;
}

.imgDetail {
    position: relative;
    top: 50px;
    border: 2px solid #fff
}

.MudDialogFix .mud-dialog-actions {
    position: fixed;
    bottom: 0px;
    width: 100%;
    background-color: #fff;
    display: block !important;
    padding: 0px 20px 20px 20px !important;
}

    .MudDialogFix .mud-dialog-actions > :not(:first-child) {
        margin: 0px !important;
    }

.MudTabClass .mud-tab {
    min-height: 35px !important;
    padding: 0px 15px !important;
    border-radius: 20px;
    background-color: #fff !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
    width: auto !important;
    border: 1px solid #eee;
}



.MudTabClass .mud-tooltip-root {
    /* padding-left: 10px !important;*/
    padding-top: 1px;
}

.MudTabClass .mud-tabs-tabbar, .MudTabsCustom .mud-tabs-tabbar, .MudTabsCustom50 .mud-tabs-tabbar {
    background-color: transparent !important
}

    .MudTabClass .mud-tabs-tabbar .mud-tabs-tabbar-inner {
        min-height: 40px !important;
    }

.MudTabClass .mud-tabs-scroll-button .mud-icon-button {
    display: none
}

.MudTabClass .mud-tab.mud-tab-active {
    color: #fff !important;
    background-color: #594AE2 !important;
    border: 1px solid #594AE2 !important;
}

.MudTabClass .mud-tabs-tabbar-content, .toplink {
    overflow: auto !important;
    scrollbar-color: #fff !important;
    -ms-overflow-style: none;
}

.overflowHiddenScroll .mud-tabs-tabbar-content, .toplink {
    scrollbar-width: none !important
}

.toplink {
    scrollbar-color: #fff !important;
    -ms-overflow-style: none;
}

.MudTabClass .mud-tabs-tabbar-wrapper {
    transform: translateX(0px) !important
}

.MudTabClass .mud-tabs-tabbar-content::-webkit-scrollbar, .overflowHiddenScroll::-webkit-scrollbar, .toplink::-webkit-scrollbar {
    display: none;
}

.MudTabClass .mud-tab-badge {
    margin-inline-start: 34px !important;
}

.MudTabClass .mud-badge.mud-badge-top.right {
    inset: auto auto calc(100% - 9px) calc(100% - 8px) !important;
}

.MudListMenu .mud-typography, .MudListMenuProfessor .mud-typography {
    display: flex !important
}

.MudListMenu .mud-avatar {
    background-color: #e7e7e7 !important
}

.mud-list-item-icon {
    min-width: 40px !important;
}

.scroll-locked {
    padding-right: 0px !important;
}


.sliderList .slick-list {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
}

.sliderList .slick-slide {
    padding: 0.4rem 1rem !important;
}

.mudliderTxt {
    color: #9E9E9E;
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 25px;
}

.mud-white {
    background-color: #fff !important
}

.badge {
    top: 0px;
    left: 11px;
    border-radius: 0px 0px 8px 8px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 400;
}

    .badge.active {
        background-color: #1DC7A4;
        color: #fff
    }

    .badge.inactive {
        background-color: #bdbdbd;
        color: #fff
    }



.MudTabsCustom .mud-tabs-centered {
    width: auto !important
}

.MudTabsCustom .mud-list-item {
    background-color: #fff !important
}

.MudTabsCustom .mud-avatar-filled {
    background-color: rgb(238, 237, 237) !important
}


.MudTabsCustom .mud-tooltip-root {
    width: 33.33333% !important
}

.MudTabsCustom50 .mud-tabs-centered {
    width: auto !important
}

.MudTabsCustom50 .mud-list-item {
    background-color: #fff !important
}

.MudTabsCustom50 .mud-avatar-filled {
    background-color: rgb(238, 237, 237) !important
}

.MudTabsCustom50 .mud-tooltip-root {
    width: 50% !important
}

.post img {
    border-radius: 5px;
    margin-bottom: 18px;
    max-width: 100%;
    height: auto;
}

.post h2 {
    font-size: 20px !important;
    line-height: 20px !important;
    color: #bf500a !important;
    line-height: 32px !important;
    padding: 10px 0px !important;
    margin: 0 !important;
    font-weight: bold !important;
}

.post h3 {
    font-size: 20px !important;
    line-height: 20px !important;
    color: #bf500a !important;
    line-height: 32px !important;
    padding: 10px 0px !important;
    margin: 0 !important;
    font-weight: bold !important;
}

.catListHome {
    padding: 0 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mud-card-header-content {
    overflow: hidden;
}

.underline {
    text-decoration: line-through
}

.bannerBg {
    background-image: url(/images/bg-banner.png);
    background-repeat: no-repeat;
    background-position: top right
}



@media screen and (max-width: 800px) {
    .bannerBgApply, .bannerBgMonyBack, .bannerBgAbout {
        background-image: url(/images/bg-banner.png);
        background-repeat: no-repeat;
        background-position: top right
    }

    
}

@media screen and (min-width: 800px) {
    .bannerBgApply {
        background-image: url(/images/bg-aplay.jpg);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: cover;
    }

    .bannerBgMonyBack {
        background-image: url(/images/bg-back-mony.jpg);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: contain;
    }

    .bannerBgAbout {
        background-image: url(/images/logo-banner.jpg);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: contain;
    }

    .bannerBgAboutHome {
        background-image: url(/images/bg-about-us-home.jpg);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: contain;
    }
}



.components-reconnect-top {
    background: #3E2CDD;
    display: flex;
    flex-direction: row;
    height: 60px;
    transition: height 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: 20px;
    color: white;
    width: 100%;
    border-radius: 6px 6px 0px 0px;
}

.components-reconnect-bottom {
    padding: 20px;
}

#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 1000;
    overflow: hidden;
    background-color: rgb(189 189 189);
    opacity: 0.8;
    text-align: right;
    display: none !important
}

    #components-reconnect-modal.components-reconnect-show {
        display: block;
    }

        #components-reconnect-modal.components-reconnect-show div.reconnecting {
            display: block;
        }

div.reconnecting {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed {
    display: block;
}

    #components-reconnect-modal.components-reconnect-failed div.failedToConnect {
        display: block;
    }

div.failedToConnect {
    display: none;
}

#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

    #components-reconnect-modal.components-reconnect-rejected div.connectionRejected {
        display: block;
    }

div.connectionRejected {
    display: none;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

.h_iframe-aparat_embed_frame {
    position: relative;
}

    .h_iframe-aparat_embed_frame .ratio {
        display: block;
        width: 100%;
        height: auto;
    }

    .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #DAD9E1;
    }
.mud-progressLinear {
    transform: scaleX(1) !important
}
.link-underline-none .mud-nav-link {text-decoration:none !important}

/* Drawer / account / site menus â Bootstrap otherwise underlines anchors */
.mud-drawer .mud-nav-link,
.mud-drawer .mud-nav-link:hover,
.mud-drawer .mud-nav-link:focus,
.mud-drawer a.mud-nav-link,
.account-nav-menu .mud-nav-link,
.account-nav-menu a,
.site-nav-menu .mud-nav-link,
.site-nav-menu a,
.mud-link-underline-none,
.mud-link-underline-none a,
.mud-link-underline-none .mud-nav-link {
    text-decoration: none !important;
}
.mud-tabs-tabbar-transparent {background-color:transparent !important}
.mud-tab-badge {
    margin-left: 5px !important;
    margin-inline-start: 20px !important;
}


.MudTabClass .mud-tabs-tabbar-content, .toplink {
    overflow: auto !important;
    scrollbar-color: #fff !important;
    -ms-overflow-style: none;
}

.overflowHiddenScroll .mud-tabs-tabbar-content, .toplink {
    scrollbar-width: none !important
}

.toplink {
    scrollbar-color: #fff !important;
    -ms-overflow-style: none;
}

.MudTabClass .mud-tabs-tabbar-wrapper {
    transform: translateX(0px) !important
}

.MudTabClass .mud-tabs-tabbar-content::-webkit-scrollbar, .overflowHiddenScroll::-webkit-scrollbar, .toplink::-webkit-scrollbar {
    display: none;
}
.mud-link-underline-none a {
    text-decoration: none !important;
}
/* Goftino position comes from Goftino.setWidget (docs). Do not override #goftino_w â fighting their CSS can break the iframe. */
.text-jastify {
    text-align: justify !important;
}

.customTimeLine .mud-timeline-vertical .mud-timeline-item .mud-timeline-item-content{
    max-width:auto !important ;
}

/* Portfolio dashboard calendar */
.portfolio-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto repeat(6, 4.5rem);
    gap: 6px;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-sizing: border-box;
}

.portfolio-calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0;
    color: #616161;
    background: rgba(56, 83, 164, 0.08);
    border-radius: 4px;
}

.portfolio-calendar-cell,
.portfolio-calendar-cell--empty {
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0.35rem 0.4rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

@media (max-width: 600px) {
    .portfolio-calendar-grid {
        gap: 3px;
        padding: 4px;
        grid-template-rows: auto repeat(6, 2.75rem);
    }

    .portfolio-calendar-cell,
    .portfolio-calendar-cell--empty {
        padding: 0.15rem 0.1rem;
    }

    .portfolio-calendar-weekday {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }

    .portfolio-calendar-day-number {
        font-size: 0.75rem;
    }

    .portfolio-calendar-day-icons .mud-icon-root {
        font-size: 0.9rem !important;
        width: 0.9rem !important;
        height: 0.9rem !important;
    }
}

.portfolio-calendar-cell--empty {
    background: rgba(0, 0, 0, 0.02);
    border-color: #eceff3;
}

.portfolio-calendar-cell--today {
    border-color: #3853A4;
    background: rgba(56, 83, 164, 0.08);
}

.portfolio-calendar-day-number {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.portfolio-calendar-day-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

/* ApexCharts â Persian font */
.portfolio-cashflow-chart,
.portfolio-cashflow-chart .apexcharts-canvas,
.portfolio-cashflow-chart .apexcharts-canvas text,
.portfolio-cashflow-chart .apexcharts-title-text,
.portfolio-cashflow-chart .apexcharts-legend-text,
.portfolio-cashflow-chart .apexcharts-xaxis-label,
.portfolio-cashflow-chart .apexcharts-yaxis-label,
.portfolio-cashflow-chart .apexcharts-tooltip-text {
    font-family: IRANSans, Tahoma, sans-serif !important;
}

/* Account menu hub tiles */
.account-menu-hub {
    max-width: 920px;
    margin: 0 auto;
}

.account-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0.25rem;
}

.account-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 96px;
    padding: 0.85rem 0.4rem;
    margin: 0;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.account-menu-tile:hover {
    background: #f8fafc;
    border-color: #d5dae6;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.account-menu-tile:active {
    background: #f1f5f9;
    transform: none;
}

.account-menu-tile .account-menu-tile-icon,
.account-menu-tile .mud-icon-root {
    font-size: 1.65rem !important;
    width: 1.65rem !important;
    height: 1.65rem !important;
    color: #3853A4;
}

.account-menu-tile-title {
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}

.account-menu-tile--danger .account-menu-tile-title {
    color: #b91c1c;
}

.account-menu-tile--danger .account-menu-tile-icon,
.account-menu-tile--danger .mud-icon-root {
    color: #b91c1c !important;
}

@media (max-width: 480px) {
    .account-menu-grid {
        gap: 8px;
    }

    .account-menu-tile {
        min-height: 84px;
        padding: 0.55rem 0.25rem;
        border-radius: 12px;
    }

    .account-menu-tile-title {
        font-size: 0.65rem;
    }
}

/* Investor profile card (Ø­Ø³Ø§Ø¨ ÙÙ) */
.investor-profile-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1rem 1.15rem;
    margin-bottom: 0.25rem;
}

.investor-profile-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.investor-profile-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3853A4 0%, #2a3f7a 100%);
    color: #fff;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.investor-profile-body {
    flex: 1 1 auto;
    min-width: 0;
}

.investor-profile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.investor-profile-name {
    margin: 0;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.investor-profile-logout {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.investor-profile-logout:hover {
    background: #f5f5f5;
    color: #c62828;
}

.investor-profile-meta {
    margin: 0.2rem 0 0.55rem;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #777;
}

.investor-profile-dot {
    margin: 0 0.2rem;
    opacity: 0.7;
}

.investor-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.investor-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
}

.investor-badge--ok {
    border-color: #c8e6c9;
    background: #e8f5e9;
    color: #2e7d32;
}

.investor-badge--warn {
    border-color: #ffe0b2;
    background: #fff3e0;
    color: #ef6c00;
}

.investor-badge--err {
    border-color: #ffcdd2;
    background: #ffebee;
    color: #c62828;
}

.investor-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.investor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.investor-action:hover {
    background: #f7f7f7;
    border-color: #ccc;
}

.investor-action--warn {
    border-color: #ffcc80;
    background: #fff8e1;
    color: #e65100;
}

.investor-profile-card--skeleton {
    min-height: 88px;
}

.investor-profile-avatar--skeleton {
    background: #ececec;
}

.investor-skel-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: investor-skel 1.2s ease-in-out infinite;
    margin-bottom: 0.45rem;
    width: 70%;
}

.investor-skel-line--lg {
    height: 14px;
    width: 45%;
}

.investor-skel-line--sm {
    width: 55%;
    margin-bottom: 0;
}

@keyframes investor-skel {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Friendly error page â never show stacks */
.error-page {
    max-width: 520px;
    margin: 3rem auto;
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

.error-page__title {
    margin: 0 0 0.75rem;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #c62828;
}

.error-page__message {
    margin: 0 0 1rem;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.error-page__meta {
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    color: #777;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 0.85rem;
}

.error-page__btn--primary {
    background: #3853A4;
    border-color: #3853A4;
    color: #fff;
}

@media (max-width: 480px) {
    .investor-profile-card {
        padding: 0.9rem;
        border-radius: 12px;
    }

    .investor-profile-avatar {
        width: 46px;
        height: 46px;
        font-size: 0.85rem;
    }

    .investor-profile-name {
        font-size: 0.98rem;
    }
}
/* Dashboard shell */
.acc-layout { min-height: 60vh; }
.acc-sejam .mud-expand-panel {
    border: 1px solid #e8eaf0 !important;
    border-radius: 12px !important;
    margin-bottom: 0.65rem;
    box-shadow: none !important;
    overflow: hidden;
}
.dash-shell { display: flex; flex-direction: column; gap: 1rem; }
.dash-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.dash-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #18181b; }
.dash-subtitle { margin: 0.2rem 0 0; font-size: 0.8125rem; color: #71717a; }
.dash-link-btn {
    display: inline-flex;
    align-items: center;
    height: 2.1rem;
    padding: 0 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    color: #3853A4;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
}
.dash-link-btn:hover { background: #f4f4f5; }
.dash-panel {
    border: 1px solid #e4e4e7 !important;
    border-radius: 0.75rem !important;
    background: #fff !important;
}
.dash-panel-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: #18181b; }
.dash-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.dash-muted { color: #71717a; font-size: 0.85rem; margin: 0.5rem 0; }

.dash-calendar-panel { padding: 1rem; margin-bottom: 1rem; }
.dash-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    direction: rtl;
}
.dash-calendar-month { font-size: 0.85rem; font-weight: 600; min-width: 7rem; text-align: center; }
.dash-calendar-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
@media (max-width: 900px) {
    .dash-calendar-split { grid-template-columns: 1fr; }
}
.dash-calendar-events-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #71717a;
    margin-bottom: 0.6rem;
}
.dash-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; max-height: 280px; overflow-y: auto; }
.dash-event-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #f4f4f5;
    border-radius: 0.5rem;
    background: #fafafa;
}
.dash-event-item--done { opacity: 0.75; }
.dash-event-date { flex-shrink: 0; font-size: 0.75rem; font-weight: 600; color: #3853A4; min-width: 4.5rem; }
.dash-event-name { font-size: 0.8125rem; font-weight: 500; color: #18181b; }
.dash-event-meta { font-size: 0.72rem; color: #71717a; margin-top: 0.15rem; }

/* Dashboard investments list */
.dash-inv-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.dash-inv-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-inv-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.dash-inv-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #18181b;
    line-height: 1.4;
    word-break: break-word;
}

.dash-inv-orders {
    font-size: 0.75rem;
    color: #71717a;
    white-space: nowrap;
}

.dash-inv-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    margin: 0;
}

@media (min-width: 768px) {
    .dash-inv-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dash-inv-metric {
    min-width: 0;
}

.dash-inv-metric dt {
    margin: 0 0 0.15rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.dash-inv-metric dd {
    margin: 0;
    font-size: 0.8125rem;
}

.dash-inv-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px dashed #d4d4d8;
    border-radius: 12px;
    background: #fafafa;
    padding: 1.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
}

/* ï¿½ï¿½ Search ï¿½ï¿½ */
.site-search { display: flex; flex-direction: column; gap: 0.75rem; min-width: min(100%, 28rem); }
.site-search-results { max-height: 320px; overflow-y: auto; }
.site-search-group { margin-bottom: 0.75rem; }
.site-search-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a1a1aa;
    margin-bottom: 0.35rem;
    padding: 0 0.25rem;
}
.site-search-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    color: #3f3f46;
    text-decoration: none !important;
    font-size: 0.875rem;
}
.site-search-item:hover { background: #f4f4f5; color: #18181b; }
.site-search-item-icon { color: #71717a !important; }
.site-search-empty {
    padding: 1rem;
    text-align: center;
    color: #dc2626;
    font-size: 0.875rem;
    border: 1px dashed #fecaca;
    border-radius: 0.5rem;
    background: #fef2f2;
}

/* ï¿½ï¿½ Navy desktop footer ï¿½ï¿½ */
.site-footer-desktop {
    background: #0f1b3d;
    color: #e2e8f0;
    margin-top: 2rem;
}
.site-footer-inner { padding: 2.5rem 1rem 1.75rem; }
.site-footer-heading { color: #fff !important; }
.site-footer-text,
.site-footer-copy { color: #cbd5e1 !important; }
.site-footer-list { list-style: none; padding: 0; margin: 0; }
.site-footer-list li { margin-bottom: 0.45rem; }
.site-footer-link { color: #cbd5e1 !important; text-decoration: none !important; }
.site-footer-link:hover { color: #fff !important; }
.site-footer-icon { color: #93c5fd !important; vertical-align: middle; }
.site-footer-social { display: flex; gap: 0.5rem; align-items: center; }
.site-footer-desktop .mud-typography { color: inherit; }

/* Trust seals — light chips so eNamad / Farabourse stay readable on navy */
.site-footer-seals,
.nemad.site-footer-seals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.site-footer-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 0;
    text-decoration: none;
}
.site-footer-seal img {
    display: block;
    width: 88px;
    height: auto;
    max-width: 100%;
}

/* Footer logo — white silhouette on navy */
.site-footer-logo,
.site-footer-desktop .site-footer-logo,
.site-footer-desktop .site-footer-logo img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

/* Account tables — spaced mobile cards */
@media (max-width: 599.95px) {
    .acc-table.mud-table .mud-table-body,
    .inv-table.mud-table .mud-table-body,
    .dash-table.mud-table .mud-table-body {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .acc-table.mud-table .mud-table-row,
    .inv-table.mud-table .mud-table-row,
    .dash-table.mud-table .mud-table-row {
        display: block;
        margin: 0 !important;
        padding: 0.85rem 1rem;
        border: 1px solid #e8eaf0 !important;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .acc-table.mud-table .mud-table-cell,
    .inv-table.mud-table .mud-table-cell,
    .dash-table.mud-table .mud-table-cell {
        border-bottom: 1px solid #f1f5f9 !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        margin: 0 !important;
    }

    .acc-table.mud-table .mud-table-cell:last-child,
    .inv-table.mud-table .mud-table-cell:last-child,
    .dash-table.mud-table .mud-table-cell:last-child {
        border-bottom: none !important;
        padding-bottom: 0.15rem !important;
    }

    .acc-panel,
    .inv-panel {
        background: transparent;
        border: none !important;
        box-shadow: none;
        overflow: visible;
    }
}
