/* NABWORK Profile 8.3 — owner's EXACT referenced floating profile-header composition.
 * Visual-only; original real user initials, seller rating, service count, owner
 * actions, avatar status, portfolio and payment flows retain their own logic.
 *
 * Reference: pale photo hero + semi-translucent WHITE PROFILE CARD OVER PHOTO,
 * avatar and true seller identity on left, real action buttons on right,
 * four compact in-card metrics below, then a separate slim navigation rail.
 *
 * All selectors are scoped to #profileView.nab8-profile (no other views).
 */
#profileView.nab8-profile .nab8-profile-shell{
  position:relative;
  overflow:hidden;
  border:1px solid #d9eaf7;
  border-radius:clamp(18px,2vw,26px);
  background:transparent;
  box-shadow:0 20px 56px rgba(9,75,131,.11);
}
#profileView.nab8-profile .nab81-cover{
  min-height:0!important;
  height:clamp(245px,23.8vw,325px)!important;
  padding:0!important;
  background:
    radial-gradient(ellipse at 62% 65%,rgba(255,255,255,.49),transparent 52%),
    radial-gradient(ellipse at 12% 28%,rgba(68,158,225,.13),transparent 55%),
    linear-gradient(108deg,#d5edff 0%,#ebf8ff 37%,#ccecff 74%,#d5f8ef 100%)!important;
}
#profileView.nab8-profile .nab81-cover:before{
  opacity:.4;
}
#profileView.nab8-profile .nab81-cover-copy{
  position:absolute;
  z-index:2;
  left:clamp(185px,38%,490px);
  top:clamp(22px,4.2vw,52px);
  width:min(26%,360px);
  max-width:26%;
  padding:0!important;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:5px;
}
#profileView.nab8-profile .nab81-cover-eyebrow{
  padding:5px 9px;
  font-size:9px;
  letter-spacing:.025em;
  background:rgba(255,255,255,.79);
}
#profileView.nab8-profile .nab81-cover-script{
  font-family:"Segoe Script","Brush Script MT",Georgia,serif;
  font-size:clamp(23px,2.6vw,38px);
  line-height:1.1;
  font-weight:550;
  letter-spacing:-.037em;
  color:#1c5285;
  text-shadow:0 2px 12px rgba(255,255,255,.6);
}
#profileView.nab8-profile .nab81-cover-subline{
  font-size:10px;
  max-width:24ch;
  line-height:1.6;
  color:#457391;
}
/* Keep the SAME woman without invented people, fake badges or face edits. */
#profileView.nab8-profile .nab81-woman{
  z-index:1;
  right:clamp(150px,15.2%,246px)!important;
  bottom:0!important;
  top:0!important;
  width:min(35%,355px)!important;
  max-width:355px;
  height:100%;
  background-size:contain!important;
  background-position:center bottom!important;
  filter:none!important;
}
#profileView.nab8-profile .nab81-neutral-previews{
  z-index:3;
  right:clamp(12px,2vw,30px);
  top:clamp(57px,6vw,94px);
  bottom:auto;
  width:clamp(183px,19%,252px);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  transform:none;
}
#profileView.nab8-profile .nab81-preview-tile{
  min-height:60px;
  padding:9px 4px;
  border-radius:11px;
  box-shadow:0 6px 19px rgba(8,74,117,.08);
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.97);
}
#profileView.nab8-profile .nab81-preview-tile b{font-size:22px}
#profileView.nab8-profile .nab81-preview-tile small{
  font-size:9px;
  font-weight:800;
}
/* Distinctive reference element: the profile identity is not BELOW the photo,
 * it FLOATS over its bottom edge as one white glass-backed card. */
