/* NABWORK Visual 8.2 — FINAL coherence across Profile, Studio, Home.
 * Exactly the same approved woman raster asset (via profile-v81-woman.svg);
 * no AI face alterations and NO fabricated seller portraits, ratings, or sales.
 * Strictly CSS presentation for the three views; no bank/auth/order selectors.
 */

/* Profile 8.2: the site already has a sticky app header. A SECOND sticky
 * category bar used to cover the headings as the owner scrolled the page.
 * Put the in-profile nav back into natural document flow. The anchor target
 * still needs breathing room below the site's fixed navigation.
 */
#profileView.nab8-profile .nab23-profile-tabs.nab81-tabs{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  z-index:auto!important;
  isolation:isolate;
  margin:14px 0 17px!important;
  box-shadow:0 5px 20px rgba(12,66,115,.055);
  scroll-margin-top:110px;
}
#profileView.nab8-profile :is(#nab23-about,#nab23-portfolio,#nab23-services,#nab23-reviews,#nab8-profile-top){
  scroll-margin-top:clamp(96px,9vw,118px)!important;
}
#profileView.nab8-profile .nab81-layout{
  align-items:start;
  gap:clamp(12px,1.25vw,19px);
}
#profileView.nab8-profile .nab81-layout .nab23-panel{
  min-width:0;
  overflow-wrap:anywhere;
}
#profileView.nab8-profile .nab81-portfolio .nab23-blank{
  min-height:145px;
  padding:25px 18px;
  border-radius:15px;
  background:linear-gradient(125deg,#f7fbff,#f0f9ff);
}
#profileView.nab8-profile .nab81-grid{
  grid-auto-flow:row;
  justify-items:stretch;
}
/* Give one published service a balanced, useful layout without inventing
 * extra project cards. Keep its actual price, image and original click target. */
@media(min-width:781px){
  #profileView.nab8-profile .nab81-services .nab23-gigs-grid:has(> .nab23-gig-card:only-child){
    grid-template-columns:minmax(0,1fr);
  }
  #profileView.nab8-profile .nab81-services .nab23-gigs-grid:has(> .nab23-gig-card:only-child) > .nab23-gig-card{
    display:grid;
    grid-template-columns:minmax(175px,37%) minmax(0,1fr);
    align-items:stretch;
    min-height:205px;
  }
  #profileView.nab8-profile .nab81-services .nab23-gigs-grid:has(> .nab23-gig-card:only-child) .nab23-gig-art{
    height:100%;
    aspect-ratio:auto;
  }
  #profileView.nab8-profile .nab81-services .nab23-gigs-grid:has(> .nab23-gig-card:only-child) .nab23-gig-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:19px;
  }
}
/* Preserve the photo pixels; visually improve perceived clarity by avoiding
 * >1x enlargement of the source portrait and by cutting the old fake badge.
 * This cannot recreate detail absent from the original 703x416 WebP. */
#profileView.nab8-profile .nab81-woman{
  width:min(36%,365px)!important;
  max-width:365px;
  right:clamp(115px,15%,245px)!important;
  height:100%;
  background-size:contain!important;
  background-position:center bottom!important;
  filter:none!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.08) 19%,#000 44%)!important;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.08) 19%,#000 44%)!important;
}
#profileView.nab8-profile .nab81-cover:before{
  opacity:.65;
}
#profileView.nab8-profile .nab81-cover-script{
  text-shadow:0 1px 10px rgba(255,255,255,.46);
}

/* Approved homepage: reuse the SAME untouched woman, not the original
 * composite scene containing three invented professional avatars. */
#homeView .nw-v6-hero-art.nab82-photo-hero{
  position:relative;
  min-height:clamp(340px,31vw,460px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
#homeView .nw-v6-hero-art.nab82-photo-hero > img{
  width:auto!important;
  max-width:min(100%,355px)!important;
  height:clamp(310px,30vw,408px)!important;
  aspect-ratio:332/407!important;
  object-fit:contain!important;
  object-position:bottom center;
  border-radius:0!important;
  mix-blend-mode:normal!important;
  filter:none!important;
  position:relative;
  z-index:2;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 18%,#000 43%)!important;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 18%,#000 43%)!important;
}
#homeView .nab82-hero-softglow{
  position:absolute;
  inset:13% 11% 0;
  border-radius:46% 48% 17% 17%;
  background:radial-gradient(ellipse at 52% 62%,rgba(51,184,213,.18),transparent 69%);
  pointer-events:none;
}
#homeView .nab82-hero-tiles{
  position:absolute;z-index:3;right:0;top:19%;
  display:flex;flex-direction:column;gap:12px;
  pointer-events:none;
}
#homeView .nab82-hero-tile{
  display:flex;align-items:center;gap:9px;
  max-width:160px;min-width:108px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:14px;
  box-shadow:0 13px 30px rgba(12,72,114,.11);
  background:rgba(255,255,255,.94);
  color:#21658c;
  font-size:11px;
  font-weight:850;
  line-height:1.4;
  backdrop-filter:blur(6px);
}
#homeView .nab82-hero-tile b{
  display:grid;place-items:center;
  flex:0 0 31px;width:31px;height:31px;
  border-radius:9px;
  background:#e5f4ff;
  color:#0789d4;
  font-size:17px;
}
#homeView .nab82-hero-tile:nth-child(2){transform:translateX(8px)}
#homeView .nab82-hero-tile:nth-child(2) b{background:#e1fbf2;color:#058f82}
#homeView .nab82-hero-tile:nth-child(3) b{background:#edeaff;color:#6d54c5}
#homeView .nw-v6-art-caption{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);
}

/* Studio 7.0: only change the decorative woman's presentation. Keep all
 * owner's financial counters, bank panels and dashboard actions untouched. */
