.mmf-command-site-header {
    position: sticky;
    top: var(--mmf-command-sticky-top, 0px);
    z-index: 90;
    padding: 28px 0 22px;
    transition: padding 260ms ease, background 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
    background:
        radial-gradient(circle at 12% 20%, rgba(74, 163, 255, 0.16), transparent 29%),
        radial-gradient(circle at 88% 22%, rgba(217, 40, 58, 0.14), transparent 31%),
        linear-gradient(180deg, #050b14 0%, #07142a 100%);
    overflow: visible;
}

.mmf-command-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.75;
    background:
        linear-gradient(90deg, transparent 0%, rgba(74, 163, 255, 0.16) 22%, transparent 44%),
        linear-gradient(90deg, transparent 58%, rgba(217, 40, 58, 0.16) 78%, transparent 100%);
    filter: blur(16px);
}

.mmf-command-shell {
    position: relative;
    transition: border-radius 260ms ease, box-shadow 260ms ease, background 260ms ease;
    width: min(94vw, 1520px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.018)),
        rgba(9, 17, 31, 0.80);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    overflow: visible;
}

.mmf-command-shell::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.9), rgba(255, 255, 255, 0.08), rgba(217, 40, 58, 0.9));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mmf-command-meta {
    display: flex;
    overflow: hidden;
    max-height: 64px;
    opacity: 1;
    transition: max-height 260ms ease, opacity 220ms ease, padding 260ms ease, border-color 260ms ease;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 17px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    color: #a9b7cc;
    text-transform: uppercase;
}

.mmf-command-meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.mmf-command-meta-left span:not(:last-child)::after {
    content: "/";
    margin-left: 14px;
    color: #ff4053;
}

.mmf-command-status,
.mmf-command-mobile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.mmf-command-status strong,
.mmf-command-mobile-status strong {
    color: #ff4053;
    font-weight: 900;
}

.mmf-command-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d9283a;
    box-shadow: 0 0 16px rgba(217, 40, 58, 0.90);
}

.mmf-command-main {
    display: grid;
    transition: padding 260ms ease, gap 260ms ease;
    grid-template-columns: minmax(275px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
}

.mmf-command-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #f8fbff;
    text-decoration: none;
    min-width: max-content;
}

.mmf-command-brand:hover {
    color: #ffffff;
}

.mmf-command-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(74, 163, 255, 0.65);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 28px rgba(74, 163, 255, 0.06), 0 0 22px rgba(74, 163, 255, 0.16);
    overflow: visible;
}

.mmf-command-mark::before,
.mmf-command-mark::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-style: solid;
}

.mmf-command-mark::before {
    left: -5px;
    top: -5px;
    border-width: 2px 0 0 2px;
    border-color: #4aa3ff;
}

.mmf-command-mark::after {
    right: -5px;
    bottom: -5px;
    border-width: 0 2px 2px 0;
    border-color: #d9283a;
}

.mmf-command-mark span {
    font-size: 30px;
    font-weight: 800;
    color: #eef6ff;
    letter-spacing: 0.02em;
}

.mmf-command-mark.has-logo {
    background: rgba(255, 255, 255, 0.94);
    padding: 7px;
}

.mmf-command-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.mmf-command-brand-logo-only {
    min-width: 0;
    gap: 0;
}

.mmf-command-logo-only {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--mmf-command-logo-width, 220px);
    height: var(--mmf-command-logo-height, 76px);
    max-width: min(var(--mmf-command-logo-width, 220px), 32vw);
    line-height: 0;
}

.mmf-command-logo-only .mmf-command-logo-img {
    width: 100%;
    height: 100%;
    object-fit: var(--mmf-command-logo-fit, contain);
    object-position: left center;
}

.mmf-command-site-header.mmf-compact-enabled.is-compact .mmf-command-logo-only {
    width: calc(var(--mmf-command-logo-width, 220px) * 0.76);
    height: calc(var(--mmf-command-logo-height, 76px) * 0.76);
}

.mmf-command-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mmf-command-brand-text strong {
    color: #f8fbff;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.075em;
    font-weight: 900;
    text-shadow: 0 0 24px rgba(74, 163, 255, 0.14);
}

.mmf-command-brand-text small {
    font-size: 13px;
    color: #a9b7cc;
}

.mmf-command-nav {
    justify-self: center;
    min-width: 0;
    position: relative;
}

.mmf-command-menu,
.mmf-command-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmf-command-menu {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    overflow: visible;
}

.mmf-command-menu > li {
    position: relative;
    margin: 0;
}

.mmf-command-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 15px;
    color: #dce7f7;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 180ms ease, background 180ms ease;
}

.mmf-command-menu > li:last-child > a {
    border-right: 0;
}

