/* Colored navigation glyphs and two illustrated entry cards.
   The small charts are decorative illustrations, with no performance data. */
#nav { gap: 4px; }
#nav > a { --nav-rgb: 145, 175, 255; --nav-ink: #aac2ff; }
#nav > a[data-tab="OPEN"], #nav > a[data-tab="US"] { --nav-rgb: 112, 166, 255; --nav-ink: #9dc6ff; }
#nav > a[data-tab="EARN"] { --nav-rgb: 74, 218, 181; --nav-ink: #83edce; }
#nav > a[data-tab="MKT"] { --nav-rgb: 164, 140, 255; --nav-ink: #c2adff; }
#nav > a[data-tab="CN"] { --nav-rgb: 255, 139, 139; --nav-ink: #ffb0a7; }
#nav > a[data-tab="HK"] { --nav-rgb: 234, 156, 230; --nav-ink: #efb5e9; }
#nav > a[data-tab="CRYPTO"] { --nav-rgb: 246, 193, 91; --nav-ink: #f7d38b; }
#nav > a[data-tab="FUTURES"] { --nav-rgb: 91, 207, 231; --nav-ink: #8de0ee; }
#nav > a[data-tab="SHORTS"] { --nav-rgb: 255, 153, 116; --nav-ink: #ffb79a; }
#nav > a[data-tab="TTS"] { --nav-rgb: 176, 151, 255; --nav-ink: #cebbff; }
#nav > a[data-tab="BACKTEST"] { --nav-rgb: 107, 219, 171; --nav-ink: #9ae8c4; }
#nav > a[data-tab="COMMUNITY"] { --nav-rgb: 112, 193, 255; --nav-ink: #a0d6ff; }
#nav > a[data-tab="RUNS"] { --nav-rgb: 148, 170, 215; --nav-ink: #bfcee9; }
#nav > a[data-tab="ABOUT"] { --nav-rgb: 211, 163, 246; --nav-ink: #e0bcff; }
#nav .nav-group { padding: 17px 10px 7px; color: #bac8e2; font-size: 10px; letter-spacing: .5px; }
#nav .nav-group:first-child { padding-top: 3px; padding-bottom: 8px; }
#nav .nav-group > span { color: #7184a5; font-size: 8px; letter-spacing: 1px; }
#nav .nav-membership {
  --tier-ink: #e5cc8c;
  margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line);
  color: var(--tier-ink); font-size: 11px; font-weight: 650; letter-spacing: .3px;
}
#nav .nav-membership > span { color: var(--tier-ink); opacity: .65; }
#nav .nav-membership-ssvip { --tier-ink: #b9b1ff; }
.foot-membership-vip h4 { color: #e5cc8c; }
.foot-membership-ssvip h4 { color: #b9b1ff; }
#nav > a:not(.nav-feature) { gap: 9px; min-height: 43px; padding: 6px 9px; border-radius: 10px; }
#nav .nav-icon {
  box-sizing: border-box; width: 30px; height: 30px; padding: 6px; flex: 0 0 30px;
  opacity: 1; color: var(--nav-ink); border: 1px solid rgba(var(--nav-rgb), .18);
  border-radius: 9px; background: linear-gradient(145deg, rgba(var(--nav-rgb), .17), rgba(var(--nav-rgb), .04));
  box-shadow: inset 0 1px 0 rgba(var(--nav-rgb), .08);
}
#nav > a:not(.nav-feature):hover, #nav > a:not(.nav-feature).active {
  background: rgba(var(--nav-rgb), .10); border-color: rgba(var(--nav-rgb), .24); color: #edf2ff;
}
#nav > a:not(.nav-feature).active { box-shadow: inset 2px 0 var(--nav-ink); }
#nav > a:not(.nav-feature).active .nav-icon { background: rgba(var(--nav-rgb), .22); border-color: rgba(var(--nav-rgb), .38); }
#nav > .nav-feature {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch;
  gap: 0; min-height: 112px; padding: 12px; margin-bottom: 5px; overflow: hidden; white-space: normal;
  border: 1px solid rgba(var(--nav-rgb), .35); border-radius: 14px;
  background: radial-gradient(ellipse at 100% 0%, rgba(var(--nav-rgb), .13), transparent 72%),
    linear-gradient(125deg, rgba(var(--nav-rgb), .13), rgba(var(--nav-rgb), .035)), #0b1222;
  box-shadow: inset 0 1px 0 rgba(var(--nav-rgb), .08), 0 4px 16px #0002;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
