/* ==========================================================================
   netts.io — Workspace landing (terminal aesthetic)
   /css/workspace.css
   Scoped via body.workspace-page. Applies to workspace/index.php only.
   Does NOT touch dashboard_header.php or any JS hook.
   Loaded after chrome.css and the inline <style> block.
   ========================================================================== */

body.workspace-page{
  --ws-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --ws-font:"Urbanist","Inter",system-ui,-apple-system,Arial,sans-serif;
  --ws-ink:#0b1020;
  --ws-ink-soft:#1a2240;
  --ws-text:#3a4366;
  --ws-muted:#8892b8;
  --ws-text-soft:#5c6690;
  --ws-blue:#2d4bdb;
  --ws-blue-hover:#3e68ff;
  --ws-blue-soft:#eef1ff;
  --ws-line:#e2e6f2;
  --ws-line-soft:#eef0f7;
  --ws-panel:#fbfcff;
  --ws-white:#ffffff;
  --ws-green:#00a86b;
  --ws-amber:#d98a00;
  --ws-red:#d93838;
  --ws-radius:12px;
  --ws-radius-sm:8px;
  --ws-radius-pill:999px;
  font-family:var(--ws-font);
  color:var(--ws-text);
}

/* ==========================================================================
   LEGACY RESETS — strip gradient text-fill from all headings
   ========================================================================== */
body.workspace-page :is(h1,h2,h3,h4,h5,h6){
  background:none !important;
  -webkit-background-clip:initial !important;
  -webkit-text-fill-color:initial !important;
  background-clip:initial !important;
  font-family:var(--ws-font) !important;
  color:var(--ws-ink) !important;
}

body.workspace-page .main-content{
  background:var(--ws-white);
}

/* Hide the mobile "page title + balance" strip — login page has no
   dashboard tab concept, so "Overview" is misleading at any width. */
body.workspace-page .mobile-header-layout,
body.workspace-page .mobile-page-title,
body.workspace-page .navbar-balance-mobile{
  display:none !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
body.workspace-page .workspace-hero{
  padding:clamp(40px,5vw,72px) 0 clamp(32px,4vw,56px) !important;
  background:var(--ws-white) !important;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--ws-line-soft);
}
body.workspace-page .workspace-hero::before,
body.workspace-page .workspace-hero::after{
  content:none !important;
  display:none !important;
}
/* Prompt line above title */
body.workspace-page .workspace-hero .col-lg-6:first-child{
  position:relative;
}
body.workspace-page .workspace-hero .col-lg-6:first-child::before{
  content:"→ netts workspace --launch";
  display:inline-block;
  font-family:var(--ws-mono);
  font-size:12.5px;
  color:var(--ws-blue);
  background:var(--ws-blue-soft);
  border:1px solid rgba(45,75,219,.2);
  padding:5px 12px;
  border-radius:var(--ws-radius-pill);
  margin-bottom:20px;
  letter-spacing:.02em;
}

body.workspace-page .workspace-hero .hero-title{
  font-family:var(--ws-font) !important;
  font-weight:900 !important;
  font-size:clamp(36px,4.5vw,60px) !important;
  line-height:1.05 !important;
  letter-spacing:-.02em !important;
  color:var(--ws-ink) !important;
  margin:0 0 14px !important;
  text-shadow:none !important;
}
body.workspace-page .workspace-hero .hero-subtitle{
  font-family:var(--ws-font) !important;
  font-size:clamp(15px,1.3vw,17px) !important;
  line-height:1.5 !important;
  color:var(--ws-text-soft) !important;
  margin:0 0 22px !important;
}