.mmf-command-menu > li > a:hover,
.mmf-command-menu > li.has-dropdown:hover > a {
    color: #ffffff;
    background: rgba(74, 163, 255, 0.10);
}

.mmf-command-menu > li > a::before {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4aa3ff, #d9283a);
    transition: width 180ms ease;
}

.mmf-command-menu > li > a:hover::before,
.mmf-command-menu > li.has-dropdown:hover > a::before {
    width: calc(100% - 30px);
}

.mmf-command-nav-icon,
.mmf-dropdown-icon,
.mmf-mobile-icon,
.mmf-command-search-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.mmf-command-nav-icon svg,
.mmf-dropdown-icon svg,
.mmf-mobile-icon svg,
.mmf-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mmf-command-nav-icon {
    color: #79bdff;
    opacity: 0.95;
}

.mmf-command-chevron {
    margin-left: 1px;
    color: #94a3b8;
    font-size: 14px;
    transform: translateY(-1px);
    transition: transform 180ms ease, color 180ms ease;
}

.mmf-command-menu > li.has-dropdown:hover .mmf-command-chevron {
    color: #ff4053;
    transform: rotate(180deg) translateY(1px);
}

.mmf-command-dropdown {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 200;
    width: min(560px, 86vw);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(74, 163, 255, 0.18), transparent 34%),
        radial-gradient(circle at 94% 16%, rgba(217, 40, 58, 0.13), transparent 30%),
        rgba(8, 18, 34, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(74, 163, 255, 0.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translate(-50%, 8px) scale(0.985);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.mmf-command-dropdown::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(8, 18, 34, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.mmf-command-menu > li.has-dropdown:hover .mmf-command-dropdown,
.mmf-command-menu > li.has-dropdown:focus-within .mmf-command-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.mmf-command-dropdown-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmf-command-dropdown-top span {
    color: #f8fbff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mmf-command-dropdown-top small {
    color: #ff4053;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mmf-command-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mmf-command-dropdown-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 74px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #eaf3ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.mmf-command-dropdown-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(74, 163, 255, 0.42);
    background: rgba(74, 163, 255, 0.08);
}

.mmf-dropdown-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #79bdff;
    background: rgba(74, 163, 255, 0.10);
}

.mmf-command-dropdown-link strong {
    display: block;
    margin-top: 1px;
    font-size: 14px;
    line-height: 1.25;
}

.mmf-command-dropdown-link small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.mmf-command-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.mmf-command-search {
    position: relative;
    width: clamp(220px, 18vw, 330px);
}

.mmf-command-search input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(2, 8, 18, 0.42);
    color: #f8fbff;
    outline: none;
    transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mmf-command-search input::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.mmf-command-search input:focus {
    border-color: rgba(74, 163, 255, 0.7);
    background: rgba(2, 8, 18, 0.72);
    box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.12);
}

.mmf-command-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #94a3b8;
}

