/* NABWORK v67 — premium workspace system for desktop and mobile.
 * Only presentation: header navigation menus, member dashboard, public
 * freelancer profile, and order workspace. Home hero/category rails untouched.
 * No JS/financial/auth/AI changes. Use existing real data and actions.
 */
:root{
  --nw67-blue:#0869dd;
  --nw67-blue-soft:#eef5ff;
  --nw67-ink:#142943;
  --nw67-muted:#63768b;
  --nw67-line:#e4ebf3;
  --nw67-shadow:0 9px 29px rgba(27,54,91,.055);
}

/* A. HEADER MENUS — readable hierarchy, not more controls */
.nab-header .nab-nav-popover{
  border:1px solid var(--nw67-line)!important;
  background:#fff!important;
  border-radius:17px!important;
  box-shadow:0 22px 60px rgba(15,37,67,.14)!important;
  padding:9px!important;
  min-width:226px;
}
.nab-header .nw67-menu-caption{
  display:block;
  padding:11px 12px 5px;
  color:#8190a3;
  font:700 10px/1.6 "Noto Sans Georgian",sans-serif;
  letter-spacing:.04em;
  pointer-events:none;
}
.nab-header .nab-nav-popover .nab-menu-link{
  min-height:42px;
  padding:10px 12px!important;
  border-radius:10px;
  color:#33465e;
  font-size:12px;
  font-weight:620;
  transition:background .16s,color .16s;
}
.nab-header .nab-nav-popover .nab-menu-link:hover,
.nab-header .nab-nav-popover .nab-menu-link:focus-visible{
  color:var(--nw67-blue)!important;
  background:var(--nw67-blue-soft)!important;
}
.nab-header .nab-nav-popover .nab-menu-link[aria-current="page"]{
  color:#075ab8!important;
  background:#edf5ff!important;
}
.nab-header #mobileMenu{
  border:1px solid var(--nw67-line)!important;
  background:#fff!important;
  border-radius:19px!important;
  padding:15px 13px 17px!important;
  box-shadow:0 25px 60px rgba(18,43,75,.18)!important;
  gap:8px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  overscroll-behavior:contain;
}
.nab-header #mobileMenu .nw67-mobile-section{
  grid-column:1/-1;
  margin:8px 2px 1px;
  color:#7b899d;
  font-size:10px;
  letter-spacing:.035em;
  font-weight:750;
  line-height:1.5;
}
.nab-header #mobileMenu .nw67-mobile-section:first-child{
  margin-top:0;
}
.nab-header #mobileMenu > button{
  min-width:0;
  min-height:47px!important;
  border:1px solid #e5ebf3!important;
  border-radius:11px!important;
  background:#f8fafd!important;
  color:#2c4260!important;
  font-size:11px!important;
  font-weight:640!important;
  line-height:1.45!important;
  padding:10px 12px!important;
  text-align:left;
  overflow-wrap:anywhere;
  transition:background .16s,border-color .16s;
}
.nab-header #mobileMenu > button:hover,
.nab-header #mobileMenu > button:focus-visible{
  background:#edf5ff!important;
  border-color:#bddafa!important;
  color:#075dbc!important;
}
.nab-header #mobileMenu > button[aria-current="page"]{
  background:#eaf3ff!important;
  border-color:#bad5f4!important;
  color:#075dbb!important;
}
.nab-header #mobileMenu > button[onclick*="openCreateGigModal"]{
  background:#0869dd!important;
  border-color:#0869dd!important;
  color:#fff!important;
  text-align:center;
  font-weight:750!important;
}
.nab-header #mobileMenu > button[onclick*="openCreateGigModal"]:hover{
  background:#075abd!important;
}
.nab-header #mobileMenu #nabMobileLogout{
  background:#fff7f7!important;
  color:#b2484e!important;
  border-color:#f5e1e2!important;
}
.nab-header #mobileMenu #nab64MenuLanguage{
  background:#f7faff!important;
  color:#365e97!important;
  border-color:#e0eafa!important;
}
@media(min-width:1200px){
  .nab-header .nab-desktop-navigation .nab-nav-link{
    font-size:12.5px;
    font-weight:660;
    border-radius:10px;
  }
}