/* Feature list */
body.workspace-page .workspace-hero .hero-features{
  list-style:none !important;
  padding:0 !important;
  margin:0 0 26px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  border-top:1px dashed var(--ws-line-soft);
  border-bottom:1px dashed var(--ws-line-soft);
}
body.workspace-page .workspace-hero .hero-features li{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  padding:10px 0 !important;
  font-family:var(--ws-mono) !important;
  font-size:13px !important;
  color:var(--ws-text) !important;
  line-height:1.45 !important;
  background:transparent !important;
  border:none !important;
  animation:none !important;
  transform:none !important;
  opacity:1 !important;
}
body.workspace-page .workspace-hero .hero-features li + li{
  border-top:1px dashed var(--ws-line-soft) !important;
}
body.workspace-page .workspace-hero .hero-features li i,
body.workspace-page .workspace-hero .hero-features li::before{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  border-radius:8px !important;
  background:var(--ws-blue-soft) !important;
  color:var(--ws-blue) !important;
  font-size:14px !important;
  flex-shrink:0 !important;
  margin:0 !important;
}
body.workspace-page .workspace-hero .hero-features li span{
  color:var(--ws-text) !important;
  font-family:var(--ws-mono) !important;
  font-size:13px !important;
}

/* Hero buttons */
body.workspace-page .workspace-hero .hero-buttons{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap;
  margin-top:26px !important;
}
body.workspace-page .workspace-hero .workspace-btn{
  background:var(--ws-ink) !important;
  background-image:none !important;
  border:1px solid var(--ws-ink) !important;
  color:var(--ws-white) !important;
  font-family:var(--ws-mono) !important;
  font-weight:500 !important;
  font-size:13.5px !important;
  letter-spacing:.02em !important;
  padding:12px 20px !important;
  border-radius:var(--ws-radius-sm) !important;
  text-decoration:none !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  transition:background .14s ease,border-color .14s ease,transform .14s ease,box-shadow .14s ease !important;
  box-shadow:0 2px 0 rgba(11,16,32,.08),0 6px 20px rgba(11,16,32,.08) !important;
  text-transform:none !important;
}
body.workspace-page .workspace-hero .workspace-btn:hover{
  background:var(--ws-blue) !important;
  border-color:var(--ws-blue) !important;
  color:var(--ws-white) !important;
  transform:translateY(-1px);
  box-shadow:0 2px 0 rgba(45,75,219,.15),0 10px 28px rgba(45,75,219,.22) !important;
}
body.workspace-page .workspace-hero .workspace-btn i{
  font-size:15px !important;
}
/* Second button as secondary (outline) */
body.workspace-page .workspace-hero .workspace-btn#tgLoginBtn,
body.workspace-page .workspace-hero .workspace-btn#logoutBtn{
  background:var(--ws-white) !important;
  color:var(--ws-ink) !important;
  border-color:var(--ws-line) !important;
  box-shadow:none !important;
}
body.workspace-page .workspace-hero .workspace-btn#tgLoginBtn:hover,
body.workspace-page .workspace-hero .workspace-btn#logoutBtn:hover{
  background:var(--ws-blue-soft) !important;
  color:var(--ws-blue) !important;
  border-color:var(--ws-blue) !important;
}

/* Hero image wrapper */
body.workspace-page .workspace-hero .hero-image-wrapper{
  position:relative;
  border-radius:var(--ws-radius) !important;
  overflow:hidden;
  border:1px solid var(--ws-line);
  box-shadow:0 1px 2px rgba(11,16,32,.04),0 24px 60px -24px rgba(11,16,32,.2);
}
body.workspace-page .workspace-hero .hero-image-decoration{
  display:none !important;
}
body.workspace-page .workspace-hero .hero-image{
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--ws-radius) !important;
  animation:none !important;
}

/* ==========================================================================
   SECTION WRAPPERS
   ========================================================================== */
body.workspace-page main,
body.workspace-page .main-content{
  counter-reset:ws-cat;
}
body.workspace-page .integrations-section{
  background:var(--ws-white) !important;
  padding:clamp(48px,6vw,80px) 0 !important;
  border-top:1px solid var(--ws-line-soft);
}
body.workspace-page .integrations-section[style*="--bg-secondary"],
body.workspace-page .integrations-section[style*="bg-secondary"]{
  background:var(--ws-panel) !important;
}

