/* NABWORK 4.4 — marketplace service showcase.
 * Scoped to real data-driven service cards, gig details, seller profile listings,
 * and gig editor. No fake testimonials, new payment actions or app state.
 */
:root{
  --nw44-ink:#0c1b35;
  --nw44-border:#dbe9f2;
  --nw44-teal:#087b89;
  --nw44-blue:#0a84bd;
  --nw44-muted:#567186;
}
#homeView #gigsGrid .nw-gig-card{
  min-width:0;position:relative;
  display:flex;flex-direction:column;
  background:#fff!important;
  border:1px solid #dfebf3!important;
  border-radius:24px!important;
  box-shadow:0 13px 38px rgba(10,42,79,.06)!important;
  overflow:hidden;
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease!important;
}
#homeView #gigsGrid .nw-gig-card:hover,
#homeView #gigsGrid .nw-gig-card:focus-within{
  transform:translateY(-4px);
  border-color:#8fd2dc!important;
  box-shadow:0 23px 55px rgba(9,49,87,.14)!important;
}
#homeView #gigsGrid .nw-gig-media{
  position:relative;isolation:isolate;
  aspect-ratio:16/10;
  background:linear-gradient(140deg,#dfeefa,#e5f6f0);
  overflow:hidden;
}
#homeView #gigsGrid .nw-gig-media::after{
  content:"";
  pointer-events:none;
  position:absolute;inset:35% 0 0;z-index:0;
  background:linear-gradient(0deg,rgba(6,26,49,.23),transparent);
}
#homeView #gigsGrid .nw-gig-media > img{
  display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .5s cubic-bezier(.2,.7,.3,1);
}
#homeView #gigsGrid .nw-gig-card:hover .nw-gig-media > img{transform:scale(1.045)}
#homeView #gigsGrid .nw-gig-category{
  z-index:1;
  top:15px;left:15px;
  max-width:calc(100% - 75px);
  white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
  border:1px solid rgba(255,255,255,.38);
  border-radius:10px;
  padding:7px 11px;
  background:rgba(13,35,64,.90)!important;
  backdrop-filter:blur(7px);
  color:#fff;
  font-size:11px;font-weight:850;
  box-shadow:0 5px 17px rgba(0,10,32,.16);
}
#homeView #gigsGrid .nw-gig-favorite{
  z-index:2;top:13px;right:13px;
  width:38px;height:38px;border-radius:12px;
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(229,244,248,.8);
  box-shadow:0 7px 21px rgba(0,19,44,.18);
  font-size:17px;
}
#homeView #gigsGrid .nw-gig-favorite:hover{
  background:#e6faff!important;
  transform:translateY(-1px);
}
#homeView #gigsGrid .nw-gig-content{
  padding:21px 21px 23px;
  display:flex;flex-direction:column;align-items:stretch;
  gap:0;flex:1;min-width:0;
}
#homeView #gigsGrid .nw-gig-seller{
  display:flex;align-items:center;gap:10px;
  width:fit-content;max-width:100%;text-align:left;
  padding:0;margin:0 0 18px;background:transparent;
  color:#314d65;border:0;
}
#homeView #gigsGrid .nw-gig-seller:hover .nw-gig-seller-name{color:#075d8a;text-decoration:underline}
#homeView #gigsGrid .nw-gig-avatar{
  width:35px;height:35px;flex:0 0 35px;
  color:#fff;background:linear-gradient(145deg,#0a84bc,#0c9687);
  border:1px solid rgba(8,120,150,.14);
  box-shadow:0 5px 13px rgba(9,115,135,.14);
  border-radius:12px;font-size:13px;
}
#homeView #gigsGrid .nw-gig-seller-name{
  min-width:0;max-width:100%;flex-wrap:wrap;
  gap:5px;line-height:1.45;color:#35465f;font-size:12px;
  overflow-wrap:anywhere;
}
#homeView #gigsGrid .nw-gig-title{
  min-height:3.3em;
  margin:0 0 17px;
  font-size:clamp(14px,1.04vw,16px);
  line-height:1.65;font-weight:900;letter-spacing:-.015em;
  color:var(--nw44-ink);
  overflow-wrap:anywhere;
}
#homeView #gigsGrid .nw-gig-title a{color:inherit;text-decoration:none}
#homeView #gigsGrid .nw-gig-title a:hover,
#homeView #gigsGrid .nw-gig-title a:focus-visible{color:#086b8a}
#homeView #gigsGrid .nw-gig-skills{
  margin:0 0 18px;display:flex;flex-wrap:wrap;gap:7px;
  min-height:27px;
}
#homeView #gigsGrid .nw-gig-skill{
  min-height:27px;padding:4px 9px;
  background:#edf7fa;color:#386a7d;
  border:1px solid #dbedf2;
  border-radius:8px;
  font-size:10px;line-height:1.45;font-weight:750;
  max-width:100%;overflow-wrap:anywhere;
}
#homeView #gigsGrid .nw-gig-skill:hover{
  background:#d9f4f5;border-color:#acdfe2;color:#086779;
}
#homeView #gigsGrid .nw-gig-review{
  margin-top:auto;
  align-items:center;gap:5px;min-height:21px;
  font-size:12px;color:#9b6604;
}
#homeView #gigsGrid .nw-gig-review .text-slate-500{color:#567186}
#homeView #gigsGrid .nw-gig-foot{
  background:#f4f9fc!important;
  border-top:1px solid #e1edf4!important;
  padding:16px 21px 17px;
  gap:12px;min-height:79px;
}
#homeView #gigsGrid .nw-gig-delivery{
  font-size:11px;font-weight:800;color:#4e667b;
}
#homeView #gigsGrid .nw-gig-price-label{font-size:10px;color:#577188;font-weight:700;margin-bottom:3px}
#homeView #gigsGrid .nw-gig-price-value{
  font-size:clamp(16px,1.35vw,20px);
  font-weight:900;line-height:1.2;color:#0d3859;
}
#homeView #gigsGrid .nw-gig-card :is(button,a):focus-visible{
  outline:3px solid #1498b4;outline-offset:3px;
}
/* The seller's service listing in studio and the public profile stay consistent. */
#dashboardView .nab25-gig,
#profileView .nab23-gig-card{
  background:#fff;
  border:1px solid #dfebf3;
  border-radius:20px;
  box-shadow:0 12px 30px rgba(10,44,78,.055);
}
#profileView .nab23-gig-category{color:#087b89;font-weight:900}
#profileView .nab23-gig-info{padding:18px 18px 21px;gap:11px}
#profileView .nab23-gig-title{font-weight:850;line-height:1.55;color:#102641}
#profileView .nab23-gig-foot strong{font-weight:900;color:#0a456a}
#dashboardView .nab25-gig-info h4{color:#112943;font-weight:900;line-height:1.55}
#dashboardView .nab25-gig-picture{border-radius:14px;overflow:hidden}
#dashboardView .nab25-gig-actions button{border-radius:11px}
/* Service detail: generous hero-like title, story, gallery and pricing. */
#gigDetailsView{max-width:1300px}
#gigDetailsView #gigDetailsContent{
  gap:clamp(25px,3.4vw,54px);
  align-items:start;
}
#gigDetailsView .nab22-main-column{gap:clamp(23px,2.8vw,38px)}
#gigDetailsView .nab22-intro{
  padding:27px clamp(18px,2.2vw,30px);
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f8fcfe);
  border:1px solid var(--nw44-border);
  box-shadow:0 9px 28px rgba(13,43,70,.04);
}
#gigDetailsView .nab22-intro h1{
  font-size:clamp(1.75rem,3vw,2.7rem);
  line-height:1.35;
  margin-block:16px 20px;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