/* B. STUDIO — compact work-first dashboard, no unrelated decoration */
#dashboardView.nab7-studio{
  max-width:1500px!important;
  padding-top:24px!important;
  color:var(--nw67-ink);
}
#dashboardView .nab7-layout{
  grid-template-columns:218px minmax(0,1fr);
  gap:22px;
}
#dashboardView .nab7-main{gap:16px}
#dashboardView .nab7-sidebar{
  top:95px;
  border:1px solid var(--nw67-line);
  border-radius:18px;
  padding:16px 11px;
  box-shadow:var(--nw67-shadow);
}
#dashboardView .nab7-sidebar-label{
  color:#2e5fa4;
  font-weight:800;
  letter-spacing:.035em;
  padding:8px 11px 10px;
}
#dashboardView .nab7-side-nav{gap:3px}
#dashboardView .nab7-side-nav .nw67-side-section{
  color:#8190a2;
  font-size:10px;
  font-weight:730;
  letter-spacing:.025em;
  line-height:1.5;
  margin:13px 10px 5px;
}
#dashboardView .nab7-side-nav .nw67-side-section:first-child{margin-top:3px}
#dashboardView .nab7-side-nav button{
  min-height:43px;
  padding:10px 11px;
  border-radius:10px;
  font-size:12px;
  font-weight:625;
  color:#45556c;
}
#dashboardView .nab7-side-nav button:first-child{
  background:transparent;
  border:1px solid transparent;
  color:#45556c;
}
#dashboardView .nab7-side-nav button:first-of-type{
  background:#eef5ff;
  color:#095fc2;
  border:1px solid #dbe9fc;
}
#dashboardView .nab7-side-icon{
  width:25px;
  flex-basis:25px;
  font-size:17px;
  color:#4475aa;
}
#dashboardView .nab7-side-nav button:hover,
#dashboardView .nab7-side-nav button:focus-visible{
  background:#eaf3ff;
  color:#075dc2;
}
#dashboardView .nab7-side-promo{
  margin:19px 2px 0;
  padding:16px;
  background:#f1f7ff;
  border:1px solid #deebff;
  border-radius:15px;
}
#dashboardView .nab7-side-promo strong{font-size:12px;font-weight:780}
#dashboardView .nab7-side-promo p{font-size:11px;line-height:1.65}
#dashboardView.nab7-studio .nab25-hero{
  position:relative;
  min-height:185px!important;
  padding:27px 30px!important;
  border-radius:20px!important;
  border:1px solid #dce8f9!important;
  background:linear-gradient(116deg,#f7faff 0%,#edf5ff 71%,#eef3fc 100%)!important;
  box-shadow:0 14px 37px rgba(21,67,125,.055)!important;
}
#dashboardView.nab7-studio .nab25-hero::before,
#dashboardView.nab7-studio .nab25-hero::after,
#dashboardView.nab7-studio .nw11-studio-points{
  display:none!important;
  content:none!important;
}
#dashboardView .nab25-hero-head,
#dashboardView #dashboardGreeting,
#dashboardView .nab25-hero>p{
  max-width:100%!important;
  width:auto;
}
#dashboardView #dashboardGreeting{
  font-size:clamp(22px,2.4vw,31px);
  letter-spacing:-.025em;
  line-height:1.36;
  margin:11px 0 6px;
  color:#152b48!important;
}
#dashboardView .nab25-hero>p{
  font-size:12px;
  line-height:1.65;
  color:#647b91!important;
}
#dashboardView .nab25-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  max-width:100%!important;
  margin-top:19px;
}
#dashboardView .nab25-hero-actions .nab25-btn{
  border-radius:11px!important;
  min-height:42px!important;
  font-size:11px;
  font-weight:730;
  padding:11px 15px!important;
}
#dashboardView .nab25-hero-actions .nab25-btn-primary{
  background:#0869dd!important;
  color:#fff!important;
  border-color:#0869dd!important;
  box-shadow:0 6px 16px rgba(13,106,220,.15)!important;
}
#dashboardView .nab25-hero-actions .nab25-btn-glass{
  color:#275075;
  background:#fff;
  border:1px solid #dbe5f1;
}
#dashboardView .nab25-nav{
  padding:5px 7px;
  gap:5px;
  border:1px solid var(--nw67-line);
  border-radius:14px;
  box-shadow:none;
}
#dashboardView .nab25-nav button{
  border-radius:9px;
  font-size:11px;
  font-weight:680;
  min-height:39px;
}
#dashboardView .nab25-level-band{
  padding:13px 18px;
  border:1px solid var(--nw67-line);
  box-shadow:none;
}
#dashboardView .nab25-metric{
  min-height:121px;
  border:1px solid var(--nw67-line);
  border-radius:16px;
  box-shadow:var(--nw67-shadow);
  padding:17px 15px!important;
}
#dashboardView .nab25-metric-label{
  color:#63758b;
  font-size:11px;
  font-weight:670;
}
#dashboardView .nab25-metric-icon{
  width:34px;
  height:34px;
  flex-basis:34px;
  border-radius:10px;
  font-size:17px;
}
#dashboardView .nab25-metric>strong{
  font-size:clamp(23px,2.2vw,30px);
  color:#122b48;
}
#dashboardView .nab25-metric>small{font-size:10px;color:#78889b}
#dashboardView .nab25-panel,
#dashboardView .nab7-chart{
  border:1px solid var(--nw67-line);
  border-radius:17px!important;
  box-shadow:var(--nw67-shadow);
}
#dashboardView .nab25-section-title h3,
#dashboardView .nab7-chart h3{
  font-weight:780;
  letter-spacing:-.012em;
}
#dashboardView .nab25-checklist .nab25-check{
  border-radius:11px;
  background:#f7faff;
  border:1px solid #e8eff8;
  min-height:53px;
}
#dashboardView .nab25-checklist .nab25-check:hover{border-color:#bbd7f6;background:#f0f7ff}
#dashboardView .nab7-chart{padding:17px}
#dashboardView .nab7-chart-board{
  /* A decorative flat line must never masquerade as real history. */
  display:none!important;
}
#dashboardView .nab7-chart-caption{
  margin-top:9px;
  padding:10px 12px;
  background:#f6f9fe;
  border-radius:10px;
}
#dashboardView .nab25-finance,
#dashboardView .nab25-services-section{border-color:var(--nw67-line)}
#dashboardView .nab25-gig{border-color:var(--nw67-line)}

