/* =========================================
   DESKTOP RESET - HIDE SHARED MOBILE NAV ONLY
========================================= */

@media(min-width:761px){

  body{
    padding-bottom:0!important;
  }

  .mobile-nav,
  .mobile-create{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  .topbar{
    display:flex!important;
    position:sticky!important;
    top:0!important;
    z-index:60!important;
    background:#fff!important;
    border-bottom:1px solid #e5e7eb!important;
  }

  .top-inner{
    width:100%!important;
    max-width:1180px!important;
    margin:0 auto!important;
    padding:14px 18px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .topbar .brand,
  .top-nav{
    display:none!important;
  }

  .search{
    display:flex!important;
    position:relative!important;
    width:100%!important;
    max-width:820px!important;
    margin:0 auto!important;
  }

  .search input{
    width:100%!important;
    height:42px!important;
    border:1px solid #d1d5db!important;
    border-radius:999px!important;
    padding:0 46px 0 44px!important;
    font-size:14px!important;
    background:#f8fafc!important;
    outline:none!important;
    box-shadow:none!important;
  }

  .search svg{
    position:absolute!important;
    left:15px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:18px!important;
    height:18px!important;
    stroke:#64748b!important;
    fill:none!important;
  }

  .search-clear{
    position:absolute!important;
    right:12px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:24px!important;
    height:24px!important;
    border:0!important;
    border-radius:50%!important;
    background:#e5e7eb!important;
    color:#475569!important;
    font-size:16px!important;
    line-height:24px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
  }

  .search-clear.hidden{
    display:none!important;
  }
}

.mobile-nav{
  display:none;
}

@media(max-width:760px){
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body{
    padding-bottom:calc(52px + env(safe-area-inset-bottom,0px))!important;
  }

  .container{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
  }

  .topbar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:5000!important;
    display:block!important;
    background:#fff!important;
    border:0!important;
    border-radius:0!important;
    border-bottom:1px solid #e5e2dc!important;
    box-shadow:none!important;
    transform:translateY(0);
    transition:transform .28s ease,background .25s ease,backdrop-filter .25s ease,border-color .25s ease!important;
  }

  .topbar.is-glass{
    background:rgba(255,255,255,.74)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    border-bottom-color:rgba(229,226,220,.35)!important;
  }

  .topbar.is-hidden{
    transform:translateY(-110%)!important;
  }

  .top-inner{
    height:54px!important;
    padding:6px 10px!important;
    gap:8px!important;
    display:flex!important;
    align-items:center!important;
  }

  .brand{
    order:1!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    border-radius:50%!important;
    overflow:hidden!important;
    padding:0!important;
    border:0!important;
    background:#e5e7eb!important;
  }

  .brand img{
    display:none!important;
  }

  .brand::before{
    content:"";
    display:block!important;
    width:32px!important;
    height:32px!important;
    border-radius:50%!important;
    background-image:var(--mobile-avatar,url("images/default-avatar.png"));
    background-size:cover;
    background-position:center;
    background-color:#e5e7eb;
  }

  .search{
    order:2!important;
    flex:1!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    position:relative!important;
  }

  .search input{
    height:36px!important;
    width:100%!important;
    border-radius:999px!important;
    border:1px solid #b8b8b8!important;
    background:#fff!important;
    color:#222!important;
    font-size:15px!important;
    font-weight:400!important;
    padding:0 38px!important;
    outline:none!important;
    box-shadow:none!important;
  }

  .search input::placeholder{
    color:#5f6368!important;
  }

  .search svg{
    position:absolute!important;
    left:12px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:18px!important;
    height:18px!important;
    stroke:#333!important;
    fill:none!important;
    stroke-width:2.4!important;
  }

  .search-clear{
    right:8px!important;
  }

  .search-panel{
    position:fixed!important;
    top:60px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-height:70vh!important;
    overflow-y:auto!important;
    border-radius:14px!important;
    border:1px solid #ddd!important;
    background:#fff!important;
    box-shadow:0 8px 26px rgba(0,0,0,.14)!important;
    z-index:6000!important;
  }

  .top-nav{
    order:3!important;
    display:flex!important;
    margin-left:0!important;
  }

  .top-nav .top-link{
    display:none!important;
  }

  .top-nav .top-link:nth-child(5){
    display:flex!important;
    position:relative!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    border:0!important;
    background:transparent!important;
    color:#666!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
  }

  .top-nav .top-link:nth-child(5) span:not(.nav-badge){
    display:none!important;
  }

  .top-nav .top-link:nth-child(5) svg{
    width:25px!important;
    height:25px!important;
    stroke-width:2.35!important;
  }

  .top-nav .top-link:nth-child(5) .nav-badge{
    display:flex;
    top:-2px!important;
    right:-2px!important;
    min-width:15px!important;
    height:15px!important;
    padding:0 4px!important;
    font-size:8px!important;
    border:2px solid #fff!important;
  }

  .top-nav .top-link:nth-child(5) .nav-badge.hidden{
    display:none!important;
  }

  .top-avatar{
    display:none!important;
  }

  .mobile-nav{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:calc(50px + env(safe-area-inset-bottom,0px))!important;
    padding-bottom:env(safe-area-inset-bottom,0px)!important;
    min-height:50px!important;
    z-index:4000!important;
    display:grid!important;
    grid-template-columns:repeat(5,1fr)!important;
    background:linear-gradient(to bottom,rgba(255,255,255,.98),rgba(255,255,255,.88) 72%,rgba(255,255,255,.45))!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    border-top:1px solid rgba(216,216,216,.65)!important;
    border-radius:0!important;
    box-shadow:none!important;
    transform:translateY(0) scale(1)!important;
    transform-origin:bottom center!important;
    transition:transform .34s cubic-bezier(.22,1,.36,1),opacity .24s ease!important;
  }

  .mobile-nav.is-pulled-down{
    transform:translateY(calc(100% + 12px)) scale(.98)!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  .mobile-nav button,
  .mobile-nav a{
    border:0!important;
    background:transparent!important;
    color:#777!important;
    text-decoration:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    height:100%!important;
    font-size:9px!important;
    font-weight:500!important;
    padding:1px 0!important;
    line-height:1!important;
  }

  .mobile-nav button.active,
  .mobile-nav a.active{
    color:#111!important;
  }

  .mobile-nav svg{
    width:19px!important;
    height:19px!important;
    stroke:currentColor!important;
    fill:none!important;
    stroke-width:2.4!important;
  }

  .mobile-create svg{
    width:21px!important;
    height:21px!important;
    padding:1px!important;
    border-radius:7px!important;
    background:#8a8a8a!important;
    stroke:#fff!important;
  }

  .mobile-create span{
    display:none!important;
  }

  .mobile-create::after{
    content:"Post";
    color:#777;
    font-size:9px;
    font-weight:500;
  }
}
/* =========================================
   FINAL SAME NOTIFICATION ICON ON ALL PAGES
========================================= */

@media(max-width:760px){

  .top-nav .top-link:nth-child(4){
    display:none!important;
  }

  .top-nav .top-link:nth-child(5){
    display:flex!important;
    position:relative!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    color:#444!important;
  }

  .top-nav .top-link:nth-child(5) svg{
    width:26px!important;
    height:26px!important;
    display:block!important;
    stroke:#444!important;
    fill:none!important;
    stroke-width:2.55!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  .top-nav .top-link:nth-child(5) svg path{
    stroke:#444!important;
    fill:none!important;
    stroke-width:2.55!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  .top-nav .top-link:nth-child(5) span:not(.nav-badge){
    display:none!important;
  }

  .top-nav .top-link:nth-child(5) .nav-badge{
    position:absolute!important;
    top:-4px!important;
    right:-4px!important;
    min-width:17px!important;
    height:17px!important;
    padding:0 5px!important;
    border-radius:999px!important;
    background:#ef4444!important;
    color:#fff!important;
    font-size:9px!important;
    font-weight:900!important;
    border:2px solid #fff!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .top-nav .top-link:nth-child(5) .nav-badge.hidden{
    display:none!important;
  }
}