#gigDetailsView .nab22-seller-strip{
  border-bottom:0;margin-top:8px;
  padding-top:20px;padding-bottom:0;
}
#gigDetailsView .nab22-gallery-main{
  position:relative;
  background:linear-gradient(135deg,#e4f0f8,#eaf9f5);
  border:1px solid #daeaf1;
  border-radius:24px;
  box-shadow:0 16px 43px rgba(12,39,68,.10);
  overflow:hidden;
}
#gigDetailsView .nab22-gallery-main img{display:block;width:100%;height:100%;object-fit:contain}
#gigDetailsView .nab22-gallery-thumbs{gap:12px;padding-block:4px 9px;scrollbar-width:thin}
#gigDetailsView .nab22-gallery-thumb{
  flex:0 0 100px;width:100px;height:70px;
  border-radius:12px;opacity:.78;
}
#gigDetailsView .nab22-gallery-thumb.is-active{
  opacity:1;border-color:#0a849d;box-shadow:0 0 0 3px #d8f3f7;
}
#gigDetailsView .nab22-section{
  padding:clamp(23px,2.7vw,36px);
  border-radius:23px;
  background:#fff;
  border-color:#dceaf2;
  box-shadow:0 12px 32px rgba(9,42,74,.05);
}
#gigDetailsView .nab22-section h2{font-size:clamp(17px,1.55vw,21px);font-weight:900}
#gigDetailsView .nab22-section-top{gap:12px;margin-bottom:23px}
#gigDetailsView .nab22-description{font-size:14px;line-height:2;color:#3f5970}
#gigDetailsView .nab22-description p{margin-bottom:18px}
#gigDetailsView .nab22-about-seller{gap:18px}
#gigDetailsView .nab22-review{border:1px solid #e1edf3;border-radius:17px}
#gigDetailsView .nab22-pricing-card{
  top:112px;border-radius:24px;
  border:1px solid #d6e7f0;
  box-shadow:0 22px 52px rgba(9,38,74,.14);
}
#gigDetailsView .nab22-pricing-body{gap:20px;padding:clamp(20px,2vw,29px)}
#gigDetailsView .nab22-tier-btn{
  min-height:57px;padding:16px 8px;
  font-size:12px;line-height:1.5;
}
#gigDetailsView .nab22-package-price{font-weight:900;font-size:clamp(23px,2vw,29px);color:#113c5c}
#gigDetailsView .nab22-package-description{line-height:1.9;color:#4b6478}
#gigDetailsView .nab22-package-stats{border-radius:14px;background:#f1f8fb;border-color:#dcecf2}
#gigDetailsView .nab22-extra-line{padding-block:10px}
#gigDetailsView .nab22-promo :is(input,button){min-height:43px}
#gigDetailsView .nab22-unavailable{
  border-radius:13px;
  line-height:1.75;
  padding:14px 16px;
}
#gigDetailsView .nab22-pricing-note{font-size:11px;line-height:1.75}
#gigDetailsView .nab22-order-btn{min-height:48px}
/* Editor preview and controls reflect the same typography/brand. */
#gigModal .nab24-gig-dialog{border-radius:25px}
#gigModal .nab24-modal-lead{line-height:1.85;color:#4c6478}
#gigModal .nab24-preview-panel{border-radius:18px;border-color:#d5e7ef}
#gigModal .nab24-preview-title{font-weight:900;color:#11334b}
#gigModal .nab24-preview-package{border-color:#dceaf1}
#gigModal .nab24-btn-primary{min-height:45px;border-radius:12px}
/* Dark mode: legitimate service text stays legible, flags unchanged. */
body.dark-mode #homeView #gigsGrid .nw-gig-card,
body.dark-mode #gigDetailsView .nab22-intro,
body.dark-mode #gigDetailsView .nab22-section,
body.dark-mode #gigDetailsView .nab22-pricing-card,
body.dark-mode #dashboardView .nab25-gig,
body.dark-mode #profileView .nab23-gig-card{
  background:#1a2c44!important;
  border-color:#3d5269!important;
  color:#e5edf5;
}
body.dark-mode #homeView #gigsGrid .nw-gig-content,
body.dark-mode #homeView #gigsGrid .nw-gig-foot{
  background:#1a2c44!important;border-color:#3a536b!important;
}
body.dark-mode #homeView #gigsGrid .nw-gig-title,
body.dark-mode #homeView #gigsGrid .nw-gig-title a,
body.dark-mode #homeView #gigsGrid .nw-gig-seller-name,
body.dark-mode #homeView #gigsGrid .nw-gig-price-value,
body.dark-mode #profileView .nab23-gig-title,
body.dark-mode #gigDetailsView .nab22-intro h1,
body.dark-mode #gigDetailsView .nab22-section h2{
  color:#f3f9ff;
}
body.dark-mode #homeView #gigsGrid .nw-gig-price-label,
body.dark-mode #homeView #gigsGrid .nw-gig-delivery,
body.dark-mode #homeView #gigsGrid .nw-gig-review .text-slate-500{color:#b5cadb}
body.dark-mode #homeView #gigsGrid .nw-gig-skill{background:#263e54;color:#d4edf2;border-color:#496276}
body.dark-mode #gigDetailsView .nab22-package-stats{background:#27384d;border-color:#44596b}
body.dark-mode #gigDetailsView .nab22-gallery-main{background:#172b40}
@media(max-width:1100px){
 #gigDetailsView .nab22-pricing-card{top:93px}
 #homeView #gigsGrid .nw-gig-content{padding:19px 19px 21px}
 #homeView #gigsGrid .nw-gig-foot{padding:15px 19px 16px}
}
@media(max-width:760px){
 #gigDetailsView .nab22-pricing-card{position:static;top:auto}
 #gigDetailsView .nab22-intro{padding:21px 18px}
 #gigDetailsView .nab22-intro h1{font-size:clamp(1.55rem,6vw,2.15rem)}
 #gigDetailsView .nab22-section{padding:21px 18px}
 #gigDetailsView .nab22-gallery-thumb{flex-basis:83px;width:83px;height:59px}
 #homeView #gigsGrid .nw-gig-content{padding:21px}
 #homeView #gigsGrid .nw-gig-title{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
 #homeView #gigsGrid .nw-gig-card,
 #homeView #gigsGrid .nw-gig-media > img,
 #homeView #gigsGrid .nw-gig-favorite{transition:none!important}
 #homeView #gigsGrid .nw-gig-card:hover,
 #homeView #gigsGrid .nw-gig-card:focus-within{transform:none!important}
 #homeView #gigsGrid .nw-gig-card:hover .nw-gig-media > img{transform:none}
}