/* C. PUBLIC PROFILE — editorial identity, real work before decoration */
#profileView.nab8-profile{max-width:1250px!important}
#profileView.nab8-profile .nab8-profile-shell{
  border-color:var(--nw67-line)!important;
  border-radius:21px!important;
  box-shadow:var(--nw67-shadow)!important;
}
#profileView.nab8-profile .nw94-cover.nab81-cover{
  height:clamp(168px,18vw,225px)!important;
  background:linear-gradient(120deg,#daeafa,#edf5ff 65%,#e2f0fb)!important;
}
#profileView.nab8-profile .nab81-profile-head{
  padding-bottom:23px!important;
  gap:clamp(13px,1.8vw,23px)!important;
}
#profileView.nab8-profile .nab81-profile-head .nab23-name-row h1{
  font-weight:820!important;
  letter-spacing:-.025em;
  line-height:1.28;
}
#profileView .nw94-intro{line-height:1.72;font-size:12.5px}
#profileView .nw94-mini-skills span{
  background:#f2f6fb;
  border:1px solid #e2ebf5;
  font-weight:650;
  color:#365c82;
}
#profileView.nab8-profile .nab23-status-tags span{
  font-weight:650;
  background:#f8fafd;
}
#profileView.nab8-profile .nab81-profile-head .nab23-profile-actions button{
  min-height:42px!important;
  font-weight:720;
  border-radius:11px!important;
}
#profileView.nab8-profile .nab8-profile-metrics{
  border-color:var(--nw67-line)!important;
}
#profileView.nab8-profile .nab81-tabs{
  justify-content:flex-start;
  margin:10px 0 18px!important;
  border-color:var(--nw67-line);
  scrollbar-width:thin;
}
#profileView.nab8-profile .nab81-tabs a{
  font-size:12px;
  font-weight:650;
  padding:13px 16px!important;
}
#profileView.nab8-profile .nab81-layout .nab23-panel{
  border-color:var(--nw67-line);
  border-radius:16px!important;
  box-shadow:none!important;
}
#profileView.nab8-profile .nab81-grid{gap:10px}
#profileView.nab8-profile .nab81-grid .nab23-portfolio-item{
  border-radius:11px!important;
}
#profileView.nab8-profile .nab23-panel-title h2{font-weight:760;letter-spacing:-.015em}
#profileView .nw94-completion{
  color:#135db0;
  background:#eff6ff;
  border-color:#d9eaff;
}

