
/*
 * MDL Navigation Safety V1
 *
 * Responsibilities:
 * - Keep MDL brand visible across LTR/RTL layouts.
 * - Provide optional-registration close/back controls.
 * - Preserve mobile usability.
 *
 * This stylesheet does not alter trading, CRM,
 * payment, authentication or market-data logic.
 */


/* =========================================================
   MDL BRAND / LOGO STABILITY
   ========================================================= */

.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;

  min-width: max-content !important;
  flex: 0 0 auto !important;

  overflow: visible !important;
  direction: ltr !important;

  text-decoration: none !important;
  white-space: nowrap !important;
}

.site-header .brand-logo {
  display: block !important;

  width: 94px !important;
  height: 48px !important;

  min-width: 94px !important;
  max-width: none !important;

  flex: 0 0 auto !important;
  overflow: visible !important;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  color: #f4f8ff;
  font-weight: 900;

  line-height: .88;
  letter-spacing: -.025em;

  direction: ltr;
}

.brand-wordmark-main {
  font-size: 17px;
}

.brand-wordmark-sub {
  margin-top: 4px;

  color: #62cfff;
  font-size: 8px;
  font-weight: 800;

  letter-spacing: .17em;
}


/* =========================================================
   REGISTRATION MODAL NAVIGATION
   ========================================================= */

.mdl-registration-nav {
  position: fixed;
  top: 16px;
  left: 16px;

  z-index: 100001;

  display: none;
  align-items: center;
  gap: 8px;

  direction: ltr;
}

.mdl-registration-nav.is-visible {
  display: flex;
}

.mdl-registration-nav button {
  min-height: 40px;

  padding: 0 14px;

  border:
    1px solid
    rgba(105, 188, 255, .38);

  border-radius: 10px;

  background:
    rgba(3, 13, 25, .94);

  color: #eef7ff;

  font: inherit;
  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, .28);
}

.mdl-registration-nav button:hover,
.mdl-registration-nav button:focus-visible {
  border-color:
    rgba(89, 207, 255, .8);

  outline: none;
}

.mdl-registration-back {
  color: #6bd8ff !important;
}

.mdl-registration-close {
  color: #fff !important;
}


/* =========================================================
   CONTENT PAGE RETURN NAVIGATION
   ========================================================= */

.content-back-actions {
  margin-top: 0 !important;
  margin-bottom: 26px !important;
}

[data-mdl-back-home] {
  direction: ltr;
}


/* =========================================================
   RESPONSIVE HEADER / BRAND
   ========================================================= */

@media (max-width: 1050px) {
  .site-header .brand-logo {
    width: 82px !important;
    min-width: 82px !important;
    height: 42px !important;
  }

  .brand-wordmark-main {
    font-size: 15px;
  }

  .brand-wordmark-sub {
    font-size: 7px;
  }
}

@media (max-width: 720px) {
  .site-header .brand {
    gap: 6px !important;
  }

  .site-header .brand-logo {
    width: 68px !important;
    min-width: 68px !important;
    height: 36px !important;
  }

  .brand-wordmark-main {
    font-size: 13px;
  }

  .brand-wordmark-sub {
    font-size: 6px;
  }

  .mdl-registration-nav {
    top: 10px;
    left: 10px;
  }

  .mdl-registration-nav button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }
}

/* === MDL PUBLIC LAUNCH UX V1 START === */

/*
 * Public launch policy:
 * homepage content is visible without registration.
 */

body.mdl-public-launch {
  overflow: auto !important;
}

body.mdl-public-launch .site-shell {
  filter: none !important;
  opacity: 1 !important;

  pointer-events: auto !important;
  user-select: auto !important;
}

body.mdl-public-launch #registration-gate {
  display: none !important;
}

body.mdl-public-launch.mdl-registration-open {
  overflow: hidden !important;
}

body.mdl-public-launch.mdl-registration-open
#registration-gate {
  display: grid !important;
}


/* Dashboard pre-launch control */

.mdl-dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mdl-dashboard-button[aria-disabled="true"] {
  opacity: .58;

  cursor: not-allowed;

  border-style: dashed;
}

.mdl-dashboard-status {
  display: inline-flex;
  align-items: center;

  padding: 3px 6px;

  border-radius: 999px;

  background:
    rgba(84, 214, 255, .08);

  color: #65d8ff;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .mdl-dashboard-button {
    width: 100%;
  }
}

/* === MDL PUBLIC LAUNCH UX V1 END === */

/* === MDL HEADER HERO V1 START === */

/*
 * Single MDL brand mark.
 * The SVG already contains the MDL identity,
 * therefore the duplicate text wordmark is removed.
 */

.site-header .brand {
  min-width: 138px !important;
}

.site-header .brand-logo {
  width: 138px !important;
  min-width: 138px !important;
  height: 68px !important;
  max-width: none !important;

  object-fit: contain;
  overflow: visible !important;
}

.site-header .brand-wordmark {
  display: none !important;
}

@media (max-width: 1050px) {
  .site-header .brand {
    min-width: 118px !important;
  }

  .site-header .brand-logo {
    width: 118px !important;
    min-width: 118px !important;
    height: 58px !important;
  }
}

@media (max-width: 720px) {
  .site-header .brand {
    min-width: 96px !important;
  }

  .site-header .brand-logo {
    width: 96px !important;
    min-width: 96px !important;
    height: 48px !important;
  }
}

/* === MDL HEADER HERO V1 END === */