.mmf-command-search-icon svg,
.mmf-command-access svg,
.mmf-command-mobile-access svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mmf-command-access,
.mmf-command-mobile-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(74, 163, 255, 0.65);
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    background: radial-gradient(circle at 20% 10%, rgba(74, 163, 255, 0.28), transparent 36%), linear-gradient(135deg, rgba(8, 38, 87, 0.96), rgba(8, 20, 52, 0.96));
    box-shadow: inset 0 0 28px rgba(74, 163, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 26px rgba(74, 163, 255, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.mmf-command-access:hover,
.mmf-command-mobile-access:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(217, 40, 58, 0.72);
    box-shadow: inset 0 0 28px rgba(74, 163, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 32px rgba(217, 40, 58, 0.22);
}

.mmf-command-access svg,
.mmf-command-mobile-access svg {
    width: 18px;
    height: 18px;
}

.mmf-command-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.mmf-command-mobile-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mmf-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: 22px;
    background: radial-gradient(circle at 20% 20%, rgba(74, 163, 255, 0.18), transparent 34%), radial-gradient(circle at 88% 30%, rgba(217, 40, 58, 0.14), transparent 36%), rgba(3, 7, 14, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mmf-mobile-drawer.is-open {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body.mmf-mobile-open {
    overflow: hidden;
}

.mmf-command-mobile-panel {
    width: min(100%, 460px);
    max-height: calc(100vh - 44px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(12, 22, 39, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(74, 163, 255, 0.16), 0 0 34px rgba(217, 40, 58, 0.13);
}

.mmf-command-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmf-command-mobile-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mmf-command-mobile-search {
    padding: 18px 22px 4px;
}

.mmf-command-mobile-search input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(2, 8, 18, 0.42);
    color: #f8fbff;
    outline: none;
}

.mmf-command-mobile-nav {
    padding: 14px 22px;
}

.mmf-command-mobile-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmf-command-mobile-menu li:last-child {
    border-bottom: 0;
}

.mmf-command-mobile-menu a,
.mmf-mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0;
    border: 0;
    color: #edf4ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 850;
    background: transparent;
    cursor: pointer;
}

.mmf-command-mobile-menu a {
    justify-content: flex-start;
    gap: 11px;
}

.mmf-mobile-parent-main {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.mmf-mobile-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #79bdff;
    background: rgba(74, 163, 255, 0.10);
}

.mmf-mobile-chevron {
    color: #94a3b8;
    font-size: 18px;
    transition: transform 180ms ease, color 180ms ease;
}

.mmf-mobile-parent[aria-expanded="true"] .mmf-mobile-chevron {
    color: #ff4053;
    transform: rotate(180deg);
}

.mmf-mobile-submenu {
    margin: 0 0 8px 22px;
    padding: 4px 0 6px 14px;
    border-left: 1px solid rgba(74, 163, 255, 0.22);
}

.mmf-command-mobile-menu.level-1 a,
.mmf-command-mobile-menu.level-1 .mmf-mobile-parent {
    min-height: 46px;
    font-size: 14px;
    font-weight: 750;
}

.mmf-command-mobile-access {
    width: calc(100% - 44px);
    margin: 0 22px 18px;
}

.mmf-command-mobile-status {
    justify-content: center;
    width: 100%;
    padding: 16px 22px 22px;
    color: #a9b7cc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 0;
}

.mmf-command-site-header.mmf-sticky-off {
    position: relative;
    top: auto;
}

.mmf-command-site-header.mmf-compact-enabled.is-compact {
    padding: 14px 0;
    background: rgba(5, 11, 20, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.mmf-command-site-header.mmf-compact-enabled.is-compact .mmf-command-meta {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
}

.mmf-command-site-header.mmf-compact-enabled.is-compact .mmf-command-main {
    padding: 14px 22px;
}

.mmf-command-site-header.mmf-compact-enabled.is-compact .mmf-command-mark {
    width: 42px;
    height: 42px;
}

.mmf-command-site-header.mmf-compact-enabled.is-compact .mmf-command-brand-text small {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .mmf-command-shell {
        animation: mmfCommandEnter 600ms ease both;
    }

    .mmf-command-glow {
        animation: mmfCommandGlow 8s ease-in-out infinite alternate;
    }

    @keyframes mmfCommandEnter {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes mmfCommandGlow {
        from { transform: translateX(-3%); }
        to { transform: translateX(3%); }
    }
}

@media (max-width: 1380px) {
    .mmf-command-main {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 18px;
    }

    .mmf-command-brand-text strong {
        font-size: 20px;
    }

    .mmf-command-menu > li > a {
        padding: 0 12px;
        font-size: 12px;
    }

    .mmf-command-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .mmf-command-search {
        width: 54px;
    }

    .mmf-command-search input {
        padding-right: 0;
        color: transparent;
    }

    .mmf-command-search input::placeholder {
        color: transparent;
    }
}

@media (max-width: 1100px) {
    .mmf-command-nav-label {
        display: none;
    }

    .mmf-command-menu > li > a {
        padding: 0 15px;
    }

    .mmf-command-chevron {
        display: none;
    }
}

@media (max-width: 980px) {
    .mmf-command-site-header {
        padding: 18px 0;
    }

    .mmf-command-shell {
        border-radius: 20px;
    }

    .mmf-command-meta,
    .mmf-command-nav,
    .mmf-command-search,
    .mmf-command-access {
        display: none;
    }

    .mmf-command-main {
        display: flex;
        justify-content: space-between;
        padding: 18px;
    }

    .mmf-command-mobile-toggle {
        display: block;
    }

    .mmf-command-mark {
        width: 48px;
        height: 48px;
    }

    .mmf-command-brand-text strong {
        font-size: 18px;
    }

    .mmf-command-brand-text small {
        font-size: 12px;
    }


    .mmf-command-logo-only {
        width: var(--mmf-command-mobile-logo-width, 156px);
        height: var(--mmf-command-mobile-logo-height, 54px);
        max-width: 58vw;
    }
}

@media (max-width: 520px) {
    .mmf-command-brand {
        gap: 12px;
    }

    .mmf-command-mark {
        width: 42px;
        height: 42px;
    }

    .mmf-command-mark span {
        font-size: 24px;
    }

    .mmf-command-brand-text strong {
        max-width: 180px;
        font-size: 16px;
        letter-spacing: 0.05em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mmf-command-brand-text small {
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mmf-command-shell {
        width: calc(100vw - 24px);
    }

    .mmf-mobile-drawer {
        padding: 12px;
    }

    .mmf-command-mobile-panel {
        max-height: calc(100vh - 24px);
    }
}


/* =========================================================
   Morse Command Header v1.1.1
   Readability and contrast fix for dark submenu/button areas
   ========================================================= */

.mmf-command-site-header .mmf-command-dropdown,
.mmf-command-site-header .mmf-command-dropdown * {
    box-sizing: border-box;
}

.mmf-command-site-header .mmf-command-dropdown {
    color: #f8fbff !important;
}

.mmf-command-site-header .mmf-command-dropdown-top span {
    color: #ffffff !important;
}

.mmf-command-site-header .mmf-command-dropdown-top small {
    color: #ff4053 !important;
}

.mmf-command-site-header .mmf-command-dropdown-link,
.mmf-command-site-header .mmf-command-dropdown-link:visited {
    color: #f8fbff !important;
    text-decoration: none !important;
}

.mmf-command-site-header .mmf-command-dropdown-link strong,
.mmf-command-site-header .mmf-command-dropdown-link:visited strong {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 16px rgba(74, 163, 255, 0.16);
}

.mmf-command-site-header .mmf-command-dropdown-link small,
.mmf-command-site-header .mmf-command-dropdown-link:visited small {
    color: #b8c5d8 !important;
    font-weight: 700 !important;
}

.mmf-command-site-header .mmf-command-dropdown-link:hover,
.mmf-command-site-header .mmf-command-dropdown-link:hover strong {
    color: #ffffff !important;
}

.mmf-command-site-header .mmf-command-dropdown-link:hover small {
    color: #d8e6f8 !important;
}

.mmf-command-site-header .mmf-dropdown-icon {
    color: #79bdff !important;
}

.mmf-command-site-header .mmf-dropdown-icon svg,
.mmf-command-site-header .mmf-dropdown-icon svg path {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.mmf-command-site-header .mmf-command-access,
.mmf-command-site-header .mmf-command-access:visited,
.mmf-command-site-header .mmf-command-mobile-access,
.mmf-command-site-header .mmf-command-mobile-access:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.mmf-command-site-header .mmf-command-access span,
.mmf-command-site-header .mmf-command-mobile-access span {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.mmf-command-site-header .mmf-command-access svg,
.mmf-command-site-header .mmf-command-mobile-access svg,
.mmf-command-site-header .mmf-command-access svg path,
.mmf-command-site-header .mmf-command-mobile-access svg path {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.mmf-command-site-header .mmf-command-access:hover,
.mmf-command-site-header .mmf-command-mobile-access:hover {
    color: #ffffff !important;
    border-color: rgba(217, 40, 58, 0.78) !important;
    background:
        radial-gradient(circle at 20% 10%, rgba(74, 163, 255, 0.38), transparent 36%),
        linear-gradient(135deg, rgba(10, 57, 128, 0.98), rgba(8, 24, 62, 0.98)) !important;
}

.mmf-command-site-header .mmf-mobile-parent,
.mmf-command-site-header .mmf-command-mobile-menu a,
.mmf-command-site-header .mmf-command-mobile-menu a:visited {
    color: #f8fbff !important;
}

.mmf-command-site-header .mmf-mobile-parent span,
.mmf-command-site-header .mmf-command-mobile-menu a span {
    color: inherit !important;
}

/* =========================================================
   Morse Command Header: dropdown hover bridge fix v1.1.2
   Keeps dropdown open while moving from the main menu item
   into the submenu panel, not only over the small pointer.
   ========================================================= */
.mmf-command-site-header .mmf-command-menu > li.has-dropdown::after {
    content: "";
    position: absolute;
    left: -180px;
    right: -180px;
    top: 100%;
    height: 24px;
    z-index: 190;
    display: none;
    background: transparent;
    pointer-events: auto;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown:hover::after,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown:focus-within::after {
    display: block;
}

.mmf-command-site-header .mmf-command-dropdown {
    top: calc(100% + 10px) !important;
}

.mmf-command-site-header .mmf-command-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 18px;
    background: transparent;
    pointer-events: auto;
}


/* =========================================================
   Morse Command Header: dropdown grace delay fix v1.1.3
   Opens quickly, then waits about 2/3 second before closing
   so the submenu does not disappear during natural mouse movement.
   ========================================================= */
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-open > a,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-closing > a {
    color: #ffffff !important;
    background: rgba(74, 163, 255, 0.10) !important;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-open > a::before,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-closing > a::before {
    width: calc(100% - 30px) !important;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-open .mmf-command-chevron,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-closing .mmf-command-chevron {
    color: #ff4053 !important;
    transform: rotate(180deg) translateY(1px) !important;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-open .mmf-command-dropdown,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-closing .mmf-command-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-open::after,
.mmf-command-site-header .mmf-command-menu > li.has-dropdown.is-hover-closing::after {
    display: block !important;
}

/* =========================================================
   Morse Command Header: dropdown timing refinement v1.1.4
   Prevents CSS hover from opening the submenu before the
   JavaScript half-second intentional hover delay.
   ========================================================= */
.mmf-command-site-header .mmf-command-menu > li.has-dropdown:hover:not(.is-hover-open):not(.is-hover-closing) .mmf-command-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate(-50%, 8px) scale(0.985) !important;
}

.mmf-command-site-header .mmf-command-menu > li.has-dropdown:hover:not(.is-hover-open):not(.is-hover-closing)::after {
    display: none !important;
}

/* =========================================================
   Morse Command Header: responsive search/action sizing v1.1.6
   Lets the search field shrink naturally before the header overflows.
   Keeps the access button readable and moves to icon-search mode only
   when space becomes tight.
   ========================================================= */
.mmf-command-site-header .mmf-command-main {
    grid-template-columns: minmax(120px, max-content) minmax(0, auto) minmax(118px, 1fr);
}

.mmf-command-site-header .mmf-command-actions {
    min-width: 0 !important;
    width: 100%;
    max-width: 560px;
    justify-self: stretch;
    justify-content: flex-end;
}

.mmf-command-site-header .mmf-command-search {
    flex: 1 1 260px;
    width: auto !important;
    min-width: 54px;
    max-width: 360px;
    transition: flex-basis 180ms ease, max-width 180ms ease, width 180ms ease;
}

.mmf-command-site-header .mmf-command-access {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}

.mmf-command-site-header .mmf-command-search input {
    min-width: 0;
}

@media (max-width: 1580px) {
    .mmf-command-site-header .mmf-command-main {
        gap: 18px;
    }

    .mmf-command-site-header .mmf-command-actions {
        max-width: 480px;
        gap: 12px;
    }

    .mmf-command-site-header .mmf-command-search {
        flex-basis: 210px;
        max-width: 300px;
    }

    .mmf-command-site-header .mmf-command-access {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 1420px) {
    .mmf-command-site-header .mmf-command-actions {
        max-width: 380px;
    }

    .mmf-command-site-header .mmf-command-search {
        flex-basis: 150px;
        max-width: 230px;
    }

    .mmf-command-site-header .mmf-command-access {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1280px) {
    .mmf-command-site-header .mmf-command-actions {
        max-width: 280px;
    }

    .mmf-command-site-header .mmf-command-search {
        flex: 0 0 54px;
        width: 54px !important;
        max-width: 54px;
    }

    .mmf-command-site-header .mmf-command-search input {
        padding-right: 0;
        color: transparent;
        cursor: pointer;
    }

    .mmf-command-site-header .mmf-command-search input::placeholder {
        color: transparent;
    }

    .mmf-command-site-header .mmf-command-search:focus-within {
        position: absolute;
        right: 0;
        top: 50%;
        z-index: 260;
        width: min(360px, calc(100vw - 64px)) !important;
        max-width: min(360px, calc(100vw - 64px));
        transform: translateY(-50%);
    }

    .mmf-command-site-header .mmf-command-search:focus-within input {
        padding-right: 16px;
        color: #f8fbff;
        cursor: text;
        background: rgba(2, 8, 18, 0.92);
        box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.16), 0 16px 42px rgba(0, 0, 0, 0.42);
    }

    .mmf-command-site-header .mmf-command-search:focus-within input::placeholder {
        color: rgba(148, 163, 184, 0.72);
    }
}

@media (max-width: 1180px) {
    .mmf-command-site-header .mmf-command-actions {
        max-width: 212px;
        gap: 10px;
    }

    .mmf-command-site-header .mmf-command-access {
        min-width: 54px;
        width: 54px;
        padding-left: 0;
        padding-right: 0;
    }

    .mmf-command-site-header .mmf-command-access span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}


/* Smooth sticky mode: keep the header in the normal page flow so scrolling into the next section does not jump. */
.mmf-command-site-header:not(.mmf-compact-enabled) .mmf-command-shell,
.mmf-command-site-header:not(.mmf-compact-enabled) .mmf-command-meta,
.mmf-command-site-header:not(.mmf-compact-enabled) .mmf-command-main {
    will-change: auto;
}

@media (max-width: 980px) {
    .mmf-command-site-header {
        position: relative;
        top: auto;
    }
}


/* =========================================================
   v1.1.8: center menu when search is hidden
   ========================================================= */
.mmf-command-site-header.mmf-search-hidden .mmf-command-main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.mmf-command-site-header.mmf-search-hidden .mmf-command-brand {
    justify-self: start;
}

.mmf-command-site-header.mmf-search-hidden .mmf-command-nav {
    justify-self: center;
}

.mmf-command-site-header.mmf-search-hidden .mmf-command-actions {
    justify-self: end;
}

.mmf-command-site-header.mmf-search-hidden .mmf-command-menu {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1380px) {
    .mmf-command-site-header.mmf-search-hidden .mmf-command-main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .mmf-command-site-header.mmf-search-hidden .mmf-command-main {
        display: flex;
        justify-content: space-between;
    }
}

/* =========================================================
   v1.1.9: menu lock / hide controls and animated border
   ========================================================= */
.mmf-command-site-header .is-menu-locked {
    cursor: not-allowed !important;
}

.mmf-command-site-header .mmf-command-menu > li.is-menu-locked > a,
.mmf-command-site-header .mmf-command-dropdown-link.is-menu-locked,
.mmf-command-site-header .mmf-command-mobile-menu a.is-menu-locked,
.mmf-command-site-header .mmf-command-mobile-menu li.is-menu-locked > .mmf-mobile-parent {
    opacity: 0.74;
}

.mmf-command-site-header .mmf-command-menu > li.is-menu-locked > a:hover,
.mmf-command-site-header .mmf-command-dropdown-link.is-menu-locked:hover,
.mmf-command-site-header .mmf-command-mobile-menu a.is-menu-locked:hover {
    transform: none !important;
    color: #d8e6f8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.mmf-command-site-header .mmf-command-dropdown-link.is-menu-locked:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

.mmf-command-site-header .mmf-menu-lock-icon {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-left: 3px;
    color: #ff4053;
    vertical-align: -2px;
    filter: drop-shadow(0 0 10px rgba(217, 40, 58, 0.28));
}

.mmf-command-site-header .mmf-menu-lock-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.mmf-command-site-header .mmf-command-dropdown-link strong .mmf-menu-lock-icon {
    margin-left: 6px;
}

.mmf-command-site-header .mmf-mobile-parent-main .mmf-menu-lock-icon,
.mmf-command-site-header .mmf-command-mobile-menu a .mmf-menu-lock-icon {
    margin-left: auto;
}

.mmf-command-site-header .is-locked-pulse {
    animation: mmfCommandLockedPulse 520ms ease;
}

@keyframes mmfCommandLockedPulse {
    0% { filter: none; }
    40% { filter: drop-shadow(0 0 10px rgba(217, 40, 58, 0.55)); }
    100% { filter: none; }
}

/* v1.2.0: true traveling border-light animation.
   This avoids the old rotating conic-gradient "fan" effect by drawing only four thin moving edge lights. */
.mmf-command-site-header.mmf-animated-border-on .mmf-command-shell::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 220% 0 / 240% 2px no-repeat,
        linear-gradient(180deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 100% -140% / 2px 240% no-repeat,
        linear-gradient(270deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) -140% 100% / 240% 2px no-repeat,
        linear-gradient(0deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 0 220% / 2px 240% no-repeat;
    filter:
        drop-shadow(0 0 14px rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-glow, 0.35)))
        drop-shadow(0 0 10px rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-glow, 0.35)));
    animation: mmfCommandBorderTravel var(--mmf-command-border-speed, 10s) linear infinite;
}

@keyframes mmfCommandBorderTravel {
    0% {
        background-position: 220% 0, 100% -140%, -140% 100%, 0 220%;
    }
    25% {
        background-position: -140% 0, 100% -140%, -140% 100%, 0 220%;
    }
    50% {
        background-position: -140% 0, 100% 220%, -140% 100%, 0 220%;
    }
    75% {
        background-position: -140% 0, 100% 220%, 220% 100%, 0 220%;
    }
    100% {
        background-position: -140% 0, 100% 220%, 220% 100%, 0 -140%;
    }
}

.mmf-command-site-header.mmf-animated-border-pause-hover .mmf-command-shell:hover::after {
    animation-play-state: paused;
}

@media (max-width: 980px) {
    .mmf-command-site-header.mmf-animated-border-no-mobile .mmf-command-shell::after {
        display: none;
    }
}


/* v1.3.0 Member Login modal */
.mmf-command-access,
.mmf-command-mobile-access {
    font-family: inherit;
    cursor: pointer;
}

button.mmf-command-access,
button.mmf-command-mobile-access {
    appearance: none;
    -webkit-appearance: none;
}

.mmf-login-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(74, 163, 255, 0.20), transparent 32%),
        radial-gradient(circle at 88% 24%, rgba(217, 40, 58, 0.16), transparent 34%),
        rgba(3, 7, 14, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mmf-login-modal.is-open {
    display: flex;
}

body.mmf-login-open {
    overflow: hidden;
}

.mmf-login-modal-panel {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.018)),
        rgba(9, 17, 31, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(74, 163, 255, 0.16), 0 0 34px rgba(217, 40, 58, 0.13);
    padding: 30px;
}

.mmf-login-modal-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.9), rgba(255, 255, 255, 0.08), rgba(217, 40, 58, 0.9));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mmf-command-site-header.mmf-animated-border-on .mmf-login-modal-panel::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 220% 0 / 240% 2px no-repeat,
        linear-gradient(180deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 100% -140% / 2px 240% no-repeat,
        linear-gradient(270deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) -140% 100% / 240% 2px no-repeat,
        linear-gradient(0deg,
            transparent 0%,
            transparent 22%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), 0.18) 34%,
            rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-opacity, 0.65)) 43%,
            rgba(255, 255, 255, 0.62) 50%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-opacity, 0.65)) 57%,
            rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), 0.20) 66%,
            transparent 78%,
            transparent 100%) 0 220% / 2px 240% no-repeat;
    filter:
        drop-shadow(0 0 14px rgba(var(--mmf-command-border-blue-rgb, 74, 163, 255), var(--mmf-command-border-glow, 0.35)))
        drop-shadow(0 0 10px rgba(var(--mmf-command-border-red-rgb, 217, 40, 58), var(--mmf-command-border-glow, 0.35)));
    animation: mmfCommandBorderTravel var(--mmf-command-border-speed, 10s) linear infinite;
}

.mmf-login-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mmf-login-modal-head {
    position: relative;
    z-index: 3;
    padding-right: 42px;
}

.mmf-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: #a9b7cc;
    background: rgba(255, 255, 255, 0.04);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mmf-login-modal-head h2 {
    margin: 0;
    color: #f8fbff;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.mmf-login-modal-head p {
    margin: 14px 0 0;
    color: #aebdd3;
    font-size: 15px;
    line-height: 1.7;
}

.mmf-login-form {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.mmf-login-form label {
    display: grid;
    gap: 7px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mmf-login-form input[type="text"],
.mmf-login-form input[type="password"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    outline: none;
    color: #f8fbff;
    background: rgba(2, 8, 18, 0.50);
    box-shadow: inset 0 0 18px rgba(74, 163, 255, 0.05);
}

.mmf-login-form input[type="text"]:focus,
.mmf-login-form input[type="password"]:focus {
    border-color: rgba(74, 163, 255, 0.70);
    box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.12), inset 0 0 18px rgba(74, 163, 255, 0.07);
}

.mmf-login-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.mmf-login-remember {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
    color: #aebdd3 !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 700 !important;
}

.mmf-login-remember input {
    accent-color: #4aa3ff;
}

.mmf-login-form-row a,
.mmf-login-foot a {
    color: #8ac3ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.mmf-login-form-row a:hover,
.mmf-login-foot a:hover {
    color: #ffffff;
}

.mmf-login-submit {
    min-height: 54px;
    border: 1px solid rgba(74, 163, 255, 0.65);
    border-radius: 14px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(74, 163, 255, 0.28), transparent 36%), linear-gradient(135deg, rgba(8, 38, 87, 0.96), rgba(8, 20, 52, 0.96));
    box-shadow: inset 0 0 28px rgba(74, 163, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 26px rgba(74, 163, 255, 0.18);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.mmf-login-submit:hover {
    border-color: rgba(217, 40, 58, 0.72);
    box-shadow: inset 0 0 28px rgba(74, 163, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 32px rgba(217, 40, 58, 0.22);
}

.mmf-login-foot {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #91a3bb;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .mmf-login-modal {
        align-items: flex-start;
        padding: 16px;
    }

    .mmf-login-modal-panel {
        width: 100%;
        max-height: calc(100vh - 32px);
        padding: 24px;
        border-radius: 22px;
    }

    .mmf-login-modal-head h2 {
        font-size: 32px;
    }

    .mmf-login-form-row,
    .mmf-login-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v1.3.2 membership path inside login popup */
.mmf-login-foot-links {
    display: grid;
    gap: 7px;
    text-align: right;
}

.mmf-login-foot-links a:first-child {
    color: #ffffff;
}

.mmf-login-foot-links a:first-child::after {
    content: " →";
    color: #ff4053;
}

@media (max-width: 620px) {
    .mmf-login-foot-links {
        text-align: left;
    }
}


/* v1.3.3 split Member login modal */
.mmf-login-modal {
    overflow: hidden;
}

.mmf-login-modal-panel-split {
    width: min(92vw, 840px);
    min-height: 520px;
    max-height: min(620px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: 34% 66%;
    padding: 0;
    overflow: hidden;
}

.mmf-login-modal-panel-split .mmf-login-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 34px 38px 30px;
}

.mmf-login-visual {
    position: relative;
    z-index: 3;
    min-width: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 26% 18%, rgba(74, 163, 255, 0.32), transparent 34%),
        radial-gradient(circle at 82% 92%, rgba(217, 40, 58, 0.28), transparent 34%),
        linear-gradient(160deg, rgba(6, 29, 68, 0.96), rgba(4, 11, 25, 0.98));
}

.mmf-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.64;
}

.mmf-login-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(0.9) contrast(1.04);
}

.mmf-login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.82)),
        linear-gradient(135deg, rgba(74, 163, 255, 0.28), rgba(217, 40, 58, 0.18));
}