#nav > .nav-feature::before { display: none; }
#nav > .nav-feature:hover, #nav > .nav-feature.active {
  border-color: rgba(var(--nav-rgb), .75); background-color: #121e32;
  box-shadow: inset 3px 0 var(--nav-ink), 0 0 22px rgba(var(--nav-rgb), .08);
}
#nav > .nav-feature:focus-visible { outline: 2px solid var(--nav-ink); outline-offset: -3px; }
.nav-feature-art { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--nav-ink); }
#nav .nav-feature .nav-icon { width: 35px; height: 35px; flex-basis: 35px; padding: 6px; border-radius: 10px; background: rgba(var(--nav-rgb), .16); }
.nav-feature-chart { display: block; width: 74px; height: 31px; opacity: .85; overflow: visible; }
.nav-feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.nav-feature-nowrap { white-space: nowrap; }
#nav .nav-feature .nav-label { color: #f0f5ff; font-size: 13px; font-weight: 700; line-height: 1.55; letter-spacing: .1px; }
.nav-feature-arrow { color: var(--nav-ink); font-size: 17px; line-height: 1; }
.nav-feature-note { display: block; margin-top: 4px; color: #adbeda; font-size: 10px; font-weight: 400; line-height: 1.6; }
@media (min-width: 1100px) {
  #nav { top: 99px; padding-bottom: 16px; }
  #nav > a:not(.nav-feature) .nav-code { font-size: 7px; }
  .foot { grid-template-columns: minmax(180px,1.6fr) repeat(4,minmax(85px,1fr)); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  #nav { align-items: center; gap: 6px; }
  #nav > .nav-feature { display: grid; grid-template-columns: 32px minmax(0,1fr); column-gap: 9px; min-height: 62px; min-width: 188px; padding: 8px 11px; margin: 0; border-radius: 11px; }
  .nav-feature-art { grid-row: 1 / 3; margin: 0; }
  #nav .nav-feature .nav-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .nav-feature-chart { display: none; }
  .nav-feature-note { margin-top: 2px; }
  #nav > a:not(.nav-feature) { flex-shrink: 0; }
  #nav .nav-membership { display: flex; flex: none; align-items: center; gap: 8px; margin: 0 0 0 8px; padding: 8px 10px; border-top: 0; border-left: 1px solid var(--line); }
  #nav .nav-membership > span { display: none; }
  .foot { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  #nav { gap: 6px; }
  #nav .nav-group { display: flex; grid-column: 1 / -1; padding: 12px 8px 5px; }
  #nav .nav-membership { margin-top: 6px; padding-top: 13px; }
  #nav a .vip-badge { display: none; }
  #nav > .nav-feature { min-height: 116px; padding: 11px; margin-bottom: 6px; }
  #nav .nav-feature .nav-label { font-size: 12px; }
  #nav .nav-feature .nav-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .nav-feature-chart { width: 55px; height: 28px; }
  .nav-feature-note { font-size: 9px; }
  #nav > a:not(.nav-feature) { min-height: 48px; gap: 7px; padding: 7px; font-size: 12px; }
  #nav .nav-icon { width: 28px; height: 28px; flex-basis: 28px; padding: 5px; border-radius: 8px; }
}
@media (max-width: 360px) {
  #nav > .nav-feature { padding: 10px 8px; }
  #nav .nav-feature .nav-label { font-size: 11px; }
  .nav-feature-chart { width: 44px; }
  #nav > a:not(.nav-feature) { gap: 5px; font-size: 11px; }
  #nav > a:has(.vip-badge) { flex-wrap: wrap; }
  #nav > a:has(.vip-badge) .vip-badge { margin-left: 33px; }
}
@media (prefers-reduced-motion: reduce) { #nav > .nav-feature { transition: none; } }
@media (prefers-contrast: more) {
  #nav > .nav-feature { border-color: var(--nav-ink); background: var(--panel); }
  #nav .nav-icon { border-color: var(--nav-ink); }
  .nav-feature-note { color: var(--text2); }
}
