/*!
 * MFF top menu — taken from the live site (mff-core › landing › assets/css/mff-theme.css, dark theme).
 * Lands as a full-width bar: logo · · · menu · language · Sign In · Start Trading.
 * After a short scroll it shrinks into a centered glass capsule.
 * Tablets: logo · actions · burger (links in the panel). Phones: logo · burger; the panel holds the links and the buttons.
 * Changed for the new site: no dark/white switch, Stay Updated → Sign In + Start Trading, button text in Title Case.
 */
.mtn { position: relative; z-index: 90; height: 0; font-family: "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mtn, .mtn * { box-sizing: border-box; }
.mtn .mtn-bar {
  --mtn-w: 100%;
  position: fixed; top: 0; left: 50%; translate: -50% 0; width: var(--mtn-w); max-width: 100%;
  display: flex; align-items: center; gap: 28px; padding: 20px 30px; border-radius: 0; isolation: isolate;
}
.mtn .mtn-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: rgba(2, 9, 35, 0.78); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.mtn.ready .mtn-bar {
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1), top 0.7s cubic-bezier(0.22, 1, 0.36, 1), padding 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.mtn.ready .mtn-bar::before { transition: opacity 0.5s ease; }

.mtn .mtn-logo { display: block; flex: none; line-height: 0; overflow: hidden; }
.mtn .mtn-logo img { display: block; height: 34px; width: auto; max-width: none; transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.mtn .mtn-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 500; white-space: nowrap; }
.mtn.ready .mtn-links, .mtn.ready .mtn-signin { transition: font-size 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s; }
.mtn .mtn-links a, .mtn .mtn-drop-links a {
  padding: 8px 16px; border-radius: 30px; color: rgba(255, 255, 255, 0.72); text-decoration: none; white-space: nowrap; transition: color 0.3s, background 0.3s;
}
.mtn .mtn-links a:hover, .mtn .mtn-links a:focus-visible, .mtn .mtn-drop-links a:hover { color: #fff; }
.mtn .mtn-links a.on, .mtn .mtn-drop-links a.on { background: rgba(0, 168, 232, 0.2); color: #fff; }

.mtn .mtn-act { display: flex; align-items: center; gap: 10px; flex: none; }
.mtn .mtn-signin { padding: 8px 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.mtn .mtn-signin:hover { color: #fff; }
.mtn .mtn-cta.btn { padding: 11px 24px; font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: 999px; }
.mtn .mtn-cta.btn::after { border-radius: inherit; }

.mtn :focus-visible { outline: 2px solid #8ed1fc; outline-offset: 2px; }

.mtn .mtn-burger { display: none; position: relative; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: none; cursor: pointer; flex: none; }
.mtn .mtn-burger:hover, .mtn .mtn-burger:focus { background: none; }
.mtn .mtn-burger i { position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 2px; background: #8ed1fc; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, top 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.mtn .mtn-burger i:nth-child(1) { top: 13px; } .mtn .mtn-burger i:nth-child(2) { top: 18px; } .mtn .mtn-burger i:nth-child(3) { top: 23px; }
.mtn.open .mtn-burger i:nth-child(1) { top: 18px; transform: rotate(45deg); }
.mtn.open .mtn-burger i:nth-child(2) { opacity: 0; }
.mtn.open .mtn-burger i:nth-child(3) { top: 18px; transform: rotate(-45deg); }
.mtn .mtn-drop {
  position: fixed; right: 10px; top: 76px; display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px; border-radius: 20px;
  background: rgba(2, 9, 35, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); font-size: 14px; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.97); transform-origin: 100% 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.45s, top 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.mtn .mtn-drop-links { display: flex; flex-direction: column; gap: 2px; }
.mtn .mtn-drop-links a { padding: 12px 18px; text-align: left; }
.mtn .mtn-drop-foot { display: none; }
.mtn.open .mtn-drop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), top 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.mtn.pill .mtn-bar { top: 14px; padding: 6px 6px 6px 20px; gap: 14px; border-radius: 40px; min-width: max-content; }
.mtn.pill .mtn-bar::before { opacity: 1; }
.mtn.pill .mtn-logo img { height: 24px; }
.mtn.pill .mtn-links, .mtn.pill .mtn-signin { font-size: 12px; }

.mtn .mtn-drop-signin { display: none; }
@media (max-width: 980px) {
  .mtn .mtn-links { display: none; }
  .mtn .mtn-act { margin-left: auto; gap: 8px; }
  .mtn .mtn-burger { display: block; }
  .mtn .mtn-bar { padding: 16px 18px; }
  .mtn.pill .mtn-bar { top: 10px; padding: 6px 6px 6px 16px; width: calc(100% - 20px) !important; }
  .mtn.pill .mtn-drop { top: 72px; }
}
@media (max-width: 700px) {
  .mtn .mtn-act .mtn-signin, .mtn .mtn-act .mtn-cta { display: none; }
  .mtn .mtn-drop-signin { display: block; }
  .mtn .mtn-bar { padding: 14px 14px 14px 16px; }
  .mtn .mtn-logo img { height: 26px; }
  .mtn.pill .mtn-bar { padding: 6px 6px 6px 18px; }
  .mtn.pill .mtn-logo img { height: 22px; }
  .mtn .mtn-burger { width: 40px; height: 40px; }
  .mtn .mtn-drop { left: 10px; right: 10px; top: 72px; min-width: 0; padding: 10px; transform-origin: 50% 0; max-height: calc(100vh - 86px); overflow-y: auto; }
  .mtn.pill .mtn-drop { top: 68px; }
  .mtn .mtn-drop-links a { padding: 12px 14px; font-size: 15px; }
  .mtn .mtn-drop-foot {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    margin-top: 10px; padding: 16px 4px 6px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mtn .mtn-drop-foot .mtn-cta.btn { width: 100%; padding: 15px 20px; font-size: 14px; }
}

.mtn .mtn-dd { position: relative; }
.mtn .mtn-dd-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px 8px 16px; border: 0; border-radius: 30px; background: none; box-shadow: none;
  font: inherit; letter-spacing: inherit; text-transform: none; line-height: inherit; color: rgba(255, 255, 255, 0.72); cursor: pointer; white-space: nowrap; transition: color 0.3s, background 0.3s;
}
.mtn .mtn-dd-btn:hover, .mtn .mtn-dd-btn:focus, .mtn .mtn-dd.open .mtn-dd-btn { background: none; color: #fff; }
.mtn .mtn-dd.on .mtn-dd-btn { background: rgba(0, 168, 232, 0.2); color: #fff; }
.mtn .mtn-dd-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.mtn .mtn-dd.open .mtn-dd-btn svg { transform: rotate(180deg); }
.mtn .mtn-dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; z-index: 2; min-width: 240px; padding: 8px; border-radius: 18px;
  display: flex; flex-direction: column; gap: 2px; background: rgba(2, 9, 35, 0.92); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.4s;
}
.mtn .mtn-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mtn .mtn-dd.open .mtn-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .mtn .mtn-dd:hover .mtn-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .mtn .mtn-dd:hover .mtn-dd-btn { color: #fff; }
  .mtn .mtn-dd:hover .mtn-dd-btn svg { transform: rotate(180deg); }
}
.mtn .mtn-dd-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.82); text-decoration: none; white-space: nowrap; transition: color 0.3s, background 0.3s; }
.mtn a.mtn-dd-item:hover, .mtn a.mtn-dd-item:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mtn a.mtn-dd-item.on { background: rgba(0, 168, 232, 0.2); color: #fff; }
.mtn .mtn-dd-item .mtn-dd-txt { margin-right: auto; }
.mtn .mtn-dd-ico { flex: none; display: block; width: 22px; height: 22px; }
.mtn .mtn-dd-ico img { display: block; width: 100%; height: 100%; }

.mtn .mtn-drop-group { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; margin: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mtn .mtn-drop-group:first-child { border-top: 0; padding-top: 2px; margin-top: 0; }
.mtn .mtn-drop-label { padding: 6px 14px 4px; font-size: 13px; font-weight: 500; color: #8ed1fc; }
.mtn .mtn-drop-links .mtn-drop-group .mtn-dd-item { padding: 12px 14px 12px 24px; font-size: 15px; }

/* language switcher (mff-translations) */
.mfl { position: relative; display: inline-block; flex: none; }
.mfl summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px; cursor: pointer; color: inherit; }
.mfl summary:focus { outline: none; }
.mfl summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 999px; }
.mfl summary::-webkit-details-marker { display: none; }
.mfl-f { display: block; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: none; }
.mfl-f svg { display: block; width: 100%; height: 100%; }
.mfl-c { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; transition: rotate .2s; }
.mfl[open] .mfl-c { rotate: 180deg; }
.mfl-p { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 186px; padding: 6px; border-radius: 14px; background: #0d1b26; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.4); z-index: 1000; }
.mfl-p a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #fff; text-decoration: none; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.mfl-p a:hover, .mfl-p a:focus { background: rgba(255,255,255,.08); color: #fff; }

html.lite .mtn .mtn-bar::before, html.lite .mtn .mtn-drop, html.lite .mtn .mtn-dd-panel { background: rgba(2, 9, 35, 0.96); }
@media (prefers-reduced-motion: reduce) {
  .mtn.ready .mtn-bar, .mtn .mtn-drop, .mtn .mtn-logo img { transition: none !important; }
}

/* phones: Sign In + Start Trading in a glass bar fixed to the bottom. 60px stay free at each side for the cookie
   button (left) and the chat button (right). It slides away while the menu is open. */
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { position: fixed; z-index: 90; left: 60px; right: 60px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; padding: 5px;
    border-radius: 999px; background: rgba(6,18,52,.62); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.22), 0 16px 34px -12px rgba(0,4,20,.8);
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s; }
  .mbar .btn { flex: 1 1 0; min-width: 0; padding: 11px 8px; font-size: 13.5px; }
  .mbar .mbar-in { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body:has(.mtn.open) .mbar, body.mtn-open .mbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 76px; }
}

/* Waitlist state (preview plugin, class-cta.php): Sign In is hidden, the call to action takes the whole row */
.cta-off { display: none !important; }
.mtn .mtn-drop-foot:has(.cta-off) { grid-template-columns: 1fr; }