#dashboardView.nab7-studio .nab25-hero{
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(110deg,#eefaff,#deefff 68%,#d7f5f2)!important;
}
#dashboardView.nab7-studio .nab25-hero:before{
  background:
    linear-gradient(90deg,#e5f5ff 0%,rgba(229,245,255,.02) 46%),
    url('/profile-v81-woman.svg') center bottom / auto 96% no-repeat!important;
  width:47%!important;
  opacity:1!important;
  filter:none!important;
}
#dashboardView.nab7-studio .nab25-hero:after{
  display:flex!important;
  content:"✎  დიზაინი  ·  ▧  პორტფოლიო";
  justify-content:center;
  align-items:center;
  position:absolute;
  right:19px;bottom:17px;
  z-index:1;
  width:max-content;max-width:41%;
  padding:8px 12px;
  border-radius:11px;
  border:1px solid #cce8f6;
  background:rgba(255,255,255,.92);
  color:#145c86;
  font-size:10px;
  font-weight:800;
  letter-spacing:0;
  box-shadow:0 7px 18px rgba(14,80,137,.08);
  pointer-events:none;
}
/* The 3 view CSS changes never affect the actual profile image/avatar that
 * belongs to the signed-in user: no decorative woman shown as a seller face. */
body.dark-mode #dashboardView.nab7-studio .nab25-hero{
  background:linear-gradient(110deg,#1d3b59,#225271 68%,#235b68)!important;
}
body.dark-mode #dashboardView.nab7-studio .nab25-hero:before{
  background:
    linear-gradient(90deg,#1d3b59 0%,rgba(29,59,89,.04) 46%),
    url('/profile-v81-woman.svg') center bottom / auto 96% no-repeat!important;
  opacity:.75!important;
}
body.dark-mode #dashboardView.nab7-studio .nab25-hero:after{
  background:rgba(27,58,85,.95);
  border-color:#4d7c97;
  color:#c6edff;
}
body.dark-mode #homeView .nab82-hero-tile{
  color:#d5f3ff;
  background:rgba(28,59,83,.94);
  border-color:#5685a0;
}
body.dark-mode #profileView.nab8-profile .nab81-portfolio .nab23-blank{
  background:#193248;
}
@media(max-width:1050px){
  #profileView.nab8-profile .nab81-woman{right:12%!important;max-width:315px}
  #homeView .nab82-hero-tiles{right:-10px;top:17%}
}
@media(max-width:780px){
  #profileView.nab8-profile .nab81-woman{
    width:53%!important;max-width:330px;
    right:8%!important;
    height:100%;
  }
  #profileView.nab8-profile .nab81-layout{gap:12px}
  #profileView.nab8-profile .nab23-profile-tabs.nab81-tabs{
    top:auto!important;
    margin:10px 0 13px!important;
  }
  #homeView .nw-v6-hero-art.nab82-photo-hero{min-height:350px}
  #homeView .nab82-hero-tiles{right:5%;top:22%}
  #dashboardView.nab7-studio .nab25-hero:before{width:44%!important}
}
@media(max-width:600px){
  #homeView .nw-v6-hero-art.nab82-photo-hero{
    position:absolute!important;
    right:-23px!important;
    top:clamp(173px,45vw,226px)!important;
    width:61%!important;
    min-height:0!important;
    height:clamp(190px,54vw,310px)!important;
    justify-content:flex-end;
    align-items:flex-end;
    pointer-events:none;
  }
  #homeView .nw-v6-hero-art.nab82-photo-hero > img{
    width:100%!important;
    height:100%!important;
    max-width:255px!important;
    object-position:bottom right;
  }
  #homeView .nab82-hero-tiles{right:4px;top:11%;gap:6px}
  #homeView .nab82-hero-tile{min-width:0;padding:6px 7px;border-radius:9px;font-size:8px;max-width:92px;gap:5px}
  #homeView .nab82-hero-tile b{flex-basis:18px;width:18px;height:18px;font-size:12px;border-radius:5px}
  #homeView .nab82-hero-tile:nth-child(3){display:none}
  #dashboardView.nab7-studio .nab25-hero:before{
    width:100%!important;
    height:200px!important;
    inset:auto 0 0 0!important;
    background:
      linear-gradient(180deg,#e5f5ff 0%,rgba(229,245,255,.02) 44%),
      url('/profile-v81-woman.svg') 83% bottom / auto 100% no-repeat!important;
    opacity:1!important;
  }
  #dashboardView.nab7-studio .nab25-hero:after{
    right:12px;bottom:11px;
    max-width:55%;font-size:9px;padding:7px 8px;
  }
  body.dark-mode #dashboardView.nab7-studio .nab25-hero:before{
    background:
      linear-gradient(180deg,#1d3b59 0%,rgba(29,59,89,.06) 44%),
      url('/profile-v81-woman.svg') 83% bottom / auto 100% no-repeat!important;
  }
}
@media(max-width:480px){
  #profileView.nab8-profile .nab81-woman{
    width:67%!important;
    max-width:255px;
    right:-2%!important;
    height:100%;
  }
  #profileView.nab8-profile .nab81-cover{height:206px;min-height:206px}
  #profileView.nab8-profile .nab81-layout .nab23-panel{
    padding:15px;
  }
  #profileView.nab8-profile .nab81-services .nab23-gigs-grid{grid-template-columns:minmax(0,1fr)}
  #homeView .nw-v6-hero-art.nab82-photo-hero{right:-14px!important}
}
@media(prefers-reduced-motion:reduce){
  #homeView .nab82-hero-tile,#profileView.nab8-profile .nab81-woman{
    transition:none!important;
    animation:none!important;
  }
}