body.workspace-page .section-header{
  text-align:center !important;
  margin-bottom:2.5rem !important;
}
body.workspace-page .section-title{
  font-family:var(--ws-font) !important;
  font-weight:800 !important;
  font-size:clamp(26px,3vw,38px) !important;
  letter-spacing:-.02em !important;
  color:var(--ws-ink) !important;
  margin-bottom:.6rem !important;
  line-height:1.15 !important;
  text-shadow:none !important;
}
body.workspace-page .section-title::before{
  content:"§ ";
  font-family:var(--ws-mono);
  font-weight:500;
  font-size:.6em;
  letter-spacing:.08em;
  color:var(--ws-blue);
  vertical-align:.2em;
  margin-right:.2em;
  opacity:.9;
}
body.workspace-page .section-subtitle{
  font-family:var(--ws-font) !important;
  color:var(--ws-text-soft) !important;
  font-size:15px !important;
  line-height:1.55 !important;
  max-width:680px;
  margin:0 auto !important;
}

/* ==========================================================================
   STATS HIGHLIGHT (Platform Capabilities)
   ========================================================================== */
body.workspace-page .stats-highlight{
  background:var(--ws-white) !important;
  border:1px solid var(--ws-line) !important;
  border-radius:var(--ws-radius) !important;
  padding:28px 32px !important;
  box-shadow:0 1px 2px rgba(11,16,32,.03) !important;
  max-width:1100px;
  margin:0 auto 3rem !important;
  position:relative;
}
body.workspace-page .stats-highlight::before{
  content:"workspace.capabilities";
  position:absolute;
  top:-11px;
  left:24px;
  padding:2px 10px;
  background:var(--ws-white);
  color:var(--ws-blue);
  font-family:var(--ws-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:lowercase;
  border:1px solid var(--ws-line);
  border-radius:6px;
}
body.workspace-page .stats-highlight > h3{
  display:none !important;
}
body.workspace-page .stats-highlight .stats-row{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) !important;
  gap:18px 28px !important;
}
body.workspace-page .stats-highlight .stat-item{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  align-items:center !important;
  text-align:center;
  padding:12px 0 !important;
  border:none !important;
  background:transparent !important;
}
body.workspace-page .stats-highlight .stat-number{
  font-family:var(--ws-mono) !important;
  font-size:clamp(22px,2vw,28px) !important;
  font-weight:700 !important;
  color:var(--ws-ink) !important;
  letter-spacing:-.02em !important;
  line-height:1.1 !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  -webkit-text-fill-color:initial !important;
  background-clip:initial !important;
}
body.workspace-page .stats-highlight .stat-label{
  font-family:var(--ws-mono) !important;
  font-size:11px !important;
  letter-spacing:.06em !important;
  text-transform:lowercase !important;
  color:var(--ws-muted) !important;
  font-weight:500 !important;
}

/* ==========================================================================
   CATEGORY SECTIONS (Core Energy Management, Financial Management, etc.)
   ========================================================================== */
body.workspace-page .category-section{
  max-width:1200px;
  margin:0 auto 3.5rem !important;
  counter-increment:ws-cat;
}
body.workspace-page .category-section:last-child{
  margin-bottom:0 !important;
}
body.workspace-page .category-title{
  font-family:var(--ws-font) !important;
  font-weight:800 !important;
  font-size:clamp(22px,2.2vw,28px) !important;
  color:var(--ws-ink) !important;
  letter-spacing:-.01em !important;
  margin:0 0 6px !important;
  line-height:1.2 !important;
  text-align:center;
  position:relative;
}
body.workspace-page .category-title::before{
  content:"§ 0" counter(ws-cat);
  display:block;
  font-family:var(--ws-mono);
  font-weight:700;
  font-size:11px;
  letter-spacing:.18em;
  color:var(--ws-blue);
  margin-bottom:6px;
  opacity:.95;
  text-align:center;
}
body.workspace-page .category-description{
  text-align:center;
  color:var(--ws-text-soft) !important;
  font-size:14.5px !important;
  line-height:1.55 !important;
  margin:0 auto 1.75rem !important;
  max-width:640px;
  font-family:var(--ws-font) !important;
}

body.workspace-page .core-energy-grid,
body.workspace-page .tools-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  gap:18px !important;
}

