/* The app keeps the same compact shell on phones, tablets and desktops. */
@font-face {
    font-family: IRANSansEnglish;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/woff2/IRANSansWeb.woff2') format('woff2'), url('/fonts/woff/IRANSansWeb.woff') format('woff');
}
@font-face {
    font-family: IRANSansEnglish;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), url('/fonts/woff/IRANSansWeb_Medium.woff') format('woff');
}
@font-face {
    font-family: IRANSansEnglish;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'), url('/fonts/woff/IRANSansWeb_Bold.woff') format('woff');
}
body.webapp-host[dir="ltr"],
body.webapp-host[dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, summary, label, strong, b, bdi, li, td, th, span):not(.icon):not(.fa):not(.mdi):not([class^="icon-"]):not([class*=" fa-"]):not([class*=" mdi-"]) {
    font-family: IRANSansEnglish, Arial, sans-serif !important;
}
body.webapp-host[dir="ltr"] .webapp-category-cards a { font-size: 10px; }
body.webapp-host[dir="ltr"] .webapp-category-cards span { max-width: 100%; white-space: nowrap; }
body.webapp-host[dir="ltr"] .webapp-bottom-nav__label { font-size: 12px; }
:root {
    --webapp-max-width: 450px;
    --im-dark-bg: #030712;
}

body.webapp-host:has(.webapp-profile-page) .webapp-top-controls {
    display: none !important;
}

body.webapp-host .webapp-profile-page {
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px - max(0px, env(safe-area-inset-bottom) - 16px));
    background: #030712;
}

body.webapp-host .webapp-club-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.webapp-host .webapp-profile-empty {
    margin: 0;
    padding: 48px 20px;
    color: #fff !important;
    font-size: 14px;
    text-align: center;
}

html {
    min-height: 100%;
    background: #fff;
}

html.im-dark {
    background: #030712 !important;
}

body.webapp-host {
    position: relative;
    width: 100%;
    max-width: var(--webapp-max-width);
    min-height: 100vh;
    margin-inline: auto;
    overflow-x: clip;
    font-family: IRANSans, sans-serif;
}

/* Header controls float over the hero instead of occupying a navbar row. */
body.webapp-host .webapp-top-controls {
    position: absolute;
    z-index: 10002;
    top: 12px;
    right: 16px;
    left: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    direction: ltr;
    pointer-events: none;
}

body.webapp-host .webapp-top-controls > * {
    pointer-events: auto;
}

body.webapp-host .webapp-faq-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: 4px;
    border-radius: 50%;
    background: #dfb676;
    color: #fff;
}

body.webapp-host .webapp-faq-button img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

body.webapp-host .webapp-top-controls .webapp-language-menu {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: block !important;
    transform: none;
    direction: rtl;
}

body.webapp-host .webapp-top-controls .webapp-language-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 84px;
    height: 40px;
    padding: 6px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 15, 35, .38);
    color: #fff !important;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
}

body.webapp-host .webapp-top-controls .webapp-language-menu summary::-webkit-details-marker {
    display: none;
}

body.webapp-host .webapp-top-controls .webapp-language-globe {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
}

body.webapp-host .webapp-top-controls .webapp-language-chevron {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform .18s ease;
}

body.webapp-host .webapp-top-controls .webapp-language-menu[open] .webapp-language-chevron {
    transform: rotate(180deg);
}

body.webapp-host .webapp-top-controls .webapp-language-menu__options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 84px;
    padding: 10px 12px;
    border: 0;
    border-radius: 22px;
    background: #1d252b;
    box-shadow: none;
}

    body.webapp-host .webapp-top-controls .webapp-language-menu__options a {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
        justify-content: initial;
        gap: 8px;
        min-height: 40px;
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: #fff !important;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
    }

body.webapp-host .webapp-top-controls .webapp-language-menu__options a span {
    text-align: center;
}