.mmf-login-visual-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.mmf-login-visual-text span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a9d4ff;
}

.mmf-login-visual-text strong {
    font-size: 30px;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.mmf-login-modal-panel-split .mmf-login-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 26px;
}

.mmf-login-modal-panel-split .mmf-login-modal-head {
    padding-right: 40px;
}

.mmf-login-modal-panel-split .mmf-login-badge {
    margin-bottom: 12px;
    padding: 7px 11px;
}

.mmf-login-modal-panel-split .mmf-login-modal-head h2 {
    font-size: 34px;
}

.mmf-login-modal-panel-split .mmf-login-modal-head p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.mmf-login-modal-panel-split .mmf-login-form {
    margin-top: 18px;
    gap: 12px;
}

.mmf-login-modal-panel-split .mmf-login-form label {
    gap: 6px;
    font-size: 11px;
}

.mmf-login-modal-panel-split .mmf-login-form input[type="text"],
.mmf-login-modal-panel-split .mmf-login-form input[type="password"] {
    height: 46px;
    border-radius: 13px;
}

.mmf-login-modal-panel-split .mmf-login-form-row {
    margin-top: 0;
}

.mmf-login-modal-panel-split .mmf-login-submit {
    min-height: 48px;
    border-radius: 13px;
}

.mmf-login-modal-panel-split .mmf-login-foot {
    margin-top: 15px;
    padding-top: 15px;
}

