/* Public mast — xtremetrade.org colors: navy top bar, white navbar, gold + cyan accents. */

.site-mast {
  position: relative;
  z-index: 10050;
  isolation: isolate;
}

.site-mast .mast-led {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 7px 4%;
  overflow: hidden;
  background: #0f2b46 !important;
  color: #ffffff !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.site-mast .mast-led::before {
  display: none !important;
}

.mast-led__scan {
  position: absolute;
  top: 0;
  left: -30%;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.16), transparent);
  animation: mast-scan 4.8s linear infinite;
  pointer-events: none;
}

@keyframes mast-scan {
  to { left: 110%; }
}

.site-mast .mast-led__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.site-mast .mast-ch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.site-mast .mast-ch em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.18em;
}

.site-mast .mast-led i {
  color: #ffd700 !important;
  margin: 0 !important;
  animation: none !important;
}

.site-mast .mast-lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
}

.site-mast .mast-lang__iso {
  display: grid;
  place-items: center;
  padding: 0 8px;
  background: #ffd700;
  color: #0f2b46;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.site-mast .mast-lang select,
.site-mast .top-bar select {
  appearance: none;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  min-width: 148px;
  padding: 6px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  cursor: pointer;
  transform: none !important;
}

.site-mast .mast-lang select:hover,
.site-mast .mast-lang select:focus {
  transform: none !important;
  box-shadow: none !important;
  outline: none;
}

.site-mast .navbar.mast-rail {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: clamp(7px, 2.3vh, 12px) 5% !important;
  background: #ffffff !important;
  border: 0;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  clip-path: none;
  backdrop-filter: none;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-mast .navbar.mast-rail::before {
  display: none;
}

.site-mast .navbar.sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
}

.site-mast .navbar.scrolled {
  background: rgba(10, 25, 45, 0.95) !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-mast .mast-bezel {
  position: relative;
  width: 132px;
  height: 58px;
  flex: 0 0 132px;
  display: grid;
  place-items: center;
}

.site-mast .mast-bezel__orbit {
  display: none;
}

@keyframes mast-orbit {
  to { transform: rotate(360deg); }
}

.site-mast .logo .site-logo-video,
.site-mast .logo img {
  width: 128px !important;
  height: 56px !important;
  max-width: 128px !important;
  max-height: 56px !important;
  border-radius: 50% !important;
  overflow: hidden;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto;
  clip-path: none;
  filter: none !important;
  background: #000;
}

.site-mast .navbar.scrolled .logo .site-logo-video {
  filter: none !important;
}

.site-mast .mast-drop__source {
  display: none;
}

.site-mast .mast-drop {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.site-mast .mast-drop__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.site-mast .mast-drop__track {
  display: flex;
  width: max-content;
  align-items: center;
  --mast-marquee-duration: 14s;
  animation: mast-drop-marquee var(--mast-marquee-duration) linear infinite;
  -webkit-animation: mast-drop-marquee var(--mast-marquee-duration) linear infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-mast .mast-drop__item {
  flex: 0 0 auto;
  padding-right: 4rem;
  color: #0f2b46;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-mast .mast-drop__static {
  display: block;
  width: 100%;
  color: #0f2b46;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-mast .navbar.scrolled .mast-drop__item,
.site-mast .navbar.scrolled .mast-drop__static {
  color: #ffd700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

@keyframes mast-drop-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-mast .mast-drop__track {
    animation: none;
    transform: none;
  }
}

.site-mast .navbar nav,
.site-mast #nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 30px) !important;
  flex: 0 1 auto;
  justify-content: flex-end;
}

.site-mast .navbar nav a,
.site-mast .navbar nav a.mast-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: #1e293b !important;
  font-size: clamp(12px, 3vw, 14px) !important;
  font-weight: 500 !important;
  letter-spacing: normal;
  text-transform: none;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.site-mast .navbar nav a:after {
  content: "" !important;
  display: block !important;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0 !important;
  height: 2px;
  background: #ffd700;
  transition: 0.3s;
}

.site-mast .navbar nav a:hover:after,
.site-mast .navbar nav a.active:after {
  width: 100% !important;
}

.site-mast .navbar nav a.cta-link::before,
.site-mast .navbar nav a.cta-link:after {
  display: none !important;
  content: none !important;
  width: 0 !important;
}

.site-mast .navbar nav a:hover {
  color: #0f2b46 !important;
  text-shadow: none;
  transform: none !important;
}

.site-mast .navbar nav a.active {
  color: #0f2b46 !important;
  font-weight: 600 !important;
}

.site-mast .navbar.scrolled nav a,
.site-mast .navbar.scrolled nav a.mast-link {
  color: #ffffff !important;
}

.site-mast .navbar.scrolled nav a.active {
  color: #ffd700 !important;
}

.site-mast .navbar nav a.mast-lock,
.site-mast .navbar nav a.cta-link {
  margin-left: 8px;
  color: #0f2b46 !important;
  background: linear-gradient(145deg, #ffd700, #ffb800) !important;
  clip-path: none;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  letter-spacing: normal;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
  border: 2px solid transparent !important;
}

.site-mast .navbar nav a.mast-lock:hover,
.site-mast .navbar nav a.cta-link:hover {
  color: #0f2b46 !important;
  text-shadow: none;
  background: linear-gradient(145deg, #ffb800, #ffd700) !important;
  border-color: #00ffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5) !important;
}

.site-mast .navbar.scrolled nav a.mast-lock,
.site-mast .navbar.scrolled nav a.cta-link {
  background: linear-gradient(145deg, #ffd700, #ffaa00) !important;
  color: #0a1a2f !important;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3) !important;
}

.site-mast .navbar nav a.mast-lock.active {
  color: #0f2b46 !important;
}

.site-mast .navbar nav a.mast-lock i {
  margin-right: 5px;
  transform: none !important;
}

.nav-reticle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}

.nav-reticle.is-on {
  opacity: 1;
}

.nav-reticle .ret-tl,
.nav-reticle .ret-tr,
.nav-reticle .ret-bl,
.nav-reticle .ret-br {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: #ffd700;
  border-style: solid;
  border-width: 0;
}

.nav-reticle .ret-tl { top: -3px; left: -3px; border-top-width: 2px; border-left-width: 2px; }
.nav-reticle .ret-tr { top: -3px; right: -3px; border-top-width: 2px; border-right-width: 2px; }
.nav-reticle .ret-bl { bottom: -3px; left: -3px; border-bottom-width: 2px; border-left-width: 2px; }
.nav-reticle .ret-br { bottom: -3px; right: -3px; border-bottom-width: 2px; border-right-width: 2px; }

.nav-reticle .ret-cross-h,
.nav-reticle .ret-cross-v {
  position: absolute;
  background: rgba(255, 215, 0, 0.55);
}

.nav-reticle .ret-cross-h {
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
}

.nav-reticle .ret-cross-v {
  top: 22%;
  bottom: 22%;
  left: 50%;
  width: 1px;
}

.nav-reticle .ret-az {
  position: absolute;
  top: -13px;
  right: 2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffd700;
}

.site-mast .mast-toggle,
.site-mast .menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #0f2b46 !important;
  z-index: 10052;
  transition: transform 0.3s ease, color 0.3s ease;
}

.site-mast .menu-toggle i {
  pointer-events: none;
  transition: transform 0.3s ease;
}

.site-mast .menu-toggle.active i {
  transform: rotate(90deg);
}

.site-mast .menu-toggle.active i::before {
  content: "\f00d";
}

.site-mast .navbar.scrolled .mast-toggle,
.site-mast .navbar.scrolled .menu-toggle {
  color: #ffd700 !important;
}

@media (min-width: 993px) {
  .site-mast .navbar.mast-rail {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px 16px;
  }

  .site-mast .logo.mast-bezel {
    position: relative;
    z-index: 2;
    flex: 0 0 132px;
    width: 132px;
  }

  .site-mast .mast-drop {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex: 0 0 auto;
    width: clamp(130px, 12vw, 190px);
    max-width: 190px;
    min-width: 0;
    height: auto;
    align-self: center;
    margin-left: auto;
    margin-right: 0;
    padding: 0 4px;
    overflow: hidden;
    contain: layout style paint;
  }

  .site-mast .mast-drop__viewport {
    min-height: 0;
    height: auto;
    line-height: 1.2;
  }

  .site-mast .mast-drop__item {
    font-size: clamp(11px, 1vw, 14px);
    letter-spacing: 0.16em;
    padding-right: 2.5rem;
  }

  .site-mast .navbar nav,
  .site-mast #nav-menu {
    position: relative;
    flex: 0 0 auto;
    margin-left: 0;
    z-index: 2;
  }

  .site-mast .mast-toggle,
  .site-mast .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .site-mast .navbar.mast-rail {
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 8px;
    flex-wrap: nowrap;
  }

  .site-mast .logo.mast-bezel {
    grid-column: 1;
    grid-row: 1;
  }

  .site-mast .mast-toggle,
  .site-mast .menu-toggle {
    display: flex !important;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
  }

  .site-mast .navbar nav,
  .site-mast #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a1a2f !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 0 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .site-mast .navbar nav.active,
  .site-mast #nav-menu.active {
    max-height: 550px;
    padding: 15px 20px 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
  }

  .site-mast .navbar nav a,
  .site-mast .navbar nav a.mast-link,
  .site-mast .navbar.scrolled nav a {
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 14px 15px !important;
    width: 100%;
    text-align: left;
    border-radius: 8px !important;
  }

  .site-mast .navbar nav a:after {
    display: none !important;
  }

  .site-mast .navbar nav a:hover,
  .site-mast .navbar nav a.active {
    background: #ffd700 !important;
    color: #0a1a2f !important;
  }

  .site-mast .navbar nav a.mast-lock,
  .site-mast .navbar nav a.cta-link {
    margin-left: 0;
    text-align: center;
  }

  .site-mast .mast-drop {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    flex: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: center;
    height: 34px;
    min-height: 34px;
    padding: 0 2px;
    overflow: hidden;
  }

  .site-mast .mast-drop__viewport {
    height: 34px;
    min-height: 34px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }

  .site-mast .mast-drop__item,
  .site-mast .mast-drop__static {
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.07em;
    -webkit-font-smoothing: antialiased;
  }

  .site-mast .mast-drop__item {
    padding-right: 2rem;
  }

  .site-mast .mast-drop__static {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .site-mast .mast-drop__track {
    --mast-marquee-duration: 14s;
    animation: mast-drop-marquee var(--mast-marquee-duration) linear infinite;
    -webkit-animation: mast-drop-marquee var(--mast-marquee-duration) linear infinite;
  }
}

@media (max-width: 380px) {
  .site-mast .mast-drop__item,
  .site-mast .mast-drop__static {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .site-mast .mast-drop__item {
    padding-right: 1.5rem;
  }
}