body.webapp-host .webapp-top-controls .webapp-language-menu span {
    color: #fff !important;
}

body.webapp-host .webapp-top-controls a:focus-visible,
body.webapp-host .webapp-top-controls summary:focus-visible {
    outline: 2px solid #dfb676;
    outline-offset: 3px;
}

/* Keep content photos consistent while portrait sliders, logos and icons retain their shape. */
body.webapp-host .post-modern-figure .news-img,
body.webapp-host #branchResults .branch-logo-wrap {
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
}

body.webapp-host .post-modern-figure > img,
body.webapp-host .post-classic-figure > img,
body.webapp-host .post-minimal-figure > img,
body.webapp-host .im-media-main-image {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

body.webapp-host .post-modern-figure .news-img::before {
    display: none;
}

/* Reserve space for the category cards and fixed bottom navigation. */
    body.webapp-host #homepage-slider {
        position: relative;
        height: calc(100vh - 215px);
        height: calc(100svh - 215px - max(0px, env(safe-area-inset-bottom) - 16px));
        min-height: 0;
        margin: 0;
        overflow: hidden;
        background: #030712 !important;
    }

body.webapp-host #homepage-slider .swiper-wrapper {
    height: 100%;
}

body.webapp-host #homepage-slider .webapp-hero-slide {
    height: 100%;
    padding: 0;
    background-position: center;
    background-size: cover;
}

body.webapp-host #homepage-slider .webapp-hero-slide::before {
    z-index: 1;
    background: linear-gradient(180deg, transparent 48%, rgba(3, 7, 18, .2) 65%, rgba(3, 7, 18, .9) 88%, #030712 100%);
    pointer-events: none;
}

body.webapp-host #homepage-slider .webapp-hero-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 44px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 36px;
    white-space: normal;
}

body.webapp-host #homepage-slider .webapp-hero-copy {
    flex: 1;
    min-width: 0;
    text-align: start;
}

body.webapp-host #homepage-slider .webapp-hero-copy h1 {
    margin: 0 0 8px;
    color: #fff !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

body.webapp-host #homepage-slider .webapp-hero-copy p {
    margin: 0;
    color: #fff !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

body.webapp-host #homepage-slider .webapp-hero-link {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 32px;
    align-self: flex-start;
    margin-top: 2px;
    color: #fff;
}

    body.webapp-host #homepage-slider .webapp-hero-link img {
        width: 19px;
        height: 19px;
        object-fit: contain;
    }

body.webapp-host[dir="ltr"] #homepage-slider .webapp-hero-link img {
    transform: rotate(180deg);
}

body.webapp-host #homepage-slider #heroPagination {
    position: absolute;
    z-index: 3;
    top: auto;
    right: 0;
    bottom: 4px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 8px;
    direction: inherit;
}

body.webapp-host[dir="rtl"] .swiper-pagination,
body.webapp-host[dir="rtl"] #homepage-slider #heroPagination,
body.webapp-host[dir="rtl"] .webapp-carousel .webapp-carousel-pagination {
    direction: rtl;
    flex-direction: row;
}

body.webapp-host[dir="ltr"] .swiper-pagination,
body.webapp-host[dir="ltr"] #homepage-slider #heroPagination,
body.webapp-host[dir="ltr"] .webapp-carousel .webapp-carousel-pagination {
    direction: ltr;
    flex-direction: row;
}

body.webapp-host #homepage-slider #heroPagination .swiper-pagination-bullet {
    position: relative;
    display: block;
    width: 20px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #303541;
    opacity: 1;
    transform: none;
}

body.webapp-host #homepage-slider #heroPagination .swiper-pagination-bullet::before,
body.webapp-host #homepage-slider #heroPagination .swiper-pagination-bullet::after {
    display: none;
}

body.webapp-host #homepage-slider #heroPagination .swiper-pagination-bullet-active {
    background: #dfb676 !important;
}

