.mobile-app-shell { display: none; }

@media (max-width: 767.98px) {
  :root { --mobile-navy: #102d36; --mobile-teal: #167f7a; --mobile-gold: #d5a72e; --mobile-bg: #f4f7f6; --mobile-line: #e0e9e7; }
  html { background: var(--mobile-bg); }
  body.mobile-app-enabled { padding-top: calc(66px + env(safe-area-inset-top)); padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
  body.mobile-app-enabled.mobile-sheet-open { overflow: hidden; touch-action: none; }
  body.mobile-app-enabled .homepage-header,
  body.mobile-app-enabled header.site-navbar,
  body.mobile-app-enabled .site-mobile-menu,
  body.mobile-app-enabled .js-sticky-header { display: none !important; }
  body.mobile-app-enabled .site-wrap { overflow: visible; }
  body.mobile-app-enabled > header.site-header:not(.mobile-app-header),
  body.mobile-app-enabled #overlayer,
  body.mobile-app-enabled .loader { display: none !important; }
  body.mobile-app-enabled .site-wrap::before { display: none !important; }
  body.mobile-app-enabled.offcanvas-menu .site-wrap { width: auto; height: auto; overflow: visible; z-index: auto; }
  body.mobile-app-enabled .reveal.show { opacity: 1 !important; transform: none !important; }
  body.mobile-app-enabled .content-wrapper, body.mobile-app-enabled main { min-height: calc(100vh - 142px); }
  .mobile-app-shell { display: block; position: relative; z-index: 99990; font-family: Vazir, Tahoma, Arial, sans-serif; color: #22383d; }
  .mobile-app-shell *, .mobile-app-shell *:before, .mobile-app-shell *:after { box-sizing: border-box; }

  .mobile-app-header { position: fixed; z-index: 99994; top: 0; right: 0; left: 0; height: calc(66px + env(safe-area-inset-top)); display: grid; grid-template-columns: 42px 1fr 42px; align-items: end; gap: 10px; padding: env(safe-area-inset-top) 14px 9px; border-bottom: 1px solid rgba(16,45,54,.08); background: rgba(255,255,255,.94); box-shadow: 0 7px 24px rgba(16,45,54,.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-app-icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--mobile-line); border-radius: 13px; color: var(--mobile-navy); background: #f7f9f8; font-size: 17px; cursor: pointer; }
  .mobile-app-brand { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--mobile-navy) !important; text-decoration: none !important; }
  .mobile-app-brand > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border-radius: 12px; overflow: hidden; background: var(--mobile-navy); }
  .mobile-app-brand img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-app-brand strong { min-width: 0; display: flex; flex-direction: column; color: var(--mobile-navy); font-size: 13px; line-height: 1.55; white-space: nowrap; }
  .mobile-app-brand small { color: #829397; font-size: 8px; font-weight: 500; letter-spacing: .2px; }

  .mobile-app-bottom-nav { position: fixed; z-index: 99994; right: 8px; bottom: calc(7px + env(safe-area-inset-bottom)); left: 8px; height: 67px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 5px 4px; border: 1px solid rgba(16,45,54,.08); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 14px 38px rgba(16,45,54,.2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-app-bottom-nav a, .mobile-app-bottom-nav button { position: relative; height: 56px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0 2px; border: 0; color: #829397 !important; background: transparent; font-family: inherit; font-size: 9px; text-decoration: none !important; cursor: pointer; }
  .mobile-app-bottom-nav i { font-size: 18px; transition: transform .2s; }
  .mobile-app-bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-app-bottom-nav .active { color: var(--mobile-teal) !important; font-weight: 800; }
  .mobile-app-bottom-nav .active:after { content: ''; position: absolute; bottom: 1px; width: 17px; height: 3px; border-radius: 5px; background: var(--mobile-teal); }
  .mobile-app-bottom-nav .featured { transform: translateY(-16px); }
  .mobile-app-bottom-nav .featured i { width: 49px; height: 49px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 17px; color: var(--mobile-navy); background: linear-gradient(145deg, #efd477, var(--mobile-gold)); box-shadow: 0 7px 18px rgba(182,139,29,.32); font-size: 17px; }
  .mobile-app-bottom-nav .featured span { margin-top: -2px; color: var(--mobile-navy); font-weight: 800; }
  .mobile-app-bottom-nav a:active i, .mobile-app-bottom-nav button:active i { transform: scale(.88); }

  .mobile-app-overlay { visibility: hidden; position: fixed; z-index: 99995; inset: 0; opacity: 0; pointer-events: none; background: rgba(7,28,33,.56); backdrop-filter: blur(3px); transition: opacity .25s, visibility .25s; }
  .mobile-app-overlay.active { visibility: visible; opacity: 1; pointer-events: auto; }
  .mobile-app-sheet { visibility: hidden; position: fixed; z-index: 99996; right: 0; bottom: 0; left: 0; max-height: min(78vh, 640px); padding: 7px 17px calc(20px + env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; background: #fff; box-shadow: 0 -15px 45px rgba(7,28,33,.2); transform: translateY(105%); transition: transform .3s cubic-bezier(.22,.8,.28,1), visibility .3s; overflow-y: auto; overscroll-behavior: contain; pointer-events: none; }
  .mobile-app-sheet.active { visibility: visible; transform: translateY(0); pointer-events: auto; }
  .mobile-sheet-handle { width: 42px; height: 4px; margin: 2px auto 15px; border-radius: 5px; background: #d5dfdd; }
  .mobile-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
  .mobile-sheet-heading > div { display: flex; flex-direction: column; gap: 3px; }
  .mobile-sheet-heading span { color: var(--mobile-teal); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
  .mobile-sheet-heading h2 { margin: 0; color: var(--mobile-navy); font-family: inherit; font-size: 18px; font-weight: 900; }
  .mobile-sheet-heading button { width: 37px; height: 37px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; color: #71858a; background: #f0f4f3; }
  .mobile-sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .mobile-sheet-grid a { min-height: 62px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--mobile-line); border-radius: 15px; color: #2b4146 !important; background: #fafcfc; font-size: 11px; font-weight: 700; line-height: 1.6; text-decoration: none !important; }
  .mobile-sheet-grid a > i { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--mobile-teal); background: #e7f4f2; font-size: 15px; }
  .mobile-sheet-grid a > b { color: #a7b6b8; font-size: 10px; }
  [dir="ltr"] .mobile-sheet-grid a > b { transform: rotate(180deg); }
  .mobile-app-language-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--mobile-line); direction: ltr; }
  .mobile-app-language-row a { height: 38px; display: grid; place-items: center; border: 1px solid var(--mobile-line); border-radius: 10px; color: #71858a !important; background: #fafcfc; font-size: 10px; font-weight: 800; text-decoration: none !important; }
  .mobile-app-language-row a.active { border-color: var(--mobile-teal); color: var(--mobile-teal) !important; background: #e7f4f2; }
  .mobile-install-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; border: 0; border-radius: 13px; color: #fff; background: var(--mobile-navy); font-family: inherit; font-size: 11px; font-weight: 800; }

  .mobile-search-sheet { padding-bottom: calc(27px + env(safe-area-inset-bottom)); }
  .mobile-app-search-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .mobile-app-search-form > i { position: absolute; right: 15px; top: 17px; color: var(--mobile-teal); font-size: 15px; }
  [dir="ltr"] .mobile-app-search-form > i { right: auto; left: 15px; }
  .mobile-app-search-form input { width: 100%; min-width: 0; height: 51px; padding: 0 43px 0 12px; border: 1px solid var(--mobile-line); border-radius: 14px; outline: 0; color: var(--mobile-navy); background: #f8faf9; font-family: inherit; font-size: 12px; }
  [dir="ltr"] .mobile-app-search-form input { padding: 0 12px 0 43px; }
  .mobile-app-search-form input:focus { border-color: var(--mobile-teal); box-shadow: 0 0 0 3px rgba(22,127,122,.1); background: #fff; }
  .mobile-app-search-form button { min-width: 76px; border: 0; border-radius: 14px; color: #fff; background: var(--mobile-teal); font-family: inherit; font-size: 11px; font-weight: 800; }
  .mobile-advanced-search-link { min-height: 45px; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 13px; border-radius: 12px; color: var(--mobile-navy) !important; background: #f2f6f5; font-size: 10px; font-weight: 700; text-decoration: none !important; }
  .mobile-advanced-search-link > i { color: var(--mobile-gold); }.mobile-advanced-search-link > b { margin-inline-start: auto; color: #8ea0a3; }

  body.page-alltile.mobile-app-enabled .page-hero { min-height: auto; padding-top: 34px; }
  body.page-cooperation.mobile-app-enabled .cooperation-main { padding-top: 34px; }

  @media (max-width: 370px) {
    .mobile-app-bottom-nav { right: 4px; left: 4px; }.mobile-app-bottom-nav a, .mobile-app-bottom-nav button { font-size: 8px; }
    .mobile-sheet-grid { grid-template-columns: 1fr; }.mobile-app-brand strong { font-size: 12px; }
  }
}

@media (min-width: 768px) {
  .mobile-app-shell { display: none !important; }
}
