:root {
  --suh-bg: rgba(4, 7, 12, 0.78);
  --suh-panel: rgba(8, 12, 19, 0.97);
  --suh-line: rgba(191, 207, 228, 0.18);
  --suh-line-strong: rgba(222, 232, 245, 0.42);
  --suh-text: #f3f6fa;
  --suh-muted: #8893a4;
  --suh-height: 74px;
}

body.suh-active .smi-nav,
body.suh-active .platform-header {
  visibility: hidden !important;
  pointer-events: none !important;
}

.suh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10050;
  height: var(--suh-height);
  color: var(--suh-text);
  font-family: Geist, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--suh-bg);
  border-bottom: 1px solid rgba(170, 188, 211, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.suh-header.suh-on-landing:not(.is-scrolled):not(.mobile-open) {
  background-color: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.suh-inner {
  width: min(100% - 64px, 1920px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.suh-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--suh-text);
  text-decoration: none;
}

.suh-brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.5);
}

.suh-brand span {
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.suh-nav {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  min-height: 46px;
  border: 1px solid var(--suh-line-strong);
  border-radius: 999px;
  background: rgba(4, 7, 12, 0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 35px rgba(0,0,0,.18);
}

.suh-nav-trigger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #939cab;
  min-width: 80px;
  height: 36px;
  padding: 0 17px;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  cursor: default;
  transition: color 160ms ease, background-color 160ms ease;
}

.suh-nav-trigger:is(:hover, :focus-visible, [aria-expanded="true"]),
.suh-nav-trigger.is-current {
  color: #f5f7fa;
  background: rgba(181, 198, 220, 0.11);
  outline: none;
}

.suh-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--suh-menu-left, 50%);
  width: min(292px, calc(100vw - 48px));
  padding: 7px;
  transform: translate(-50%, -5px) scale(.99);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid rgba(203, 217, 236, 0.22);
  border-radius: 16px;
  background: rgba(7, 11, 17, .965);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
  transition: opacity 150ms ease, transform 190ms cubic-bezier(.2,.8,.2,1), visibility 150ms;
}

.suh-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.suh-menu-list { display: grid; }

.suh-menu-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--suh-text);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.suh-menu-link:hover,
.suh-menu-link:focus-visible {
  background: rgba(184, 202, 226, .085);
  outline: none;
}

.suh-menu-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667181;
  transition: background-color 140ms ease, transform 140ms ease;
}

.suh-menu-link strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -.005em;
}

.suh-menu-link:hover .suh-menu-dot,
.suh-menu-link:focus-visible .suh-menu-dot {
  background: #eef3f8;
  transform: scale(1.25);
}

.suh-actions {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suh-language,
.suh-account,
.suh-mobile-toggle {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--suh-line);
  color: #c8ced8;
  background: rgba(10, 14, 21, .68);
  font: inherit;
  font-size: 12px;
  font-weight: 580;
}