#profileView.nab8-profile .nab81-profile-head{
  position:relative;
  z-index:4;
  margin:-111px clamp(12px,1.55vw,24px) 0!important;
  min-height:109px;
  padding:19px clamp(14px,1.65vw,24px) 10px!important;
  display:grid!important;
  grid-template-columns:clamp(75px,6.8vw,93px) minmax(0,1fr) auto;
  align-items:center!important;
  gap:clamp(11px,1.65vw,22px)!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  border:1px solid #e5eff8;
  border-bottom:0;
  border-radius:20px 20px 0 0;
  box-shadow:0 -8px 32px rgba(15,86,144,.045);
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-avatar{
  flex:none!important;
  width:clamp(75px,6.8vw,93px)!important;
  height:clamp(75px,6.8vw,93px)!important;
  margin:0!important;
  border:4px solid #fff;
  border-radius:50%;
  box-shadow:0 8px 26px rgba(11,94,164,.18);
  font-size:clamp(26px,2.7vw,37px);
  align-self:center;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-identity{
  padding:0!important;
  align-self:center!important;
  flex:none;
  width:100%;
  min-width:0;
}
#profileView.nab8-profile .nab81-profile-head .nab8-identity-eyebrow{
  margin-bottom:3px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.02em;
  color:#0b7fb7;
}
#profileView.nab8-profile .nab81-profile-head .nab23-name-row h1{
  margin:0;
  font-size:clamp(20px,2vw,29px);
  font-weight:940;
  line-height:1.28;
  letter-spacing:-.037em;
  overflow-wrap:anywhere;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-subtitle{
  margin:4px 0 5px!important;
  font-size:11px;
  line-height:1.55;
  color:#45637d;
}
#profileView.nab8-profile .nab81-profile-head .nab23-status-tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
#profileView.nab8-profile .nab81-profile-head .nab23-status-tags span{
  min-height:25px;
  padding:4px 9px;
  background:#f0f8fd;
  border:1px solid #e0ecf6;
  border-radius:99px;
  color:#386483;
  font-size:9px;
  font-weight:700;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-actions{
  flex:none!important;
  align-self:center!important;
  display:flex!important;
  flex-wrap:wrap;
  justify-content:flex-end!important;
  width:auto!important;
  max-width:340px;
  gap:7px;
  padding:0!important;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-actions button{
  min-height:41px;
  min-width:0;
  padding:9px 12px;
  font-size:10px;
  line-height:1.35;
  white-space:normal;
  border-radius:10px;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-actions .nab23-primary{
  padding-inline:17px;
}
/* Four statistics are INSIDE the same overlapping white card. */
#profileView.nab8-profile .nab81-metrics{
  position:relative;
  z-index:4;
  width:auto!important;
  margin:0 clamp(12px,1.55vw,24px) 17px!important;
  min-height:78px;
  padding:9px 8px 11px!important;
  border:1px solid #e5eff8!important;
  border-top:1px solid #e8eff7!important;
  border-radius:0 0 20px 20px;
  background:rgba(255,255,255,.96)!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  box-shadow:0 11px 24px rgba(15,86,144,.055);
}
#profileView.nab8-profile .nab81-metrics .nab8-profile-metric{
  min-width:0;
  min-height:58px;
  display:flex;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:5px 10px!important;
  border-bottom:0!important;
  border-right:1px solid #e9eff6;
  text-align:left!important;
}
#profileView.nab8-profile .nab81-metrics .nab8-profile-metric:last-child{border-right:0}
#profileView.nab8-profile .nab81-metrics .nab8-metric-icon{
  width:32px;height:32px;flex:0 0 32px;font-size:17px;border-radius:10px;
}
#profileView.nab8-profile .nab81-metrics .nab8-profile-metric strong{
  font-size:clamp(16px,1.35vw,21px);
  line-height:1.1;
  color:#0d284a;
}
#profileView.nab8-profile .nab81-metrics .nab8-profile-metric small{
  margin-top:3px;font-size:10px;line-height:1.4;
  color:#51718d;
}
/* Slender tab strip: one line, immediately below the unified profile card,
 * matching the reference's 4-part vertical hierarchy. */