/* D. ORDERS — projects first, controls without UI clutter */
#ordersView.nab10-orders{max-width:1510px!important}
#ordersView .nab10-aside{
  border:1px solid var(--nw67-line);
  border-radius:18px;
  box-shadow:var(--nw67-shadow);
}
#ordersView .nab10-aside button{font-size:12px;font-weight:670}
#ordersView .nab10-aside-foot{
  background:#f2f7ff;
  border-color:#e1eafa;
}
#ordersView .nab26-hero{
  border:1px solid #dde9f8!important;
  background:linear-gradient(116deg,#f7faff,#edf5ff)!important;
  border-radius:19px!important;
  box-shadow:var(--nw67-shadow)!important;
  padding:24px!important;
}
#ordersView .nab26-hero h2{
  font-size:clamp(23px,2.2vw,30px);
  font-weight:820;
  letter-spacing:-.025em;
}
#ordersView .nab26-overview article{
  min-height:115px;
  border:1px solid var(--nw67-line);
  border-radius:15px;
  box-shadow:var(--nw67-shadow);
  padding:15px!important;
}
#ordersView .nab26-overview article strong{font-size:clamp(23px,2.2vw,30px)}
#ordersView .nab26-toolbar{
  padding:17px!important;
  border-radius:15px;
  border-color:var(--nw67-line);
  box-shadow:var(--nw67-shadow);
}
#ordersView .nab26-search{
  background:#fbfcfe;
  border-color:#dbe5f1;
}
#ordersView .nab10-order-choice{
  border:1px solid var(--nw67-line);
  border-radius:14px;
  box-shadow:none;
}
#ordersView .nab10-order-choice[aria-pressed="true"]{
  background:#f2f7ff;
  border-color:#9dc4f5;
  box-shadow:0 0 0 1px #c2daff;
}
#ordersView .nab26-order-card{
  border:1px solid var(--nw67-line)!important;
  border-radius:17px!important;
  box-shadow:var(--nw67-shadow)!important;
}

/* E. MOBILE — keep the same design, no sideways overflow */
@media(max-width:990px){
  /* Collapse the desktop sidebar column before it is hidden on tablets. */
  #dashboardView .nab7-layout{grid-template-columns:minmax(0,1fr)}
  #dashboardView .nab7-main{gap:13px}
  #dashboardView .nab7-mobile-nav{
    background:rgba(255,255,255,.97);
    border:1px solid #dfe9f4;
    box-shadow:0 10px 30px rgba(16,49,86,.09);
    border-radius:15px;
  }
  #dashboardView .nab7-mobile-nav button{font-weight:660}
}
@media(max-width:720px){
  #dashboardView.nab7-studio{
    padding:12px 12px 78px!important;
  }
  #dashboardView.nab7-studio .nab25-hero{
    min-height:0!important;
    padding:22px 19px!important;
    border-radius:17px!important;
  }
  #dashboardView.nab7-studio .nab25-hero::before{
    display:none!important;
    content:none!important;
    background:none!important;
  }
  #dashboardView #dashboardGreeting{
    font-size:clamp(22px,5.3vw,26px);
    margin:10px 0 7px;
  }
  #dashboardView .nab25-hero-actions{
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:17px;
  }
  #dashboardView .nab25-hero-actions .nab25-btn{
    padding:11px 10px!important;
    min-height:43px!important;
    line-height:1.35;
    font-size:10.5px;
  }
  #dashboardView .nab25-hero-actions .nab25-btn:last-child{
    grid-column:1/-1;
  }
  #dashboardView .nab25-nav{overflow-x:auto;padding:4px}
  #dashboardView .nab25-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  #dashboardView .nab25-metric{
    min-height:113px;
    padding:12px!important;
  }
  #dashboardView .nab25-metric>strong{font-size:23px}
  #dashboardView .nab25-level-band{padding:12px 13px}
  #dashboardView .nab25-checklist .nab25-check{min-height:50px}
  #dashboardView .nab25-focus-grid{grid-template-columns:minmax(0,1fr)}
  #profileView.nab8-profile{padding:12px 11px 74px!important}
  #profileView.nab8-profile .nab8-profile-shell{border-radius:17px!important}
  #profileView.nab8-profile .nw94-cover.nab81-cover{
    height:clamp(128px,35vw,166px)!important;
  }
  #profileView.nab8-profile .nab81-profile-head{
    padding-bottom:17px!important;
  }
  #profileView.nab8-profile .nab81-profile-head .nab23-name-row h1{
    font-size:clamp(20px,5.6vw,26px)!important;
  }
  #profileView.nab8-profile .nab81-tabs{
    justify-content:flex-start;
    gap:1px;
    padding-inline:6px!important;
  }
  #profileView.nab8-profile .nab81-tabs a{
    padding:11px 11px!important;
    font-size:11px;
  }
  #profileView.nab8-profile .nab81-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  #profileView.nab8-profile .nab81-grid .nab23-portfolio-item{
    border-radius:8px!important;
  }
  #ordersView.nab10-orders{padding:12px 12px 84px!important}
  #ordersView .nab26-hero{
    padding:19px 17px!important;
    border-radius:17px!important;
  }
  #ordersView .nab26-hero h2{
    font-size:clamp(21px,5.7vw,26px);
  }
  #ordersView .nab26-overview article{
    min-height:105px;
    padding:13px!important;
  }
  #ordersView .nab26-toolbar{padding:14px!important}
  #ordersView .nab10-panes{min-width:0}
}
@media(max-width:385px){
  #dashboardView.nab7-studio .nab25-hero{
    padding:19px 15px!important;
  }
  #dashboardView .nab25-hero-actions{
    grid-template-columns:minmax(0,1fr);
  }
  #dashboardView .nab25-hero-actions .nab25-btn:last-child{
    grid-column:auto;
  }
  #dashboardView .nab7-mobile-nav button{font-size:8px}
  #profileView.nab8-profile .nab81-tabs a{font-size:10px;padding:10px 9px!important}
  .nab-header #mobileMenu{padding:12px 10px!important;gap:6px!important}
  .nab-header #mobileMenu > button{font-size:10.5px!important;padding:10px!important}
}
@media(prefers-reduced-motion:reduce){
  #dashboardView.nab7-studio :is(button,a),
  #profileView.nab8-profile :is(button,a),
  #ordersView.nab10-orders :is(button,a),
  .nab-header #mobileMenu button{transition:none!important}
}