body.webapp-host input,
body.webapp-host button,
body.webapp-host select,
body.webapp-host textarea {
    font-family: IRANSans, sans-serif;
}

body.webapp-host .container,
body.webapp-host .rd-navbar-main {
    width: 100%;
    max-width: 100%;
}

    body.webapp-host .webapp-category-cards {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 30px 16px 48px;
    }

body.webapp-host .webapp-category-cards a,
body.webapp-host .webapp-menu-shortcuts a,
body.webapp-host .webapp-places-group-options--global .webapp-places-group-option {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 4px;
    border: 1px solid rgba(223, 182, 118, .32);
    border-radius: 13px;
    background: radial-gradient(ellipse at 100% 100%, rgba(223, 182, 118, .15), transparent 65%), #0a0e1a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 3px 4px 12px rgba(223, 182, 118, .06);
    transition: border-color .18s ease, box-shadow .18s ease;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

body.webapp-host .webapp-category-cards__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-color: #dfb676;
    -webkit-mask: var(--category-icon) center / contain no-repeat;
    mask: var(--category-icon) center / contain no-repeat;
}

body.webapp-host .webapp-category-cards a:hover,
body.webapp-host .webapp-category-cards a:focus-visible,
body.webapp-host .webapp-menu-shortcuts a:hover,
body.webapp-host .webapp-menu-shortcuts a:focus-visible,
body.webapp-host .webapp-places-group-options--global .webapp-places-group-option:hover {
    border-color: rgba(223, 182, 118, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 3px 4px 14px rgba(223, 182, 118, .12);
}

@media (prefers-reduced-motion: reduce) {
    body.webapp-host .webapp-category-cards a,
    body.webapp-host .webapp-menu-shortcuts a { transition: none; }
}

body.webapp-host .webapp-category-cards span {
    color: #fff !important;
}

body.webapp-host .webapp-category-cards a:focus-visible,
body.webapp-host .webapp-menu-shortcuts a:focus-visible,
body.webapp-host .webapp-highlights-heading a:focus-visible {
    outline: 2px solid #dfb676;
    outline-offset: 3px;
}

body.webapp-host .webapp-highlights-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 24px;
}

body.webapp-host .webapp-highlights-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

body.webapp-host .webapp-highlights-heading a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
}

body.webapp-host .webapp-highlights-heading svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.webapp-host[dir="ltr"] .webapp-highlights-heading svg {
    transform: rotate(180deg);
}

html.im-dark body.webapp-host .webapp-home,
html.im-dark body.webapp-host .webapp-highlights-heading h2,
html.im-dark body.webapp-host .webapp-highlights-heading a {
    color: #fff !important;
}

body.webapp-host .webapp-bottom-nav,
body.webapp-host .rd-navbar-fixed .rd-navbar-panel,
body.webapp-host .preloader,
body.webapp-host .im-ajax-navigation-loader {
    width: 100%;
    max-width: var(--webapp-max-width);
    left: 0;
    right: 0;
    margin-inline: auto;
}

body.webapp-host .webapp-bottom-nav {
    position: fixed;
    z-index: 10001;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 82px;
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #0a0d19 !important;
    box-shadow: none;
}