.mmf-login-modal-panel-split .mmf-login-foot-links {
    min-width: 188px;
}

@media (max-width: 760px) {
    .mmf-login-modal {
        align-items: center;
        padding: 16px;
    }

    .mmf-login-modal-panel-split {
        width: min(100%, 440px);
        min-height: 0;
        max-height: calc(100vh - 32px);
        display: block;
        overflow: auto;
    }

    .mmf-login-visual {
        min-height: 116px;
    }

    .mmf-login-visual-text {
        left: 22px;
        bottom: 20px;
    }

    .mmf-login-visual-text strong {
        font-size: 24px;
    }

    .mmf-login-modal-panel-split .mmf-login-content {
        padding: 24px;
    }

    .mmf-login-modal-panel-split .mmf-login-modal-head {
        padding-right: 36px;
    }

    .mmf-login-modal-panel-split .mmf-login-modal-head h2 {
        font-size: 30px;
    }
}

@media (max-width: 430px) {
    .mmf-login-visual {
        display: none;
    }

    .mmf-login-modal-panel-split .mmf-login-content {
        padding: 24px 20px;
    }
}


/* v1.4.0 in-window AJAX login and reset */
.mmf-login-view[hidden] {
    display: none !important;
}

.mmf-login-message {
    position: relative;
    z-index: 5;
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
    color: #dbeafe;
}