/* Dark theme parity for the refreshed workspaces */
body.dark-mode .nab-header #mobileMenu,
body.dark-mode .nab-header .nab-nav-popover{
  background:#1e3047!important;
  border-color:#3c5270!important;
}
body.dark-mode .nab-header #mobileMenu > button{
  background:#253b55!important;
  color:#d9e8f7!important;
  border-color:#405675!important;
}
body.dark-mode .nab-header #mobileMenu .nw67-mobile-section,
body.dark-mode .nab-header .nw67-menu-caption,
body.dark-mode #dashboardView .nw67-side-section{color:#bacbdf}
body.dark-mode .nab-header #mobileMenu > button[onclick*="openCreateGigModal"]{
  background:#0869dd!important;color:#fff!important;border-color:#0869dd!important
}
body.dark-mode #dashboardView.nab7-studio .nab25-hero{
  background:linear-gradient(113deg,#243b59,#203f62)!important;
  border-color:#3d5575!important;
}
body.dark-mode #dashboardView .nab25-metric,
body.dark-mode #dashboardView .nab7-sidebar,
body.dark-mode #dashboardView .nab25-panel,
body.dark-mode #dashboardView .nab7-chart,
body.dark-mode #dashboardView .nab25-level-band,
body.dark-mode #dashboardView .nab25-nav{
  background:#1d3149!important;border-color:#3c5573!important;
}
body.dark-mode #dashboardView .nab25-hero-actions .nab25-btn-glass{
  background:#294763;color:#e2effe;border-color:#4c6684;
}
body.dark-mode #dashboardView .nab7-side-promo,
body.dark-mode #dashboardView .nab7-chart-caption,
body.dark-mode #dashboardView .nab25-checklist .nab25-check{
  background:#29435e;border-color:#446381;color:#e4effc;
}
body.dark-mode #dashboardView .nab7-side-nav button:first-of-type{
  background:#284b77;color:#cce3ff;border-color:#426799;
}
body.dark-mode #profileView.nab8-profile .nw94-cover.nab81-cover{
  background:linear-gradient(120deg,#28466b,#244665)!important;
}
body.dark-mode #profileView.nab8-profile .nw94-mini-skills span,
body.dark-mode #profileView.nab8-profile .nab23-status-tags span{
  background:#263c55;color:#d4e8fb;border-color:#425b77;
}
body.dark-mode #ordersView .nab26-hero{
  background:linear-gradient(116deg,#25405f,#214768)!important;
  border-color:#466484!important;
}

/* Translation of newly grouped navigation labels; existing i18n owns buttons. */
html[lang="en"] .nw67-ka{display:none!important}
html:not([lang="en"]) .nw67-en{display:none!important}