/* NABWORK 5.0 — authentic service card premium refinement.
 * CSS on real catalog/seller/gallery content; no price or payment UI changes.
 */
#homeView #gigsGrid .nw-gig-card{
  border-color:#dce8f1!important;
  border-radius:22px!important;
  box-shadow:0 14px 36px rgba(10,39,82,.070)!important;
}
#homeView #gigsGrid .nw-gig-card:hover,
#homeView #gigsGrid .nw-gig-card:focus-within{
  border-color:#8cc8dd!important;
  box-shadow:0 23px 49px rgba(9,43,82,.115)!important;
}
#homeView #gigsGrid .nw-gig-media{
  background:linear-gradient(125deg,#e9f1fa,#e1f6f6);
}
#homeView #gigsGrid .nw-gig-media > img{
  object-position:center;
}
#homeView #gigsGrid .nw-gig-content{
  padding:clamp(18px,1.7vw,23px);
}
#homeView #gigsGrid .nw-gig-title{
  margin-bottom:15px;
  font-weight:850;
  line-height:1.57;
  text-wrap:pretty;
  color:#10263e;
}
#homeView #gigsGrid .nw-gig-seller-name{
  color:#456074;
  line-height:1.5;
}
#homeView #gigsGrid .nw-gig-foot{
  border-top-color:#dfebf1!important;
  background:#f7fafc!important;
}
#homeView #gigsGrid .nw-gig-favorite{
  min-width:42px;
  min-height:42px;
  border-radius:13px;
}
#homeView #gigsGrid .nw-gig-skill{
  line-height:1.5;
  font-size:11px;
}
#homeView #gigsGrid .nw-gig-card :is(a,button):focus-visible{
  outline:3px solid #138fcb;
  outline-offset:3px;
}
#gigDetailsView .nab22-intro{
  border-color:#dbe9f2;
  box-shadow:0 12px 36px rgba(12,43,79,.05);
}
#gigDetailsView .nab22-intro h1{
  line-height:1.32;
  letter-spacing:-.029em;
  text-wrap:balance;
}
#gigDetailsView .nab22-description{
  color:#3b536c;
  font-size:14px;
  line-height:1.95;
  overflow-wrap:anywhere;
}
#gigDetailsView .nab22-section{
  border-color:#dceaf2;
  box-shadow:0 12px 35px rgba(11,42,82,.058);
}
#gigDetailsView .nab22-gallery-main{
  box-shadow:0 18px 42px rgba(8,37,72,.11);
}
#gigDetailsView .nab22-gallery-thumbs{
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
}
#gigDetailsView .nab22-gallery-thumb{scroll-snap-align:start}
body.dark-mode #homeView #gigsGrid .nw-gig-foot{
  background:#1a2c44!important;
  border-top-color:#3d556f!important;
}
body.dark-mode #homeView #gigsGrid .nw-gig-title,
body.dark-mode #homeView #gigsGrid .nw-gig-seller-name,
body.dark-mode #gigDetailsView .nab22-description{
  color:#e2eef7;
}
@media(max-width:760px){
  #homeView #gigsGrid .nw-gig-card{border-radius:18px!important}
  #homeView #gigsGrid .nw-gig-content{padding:19px}
  #homeView #gigsGrid .nw-gig-title{font-size:15px;line-height:1.6}
  #gigDetailsView .nab22-intro h1{line-height:1.36}
}
@media(prefers-reduced-motion:reduce){
  #homeView #gigsGrid .nw-gig-card:hover,
  #homeView #gigsGrid .nw-gig-card:focus-within{
    transform:none!important;
  }
}