#profileView.nab8-profile .nab23-profile-tabs.nab81-tabs{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  margin:10px 0 15px!important;
  min-height:50px;
  padding:5px 9px!important;
  border-radius:12px;
  box-shadow:0 6px 17px rgba(14,68,111,.05);
}
#profileView.nab8-profile .nab23-profile-tabs.nab81-tabs a{
  min-height:39px;
  padding:8px clamp(11px,1.25vw,20px);
  font-size:11px;
  border-radius:9px;
}
/* Preserve the actual services, genuine images, and all empty-state panels. */
#profileView.nab8-profile .nab81-layout{gap:clamp(12px,1.15vw,18px)}
#profileView.nab8-profile :is(#nab23-portfolio,#nab23-services,#nab23-reviews,#nab23-about){
  scroll-margin-top:98px!important;
}
body.dark-mode #profileView.nab8-profile .nab81-cover{
  background:linear-gradient(115deg,#193e61,#285b7c 60%,#23656d)!important;
}
body.dark-mode #profileView.nab8-profile .nab81-profile-head,
body.dark-mode #profileView.nab8-profile .nab81-metrics{
  background:rgba(25,44,67,.95)!important;
  border-color:#48657d!important;
}
body.dark-mode #profileView.nab8-profile .nab81-metrics .nab8-profile-metric strong{color:#fff}
body.dark-mode #profileView.nab8-profile .nab81-metrics .nab8-profile-metric small{color:#d1e7f5}
body.dark-mode #profileView.nab8-profile .nab81-profile-head .nab23-profile-subtitle{color:#d5e8f3}
body.dark-mode #profileView.nab8-profile .nab81-profile-head .nab23-status-tags span{
  background:#284660;color:#d7eaf9;border-color:#496883;
}
@media(max-width:1120px){
  #profileView.nab8-profile .nab81-cover-copy{left:32%;max-width:28%;width:28%}
  #profileView.nab8-profile .nab81-woman{right:10%!important}
  #profileView.nab8-profile .nab81-neutral-previews{width:188px;right:10px}
  #profileView.nab8-profile .nab81-profile-head{
    grid-template-columns:76px minmax(0,1fr);
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions{
    grid-column:2;
    justify-self:start;
    max-width:100%;
  }
}
@media(max-width:780px){
  #profileView.nab8-profile .nab81-cover{
    height:clamp(208px,39vw,275px)!important;
  }
  #profileView.nab8-profile .nab81-cover-copy{
    left:18px;top:25px;width:39%;max-width:39%;
  }
  #profileView.nab8-profile .nab81-cover-script{
    font-size:clamp(22px,4.6vw,33px);
  }
  #profileView.nab8-profile .nab81-woman{
    width:55%!important;max-width:305px;
    right:10%!important;
  }
  #profileView.nab8-profile .nab81-neutral-previews{
    right:7px;top:30px;width:135px;
    grid-template-columns:minmax(0,1fr);
    gap:4px;
  }
  #profileView.nab8-profile .nab81-preview-tile{
    min-height:30px;flex-direction:row;gap:5px;padding:5px 6px;
  }
  #profileView.nab8-profile .nab81-preview-tile b{font-size:13px}
  #profileView.nab8-profile .nab81-preview-tile small{font-size:8px}
  #profileView.nab8-profile .nab81-profile-head{
    margin-top:-58px!important;
    min-height:100px;
    grid-template-columns:77px minmax(0,1fr);
    gap:10px!important;
    padding:11px 14px 9px!important;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-avatar{
    width:74px!important;height:74px!important;font-size:29px;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions{grid-column:1/-1;justify-self:stretch;width:100%!important;display:flex!important;max-width:100%}
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions button{flex:1 1 auto}
  #profileView.nab8-profile .nab81-metrics{
    padding:7px 3px!important;
    min-height:0;
  }
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric{
    flex-direction:column!important;
    text-align:center!important;
    gap:4px!important;
    padding:5px 2px!important;
  }
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric small{font-size:8px}
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric strong{font-size:18px}
  #profileView.nab8-profile .nab81-metrics .nab8-metric-icon{width:25px;height:25px;flex-basis:25px;font-size:14px}
}
@media(max-width:480px){
  #profileView.nab8-profile .nab81-cover{
    height:clamp(175px,48vw,224px)!important;
  }
  #profileView.nab8-profile .nab81-cover-copy{top:15px;left:13px;width:45%;max-width:45%;gap:3px}
  #profileView.nab8-profile .nab81-cover-eyebrow{font-size:7px;padding:5px}
  #profileView.nab8-profile .nab81-cover-script{font-size:clamp(19px,5vw,25px)}
  #profileView.nab8-profile .nab81-cover-subline{font-size:8px}
  #profileView.nab8-profile .nab81-woman{
    right:1%!important;width:67%!important;
    max-width:250px;
  }
  #profileView.nab8-profile .nab81-neutral-previews{right:6px;top:22px;width:105px}
  #profileView.nab8-profile .nab81-preview-tile{padding:3px 4px;min-height:23px}
  #profileView.nab8-profile .nab81-preview-tile small{font-size:7px}
  #profileView.nab8-profile .nab81-profile-head{
    margin:-41px 8px 0!important;
    border-radius:14px 14px 0 0;
    padding:9px 9px 6px!important;
    grid-template-columns:57px minmax(0,1fr);
    gap:8px!important;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-avatar{
    width:55px!important;height:55px!important;
    border-width:3px;font-size:22px;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-name-row h1{font-size:clamp(17px,5vw,22px)}
  #profileView.nab8-profile .nab81-profile-head .nab8-identity-eyebrow{font-size:8px}
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-subtitle{font-size:10px}
  #profileView.nab8-profile .nab81-profile-head .nab23-status-tags span{font-size:8px;min-height:23px}
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions .nab23-primary{grid-column:1/-1}
  #profileView.nab8-profile .nab81-profile-head .nab23-profile-actions button{
    min-height:38px;padding:7px 6px;font-size:9px;
  }
  #profileView.nab8-profile .nab81-metrics{
    margin:0 8px 12px!important;
    border-radius:0 0 14px 14px;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric small{font-size:7px}
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric strong{font-size:16px}
  #profileView.nab8-profile .nab23-profile-tabs.nab81-tabs{
    margin:9px 0 14px!important;
    min-height:48px;
  }
  #profileView.nab8-profile .nab23-profile-tabs.nab81-tabs a{min-height:39px;font-size:10px}
}
@media(max-width:355px){
  #profileView.nab8-profile .nab81-cover-script{font-size:18px}
  #profileView.nab8-profile .nab81-cover{height:178px!important}
  #profileView.nab8-profile .nab81-neutral-previews{width:89px}
  #profileView.nab8-profile .nab81-preview-tile small{font-size:6px}
  #profileView.nab8-profile .nab81-profile-head .nab23-status-tags span{font-size:7px}
  #profileView.nab8-profile .nab81-metrics .nab8-profile-metric strong{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
  #profileView.nab8-profile .nab81-profile-head,
  #profileView.nab8-profile .nab81-metrics{transition:none!important;animation:none!important}
}