/* ==========================================================================
   WORKSPACE CARDS
   ========================================================================== */
body.workspace-page .workspace-card{
  background:var(--ws-white) !important;
  border:1px solid var(--ws-line) !important;
  border-radius:var(--ws-radius) !important;
  padding:22px 22px 20px !important;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease !important;
  position:relative;
  height:100%;
  box-shadow:0 1px 2px rgba(11,16,32,.02) !important;
}
body.workspace-page .workspace-card:hover{
  border-color:var(--ws-blue) !important;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(45,75,219,.08) !important;
}
body.workspace-page .workspace-card h3{
  font-family:var(--ws-font) !important;
  font-size:17px !important;
  font-weight:700 !important;
  color:var(--ws-ink) !important;
  margin:0 0 10px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  line-height:1.3 !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  -webkit-text-fill-color:initial !important;
  background-clip:initial !important;
}
body.workspace-page .workspace-card h3 i{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  border-radius:8px !important;
  background:var(--ws-blue-soft) !important;
  color:var(--ws-blue) !important;
  font-size:16px !important;
  flex-shrink:0 !important;
  margin:0 !important;
  -webkit-text-fill-color:var(--ws-blue) !important;
}
body.workspace-page .workspace-card > p{
  font-family:var(--ws-font) !important;
  color:var(--ws-text) !important;
  font-size:14px !important;
  line-height:1.55 !important;
  margin:0 0 14px !important;
}

/* Card features list */
body.workspace-page .workspace-card .card-features{
  list-style:none !important;
  padding:0 !important;
  margin:12px 0 0 !important;
  border-top:1px dashed var(--ws-line-soft);
  padding-top:12px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
}
body.workspace-page .workspace-card .card-features li{
  font-family:var(--ws-mono) !important;
  font-size:12px !important;
  color:var(--ws-text) !important;
  padding-left:18px !important;
  position:relative;
  line-height:1.5 !important;
  background:none !important;
}
body.workspace-page .workspace-card .card-features li::before{
  content:"›" !important;
  position:absolute;
  left:2px;
  top:0;
  color:var(--ws-blue);
  font-weight:700;
  font-family:var(--ws-mono);
}

/* ==========================================================================
   COMING SOON BADGE
   ========================================================================== */
body.workspace-page .coming-soon-badge{
  position:absolute !important;
  top:14px;
  right:14px;
  padding:3px 9px !important;
  background:rgba(217,138,0,.12) !important;
  color:var(--ws-amber) !important;
  font-family:var(--ws-mono) !important;
  font-size:10px !important;
  font-weight:600 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  border:1px solid rgba(217,138,0,.3) !important;
  border-radius:var(--ws-radius-pill) !important;
  background-image:none !important;
  box-shadow:none !important;
  animation:none !important;
}

/* Push Coming Soon card headings right so badge doesn't overlap */
body.workspace-page .workspace-card:has(.coming-soon-badge) h3{
  padding-right:110px;
}

/* ==========================================================================
   BENEFITS SECTION (Why Choose Netts Workspace)
   3 big cards
   ========================================================================== */
body.workspace-page .integrations-section:last-of-type{
  border-top:1px solid var(--ws-line-soft);
}
body.workspace-page .integrations-section:last-of-type .section-title{
  margin-bottom:2.5rem !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:991px){
  body.workspace-page .workspace-hero .col-lg-6:first-child{
    text-align:left;
  }
  body.workspace-page .workspace-hero .hero-image-wrapper{
    margin-top:30px;
  }
}
@media (max-width:720px){
  body.workspace-page .stats-highlight{
    padding:22px 20px !important;
  }
  body.workspace-page .stats-highlight .stats-row{
    grid-template-columns:repeat(2,1fr) !important;
  }
  body.workspace-page .workspace-hero .hero-buttons{
    flex-direction:column;
  }
  body.workspace-page .workspace-hero .workspace-btn{
    width:100%;
    justify-content:center;
  }
  body.workspace-page .workspace-card{
    padding:18px 18px 16px !important;
  }
}