/* NABWORK 5.2 — real service-card touch ergonomics and legibility.
 * No pricing, checkout, order buttons, ratings logic or data source changes.
 */
#homeView #gigsGrid .nw-gig-favorite{
  min-width:44px;
  min-height:44px;
  width:44px;
  height:44px;
  border-radius:13px;
}
#homeView #gigsGrid .nw-gig-title{
  overflow-wrap:anywhere;
  hyphens:auto;
  line-height:1.64;
}
#homeView #gigsGrid .nw-gig-skill{
  line-height:1.55;
  min-height:28px;
}
#homeView #gigsGrid .nw-gig-seller-name{
  overflow-wrap:anywhere;
  line-height:1.6;
}
#homeView #gigsGrid .nw-gig-card :is(button,a):focus-visible{
  outline:3px solid #167ab6;
  outline-offset:3px;
}
body.dark-mode #homeView #gigsGrid .nw-gig-card{
  box-shadow:0 14px 36px rgba(0,8,20,.23)!important;
  border-color:#415b74!important;
}
body.dark-mode #homeView #gigsGrid .nw-gig-category{
  background:rgba(6,23,43,.94)!important;
  color:#fff;
  border-color:rgba(155,210,236,.25);
}
body.dark-mode #homeView #gigsGrid .nw-gig-favorite{
  background:#e9f7ff!important;
  color:#123454;
  border-color:#b9d7e7;
}
body.dark-mode #homeView #gigsGrid .nw-gig-favorite:hover{
  background:#fff!important;
}
body.dark-mode #homeView #gigsGrid .nw-gig-skill{
  background:#27465a;
  border-color:#45667b;
  color:#e1f4fa;
}
body.dark-mode #homeView #gigsGrid .nw-gig-review{
  color:#ffdc99;
}
body.dark-mode #homeView #gigsGrid .nw-gig-card :is(a,button):focus-visible{
  outline-color:#66d9f8;
}
@media(max-width:420px){
  #homeView #gigsGrid .nw-gig-content{
    padding:18px;
  }
  #homeView #gigsGrid .nw-gig-foot{
    padding:15px 18px 16px;
  }
  #homeView #gigsGrid .nw-gig-title{
    font-size:15px;
    line-height:1.64;
  }
}
@media(prefers-reduced-motion:reduce){
  #homeView #gigsGrid .nw-gig-card,
  #homeView #gigsGrid .nw-gig-media > img{
    transition:none!important;
  }
}


