/* NEXUM GLOBAL | distinct desktop workspace + mobile-first touch interface.
   The underlying app/RPCs are unchanged: layout and navigation only. */
:root{
  --nx-ui-bg:#0c0d13;
  --nx-ui-panel:#181822;
  --nx-ui-border:rgba(185,170,209,.16);
  --nx-ui-soft:#a49ab3;
  --nx-ui-purple:#986aff;
  --nx-ui-coral:#57cfe7;
}
#nx-shell-sidebar,.nx-shell-header-context,.nx-shell-mobile-context{display:none}
.nx-shell-sidebar *{box-sizing:border-box}
.nx-shell-nav-active:focus-visible{outline:2px solid #aee8f3;outline-offset:2px}
@media (min-width:1180px){
  body[data-nx-layout="desktop"]{
    --nx-sidebar-width:258px;
    display:block!important;
    min-height:100vh;
    background:
      radial-gradient(ellipse 60% 65% at 86% 10%,rgba(44,87,133,.12),transparent 70%),
      linear-gradient(120deg,#0c0d13,#10101a 62%,#11111c);
    font-family:Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  }
  body[data-nx-layout="desktop"]::before{
    background:radial-gradient(ellipse 60% 40% at 93% 3%,rgba(57,148,166,.08),transparent 75%);
    opacity:.7;
  }
  body[data-nx-layout="desktop"] .nx-shell-sidebar{
    display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;
    width:var(--nx-sidebar-width);z-index:60;overflow:hidden;
    background:linear-gradient(174deg,#14121e 0%,#111019 57%,#0c0d14 100%);
    border-right:1px solid rgba(113,177,189,.21);
    box-shadow:14px 0 50px rgba(0,0,0,.15);
  }
  body[data-nx-layout="desktop"] .nx-shell-sidebar::before{
    content:"";position:absolute;left:0;top:0;width:3px;height:176px;
    background:linear-gradient(180deg,#51c9e1,#8d57ee,transparent);
    pointer-events:none;
  }
  body[data-nx-layout="desktop"] .nx-shell-logo{
    display:flex;align-items:center;min-height:87px;gap:11px;
    padding:20px 18px 19px 22px;color:#fff;text-decoration:none;
    border-bottom:1px solid rgba(160,141,190,.12);
  }
  body[data-nx-layout="desktop"] .nx-shell-logo-mark{
    display:grid;place-items:center;flex:0 0 42px;height:42px;
    font:italic 900 29px/1 Impact,Arial,sans-serif;
    color:white;background:linear-gradient(150deg,#5dd1e8,#3269a4);
    clip-path:polygon(19% 0,100% 0,83% 100%,0 100%);
    filter:drop-shadow(0 4px 9px #64d3e944);
  }
  body[data-nx-layout="desktop"] .nx-shell-logo-type{
    font:900 22px/1.02 Inter,Arial,sans-serif;letter-spacing:-.05em;white-space:nowrap;
  }
  body[data-nx-layout="desktop"] .nx-shell-logo-type small{
    display:block;margin-top:4px;color:#a7c7ce;font-size:9px;
    font-weight:840;letter-spacing:.41em;
  }
  body[data-nx-layout="desktop"] .nx-shell-logo-chevron{
    color:#82cedd;font-size:8px;margin-left:auto;opacity:.75;
  }
  body[data-nx-layout="desktop"] .nx-shell-side-caption{
    display:flex;align-items:center;gap:9px;
    padding:18px 21px 8px;
    font-size:9px;letter-spacing:.12em;font-weight:850;color:#8fbbc4;
  }
  body[data-nx-layout="desktop"] .nx-shell-online-dot{
    width:7px;height:7px;border-radius:50%;background:#8cdcec;
    box-shadow:0 0 0 3px #58b2c422;flex:none;
  }
  body[data-nx-layout="desktop"] .nx-shell-caption-version{
    margin-left:auto;font-size:8px;letter-spacing:.1em;color:#766c86;
  }
  body[data-nx-layout="desktop"] .nx-shell-navigation{
    flex:1;overflow-y:auto;overflow-x:hidden;padding:13px 12px 25px;
    scrollbar-width:thin;scrollbar-color:#44607d transparent;
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-group{
    padding-bottom:15px;margin-bottom:12px;border-bottom:1px solid rgba(146,190,199,.10);
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-group:last-child{border-bottom:0}
  body[data-nx-layout="desktop"] .nx-shell-group-header{
    margin:0 0 8px 10px;display:flex;align-items:center;gap:7px;
    letter-spacing:.13em;font-size:9px;font-weight:900;color:#6499a4;
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-list{display:grid;gap:3px}
  body[data-nx-layout="desktop"] .nx-shell-nav-item{
    display:flex;align-items:center;gap:11px;min-height:39px;
    width:100%;position:relative;overflow:hidden;
    border:1px solid transparent;border-radius:10px;
    padding:8px 10px 8px 12px;
    color:#a3c3c9;font-size:12px;font-weight:690;letter-spacing:-.01em;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
  }
  body[data-nx-layout="desktop"] .nx-shell-item-icon{
    display:grid;place-items:center;flex:0 0 17px;height:20px;color:#6ea0aa;
  }
  body[data-nx-layout="desktop"] .nx-shell-item-icon svg{width:17px;height:17px}
  body[data-nx-layout="desktop"] .nx-shell-item-text{min-width:0;flex:1}
  body[data-nx-layout="desktop"] .nx-shell-nav-item:hover{
    background:rgba(103,183,199,.105);border-color:rgba(133,205,220,.12);color:#fff;
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-item:hover .nx-shell-item-icon{color:#ace7f3}
  body[data-nx-layout="desktop"] .nx-shell-nav-item.nx-shell-nav-active{
    background:linear-gradient(90deg,rgba(69,161,179,.30),rgba(70,160,178,.075));
    border-color:rgba(119,198,213,.22);color:white;font-weight:820;
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-item.nx-shell-nav-active:before{
    content:"";position:absolute;top:7px;bottom:7px;left:0;width:3px;
    border-radius:0 5px 5px 0;background:#70d6eb;box-shadow:0 0 12px #60cde388;
  }
  body[data-nx-layout="desktop"] .nx-shell-nav-item.nx-shell-nav-active .nx-shell-item-icon{color:#abe7f3}
  body[data-nx-layout="desktop"] .nx-shell-side-dot{width:5px;height:5px;background:#94ddeb;border-radius:100%}
  body[data-nx-layout="desktop"] .nx-shell-side-footer{
    display:flex;align-items:center;gap:10px;min-height:69px;
    padding:13px 18px;border-top:1px solid rgba(116,179,192,.16);
    background:#13111b;
  }
  body[data-nx-layout="desktop"] .nx-shell-footer-symbol{
    width:34px;height:34px;border:1px solid #3e5771;border-radius:10px;
    background:#282034;color:#aae0eb;display:grid;place-items:center;
  }
  body[data-nx-layout="desktop"] .nx-shell-footer-symbol svg{width:17px;height:17px}
  body[data-nx-layout="desktop"] .nx-shell-side-footer strong{
    display:block;font-size:10px;letter-spacing:.07em;color:#eaf5f7;
  }
  body[data-nx-layout="desktop"] .nx-shell-side-footer small{
    display:block;margin-top:3px;font-size:10px;color:#6399a4;
  }
  body[data-nx-layout="desktop"] header.top{
    position:fixed;left:var(--nx-sidebar-width);right:0;top:0;height:80px;
    z-index:45;min-height:0;display:flex;align-items:center;
    border:0;border-bottom:1px solid rgba(161,199,206,.15);
    padding:13px clamp(22px,3vw,52px);margin:0;
    background:rgba(17,16,25,.94);backdrop-filter:blur(22px);
    box-shadow:0 10px 30px rgba(0,0,0,.13);
  }
  body[data-nx-layout="desktop"] header.top::after{
    display:none!important;
  }
  body[data-nx-layout="desktop"] header.top .brand,
  body[data-nx-layout="desktop"] header.top .mainnav,
  body[data-nx-layout="desktop"] header.top .mobile-bottom{display:none!important}
  body[data-nx-layout="desktop"] header.top .nx-shell-header-context{
    display:flex;align-items:center;gap:12px;flex:1;min-width:0;
  }
  body[data-nx-layout="desktop"] header.top .nx-shell-context-mark{
    width:40px;height:40px;display:grid;place-items:center;flex:none;
    border-radius:12px;color:#ace4f0;background:linear-gradient(145deg,#24374c,#192634);
    border:1px solid #3f5974;
  }
  body[data-nx-layout="desktop"] header.top .nx-shell-context-mark svg{width:19px;height:19px}
  body[data-nx-layout="desktop"] header.top .nx-shell-header-context>div:last-child{
    display:flex;flex-direction:column;gap:3px;min-width:0;
  }
  body[data-nx-layout="desktop"] #nx-shell-breadcrumb{
    color:#7da9b2;letter-spacing:.14em;font-size:9px;font-weight:850;
  }
  body[data-nx-layout="desktop"] #nx-shell-context-title{
    color:#f8f5fd;font-size:16px;font-weight:820;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body[data-nx-layout="desktop"] .toptools{margin-left:auto;gap:12px}
  body[data-nx-layout="desktop"] .toptools #auth-btn{
    background:linear-gradient(115deg,#399aad,#40abc0);border:1px solid rgba(175,232,244,.23);
    color:#fff;min-height:41px;border-radius:10px;padding:10px 19px;
    box-shadow:0 6px 18px rgba(60,147,165,.14);font-weight:800;
  }
  body[data-nx-layout="desktop"] .toptools select{
    min-height:41px;background:#242033;border:1px solid #3e5771;
    border-radius:10px;color:#ebf9fc;padding:9px 11px;font-size:12px;font-weight:700;
  }
  body[data-nx-layout="desktop"] main{
    width:auto!important;max-width:none!important;
    min-width:0;margin:0 0 0 var(--nx-sidebar-width)!important;
    padding:108px clamp(22px,3.2vw,58px) 55px;
  }
  body[data-nx-layout="desktop"] main>.page.inner,
  body[data-nx-layout="desktop"] main>.page.home{max-width:1550px!important;margin:0 auto;width:100%;padding:0 0 50px!important;min-height:0}
  body[data-nx-layout="desktop"] main>.page.inner .heading{
    margin:0 0 22px;display:flex;align-items:end;justify-content:space-between;
    padding-bottom:17px;border-bottom:1px solid rgba(135,181,190,.13);
  }
  body[data-nx-layout="desktop"] main>.page.inner .heading h1,
  body[data-nx-layout="desktop"] .tr-heading h1{
    font-family:Inter,"Segoe UI",system-ui,sans-serif;
    font-size:clamp(30px,3vw,43px)!important;letter-spacing:-.055em!important;
    font-weight:900;line-height:1.1;
  }
  body[data-nx-layout="desktop"] .heading>a[href="#/"]{font-size:11px;border-radius:10px}
  body[data-nx-layout="desktop"] .page.inner>.tabs{display:none!important}
  body[data-nx-layout="desktop"] .page.inner>.mobile-section-nav,
  body[data-nx-layout="desktop"] .page.inner>.mobile-back{display:none!important}
  body[data-nx-layout="desktop"] .page.inner .panel,
  body[data-nx-layout="desktop"] .page.inner .nxsp-page{
    border:1px solid rgba(150,194,203,.17);
    background:linear-gradient(135deg,rgba(28,26,39,.95),rgba(19,20,29,.96));
    box-shadow:0 14px 45px rgba(0,0,0,.115);
    border-radius:18px;
  }
  body[data-nx-layout="desktop"] .page.inner .panel{padding:clamp(20px,2vw,30px)}
  body[data-nx-layout="desktop"] .page.inner .panelhead{
    padding-bottom:15px;margin-bottom:19px;border-bottom:1px solid rgba(143,185,193,.13);
    display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  }
  body[data-nx-layout="desktop"] .page.inner .panel h2{font-weight:850;letter-spacing:-.035em}
  body[data-nx-layout="desktop"] .page.inner input,
  body[data-nx-layout="desktop"] .page.inner select,
  body[data-nx-layout="desktop"] .page.inner textarea{
    border-radius:10px;min-height:41px;
  }
  body[data-nx-layout="desktop"] .page.inner .products,
  body[data-nx-layout="desktop"] .page.inner .productgrid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
  }
  body[data-nx-layout="desktop"] .page.inner table{
    width:100%;border-collapse:separate;border-spacing:0;
  }
  body[data-nx-layout="desktop"] .page.inner .rows{
    border-radius:12px;overflow:hidden;
  }
  body[data-nx-layout="desktop"] #page-home>.sphere{display:none}
  body[data-nx-layout="desktop"] #page-home{
    background:none;justify-content:flex-start;align-items:stretch;display:block;
  }
  body[data-nx-layout="desktop"] #page-home .nx-dashboard{
    width:100%;max-width:none!important;margin:0!important;
    display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(310px,1fr);
    gap:18px!important;align-items:stretch;
  }
  body[data-nx-layout="desktop"] #page-home .nx-hello{
    grid-column:1/-1;
    display:flex;align-items:center;justify-content:space-between;
    padding:7px 1px 12px;min-height:105px;
  }
  body[data-nx-layout="desktop"] #page-home .nx-hello h1{
    font-size:clamp(30px,3.1vw,45px)!important;font-weight:900;line-height:1.08;
    letter-spacing:-.055em;
  }
  body[data-nx-layout="desktop"] #page-home .nx-hello p{
    font-size:13px;color:#93bac2;max-width:720px;line-height:1.7;
  }
  body[data-nx-layout="desktop"] #page-home .nx-hello .nx-avatar{
    width:56px;height:56px;min-width:56px;border-radius:17px;
    box-shadow:0 8px 28px rgba(72,163,181,.12);
  }
  body[data-nx-layout="desktop"] #page-home .nx-balance{
    grid-column:1;grid-row:2;min-height:252px;padding:28px 30px;
    border:1px solid #405e7e;border-radius:19px;
    background:
      radial-gradient(ellipse 52% 105% at 91% 6%,rgba(71,180,201,.20),transparent 80%),
      linear-gradient(110deg,#182532,#171621 72%,#151623);
    overflow:hidden;box-shadow:0 22px 50px rgba(0,0,0,.18);
  }
  body[data-nx-layout="desktop"] #page-home .nx-balance strong{
    font-size:clamp(36px,4.2vw,62px);letter-spacing:-.075em;
    line-height:1.18;
  }
  body[data-nx-layout="desktop"] #page-home .nx-balance .nx-balance-top{
    font-size:12px;letter-spacing:.035em;
  }
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts{
    grid-column:2;grid-row:2;
    display:grid!important;grid-template-columns:1fr 1fr!important;
    grid-template-rows:1fr 1fr;gap:12px;
    margin:0!important;align-self:stretch;min-width:0;
  }
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts a{
    min-width:0;min-height:0;width:100%;height:100%;
    border:1px solid rgba(149,198,208,.16);border-radius:16px;
    background:linear-gradient(135deg,#23202f,#171822);
    display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;
    gap:10px;padding:17px 18px;
    transition:transform .16s ease,border-color .16s ease,background .16s ease;
  }
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts a:hover{
    transform:translateY(-2px);border-color:#6ebece;background:#2b223a;
  }
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts a>span{
    display:grid;place-items:center;width:37px;height:37px;border:1px solid #3c5672;
    background:#243547;border-radius:11px;color:#aae1ec;font-size:21px;
  }
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts a small{
    text-align:left;font-size:13px;font-weight:780;color:#ebf5f7;line-height:1.25;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature{
    min-height:154px;display:flex;gap:17px;align-items:center;
    padding:24px;border:1px solid rgba(150,199,209,.18);
    border-radius:17px;
    background:linear-gradient(130deg,#241b31,#161720);
    transition:transform .17s ease,border-color .17s ease;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature:hover{
    transform:translateY(-2px);border-color:#78cedf;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature-savings{
    grid-column:1;grid-row:3;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature-market{
    grid-column:2;grid-row:3;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature-logo{
    width:58px;height:58px;border-radius:15px;display:grid;place-items:center;
    border:1px solid #426081;background:#23364a;font-size:26px;flex:none;
  }
  body[data-nx-layout="desktop"] #page-home .nx-feature strong{font-size:20px;line-height:1.25}
  body[data-nx-layout="desktop"] #page-home .nx-explanation{
    grid-column:1/-1;grid-row:4;margin:0;
    border:1px solid rgba(139,184,193,.16);border-radius:16px;
    background:rgba(26,26,39,.72);padding:20px 24px;
  }
  body[data-nx-layout="desktop"] #page-home .nx-explanation p{
    max-width:950px;line-height:1.7;font-size:13px;
  }
  body[data-nx-layout="desktop"] .nxp-root .nxp-hero,
  body[data-nx-layout="desktop"] .nxp-hero{
    min-height:260px;
  }
  body[data-nx-layout="desktop"] .nxp-stats{gap:15px}
  body[data-nx-layout="desktop"] .nxp-two{gap:17px}
  body[data-nx-layout="desktop"] .tr-heading{padding-top:0!important;margin-top:0!important}
  body[data-nx-layout="desktop"] #page-tesouraria{padding:0 0 55px!important}
}
@media (min-width:1180px) and (max-width:1380px){
  body[data-nx-layout="desktop"]{--nx-sidebar-width:235px}
  body[data-nx-layout="desktop"] #page-home .nx-dashboard{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}
  body[data-nx-layout="desktop"] #page-home .nx-shortcuts a{padding:14px}
  body[data-nx-layout="desktop"] #page-home .nx-balance{padding:23px}
}

/* Mobile/tablet use the pre-existing Nexum styles unchanged. The entire redesigned shell is desktop-only. */
