/* NABWORK v77 — carefully scoped desktop polish.
 * KEEP v76 six-wide photo carousel, all seven real service categories,
 * actual seller names/offer prices and existing live navigation.
 * No synthetic seller profiles, prices or counts.
 * Desktop-only: mobile, billing, orders, auth and paid AI functionality unchanged.
 */
@media (min-width:1080px) {
  /* Premium covers: NABWORK blue/indigo/slate/plum instead of green. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction > .nw-v60-cover::after {
    height:43%!important;
    background:#263f69!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-web::after {
    background:#203f69!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-design::after {
    background:#604b72!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-video::after {
    background:#304a68!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-social::after {
    background:#444976!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-writing::after {
    background:#65525c!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-business::after {
    background:#2d5065!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-other::after {
    background:#584968!important;
  }

  /* The user's Fiverr-like proportions, only a subtle adjustment to v76.
     Leave six cards in view on common desktop widths, 7th scrollable. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid {
    gap:18px!important;
    padding-bottom:16px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid > .nw-v60-direction {
    flex:0 0 clamp(208px,13.6vw,228px)!important;
    width:clamp(208px,13.6vw,228px)!important;
    min-width:clamp(208px,13.6vw,228px)!important;
    max-width:228px!important;
    min-height:340px!important;
    height:340px!important;
    border:1px solid #e3e9f2!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 5px 19px rgba(20,38,63,.085)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid > .nw-v60-direction:hover {
    box-shadow:0 13px 28px rgba(20,38,63,.145)!important;
  }
  /* Restore the original photo + white real-freelancer area. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction > .nw-v60-cover {
    display:block!important;
    flex:0 0 157px!important;
    width:100%!important;
    height:157px!important;
    min-height:157px!important;
    max-height:157px!important;
    background-size:300% 200%!important;
    background-repeat:no-repeat!important;
    border-radius:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover .nw-v60-cover-label {
    top:15px!important;
    left:13px!important;
    right:12px!important;
    font-size:clamp(15px,1.03vw,17px)!important;
    line-height:1.4!important;
    font-weight:730!important;
    letter-spacing:-.015em!important;
    text-shadow:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover .nw-v60-cover-arrow {
    width:25px!important;
    height:25px!important;
    right:11px!important;
    bottom:10px!important;
    font-size:13px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction > .nw-v60-direction-body {
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    padding:11px 12px 12px!important;
    background:#fff!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-group-head {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:5px!important;
    min-width:0!important;
    min-height:24px!important;
    padding-bottom:6px!important;
    border-bottom:1px solid #ebf0f5!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-group-head strong {
    min-width:0!important;
    max-width:67%!important;
    color:#243a59!important;
    font-size:10px!important;
    font-weight:780!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-group-count {
    flex:0 0 auto!important;
    font-size:9px!important;
    color:#126de1!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-gig-list {
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    gap:4px!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer {
    min-width:0!important;
    border-radius:9px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-link {
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    padding:3px 1px!important;
    border:0!important;
    background:transparent!important;
    text-align:left!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-avatar {
    display:grid!important;
    place-items:center!important;
    flex:0 0 26px!important;
    width:26px!important;
    height:26px!important;
    border-radius:50%!important;
    background:#e8f1ff!important;
    color:#175eb1!important;
    font-size:11px!important;
    font-weight:750!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-copy {
    display:flex!important;
    min-width:0!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    gap:4px!important;
    overflow:hidden!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-title {
    font-size:10px!important;
    font-weight:730!important;
    line-height:1.25!important;
    color:#273952!important;
    text-overflow:ellipsis!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-name {
    font-size:9.6px!important;
    font-weight:450!important;
    line-height:1.2!important;
    color:#6b7c94!important;
    text-overflow:ellipsis!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-offer-price {
    flex:0 0 auto!important;
    max-width:73px!important;
    color:#0b62c4!important;
    font-size:10px!important;
    font-weight:820!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-more-count {
    font-size:9px!important;
    font-weight:600!important;
    color:#72839a!important;
    padding:0 2px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction .nw-v60-gig-placeholder {
    display:flex!important;
    align-items:center!important;
    flex:1!important;
    margin:0!important;
    color:#75869b!important;
    font-size:10px!important;
    line-height:1.45!important;
  }

  /* Quiet premium four-step editorial row; keep the user's existing texts. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row {
    margin-top:55px!important;
    margin-bottom:77px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row > .nw-v48-how {
    padding-top:33px!important;
    padding-bottom:23px!important;
    border-top:1px solid #e9eef5!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-steps {
    gap:24px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step,
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:nth-child(4) {
    gap:15px!important;
    padding:14px 15px 16px 8px!important;
    border-right:1px solid #e7ecf3!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:last-child {
    border-right:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-icon,
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:nth-child(n) .nw-v48-how-icon {
    display:grid!important;
    place-items:center!important;
    flex:0 0 49px!important;
    width:49px!important;
    height:49px!important;
    border-radius:13px!important;
    color:#1f496e!important;
    background:#edf4ff!important;
    box-shadow:inset 0 0 0 1px rgba(25,76,144,.04)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:nth-child(2) .nw-v48-how-icon {
    background:#edf6f5!important;
    color:#315b65!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:nth-child(3) .nw-v48-how-icon {
    background:#f1effc!important;
    color:#60568c!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step:nth-child(4) .nw-v48-how-icon {
    background:#faf1ed!important;
    color:#8a5f50!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-icon svg {
    width:26px!important;
    height:26px!important;
    stroke:currentColor!important;
    color:inherit!important;
    stroke-width:1.65!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-copy {
    gap:7px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-copy strong {
    color:#26364d!important;
    font-size:clamp(14px,1.05vw,16px)!important;
    font-weight:740!important;
    line-height:1.45!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-copy span {
    color:#6c7c90!important;
    font-size:clamp(11.5px,.90vw,14px)!important;
    line-height:1.6!important;
    font-weight:450!important;
  }

  /* Bring back the PREVIOUS labeled paid AI pill, not a spark-only bubble.
     Only restyle launcher; session checks, service calls and panel untouched.
     CSS does not override #nabPaidAi[hidden] auth gating. */
  #nabPaidAi:not(.nab-ai-open) #nabAiLaunch {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    width:auto!important;
    min-width:137px!important;
    height:53px!important;
    min-height:53px!important;
    padding:0 17px!important;
    border-radius:999px!important;
    font-family:'Noto Sans Georgian',system-ui,sans-serif!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:800!important;
    white-space:nowrap!important;
    color:#fff!important;
    background:#086ad8!important;
    box-shadow:0 9px 23px rgba(9,79,173,.21)!important;
  }
  #nabPaidAi:not(.nab-ai-open) #nabAiLaunch .nab-ai-paid-spark {
    display:inline-block!important;
    font-size:21px!important;
    line-height:1!important;
  }
}
/* Compact desktop prevents awkward photo and offer truncation while keeping
   the approved mobile carousel completely unchanged. */
@media (min-width:1080px) and (max-width:1280px) {
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid > .nw-v60-direction {
    flex-basis:208px!important;
    width:208px!important;
    min-width:208px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-steps {
    gap:13px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v48-how-step {
    padding-left:4px!important;
    padding-right:9px!important;
  }
}