/* NABWORK Design 5.3 — genuine profile listing card hierarchy and dark contrast.
 * CSS-only: preserve actual reviews, prices, images, and event handlers.
 */
#profileView .nab23-gig-card{border-radius:19px;box-shadow:0 10px 30px rgba(12,43,78,.07)}
#profileView .nab23-gig-title{line-height:1.62;overflow-wrap:anywhere;text-wrap:pretty}
#profileView .nab23-gig-info{gap:11px}
#profileView .nab23-gig-foot{line-height:1.58;border-top-color:#e1ebf2}
#profileView .nab23-gig-card :is(button,a):focus-visible,
#profileView .nab23-portfolio-item:focus-visible{
  outline:3px solid #168fc7;outline-offset:3px;
}
body.dark-mode #profileView .nab23-gig-card{
  background:#1a2d45;border-color:#3c5870;
  box-shadow:0 12px 29px rgba(0,9,22,.23);
}
body.dark-mode #profileView .nab23-gig-title,
body.dark-mode #profileView .nab23-gig-foot strong{color:#f5fbff}
body.dark-mode #profileView .nab23-gig-category{color:#8fdee9}
body.dark-mode #profileView .nab23-gig-foot{
  border-top-color:#3e5971;color:#c9ddea;
}
body.dark-mode #profileView .nab23-gig-card :is(button,a):focus-visible,
body.dark-mode #profileView .nab23-portfolio-item:focus-visible{outline-color:#82d9ef}
@media(max-width:760px){
  #profileView .nab23-gig-card{border-radius:17px}
  #profileView .nab23-gig-info{padding:17px}
  #profileView .nab23-gig-title{min-height:0}
}
@media(prefers-reduced-motion:reduce){
  #profileView .nab23-gig-card:hover{transform:none!important}
}