.mmf-login-message[hidden] {
    display: none !important;
}

.mmf-login-message.is-error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
}

.mmf-login-message.is-success {
    border-color: rgba(74, 222, 128, 0.42);
    background: rgba(20, 83, 45, 0.24);
    color: #bbf7d0;
}

.mmf-login-message.is-info {
    border-color: rgba(74, 163, 255, 0.36);
    background: rgba(30, 64, 175, 0.18);
    color: #bfdbfe;
}

.mmf-login-text-button,
.mmf-login-back {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #8ac3ff;
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    text-align: left;
}

.mmf-login-text-button:hover,
.mmf-login-back:hover {
    color: #ffffff;
}

.mmf-login-back {
    justify-self: start;
    margin-top: 2px;
}

.mmf-login-back::before {
    content: "← ";
    color: #ff4053;
}

.mmf-login-form.is-loading {
    opacity: 0.78;
}

.mmf-login-form.is-loading .mmf-login-submit {
    cursor: wait;
}

.mmf-login-form input:disabled,
.mmf-login-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}


/* v1.4.4 diagnostic message refinement */
.mmf-login-message {
    max-height: 118px;
    overflow: auto;
}


/* v1.4.5 visible diagnostic badge */
.mmf-login-debug-badge {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 6px 9px;
    border: 1px solid rgba(74, 163, 255, 0.28);
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.18);
    color: #bfdbfe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* v1.6.0: popup frontend calls mother-plugin auth endpoints; no auth handlers live in module.php. */

/* v1.6.1: loading state keeps inputs readable/serializable for FormData. */

/* v1.6.2: page refreshes after successful same-page login so logged-in state displays immediately. */
