/* نسخه ۷۹: نوار موبایل مشترک برای تمام صفحه‌های داخلی */
.melo-global-mobile-nav,.melo-global-menu-drawer,.melo-global-menu-backdrop{display:none}

@media(max-width:900px){
  body{box-sizing:border-box;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
  body.melo-global-menu-open{overflow:hidden!important}
  .melo-global-mobile-nav{
    position:fixed;
    z-index:10030;
    right:10px;
    left:10px;
    bottom:max(9px,env(safe-area-inset-bottom,9px));
    height:70px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    padding:5px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    background:rgba(16,20,20,.96);
    box-shadow:0 14px 44px rgba(0,0,0,.58);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    direction:rtl;
  }
  .melo-global-mobile-nav a,.melo-global-mobile-nav button{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:2px;
    border:0;
    border-radius:18px;
    background:transparent;
    color:#929b99;
    text-decoration:none;
    font-family:inherit;
    cursor:pointer;
  }
  .melo-global-mobile-nav i{font-size:21px;line-height:1;font-style:normal}
  .melo-global-mobile-nav span{font-size:9px;line-height:1.2;font-weight:700}
  .melo-global-mobile-nav .active{background:rgba(34,240,78,.1);color:var(--brand,#22f04e)}

  .melo-global-menu-backdrop{
    position:fixed;
    z-index:10010;
    inset:0;
    display:block;
    background:rgba(0,0,0,.62);
    opacity:0;
    transition:opacity .2s;
  }
  .melo-global-menu-backdrop[hidden]{display:none}
  .melo-global-menu-backdrop.open{opacity:1}
  .melo-global-menu-drawer{
    position:fixed;
    z-index:10020;
    right:10px;
    left:10px;
    bottom:calc(87px + env(safe-area-inset-bottom,0px));
    display:block;
    max-height:min(64vh,520px);
    overflow:auto;
    padding:16px;
    border:1px solid #273330;
    border-radius:24px;
    background:#0c1212;
    color:#fff;
    box-shadow:0 -18px 60px rgba(0,0,0,.68);
    direction:rtl;
    transform:translateY(calc(100% + 120px));
    opacity:0;
    visibility:hidden;
    transition:transform .24s ease,opacity .2s,visibility .2s;
  }
  .melo-global-menu-drawer.open{transform:translateY(0);opacity:1;visibility:visible}
  .melo-global-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
  .melo-global-menu-head small{display:block;color:var(--brand,#22f04e);font-size:9px}
  .melo-global-menu-head b{display:block;margin-top:2px;font-size:17px}
  .melo-global-menu-head button{width:38px;height:38px;border:1px solid #2c3835;border-radius:12px;background:#151c1b;color:#fff;font-size:23px}
  .melo-global-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .melo-global-menu-grid a{min-width:0;min-height:68px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;padding:9px;border:1px solid #202a28;border-radius:14px;background:#131818;color:#fff;text-decoration:none}
  .melo-global-menu-grid>a>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#0b2012;color:var(--brand,#22f04e);font-size:17px;font-style:normal}
  .melo-global-menu-grid span{min-width:0}
  .melo-global-menu-grid b,.melo-global-menu-grid small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .melo-global-menu-grid b{font-size:11px}
  .melo-global-menu-grid small{margin-top:3px;color:#818b88;font-size:8px}
}

@media(max-width:360px){
  .melo-global-mobile-nav{right:6px;left:6px;height:66px;border-radius:21px}
  .melo-global-mobile-nav i{font-size:19px}
  .melo-global-mobile-nav span{font-size:8px}
  .melo-global-menu-drawer{right:6px;left:6px;bottom:calc(81px + env(safe-area-inset-bottom,0px))}
}