.suh-language { width: 48px; cursor: pointer; }
.suh-account { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 0 20px; text-decoration: none; border-color: rgba(224, 232, 243, .48); }
.suh-account:hover, .suh-language:hover { color: #fff; border-color: rgba(244,247,251,.75); }
.suh-mobile-toggle { display: none; width: 42px; padding: 0; }

.suh-account-wrap { position: relative; z-index: 1002; }
.suh-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 218px;
  padding: 7px;
  border: 1px solid rgba(203, 217, 236, .22);
  border-radius: 15px;
  background: rgba(7, 11, 17, .975);
  box-shadow: 0 22px 54px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(.99);
  transform-origin: top right;
  transition: opacity 140ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), visibility 140ms;
  z-index: 1005;
}
.suh-account-profile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 5px 8px;
}
.suh-account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(205, 220, 239, .22);
  border-radius: 50%;
  color: #dce5f0;
  background: rgba(20, 27, 38, .72);
}
.suh-account-avatar svg { width: 18px; height: 18px; }
.suh-account-profile > span:last-child { display: grid; gap: 3px; min-width: 0; }
.suh-account-profile strong { overflow: hidden; color: #f1f4f8; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.suh-account-profile small { color: #8994a3; font-size: 10px; font-weight: 520; }
.suh-account-profile small.is-level-1,
.suh-account-profile small.is-level-2 { color: #9fd0b7; }
.suh-account-wrap:not(.is-signed-in) .suh-account-menu { display: none; }
.suh-account-wrap.is-open .suh-account-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}
.suh-account-menu a,
.suh-account-menu .suh-logout {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: #c7cfda;
  border: 0;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
}
.suh-account-menu a:hover,
.suh-account-menu a:focus-visible,
.suh-account-menu .suh-logout:hover,
.suh-account-menu .suh-logout:focus-visible { color: #fff; background: rgba(184, 202, 226, .085); outline: none; }
.suh-account-menu a > span,
.suh-account-menu .suh-logout > span { width: 4px; height: 4px; border-radius: 50%; background: #687382; }
.suh-account-menu a:hover > span { background: #eef3f8; }
.suh-account-menu .suh-logout { width: 100%; color: #bc888e; }
.suh-account-menu .suh-logout > span { background: #81545b; }
.suh-account-menu .suh-logout:hover,
.suh-account-menu .suh-logout:focus-visible { color: #efb1b8; background: rgba(147, 54, 65, .105); }
.suh-account-menu .suh-logout:hover > span { background: #da939b; }
.suh-account-menu .suh-logout:disabled { opacity: .55; cursor: wait; }
.suh-account-separator { height: 1px; margin: 5px 7px; background: rgba(184, 201, 224, .12); }

.suh-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(203, 217, 236, .2);
  border-radius: 17px;
  background: rgba(7, 11, 17, .985);
  box-shadow: 0 24px 58px rgba(0,0,0,.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 170ms ease, visibility 140ms;
}

.suh-language-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.suh-language-menu button {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aeb7c4;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.suh-language-menu button:hover,
.suh-language-menu button[aria-current="true"] { color: #fff; background: rgba(184, 202, 226, .085); }
.suh-language-menu button span:last-child { color: #5f6a78; font-size: 10px; letter-spacing: .08em; }

.suh-mobile-toggle span,
.suh-mobile-toggle::before,
.suh-mobile-toggle::after {
  content: "";
  display: block;
  width: 15px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.suh-header.mobile-open .suh-mobile-toggle span { opacity: 0; }
.suh-header.mobile-open .suh-mobile-toggle::before { transform: translateY(5px) rotate(45deg); }
.suh-header.mobile-open .suh-mobile-toggle::after { transform: translateY(-5px) rotate(-45deg); }

.suh-mobile-panel { display: none; }
.suh-mobile-account { display: none; }

@media (max-width: 980px) {
  :root { --suh-height: 68px; }
  .suh-inner { width: calc(100% - 28px); grid-template-columns: 1fr auto; gap: 14px; }
  .suh-brand img { width: 29px; height: 29px; }
  .suh-brand span { font-size: 12px; }
  .suh-nav { display: none; }
  .suh-language { display: none; }
  .suh-account-wrap { display: none; }
  .suh-mobile-toggle { display: block; }
  .suh-actions { gap: 7px; }
  .suh-mobile-panel {
    position: fixed;
    inset: var(--suh-height) 0 auto;
    display: block;
    max-height: calc(100dvh - var(--suh-height));
    overflow: auto;
    padding: 12px 14px calc(26px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(184, 201, 224, .1);
    background: rgba(3, 6, 10, .985);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 190ms cubic-bezier(.2,.8,.2,1), visibility 160ms;
  }
  .suh-header.mobile-open .suh-mobile-panel { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .suh-mobile-account {
    display: block;
    margin: 0 0 4px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(184, 201, 224, .14);
  }
  .suh-mobile-profile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 60px;
    padding: 5px 4px 8px;
    color: #eef2f7;
    text-decoration: none;
  }
  .suh-mobile-profile .suh-account-avatar { width: 36px; height: 36px; }
  .suh-mobile-profile-copy { display: grid; gap: 3px; min-width: 0; }
  .suh-mobile-profile-copy strong {
    overflow: hidden;
    color: #f2f5f9;
    font-size: 14px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .suh-mobile-profile-copy small { color: #8792a1; font-size: 11px; font-weight: 520; }
  .suh-mobile-profile-copy small.is-level-1,
  .suh-mobile-profile-copy small.is-level-2 { color: #9fd0b7; }
  .suh-mobile-profile-chevron { width: 18px; height: 18px; color: #737f8f; }
  .suh-mobile-account-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 3px 0 0 49px;
  }
  .suh-mobile-account-links[hidden] { display: none; }
  .suh-mobile-account-links a {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 9px;
    color: #aeb8c6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 540;
  }
  .suh-mobile-account-links a:hover,
  .suh-mobile-account-links a:focus-visible { color: #fff; background: rgba(184, 202, 226, .075); outline: none; }
  .suh-mobile-account-links .suh-mobile-logout {
    grid-column: 1 / -1;
    min-height: 38px;
    margin-top: 4px;
    padding: 8px 9px;
    border: 0;
    border-top: 1px solid rgba(184, 201, 224, .11);
    border-radius: 0 0 9px 9px;
    color: #ba858b;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    cursor: pointer;
  }
  .suh-mobile-account-links .suh-mobile-logout:hover,
  .suh-mobile-account-links .suh-mobile-logout:focus-visible {
    color: #efb1b8;
    background: rgba(147, 54, 65, .09);
    outline: none;
  }
  .suh-mobile-account-links .suh-mobile-logout:disabled { opacity: .55; cursor: wait; }
  .suh-mobile-group { border-bottom: 1px solid rgba(184, 201, 224, .12); }
  .suh-mobile-group > button {
    width: 100%; height: 56px; padding: 0 4px;
    display: flex; align-items: center; justify-content: space-between;
    border: 0; background: none; color: #eef2f7;
    font: inherit; font-size: 15px; font-weight: 560;
  }
  .suh-mobile-group > button::after { content: "+"; color: #7e8998; font-size: 19px; font-weight: 300; }
  .suh-mobile-group.is-open > button::after { content: "−"; }
  .suh-mobile-links { display: none; padding: 0 0 12px; }
  .suh-mobile-group.is-open .suh-mobile-links { display: grid; }
  .suh-mobile-links a {
    display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 10px;
    padding: 10px 4px; color: #b6bfcc; text-decoration: none; font-size: 13px;
  }
  .suh-mobile-links a span:first-child { width: 4px; height: 4px; border-radius: 50%; background: #626d7c; }
  .suh-mobile-footer { display: flex; gap: 10px; padding-top: 18px; }
  .suh-mobile-footer .suh-language { display: block; }
  .suh-language-menu { position: fixed; right: 14px; top: calc(var(--suh-height) + 8px); }
}

@media (max-width: 360px) {
  .suh-brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .suh-header, .suh-menu, .suh-mobile-panel { transition: none !important; }
}
