/* Xtreme FX — V0.9.5 Phase 1. Scoped brand shell; no new client-side dependencies. */
:root{--xfx-brand-blue:#087bff;--xfx-brand-navy:#102746;--xfx-brand-ink:#162b49;--xfx-brand-sky:#eaf3ff;--xfx-brand-border:#dce7f3}
/* Portal: intentional restraint across all modules, preserving layout and charts. */
body.xfx-standalone .xfx-shell{background:#f4f7fc;color:#192f4d}
.xfx-shell .xfx-top{min-height:78px;background:#fff;border-bottom:1px solid #dfe7f2;box-shadow:0 6px 24px rgba(12,36,69,.035)}
.xfx-shell .xfx-top-left{flex:1 1 auto;min-width:0}
.xfx-shell .xfx-header-titles{min-width:0}
.xfx-shell .xfx-header-context{font-size:10px;letter-spacing:1px;color:#96a9c0;font-weight:750}
.xfx-shell .xfx-header-titles strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#102746;font-size:17px}
.xfx-shell .xfx-top .xfx-person{border:1px solid #dbe6f2;border-radius:13px;background:#fff;padding:6px 11px;min-height:43px;box-shadow:0 3px 9px rgba(20,51,92,.03)}
.xfx-shell .xfx-top .xfx-person:hover,.xfx-shell .xfx-top .xfx-person:focus-visible{border-color:#a9cafa;background:#f5f9ff}
.xfx-shell .xfx-nav{background:#fff;border-right:1px solid #e0e8f3}
.xfx-shell .xfx-nav>a:not(:first-child){transition:background .16s ease,color .16s ease}
.xfx-shell .xfx-nav>a.selected{background:#eaf3ff;color:var(--blue,#087bff);font-weight:750}
.xfx-shell .xfx-card,.xfx-shell .xfx-stats>div,.xfx-shell .xfx-overview-card,.xfx-shell .xfx-trade-kpis>div{box-shadow:0 5px 22px rgba(17,45,80,.035)}
.xfx-shell .xfx-button.primary{background:var(--blue,#087bff);border-color:var(--blue,#087bff);color:#fff!important}
.xfx-shell .xfx-button:focus-visible,.xfx-shell button:focus-visible,.xfx-shell input:focus-visible,.xfx-shell select:focus-visible{outline:2px solid var(--blue,#087bff);outline-offset:2px}
/* Explicit dark-hero contrast fix: older appearance settings apply navy to all h1/h2. */
.xfx-shell :is(.xfx-k-hero,.xfx-ih-hero,.xfx-rd-hero,.xfx-club-hero,.xfx-staff-hero,.xfx-p2-notify-hero,.xfx-ach-hero,.xfx-cn-hero,.xfx-lib-hero) :is(h1,h2,h3),
.xfx-shell :is(.xfx-k-hero,.xfx-ih-hero,.xfx-rd-hero,.xfx-club-hero,.xfx-staff-hero,.xfx-p2-notify-hero,.xfx-ach-hero,.xfx-cn-hero,.xfx-lib-hero) :is(.xfx-k-title,.xfx-ih-title){color:#f9fcff!important;text-shadow:none}
.xfx-shell :is(.xfx-k-hero,.xfx-ih-hero,.xfx-rd-hero,.xfx-club-hero,.xfx-staff-hero,.xfx-p2-notify-hero,.xfx-ach-hero,.xfx-cn-hero,.xfx-lib-hero)>p{color:#cfdfef!important}
/* Portal footer */
.xfx-shell .xfx-brand-footer {
  margin-top: auto;
  padding: 0 !important;
  background: #101f35;
  color: #d7e8f8;
}
.xfx-shell .xfx-brand-foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 10px clamp(16px, 2vw, 30px);
}
.xfx-shell .xfx-brand-foot-intro {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xfx-shell .xfx-v100-footer-logo {
  display: block;
  width: 84px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.xfx-shell .xfx-brand-foot-grid strong {
  color: #fff;
  font-size: 13px;
}
.xfx-shell .xfx-brand-foot-grid nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.xfx-shell .xfx-brand-foot-links { gap: 2px 16px; }
.xfx-shell .xfx-brand-foot-links > a {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: #d7e8f8 !important;
  font-size: 13px;
}
.xfx-shell .xfx-brand-foot-official { gap: 2px 12px; }
.xfx-shell .xfx-brand-foot-grid nav a:hover {
  color: #9ed6ff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.xfx-shell .xfx-brand-foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 clamp(16px, 2vw, 30px);
  border-top: 1px solid #36506e;
  padding-block: 9px;
  font-size: 12px;
  color: #bdd1ea;
}
@media(max-width:720px){.xfx-shell .xfx-top{min-height:67px}.xfx-shell .xfx-header-context{display:none}.xfx-shell .xfx-top .xfx-person{padding:3px 4px;min-height:39px}}
@media(max-width:420px){.xfx-shell .xfx-header-titles strong{font-size:14px}.xfx-shell .xfx-top{gap:6px}}
/* Member login, signup and password recovery. */
body.xfx-brand-login,body.xfx-branded-signin {
  margin:0;
  min-height:100vh;
  background:#f1f5fa;
  color:#172a44;
  font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.xfx-auth-page {
  --xfx-auth-link:#0758b7;
  --xfx-auth-button:#0960c0;
  --xfx-auth-button:color-mix(in srgb,var(--xfx-accent,#087bff) 36%,#034480);
  --xfx-auth-border:#b8c9dc;
  --xfx-auth-muted:#475e79;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:16px;
  min-height:100vh;
  min-height:100svh;
  padding:clamp(20px,3.2vh,36px) clamp(22px,4vw,64px);
  background:radial-gradient(ellipse at 90% 6%,#e9f1fb,transparent 66%),linear-gradient(160deg,#f8fafd,#eef3f9);
  font-size:16px;
  line-height:1.5;
}
.xfx-auth-page,.xfx-auth-page * {box-sizing:border-box}
.xfx-auth-page [hidden] {display:none!important}
.xfx-auth-page a {color:var(--xfx-auth-link);text-underline-offset:.19em}
.xfx-auth-page :is(a,button,input,select,summary):focus-visible {
  outline:3px solid #0968ce;
  outline-offset:3px;
}
.xfx-auth-layout {
  width:min(100%,1120px);
  display:grid;
  grid-template-columns:minmax(0, .88fr) minmax(0, 1.12fr);
  background:#fff;
  border:1px solid #d6e2f0;
  border-radius:26px;
  box-shadow:0 22px 65px #183a6921;
  overflow:hidden;
}
.xfx-auth-brand {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
  gap:28px;
  padding:clamp(24px,3.4vw,44px) clamp(24px,4vw,52px);
  background:radial-gradient(ellipse at 100% 100%,#1461a7,transparent 68%),linear-gradient(148deg,#08182f,var(--xfx-navy,#10294d));
  color:#f2f8ff;
}
body.xfx-brand-login .xfx-auth-layout > .xfx-auth-brand {border-radius:0}
.xfx-auth-identity {display:flex;align-items:center;gap:16px}
.xfx-auth-identity img {display:block;width:128px;height:68px;object-fit:contain}
.xfx-auth-identity span {
  border-inline-start:1px solid #819cba;
  padding-inline-start:16px;
  color:#d5e7fa;
  font-size:.8rem;
  font-weight:650;
  line-height:1.35;
}
.xfx-auth-brand-main {display:grid;gap:14px}
.xfx-auth-eyebrow {margin:0;color:#91d7ff;font-size:.77rem;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.xfx-auth-headline {
  margin:0;
  color:#fff;
  font-size:clamp(2.1rem,4vw,3.6rem);
  font-weight:770;
  letter-spacing:-.045em;
  line-height:1.05;
  max-width:11ch;
}
.xfx-auth-brand-copy {margin:0;max-width:34ch;color:#d5e7fa;font-size:.95rem}
.xfx-auth-chart {margin-block-start:12px;border-radius:14px;overflow:hidden;border:1px solid #7399c349;background:#091d34a0}
.xfx-auth-chart svg {display:block;width:100%;height:auto}
.xfx-auth-risk {margin:0;color:#cfdef0;font-size:.76rem}
.xfx-auth-panel {display:grid;place-items:center;min-width:0;padding:clamp(28px,4.4vw,62px)}
.xfx-auth-card {width:min(100%,460px)}
.xfx-auth-nav {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin-bottom:26px;
  padding:4px;
  background:#edf3fa;
  border:1px solid #d4e0ee;
  border-radius:12px;
  text-align:center;
}
.xfx-auth-nav a {
  display:grid;
  place-items:center;
  min-height:44px;
  padding:6px;
  border-radius:8px;
  color:#324b69;
  text-decoration:none;
  font-size:.875rem;
  font-weight:700;
}
.xfx-auth-nav a:hover {background:#e0ebf8}
.xfx-auth-nav a[aria-current="page"] {background:#fff;color:var(--xfx-auth-link);box-shadow:0 1px 4px #183a6926}
.xfx-auth-heading {margin:0 0 23px}
.xfx-auth-heading h1 {
  margin:0 0 8px;
  color:#112743;
  font-size:clamp(1.75rem,3vw,2.45rem);
  line-height:1.12;
  letter-spacing:-.04em;
  font-weight:780;
}
.xfx-auth-heading p,.xfx-auth-note {margin:0;color:var(--xfx-auth-muted);font-size:.9rem}
.xfx-auth-form {display:grid;gap:15px}
.xfx-auth-field,.xfx-auth-contact,.xfx-auth-optional .xfx-growth-opt {display:grid;min-width:0;gap:6px}
.xfx-auth-contact {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.xfx-auth-field label,.xfx-auth-optional label {color:#223852;font-size:.875rem;font-weight:700}
.xfx-auth-form :is(input:not([type=checkbox],[type=hidden]),select) {
  display:block;
  width:100%;
  min-width:0;
  min-height:50px;
  margin:0;
  border:1px solid var(--xfx-auth-border);
  border-radius:10px;
  background:#fff;
  color:#172a44;
  padding:10px 12px;
  font:inherit;
  font-size:16px;
}
.xfx-auth-password {position:relative}
.xfx-auth-password input {padding-inline-end:76px!important}
.xfx-auth-reveal {
  position:absolute;
  inset-inline-end:4px;
  inset-block-start:50%;
  translate:0 -50%;
  min-width:62px;
  min-height:44px;
  padding:6px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--xfx-auth-link);
  font:inherit;
  font-size:.84rem;
  font-weight:750;
  cursor:pointer;
}
.xfx-auth-reveal:hover {background:#e9f2ff}
.xfx-auth-options {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0 12px;margin-block:-5px}
.xfx-auth-options :is(label,a) {display:flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem;font-weight:650}
.xfx-auth-page input[type=checkbox] {flex:none;width:18px;height:18px;margin:0;accent-color:var(--xfx-auth-button)}
.xfx-auth-optional {border:1px solid #d3deeb;border-radius:10px;background:#f6f9fd}
.xfx-auth-optional summary {min-height:44px;padding:11px 12px;color:#223852;font-size:.875rem;font-weight:700;cursor:pointer}
.xfx-auth-optional summary span {float:inline-end;color:var(--xfx-auth-muted);font-size:.8rem;font-weight:500}
.xfx-auth-optional .xfx-growth-opt {gap:9px;margin:0;padding:0 12px 12px}
.xfx-auth-optional .xfx-growth-opt label:last-child {display:flex;align-items:flex-start;gap:8px;font-size:.8rem;font-weight:500}
.xfx-auth-button,.xfx-auth-page a.xfx-auth-button {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:52px;
  padding:10px 15px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--xfx-auth-button);
  color:#fff;
  text-decoration:none;
  font:inherit;
  font-weight:750;
  text-align:start;
  cursor:pointer;
}
.xfx-auth-button:hover {filter:brightness(.9)}
.xfx-auth-button span {font-size:1.2em}
.xfx-auth-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  min-height:44px;
  margin-block-start:19px;
  border-top:1px solid #dce6f0;
  color:var(--xfx-auth-muted);
  font-size:.8rem;
}
.xfx-auth-meta svg {flex:none}
.xfx-auth-disclaimer {display:grid;gap:12px;color:var(--xfx-auth-muted)}
.xfx-auth-disclaimer p {margin:0}
.xfx-auth-disclaimer p:first-child {font-weight:700;color:#223852}
.xfx-auth-footer {
  width:min(100%,1120px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:0 16px;
  padding:2px 14px;
  color:var(--xfx-auth-muted);
  font-size:.83rem;
}
.xfx-auth-footer p {margin:0}
.xfx-auth-footer nav {display:flex;align-items:center;flex-wrap:wrap;gap:0 18px}
.xfx-auth-footer a {display:inline-flex;align-items:center;gap:5px;min-height:44px;font-weight:650;text-decoration:none}
.xfx-auth-footer a:hover {text-decoration:underline}
.xfx-auth-alert {margin:0 0 16px;padding:11px 13px;border:1px solid;border-radius:9px;font-size:.875rem}
.xfx-auth-alert.is-error {color:#8b2335;border-color:#e7b5be;background:#fff2f4}
.xfx-auth-alert.is-success {color:#145a42;border-color:#a7d9c6;background:#eafaf3}
@media(max-width:850px) {
  .xfx-auth-layout {grid-template-columns:minmax(0, .82fr) minmax(0,1.18fr)}
  .xfx-auth-contact {grid-template-columns:1fr}
}
@media(max-width:700px) {
  .xfx-auth-page {padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));justify-content:flex-start;gap:10px}
  .xfx-auth-layout {width:min(100%,490px);grid-template-columns:1fr;border-radius:17px;box-shadow:0 9px 30px #183a6917}
  .xfx-auth-brand {padding:9px 18px}
  .xfx-auth-identity img {width:100px;height:52px}
  .xfx-auth-brand-main,.xfx-auth-risk {display:none}
  .xfx-auth-panel {padding:clamp(15px,5vw,26px)}
  .xfx-auth-nav {margin-bottom:18px}
  .xfx-auth-heading {margin-bottom:17px}
  .xfx-auth-form {gap:12px}
  .xfx-auth-meta {margin-block-start:14px}
  .xfx-auth-footer {width:min(100%,490px);flex-direction:column-reverse;align-items:center;padding:0 8px 6px;text-align:center}
  .xfx-auth-footer nav {justify-content:center;gap:0 14px}
  .xfx-auth-footer p {margin-block-start:4px}
}
@media(forced-colors:active) {
  .xfx-auth-nav a[aria-current="page"],.xfx-auth-button {border:1px solid ButtonText}
}
@media(prefers-reduced-motion:reduce){.xfx-shell .xfx-nav>a{transition:none!important}}

.xfx-shell .xfx-mobile-menu-info { display: none; }

@media (max-width: 860px) {
  .xfx-shell .xfx-brand-footer { display: none; }

  .xfx-shell #xfx-side-nav,
  .admin-bar .xfx-shell #xfx-side-nav {
    top: var(--xfx-drawer-top, 0px);
    height: calc(100dvh - var(--xfx-drawer-top, 0px));
    box-sizing: border-box;
    overscroll-behavior-y: contain;
    padding-block: max(12px, env(safe-area-inset-top, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .xfx-shell .xfx-mobile-menu-info {
    display: block;
    flex: none;
    padding: 10px;
    border-top: 1px solid #36506e;
    color: #e4efff;
  }
  .xfx-shell .xfx-mobile-menu-info p {
    margin: 10px 0 0;
    color: #c9ddf4;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  /* The WordPress toolbar scrolls away at this width. */
  .admin-bar .xfx-shell #xfx-side-nav { z-index: 100001; }
  .admin-bar .xfx-shell .xfx-nav-overlay { z-index: 100000; }
}

@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .xfx-shell #xfx-side-nav { --xfx-drawer-top: 46px; }
}

@media (min-width: 783px) and (max-width: 860px) {
  .admin-bar .xfx-shell #xfx-side-nav { --xfx-drawer-top: 32px; }
}

.xfx-shell :is(.xfx-brand-foot-official, .xfx-menu-official) ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.xfx-shell .xfx-official-websites {
  display: grid;
  gap: 6px;
}
.xfx-shell .xfx-official-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xfx-shell :is(.xfx-official-websites, .xfx-official-social) a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  box-sizing: border-box;
  background: #172b47;
  border: 1px solid #36506e;
  border-radius: 8px;
  color: #e4efff !important;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.xfx-shell .xfx-official-social a { width: 44px; justify-content: center; }
.xfx-shell :is(.xfx-official-websites, .xfx-official-social) svg { flex: none; }
.xfx-shell .xfx-official-social .xfx-official-facebook { color: #95bdff !important; }
.xfx-shell .xfx-official-social .xfx-official-instagram { color: #ffade2 !important; }
.xfx-shell .xfx-official-social .xfx-official-youtube { color: #ff929a !important; }
.xfx-shell .xfx-official-social .xfx-official-whatsapp { color: #78e6a4 !important; }
.xfx-shell :is(.xfx-official-websites, .xfx-official-social) a:is(:hover, :focus-visible) {
  background: #214061;
}
.xfx-shell :is(.xfx-official-websites, .xfx-official-social) a:focus-visible {
  outline: 2px solid #e4efff;
  outline-offset: -2px;
}

@media (max-width: 860px) {
  .xfx-shell .xfx-menu-official .xfx-official-websites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
  }
}


.xfx-shell .xfx-brand-foot-official .xfx-official-websites {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.xfx-shell .xfx-brand-foot-official .xfx-official-websites a,
.xfx-shell .xfx-brand-foot-official .xfx-official-social a {
  border-color: transparent;
  background: transparent;
  padding: 0;
}
.xfx-shell .xfx-brand-foot-official .xfx-official-websites a { min-height: 26px; }
.xfx-shell .xfx-brand-foot-official .xfx-official-social a { width: 36px; min-height: 36px; }
.xfx-shell .xfx-brand-foot-official .xfx-official-social a:is(:hover, :focus-visible) { background: #214061; }

.xfx-shell .xfx-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.xfx-shell :is(.xfx-policy-links a, .xfx-risk-notice-link) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.xfx-shell :is(.xfx-policy-links a, .xfx-risk-notice-link):hover { color: #fff !important; }
.xfx-shell .xfx-policy-links a { display: inline-flex; align-items: center; min-height: 24px; }
.xfx-shell .xfx-brand-foot-bottom { align-items: center; }
.xfx-shell .xfx-mobile-menu-info .xfx-policy-links { margin-top: 8px; }
.xfx-shell .xfx-mobile-menu-info .xfx-policy-links a { min-height: 44px; font-size: 13px; }
.xfx-shell .xfx-risk-disclaimer { max-width: 780px; }

.xfx-shell .xfx-nav-end {
  flex: none;
  margin-top: auto;
}
.xfx-shell .xfx-nav-foot {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #36506e;
  font-size: 11px;
  line-height: 1.45;
}
.xfx-shell .xfx-nav-foot strong { color: #f1f6ff; }
@media (max-width: 860px) {
  .xfx-shell .xfx-nav-end {
    margin-top: 8px;
    border: 1px solid #36506e;
    border-radius: 12px;
    background: #14243b;
  }
  .xfx-shell .xfx-nav-foot { border-top: 0; }
  .xfx-shell .xfx-menu-official .xfx-official-social {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }
  .xfx-shell .xfx-menu-official .xfx-official-social a { width: 100%; }
}

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
 .xfx-shell footer.xfx-brand-footer {
  background-color: #102239;
  background-image: repeating-linear-gradient(124deg,transparent 0 66px,rgba(113,186,255,.09) 67px,transparent 69px 130px), radial-gradient(ellipse at 90% 87%,#21456b,transparent 54%);
  background-attachment: fixed;
 }
}
@media (max-width: 860px) {
 .xfx-shell.xfx980 .xfx-top .xfx-top-left .xfx-header-titles { padding-inline-start: 9px; min-width: 0; }
 .xfx-shell.xfx980 .xfx-top .xfx-top-left .xfx-header-titles strong { font-size: clamp(17px,4.3vw,20px); line-height: 1.15; }
 .xfx-shell.xfx980 .xfx-top .xfx-top-left .xfx-header-titles small { font-size: 10px; }
 .xfx-shell .xfx-pwa-menu .xfx-pwa-menu-info .xfx-official-websites {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
 }
 .xfx-shell .xfx-pwa-menu-info .xfx-official-websites li { flex: 0 1 calc(50% - 3px); min-width: 0; }
 .xfx-shell .xfx-pwa-menu .xfx-pwa-menu-info .xfx-policy-links {
  display: flex; justify-content: center; width: 100%; text-align: center;
 }
}