html body.webapp-host .webapp-bottom-nav .webapp-bottom-nav__item {
    display: inline-flex;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 44px;
    aspect-ratio: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #f2f3f6 !important;
    font-family: IRANSans, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

html body.webapp-host .webapp-bottom-nav .webapp-bottom-nav__item.is-active {
    flex: 0 1 auto;
    max-width: 42%;
    padding-inline: 12px;
    border: 0;
    background: #1b1f2b;
    box-shadow: none;
    color: #dfb676 !important;
}

body.webapp-host .webapp-bottom-nav__icon {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 24px;
    background-color: #f2f3f6;
    -webkit-mask: var(--nav-icon) center / contain no-repeat;
    mask: var(--nav-icon) center / contain no-repeat;
}

body.webapp-host .is-active .webapp-bottom-nav__icon {
    background-color: #dfb676;
    -webkit-mask-image: var(--nav-icon-active);
    mask-image: var(--nav-icon-active);
}

body.webapp-host [data-webapp-nav="iranmall"] .webapp-bottom-nav__icon {
    flex-basis: 25px;
    width: 25px;
}

body.webapp-host .webapp-bottom-nav__label {
    display: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.webapp-host .is-active .webapp-bottom-nav__label {
    display: block;
    color: #dfb676 !important;
}

body.webapp-host .webapp-bottom-nav__item:focus-visible {
    outline: 2px solid #dfb676;
    outline-offset: 2px;
}

body.webapp-host.webapp-menu-open .page-header .rd-navbar-main-element {
    display: block !important;
}

body.webapp-host .rd-navbar-fixed .rd-navbar-nav-wrap {
    right: max(0px, calc((100vw - var(--webapp-max-width)) / 2));
    width: min(320px, 100vw);
    bottom: 82px;
}

body.webapp-host[dir="ltr"] .rd-navbar-fixed .rd-navbar-nav-wrap {
    right: auto;
    left: max(0px, calc((100vw - var(--webapp-max-width)) / 2));
}

body.webapp-host .page-header .header-links,
body.webapp-host .page-header .rd-navbar-main-element {
    display: none !important;
}

body.webapp-host .rd-navbar-fixed .rd-search {
    max-width: 100%;
}

body.webapp-host #homepage-slider h1 {
    font-size: clamp(27px, 8vw, 40px);
}

/* Bootstrap's desktop columns must not squeeze content inside the app shell. */
body.webapp-host .row > [class*="col-md-"],
body.webapp-host .row > [class*="col-lg-"],
body.webapp-host .row > [class*="col-xl-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

body.webapp-host .row > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Startup is managed centrally and runs at most once per hour. */
body.webapp-host .preloader,
body.webapp-host .cssload-speeding-wheel {
    display: none !important;
}

html.im-webapp-intro {
    overflow: hidden;
}

#webapp-splash {
    display: none;
}

html.im-webapp-intro #webapp-splash:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10000001;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: var(--webapp-max-width);
    margin-inline: auto;
    background: #030712;
}

#webapp-splash img {
    width: min(150px, 40%);
    height: auto;
    animation: webapp-logo-intro 1.5s ease-out both;
}

@keyframes webapp-logo-intro {
    0% { transform: scale(.45); opacity: 0; }
    55% { transform: scale(.85); opacity: 1; }
    75% { transform: scale(.95); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.webapp-install-dialog {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: calc(var(--webapp-max-width) - 30px);
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 24px;
    overflow-y: auto;
    border: 0;
    border-radius: 16px;
    background: #1d252b;
    color: #fff;
    font-family: IRANSans, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 2;
    text-align: start;
    color-scheme: dark;
}

.webapp-install-dialog::backdrop {
    background: rgba(3, 7, 18, .55);
}

.webapp-install-icon {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 40px;
    object-fit: contain;
}

.webapp-install-dialog p {
    margin: 0 0 24px;
    color: #fff !important;
}

.webapp-install-steps {
    margin: 0 0 40px;
    padding: 0;
    list-style: decimal inside;
}

.webapp-install-steps li {
    display: list-item;
    padding: 0;
    color: #fff !important;
}

.webapp-install-steps li + li {
    margin-top: 0;
}

.webapp-install-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    vertical-align: middle;
}

.webapp-install-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #999;
    color: #fff !important;
    font-family: IRANSans, sans-serif;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    padding-top: 2px;
}

.webapp-install-dismiss {
    display: block;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    border-radius: 13px;
    background: #dfb776;
    color: #fff;
    font-family: IRANSans, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.webapp-install-dismiss:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    #webapp-splash img {
        animation: none;
    }
}
