:root {
  --bg: #000212;
  --blue: #244fff;
  --blue-deep: #042fda;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--bg);
  color: #fff;
}
img, svg {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.envex-shell {
  position: relative;
  display: flex;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}
.envex-shell-bg,
.envex-shell-bg2,
.envex-shell-bg3 {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.envex-shell-bg { background: linear-gradient(180deg, #080a37 0%, #000212 100%); }
.envex-shell-bg2 {
  opacity: .83;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(18,73,255,.1) 100%),
    linear-gradient(180deg, #02020a 0%, #000 100%);
}
.envex-shell-bg3 { background: rgb(8,16,40); opacity: .32; }
.envex-grid-wrap {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.envex-grid {
  position: absolute;
  left: -20.38%;
  top: .09%;
  width: 120.38%;
  height: 100.28%;
  max-width: none;
  opacity: .4;
  mix-blend-mode: color-dodge;
}
.envex-aside {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: min(323px, 85vw);
  flex-direction: column;
  border-right: 1px solid rgba(9, 37, 106, .4);
  background: linear-gradient(145deg, #050f3d, #000822);
  padding: 28px 16px;
  box-shadow: 8px 0 28px rgba(1,5,17,.3);
  transform: translateX(-100%);
  transition: transform .2s;
}
.envex-aside.is-open { transform: translateX(0); }
.envex-logo { display: block; margin: 0 auto; height: 105px; width: 250px; object-fit: contain; }
.envex-nav {
  margin-top: 20px;
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 8px 6px;
}
.envex-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 44px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: transparent;
  color: rgba(255,255,255,.9);
  text-align: left;
  cursor: pointer;
}
.envex-nav-item:hover { background: rgba(255,255,255,.05); }
.envex-nav-item.is-active {
  background: linear-gradient(to left, #244fff, #042fda);
  font-weight: 700;
  box-shadow: 0 0 7.3px rgba(0,0,0,.61);
}
.envex-nav-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.envex-nav-icon img { max-width: 20px; max-height: 20px; }
.envex-nav-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.envex-nav-caret { color: rgba(255,255,255,.4); }
.envex-nav-children { display: none; padding-left: 16px; }
.envex-nav-group.is-open > .envex-nav-children { display: block; }
.envex-nav-children .envex-nav-item { height: 40px; font-size: 13px; }
.envex-logout {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 155px;
  height: 51px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #042fda, #244fff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 7px rgba(0,0,0,.26);
}
.envex-main {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.envex-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  padding: 16px;
}
.envex-header-row {
  display: grid;
  width: 100%;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}
.envex-burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.envex-burger {
  grid-column: 1;
  grid-row: 1;
}
.envex-search {
  position: relative;
  height: 40px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  grid-column: 2;
  grid-row: 1;
}
.envex-header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.envex-search input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0 48px 0 16px;
  background: #fff;
  color: #151515;
  box-shadow: 0 0 4px rgba(0,0,0,.25);
}
.envex-search img {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}
.envex-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.envex-lang { position: relative; }
.envex-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 160px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a1238;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.envex-lang-menu[hidden] { display: none !important; }
.envex-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.envex-lang-item:hover, .envex-lang-item.is-on { background: rgba(36,79,255,.35); }
.envex-lang-item img { border-radius: 50%; }
.envex-user, .envex-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 2px solid #244fff;
  border-radius: 13px;
  background: #fff;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.envex-login-btn {
  min-width: 110px;
  padding: 0 18px;
  font-size: 15px;
  font-family: Inter, Montserrat, sans-serif;
}
.envex-user {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  gap: 0;
}
.envex-user-name {
  display: none;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Inter, Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}
.envex-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.envex-avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.envex-user-gear {
  display: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.envex-greeting {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.envex-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.envex-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.5);
}
.envex-backdrop.is-open { display: block; }
.envex-section {
  padding: 8px 0 24px;
  color: #fff;
}
.envex-section h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
}
.envex-empty, .envex-404 {
  display: grid;
  place-items: center;
  min-height: 40vh;
  text-align: center;
  color: rgba(255,255,255,.55);
}
.envex-404-code {
  margin: 0;
  font-size: 72px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
}
.home-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.home-card {
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(36,79,255,.25), rgba(0,2,18,.9));
  border: 1px solid rgba(36,79,255,.35);
  min-height: 140px;
}
.home-card h2 { margin: 0 0 8px; font-size: 18px; }
.home-card p { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; }
@media (min-width: 1536px) {
  .envex-aside {
    position: relative;
    z-index: 20;
    width: clamp(260px, 16.8vw, 323px);
    transform: none;
  }
  .envex-burger, .envex-backdrop { display: none !important; }
  .envex-grid-wrap { left: clamp(260px, 16.8vw, 323px); width: calc(100% - clamp(260px, 16.8vw, 323px)); }
  .envex-header {
    height: 96px;
    padding: 28px 4.5% 0;
  }
  .envex-header-row {
    height: 48px;
    grid-template-columns: 344px minmax(0, 1fr) auto;
    grid-template-rows: 48px;
    column-gap: 16px;
    row-gap: 0;
  }
  .envex-search {
    grid-column: 1;
    grid-row: 1;
    width: 344px;
    max-width: 100%;
    height: 42px;
  }
  .envex-greeting {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    font-family: Montserrat, Inter, sans-serif;
    pointer-events: none;
  }
  .envex-header-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .envex-user {
    width: auto;
    min-width: 170px;
    max-width: 220px;
    height: 48px;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 4px 4px 10px;
  }
  .envex-user .envex-avatar,
  .envex-user .envex-avatar-letter {
    margin: 0;
  }
  .envex-login-btn {
    height: 48px;
    min-width: 140px;
    font-size: 15px;
  }
  .envex-user-name { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: Inter, Montserrat, sans-serif; font-size: 15px; }
  .envex-user-gear { display: block; }
  .envex-avatar, .envex-avatar-letter { width: 36px; height: 36px; }
  .envex-content { padding: 20px 72px 32px; }
}
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr);
  gap: 16px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dash-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  gap: 16px;
}
.dash-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(36,79,255,.22), rgba(0,8,28,.92)),
    rgba(8, 16, 40, .85);
  border: 1px solid rgba(36, 79, 255, .35);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.dash-hero {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.dash-kicker {
  margin: 0 0 8px;
  color: #76f7f8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
}
.dash-hero-copy p:last-child {
  margin: 0;
  max-width: 46ch;
  color: rgba(255,255,255,.62);
  line-height: 1.45;
}
.dash-hero-art {
  width: min(220px, 34%);
  opacity: .9;
}
.dash-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
}
.dash-metric-head img { width: 20px; height: 20px; }
.dash-metric-value {
  margin: 18px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.dash-metric-sub {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.dash-spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 120px;
  opacity: .8;
}
.dash-feed h2, .dash-quick h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.dash-feed ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-feed li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.dash-feed li span {
  display: block;
  margin-bottom: 4px;
  color: #76f7f8;
  font-size: 12px;
  font-weight: 700;
}
.dash-feed li p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.dash-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-quick a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(36,79,255,.18);
  border: 1px solid rgba(36,79,255,.35);
  font-weight: 600;
}
.dash-quick a:hover { background: rgba(36,79,255,.3); }
@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-top, .dash-bottom, .dash-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-hero-art { width: 160px; }
}
