/* HZ Tools — app frame on phones (header, bottom bar, install bar). Same look as the site's new pages. */
.hz-ch { display: none; }
@media (max-width: 900px) {
  .hz-ch { display: block; font-family: 'HZ Vazirmatn', Vazirmatn, dana, Tahoma, sans-serif; direction: rtl; text-align: right; box-sizing: border-box; color: #1D1D1F; }
  .hz-ch *, .hz-ch *::before, .hz-ch *::after { box-sizing: border-box; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }

  .hz-ch-top { position: sticky; top: 0; z-index: 9990; background: rgba(251, 251, 253, 0.94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); padding: max(8px, env(safe-area-inset-top)) 16px 10px; }
  body.admin-bar .hz-ch-top { top: 46px; }
  .hz-ch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
  .hz-ch-title { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
  .hz-ch-h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
  .hz-ch-h { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hz-ch-back { width: 40px; height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; background: transparent; color: #1D1D1F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
  .hz-ch-logo { display: flex; align-items: center; gap: 8px; text-decoration: none !important; color: #1D1D1F !important; flex-shrink: 0; }
  .hz-ch-logo-t { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
  .hz-ch-logo-t b { font-size: 16px; font-weight: 800; color: #1D1D1F; }
  .hz-ch-logo-t small { font-size: 10px; color: #6E6E73; }
  .hz-logo-mark { display: block; flex-shrink: 0; }

  .hz-ch-search { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; margin: 6px 0 0; padding: 0 14px; background: #F2F2F5; border-radius: 14px; color: #6E6E73; }
  .hz-ch-search input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 15px; color: #1D1D1F; padding: 0 !important; margin: 0; -webkit-appearance: none; appearance: none; }
  .hz-ch-search input::placeholder { color: #86868B; }
  .hz-ch-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hz-ch-suggest { position: absolute; top: 52px; right: 0; left: 0; background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); overflow: hidden; z-index: 2; }
  .hz-ch-suggest[hidden] { display: none; }
  .hz-ch-suggest a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; color: #1D1D1F !important; text-decoration: none !important; font-size: 14px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .hz-ch-suggest a:first-child { border-top: 0; }
  .hz-ch-suggest small { font-size: 11px; color: #6E6E73; background: #F2F2F5; border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }

  .hz-ch-nav { position: fixed; z-index: 9991; right: 0; left: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .hz-ch-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; color: #6E6E73 !important; text-decoration: none !important; font-size: 11px; line-height: 1.4; }
  .hz-ch-nav a[aria-current="page"] { color: #1D1D1F !important; font-weight: 800; }
  .hz-ch-ico { position: relative; width: 48px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .hz-ch-nav a[aria-current="page"] .hz-ch-ico { background: #1D1D1F; color: #FFFFFF; }
  .hz-ch-lbl { white-space: nowrap; }
  .hz-ch-count { position: absolute; top: -3px; left: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--hz-accent, #D92D20); color: #FFFFFF; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
  .hz-ch-count[hidden] { display: none; }

  #hz-get-app { position: fixed; z-index: 9992; right: 10px; left: 10px; bottom: calc(var(--hz-off, 84px) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1D1D1F; color: #FFFFFF; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 13px; line-height: 1.6; }
  #hz-get-app[hidden] { display: none; }
  #hz-get-app .hz-ga-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  #hz-get-app b { font-size: 14px; color: #FFFFFF; }
  #hz-get-app small { font-size: 12px; color: #C7C7CC; }
  #hz-get-app button { font: inherit; cursor: pointer; margin: 0; box-shadow: none; text-transform: none; }
  #hz-get-app .hz-ga-go { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--hz-accent, #D92D20); color: #FFFFFF; font-weight: 800; }
  #hz-get-app .hz-ga-x { width: 36px; height: 40px; border: 0; background: transparent; color: #FFFFFF; font-size: 22px; padding: 0; }
}
